@experts_hub/shared 1.0.656 → 1.0.658
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/company-profile.entity.d.ts +1 -0
- package/dist/entities/contract.entity.d.ts +0 -2
- package/dist/entities/docuseal.entity.d.ts +7 -3
- package/dist/entities/freelancer-profile.entity.d.ts +1 -0
- package/dist/index.d.mts +17 -10
- package/dist/index.d.ts +17 -10
- package/dist/index.js +853 -839
- package/dist/index.mjs +781 -768
- package/dist/modules/contract/dto/generate-contract.dto.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -174,6 +174,7 @@ __export(index_exports, {
|
|
|
174
174
|
DocuSeal: () => DocuSeal,
|
|
175
175
|
DocuSealMessageDto: () => DocuSealMessageDto,
|
|
176
176
|
DocuSealSubmitterDto: () => DocuSealSubmitterDto,
|
|
177
|
+
DocuSealTypeEnum: () => DocuSealTypeEnum,
|
|
177
178
|
DocumentType: () => DocumentType,
|
|
178
179
|
DurationTypeEnum: () => DurationTypeEnum,
|
|
179
180
|
EMAIL_PATTERN: () => EMAIL_PATTERN,
|
|
@@ -1358,7 +1359,7 @@ __decorateClass([
|
|
|
1358
1359
|
var import_class_validator37 = require("class-validator");
|
|
1359
1360
|
|
|
1360
1361
|
// src/entities/user.entity.ts
|
|
1361
|
-
var
|
|
1362
|
+
var import_typeorm67 = require("typeorm");
|
|
1362
1363
|
|
|
1363
1364
|
// src/entities/base.entity.ts
|
|
1364
1365
|
var import_typeorm = require("typeorm");
|
|
@@ -1733,6 +1734,9 @@ __decorateClass([
|
|
|
1733
1734
|
default: 0
|
|
1734
1735
|
})
|
|
1735
1736
|
], CompanyProfile.prototype, "rating", 2);
|
|
1737
|
+
__decorateClass([
|
|
1738
|
+
(0, import_typeorm5.Column)({ name: "signature_url", type: "varchar", nullable: true })
|
|
1739
|
+
], CompanyProfile.prototype, "signatureUrl", 2);
|
|
1736
1740
|
CompanyProfile = __decorateClass([
|
|
1737
1741
|
(0, import_typeorm5.Entity)("company_profiles")
|
|
1738
1742
|
], CompanyProfile);
|
|
@@ -2176,12 +2180,15 @@ __decorateClass([
|
|
|
2176
2180
|
default: 0
|
|
2177
2181
|
})
|
|
2178
2182
|
], FreelancerProfile.prototype, "rating", 2);
|
|
2183
|
+
__decorateClass([
|
|
2184
|
+
(0, import_typeorm9.Column)({ name: "signature_url", type: "varchar", nullable: true })
|
|
2185
|
+
], FreelancerProfile.prototype, "signatureUrl", 2);
|
|
2179
2186
|
FreelancerProfile = __decorateClass([
|
|
2180
2187
|
(0, import_typeorm9.Entity)("freelancer_profiles")
|
|
2181
2188
|
], FreelancerProfile);
|
|
2182
2189
|
|
|
2183
2190
|
// src/entities/job.entity.ts
|
|
2184
|
-
var
|
|
2191
|
+
var import_typeorm35 = require("typeorm");
|
|
2185
2192
|
|
|
2186
2193
|
// src/entities/job-skill.entity.ts
|
|
2187
2194
|
var import_typeorm10 = require("typeorm");
|
|
@@ -3209,7 +3216,7 @@ JobRecommendation = __decorateClass([
|
|
|
3209
3216
|
], JobRecommendation);
|
|
3210
3217
|
|
|
3211
3218
|
// src/entities/contract.entity.ts
|
|
3212
|
-
var
|
|
3219
|
+
var import_typeorm31 = require("typeorm");
|
|
3213
3220
|
|
|
3214
3221
|
// src/entities/escrow-wallet.entity.ts
|
|
3215
3222
|
var import_typeorm30 = require("typeorm");
|
|
@@ -3846,32 +3853,6 @@ EscrowWallet = __decorateClass([
|
|
|
3846
3853
|
(0, import_typeorm30.Entity)("escrow_wallets")
|
|
3847
3854
|
], EscrowWallet);
|
|
3848
3855
|
|
|
3849
|
-
// src/entities/docuseal.entity.ts
|
|
3850
|
-
var import_typeorm31 = require("typeorm");
|
|
3851
|
-
var DocuSeal = class extends BaseEntity {
|
|
3852
|
-
};
|
|
3853
|
-
__decorateClass([
|
|
3854
|
-
(0, import_typeorm31.Column)({ name: "contract_id", type: "integer", nullable: true }),
|
|
3855
|
-
(0, import_typeorm31.Index)()
|
|
3856
|
-
], DocuSeal.prototype, "contractId", 2);
|
|
3857
|
-
__decorateClass([
|
|
3858
|
-
(0, import_typeorm31.ManyToOne)(() => Contract, (contract) => contract.docuseal),
|
|
3859
|
-
(0, import_typeorm31.JoinColumn)({ name: "contract_id" })
|
|
3860
|
-
], DocuSeal.prototype, "contract", 2);
|
|
3861
|
-
__decorateClass([
|
|
3862
|
-
(0, import_typeorm31.Column)({ name: "submitter_id", type: "integer", nullable: true }),
|
|
3863
|
-
(0, import_typeorm31.Index)()
|
|
3864
|
-
], DocuSeal.prototype, "submitterId", 2);
|
|
3865
|
-
__decorateClass([
|
|
3866
|
-
(0, import_typeorm31.Column)({ name: "submitter_response", type: "jsonb", nullable: true })
|
|
3867
|
-
], DocuSeal.prototype, "submitterResponse", 2);
|
|
3868
|
-
__decorateClass([
|
|
3869
|
-
(0, import_typeorm31.Column)({ name: "webhook_response", type: "jsonb", nullable: true })
|
|
3870
|
-
], DocuSeal.prototype, "webhookResponse", 2);
|
|
3871
|
-
DocuSeal = __decorateClass([
|
|
3872
|
-
(0, import_typeorm31.Entity)("docuseal")
|
|
3873
|
-
], DocuSeal);
|
|
3874
|
-
|
|
3875
3856
|
// src/entities/contract.entity.ts
|
|
3876
3857
|
var ContractStatusEnum = /* @__PURE__ */ ((ContractStatusEnum2) => {
|
|
3877
3858
|
ContractStatusEnum2["GENERATED"] = "GENERATED";
|
|
@@ -3897,45 +3878,45 @@ var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
|
|
|
3897
3878
|
var Contract = class extends BaseEntity {
|
|
3898
3879
|
};
|
|
3899
3880
|
__decorateClass([
|
|
3900
|
-
(0,
|
|
3881
|
+
(0, import_typeorm31.Column)({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
|
|
3901
3882
|
], Contract.prototype, "contractUniqueId", 2);
|
|
3902
3883
|
__decorateClass([
|
|
3903
|
-
(0,
|
|
3904
|
-
(0,
|
|
3884
|
+
(0, import_typeorm31.Column)({ name: "contract_summary_id", type: "integer", nullable: true }),
|
|
3885
|
+
(0, import_typeorm31.Index)()
|
|
3905
3886
|
], Contract.prototype, "contractSummaryId", 2);
|
|
3906
3887
|
__decorateClass([
|
|
3907
|
-
(0,
|
|
3908
|
-
(0,
|
|
3888
|
+
(0, import_typeorm31.ManyToOne)(() => ContractSummary, (contractSummary) => contractSummary.contracts),
|
|
3889
|
+
(0, import_typeorm31.JoinColumn)({ name: "contract_summary_id" })
|
|
3909
3890
|
], Contract.prototype, "contractSummary", 2);
|
|
3910
3891
|
__decorateClass([
|
|
3911
|
-
(0,
|
|
3912
|
-
(0,
|
|
3892
|
+
(0, import_typeorm31.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
3893
|
+
(0, import_typeorm31.Index)()
|
|
3913
3894
|
], Contract.prototype, "jobId", 2);
|
|
3914
3895
|
__decorateClass([
|
|
3915
|
-
(0,
|
|
3916
|
-
(0,
|
|
3896
|
+
(0, import_typeorm31.ManyToOne)(() => Job, (job) => job.contracts),
|
|
3897
|
+
(0, import_typeorm31.JoinColumn)({ name: "job_id" })
|
|
3917
3898
|
], Contract.prototype, "job", 2);
|
|
3918
3899
|
__decorateClass([
|
|
3919
|
-
(0,
|
|
3920
|
-
(0,
|
|
3900
|
+
(0, import_typeorm31.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
3901
|
+
(0, import_typeorm31.Index)()
|
|
3921
3902
|
], Contract.prototype, "clientId", 2);
|
|
3922
3903
|
__decorateClass([
|
|
3923
|
-
(0,
|
|
3924
|
-
(0,
|
|
3904
|
+
(0, import_typeorm31.ManyToOne)(() => User, (user) => user.clientContracts),
|
|
3905
|
+
(0, import_typeorm31.JoinColumn)({ name: "client_id" })
|
|
3925
3906
|
], Contract.prototype, "client", 2);
|
|
3926
3907
|
__decorateClass([
|
|
3927
|
-
(0,
|
|
3928
|
-
(0,
|
|
3908
|
+
(0, import_typeorm31.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3909
|
+
(0, import_typeorm31.Index)()
|
|
3929
3910
|
], Contract.prototype, "freelancerId", 2);
|
|
3930
3911
|
__decorateClass([
|
|
3931
|
-
(0,
|
|
3932
|
-
(0,
|
|
3912
|
+
(0, import_typeorm31.ManyToOne)(() => User, (user) => user.freelancerContracts),
|
|
3913
|
+
(0, import_typeorm31.JoinColumn)({ name: "freelancer_id" })
|
|
3933
3914
|
], Contract.prototype, "freelancer", 2);
|
|
3934
3915
|
__decorateClass([
|
|
3935
|
-
(0,
|
|
3916
|
+
(0, import_typeorm31.Column)({ name: "duration", type: "integer", nullable: true })
|
|
3936
3917
|
], Contract.prototype, "duration", 2);
|
|
3937
3918
|
__decorateClass([
|
|
3938
|
-
(0,
|
|
3919
|
+
(0, import_typeorm31.Column)({
|
|
3939
3920
|
name: "status",
|
|
3940
3921
|
type: "enum",
|
|
3941
3922
|
enum: ContractStatusEnum,
|
|
@@ -3943,7 +3924,7 @@ __decorateClass([
|
|
|
3943
3924
|
})
|
|
3944
3925
|
], Contract.prototype, "status", 2);
|
|
3945
3926
|
__decorateClass([
|
|
3946
|
-
(0,
|
|
3927
|
+
(0, import_typeorm31.Column)({
|
|
3947
3928
|
name: "type",
|
|
3948
3929
|
type: "enum",
|
|
3949
3930
|
enum: ContractTypeEnum,
|
|
@@ -3951,10 +3932,10 @@ __decorateClass([
|
|
|
3951
3932
|
})
|
|
3952
3933
|
], Contract.prototype, "type", 2);
|
|
3953
3934
|
__decorateClass([
|
|
3954
|
-
(0,
|
|
3935
|
+
(0, import_typeorm31.Column)({ name: "invoicing_cycle", type: "varchar", nullable: true })
|
|
3955
3936
|
], Contract.prototype, "invoicingCycle", 2);
|
|
3956
3937
|
__decorateClass([
|
|
3957
|
-
(0,
|
|
3938
|
+
(0, import_typeorm31.Column)({
|
|
3958
3939
|
name: "escrow_deposite_amount",
|
|
3959
3940
|
type: "decimal",
|
|
3960
3941
|
precision: 10,
|
|
@@ -3963,103 +3944,100 @@ __decorateClass([
|
|
|
3963
3944
|
})
|
|
3964
3945
|
], Contract.prototype, "escrowDepositeAmount", 2);
|
|
3965
3946
|
__decorateClass([
|
|
3966
|
-
(0,
|
|
3947
|
+
(0, import_typeorm31.Column)({
|
|
3967
3948
|
name: "start_date",
|
|
3968
3949
|
type: "timestamp with time zone",
|
|
3969
3950
|
nullable: true
|
|
3970
3951
|
})
|
|
3971
3952
|
], Contract.prototype, "startDate", 2);
|
|
3972
3953
|
__decorateClass([
|
|
3973
|
-
(0,
|
|
3954
|
+
(0, import_typeorm31.Column)({
|
|
3974
3955
|
name: "end_date",
|
|
3975
3956
|
type: "timestamp with time zone",
|
|
3976
3957
|
nullable: true
|
|
3977
3958
|
})
|
|
3978
3959
|
], Contract.prototype, "endDate", 2);
|
|
3979
3960
|
__decorateClass([
|
|
3980
|
-
(0,
|
|
3961
|
+
(0, import_typeorm31.Column)({
|
|
3981
3962
|
name: "actual_start_date",
|
|
3982
3963
|
type: "timestamp with time zone",
|
|
3983
3964
|
nullable: true
|
|
3984
3965
|
})
|
|
3985
3966
|
], Contract.prototype, "actualStartDate", 2);
|
|
3986
3967
|
__decorateClass([
|
|
3987
|
-
(0,
|
|
3968
|
+
(0, import_typeorm31.Column)({
|
|
3988
3969
|
name: "actual_end_date",
|
|
3989
3970
|
type: "timestamp with time zone",
|
|
3990
3971
|
nullable: true
|
|
3991
3972
|
})
|
|
3992
3973
|
], Contract.prototype, "actualEndDate", 2);
|
|
3993
3974
|
__decorateClass([
|
|
3994
|
-
(0,
|
|
3975
|
+
(0, import_typeorm31.Column)({ name: "original_document_url", type: "varchar", nullable: true })
|
|
3995
3976
|
], Contract.prototype, "originalDocumentUrl", 2);
|
|
3996
3977
|
__decorateClass([
|
|
3997
|
-
(0,
|
|
3978
|
+
(0, import_typeorm31.Column)({ name: "contract_document_url", type: "varchar", nullable: true })
|
|
3998
3979
|
], Contract.prototype, "contractDocumentUrl", 2);
|
|
3999
3980
|
__decorateClass([
|
|
4000
|
-
(0,
|
|
3981
|
+
(0, import_typeorm31.Column)({
|
|
4001
3982
|
name: "client_signed_at",
|
|
4002
3983
|
type: "timestamp with time zone",
|
|
4003
3984
|
nullable: true
|
|
4004
3985
|
})
|
|
4005
3986
|
], Contract.prototype, "clientSignedAt", 2);
|
|
4006
3987
|
__decorateClass([
|
|
4007
|
-
(0,
|
|
3988
|
+
(0, import_typeorm31.Column)({ name: "freelancer_viewed", type: "boolean", default: false })
|
|
4008
3989
|
], Contract.prototype, "freelancerViewed", 2);
|
|
4009
3990
|
__decorateClass([
|
|
4010
|
-
(0,
|
|
3991
|
+
(0, import_typeorm31.Column)({
|
|
4011
3992
|
name: "freelancer_viewed_at",
|
|
4012
3993
|
type: "timestamp with time zone",
|
|
4013
3994
|
nullable: true
|
|
4014
3995
|
})
|
|
4015
3996
|
], Contract.prototype, "freelancerViewedAt", 2);
|
|
4016
3997
|
__decorateClass([
|
|
4017
|
-
(0,
|
|
3998
|
+
(0, import_typeorm31.Column)({
|
|
4018
3999
|
name: "freelancer_signed_at",
|
|
4019
4000
|
type: "timestamp with time zone",
|
|
4020
4001
|
nullable: true
|
|
4021
4002
|
})
|
|
4022
4003
|
], Contract.prototype, "freelancerSignedAt", 2);
|
|
4023
4004
|
__decorateClass([
|
|
4024
|
-
(0,
|
|
4005
|
+
(0, import_typeorm31.Column)({
|
|
4025
4006
|
name: "rejectd_at",
|
|
4026
4007
|
type: "timestamp with time zone",
|
|
4027
4008
|
nullable: true
|
|
4028
4009
|
})
|
|
4029
4010
|
], Contract.prototype, "rejectedAt", 2);
|
|
4030
4011
|
__decorateClass([
|
|
4031
|
-
(0,
|
|
4012
|
+
(0, import_typeorm31.Column)({ name: "reject_reason", type: "varchar", nullable: true })
|
|
4032
4013
|
], Contract.prototype, "rejectReason", 2);
|
|
4033
4014
|
__decorateClass([
|
|
4034
|
-
(0,
|
|
4015
|
+
(0, import_typeorm31.Column)({ name: "resend_count", type: "integer", default: 0 })
|
|
4035
4016
|
], Contract.prototype, "resendCount", 2);
|
|
4036
4017
|
__decorateClass([
|
|
4037
|
-
(0,
|
|
4018
|
+
(0, import_typeorm31.Column)({ name: "is_work_contract_sent", type: "boolean", default: false })
|
|
4038
4019
|
], Contract.prototype, "isWorkContractSent", 2);
|
|
4039
4020
|
__decorateClass([
|
|
4040
|
-
(0,
|
|
4021
|
+
(0, import_typeorm31.Column)({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
4041
4022
|
], Contract.prototype, "isEscrowDeposited", 2);
|
|
4042
4023
|
__decorateClass([
|
|
4043
|
-
(0,
|
|
4024
|
+
(0, import_typeorm31.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
|
|
4044
4025
|
], Contract.prototype, "signaturePositions", 2);
|
|
4045
4026
|
__decorateClass([
|
|
4046
|
-
(0,
|
|
4027
|
+
(0, import_typeorm31.Column)({ name: "signature_url", type: "varchar", nullable: true })
|
|
4047
4028
|
], Contract.prototype, "signatureUrl", 2);
|
|
4048
4029
|
__decorateClass([
|
|
4049
|
-
(0,
|
|
4030
|
+
(0, import_typeorm31.Column)({ name: "meta_data", type: "jsonb", nullable: true })
|
|
4050
4031
|
], Contract.prototype, "metaData", 2);
|
|
4051
4032
|
__decorateClass([
|
|
4052
|
-
(0,
|
|
4033
|
+
(0, import_typeorm31.OneToOne)(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
|
|
4053
4034
|
], Contract.prototype, "escrowWallet", 2);
|
|
4054
|
-
__decorateClass([
|
|
4055
|
-
(0, import_typeorm32.OneToOne)(() => DocuSeal, (docuseal) => docuseal.contract)
|
|
4056
|
-
], Contract.prototype, "docuseal", 2);
|
|
4057
4035
|
Contract = __decorateClass([
|
|
4058
|
-
(0,
|
|
4036
|
+
(0, import_typeorm31.Entity)("contracts")
|
|
4059
4037
|
], Contract);
|
|
4060
4038
|
|
|
4061
4039
|
// src/entities/timesheets.entity.ts
|
|
4062
|
-
var
|
|
4040
|
+
var import_typeorm32 = require("typeorm");
|
|
4063
4041
|
var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
4064
4042
|
TimesheetStatusEnum2["DRAFT"] = "DRAFT";
|
|
4065
4043
|
TimesheetStatusEnum2["SEND"] = "SEND";
|
|
@@ -4072,140 +4050,140 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
|
4072
4050
|
var Timesheet = class extends BaseEntity {
|
|
4073
4051
|
};
|
|
4074
4052
|
__decorateClass([
|
|
4075
|
-
(0,
|
|
4076
|
-
(0,
|
|
4053
|
+
(0, import_typeorm32.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
4054
|
+
(0, import_typeorm32.Index)()
|
|
4077
4055
|
], Timesheet.prototype, "jobId", 2);
|
|
4078
4056
|
__decorateClass([
|
|
4079
|
-
(0,
|
|
4080
|
-
(0,
|
|
4057
|
+
(0, import_typeorm32.ManyToOne)(() => Job, (job) => job.timesheets),
|
|
4058
|
+
(0, import_typeorm32.JoinColumn)({ name: "job_id" })
|
|
4081
4059
|
], Timesheet.prototype, "job", 2);
|
|
4082
4060
|
__decorateClass([
|
|
4083
|
-
(0,
|
|
4084
|
-
(0,
|
|
4061
|
+
(0, import_typeorm32.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
4062
|
+
(0, import_typeorm32.Index)()
|
|
4085
4063
|
], Timesheet.prototype, "clientId", 2);
|
|
4086
4064
|
__decorateClass([
|
|
4087
|
-
(0,
|
|
4088
|
-
(0,
|
|
4065
|
+
(0, import_typeorm32.ManyToOne)(() => User, (user) => user.clientTimesheets),
|
|
4066
|
+
(0, import_typeorm32.JoinColumn)({ name: "client_id" })
|
|
4089
4067
|
], Timesheet.prototype, "client", 2);
|
|
4090
4068
|
__decorateClass([
|
|
4091
|
-
(0,
|
|
4092
|
-
(0,
|
|
4069
|
+
(0, import_typeorm32.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4070
|
+
(0, import_typeorm32.Index)()
|
|
4093
4071
|
], Timesheet.prototype, "freelancerId", 2);
|
|
4094
4072
|
__decorateClass([
|
|
4095
|
-
(0,
|
|
4096
|
-
(0,
|
|
4073
|
+
(0, import_typeorm32.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
|
|
4074
|
+
(0, import_typeorm32.JoinColumn)({ name: "freelancer_id" })
|
|
4097
4075
|
], Timesheet.prototype, "freelancer", 2);
|
|
4098
4076
|
__decorateClass([
|
|
4099
|
-
(0,
|
|
4077
|
+
(0, import_typeorm32.Column)({
|
|
4100
4078
|
name: "start_date",
|
|
4101
4079
|
type: "date",
|
|
4102
4080
|
nullable: true
|
|
4103
4081
|
})
|
|
4104
4082
|
], Timesheet.prototype, "startDate", 2);
|
|
4105
4083
|
__decorateClass([
|
|
4106
|
-
(0,
|
|
4084
|
+
(0, import_typeorm32.Column)({
|
|
4107
4085
|
name: "end_date",
|
|
4108
4086
|
type: "date",
|
|
4109
4087
|
nullable: true
|
|
4110
4088
|
})
|
|
4111
4089
|
], Timesheet.prototype, "endDate", 2);
|
|
4112
4090
|
__decorateClass([
|
|
4113
|
-
(0,
|
|
4091
|
+
(0, import_typeorm32.Column)({ name: "start_time", type: "varchar", nullable: true })
|
|
4114
4092
|
], Timesheet.prototype, "startTime", 2);
|
|
4115
4093
|
__decorateClass([
|
|
4116
|
-
(0,
|
|
4094
|
+
(0, import_typeorm32.Column)({ name: "end_time", type: "varchar", nullable: true })
|
|
4117
4095
|
], Timesheet.prototype, "endTime", 2);
|
|
4118
4096
|
__decorateClass([
|
|
4119
|
-
(0,
|
|
4097
|
+
(0, import_typeorm32.Column)({ name: "worked_hours", type: "varchar", nullable: true })
|
|
4120
4098
|
], Timesheet.prototype, "workedHours", 2);
|
|
4121
4099
|
__decorateClass([
|
|
4122
|
-
(0,
|
|
4100
|
+
(0, import_typeorm32.Column)({ name: "task_id", type: "integer", nullable: true })
|
|
4123
4101
|
], Timesheet.prototype, "taskId", 2);
|
|
4124
4102
|
__decorateClass([
|
|
4125
|
-
(0,
|
|
4103
|
+
(0, import_typeorm32.Column)({ name: "task_name", type: "varchar", nullable: true })
|
|
4126
4104
|
], Timesheet.prototype, "taskName", 2);
|
|
4127
4105
|
__decorateClass([
|
|
4128
|
-
(0,
|
|
4106
|
+
(0, import_typeorm32.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4129
4107
|
], Timesheet.prototype, "description", 2);
|
|
4130
4108
|
__decorateClass([
|
|
4131
|
-
(0,
|
|
4109
|
+
(0, import_typeorm32.Column)({ name: "week_start_date", type: "date", nullable: true })
|
|
4132
4110
|
], Timesheet.prototype, "weekStartDate", 2);
|
|
4133
4111
|
__decorateClass([
|
|
4134
|
-
(0,
|
|
4112
|
+
(0, import_typeorm32.Column)({ name: "week_end_date", type: "date", nullable: true })
|
|
4135
4113
|
], Timesheet.prototype, "weekEndDate", 2);
|
|
4136
4114
|
__decorateClass([
|
|
4137
|
-
(0,
|
|
4115
|
+
(0, import_typeorm32.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
|
|
4138
4116
|
], Timesheet.prototype, "rejectedAt", 2);
|
|
4139
4117
|
__decorateClass([
|
|
4140
|
-
(0,
|
|
4118
|
+
(0, import_typeorm32.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
|
|
4141
4119
|
], Timesheet.prototype, "submittedAt", 2);
|
|
4142
4120
|
__decorateClass([
|
|
4143
|
-
(0,
|
|
4121
|
+
(0, import_typeorm32.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
|
|
4144
4122
|
], Timesheet.prototype, "resubmittedAt", 2);
|
|
4145
4123
|
__decorateClass([
|
|
4146
|
-
(0,
|
|
4124
|
+
(0, import_typeorm32.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
|
|
4147
4125
|
], Timesheet.prototype, "approvedAt", 2);
|
|
4148
4126
|
__decorateClass([
|
|
4149
|
-
(0,
|
|
4127
|
+
(0, import_typeorm32.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
|
|
4150
4128
|
], Timesheet.prototype, "status", 2);
|
|
4151
4129
|
__decorateClass([
|
|
4152
|
-
(0,
|
|
4130
|
+
(0, import_typeorm32.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
|
|
4153
4131
|
], Timesheet.prototype, "clientSendBackReason", 2);
|
|
4154
4132
|
Timesheet = __decorateClass([
|
|
4155
|
-
(0,
|
|
4133
|
+
(0, import_typeorm32.Entity)("timesheets")
|
|
4156
4134
|
], Timesheet);
|
|
4157
4135
|
|
|
4158
4136
|
// src/entities/job-location.entity.ts
|
|
4159
|
-
var
|
|
4137
|
+
var import_typeorm33 = require("typeorm");
|
|
4160
4138
|
var JobLocation = class extends BaseEntity {
|
|
4161
4139
|
};
|
|
4162
4140
|
__decorateClass([
|
|
4163
|
-
(0,
|
|
4164
|
-
(0,
|
|
4141
|
+
(0, import_typeorm33.Column)({ name: "job_id", type: "integer", nullable: false }),
|
|
4142
|
+
(0, import_typeorm33.Index)()
|
|
4165
4143
|
], JobLocation.prototype, "jobId", 2);
|
|
4166
4144
|
__decorateClass([
|
|
4167
|
-
(0,
|
|
4168
|
-
(0,
|
|
4145
|
+
(0, import_typeorm33.ManyToOne)(() => Job, (job) => job.jobLocations),
|
|
4146
|
+
(0, import_typeorm33.JoinColumn)({ name: "job_id" })
|
|
4169
4147
|
], JobLocation.prototype, "job", 2);
|
|
4170
4148
|
__decorateClass([
|
|
4171
|
-
(0,
|
|
4149
|
+
(0, import_typeorm33.Column)({ name: "country_id", type: "int", nullable: false })
|
|
4172
4150
|
], JobLocation.prototype, "countryId", 2);
|
|
4173
4151
|
__decorateClass([
|
|
4174
|
-
(0,
|
|
4152
|
+
(0, import_typeorm33.Column)({ name: "country_name", type: "varchar", nullable: true })
|
|
4175
4153
|
], JobLocation.prototype, "countryName", 2);
|
|
4176
4154
|
__decorateClass([
|
|
4177
|
-
(0,
|
|
4178
|
-
(0,
|
|
4155
|
+
(0, import_typeorm33.ManyToOne)(() => Country),
|
|
4156
|
+
(0, import_typeorm33.JoinColumn)({ name: "country_id" })
|
|
4179
4157
|
], JobLocation.prototype, "country", 2);
|
|
4180
4158
|
__decorateClass([
|
|
4181
|
-
(0,
|
|
4159
|
+
(0, import_typeorm33.Column)({ name: "state_id", type: "int", nullable: false })
|
|
4182
4160
|
], JobLocation.prototype, "stateId", 2);
|
|
4183
4161
|
__decorateClass([
|
|
4184
|
-
(0,
|
|
4162
|
+
(0, import_typeorm33.Column)({ name: "state_name", type: "varchar", nullable: true })
|
|
4185
4163
|
], JobLocation.prototype, "stateName", 2);
|
|
4186
4164
|
__decorateClass([
|
|
4187
|
-
(0,
|
|
4188
|
-
(0,
|
|
4165
|
+
(0, import_typeorm33.ManyToOne)(() => State),
|
|
4166
|
+
(0, import_typeorm33.JoinColumn)({ name: "state_id" })
|
|
4189
4167
|
], JobLocation.prototype, "state", 2);
|
|
4190
4168
|
__decorateClass([
|
|
4191
|
-
(0,
|
|
4169
|
+
(0, import_typeorm33.Column)({ name: "city_id", type: "int", nullable: false })
|
|
4192
4170
|
], JobLocation.prototype, "cityId", 2);
|
|
4193
4171
|
__decorateClass([
|
|
4194
|
-
(0,
|
|
4172
|
+
(0, import_typeorm33.Column)({ name: "city_name", type: "varchar", nullable: true })
|
|
4195
4173
|
], JobLocation.prototype, "cityName", 2);
|
|
4196
4174
|
__decorateClass([
|
|
4197
|
-
(0,
|
|
4198
|
-
(0,
|
|
4175
|
+
(0, import_typeorm33.ManyToOne)(() => City),
|
|
4176
|
+
(0, import_typeorm33.JoinColumn)({ name: "city_id" })
|
|
4199
4177
|
], JobLocation.prototype, "city", 2);
|
|
4200
4178
|
__decorateClass([
|
|
4201
|
-
(0,
|
|
4179
|
+
(0, import_typeorm33.Column)({ name: "location_wise_openings", type: "int", default: 0 })
|
|
4202
4180
|
], JobLocation.prototype, "locationWiseOpenings", 2);
|
|
4203
4181
|
JobLocation = __decorateClass([
|
|
4204
|
-
(0,
|
|
4182
|
+
(0, import_typeorm33.Entity)("job_locations")
|
|
4205
4183
|
], JobLocation);
|
|
4206
4184
|
|
|
4207
4185
|
// src/entities/rating.entity.ts
|
|
4208
|
-
var
|
|
4186
|
+
var import_typeorm34 = require("typeorm");
|
|
4209
4187
|
var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
4210
4188
|
RatingTypeEnum2["FREELANCER_TO_CLIENT"] = "FREELANCER_TO_CLIENT";
|
|
4211
4189
|
RatingTypeEnum2["CLIENT_TO_FREELANCER"] = "CLIENT_TO_FREELANCER";
|
|
@@ -4214,31 +4192,31 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
4214
4192
|
var Rating = class extends BaseEntity {
|
|
4215
4193
|
};
|
|
4216
4194
|
__decorateClass([
|
|
4217
|
-
(0,
|
|
4218
|
-
(0,
|
|
4195
|
+
(0, import_typeorm34.Column)({ name: "reviewer_id", type: "integer" }),
|
|
4196
|
+
(0, import_typeorm34.Index)()
|
|
4219
4197
|
], Rating.prototype, "reviewerId", 2);
|
|
4220
4198
|
__decorateClass([
|
|
4221
|
-
(0,
|
|
4222
|
-
(0,
|
|
4199
|
+
(0, import_typeorm34.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
4200
|
+
(0, import_typeorm34.JoinColumn)({ name: "reviewer_id" })
|
|
4223
4201
|
], Rating.prototype, "reviewer", 2);
|
|
4224
4202
|
__decorateClass([
|
|
4225
|
-
(0,
|
|
4226
|
-
(0,
|
|
4203
|
+
(0, import_typeorm34.Column)({ name: "reviewee_id", type: "integer" }),
|
|
4204
|
+
(0, import_typeorm34.Index)()
|
|
4227
4205
|
], Rating.prototype, "revieweeId", 2);
|
|
4228
4206
|
__decorateClass([
|
|
4229
|
-
(0,
|
|
4230
|
-
(0,
|
|
4207
|
+
(0, import_typeorm34.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
4208
|
+
(0, import_typeorm34.JoinColumn)({ name: "reviewee_id" })
|
|
4231
4209
|
], Rating.prototype, "reviewee", 2);
|
|
4232
4210
|
__decorateClass([
|
|
4233
|
-
(0,
|
|
4234
|
-
(0,
|
|
4211
|
+
(0, import_typeorm34.Column)({ name: "job_id", type: "integer" }),
|
|
4212
|
+
(0, import_typeorm34.Index)()
|
|
4235
4213
|
], Rating.prototype, "jobId", 2);
|
|
4236
4214
|
__decorateClass([
|
|
4237
|
-
(0,
|
|
4238
|
-
(0,
|
|
4215
|
+
(0, import_typeorm34.ManyToOne)(() => Job, (job) => job.ratings, { onDelete: "CASCADE" }),
|
|
4216
|
+
(0, import_typeorm34.JoinColumn)({ name: "job_id" })
|
|
4239
4217
|
], Rating.prototype, "job", 2);
|
|
4240
4218
|
__decorateClass([
|
|
4241
|
-
(0,
|
|
4219
|
+
(0, import_typeorm34.Column)({
|
|
4242
4220
|
name: "rating_type",
|
|
4243
4221
|
type: "enum",
|
|
4244
4222
|
enum: RatingTypeEnum,
|
|
@@ -4246,67 +4224,67 @@ __decorateClass([
|
|
|
4246
4224
|
})
|
|
4247
4225
|
], Rating.prototype, "ratingType", 2);
|
|
4248
4226
|
__decorateClass([
|
|
4249
|
-
(0,
|
|
4227
|
+
(0, import_typeorm34.Column)({ name: "reviewer_comment", type: "text", nullable: true })
|
|
4250
4228
|
], Rating.prototype, "reviewerComment", 2);
|
|
4251
4229
|
__decorateClass([
|
|
4252
|
-
(0,
|
|
4230
|
+
(0, import_typeorm34.Column)({
|
|
4253
4231
|
name: "overall_experience",
|
|
4254
4232
|
type: "float",
|
|
4255
4233
|
default: 0
|
|
4256
4234
|
})
|
|
4257
4235
|
], Rating.prototype, "overAllExperience", 2);
|
|
4258
4236
|
__decorateClass([
|
|
4259
|
-
(0,
|
|
4237
|
+
(0, import_typeorm34.Column)({
|
|
4260
4238
|
name: "work_quality",
|
|
4261
4239
|
type: "float",
|
|
4262
4240
|
default: 0
|
|
4263
4241
|
})
|
|
4264
4242
|
], Rating.prototype, "workQuality", 2);
|
|
4265
4243
|
__decorateClass([
|
|
4266
|
-
(0,
|
|
4244
|
+
(0, import_typeorm34.Column)({
|
|
4267
4245
|
name: "one_time_delivery",
|
|
4268
4246
|
type: "float",
|
|
4269
4247
|
default: 0
|
|
4270
4248
|
})
|
|
4271
4249
|
], Rating.prototype, "oneTimeDelivery", 2);
|
|
4272
4250
|
__decorateClass([
|
|
4273
|
-
(0,
|
|
4251
|
+
(0, import_typeorm34.Column)({
|
|
4274
4252
|
name: "understaning",
|
|
4275
4253
|
type: "float",
|
|
4276
4254
|
default: 0
|
|
4277
4255
|
})
|
|
4278
4256
|
], Rating.prototype, "understaning", 2);
|
|
4279
4257
|
__decorateClass([
|
|
4280
|
-
(0,
|
|
4258
|
+
(0, import_typeorm34.Column)({
|
|
4281
4259
|
name: "communication",
|
|
4282
4260
|
type: "float",
|
|
4283
4261
|
default: 0
|
|
4284
4262
|
})
|
|
4285
4263
|
], Rating.prototype, "communication", 2);
|
|
4286
4264
|
__decorateClass([
|
|
4287
|
-
(0,
|
|
4265
|
+
(0, import_typeorm34.Column)({
|
|
4288
4266
|
name: "skill_utilized",
|
|
4289
4267
|
type: "float",
|
|
4290
4268
|
default: 0
|
|
4291
4269
|
})
|
|
4292
4270
|
], Rating.prototype, "skillUtilized", 2);
|
|
4293
4271
|
__decorateClass([
|
|
4294
|
-
(0,
|
|
4272
|
+
(0, import_typeorm34.Column)({ name: "communication_clarity", type: "float", default: 0 })
|
|
4295
4273
|
], Rating.prototype, "communicationClarity", 2);
|
|
4296
4274
|
__decorateClass([
|
|
4297
|
-
(0,
|
|
4275
|
+
(0, import_typeorm34.Column)({ name: "requirements_clarity", type: "float", default: 0 })
|
|
4298
4276
|
], Rating.prototype, "requirementsClarity", 2);
|
|
4299
4277
|
__decorateClass([
|
|
4300
|
-
(0,
|
|
4278
|
+
(0, import_typeorm34.Column)({ name: "responsiveness", type: "float", default: 0 })
|
|
4301
4279
|
], Rating.prototype, "responsiveness", 2);
|
|
4302
4280
|
__decorateClass([
|
|
4303
|
-
(0,
|
|
4281
|
+
(0, import_typeorm34.Column)({ name: "payment_promptness", type: "float", default: 0 })
|
|
4304
4282
|
], Rating.prototype, "paymentPromptness", 2);
|
|
4305
4283
|
__decorateClass([
|
|
4306
|
-
(0,
|
|
4284
|
+
(0, import_typeorm34.Column)({ name: "responsibilities_and_expectations", type: "float", default: 0 })
|
|
4307
4285
|
], Rating.prototype, "responsibilitiesAndExpectations", 2);
|
|
4308
4286
|
Rating = __decorateClass([
|
|
4309
|
-
(0,
|
|
4287
|
+
(0, import_typeorm34.Entity)("ratings")
|
|
4310
4288
|
], Rating);
|
|
4311
4289
|
|
|
4312
4290
|
// src/entities/job.entity.ts
|
|
@@ -4361,58 +4339,58 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
4361
4339
|
var Job = class extends BaseEntity {
|
|
4362
4340
|
};
|
|
4363
4341
|
__decorateClass([
|
|
4364
|
-
(0,
|
|
4342
|
+
(0, import_typeorm35.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
4365
4343
|
], Job.prototype, "jobId", 2);
|
|
4366
4344
|
// individual index to find jobs by user
|
|
4367
4345
|
__decorateClass([
|
|
4368
|
-
(0,
|
|
4369
|
-
(0,
|
|
4346
|
+
(0, import_typeorm35.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4347
|
+
(0, import_typeorm35.Index)()
|
|
4370
4348
|
], Job.prototype, "userId", 2);
|
|
4371
4349
|
__decorateClass([
|
|
4372
|
-
(0,
|
|
4373
|
-
(0,
|
|
4350
|
+
(0, import_typeorm35.ManyToOne)(() => User, (user) => user.jobs),
|
|
4351
|
+
(0, import_typeorm35.JoinColumn)({ name: "user_id" })
|
|
4374
4352
|
], Job.prototype, "user", 2);
|
|
4375
4353
|
__decorateClass([
|
|
4376
|
-
(0,
|
|
4354
|
+
(0, import_typeorm35.Column)({ name: "country_id", type: "int", nullable: true })
|
|
4377
4355
|
], Job.prototype, "countryId", 2);
|
|
4378
4356
|
__decorateClass([
|
|
4379
|
-
(0,
|
|
4380
|
-
(0,
|
|
4357
|
+
(0, import_typeorm35.ManyToOne)(() => Country),
|
|
4358
|
+
(0, import_typeorm35.JoinColumn)({ name: "country_id" })
|
|
4381
4359
|
], Job.prototype, "country", 2);
|
|
4382
4360
|
__decorateClass([
|
|
4383
|
-
(0,
|
|
4361
|
+
(0, import_typeorm35.Column)({ name: "state_id", type: "int", nullable: true })
|
|
4384
4362
|
], Job.prototype, "stateId", 2);
|
|
4385
4363
|
__decorateClass([
|
|
4386
|
-
(0,
|
|
4387
|
-
(0,
|
|
4364
|
+
(0, import_typeorm35.ManyToOne)(() => State),
|
|
4365
|
+
(0, import_typeorm35.JoinColumn)({ name: "state_id" })
|
|
4388
4366
|
], Job.prototype, "state", 2);
|
|
4389
4367
|
__decorateClass([
|
|
4390
|
-
(0,
|
|
4368
|
+
(0, import_typeorm35.Column)({ name: "city_id", type: "int", nullable: true })
|
|
4391
4369
|
], Job.prototype, "cityId", 2);
|
|
4392
4370
|
__decorateClass([
|
|
4393
|
-
(0,
|
|
4394
|
-
(0,
|
|
4371
|
+
(0, import_typeorm35.ManyToOne)(() => City),
|
|
4372
|
+
(0, import_typeorm35.JoinColumn)({ name: "city_id" })
|
|
4395
4373
|
], Job.prototype, "city", 2);
|
|
4396
4374
|
__decorateClass([
|
|
4397
|
-
(0,
|
|
4375
|
+
(0, import_typeorm35.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
4398
4376
|
], Job.prototype, "jobRole", 2);
|
|
4399
4377
|
__decorateClass([
|
|
4400
|
-
(0,
|
|
4378
|
+
(0, import_typeorm35.Column)({ name: "job_role_canonical_name", type: "varchar", nullable: true })
|
|
4401
4379
|
], Job.prototype, "jobRoleCanonicalName", 2);
|
|
4402
4380
|
__decorateClass([
|
|
4403
|
-
(0,
|
|
4381
|
+
(0, import_typeorm35.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
4404
4382
|
], Job.prototype, "projectName", 2);
|
|
4405
4383
|
__decorateClass([
|
|
4406
|
-
(0,
|
|
4384
|
+
(0, import_typeorm35.Column)({ name: "note", type: "varchar", nullable: true })
|
|
4407
4385
|
], Job.prototype, "note", 2);
|
|
4408
4386
|
__decorateClass([
|
|
4409
|
-
(0,
|
|
4387
|
+
(0, import_typeorm35.Column)({ name: "openings", type: "integer", default: 0 })
|
|
4410
4388
|
], Job.prototype, "openings", 2);
|
|
4411
4389
|
__decorateClass([
|
|
4412
|
-
(0,
|
|
4390
|
+
(0, import_typeorm35.Column)({ name: "utilised_openings", type: "integer", default: 0 })
|
|
4413
4391
|
], Job.prototype, "utilisedOpenings", 2);
|
|
4414
4392
|
__decorateClass([
|
|
4415
|
-
(0,
|
|
4393
|
+
(0, import_typeorm35.Column)({
|
|
4416
4394
|
name: "location",
|
|
4417
4395
|
type: "enum",
|
|
4418
4396
|
enum: JobLocationEnum,
|
|
@@ -4420,7 +4398,7 @@ __decorateClass([
|
|
|
4420
4398
|
})
|
|
4421
4399
|
], Job.prototype, "location", 2);
|
|
4422
4400
|
__decorateClass([
|
|
4423
|
-
(0,
|
|
4401
|
+
(0, import_typeorm35.Column)({
|
|
4424
4402
|
name: "type_of_employment",
|
|
4425
4403
|
type: "enum",
|
|
4426
4404
|
enum: TypeOfEmploymentEnum,
|
|
@@ -4428,7 +4406,7 @@ __decorateClass([
|
|
|
4428
4406
|
})
|
|
4429
4407
|
], Job.prototype, "typeOfEmployment", 2);
|
|
4430
4408
|
__decorateClass([
|
|
4431
|
-
(0,
|
|
4409
|
+
(0, import_typeorm35.Column)({
|
|
4432
4410
|
name: "billing_cycle",
|
|
4433
4411
|
type: "enum",
|
|
4434
4412
|
enum: BillingCycleEnum,
|
|
@@ -4436,10 +4414,10 @@ __decorateClass([
|
|
|
4436
4414
|
})
|
|
4437
4415
|
], Job.prototype, "billingCycle", 2);
|
|
4438
4416
|
__decorateClass([
|
|
4439
|
-
(0,
|
|
4417
|
+
(0, import_typeorm35.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
4440
4418
|
], Job.prototype, "academicQualification", 2);
|
|
4441
4419
|
__decorateClass([
|
|
4442
|
-
(0,
|
|
4420
|
+
(0, import_typeorm35.Column)({
|
|
4443
4421
|
name: "type_of_experience",
|
|
4444
4422
|
type: "enum",
|
|
4445
4423
|
enum: typeOfExperienceEnum,
|
|
@@ -4447,22 +4425,22 @@ __decorateClass([
|
|
|
4447
4425
|
})
|
|
4448
4426
|
], Job.prototype, "typeOfExperience", 2);
|
|
4449
4427
|
__decorateClass([
|
|
4450
|
-
(0,
|
|
4428
|
+
(0, import_typeorm35.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
4451
4429
|
], Job.prototype, "yearsOfExperience", 2);
|
|
4452
4430
|
__decorateClass([
|
|
4453
|
-
(0,
|
|
4431
|
+
(0, import_typeorm35.Column)({ name: "years_of_experience_from", type: "varchar", nullable: true })
|
|
4454
4432
|
], Job.prototype, "yearsOfExperienceFrom", 2);
|
|
4455
4433
|
__decorateClass([
|
|
4456
|
-
(0,
|
|
4434
|
+
(0, import_typeorm35.Column)({ name: "years_of_experience_to", type: "varchar", nullable: true })
|
|
4457
4435
|
], Job.prototype, "yearsOfExperienceTo", 2);
|
|
4458
4436
|
__decorateClass([
|
|
4459
|
-
(0,
|
|
4437
|
+
(0, import_typeorm35.Column)({ name: "business_industry", type: "varchar", nullable: true })
|
|
4460
4438
|
], Job.prototype, "businessIndustry", 2);
|
|
4461
4439
|
__decorateClass([
|
|
4462
|
-
(0,
|
|
4440
|
+
(0, import_typeorm35.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
4463
4441
|
], Job.prototype, "currency", 2);
|
|
4464
4442
|
__decorateClass([
|
|
4465
|
-
(0,
|
|
4443
|
+
(0, import_typeorm35.Column)({
|
|
4466
4444
|
name: "expected_salary_from",
|
|
4467
4445
|
type: "decimal",
|
|
4468
4446
|
precision: 10,
|
|
@@ -4471,14 +4449,14 @@ __decorateClass([
|
|
|
4471
4449
|
})
|
|
4472
4450
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
4473
4451
|
__decorateClass([
|
|
4474
|
-
(0,
|
|
4452
|
+
(0, import_typeorm35.Column)({
|
|
4475
4453
|
name: "hide_expected_salary_from",
|
|
4476
4454
|
type: "boolean",
|
|
4477
4455
|
default: false
|
|
4478
4456
|
})
|
|
4479
4457
|
], Job.prototype, "hideExpectedSalaryFrom", 2);
|
|
4480
4458
|
__decorateClass([
|
|
4481
|
-
(0,
|
|
4459
|
+
(0, import_typeorm35.Column)({
|
|
4482
4460
|
name: "expected_salary_to",
|
|
4483
4461
|
type: "decimal",
|
|
4484
4462
|
precision: 10,
|
|
@@ -4487,14 +4465,14 @@ __decorateClass([
|
|
|
4487
4465
|
})
|
|
4488
4466
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
4489
4467
|
__decorateClass([
|
|
4490
|
-
(0,
|
|
4468
|
+
(0, import_typeorm35.Column)({
|
|
4491
4469
|
name: "hide_expected_salary_to",
|
|
4492
4470
|
type: "boolean",
|
|
4493
4471
|
default: false
|
|
4494
4472
|
})
|
|
4495
4473
|
], Job.prototype, "hideExpectedSalaryTo", 2);
|
|
4496
4474
|
__decorateClass([
|
|
4497
|
-
(0,
|
|
4475
|
+
(0, import_typeorm35.Column)({
|
|
4498
4476
|
name: "expected_annual_budget_from",
|
|
4499
4477
|
type: "decimal",
|
|
4500
4478
|
precision: 10,
|
|
@@ -4503,14 +4481,14 @@ __decorateClass([
|
|
|
4503
4481
|
})
|
|
4504
4482
|
], Job.prototype, "expectedAnnualBudgetFrom", 2);
|
|
4505
4483
|
__decorateClass([
|
|
4506
|
-
(0,
|
|
4484
|
+
(0, import_typeorm35.Column)({
|
|
4507
4485
|
name: "hide_expected_annual_budget_from",
|
|
4508
4486
|
type: "boolean",
|
|
4509
4487
|
default: false
|
|
4510
4488
|
})
|
|
4511
4489
|
], Job.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
4512
4490
|
__decorateClass([
|
|
4513
|
-
(0,
|
|
4491
|
+
(0, import_typeorm35.Column)({
|
|
4514
4492
|
name: "expected_annual_budget_to",
|
|
4515
4493
|
type: "decimal",
|
|
4516
4494
|
precision: 10,
|
|
@@ -4519,32 +4497,32 @@ __decorateClass([
|
|
|
4519
4497
|
})
|
|
4520
4498
|
], Job.prototype, "expectedAnnualBudgetTo", 2);
|
|
4521
4499
|
__decorateClass([
|
|
4522
|
-
(0,
|
|
4500
|
+
(0, import_typeorm35.Column)({
|
|
4523
4501
|
name: "hide_expected_annual_budget_to",
|
|
4524
4502
|
type: "boolean",
|
|
4525
4503
|
default: false
|
|
4526
4504
|
})
|
|
4527
4505
|
], Job.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
4528
4506
|
__decorateClass([
|
|
4529
|
-
(0,
|
|
4507
|
+
(0, import_typeorm35.Column)({ name: "years", type: "varchar", nullable: true })
|
|
4530
4508
|
], Job.prototype, "years", 2);
|
|
4531
4509
|
__decorateClass([
|
|
4532
|
-
(0,
|
|
4510
|
+
(0, import_typeorm35.Column)({ name: "months", type: "varchar", nullable: true })
|
|
4533
4511
|
], Job.prototype, "months", 2);
|
|
4534
4512
|
__decorateClass([
|
|
4535
|
-
(0,
|
|
4513
|
+
(0, import_typeorm35.Column)({ name: "weeks", type: "varchar", nullable: true })
|
|
4536
4514
|
], Job.prototype, "weeks", 2);
|
|
4537
4515
|
__decorateClass([
|
|
4538
|
-
(0,
|
|
4516
|
+
(0, import_typeorm35.Column)({ name: "days", type: "varchar", nullable: true })
|
|
4539
4517
|
], Job.prototype, "days", 2);
|
|
4540
4518
|
__decorateClass([
|
|
4541
|
-
(0,
|
|
4519
|
+
(0, import_typeorm35.Column)({ name: "tentative_start_date", type: "date", nullable: true })
|
|
4542
4520
|
], Job.prototype, "tentativeStartDate", 2);
|
|
4543
4521
|
__decorateClass([
|
|
4544
|
-
(0,
|
|
4522
|
+
(0, import_typeorm35.Column)({ name: "tentative_end_date", type: "date", nullable: true })
|
|
4545
4523
|
], Job.prototype, "tentativeEndDate", 2);
|
|
4546
4524
|
__decorateClass([
|
|
4547
|
-
(0,
|
|
4525
|
+
(0, import_typeorm35.Column)({
|
|
4548
4526
|
name: "duration_type",
|
|
4549
4527
|
type: "enum",
|
|
4550
4528
|
enum: DurationTypeEnum,
|
|
@@ -4552,10 +4530,10 @@ __decorateClass([
|
|
|
4552
4530
|
})
|
|
4553
4531
|
], Job.prototype, "durationType", 2);
|
|
4554
4532
|
__decorateClass([
|
|
4555
|
-
(0,
|
|
4533
|
+
(0, import_typeorm35.Column)({ name: "duration", type: "varchar", nullable: true })
|
|
4556
4534
|
], Job.prototype, "duration", 2);
|
|
4557
4535
|
__decorateClass([
|
|
4558
|
-
(0,
|
|
4536
|
+
(0, import_typeorm35.Column)({
|
|
4559
4537
|
name: "number_of_hours",
|
|
4560
4538
|
type: "decimal",
|
|
4561
4539
|
precision: 4,
|
|
@@ -4564,13 +4542,13 @@ __decorateClass([
|
|
|
4564
4542
|
})
|
|
4565
4543
|
], Job.prototype, "numberOfHours", 2);
|
|
4566
4544
|
__decorateClass([
|
|
4567
|
-
(0,
|
|
4545
|
+
(0, import_typeorm35.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4568
4546
|
], Job.prototype, "description", 2);
|
|
4569
4547
|
__decorateClass([
|
|
4570
|
-
(0,
|
|
4548
|
+
(0, import_typeorm35.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
4571
4549
|
], Job.prototype, "additionalComment", 2);
|
|
4572
4550
|
__decorateClass([
|
|
4573
|
-
(0,
|
|
4551
|
+
(0, import_typeorm35.Column)({
|
|
4574
4552
|
name: "onboarding_tat",
|
|
4575
4553
|
type: "varchar",
|
|
4576
4554
|
length: 50,
|
|
@@ -4578,14 +4556,14 @@ __decorateClass([
|
|
|
4578
4556
|
})
|
|
4579
4557
|
], Job.prototype, "onboardingTat", 2);
|
|
4580
4558
|
__decorateClass([
|
|
4581
|
-
(0,
|
|
4559
|
+
(0, import_typeorm35.Column)({
|
|
4582
4560
|
name: "candidate_communication_skills",
|
|
4583
4561
|
type: "varchar",
|
|
4584
4562
|
nullable: true
|
|
4585
4563
|
})
|
|
4586
4564
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
4587
4565
|
__decorateClass([
|
|
4588
|
-
(0,
|
|
4566
|
+
(0, import_typeorm35.Column)({
|
|
4589
4567
|
name: "step_completed",
|
|
4590
4568
|
type: "enum",
|
|
4591
4569
|
enum: Step,
|
|
@@ -4593,7 +4571,7 @@ __decorateClass([
|
|
|
4593
4571
|
})
|
|
4594
4572
|
], Job.prototype, "stepCompleted", 2);
|
|
4595
4573
|
__decorateClass([
|
|
4596
|
-
(0,
|
|
4574
|
+
(0, import_typeorm35.Column)({
|
|
4597
4575
|
name: "status",
|
|
4598
4576
|
type: "enum",
|
|
4599
4577
|
enum: JobStatusEnum,
|
|
@@ -4601,43 +4579,43 @@ __decorateClass([
|
|
|
4601
4579
|
})
|
|
4602
4580
|
], Job.prototype, "status", 2);
|
|
4603
4581
|
__decorateClass([
|
|
4604
|
-
(0,
|
|
4582
|
+
(0, import_typeorm35.Column)({ name: "viewed_count", type: "integer", default: 0 })
|
|
4605
4583
|
], Job.prototype, "viewedCount", 2);
|
|
4606
4584
|
__decorateClass([
|
|
4607
|
-
(0,
|
|
4585
|
+
(0, import_typeorm35.Column)({ name: "application_count", type: "integer", default: 0 })
|
|
4608
4586
|
], Job.prototype, "applicationCount", 2);
|
|
4609
4587
|
__decorateClass([
|
|
4610
|
-
(0,
|
|
4588
|
+
(0, import_typeorm35.Column)({ name: "is_contract_signed", type: "boolean", default: false })
|
|
4611
4589
|
], Job.prototype, "isContractSigned", 2);
|
|
4612
4590
|
__decorateClass([
|
|
4613
|
-
(0,
|
|
4591
|
+
(0, import_typeorm35.Column)({ name: "is_interview_created", type: "boolean", default: false })
|
|
4614
4592
|
], Job.prototype, "isInterviewCreated", 2);
|
|
4615
4593
|
__decorateClass([
|
|
4616
|
-
(0,
|
|
4594
|
+
(0, import_typeorm35.Column)({ name: "is_job_created_via_ai", type: "boolean", default: false })
|
|
4617
4595
|
], Job.prototype, "isJobCreatedViaAI", 2);
|
|
4618
4596
|
__decorateClass([
|
|
4619
|
-
(0,
|
|
4597
|
+
(0, import_typeorm35.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
4620
4598
|
], Job.prototype, "interviewInvites", 2);
|
|
4621
4599
|
__decorateClass([
|
|
4622
|
-
(0,
|
|
4600
|
+
(0, import_typeorm35.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
4623
4601
|
], Job.prototype, "jobSkills", 2);
|
|
4624
4602
|
__decorateClass([
|
|
4625
|
-
(0,
|
|
4603
|
+
(0, import_typeorm35.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
4626
4604
|
cascade: true
|
|
4627
4605
|
})
|
|
4628
4606
|
], Job.prototype, "jobApplications", 2);
|
|
4629
4607
|
__decorateClass([
|
|
4630
|
-
(0,
|
|
4608
|
+
(0, import_typeorm35.OneToMany)(() => Interview, (interview) => interview.job, {
|
|
4631
4609
|
cascade: true
|
|
4632
4610
|
})
|
|
4633
4611
|
], Job.prototype, "interviews", 2);
|
|
4634
4612
|
__decorateClass([
|
|
4635
|
-
(0,
|
|
4613
|
+
(0, import_typeorm35.OneToMany)(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
|
|
4636
4614
|
cascade: true
|
|
4637
4615
|
})
|
|
4638
4616
|
], Job.prototype, "f2fInterviews", 2);
|
|
4639
4617
|
__decorateClass([
|
|
4640
|
-
(0,
|
|
4618
|
+
(0, import_typeorm35.OneToMany)(
|
|
4641
4619
|
() => JobRecommendation,
|
|
4642
4620
|
(jobRecommendation) => jobRecommendation.job,
|
|
4643
4621
|
{
|
|
@@ -4646,59 +4624,59 @@ __decorateClass([
|
|
|
4646
4624
|
)
|
|
4647
4625
|
], Job.prototype, "recommendations", 2);
|
|
4648
4626
|
__decorateClass([
|
|
4649
|
-
(0,
|
|
4627
|
+
(0, import_typeorm35.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.job, {
|
|
4650
4628
|
cascade: true
|
|
4651
4629
|
})
|
|
4652
4630
|
], Job.prototype, "contractSummaries", 2);
|
|
4653
4631
|
__decorateClass([
|
|
4654
|
-
(0,
|
|
4632
|
+
(0, import_typeorm35.OneToMany)(() => Contract, (contract) => contract.job, {
|
|
4655
4633
|
cascade: true
|
|
4656
4634
|
})
|
|
4657
4635
|
], Job.prototype, "contracts", 2);
|
|
4658
4636
|
__decorateClass([
|
|
4659
|
-
(0,
|
|
4637
|
+
(0, import_typeorm35.OneToMany)(() => Hiring, (hiring) => hiring.job, {
|
|
4660
4638
|
cascade: true
|
|
4661
4639
|
})
|
|
4662
4640
|
], Job.prototype, "hirings", 2);
|
|
4663
4641
|
__decorateClass([
|
|
4664
|
-
(0,
|
|
4642
|
+
(0, import_typeorm35.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
|
|
4665
4643
|
cascade: true
|
|
4666
4644
|
})
|
|
4667
4645
|
], Job.prototype, "escrowWallets", 2);
|
|
4668
4646
|
__decorateClass([
|
|
4669
|
-
(0,
|
|
4647
|
+
(0, import_typeorm35.OneToMany)(() => Timesheet, (timesheet) => timesheet.job, {
|
|
4670
4648
|
cascade: true
|
|
4671
4649
|
})
|
|
4672
4650
|
], Job.prototype, "timesheets", 2);
|
|
4673
4651
|
__decorateClass([
|
|
4674
|
-
(0,
|
|
4652
|
+
(0, import_typeorm35.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
|
|
4675
4653
|
cascade: true
|
|
4676
4654
|
})
|
|
4677
4655
|
], Job.prototype, "timesheetLine", 2);
|
|
4678
4656
|
__decorateClass([
|
|
4679
|
-
(0,
|
|
4657
|
+
(0, import_typeorm35.OneToMany)(() => Invoice, (invoice) => invoice.job, {
|
|
4680
4658
|
cascade: true
|
|
4681
4659
|
})
|
|
4682
4660
|
], Job.prototype, "invoice", 2);
|
|
4683
4661
|
__decorateClass([
|
|
4684
|
-
(0,
|
|
4662
|
+
(0, import_typeorm35.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
|
|
4685
4663
|
], Job.prototype, "clientCandidatePreferences", 2);
|
|
4686
4664
|
__decorateClass([
|
|
4687
|
-
(0,
|
|
4665
|
+
(0, import_typeorm35.OneToMany)(() => JobLocation, (jobLocation) => jobLocation.job, {
|
|
4688
4666
|
cascade: true
|
|
4689
4667
|
})
|
|
4690
4668
|
], Job.prototype, "jobLocations", 2);
|
|
4691
4669
|
__decorateClass([
|
|
4692
|
-
(0,
|
|
4670
|
+
(0, import_typeorm35.OneToMany)(() => Rating, (rating) => rating.job, {
|
|
4693
4671
|
cascade: true
|
|
4694
4672
|
})
|
|
4695
4673
|
], Job.prototype, "ratings", 2);
|
|
4696
4674
|
Job = __decorateClass([
|
|
4697
|
-
(0,
|
|
4675
|
+
(0, import_typeorm35.Entity)("jobs")
|
|
4698
4676
|
], Job);
|
|
4699
4677
|
|
|
4700
4678
|
// src/entities/bank-details.entity.ts
|
|
4701
|
-
var
|
|
4679
|
+
var import_typeorm36 = require("typeorm");
|
|
4702
4680
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
4703
4681
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
4704
4682
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -4713,51 +4691,51 @@ var BankDetail = class extends BaseEntity {
|
|
|
4713
4691
|
};
|
|
4714
4692
|
// individual index to find bank details by user
|
|
4715
4693
|
__decorateClass([
|
|
4716
|
-
(0,
|
|
4717
|
-
(0,
|
|
4694
|
+
(0, import_typeorm36.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4695
|
+
(0, import_typeorm36.Index)()
|
|
4718
4696
|
], BankDetail.prototype, "userId", 2);
|
|
4719
4697
|
__decorateClass([
|
|
4720
|
-
(0,
|
|
4721
|
-
(0,
|
|
4698
|
+
(0, import_typeorm36.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
4699
|
+
(0, import_typeorm36.JoinColumn)({ name: "user_id" })
|
|
4722
4700
|
], BankDetail.prototype, "user", 2);
|
|
4723
4701
|
__decorateClass([
|
|
4724
|
-
(0,
|
|
4702
|
+
(0, import_typeorm36.Column)({ name: "name", type: "varchar", nullable: true })
|
|
4725
4703
|
], BankDetail.prototype, "name", 2);
|
|
4726
4704
|
__decorateClass([
|
|
4727
|
-
(0,
|
|
4705
|
+
(0, import_typeorm36.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4728
4706
|
], BankDetail.prototype, "mobileCode", 2);
|
|
4729
4707
|
__decorateClass([
|
|
4730
|
-
(0,
|
|
4708
|
+
(0, import_typeorm36.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
4731
4709
|
], BankDetail.prototype, "mobile", 2);
|
|
4732
4710
|
__decorateClass([
|
|
4733
|
-
(0,
|
|
4711
|
+
(0, import_typeorm36.Column)({ name: "email", type: "varchar" })
|
|
4734
4712
|
], BankDetail.prototype, "email", 2);
|
|
4735
4713
|
__decorateClass([
|
|
4736
|
-
(0,
|
|
4714
|
+
(0, import_typeorm36.Column)({ name: "address", type: "varchar", nullable: true })
|
|
4737
4715
|
], BankDetail.prototype, "address", 2);
|
|
4738
4716
|
__decorateClass([
|
|
4739
|
-
(0,
|
|
4717
|
+
(0, import_typeorm36.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
4740
4718
|
], BankDetail.prototype, "accountNumber", 2);
|
|
4741
4719
|
__decorateClass([
|
|
4742
|
-
(0,
|
|
4720
|
+
(0, import_typeorm36.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
4743
4721
|
], BankDetail.prototype, "bankName", 2);
|
|
4744
4722
|
__decorateClass([
|
|
4745
|
-
(0,
|
|
4723
|
+
(0, import_typeorm36.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
4746
4724
|
], BankDetail.prototype, "ifscCode", 2);
|
|
4747
4725
|
__decorateClass([
|
|
4748
|
-
(0,
|
|
4726
|
+
(0, import_typeorm36.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
4749
4727
|
], BankDetail.prototype, "branchName", 2);
|
|
4750
4728
|
__decorateClass([
|
|
4751
|
-
(0,
|
|
4729
|
+
(0, import_typeorm36.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
4752
4730
|
], BankDetail.prototype, "routingNo", 2);
|
|
4753
4731
|
__decorateClass([
|
|
4754
|
-
(0,
|
|
4732
|
+
(0, import_typeorm36.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
4755
4733
|
], BankDetail.prototype, "abaNumber", 2);
|
|
4756
4734
|
__decorateClass([
|
|
4757
|
-
(0,
|
|
4735
|
+
(0, import_typeorm36.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
4758
4736
|
], BankDetail.prototype, "iban", 2);
|
|
4759
4737
|
__decorateClass([
|
|
4760
|
-
(0,
|
|
4738
|
+
(0, import_typeorm36.Column)({
|
|
4761
4739
|
name: "account_type",
|
|
4762
4740
|
type: "enum",
|
|
4763
4741
|
enum: BankAccountTypeEnum,
|
|
@@ -4765,7 +4743,7 @@ __decorateClass([
|
|
|
4765
4743
|
})
|
|
4766
4744
|
], BankDetail.prototype, "accountType", 2);
|
|
4767
4745
|
__decorateClass([
|
|
4768
|
-
(0,
|
|
4746
|
+
(0, import_typeorm36.Column)({
|
|
4769
4747
|
name: "account_scope",
|
|
4770
4748
|
type: "enum",
|
|
4771
4749
|
enum: BankAccountScopeEnum,
|
|
@@ -4773,150 +4751,150 @@ __decorateClass([
|
|
|
4773
4751
|
})
|
|
4774
4752
|
], BankDetail.prototype, "accountScope", 2);
|
|
4775
4753
|
BankDetail = __decorateClass([
|
|
4776
|
-
(0,
|
|
4754
|
+
(0, import_typeorm36.Entity)("bank_details")
|
|
4777
4755
|
], BankDetail);
|
|
4778
4756
|
|
|
4779
4757
|
// src/entities/system-preference.entity.ts
|
|
4780
|
-
var
|
|
4758
|
+
var import_typeorm37 = require("typeorm");
|
|
4781
4759
|
var SystemPreference = class extends BaseEntity {
|
|
4782
4760
|
};
|
|
4783
4761
|
// individual index to find system preference by user
|
|
4784
4762
|
__decorateClass([
|
|
4785
|
-
(0,
|
|
4786
|
-
(0,
|
|
4763
|
+
(0, import_typeorm37.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4764
|
+
(0, import_typeorm37.Index)()
|
|
4787
4765
|
], SystemPreference.prototype, "userId", 2);
|
|
4788
4766
|
__decorateClass([
|
|
4789
|
-
(0,
|
|
4790
|
-
(0,
|
|
4767
|
+
(0, import_typeorm37.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
4768
|
+
(0, import_typeorm37.JoinColumn)({ name: "user_id" })
|
|
4791
4769
|
], SystemPreference.prototype, "user", 2);
|
|
4792
4770
|
__decorateClass([
|
|
4793
|
-
(0,
|
|
4771
|
+
(0, import_typeorm37.Column)({ name: "key", type: "varchar", nullable: false })
|
|
4794
4772
|
], SystemPreference.prototype, "key", 2);
|
|
4795
4773
|
__decorateClass([
|
|
4796
|
-
(0,
|
|
4774
|
+
(0, import_typeorm37.Column)({ name: "value", type: "boolean", default: false })
|
|
4797
4775
|
], SystemPreference.prototype, "value", 2);
|
|
4798
4776
|
SystemPreference = __decorateClass([
|
|
4799
|
-
(0,
|
|
4777
|
+
(0, import_typeorm37.Entity)("system_preferences")
|
|
4800
4778
|
], SystemPreference);
|
|
4801
4779
|
|
|
4802
4780
|
// src/entities/freelancer-experience.entity.ts
|
|
4803
|
-
var
|
|
4781
|
+
var import_typeorm38 = require("typeorm");
|
|
4804
4782
|
var FreelancerExperience = class extends BaseEntity {
|
|
4805
4783
|
};
|
|
4806
4784
|
// individual index to find experence by user
|
|
4807
4785
|
__decorateClass([
|
|
4808
|
-
(0,
|
|
4809
|
-
(0,
|
|
4786
|
+
(0, import_typeorm38.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4787
|
+
(0, import_typeorm38.Index)()
|
|
4810
4788
|
], FreelancerExperience.prototype, "userId", 2);
|
|
4811
4789
|
__decorateClass([
|
|
4812
|
-
(0,
|
|
4813
|
-
(0,
|
|
4790
|
+
(0, import_typeorm38.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
4791
|
+
(0, import_typeorm38.JoinColumn)({ name: "user_id" })
|
|
4814
4792
|
], FreelancerExperience.prototype, "user", 2);
|
|
4815
4793
|
__decorateClass([
|
|
4816
|
-
(0,
|
|
4794
|
+
(0, import_typeorm38.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
4817
4795
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
4818
4796
|
__decorateClass([
|
|
4819
|
-
(0,
|
|
4797
|
+
(0, import_typeorm38.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
4820
4798
|
], FreelancerExperience.prototype, "designation", 2);
|
|
4821
4799
|
__decorateClass([
|
|
4822
|
-
(0,
|
|
4800
|
+
(0, import_typeorm38.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
4823
4801
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
4824
4802
|
__decorateClass([
|
|
4825
|
-
(0,
|
|
4803
|
+
(0, import_typeorm38.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4826
4804
|
], FreelancerExperience.prototype, "description", 2);
|
|
4827
4805
|
FreelancerExperience = __decorateClass([
|
|
4828
|
-
(0,
|
|
4806
|
+
(0, import_typeorm38.Entity)("freelancer_experiences")
|
|
4829
4807
|
], FreelancerExperience);
|
|
4830
4808
|
|
|
4831
4809
|
// src/entities/freelancer-education.entity.ts
|
|
4832
|
-
var
|
|
4810
|
+
var import_typeorm39 = require("typeorm");
|
|
4833
4811
|
var FreelancerEducation = class extends BaseEntity {
|
|
4834
4812
|
};
|
|
4835
4813
|
// individual index to find education by user
|
|
4836
4814
|
__decorateClass([
|
|
4837
|
-
(0,
|
|
4838
|
-
(0,
|
|
4815
|
+
(0, import_typeorm39.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4816
|
+
(0, import_typeorm39.Index)()
|
|
4839
4817
|
], FreelancerEducation.prototype, "userId", 2);
|
|
4840
4818
|
__decorateClass([
|
|
4841
|
-
(0,
|
|
4842
|
-
(0,
|
|
4819
|
+
(0, import_typeorm39.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
4820
|
+
(0, import_typeorm39.JoinColumn)({ name: "user_id" })
|
|
4843
4821
|
], FreelancerEducation.prototype, "user", 2);
|
|
4844
4822
|
__decorateClass([
|
|
4845
|
-
(0,
|
|
4823
|
+
(0, import_typeorm39.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
4846
4824
|
], FreelancerEducation.prototype, "degree", 2);
|
|
4847
4825
|
__decorateClass([
|
|
4848
|
-
(0,
|
|
4826
|
+
(0, import_typeorm39.Column)({ name: "university", type: "varchar", nullable: true })
|
|
4849
4827
|
], FreelancerEducation.prototype, "university", 2);
|
|
4850
4828
|
__decorateClass([
|
|
4851
|
-
(0,
|
|
4829
|
+
(0, import_typeorm39.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
4852
4830
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
4853
4831
|
FreelancerEducation = __decorateClass([
|
|
4854
|
-
(0,
|
|
4832
|
+
(0, import_typeorm39.Entity)("freelancer_educations")
|
|
4855
4833
|
], FreelancerEducation);
|
|
4856
4834
|
|
|
4857
4835
|
// src/entities/freelancer-project.entity.ts
|
|
4858
|
-
var
|
|
4836
|
+
var import_typeorm40 = require("typeorm");
|
|
4859
4837
|
var FreelancerProject = class extends BaseEntity {
|
|
4860
4838
|
};
|
|
4861
4839
|
// individual index to find project by user
|
|
4862
4840
|
__decorateClass([
|
|
4863
|
-
(0,
|
|
4864
|
-
(0,
|
|
4841
|
+
(0, import_typeorm40.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4842
|
+
(0, import_typeorm40.Index)()
|
|
4865
4843
|
], FreelancerProject.prototype, "userId", 2);
|
|
4866
4844
|
__decorateClass([
|
|
4867
|
-
(0,
|
|
4868
|
-
(0,
|
|
4845
|
+
(0, import_typeorm40.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
4846
|
+
(0, import_typeorm40.JoinColumn)({ name: "user_id" })
|
|
4869
4847
|
], FreelancerProject.prototype, "user", 2);
|
|
4870
4848
|
__decorateClass([
|
|
4871
|
-
(0,
|
|
4849
|
+
(0, import_typeorm40.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
4872
4850
|
], FreelancerProject.prototype, "projectName", 2);
|
|
4873
4851
|
__decorateClass([
|
|
4874
|
-
(0,
|
|
4852
|
+
(0, import_typeorm40.Column)({ name: "start_date", type: "date", nullable: true })
|
|
4875
4853
|
], FreelancerProject.prototype, "startDate", 2);
|
|
4876
4854
|
__decorateClass([
|
|
4877
|
-
(0,
|
|
4855
|
+
(0, import_typeorm40.Column)({ name: "end_date", type: "date", nullable: true })
|
|
4878
4856
|
], FreelancerProject.prototype, "endDate", 2);
|
|
4879
4857
|
__decorateClass([
|
|
4880
|
-
(0,
|
|
4858
|
+
(0, import_typeorm40.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
4881
4859
|
], FreelancerProject.prototype, "clientName", 2);
|
|
4882
4860
|
__decorateClass([
|
|
4883
|
-
(0,
|
|
4861
|
+
(0, import_typeorm40.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
4884
4862
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
4885
4863
|
__decorateClass([
|
|
4886
|
-
(0,
|
|
4864
|
+
(0, import_typeorm40.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4887
4865
|
], FreelancerProject.prototype, "description", 2);
|
|
4888
4866
|
FreelancerProject = __decorateClass([
|
|
4889
|
-
(0,
|
|
4867
|
+
(0, import_typeorm40.Entity)("freelancer_projects")
|
|
4890
4868
|
], FreelancerProject);
|
|
4891
4869
|
|
|
4892
4870
|
// src/entities/freelancer-casestudy.entity.ts
|
|
4893
|
-
var
|
|
4871
|
+
var import_typeorm41 = require("typeorm");
|
|
4894
4872
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
4895
4873
|
};
|
|
4896
4874
|
// individual index to find case study by user
|
|
4897
4875
|
__decorateClass([
|
|
4898
|
-
(0,
|
|
4899
|
-
(0,
|
|
4876
|
+
(0, import_typeorm41.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4877
|
+
(0, import_typeorm41.Index)()
|
|
4900
4878
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
4901
4879
|
__decorateClass([
|
|
4902
|
-
(0,
|
|
4903
|
-
(0,
|
|
4880
|
+
(0, import_typeorm41.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
4881
|
+
(0, import_typeorm41.JoinColumn)({ name: "user_id" })
|
|
4904
4882
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
4905
4883
|
__decorateClass([
|
|
4906
|
-
(0,
|
|
4884
|
+
(0, import_typeorm41.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
4907
4885
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
4908
4886
|
__decorateClass([
|
|
4909
|
-
(0,
|
|
4887
|
+
(0, import_typeorm41.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
4910
4888
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
4911
4889
|
__decorateClass([
|
|
4912
|
-
(0,
|
|
4890
|
+
(0, import_typeorm41.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4913
4891
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
4914
4892
|
FreelancerCaseStudy = __decorateClass([
|
|
4915
|
-
(0,
|
|
4893
|
+
(0, import_typeorm41.Entity)("freelancer_case_studies")
|
|
4916
4894
|
], FreelancerCaseStudy);
|
|
4917
4895
|
|
|
4918
4896
|
// src/entities/freelancer-skill.entity.ts
|
|
4919
|
-
var
|
|
4897
|
+
var import_typeorm42 = require("typeorm");
|
|
4920
4898
|
var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
|
|
4921
4899
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
|
|
4922
4900
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["MUST_HAVE"] = 1] = "MUST_HAVE";
|
|
@@ -4926,18 +4904,18 @@ var FreelancerSkill = class extends BaseEntity {
|
|
|
4926
4904
|
};
|
|
4927
4905
|
// individual index to find core skills by user
|
|
4928
4906
|
__decorateClass([
|
|
4929
|
-
(0,
|
|
4930
|
-
(0,
|
|
4907
|
+
(0, import_typeorm42.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4908
|
+
(0, import_typeorm42.Index)()
|
|
4931
4909
|
], FreelancerSkill.prototype, "userId", 2);
|
|
4932
4910
|
__decorateClass([
|
|
4933
|
-
(0,
|
|
4934
|
-
(0,
|
|
4911
|
+
(0, import_typeorm42.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
4912
|
+
(0, import_typeorm42.JoinColumn)({ name: "user_id" })
|
|
4935
4913
|
], FreelancerSkill.prototype, "user", 2);
|
|
4936
4914
|
__decorateClass([
|
|
4937
|
-
(0,
|
|
4915
|
+
(0, import_typeorm42.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
4938
4916
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
4939
4917
|
__decorateClass([
|
|
4940
|
-
(0,
|
|
4918
|
+
(0, import_typeorm42.Column)({
|
|
4941
4919
|
name: "skill_category",
|
|
4942
4920
|
type: "smallint",
|
|
4943
4921
|
default: 1,
|
|
@@ -4945,51 +4923,51 @@ __decorateClass([
|
|
|
4945
4923
|
})
|
|
4946
4924
|
], FreelancerSkill.prototype, "skillCategory", 2);
|
|
4947
4925
|
FreelancerSkill = __decorateClass([
|
|
4948
|
-
(0,
|
|
4926
|
+
(0, import_typeorm42.Entity)("freelancer_skills")
|
|
4949
4927
|
], FreelancerSkill);
|
|
4950
4928
|
|
|
4951
4929
|
// src/entities/freelancer-tool.entity.ts
|
|
4952
|
-
var
|
|
4930
|
+
var import_typeorm43 = require("typeorm");
|
|
4953
4931
|
var FreelancerTool = class extends BaseEntity {
|
|
4954
4932
|
};
|
|
4955
4933
|
// individual index to find tool by user
|
|
4956
4934
|
__decorateClass([
|
|
4957
|
-
(0,
|
|
4958
|
-
(0,
|
|
4935
|
+
(0, import_typeorm43.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4936
|
+
(0, import_typeorm43.Index)()
|
|
4959
4937
|
], FreelancerTool.prototype, "userId", 2);
|
|
4960
4938
|
__decorateClass([
|
|
4961
|
-
(0,
|
|
4962
|
-
(0,
|
|
4939
|
+
(0, import_typeorm43.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
4940
|
+
(0, import_typeorm43.JoinColumn)({ name: "user_id" })
|
|
4963
4941
|
], FreelancerTool.prototype, "user", 2);
|
|
4964
4942
|
__decorateClass([
|
|
4965
|
-
(0,
|
|
4943
|
+
(0, import_typeorm43.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
4966
4944
|
], FreelancerTool.prototype, "toolName", 2);
|
|
4967
4945
|
FreelancerTool = __decorateClass([
|
|
4968
|
-
(0,
|
|
4946
|
+
(0, import_typeorm43.Entity)("freelancer_tools")
|
|
4969
4947
|
], FreelancerTool);
|
|
4970
4948
|
|
|
4971
4949
|
// src/entities/freelancer-framework.entity.ts
|
|
4972
|
-
var
|
|
4950
|
+
var import_typeorm44 = require("typeorm");
|
|
4973
4951
|
var FreelancerFramework = class extends BaseEntity {
|
|
4974
4952
|
};
|
|
4975
4953
|
// individual index to find framework by user
|
|
4976
4954
|
__decorateClass([
|
|
4977
|
-
(0,
|
|
4978
|
-
(0,
|
|
4955
|
+
(0, import_typeorm44.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4956
|
+
(0, import_typeorm44.Index)()
|
|
4979
4957
|
], FreelancerFramework.prototype, "userId", 2);
|
|
4980
4958
|
__decorateClass([
|
|
4981
|
-
(0,
|
|
4982
|
-
(0,
|
|
4959
|
+
(0, import_typeorm44.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
4960
|
+
(0, import_typeorm44.JoinColumn)({ name: "user_id" })
|
|
4983
4961
|
], FreelancerFramework.prototype, "user", 2);
|
|
4984
4962
|
__decorateClass([
|
|
4985
|
-
(0,
|
|
4963
|
+
(0, import_typeorm44.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
4986
4964
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
4987
4965
|
FreelancerFramework = __decorateClass([
|
|
4988
|
-
(0,
|
|
4966
|
+
(0, import_typeorm44.Entity)("freelancer_frameworks")
|
|
4989
4967
|
], FreelancerFramework);
|
|
4990
4968
|
|
|
4991
4969
|
// src/entities/freelancer-assessment.entity.ts
|
|
4992
|
-
var
|
|
4970
|
+
var import_typeorm45 = require("typeorm");
|
|
4993
4971
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
4994
4972
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
4995
4973
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -5006,33 +4984,33 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
5006
4984
|
var FreelancerAssessment = class extends BaseEntity {
|
|
5007
4985
|
};
|
|
5008
4986
|
__decorateClass([
|
|
5009
|
-
(0,
|
|
5010
|
-
(0,
|
|
4987
|
+
(0, import_typeorm45.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4988
|
+
(0, import_typeorm45.Index)()
|
|
5011
4989
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
5012
4990
|
__decorateClass([
|
|
5013
|
-
(0,
|
|
5014
|
-
(0,
|
|
4991
|
+
(0, import_typeorm45.ManyToOne)(() => User, (user) => user.assessments),
|
|
4992
|
+
(0, import_typeorm45.JoinColumn)({ name: "user_id" })
|
|
5015
4993
|
], FreelancerAssessment.prototype, "user", 2);
|
|
5016
4994
|
__decorateClass([
|
|
5017
|
-
(0,
|
|
4995
|
+
(0, import_typeorm45.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
5018
4996
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
5019
4997
|
__decorateClass([
|
|
5020
|
-
(0,
|
|
4998
|
+
(0, import_typeorm45.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
5021
4999
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
5022
5000
|
__decorateClass([
|
|
5023
|
-
(0,
|
|
5001
|
+
(0, import_typeorm45.Column)({ name: "recording_link", type: "text", nullable: true })
|
|
5024
5002
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
5025
5003
|
__decorateClass([
|
|
5026
|
-
(0,
|
|
5004
|
+
(0, import_typeorm45.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
5027
5005
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
5028
5006
|
__decorateClass([
|
|
5029
|
-
(0,
|
|
5007
|
+
(0, import_typeorm45.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
5030
5008
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
5031
5009
|
__decorateClass([
|
|
5032
|
-
(0,
|
|
5010
|
+
(0, import_typeorm45.Column)({ name: "score", type: "float", nullable: true })
|
|
5033
5011
|
], FreelancerAssessment.prototype, "score", 2);
|
|
5034
5012
|
__decorateClass([
|
|
5035
|
-
(0,
|
|
5013
|
+
(0, import_typeorm45.Column)({
|
|
5036
5014
|
name: "status",
|
|
5037
5015
|
type: "enum",
|
|
5038
5016
|
enum: AssessmentStatusEnum,
|
|
@@ -5040,17 +5018,17 @@ __decorateClass([
|
|
|
5040
5018
|
})
|
|
5041
5019
|
], FreelancerAssessment.prototype, "status", 2);
|
|
5042
5020
|
__decorateClass([
|
|
5043
|
-
(0,
|
|
5021
|
+
(0, import_typeorm45.Column)({ name: "task_id", type: "varchar", nullable: true })
|
|
5044
5022
|
], FreelancerAssessment.prototype, "taskId", 2);
|
|
5045
5023
|
__decorateClass([
|
|
5046
|
-
(0,
|
|
5024
|
+
(0, import_typeorm45.Column)({ name: "meta_data", type: "jsonb", nullable: true })
|
|
5047
5025
|
], FreelancerAssessment.prototype, "metaData", 2);
|
|
5048
5026
|
FreelancerAssessment = __decorateClass([
|
|
5049
|
-
(0,
|
|
5027
|
+
(0, import_typeorm45.Entity)("freelancer_assessments")
|
|
5050
5028
|
], FreelancerAssessment);
|
|
5051
5029
|
|
|
5052
5030
|
// src/entities/freelancer-declaration.entity.ts
|
|
5053
|
-
var
|
|
5031
|
+
var import_typeorm46 = require("typeorm");
|
|
5054
5032
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
5055
5033
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
5056
5034
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -5062,15 +5040,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
5062
5040
|
};
|
|
5063
5041
|
// individual index to find declaration by user
|
|
5064
5042
|
__decorateClass([
|
|
5065
|
-
(0,
|
|
5066
|
-
(0,
|
|
5043
|
+
(0, import_typeorm46.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5044
|
+
(0, import_typeorm46.Index)()
|
|
5067
5045
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
5068
5046
|
__decorateClass([
|
|
5069
|
-
(0,
|
|
5070
|
-
(0,
|
|
5047
|
+
(0, import_typeorm46.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
5048
|
+
(0, import_typeorm46.JoinColumn)({ name: "user_id" })
|
|
5071
5049
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
5072
5050
|
__decorateClass([
|
|
5073
|
-
(0,
|
|
5051
|
+
(0, import_typeorm46.Column)({
|
|
5074
5052
|
name: "document_type",
|
|
5075
5053
|
type: "enum",
|
|
5076
5054
|
enum: DocumentType,
|
|
@@ -5078,144 +5056,144 @@ __decorateClass([
|
|
|
5078
5056
|
})
|
|
5079
5057
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
5080
5058
|
__decorateClass([
|
|
5081
|
-
(0,
|
|
5059
|
+
(0, import_typeorm46.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
5082
5060
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
5083
5061
|
__decorateClass([
|
|
5084
|
-
(0,
|
|
5062
|
+
(0, import_typeorm46.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
5085
5063
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
5086
5064
|
__decorateClass([
|
|
5087
|
-
(0,
|
|
5065
|
+
(0, import_typeorm46.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
5088
5066
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
5089
5067
|
__decorateClass([
|
|
5090
|
-
(0,
|
|
5068
|
+
(0, import_typeorm46.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
5091
5069
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
5092
5070
|
FreelancerDeclaration = __decorateClass([
|
|
5093
|
-
(0,
|
|
5071
|
+
(0, import_typeorm46.Entity)("freelancer_declaration")
|
|
5094
5072
|
], FreelancerDeclaration);
|
|
5095
5073
|
|
|
5096
5074
|
// src/entities/company-members-roles.entity.ts
|
|
5097
|
-
var
|
|
5075
|
+
var import_typeorm50 = require("typeorm");
|
|
5098
5076
|
|
|
5099
5077
|
// src/entities/company-role.entity.ts
|
|
5100
|
-
var
|
|
5078
|
+
var import_typeorm49 = require("typeorm");
|
|
5101
5079
|
|
|
5102
5080
|
// src/entities/company-role-permission.entity.ts
|
|
5103
|
-
var
|
|
5081
|
+
var import_typeorm48 = require("typeorm");
|
|
5104
5082
|
|
|
5105
5083
|
// src/entities/permission.entity.ts
|
|
5106
|
-
var
|
|
5084
|
+
var import_typeorm47 = require("typeorm");
|
|
5107
5085
|
var Permission = class extends BaseEntity {
|
|
5108
5086
|
};
|
|
5109
5087
|
__decorateClass([
|
|
5110
|
-
(0,
|
|
5088
|
+
(0, import_typeorm47.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5111
5089
|
], Permission.prototype, "name", 2);
|
|
5112
5090
|
__decorateClass([
|
|
5113
|
-
(0,
|
|
5114
|
-
(0,
|
|
5091
|
+
(0, import_typeorm47.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
5092
|
+
(0, import_typeorm47.Index)()
|
|
5115
5093
|
], Permission.prototype, "slug", 2);
|
|
5116
5094
|
__decorateClass([
|
|
5117
|
-
(0,
|
|
5095
|
+
(0, import_typeorm47.Column)({ name: "description", type: "text", nullable: true })
|
|
5118
5096
|
], Permission.prototype, "description", 2);
|
|
5119
5097
|
__decorateClass([
|
|
5120
|
-
(0,
|
|
5098
|
+
(0, import_typeorm47.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5121
5099
|
], Permission.prototype, "isActive", 2);
|
|
5122
5100
|
Permission = __decorateClass([
|
|
5123
|
-
(0,
|
|
5101
|
+
(0, import_typeorm47.Entity)("permissions")
|
|
5124
5102
|
], Permission);
|
|
5125
5103
|
|
|
5126
5104
|
// src/entities/company-role-permission.entity.ts
|
|
5127
5105
|
var CompanyRolePermission = class extends BaseEntity {
|
|
5128
5106
|
};
|
|
5129
5107
|
__decorateClass([
|
|
5130
|
-
(0,
|
|
5131
|
-
(0,
|
|
5108
|
+
(0, import_typeorm48.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
5109
|
+
(0, import_typeorm48.Index)()
|
|
5132
5110
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
5133
5111
|
__decorateClass([
|
|
5134
|
-
(0,
|
|
5112
|
+
(0, import_typeorm48.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
5135
5113
|
onDelete: "CASCADE"
|
|
5136
5114
|
}),
|
|
5137
|
-
(0,
|
|
5115
|
+
(0, import_typeorm48.JoinColumn)({ name: "company_role_id" })
|
|
5138
5116
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
5139
5117
|
__decorateClass([
|
|
5140
|
-
(0,
|
|
5141
|
-
(0,
|
|
5118
|
+
(0, import_typeorm48.Column)({ name: "permission_id", type: "integer" }),
|
|
5119
|
+
(0, import_typeorm48.Index)()
|
|
5142
5120
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
5143
5121
|
__decorateClass([
|
|
5144
|
-
(0,
|
|
5145
|
-
(0,
|
|
5122
|
+
(0, import_typeorm48.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
5123
|
+
(0, import_typeorm48.JoinColumn)({ name: "permission_id" })
|
|
5146
5124
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
5147
5125
|
__decorateClass([
|
|
5148
|
-
(0,
|
|
5126
|
+
(0, import_typeorm48.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
5149
5127
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
5150
5128
|
CompanyRolePermission = __decorateClass([
|
|
5151
|
-
(0,
|
|
5129
|
+
(0, import_typeorm48.Entity)("company_role_permissions")
|
|
5152
5130
|
], CompanyRolePermission);
|
|
5153
5131
|
|
|
5154
5132
|
// src/entities/company-role.entity.ts
|
|
5155
5133
|
var CompanyRole = class extends BaseEntity {
|
|
5156
5134
|
};
|
|
5157
5135
|
__decorateClass([
|
|
5158
|
-
(0,
|
|
5159
|
-
(0,
|
|
5136
|
+
(0, import_typeorm49.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5137
|
+
(0, import_typeorm49.Index)()
|
|
5160
5138
|
], CompanyRole.prototype, "userId", 2);
|
|
5161
5139
|
__decorateClass([
|
|
5162
|
-
(0,
|
|
5163
|
-
(0,
|
|
5140
|
+
(0, import_typeorm49.ManyToOne)(() => User, (user) => user.otps),
|
|
5141
|
+
(0, import_typeorm49.JoinColumn)({ name: "user_id" })
|
|
5164
5142
|
], CompanyRole.prototype, "user", 2);
|
|
5165
5143
|
__decorateClass([
|
|
5166
|
-
(0,
|
|
5144
|
+
(0, import_typeorm49.Column)({ name: "name", type: "varchar" })
|
|
5167
5145
|
], CompanyRole.prototype, "name", 2);
|
|
5168
5146
|
__decorateClass([
|
|
5169
|
-
(0,
|
|
5170
|
-
(0,
|
|
5147
|
+
(0, import_typeorm49.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
5148
|
+
(0, import_typeorm49.Index)()
|
|
5171
5149
|
], CompanyRole.prototype, "slug", 2);
|
|
5172
5150
|
__decorateClass([
|
|
5173
|
-
(0,
|
|
5151
|
+
(0, import_typeorm49.Column)({ name: "description", type: "text", nullable: true })
|
|
5174
5152
|
], CompanyRole.prototype, "description", 2);
|
|
5175
5153
|
__decorateClass([
|
|
5176
|
-
(0,
|
|
5154
|
+
(0, import_typeorm49.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5177
5155
|
], CompanyRole.prototype, "isActive", 2);
|
|
5178
5156
|
__decorateClass([
|
|
5179
|
-
(0,
|
|
5157
|
+
(0, import_typeorm49.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
5180
5158
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
5181
5159
|
CompanyRole = __decorateClass([
|
|
5182
|
-
(0,
|
|
5160
|
+
(0, import_typeorm49.Entity)("company_roles")
|
|
5183
5161
|
], CompanyRole);
|
|
5184
5162
|
|
|
5185
5163
|
// src/entities/company-members-roles.entity.ts
|
|
5186
5164
|
var CompanyMemberRole = class extends BaseEntity {
|
|
5187
5165
|
};
|
|
5188
5166
|
__decorateClass([
|
|
5189
|
-
(0,
|
|
5190
|
-
(0,
|
|
5167
|
+
(0, import_typeorm50.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5168
|
+
(0, import_typeorm50.Index)()
|
|
5191
5169
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
5192
5170
|
__decorateClass([
|
|
5193
|
-
(0,
|
|
5194
|
-
(0,
|
|
5171
|
+
(0, import_typeorm50.ManyToOne)(() => User),
|
|
5172
|
+
(0, import_typeorm50.JoinColumn)({ name: "user_id" })
|
|
5195
5173
|
], CompanyMemberRole.prototype, "user", 2);
|
|
5196
5174
|
__decorateClass([
|
|
5197
|
-
(0,
|
|
5198
|
-
(0,
|
|
5175
|
+
(0, import_typeorm50.ManyToOne)(() => CompanyRole),
|
|
5176
|
+
(0, import_typeorm50.JoinColumn)({ name: "company_role_id" })
|
|
5199
5177
|
], CompanyMemberRole.prototype, "role", 2);
|
|
5200
5178
|
__decorateClass([
|
|
5201
|
-
(0,
|
|
5202
|
-
(0,
|
|
5179
|
+
(0, import_typeorm50.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
5180
|
+
(0, import_typeorm50.Index)()
|
|
5203
5181
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
5204
5182
|
__decorateClass([
|
|
5205
|
-
(0,
|
|
5183
|
+
(0, import_typeorm50.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
5206
5184
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
5207
5185
|
CompanyMemberRole = __decorateClass([
|
|
5208
|
-
(0,
|
|
5186
|
+
(0, import_typeorm50.Entity)("company_member_roles")
|
|
5209
5187
|
], CompanyMemberRole);
|
|
5210
5188
|
|
|
5211
5189
|
// src/entities/assessment-answer.entity.ts
|
|
5212
|
-
var
|
|
5190
|
+
var import_typeorm53 = require("typeorm");
|
|
5213
5191
|
|
|
5214
5192
|
// src/entities/assessment-question.entity.ts
|
|
5215
|
-
var
|
|
5193
|
+
var import_typeorm52 = require("typeorm");
|
|
5216
5194
|
|
|
5217
5195
|
// src/entities/assessment-question-option.entity.ts
|
|
5218
|
-
var
|
|
5196
|
+
var import_typeorm51 = require("typeorm");
|
|
5219
5197
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
5220
5198
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
5221
5199
|
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
@@ -5225,21 +5203,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
5225
5203
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
5226
5204
|
};
|
|
5227
5205
|
__decorateClass([
|
|
5228
|
-
(0,
|
|
5229
|
-
(0,
|
|
5206
|
+
(0, import_typeorm51.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
5207
|
+
(0, import_typeorm51.Index)()
|
|
5230
5208
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
5231
5209
|
__decorateClass([
|
|
5232
|
-
(0,
|
|
5210
|
+
(0, import_typeorm51.ManyToOne)(
|
|
5233
5211
|
() => AssessmetQuestion,
|
|
5234
5212
|
(assessmentQuestion) => assessmentQuestion.options
|
|
5235
5213
|
),
|
|
5236
|
-
(0,
|
|
5214
|
+
(0, import_typeorm51.JoinColumn)({ name: "question_id" })
|
|
5237
5215
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
5238
5216
|
__decorateClass([
|
|
5239
|
-
(0,
|
|
5217
|
+
(0, import_typeorm51.Column)({ name: "text", type: "varchar", nullable: true })
|
|
5240
5218
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
5241
5219
|
__decorateClass([
|
|
5242
|
-
(0,
|
|
5220
|
+
(0, import_typeorm51.Column)({
|
|
5243
5221
|
name: "answer_type",
|
|
5244
5222
|
type: "enum",
|
|
5245
5223
|
enum: AnswerTypeEnum,
|
|
@@ -5247,13 +5225,13 @@ __decorateClass([
|
|
|
5247
5225
|
})
|
|
5248
5226
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
5249
5227
|
__decorateClass([
|
|
5250
|
-
(0,
|
|
5228
|
+
(0, import_typeorm51.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5251
5229
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
5252
5230
|
__decorateClass([
|
|
5253
|
-
(0,
|
|
5231
|
+
(0, import_typeorm51.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
5254
5232
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
5255
5233
|
AssessmetQuestionOption = __decorateClass([
|
|
5256
|
-
(0,
|
|
5234
|
+
(0, import_typeorm51.Entity)("assessment_question_options")
|
|
5257
5235
|
], AssessmetQuestionOption);
|
|
5258
5236
|
|
|
5259
5237
|
// src/entities/assessment-question.entity.ts
|
|
@@ -5265,10 +5243,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
5265
5243
|
var AssessmetQuestion = class extends BaseEntity {
|
|
5266
5244
|
};
|
|
5267
5245
|
__decorateClass([
|
|
5268
|
-
(0,
|
|
5246
|
+
(0, import_typeorm52.Column)({ name: "text", type: "varchar", nullable: true })
|
|
5269
5247
|
], AssessmetQuestion.prototype, "text", 2);
|
|
5270
5248
|
__decorateClass([
|
|
5271
|
-
(0,
|
|
5249
|
+
(0, import_typeorm52.Column)({
|
|
5272
5250
|
name: "question_for",
|
|
5273
5251
|
type: "enum",
|
|
5274
5252
|
enum: QuestionForEnum,
|
|
@@ -5276,24 +5254,24 @@ __decorateClass([
|
|
|
5276
5254
|
})
|
|
5277
5255
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
5278
5256
|
__decorateClass([
|
|
5279
|
-
(0,
|
|
5257
|
+
(0, import_typeorm52.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5280
5258
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
5281
5259
|
__decorateClass([
|
|
5282
|
-
(0,
|
|
5283
|
-
(0,
|
|
5260
|
+
(0, import_typeorm52.Column)({ name: "candidate_id", type: "integer", nullable: true }),
|
|
5261
|
+
(0, import_typeorm52.Index)()
|
|
5284
5262
|
], AssessmetQuestion.prototype, "candidateId", 2);
|
|
5285
5263
|
__decorateClass([
|
|
5286
|
-
(0,
|
|
5287
|
-
(0,
|
|
5264
|
+
(0, import_typeorm52.ManyToOne)(() => User, (user) => user.freelancerMcq, { nullable: true }),
|
|
5265
|
+
(0, import_typeorm52.JoinColumn)({ name: "candidate_id" })
|
|
5288
5266
|
], AssessmetQuestion.prototype, "candidate", 2);
|
|
5289
5267
|
__decorateClass([
|
|
5290
|
-
(0,
|
|
5268
|
+
(0, import_typeorm52.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
5291
5269
|
], AssessmetQuestion.prototype, "options", 2);
|
|
5292
5270
|
__decorateClass([
|
|
5293
|
-
(0,
|
|
5271
|
+
(0, import_typeorm52.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
5294
5272
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
5295
5273
|
AssessmetQuestion = __decorateClass([
|
|
5296
|
-
(0,
|
|
5274
|
+
(0, import_typeorm52.Entity)("assessment_questions")
|
|
5297
5275
|
], AssessmetQuestion);
|
|
5298
5276
|
|
|
5299
5277
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -5306,118 +5284,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
5306
5284
|
var AssessmentAnswer = class extends BaseEntity {
|
|
5307
5285
|
};
|
|
5308
5286
|
__decorateClass([
|
|
5309
|
-
(0,
|
|
5310
|
-
(0,
|
|
5287
|
+
(0, import_typeorm53.Column)({ name: "user_id", type: "integer" }),
|
|
5288
|
+
(0, import_typeorm53.Index)()
|
|
5311
5289
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
5312
5290
|
__decorateClass([
|
|
5313
|
-
(0,
|
|
5314
|
-
(0,
|
|
5291
|
+
(0, import_typeorm53.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
5292
|
+
(0, import_typeorm53.JoinColumn)({ name: "user_id" })
|
|
5315
5293
|
], AssessmentAnswer.prototype, "user", 2);
|
|
5316
5294
|
__decorateClass([
|
|
5317
|
-
(0,
|
|
5318
|
-
(0,
|
|
5295
|
+
(0, import_typeorm53.Column)({ name: "question_id", type: "integer" }),
|
|
5296
|
+
(0, import_typeorm53.Index)()
|
|
5319
5297
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
5320
5298
|
__decorateClass([
|
|
5321
|
-
(0,
|
|
5299
|
+
(0, import_typeorm53.ManyToOne)(
|
|
5322
5300
|
() => AssessmetQuestion,
|
|
5323
5301
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
5324
5302
|
),
|
|
5325
|
-
(0,
|
|
5303
|
+
(0, import_typeorm53.JoinColumn)({ name: "question_id" })
|
|
5326
5304
|
], AssessmentAnswer.prototype, "question", 2);
|
|
5327
5305
|
__decorateClass([
|
|
5328
|
-
(0,
|
|
5329
|
-
(0,
|
|
5306
|
+
(0, import_typeorm53.Column)({ name: "selected_option_id", type: "integer" }),
|
|
5307
|
+
(0, import_typeorm53.Index)()
|
|
5330
5308
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
5331
5309
|
__decorateClass([
|
|
5332
|
-
(0,
|
|
5310
|
+
(0, import_typeorm53.ManyToOne)(
|
|
5333
5311
|
() => AssessmetQuestionOption,
|
|
5334
5312
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
5335
5313
|
),
|
|
5336
|
-
(0,
|
|
5314
|
+
(0, import_typeorm53.JoinColumn)({ name: "selected_option_id" })
|
|
5337
5315
|
], AssessmentAnswer.prototype, "option", 2);
|
|
5338
5316
|
__decorateClass([
|
|
5339
|
-
(0,
|
|
5317
|
+
(0, import_typeorm53.Column)({
|
|
5340
5318
|
name: "selected_answer_type",
|
|
5341
5319
|
type: "enum",
|
|
5342
5320
|
enum: SelectedAnswerTypeEnum
|
|
5343
5321
|
})
|
|
5344
5322
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
5345
5323
|
__decorateClass([
|
|
5346
|
-
(0,
|
|
5324
|
+
(0, import_typeorm53.Column)({ name: "score", type: "float" })
|
|
5347
5325
|
], AssessmentAnswer.prototype, "score", 2);
|
|
5348
5326
|
AssessmentAnswer = __decorateClass([
|
|
5349
|
-
(0,
|
|
5327
|
+
(0, import_typeorm53.Entity)("assessment_answers")
|
|
5350
5328
|
], AssessmentAnswer);
|
|
5351
5329
|
|
|
5352
5330
|
// src/entities/company-skill.entity.ts
|
|
5353
|
-
var
|
|
5331
|
+
var import_typeorm54 = require("typeorm");
|
|
5354
5332
|
var CompanySkill = class extends BaseEntity {
|
|
5355
5333
|
};
|
|
5356
5334
|
// individual index to find core skills by user
|
|
5357
5335
|
__decorateClass([
|
|
5358
|
-
(0,
|
|
5359
|
-
(0,
|
|
5336
|
+
(0, import_typeorm54.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5337
|
+
(0, import_typeorm54.Index)()
|
|
5360
5338
|
], CompanySkill.prototype, "userId", 2);
|
|
5361
5339
|
__decorateClass([
|
|
5362
|
-
(0,
|
|
5363
|
-
(0,
|
|
5340
|
+
(0, import_typeorm54.ManyToOne)(() => User, (user) => user.companySkills),
|
|
5341
|
+
(0, import_typeorm54.JoinColumn)({ name: "user_id" })
|
|
5364
5342
|
], CompanySkill.prototype, "user", 2);
|
|
5365
5343
|
__decorateClass([
|
|
5366
|
-
(0,
|
|
5344
|
+
(0, import_typeorm54.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
5367
5345
|
], CompanySkill.prototype, "skillName", 2);
|
|
5368
5346
|
CompanySkill = __decorateClass([
|
|
5369
|
-
(0,
|
|
5347
|
+
(0, import_typeorm54.Entity)("company_skills")
|
|
5370
5348
|
], CompanySkill);
|
|
5371
5349
|
|
|
5372
5350
|
// src/entities/admin-user-role.entity.ts
|
|
5373
|
-
var
|
|
5351
|
+
var import_typeorm58 = require("typeorm");
|
|
5374
5352
|
|
|
5375
5353
|
// src/entities/admin-role.entity.ts
|
|
5376
|
-
var
|
|
5354
|
+
var import_typeorm57 = require("typeorm");
|
|
5377
5355
|
|
|
5378
5356
|
// src/entities/admin-role-permission.entity.ts
|
|
5379
|
-
var
|
|
5357
|
+
var import_typeorm56 = require("typeorm");
|
|
5380
5358
|
|
|
5381
5359
|
// src/entities/admin-permission.entity.ts
|
|
5382
|
-
var
|
|
5360
|
+
var import_typeorm55 = require("typeorm");
|
|
5383
5361
|
var AdminPermission = class extends BaseEntity {
|
|
5384
5362
|
};
|
|
5385
5363
|
__decorateClass([
|
|
5386
|
-
(0,
|
|
5364
|
+
(0, import_typeorm55.Column)({ name: "permission_name", type: "varchar", nullable: true })
|
|
5387
5365
|
], AdminPermission.prototype, "permissionName", 2);
|
|
5388
5366
|
__decorateClass([
|
|
5389
|
-
(0,
|
|
5367
|
+
(0, import_typeorm55.Column)({
|
|
5390
5368
|
name: "permission_slug",
|
|
5391
5369
|
type: "varchar",
|
|
5392
5370
|
unique: true,
|
|
5393
5371
|
nullable: true
|
|
5394
5372
|
}),
|
|
5395
|
-
(0,
|
|
5373
|
+
(0, import_typeorm55.Index)()
|
|
5396
5374
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
5397
5375
|
__decorateClass([
|
|
5398
|
-
(0,
|
|
5376
|
+
(0, import_typeorm55.Column)({ name: "permission_description", type: "varchar", nullable: true })
|
|
5399
5377
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
5400
5378
|
__decorateClass([
|
|
5401
|
-
(0,
|
|
5379
|
+
(0, import_typeorm55.Column)({ name: "module", type: "varchar", nullable: true })
|
|
5402
5380
|
], AdminPermission.prototype, "module", 2);
|
|
5403
5381
|
__decorateClass([
|
|
5404
|
-
(0,
|
|
5382
|
+
(0, import_typeorm55.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5405
5383
|
], AdminPermission.prototype, "isActive", 2);
|
|
5406
5384
|
__decorateClass([
|
|
5407
|
-
(0,
|
|
5385
|
+
(0, import_typeorm55.OneToMany)(
|
|
5408
5386
|
() => AdminRolePermission,
|
|
5409
5387
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
5410
5388
|
)
|
|
5411
5389
|
], AdminPermission.prototype, "adminRole", 2);
|
|
5412
5390
|
AdminPermission = __decorateClass([
|
|
5413
|
-
(0,
|
|
5391
|
+
(0, import_typeorm55.Entity)("admin_permissions")
|
|
5414
5392
|
], AdminPermission);
|
|
5415
5393
|
|
|
5416
5394
|
// src/entities/admin-role-permission.entity.ts
|
|
5417
5395
|
var AdminRolePermission = class extends BaseEntity {
|
|
5418
5396
|
};
|
|
5419
5397
|
__decorateClass([
|
|
5420
|
-
(0,
|
|
5398
|
+
(0, import_typeorm56.Column)({
|
|
5421
5399
|
name: "role_id",
|
|
5422
5400
|
type: "int",
|
|
5423
5401
|
nullable: true,
|
|
@@ -5425,11 +5403,11 @@ __decorateClass([
|
|
|
5425
5403
|
})
|
|
5426
5404
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
5427
5405
|
__decorateClass([
|
|
5428
|
-
(0,
|
|
5429
|
-
(0,
|
|
5406
|
+
(0, import_typeorm56.ManyToOne)(() => AdminRole),
|
|
5407
|
+
(0, import_typeorm56.JoinColumn)({ name: "role_id" })
|
|
5430
5408
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
5431
5409
|
__decorateClass([
|
|
5432
|
-
(0,
|
|
5410
|
+
(0, import_typeorm56.Column)({
|
|
5433
5411
|
name: "permission_id",
|
|
5434
5412
|
type: "int",
|
|
5435
5413
|
nullable: true,
|
|
@@ -5437,47 +5415,47 @@ __decorateClass([
|
|
|
5437
5415
|
})
|
|
5438
5416
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
5439
5417
|
__decorateClass([
|
|
5440
|
-
(0,
|
|
5441
|
-
(0,
|
|
5418
|
+
(0, import_typeorm56.ManyToOne)(() => AdminPermission),
|
|
5419
|
+
(0, import_typeorm56.JoinColumn)({ name: "permission_id" })
|
|
5442
5420
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
5443
5421
|
AdminRolePermission = __decorateClass([
|
|
5444
|
-
(0,
|
|
5422
|
+
(0, import_typeorm56.Entity)("admin_role_permissions")
|
|
5445
5423
|
], AdminRolePermission);
|
|
5446
5424
|
|
|
5447
5425
|
// src/entities/admin-role.entity.ts
|
|
5448
5426
|
var AdminRole = class extends BaseEntity {
|
|
5449
5427
|
};
|
|
5450
5428
|
__decorateClass([
|
|
5451
|
-
(0,
|
|
5429
|
+
(0, import_typeorm57.Column)({ name: "role_name", type: "varchar", nullable: true })
|
|
5452
5430
|
], AdminRole.prototype, "roleName", 2);
|
|
5453
5431
|
__decorateClass([
|
|
5454
|
-
(0,
|
|
5455
|
-
(0,
|
|
5432
|
+
(0, import_typeorm57.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
5433
|
+
(0, import_typeorm57.Index)()
|
|
5456
5434
|
], AdminRole.prototype, "roleSlug", 2);
|
|
5457
5435
|
__decorateClass([
|
|
5458
|
-
(0,
|
|
5436
|
+
(0, import_typeorm57.Column)({ name: "role_description", type: "varchar", nullable: true })
|
|
5459
5437
|
], AdminRole.prototype, "roleDescription", 2);
|
|
5460
5438
|
__decorateClass([
|
|
5461
|
-
(0,
|
|
5439
|
+
(0, import_typeorm57.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5462
5440
|
], AdminRole.prototype, "isActive", 2);
|
|
5463
5441
|
__decorateClass([
|
|
5464
|
-
(0,
|
|
5442
|
+
(0, import_typeorm57.OneToMany)(
|
|
5465
5443
|
() => AdminRolePermission,
|
|
5466
5444
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
5467
5445
|
)
|
|
5468
5446
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
5469
5447
|
__decorateClass([
|
|
5470
|
-
(0,
|
|
5448
|
+
(0, import_typeorm57.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
5471
5449
|
], AdminRole.prototype, "userRoles", 2);
|
|
5472
5450
|
AdminRole = __decorateClass([
|
|
5473
|
-
(0,
|
|
5451
|
+
(0, import_typeorm57.Entity)("admin_roles")
|
|
5474
5452
|
], AdminRole);
|
|
5475
5453
|
|
|
5476
5454
|
// src/entities/admin-user-role.entity.ts
|
|
5477
5455
|
var AdminUserRole = class extends BaseEntity {
|
|
5478
5456
|
};
|
|
5479
5457
|
__decorateClass([
|
|
5480
|
-
(0,
|
|
5458
|
+
(0, import_typeorm58.Column)({
|
|
5481
5459
|
name: "user_id",
|
|
5482
5460
|
type: "int",
|
|
5483
5461
|
nullable: true,
|
|
@@ -5485,11 +5463,11 @@ __decorateClass([
|
|
|
5485
5463
|
})
|
|
5486
5464
|
], AdminUserRole.prototype, "userId", 2);
|
|
5487
5465
|
__decorateClass([
|
|
5488
|
-
(0,
|
|
5489
|
-
(0,
|
|
5466
|
+
(0, import_typeorm58.ManyToOne)(() => User),
|
|
5467
|
+
(0, import_typeorm58.JoinColumn)({ name: "user_id" })
|
|
5490
5468
|
], AdminUserRole.prototype, "user", 2);
|
|
5491
5469
|
__decorateClass([
|
|
5492
|
-
(0,
|
|
5470
|
+
(0, import_typeorm58.Column)({
|
|
5493
5471
|
name: "role_id",
|
|
5494
5472
|
type: "int",
|
|
5495
5473
|
nullable: true,
|
|
@@ -5497,58 +5475,58 @@ __decorateClass([
|
|
|
5497
5475
|
})
|
|
5498
5476
|
], AdminUserRole.prototype, "roleId", 2);
|
|
5499
5477
|
__decorateClass([
|
|
5500
|
-
(0,
|
|
5501
|
-
(0,
|
|
5478
|
+
(0, import_typeorm58.ManyToOne)(() => AdminRole),
|
|
5479
|
+
(0, import_typeorm58.JoinColumn)({ name: "role_id" })
|
|
5502
5480
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
5503
5481
|
AdminUserRole = __decorateClass([
|
|
5504
|
-
(0,
|
|
5482
|
+
(0, import_typeorm58.Entity)("admin_user_roles")
|
|
5505
5483
|
], AdminUserRole);
|
|
5506
5484
|
|
|
5507
5485
|
// src/entities/freelancer-resume.entity.ts
|
|
5508
|
-
var
|
|
5486
|
+
var import_typeorm59 = require("typeorm");
|
|
5509
5487
|
var FreelancerResume = class extends BaseEntity {
|
|
5510
5488
|
};
|
|
5511
5489
|
// individual index to find profile by user
|
|
5512
5490
|
__decorateClass([
|
|
5513
|
-
(0,
|
|
5514
|
-
(0,
|
|
5491
|
+
(0, import_typeorm59.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5492
|
+
(0, import_typeorm59.Index)()
|
|
5515
5493
|
], FreelancerResume.prototype, "userId", 2);
|
|
5516
5494
|
__decorateClass([
|
|
5517
|
-
(0,
|
|
5518
|
-
(0,
|
|
5495
|
+
(0, import_typeorm59.ManyToOne)(() => User, (user) => user.freelancerProfile),
|
|
5496
|
+
(0, import_typeorm59.JoinColumn)({ name: "user_id" })
|
|
5519
5497
|
], FreelancerResume.prototype, "user", 2);
|
|
5520
5498
|
__decorateClass([
|
|
5521
|
-
(0,
|
|
5499
|
+
(0, import_typeorm59.Column)({ name: "resume_data", type: "jsonb", nullable: true })
|
|
5522
5500
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
5523
5501
|
__decorateClass([
|
|
5524
|
-
(0,
|
|
5502
|
+
(0, import_typeorm59.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
5525
5503
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
5526
5504
|
FreelancerResume = __decorateClass([
|
|
5527
|
-
(0,
|
|
5505
|
+
(0, import_typeorm59.Entity)("freelancer_resumes")
|
|
5528
5506
|
], FreelancerResume);
|
|
5529
5507
|
|
|
5530
5508
|
// src/entities/signature.entity.ts
|
|
5531
|
-
var
|
|
5509
|
+
var import_typeorm60 = require("typeorm");
|
|
5532
5510
|
var Signature = class extends BaseEntity {
|
|
5533
5511
|
};
|
|
5534
5512
|
// individual index to find profile by user
|
|
5535
5513
|
__decorateClass([
|
|
5536
|
-
(0,
|
|
5537
|
-
(0,
|
|
5514
|
+
(0, import_typeorm60.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5515
|
+
(0, import_typeorm60.Index)()
|
|
5538
5516
|
], Signature.prototype, "userId", 2);
|
|
5539
5517
|
__decorateClass([
|
|
5540
|
-
(0,
|
|
5541
|
-
(0,
|
|
5518
|
+
(0, import_typeorm60.ManyToOne)(() => User, (user) => user.signatures),
|
|
5519
|
+
(0, import_typeorm60.JoinColumn)({ name: "user_id" })
|
|
5542
5520
|
], Signature.prototype, "user", 2);
|
|
5543
5521
|
__decorateClass([
|
|
5544
|
-
(0,
|
|
5522
|
+
(0, import_typeorm60.Column)({ name: "signature_url", type: "text", nullable: true })
|
|
5545
5523
|
], Signature.prototype, "signatureUrl", 2);
|
|
5546
5524
|
Signature = __decorateClass([
|
|
5547
|
-
(0,
|
|
5525
|
+
(0, import_typeorm60.Entity)("signatures")
|
|
5548
5526
|
], Signature);
|
|
5549
5527
|
|
|
5550
5528
|
// src/entities/dispute.entity.ts
|
|
5551
|
-
var
|
|
5529
|
+
var import_typeorm61 = require("typeorm");
|
|
5552
5530
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
5553
5531
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
5554
5532
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -5569,36 +5547,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
|
|
|
5569
5547
|
var Dispute = class extends BaseEntity {
|
|
5570
5548
|
};
|
|
5571
5549
|
__decorateClass([
|
|
5572
|
-
(0,
|
|
5573
|
-
(0,
|
|
5550
|
+
(0, import_typeorm61.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
5551
|
+
(0, import_typeorm61.Index)()
|
|
5574
5552
|
], Dispute.prototype, "clientId", 2);
|
|
5575
5553
|
__decorateClass([
|
|
5576
|
-
(0,
|
|
5577
|
-
(0,
|
|
5554
|
+
(0, import_typeorm61.ManyToOne)(() => User, (user) => user.clientDisputes),
|
|
5555
|
+
(0, import_typeorm61.JoinColumn)({ name: "client_id" })
|
|
5578
5556
|
], Dispute.prototype, "client", 2);
|
|
5579
5557
|
__decorateClass([
|
|
5580
|
-
(0,
|
|
5581
|
-
(0,
|
|
5558
|
+
(0, import_typeorm61.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5559
|
+
(0, import_typeorm61.Index)()
|
|
5582
5560
|
], Dispute.prototype, "freelancerId", 2);
|
|
5583
5561
|
__decorateClass([
|
|
5584
|
-
(0,
|
|
5585
|
-
(0,
|
|
5562
|
+
(0, import_typeorm61.ManyToOne)(() => User, (user) => user.freelancerDisputes),
|
|
5563
|
+
(0, import_typeorm61.JoinColumn)({ name: "freelancer_id" })
|
|
5586
5564
|
], Dispute.prototype, "freelancer", 2);
|
|
5587
5565
|
__decorateClass([
|
|
5588
|
-
(0,
|
|
5566
|
+
(0, import_typeorm61.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
5589
5567
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
5590
5568
|
__decorateClass([
|
|
5591
|
-
(0,
|
|
5592
|
-
(0,
|
|
5569
|
+
(0, import_typeorm61.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
5570
|
+
(0, import_typeorm61.Index)()
|
|
5593
5571
|
], Dispute.prototype, "disputeType", 2);
|
|
5594
5572
|
__decorateClass([
|
|
5595
|
-
(0,
|
|
5573
|
+
(0, import_typeorm61.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5596
5574
|
], Dispute.prototype, "description", 2);
|
|
5597
5575
|
__decorateClass([
|
|
5598
|
-
(0,
|
|
5576
|
+
(0, import_typeorm61.Column)({ name: "comment", type: "varchar", nullable: true })
|
|
5599
5577
|
], Dispute.prototype, "comment", 2);
|
|
5600
5578
|
__decorateClass([
|
|
5601
|
-
(0,
|
|
5579
|
+
(0, import_typeorm61.Column)({
|
|
5602
5580
|
name: "status",
|
|
5603
5581
|
type: "enum",
|
|
5604
5582
|
enum: DisputeStatusEnum,
|
|
@@ -5606,7 +5584,7 @@ __decorateClass([
|
|
|
5606
5584
|
})
|
|
5607
5585
|
], Dispute.prototype, "status", 2);
|
|
5608
5586
|
__decorateClass([
|
|
5609
|
-
(0,
|
|
5587
|
+
(0, import_typeorm61.Column)({
|
|
5610
5588
|
name: "initiator_type",
|
|
5611
5589
|
type: "enum",
|
|
5612
5590
|
enum: InitiatorTypeEnum,
|
|
@@ -5615,33 +5593,33 @@ __decorateClass([
|
|
|
5615
5593
|
})
|
|
5616
5594
|
], Dispute.prototype, "initiatorType", 2);
|
|
5617
5595
|
__decorateClass([
|
|
5618
|
-
(0,
|
|
5619
|
-
(0,
|
|
5596
|
+
(0, import_typeorm61.Column)({ name: "initiator_id", type: "integer" }),
|
|
5597
|
+
(0, import_typeorm61.Index)()
|
|
5620
5598
|
], Dispute.prototype, "initiatorId", 2);
|
|
5621
5599
|
__decorateClass([
|
|
5622
|
-
(0,
|
|
5623
|
-
(0,
|
|
5600
|
+
(0, import_typeorm61.ManyToOne)(() => User, (user) => user.initiatedDisputes),
|
|
5601
|
+
(0, import_typeorm61.JoinColumn)({ name: "initiator_id" })
|
|
5624
5602
|
], Dispute.prototype, "initiator", 2);
|
|
5625
5603
|
__decorateClass([
|
|
5626
|
-
(0,
|
|
5627
|
-
(0,
|
|
5604
|
+
(0, import_typeorm61.Column)({ name: "respondent_id", type: "integer", nullable: true }),
|
|
5605
|
+
(0, import_typeorm61.Index)()
|
|
5628
5606
|
], Dispute.prototype, "respondentId", 2);
|
|
5629
5607
|
__decorateClass([
|
|
5630
|
-
(0,
|
|
5631
|
-
(0,
|
|
5608
|
+
(0, import_typeorm61.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
5609
|
+
(0, import_typeorm61.JoinColumn)({ name: "respondent_id" })
|
|
5632
5610
|
], Dispute.prototype, "respondent", 2);
|
|
5633
5611
|
__decorateClass([
|
|
5634
|
-
(0,
|
|
5612
|
+
(0, import_typeorm61.Column)({ name: "attachments", type: "jsonb", nullable: true })
|
|
5635
5613
|
], Dispute.prototype, "attachments", 2);
|
|
5636
5614
|
__decorateClass([
|
|
5637
|
-
(0,
|
|
5615
|
+
(0, import_typeorm61.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
5638
5616
|
], Dispute.prototype, "dynamicFields", 2);
|
|
5639
5617
|
Dispute = __decorateClass([
|
|
5640
|
-
(0,
|
|
5618
|
+
(0, import_typeorm61.Entity)("disputes")
|
|
5641
5619
|
], Dispute);
|
|
5642
5620
|
|
|
5643
5621
|
// src/entities/stripe-transaction.entity.ts
|
|
5644
|
-
var
|
|
5622
|
+
var import_typeorm62 = require("typeorm");
|
|
5645
5623
|
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
5646
5624
|
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
5647
5625
|
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -5663,97 +5641,97 @@ var StripeTransaction = class extends BaseEntity {
|
|
|
5663
5641
|
// Full Stripe session response
|
|
5664
5642
|
};
|
|
5665
5643
|
__decorateClass([
|
|
5666
|
-
(0,
|
|
5667
|
-
(0,
|
|
5644
|
+
(0, import_typeorm62.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5645
|
+
(0, import_typeorm62.Index)()
|
|
5668
5646
|
], StripeTransaction.prototype, "userId", 2);
|
|
5669
5647
|
__decorateClass([
|
|
5670
|
-
(0,
|
|
5671
|
-
(0,
|
|
5648
|
+
(0, import_typeorm62.ManyToOne)(() => User, (user) => user.stripeTransactions),
|
|
5649
|
+
(0, import_typeorm62.JoinColumn)({ name: "user_id" })
|
|
5672
5650
|
], StripeTransaction.prototype, "user", 2);
|
|
5673
5651
|
__decorateClass([
|
|
5674
|
-
(0,
|
|
5652
|
+
(0, import_typeorm62.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
5675
5653
|
], StripeTransaction.prototype, "stripeSessionId", 2);
|
|
5676
5654
|
__decorateClass([
|
|
5677
|
-
(0,
|
|
5655
|
+
(0, import_typeorm62.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
5678
5656
|
], StripeTransaction.prototype, "stripePaymentIntentId", 2);
|
|
5679
5657
|
__decorateClass([
|
|
5680
|
-
(0,
|
|
5658
|
+
(0, import_typeorm62.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
5681
5659
|
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
5682
5660
|
__decorateClass([
|
|
5683
|
-
(0,
|
|
5661
|
+
(0, import_typeorm62.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
|
|
5684
5662
|
], StripeTransaction.prototype, "stripeReceiptUrl", 2);
|
|
5685
5663
|
__decorateClass([
|
|
5686
|
-
(0,
|
|
5664
|
+
(0, import_typeorm62.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
5687
5665
|
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
5688
5666
|
__decorateClass([
|
|
5689
|
-
(0,
|
|
5667
|
+
(0, import_typeorm62.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
|
|
5690
5668
|
], StripeTransaction.prototype, "stripePaymentMethod", 2);
|
|
5691
5669
|
__decorateClass([
|
|
5692
|
-
(0,
|
|
5670
|
+
(0, import_typeorm62.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
|
|
5693
5671
|
], StripeTransaction.prototype, "stripePaymentStatus", 2);
|
|
5694
5672
|
__decorateClass([
|
|
5695
|
-
(0,
|
|
5673
|
+
(0, import_typeorm62.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
|
|
5696
5674
|
], StripeTransaction.prototype, "type", 2);
|
|
5697
5675
|
__decorateClass([
|
|
5698
|
-
(0,
|
|
5676
|
+
(0, import_typeorm62.Column)({ name: "currency", type: "varchar", nullable: true })
|
|
5699
5677
|
], StripeTransaction.prototype, "currency", 2);
|
|
5700
5678
|
__decorateClass([
|
|
5701
|
-
(0,
|
|
5679
|
+
(0, import_typeorm62.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" })
|
|
5702
5680
|
], StripeTransaction.prototype, "desiredDepositCents", 2);
|
|
5703
5681
|
__decorateClass([
|
|
5704
|
-
(0,
|
|
5682
|
+
(0, import_typeorm62.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
|
|
5705
5683
|
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
5706
5684
|
__decorateClass([
|
|
5707
|
-
(0,
|
|
5685
|
+
(0, import_typeorm62.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
|
|
5708
5686
|
], StripeTransaction.prototype, "taxCents", 2);
|
|
5709
5687
|
__decorateClass([
|
|
5710
|
-
(0,
|
|
5688
|
+
(0, import_typeorm62.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
|
|
5711
5689
|
], StripeTransaction.prototype, "estimatedStripeFee", 2);
|
|
5712
5690
|
__decorateClass([
|
|
5713
|
-
(0,
|
|
5691
|
+
(0, import_typeorm62.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" })
|
|
5714
5692
|
], StripeTransaction.prototype, "estimatedTotalCents", 2);
|
|
5715
5693
|
__decorateClass([
|
|
5716
|
-
(0,
|
|
5694
|
+
(0, import_typeorm62.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
|
|
5717
5695
|
], StripeTransaction.prototype, "actualStripeFee", 2);
|
|
5718
5696
|
__decorateClass([
|
|
5719
|
-
(0,
|
|
5697
|
+
(0, import_typeorm62.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
|
|
5720
5698
|
], StripeTransaction.prototype, "actualTotalPaidCents", 2);
|
|
5721
5699
|
__decorateClass([
|
|
5722
|
-
(0,
|
|
5700
|
+
(0, import_typeorm62.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" })
|
|
5723
5701
|
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
5724
5702
|
__decorateClass([
|
|
5725
|
-
(0,
|
|
5703
|
+
(0, import_typeorm62.Column)({ name: "description", type: "text", nullable: true })
|
|
5726
5704
|
], StripeTransaction.prototype, "description", 2);
|
|
5727
5705
|
__decorateClass([
|
|
5728
|
-
(0,
|
|
5706
|
+
(0, import_typeorm62.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5729
5707
|
], StripeTransaction.prototype, "status", 2);
|
|
5730
5708
|
__decorateClass([
|
|
5731
|
-
(0,
|
|
5709
|
+
(0, import_typeorm62.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
|
|
5732
5710
|
], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
|
|
5733
5711
|
__decorateClass([
|
|
5734
|
-
(0,
|
|
5712
|
+
(0, import_typeorm62.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5735
5713
|
], StripeTransaction.prototype, "completedAt", 2);
|
|
5736
5714
|
__decorateClass([
|
|
5737
|
-
(0,
|
|
5715
|
+
(0, import_typeorm62.Column)({ name: "billing_details", type: "jsonb", nullable: true })
|
|
5738
5716
|
], StripeTransaction.prototype, "billingDetails", 2);
|
|
5739
5717
|
__decorateClass([
|
|
5740
|
-
(0,
|
|
5718
|
+
(0, import_typeorm62.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
|
|
5741
5719
|
], StripeTransaction.prototype, "paymentMethodDetails", 2);
|
|
5742
5720
|
__decorateClass([
|
|
5743
|
-
(0,
|
|
5721
|
+
(0, import_typeorm62.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
|
|
5744
5722
|
], StripeTransaction.prototype, "rawSessionPayload", 2);
|
|
5745
5723
|
__decorateClass([
|
|
5746
|
-
(0,
|
|
5724
|
+
(0, import_typeorm62.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
5747
5725
|
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
5748
5726
|
StripeTransaction = __decorateClass([
|
|
5749
|
-
(0,
|
|
5727
|
+
(0, import_typeorm62.Entity)("stripe_transactions")
|
|
5750
5728
|
], StripeTransaction);
|
|
5751
5729
|
|
|
5752
5730
|
// src/entities/wallet.entity.ts
|
|
5753
|
-
var
|
|
5731
|
+
var import_typeorm64 = require("typeorm");
|
|
5754
5732
|
|
|
5755
5733
|
// src/entities/wallet-transaction.entity.ts
|
|
5756
|
-
var
|
|
5734
|
+
var import_typeorm63 = require("typeorm");
|
|
5757
5735
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
5758
5736
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
5759
5737
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -5770,46 +5748,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
|
|
|
5770
5748
|
var WalletTransaction = class extends BaseEntity {
|
|
5771
5749
|
};
|
|
5772
5750
|
__decorateClass([
|
|
5773
|
-
(0,
|
|
5774
|
-
(0,
|
|
5751
|
+
(0, import_typeorm63.Column)({ name: "wallet_id", type: "integer", nullable: true }),
|
|
5752
|
+
(0, import_typeorm63.Index)()
|
|
5775
5753
|
], WalletTransaction.prototype, "walletId", 2);
|
|
5776
5754
|
__decorateClass([
|
|
5777
|
-
(0,
|
|
5778
|
-
(0,
|
|
5755
|
+
(0, import_typeorm63.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
5756
|
+
(0, import_typeorm63.JoinColumn)({ name: "wallet_id" })
|
|
5779
5757
|
], WalletTransaction.prototype, "wallet", 2);
|
|
5780
5758
|
__decorateClass([
|
|
5781
|
-
(0,
|
|
5759
|
+
(0, import_typeorm63.Column)({ name: "amount", type: "bigint", nullable: true })
|
|
5782
5760
|
], WalletTransaction.prototype, "amount", 2);
|
|
5783
5761
|
__decorateClass([
|
|
5784
|
-
(0,
|
|
5762
|
+
(0, import_typeorm63.Column)({ name: "balance_before", type: "bigint", nullable: true })
|
|
5785
5763
|
], WalletTransaction.prototype, "balanceBefore", 2);
|
|
5786
5764
|
__decorateClass([
|
|
5787
|
-
(0,
|
|
5765
|
+
(0, import_typeorm63.Column)({ name: "balance_after", type: "bigint", nullable: true })
|
|
5788
5766
|
], WalletTransaction.prototype, "balanceAfter", 2);
|
|
5789
5767
|
__decorateClass([
|
|
5790
|
-
(0,
|
|
5768
|
+
(0, import_typeorm63.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
5791
5769
|
], WalletTransaction.prototype, "type", 2);
|
|
5792
5770
|
__decorateClass([
|
|
5793
|
-
(0,
|
|
5771
|
+
(0, import_typeorm63.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5794
5772
|
], WalletTransaction.prototype, "status", 2);
|
|
5795
5773
|
__decorateClass([
|
|
5796
|
-
(0,
|
|
5774
|
+
(0, import_typeorm63.Column)({ name: "description", type: "text", nullable: true })
|
|
5797
5775
|
], WalletTransaction.prototype, "description", 2);
|
|
5798
5776
|
__decorateClass([
|
|
5799
|
-
(0,
|
|
5777
|
+
(0, import_typeorm63.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5800
5778
|
], WalletTransaction.prototype, "completedAt", 2);
|
|
5801
5779
|
__decorateClass([
|
|
5802
|
-
(0,
|
|
5780
|
+
(0, import_typeorm63.Column)({ name: "transaction_for", type: "varchar", nullable: true })
|
|
5803
5781
|
], WalletTransaction.prototype, "transactionFor", 2);
|
|
5804
5782
|
__decorateClass([
|
|
5805
|
-
(0,
|
|
5783
|
+
(0, import_typeorm63.Column)({ name: "meta_data", type: "varchar", nullable: true })
|
|
5806
5784
|
], WalletTransaction.prototype, "metaData", 2);
|
|
5807
5785
|
__decorateClass([
|
|
5808
|
-
(0,
|
|
5809
|
-
(0,
|
|
5786
|
+
(0, import_typeorm63.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
5787
|
+
(0, import_typeorm63.Index)()
|
|
5810
5788
|
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
5811
5789
|
WalletTransaction = __decorateClass([
|
|
5812
|
-
(0,
|
|
5790
|
+
(0, import_typeorm63.Entity)("wallet_transactions")
|
|
5813
5791
|
], WalletTransaction);
|
|
5814
5792
|
|
|
5815
5793
|
// src/entities/wallet.entity.ts
|
|
@@ -5827,43 +5805,43 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
|
|
|
5827
5805
|
var Wallet = class extends BaseEntity {
|
|
5828
5806
|
};
|
|
5829
5807
|
__decorateClass([
|
|
5830
|
-
(0,
|
|
5831
|
-
(0,
|
|
5808
|
+
(0, import_typeorm64.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5809
|
+
(0, import_typeorm64.Index)()
|
|
5832
5810
|
], Wallet.prototype, "userId", 2);
|
|
5833
5811
|
__decorateClass([
|
|
5834
|
-
(0,
|
|
5835
|
-
(0,
|
|
5812
|
+
(0, import_typeorm64.OneToOne)(() => User, (user) => user.wallet),
|
|
5813
|
+
(0, import_typeorm64.JoinColumn)({ name: "user_id" })
|
|
5836
5814
|
], Wallet.prototype, "user", 2);
|
|
5837
5815
|
__decorateClass([
|
|
5838
|
-
(0,
|
|
5816
|
+
(0, import_typeorm64.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
5839
5817
|
], Wallet.prototype, "accountType", 2);
|
|
5840
5818
|
__decorateClass([
|
|
5841
|
-
(0,
|
|
5819
|
+
(0, import_typeorm64.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
5842
5820
|
], Wallet.prototype, "stripeAccountId", 2);
|
|
5843
5821
|
__decorateClass([
|
|
5844
|
-
(0,
|
|
5822
|
+
(0, import_typeorm64.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
5845
5823
|
], Wallet.prototype, "stripeCustomerId", 2);
|
|
5846
5824
|
__decorateClass([
|
|
5847
|
-
(0,
|
|
5825
|
+
(0, import_typeorm64.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" })
|
|
5848
5826
|
], Wallet.prototype, "walletBalance", 2);
|
|
5849
5827
|
__decorateClass([
|
|
5850
|
-
(0,
|
|
5828
|
+
(0, import_typeorm64.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" })
|
|
5851
5829
|
], Wallet.prototype, "walletBalanceCents", 2);
|
|
5852
5830
|
__decorateClass([
|
|
5853
|
-
(0,
|
|
5831
|
+
(0, import_typeorm64.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
|
|
5854
5832
|
], Wallet.prototype, "onboardingStatus", 2);
|
|
5855
5833
|
__decorateClass([
|
|
5856
|
-
(0,
|
|
5834
|
+
(0, import_typeorm64.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
5857
5835
|
], Wallet.prototype, "stripeMetadata", 2);
|
|
5858
5836
|
__decorateClass([
|
|
5859
|
-
(0,
|
|
5837
|
+
(0, import_typeorm64.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
5860
5838
|
], Wallet.prototype, "walletTransactions", 2);
|
|
5861
5839
|
Wallet = __decorateClass([
|
|
5862
|
-
(0,
|
|
5840
|
+
(0, import_typeorm64.Entity)("wallets")
|
|
5863
5841
|
], Wallet);
|
|
5864
5842
|
|
|
5865
5843
|
// src/entities/freelancer-assessment-request.entity.ts
|
|
5866
|
-
var
|
|
5844
|
+
var import_typeorm65 = require("typeorm");
|
|
5867
5845
|
var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2) => {
|
|
5868
5846
|
AssessmentRequestStatusEnum2["PENDING"] = "PENDING";
|
|
5869
5847
|
AssessmentRequestStatusEnum2["APPROVED"] = "APPROVED";
|
|
@@ -5873,23 +5851,23 @@ var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2
|
|
|
5873
5851
|
var FreelancerAssessmentRequest = class extends BaseEntity {
|
|
5874
5852
|
};
|
|
5875
5853
|
__decorateClass([
|
|
5876
|
-
(0,
|
|
5877
|
-
(0,
|
|
5854
|
+
(0, import_typeorm65.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5855
|
+
(0, import_typeorm65.Index)()
|
|
5878
5856
|
], FreelancerAssessmentRequest.prototype, "freelancerId", 2);
|
|
5879
5857
|
__decorateClass([
|
|
5880
|
-
(0,
|
|
5881
|
-
(0,
|
|
5858
|
+
(0, import_typeorm65.ManyToOne)(() => User, (user) => user.freelancerAssessmentRequests),
|
|
5859
|
+
(0, import_typeorm65.JoinColumn)({ name: "freelancer_id" })
|
|
5882
5860
|
], FreelancerAssessmentRequest.prototype, "freelancer", 2);
|
|
5883
5861
|
__decorateClass([
|
|
5884
|
-
(0,
|
|
5885
|
-
(0,
|
|
5862
|
+
(0, import_typeorm65.Column)({ name: "approved_by_id", type: "integer", nullable: true }),
|
|
5863
|
+
(0, import_typeorm65.Index)()
|
|
5886
5864
|
], FreelancerAssessmentRequest.prototype, "approvedById", 2);
|
|
5887
5865
|
__decorateClass([
|
|
5888
|
-
(0,
|
|
5889
|
-
(0,
|
|
5866
|
+
(0, import_typeorm65.ManyToOne)(() => User, (user) => user.assessmentRequests),
|
|
5867
|
+
(0, import_typeorm65.JoinColumn)({ name: "approved_by_id" })
|
|
5890
5868
|
], FreelancerAssessmentRequest.prototype, "approvedBy", 2);
|
|
5891
5869
|
__decorateClass([
|
|
5892
|
-
(0,
|
|
5870
|
+
(0, import_typeorm65.Column)({
|
|
5893
5871
|
name: "status",
|
|
5894
5872
|
type: "enum",
|
|
5895
5873
|
enum: AssessmentRequestStatusEnum,
|
|
@@ -5897,44 +5875,44 @@ __decorateClass([
|
|
|
5897
5875
|
})
|
|
5898
5876
|
], FreelancerAssessmentRequest.prototype, "status", 2);
|
|
5899
5877
|
__decorateClass([
|
|
5900
|
-
(0,
|
|
5878
|
+
(0, import_typeorm65.Column)({ name: "assessment_link", type: "text", nullable: true })
|
|
5901
5879
|
], FreelancerAssessmentRequest.prototype, "assessmentLink", 2);
|
|
5902
5880
|
FreelancerAssessmentRequest = __decorateClass([
|
|
5903
|
-
(0,
|
|
5881
|
+
(0, import_typeorm65.Entity)({ name: "freelancer_assessment_requests" })
|
|
5904
5882
|
], FreelancerAssessmentRequest);
|
|
5905
5883
|
|
|
5906
5884
|
// src/entities/in-app-notification.entity.ts
|
|
5907
|
-
var
|
|
5885
|
+
var import_typeorm66 = require("typeorm");
|
|
5908
5886
|
var InAppNotification = class extends BaseEntity {
|
|
5909
5887
|
};
|
|
5910
5888
|
__decorateClass([
|
|
5911
|
-
(0,
|
|
5912
|
-
(0,
|
|
5889
|
+
(0, import_typeorm66.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5890
|
+
(0, import_typeorm66.Index)()
|
|
5913
5891
|
], InAppNotification.prototype, "userId", 2);
|
|
5914
5892
|
__decorateClass([
|
|
5915
|
-
(0,
|
|
5916
|
-
(0,
|
|
5893
|
+
(0, import_typeorm66.ManyToOne)(() => User, (user) => user.inAppNotifications),
|
|
5894
|
+
(0, import_typeorm66.JoinColumn)({ name: "user_id" })
|
|
5917
5895
|
], InAppNotification.prototype, "user", 2);
|
|
5918
5896
|
__decorateClass([
|
|
5919
|
-
(0,
|
|
5897
|
+
(0, import_typeorm66.Column)({ name: "event", type: "varchar", nullable: true })
|
|
5920
5898
|
], InAppNotification.prototype, "event", 2);
|
|
5921
5899
|
__decorateClass([
|
|
5922
|
-
(0,
|
|
5900
|
+
(0, import_typeorm66.Column)({ name: "title", type: "varchar", nullable: true })
|
|
5923
5901
|
], InAppNotification.prototype, "title", 2);
|
|
5924
5902
|
__decorateClass([
|
|
5925
|
-
(0,
|
|
5903
|
+
(0, import_typeorm66.Column)({ name: "message", type: "varchar", nullable: true })
|
|
5926
5904
|
], InAppNotification.prototype, "message", 2);
|
|
5927
5905
|
__decorateClass([
|
|
5928
|
-
(0,
|
|
5906
|
+
(0, import_typeorm66.Column)({ name: "redirect_url", type: "varchar", nullable: true })
|
|
5929
5907
|
], InAppNotification.prototype, "redirectUrl", 2);
|
|
5930
5908
|
__decorateClass([
|
|
5931
|
-
(0,
|
|
5909
|
+
(0, import_typeorm66.Column)({ name: "is_read", type: "boolean", default: false })
|
|
5932
5910
|
], InAppNotification.prototype, "isRead", 2);
|
|
5933
5911
|
__decorateClass([
|
|
5934
|
-
(0,
|
|
5912
|
+
(0, import_typeorm66.Column)({ name: "meta_data", type: "jsonb", nullable: true })
|
|
5935
5913
|
], InAppNotification.prototype, "metaData", 2);
|
|
5936
5914
|
InAppNotification = __decorateClass([
|
|
5937
|
-
(0,
|
|
5915
|
+
(0, import_typeorm66.Entity)("in_app_notifications")
|
|
5938
5916
|
], InAppNotification);
|
|
5939
5917
|
|
|
5940
5918
|
// src/entities/user.entity.ts
|
|
@@ -5963,51 +5941,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
5963
5941
|
var User = class extends BaseEntity {
|
|
5964
5942
|
};
|
|
5965
5943
|
__decorateClass([
|
|
5966
|
-
(0,
|
|
5944
|
+
(0, import_typeorm67.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
5967
5945
|
], User.prototype, "uniqueId", 2);
|
|
5968
5946
|
__decorateClass([
|
|
5969
|
-
(0,
|
|
5970
|
-
(0,
|
|
5947
|
+
(0, import_typeorm67.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
5948
|
+
(0, import_typeorm67.Index)()
|
|
5971
5949
|
], User.prototype, "parentId", 2);
|
|
5972
5950
|
__decorateClass([
|
|
5973
|
-
(0,
|
|
5974
|
-
(0,
|
|
5951
|
+
(0, import_typeorm67.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
5952
|
+
(0, import_typeorm67.JoinColumn)({ name: "parent_id" })
|
|
5975
5953
|
], User.prototype, "parent", 2);
|
|
5976
5954
|
__decorateClass([
|
|
5977
|
-
(0,
|
|
5955
|
+
(0, import_typeorm67.OneToMany)(() => User, (user) => user.parent)
|
|
5978
5956
|
], User.prototype, "children", 2);
|
|
5979
5957
|
__decorateClass([
|
|
5980
|
-
(0,
|
|
5958
|
+
(0, import_typeorm67.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
5981
5959
|
], User.prototype, "username", 2);
|
|
5982
5960
|
__decorateClass([
|
|
5983
|
-
(0,
|
|
5961
|
+
(0, import_typeorm67.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
5984
5962
|
], User.prototype, "firstName", 2);
|
|
5985
5963
|
__decorateClass([
|
|
5986
|
-
(0,
|
|
5964
|
+
(0, import_typeorm67.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
5987
5965
|
], User.prototype, "lastName", 2);
|
|
5988
5966
|
__decorateClass([
|
|
5989
|
-
(0,
|
|
5967
|
+
(0, import_typeorm67.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
5990
5968
|
], User.prototype, "dateOfBirth", 2);
|
|
5991
5969
|
__decorateClass([
|
|
5992
|
-
(0,
|
|
5970
|
+
(0, import_typeorm67.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
5993
5971
|
], User.prototype, "gender", 2);
|
|
5994
5972
|
__decorateClass([
|
|
5995
|
-
(0,
|
|
5973
|
+
(0, import_typeorm67.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
5996
5974
|
], User.prototype, "profilePictureUrl", 2);
|
|
5997
5975
|
__decorateClass([
|
|
5998
|
-
(0,
|
|
5976
|
+
(0, import_typeorm67.Column)({ name: "email", type: "varchar", unique: true })
|
|
5999
5977
|
], User.prototype, "email", 2);
|
|
6000
5978
|
__decorateClass([
|
|
6001
|
-
(0,
|
|
5979
|
+
(0, import_typeorm67.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
6002
5980
|
], User.prototype, "mobileCode", 2);
|
|
6003
5981
|
__decorateClass([
|
|
6004
|
-
(0,
|
|
5982
|
+
(0, import_typeorm67.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
6005
5983
|
], User.prototype, "mobile", 2);
|
|
6006
5984
|
__decorateClass([
|
|
6007
|
-
(0,
|
|
5985
|
+
(0, import_typeorm67.Column)({ name: "password", type: "varchar", nullable: true })
|
|
6008
5986
|
], User.prototype, "password", 2);
|
|
6009
5987
|
__decorateClass([
|
|
6010
|
-
(0,
|
|
5988
|
+
(0, import_typeorm67.Column)({
|
|
6011
5989
|
name: "account_type",
|
|
6012
5990
|
type: "enum",
|
|
6013
5991
|
enum: AccountType2,
|
|
@@ -6015,7 +5993,7 @@ __decorateClass([
|
|
|
6015
5993
|
})
|
|
6016
5994
|
], User.prototype, "accountType", 2);
|
|
6017
5995
|
__decorateClass([
|
|
6018
|
-
(0,
|
|
5996
|
+
(0, import_typeorm67.Column)({
|
|
6019
5997
|
name: "account_status",
|
|
6020
5998
|
type: "enum",
|
|
6021
5999
|
enum: AccountStatus,
|
|
@@ -6023,42 +6001,42 @@ __decorateClass([
|
|
|
6023
6001
|
})
|
|
6024
6002
|
], User.prototype, "accountStatus", 2);
|
|
6025
6003
|
__decorateClass([
|
|
6026
|
-
(0,
|
|
6004
|
+
(0, import_typeorm67.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
6027
6005
|
], User.prototype, "isEmailVerified", 2);
|
|
6028
6006
|
__decorateClass([
|
|
6029
|
-
(0,
|
|
6007
|
+
(0, import_typeorm67.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
6030
6008
|
], User.prototype, "isMobileVerified", 2);
|
|
6031
6009
|
__decorateClass([
|
|
6032
|
-
(0,
|
|
6010
|
+
(0, import_typeorm67.Column)({ name: "is_social", type: "boolean", default: false })
|
|
6033
6011
|
], User.prototype, "isSocial", 2);
|
|
6034
6012
|
__decorateClass([
|
|
6035
|
-
(0,
|
|
6013
|
+
(0, import_typeorm67.Column)({
|
|
6036
6014
|
name: "last_login_at",
|
|
6037
6015
|
type: "timestamp with time zone",
|
|
6038
6016
|
nullable: true
|
|
6039
6017
|
})
|
|
6040
6018
|
], User.prototype, "lastLoginAt", 2);
|
|
6041
6019
|
__decorateClass([
|
|
6042
|
-
(0,
|
|
6020
|
+
(0, import_typeorm67.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
6043
6021
|
], User.prototype, "lastLoginIp", 2);
|
|
6044
6022
|
__decorateClass([
|
|
6045
|
-
(0,
|
|
6023
|
+
(0, import_typeorm67.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
6046
6024
|
], User.prototype, "resetToken", 2);
|
|
6047
6025
|
__decorateClass([
|
|
6048
|
-
(0,
|
|
6026
|
+
(0, import_typeorm67.Column)({
|
|
6049
6027
|
name: "reset_token_expire_at",
|
|
6050
6028
|
type: "timestamp with time zone",
|
|
6051
6029
|
nullable: true
|
|
6052
6030
|
})
|
|
6053
6031
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
6054
6032
|
__decorateClass([
|
|
6055
|
-
(0,
|
|
6033
|
+
(0, import_typeorm67.Column)({ name: "set_password_token", type: "varchar", nullable: true })
|
|
6056
6034
|
], User.prototype, "setPasswordToken", 2);
|
|
6057
6035
|
__decorateClass([
|
|
6058
|
-
(0,
|
|
6036
|
+
(0, import_typeorm67.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
6059
6037
|
], User.prototype, "refreshTokens", 2);
|
|
6060
6038
|
__decorateClass([
|
|
6061
|
-
(0,
|
|
6039
|
+
(0, import_typeorm67.Column)({
|
|
6062
6040
|
name: "provider",
|
|
6063
6041
|
type: "enum",
|
|
6064
6042
|
enum: Provider,
|
|
@@ -6067,251 +6045,251 @@ __decorateClass([
|
|
|
6067
6045
|
})
|
|
6068
6046
|
], User.prototype, "provider", 2);
|
|
6069
6047
|
__decorateClass([
|
|
6070
|
-
(0,
|
|
6048
|
+
(0, import_typeorm67.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
6071
6049
|
], User.prototype, "providerToken", 2);
|
|
6072
6050
|
__decorateClass([
|
|
6073
|
-
(0,
|
|
6051
|
+
(0, import_typeorm67.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
6074
6052
|
], User.prototype, "linkedInId", 2);
|
|
6075
6053
|
__decorateClass([
|
|
6076
|
-
(0,
|
|
6054
|
+
(0, import_typeorm67.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
6077
6055
|
], User.prototype, "googleId", 2);
|
|
6078
6056
|
__decorateClass([
|
|
6079
|
-
(0,
|
|
6057
|
+
(0, import_typeorm67.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
6080
6058
|
], User.prototype, "gitLabsId", 2);
|
|
6081
6059
|
__decorateClass([
|
|
6082
|
-
(0,
|
|
6060
|
+
(0, import_typeorm67.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
6083
6061
|
], User.prototype, "onBoardedBy", 2);
|
|
6084
6062
|
__decorateClass([
|
|
6085
|
-
(0,
|
|
6063
|
+
(0, import_typeorm67.OneToMany)(() => Otp, (otp) => otp.user)
|
|
6086
6064
|
], User.prototype, "otps", 2);
|
|
6087
6065
|
__decorateClass([
|
|
6088
|
-
(0,
|
|
6066
|
+
(0, import_typeorm67.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
6089
6067
|
], User.prototype, "senseloafLogs", 2);
|
|
6090
6068
|
__decorateClass([
|
|
6091
|
-
(0,
|
|
6069
|
+
(0, import_typeorm67.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
6092
6070
|
], User.prototype, "companyProfile", 2);
|
|
6093
6071
|
__decorateClass([
|
|
6094
|
-
(0,
|
|
6072
|
+
(0, import_typeorm67.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
6095
6073
|
], User.prototype, "companySkills", 2);
|
|
6096
6074
|
__decorateClass([
|
|
6097
|
-
(0,
|
|
6075
|
+
(0, import_typeorm67.OneToMany)(
|
|
6098
6076
|
() => CompanyMemberRole,
|
|
6099
6077
|
(companyMemberRole) => companyMemberRole.user
|
|
6100
6078
|
)
|
|
6101
6079
|
], User.prototype, "companyMemberRoles", 2);
|
|
6102
6080
|
__decorateClass([
|
|
6103
|
-
(0,
|
|
6081
|
+
(0, import_typeorm67.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
6104
6082
|
], User.prototype, "companyAiInterview", 2);
|
|
6105
6083
|
__decorateClass([
|
|
6106
|
-
(0,
|
|
6084
|
+
(0, import_typeorm67.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
6107
6085
|
], User.prototype, "clientF2FInterviews", 2);
|
|
6108
6086
|
__decorateClass([
|
|
6109
|
-
(0,
|
|
6087
|
+
(0, import_typeorm67.OneToOne)(
|
|
6110
6088
|
() => FreelancerProfile,
|
|
6111
6089
|
(freelancerProfile) => freelancerProfile.user
|
|
6112
6090
|
)
|
|
6113
6091
|
], User.prototype, "freelancerProfile", 2);
|
|
6114
6092
|
__decorateClass([
|
|
6115
|
-
(0,
|
|
6093
|
+
(0, import_typeorm67.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
6116
6094
|
], User.prototype, "freelancerResume", 2);
|
|
6117
6095
|
__decorateClass([
|
|
6118
|
-
(0,
|
|
6096
|
+
(0, import_typeorm67.OneToMany)(
|
|
6119
6097
|
() => FreelancerAssessmentRequest,
|
|
6120
6098
|
(freelancerAssessmentRequest) => freelancerAssessmentRequest.freelancer
|
|
6121
6099
|
)
|
|
6122
6100
|
], User.prototype, "freelancerAssessmentRequests", 2);
|
|
6123
6101
|
__decorateClass([
|
|
6124
|
-
(0,
|
|
6102
|
+
(0, import_typeorm67.OneToMany)(
|
|
6125
6103
|
() => FreelancerAssessmentRequest,
|
|
6126
6104
|
(freelancerAssessment) => freelancerAssessment.approvedBy
|
|
6127
6105
|
)
|
|
6128
6106
|
], User.prototype, "assessmentRequests", 2);
|
|
6129
6107
|
__decorateClass([
|
|
6130
|
-
(0,
|
|
6108
|
+
(0, import_typeorm67.OneToMany)(
|
|
6131
6109
|
() => FreelancerAssessment,
|
|
6132
6110
|
(freelancerAssessment) => freelancerAssessment.user
|
|
6133
6111
|
)
|
|
6134
6112
|
], User.prototype, "assessments", 2);
|
|
6135
6113
|
__decorateClass([
|
|
6136
|
-
(0,
|
|
6114
|
+
(0, import_typeorm67.OneToMany)(
|
|
6137
6115
|
() => AssessmentAnswer,
|
|
6138
6116
|
(assessmentAnswer) => assessmentAnswer.user
|
|
6139
6117
|
)
|
|
6140
6118
|
], User.prototype, "assessmentAnswers", 2);
|
|
6141
6119
|
__decorateClass([
|
|
6142
|
-
(0,
|
|
6120
|
+
(0, import_typeorm67.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
6143
6121
|
], User.prototype, "freelancerSkills", 2);
|
|
6144
6122
|
__decorateClass([
|
|
6145
|
-
(0,
|
|
6123
|
+
(0, import_typeorm67.OneToMany)(
|
|
6146
6124
|
() => FreelancerExperience,
|
|
6147
6125
|
(freelancerExperience) => freelancerExperience.user
|
|
6148
6126
|
)
|
|
6149
6127
|
], User.prototype, "freelancerExperience", 2);
|
|
6150
6128
|
__decorateClass([
|
|
6151
|
-
(0,
|
|
6129
|
+
(0, import_typeorm67.OneToMany)(
|
|
6152
6130
|
() => FreelancerEducation,
|
|
6153
6131
|
(freelancerEducation) => freelancerEducation.user
|
|
6154
6132
|
)
|
|
6155
6133
|
], User.prototype, "freelancerEducation", 2);
|
|
6156
6134
|
__decorateClass([
|
|
6157
|
-
(0,
|
|
6135
|
+
(0, import_typeorm67.OneToMany)(
|
|
6158
6136
|
() => FreelancerProject,
|
|
6159
6137
|
(freelancerProject) => freelancerProject.user
|
|
6160
6138
|
)
|
|
6161
6139
|
], User.prototype, "freelancerProject", 2);
|
|
6162
6140
|
__decorateClass([
|
|
6163
|
-
(0,
|
|
6141
|
+
(0, import_typeorm67.OneToMany)(
|
|
6164
6142
|
() => FreelancerCaseStudy,
|
|
6165
6143
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
6166
6144
|
)
|
|
6167
6145
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
6168
6146
|
__decorateClass([
|
|
6169
|
-
(0,
|
|
6147
|
+
(0, import_typeorm67.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
6170
6148
|
], User.prototype, "freelancerTool", 2);
|
|
6171
6149
|
__decorateClass([
|
|
6172
|
-
(0,
|
|
6150
|
+
(0, import_typeorm67.OneToMany)(
|
|
6173
6151
|
() => FreelancerFramework,
|
|
6174
6152
|
(freelancerFramework) => freelancerFramework.user
|
|
6175
6153
|
)
|
|
6176
6154
|
], User.prototype, "freelancerFramework", 2);
|
|
6177
6155
|
__decorateClass([
|
|
6178
|
-
(0,
|
|
6156
|
+
(0, import_typeorm67.OneToOne)(
|
|
6179
6157
|
() => FreelancerDeclaration,
|
|
6180
6158
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
6181
6159
|
)
|
|
6182
6160
|
], User.prototype, "freelancerDeclaration", 2);
|
|
6183
6161
|
__decorateClass([
|
|
6184
|
-
(0,
|
|
6162
|
+
(0, import_typeorm67.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
6185
6163
|
], User.prototype, "freelancerMcq", 2);
|
|
6186
6164
|
__decorateClass([
|
|
6187
|
-
(0,
|
|
6165
|
+
(0, import_typeorm67.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
6188
6166
|
], User.prototype, "freelancerAiInterview", 2);
|
|
6189
6167
|
__decorateClass([
|
|
6190
|
-
(0,
|
|
6168
|
+
(0, import_typeorm67.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
6191
6169
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
6192
6170
|
__decorateClass([
|
|
6193
|
-
(0,
|
|
6171
|
+
(0, import_typeorm67.OneToMany)(
|
|
6194
6172
|
() => F2fInterviewRescheduleRequest,
|
|
6195
6173
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
6196
6174
|
)
|
|
6197
6175
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
6198
6176
|
__decorateClass([
|
|
6199
|
-
(0,
|
|
6177
|
+
(0, import_typeorm67.OneToMany)(
|
|
6200
6178
|
() => AiInterviewRescheduleRequest,
|
|
6201
6179
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.candidate
|
|
6202
6180
|
)
|
|
6203
6181
|
], User.prototype, "freelancerAiInterviewRescheduleRequests", 2);
|
|
6204
6182
|
__decorateClass([
|
|
6205
|
-
(0,
|
|
6183
|
+
(0, import_typeorm67.OneToMany)(
|
|
6206
6184
|
() => AiInterviewRescheduleRequest,
|
|
6207
6185
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.client
|
|
6208
6186
|
)
|
|
6209
6187
|
], User.prototype, "clientAiInterviewRescheduleRequests", 2);
|
|
6210
6188
|
__decorateClass([
|
|
6211
|
-
(0,
|
|
6189
|
+
(0, import_typeorm67.OneToMany)(() => Job, (job) => job.user)
|
|
6212
6190
|
], User.prototype, "jobs", 2);
|
|
6213
6191
|
__decorateClass([
|
|
6214
|
-
(0,
|
|
6192
|
+
(0, import_typeorm67.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
6215
6193
|
], User.prototype, "jobApplications", 2);
|
|
6216
6194
|
__decorateClass([
|
|
6217
|
-
(0,
|
|
6195
|
+
(0, import_typeorm67.OneToMany)(() => Interview, (interview) => interview.user)
|
|
6218
6196
|
], User.prototype, "interviews", 2);
|
|
6219
6197
|
__decorateClass([
|
|
6220
|
-
(0,
|
|
6198
|
+
(0, import_typeorm67.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
6221
6199
|
], User.prototype, "bankDetail", 2);
|
|
6222
6200
|
__decorateClass([
|
|
6223
|
-
(0,
|
|
6201
|
+
(0, import_typeorm67.OneToMany)(
|
|
6224
6202
|
() => SystemPreference,
|
|
6225
6203
|
(systemPreference) => systemPreference.user
|
|
6226
6204
|
)
|
|
6227
6205
|
], User.prototype, "systemPreference", 2);
|
|
6228
6206
|
__decorateClass([
|
|
6229
|
-
(0,
|
|
6207
|
+
(0, import_typeorm67.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
6230
6208
|
], User.prototype, "givenRatings", 2);
|
|
6231
6209
|
__decorateClass([
|
|
6232
|
-
(0,
|
|
6210
|
+
(0, import_typeorm67.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
6233
6211
|
], User.prototype, "receivedRatings", 2);
|
|
6234
6212
|
__decorateClass([
|
|
6235
|
-
(0,
|
|
6213
|
+
(0, import_typeorm67.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
6236
6214
|
], User.prototype, "adminUserRoles", 2);
|
|
6237
6215
|
__decorateClass([
|
|
6238
|
-
(0,
|
|
6216
|
+
(0, import_typeorm67.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
|
|
6239
6217
|
cascade: true
|
|
6240
6218
|
})
|
|
6241
6219
|
], User.prototype, "clientContractSummaries", 2);
|
|
6242
6220
|
__decorateClass([
|
|
6243
|
-
(0,
|
|
6221
|
+
(0, import_typeorm67.OneToMany)(() => Contract, (contract) => contract.client)
|
|
6244
6222
|
], User.prototype, "clientContracts", 2);
|
|
6245
6223
|
__decorateClass([
|
|
6246
|
-
(0,
|
|
6224
|
+
(0, import_typeorm67.OneToMany)(() => Hiring, (hiring) => hiring.client)
|
|
6247
6225
|
], User.prototype, "clientHirings", 2);
|
|
6248
6226
|
__decorateClass([
|
|
6249
|
-
(0,
|
|
6227
|
+
(0, import_typeorm67.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
6250
6228
|
], User.prototype, "clientEscrowWallets", 2);
|
|
6251
6229
|
__decorateClass([
|
|
6252
|
-
(0,
|
|
6230
|
+
(0, import_typeorm67.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
|
|
6253
6231
|
cascade: true
|
|
6254
6232
|
})
|
|
6255
6233
|
], User.prototype, "freelancerContractSummaries", 2);
|
|
6256
6234
|
__decorateClass([
|
|
6257
|
-
(0,
|
|
6235
|
+
(0, import_typeorm67.OneToMany)(() => Contract, (contract) => contract.freelancer)
|
|
6258
6236
|
], User.prototype, "freelancerContracts", 2);
|
|
6259
6237
|
__decorateClass([
|
|
6260
|
-
(0,
|
|
6238
|
+
(0, import_typeorm67.OneToMany)(() => Hiring, (hiring) => hiring.freelancer)
|
|
6261
6239
|
], User.prototype, "freelancerHirings", 2);
|
|
6262
6240
|
__decorateClass([
|
|
6263
|
-
(0,
|
|
6241
|
+
(0, import_typeorm67.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
6264
6242
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
6265
6243
|
__decorateClass([
|
|
6266
|
-
(0,
|
|
6244
|
+
(0, import_typeorm67.OneToOne)(() => Signature, (signature) => signature.user)
|
|
6267
6245
|
], User.prototype, "signatures", 2);
|
|
6268
6246
|
__decorateClass([
|
|
6269
|
-
(0,
|
|
6247
|
+
(0, import_typeorm67.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
|
|
6270
6248
|
], User.prototype, "clientTimesheets", 2);
|
|
6271
6249
|
__decorateClass([
|
|
6272
|
-
(0,
|
|
6250
|
+
(0, import_typeorm67.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
6273
6251
|
], User.prototype, "freelancerTimesheets", 2);
|
|
6274
6252
|
__decorateClass([
|
|
6275
|
-
(0,
|
|
6253
|
+
(0, import_typeorm67.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
6276
6254
|
], User.prototype, "clientTimesheetLine", 2);
|
|
6277
6255
|
__decorateClass([
|
|
6278
|
-
(0,
|
|
6256
|
+
(0, import_typeorm67.OneToMany)(() => Invoice, (invoice) => invoice.client)
|
|
6279
6257
|
], User.prototype, "clientInvoice", 2);
|
|
6280
6258
|
__decorateClass([
|
|
6281
|
-
(0,
|
|
6259
|
+
(0, import_typeorm67.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
6282
6260
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
6283
6261
|
__decorateClass([
|
|
6284
|
-
(0,
|
|
6262
|
+
(0, import_typeorm67.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
|
|
6285
6263
|
], User.prototype, "freelancerInvoice", 2);
|
|
6286
6264
|
__decorateClass([
|
|
6287
|
-
(0,
|
|
6265
|
+
(0, import_typeorm67.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
6288
6266
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
6289
6267
|
__decorateClass([
|
|
6290
|
-
(0,
|
|
6268
|
+
(0, import_typeorm67.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
6291
6269
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
6292
6270
|
__decorateClass([
|
|
6293
|
-
(0,
|
|
6271
|
+
(0, import_typeorm67.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
6294
6272
|
], User.prototype, "initiatedDisputes", 2);
|
|
6295
6273
|
__decorateClass([
|
|
6296
|
-
(0,
|
|
6274
|
+
(0, import_typeorm67.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
6297
6275
|
], User.prototype, "respondentDisputes", 2);
|
|
6298
6276
|
__decorateClass([
|
|
6299
|
-
(0,
|
|
6277
|
+
(0, import_typeorm67.OneToOne)(() => Wallet, (wallet) => wallet.user)
|
|
6300
6278
|
], User.prototype, "wallet", 2);
|
|
6301
6279
|
__decorateClass([
|
|
6302
|
-
(0,
|
|
6280
|
+
(0, import_typeorm67.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
6303
6281
|
], User.prototype, "stripeTransactions", 2);
|
|
6304
6282
|
__decorateClass([
|
|
6305
|
-
(0,
|
|
6283
|
+
(0, import_typeorm67.OneToMany)(() => Dispute, (dispute) => dispute.client)
|
|
6306
6284
|
], User.prototype, "clientDisputes", 2);
|
|
6307
6285
|
__decorateClass([
|
|
6308
|
-
(0,
|
|
6286
|
+
(0, import_typeorm67.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
|
|
6309
6287
|
], User.prototype, "freelancerDisputes", 2);
|
|
6310
6288
|
__decorateClass([
|
|
6311
|
-
(0,
|
|
6289
|
+
(0, import_typeorm67.OneToMany)(() => InAppNotification, (inAppNotification) => inAppNotification.user)
|
|
6312
6290
|
], User.prototype, "inAppNotifications", 2);
|
|
6313
6291
|
User = __decorateClass([
|
|
6314
|
-
(0,
|
|
6292
|
+
(0, import_typeorm67.Entity)("users")
|
|
6315
6293
|
], User);
|
|
6316
6294
|
|
|
6317
6295
|
// src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
|
|
@@ -10381,9 +10359,13 @@ __decorateClass([
|
|
|
10381
10359
|
})
|
|
10382
10360
|
], GenerateContractDto.prototype, "contractType", 2);
|
|
10383
10361
|
__decorateClass([
|
|
10384
|
-
(0, import_class_validator123.
|
|
10362
|
+
(0, import_class_validator123.IsNotEmpty)({ message: "Contract start date is required." }),
|
|
10385
10363
|
(0, import_class_validator123.IsString)({ message: "Contract start date must be a string." })
|
|
10386
10364
|
], GenerateContractDto.prototype, "contractStartDate", 2);
|
|
10365
|
+
__decorateClass([
|
|
10366
|
+
(0, import_class_validator123.IsNotEmpty)({ message: "Contract end date is required." }),
|
|
10367
|
+
(0, import_class_validator123.IsString)({ message: "Contract end date must be a string." })
|
|
10368
|
+
], GenerateContractDto.prototype, "contractEndDate", 2);
|
|
10387
10369
|
__decorateClass([
|
|
10388
10370
|
(0, import_class_validator123.IsOptional)(),
|
|
10389
10371
|
(0, import_class_validator123.IsString)({ message: "Contract invoicing cycle must be a string." })
|
|
@@ -12709,11 +12691,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
12709
12691
|
};
|
|
12710
12692
|
|
|
12711
12693
|
// src/entities/sequence-generator.entity.ts
|
|
12712
|
-
var
|
|
12694
|
+
var import_typeorm68 = require("typeorm");
|
|
12713
12695
|
var SequenceGenerator = class extends BaseEntity {
|
|
12714
12696
|
};
|
|
12715
12697
|
__decorateClass([
|
|
12716
|
-
(0,
|
|
12698
|
+
(0, import_typeorm68.Column)({
|
|
12717
12699
|
name: "module",
|
|
12718
12700
|
type: "varchar",
|
|
12719
12701
|
length: 50,
|
|
@@ -12722,7 +12704,7 @@ __decorateClass([
|
|
|
12722
12704
|
})
|
|
12723
12705
|
], SequenceGenerator.prototype, "module", 2);
|
|
12724
12706
|
__decorateClass([
|
|
12725
|
-
(0,
|
|
12707
|
+
(0, import_typeorm68.Column)({
|
|
12726
12708
|
name: "prefix",
|
|
12727
12709
|
type: "varchar",
|
|
12728
12710
|
length: 10,
|
|
@@ -12731,7 +12713,7 @@ __decorateClass([
|
|
|
12731
12713
|
})
|
|
12732
12714
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
12733
12715
|
__decorateClass([
|
|
12734
|
-
(0,
|
|
12716
|
+
(0, import_typeorm68.Column)({
|
|
12735
12717
|
name: "last_sequence",
|
|
12736
12718
|
type: "int",
|
|
12737
12719
|
nullable: false,
|
|
@@ -12739,7 +12721,7 @@ __decorateClass([
|
|
|
12739
12721
|
})
|
|
12740
12722
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
12741
12723
|
__decorateClass([
|
|
12742
|
-
(0,
|
|
12724
|
+
(0, import_typeorm68.Column)({
|
|
12743
12725
|
name: "year",
|
|
12744
12726
|
type: "int",
|
|
12745
12727
|
nullable: true,
|
|
@@ -12747,11 +12729,11 @@ __decorateClass([
|
|
|
12747
12729
|
})
|
|
12748
12730
|
], SequenceGenerator.prototype, "year", 2);
|
|
12749
12731
|
SequenceGenerator = __decorateClass([
|
|
12750
|
-
(0,
|
|
12732
|
+
(0, import_typeorm68.Entity)("sequence_generators")
|
|
12751
12733
|
], SequenceGenerator);
|
|
12752
12734
|
|
|
12753
12735
|
// src/entities/question.entity.ts
|
|
12754
|
-
var
|
|
12736
|
+
var import_typeorm69 = require("typeorm");
|
|
12755
12737
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
12756
12738
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
12757
12739
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -12760,16 +12742,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
12760
12742
|
var Question = class extends BaseEntity {
|
|
12761
12743
|
};
|
|
12762
12744
|
__decorateClass([
|
|
12763
|
-
(0,
|
|
12745
|
+
(0, import_typeorm69.Column)({ name: "question", type: "varchar" })
|
|
12764
12746
|
], Question.prototype, "question", 2);
|
|
12765
12747
|
__decorateClass([
|
|
12766
|
-
(0,
|
|
12748
|
+
(0, import_typeorm69.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
12767
12749
|
], Question.prototype, "hint", 2);
|
|
12768
12750
|
__decorateClass([
|
|
12769
|
-
(0,
|
|
12751
|
+
(0, import_typeorm69.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
12770
12752
|
], Question.prototype, "slug", 2);
|
|
12771
12753
|
__decorateClass([
|
|
12772
|
-
(0,
|
|
12754
|
+
(0, import_typeorm69.Column)({
|
|
12773
12755
|
name: "question_for",
|
|
12774
12756
|
type: "enum",
|
|
12775
12757
|
enum: QuestionFor,
|
|
@@ -12777,45 +12759,45 @@ __decorateClass([
|
|
|
12777
12759
|
})
|
|
12778
12760
|
], Question.prototype, "questionFor", 2);
|
|
12779
12761
|
__decorateClass([
|
|
12780
|
-
(0,
|
|
12762
|
+
(0, import_typeorm69.Column)({ name: "type", type: "varchar", nullable: true })
|
|
12781
12763
|
], Question.prototype, "type", 2);
|
|
12782
12764
|
__decorateClass([
|
|
12783
|
-
(0,
|
|
12765
|
+
(0, import_typeorm69.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
12784
12766
|
], Question.prototype, "options", 2);
|
|
12785
12767
|
__decorateClass([
|
|
12786
|
-
(0,
|
|
12768
|
+
(0, import_typeorm69.Column)({ name: "is_active", type: "boolean", default: false })
|
|
12787
12769
|
], Question.prototype, "isActive", 2);
|
|
12788
12770
|
Question = __decorateClass([
|
|
12789
|
-
(0,
|
|
12771
|
+
(0, import_typeorm69.Entity)("questions")
|
|
12790
12772
|
], Question);
|
|
12791
12773
|
|
|
12792
12774
|
// src/entities/skill.entity.ts
|
|
12793
|
-
var
|
|
12775
|
+
var import_typeorm70 = require("typeorm");
|
|
12794
12776
|
var Skill = class extends BaseEntity {
|
|
12795
12777
|
};
|
|
12796
12778
|
__decorateClass([
|
|
12797
|
-
(0,
|
|
12779
|
+
(0, import_typeorm70.Column)({ name: "name", type: "varchar", nullable: true })
|
|
12798
12780
|
], Skill.prototype, "name", 2);
|
|
12799
12781
|
__decorateClass([
|
|
12800
|
-
(0,
|
|
12782
|
+
(0, import_typeorm70.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
12801
12783
|
], Skill.prototype, "slug", 2);
|
|
12802
12784
|
__decorateClass([
|
|
12803
|
-
(0,
|
|
12785
|
+
(0, import_typeorm70.Column)({ name: "is_active", type: "boolean", default: false })
|
|
12804
12786
|
], Skill.prototype, "isActive", 2);
|
|
12805
12787
|
Skill = __decorateClass([
|
|
12806
|
-
(0,
|
|
12788
|
+
(0, import_typeorm70.Entity)("skills")
|
|
12807
12789
|
], Skill);
|
|
12808
12790
|
|
|
12809
12791
|
// src/entities/skill-catalog.entity.ts
|
|
12810
|
-
var
|
|
12792
|
+
var import_typeorm71 = require("typeorm");
|
|
12811
12793
|
var SkillCatalog = class extends BaseEntity {
|
|
12812
12794
|
};
|
|
12813
12795
|
__decorateClass([
|
|
12814
|
-
(0,
|
|
12815
|
-
(0,
|
|
12796
|
+
(0, import_typeorm71.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
12797
|
+
(0, import_typeorm71.Index)()
|
|
12816
12798
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
12817
12799
|
__decorateClass([
|
|
12818
|
-
(0,
|
|
12800
|
+
(0, import_typeorm71.Column)({
|
|
12819
12801
|
name: "aliases",
|
|
12820
12802
|
type: "text",
|
|
12821
12803
|
array: true,
|
|
@@ -12823,20 +12805,20 @@ __decorateClass([
|
|
|
12823
12805
|
})
|
|
12824
12806
|
], SkillCatalog.prototype, "aliases", 2);
|
|
12825
12807
|
__decorateClass([
|
|
12826
|
-
(0,
|
|
12808
|
+
(0, import_typeorm71.Column)({
|
|
12827
12809
|
name: "variations",
|
|
12828
12810
|
type: "jsonb",
|
|
12829
12811
|
default: "{}"
|
|
12830
12812
|
})
|
|
12831
12813
|
], SkillCatalog.prototype, "variations", 2);
|
|
12832
12814
|
__decorateClass([
|
|
12833
|
-
(0,
|
|
12815
|
+
(0, import_typeorm71.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
12834
12816
|
], SkillCatalog.prototype, "category", 2);
|
|
12835
12817
|
__decorateClass([
|
|
12836
|
-
(0,
|
|
12818
|
+
(0, import_typeorm71.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
12837
12819
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
12838
12820
|
__decorateClass([
|
|
12839
|
-
(0,
|
|
12821
|
+
(0, import_typeorm71.Column)({
|
|
12840
12822
|
name: "related_skills",
|
|
12841
12823
|
type: "text",
|
|
12842
12824
|
array: true,
|
|
@@ -12844,111 +12826,111 @@ __decorateClass([
|
|
|
12844
12826
|
})
|
|
12845
12827
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
12846
12828
|
__decorateClass([
|
|
12847
|
-
(0,
|
|
12848
|
-
(0,
|
|
12829
|
+
(0, import_typeorm71.Column)({ name: "usage_count", type: "integer", default: 0 }),
|
|
12830
|
+
(0, import_typeorm71.Index)()
|
|
12849
12831
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
12850
12832
|
__decorateClass([
|
|
12851
|
-
(0,
|
|
12833
|
+
(0, import_typeorm71.Column)({ name: "is_verified", type: "boolean", default: false })
|
|
12852
12834
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
12853
12835
|
__decorateClass([
|
|
12854
|
-
(0,
|
|
12836
|
+
(0, import_typeorm71.Column)({ name: "first_seen_date", type: "date" })
|
|
12855
12837
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
12856
12838
|
__decorateClass([
|
|
12857
|
-
(0,
|
|
12839
|
+
(0, import_typeorm71.Column)({ name: "last_updated_date", type: "date" })
|
|
12858
12840
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
12859
12841
|
__decorateClass([
|
|
12860
|
-
(0,
|
|
12842
|
+
(0, import_typeorm71.Column)({
|
|
12861
12843
|
name: "search_vector",
|
|
12862
12844
|
type: "tsvector",
|
|
12863
12845
|
nullable: true
|
|
12864
12846
|
})
|
|
12865
12847
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
12866
12848
|
SkillCatalog = __decorateClass([
|
|
12867
|
-
(0,
|
|
12849
|
+
(0, import_typeorm71.Entity)("skill_catalogs")
|
|
12868
12850
|
], SkillCatalog);
|
|
12869
12851
|
|
|
12870
12852
|
// src/entities/job-role.entity.ts
|
|
12871
|
-
var
|
|
12853
|
+
var import_typeorm72 = require("typeorm");
|
|
12872
12854
|
var JobRoles = class extends BaseEntity {
|
|
12873
12855
|
};
|
|
12874
12856
|
__decorateClass([
|
|
12875
|
-
(0,
|
|
12857
|
+
(0, import_typeorm72.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
12876
12858
|
], JobRoles.prototype, "slug", 2);
|
|
12877
12859
|
__decorateClass([
|
|
12878
|
-
(0,
|
|
12860
|
+
(0, import_typeorm72.Column)({ name: "name", type: "varchar", nullable: true })
|
|
12879
12861
|
], JobRoles.prototype, "name", 2);
|
|
12880
12862
|
__decorateClass([
|
|
12881
|
-
(0,
|
|
12863
|
+
(0, import_typeorm72.Column)({ name: "is_active", type: "boolean", default: true })
|
|
12882
12864
|
], JobRoles.prototype, "isActive", 2);
|
|
12883
12865
|
JobRoles = __decorateClass([
|
|
12884
|
-
(0,
|
|
12866
|
+
(0, import_typeorm72.Entity)("job_roles")
|
|
12885
12867
|
], JobRoles);
|
|
12886
12868
|
|
|
12887
12869
|
// src/entities/plan.entity.ts
|
|
12888
|
-
var
|
|
12870
|
+
var import_typeorm74 = require("typeorm");
|
|
12889
12871
|
|
|
12890
12872
|
// src/entities/feature.entity.ts
|
|
12891
|
-
var
|
|
12873
|
+
var import_typeorm73 = require("typeorm");
|
|
12892
12874
|
var Feature = class extends BaseEntity {
|
|
12893
12875
|
};
|
|
12894
12876
|
__decorateClass([
|
|
12895
|
-
(0,
|
|
12877
|
+
(0, import_typeorm73.Column)({ name: "name", type: "varchar", unique: true })
|
|
12896
12878
|
], Feature.prototype, "name", 2);
|
|
12897
12879
|
__decorateClass([
|
|
12898
|
-
(0,
|
|
12880
|
+
(0, import_typeorm73.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
12899
12881
|
], Feature.prototype, "plans", 2);
|
|
12900
12882
|
Feature = __decorateClass([
|
|
12901
|
-
(0,
|
|
12883
|
+
(0, import_typeorm73.Entity)("features")
|
|
12902
12884
|
], Feature);
|
|
12903
12885
|
|
|
12904
12886
|
// src/entities/plan.entity.ts
|
|
12905
12887
|
var Plan = class extends BaseEntity {
|
|
12906
12888
|
};
|
|
12907
12889
|
__decorateClass([
|
|
12908
|
-
(0,
|
|
12890
|
+
(0, import_typeorm74.Column)({ name: "name", type: "varchar", unique: true })
|
|
12909
12891
|
], Plan.prototype, "name", 2);
|
|
12910
12892
|
__decorateClass([
|
|
12911
|
-
(0,
|
|
12893
|
+
(0, import_typeorm74.Column)({ name: "description", type: "varchar", nullable: true })
|
|
12912
12894
|
], Plan.prototype, "description", 2);
|
|
12913
12895
|
__decorateClass([
|
|
12914
|
-
(0,
|
|
12896
|
+
(0, import_typeorm74.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
12915
12897
|
], Plan.prototype, "price", 2);
|
|
12916
12898
|
__decorateClass([
|
|
12917
|
-
(0,
|
|
12899
|
+
(0, import_typeorm74.Column)({ name: "billing_period", type: "varchar" })
|
|
12918
12900
|
], Plan.prototype, "billingPeriod", 2);
|
|
12919
12901
|
__decorateClass([
|
|
12920
|
-
(0,
|
|
12902
|
+
(0, import_typeorm74.Column)({ name: "is_current", type: "boolean", default: false })
|
|
12921
12903
|
], Plan.prototype, "isCurrent", 2);
|
|
12922
12904
|
__decorateClass([
|
|
12923
|
-
(0,
|
|
12924
|
-
(0,
|
|
12905
|
+
(0, import_typeorm74.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
12906
|
+
(0, import_typeorm74.JoinTable)()
|
|
12925
12907
|
], Plan.prototype, "features", 2);
|
|
12926
12908
|
Plan = __decorateClass([
|
|
12927
|
-
(0,
|
|
12909
|
+
(0, import_typeorm74.Entity)("plans")
|
|
12928
12910
|
], Plan);
|
|
12929
12911
|
|
|
12930
12912
|
// src/entities/cms.entity.ts
|
|
12931
|
-
var
|
|
12913
|
+
var import_typeorm75 = require("typeorm");
|
|
12932
12914
|
var Cms = class extends BaseEntity {
|
|
12933
12915
|
};
|
|
12934
12916
|
__decorateClass([
|
|
12935
|
-
(0,
|
|
12917
|
+
(0, import_typeorm75.Column)({ name: "title", type: "varchar", nullable: true })
|
|
12936
12918
|
], Cms.prototype, "title", 2);
|
|
12937
12919
|
__decorateClass([
|
|
12938
|
-
(0,
|
|
12920
|
+
(0, import_typeorm75.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
12939
12921
|
], Cms.prototype, "slug", 2);
|
|
12940
12922
|
__decorateClass([
|
|
12941
|
-
(0,
|
|
12923
|
+
(0, import_typeorm75.Column)({ name: "content", type: "varchar", nullable: true })
|
|
12942
12924
|
], Cms.prototype, "content", 2);
|
|
12943
12925
|
__decorateClass([
|
|
12944
|
-
(0,
|
|
12926
|
+
(0, import_typeorm75.Column)({ name: "is_active", type: "boolean", default: true })
|
|
12945
12927
|
], Cms.prototype, "isActive", 2);
|
|
12946
12928
|
Cms = __decorateClass([
|
|
12947
|
-
(0,
|
|
12929
|
+
(0, import_typeorm75.Entity)("cms")
|
|
12948
12930
|
], Cms);
|
|
12949
12931
|
|
|
12950
12932
|
// src/entities/lead.entity.ts
|
|
12951
|
-
var
|
|
12933
|
+
var import_typeorm76 = require("typeorm");
|
|
12952
12934
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
12953
12935
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
12954
12936
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -12957,22 +12939,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
12957
12939
|
var Lead = class extends BaseEntity {
|
|
12958
12940
|
};
|
|
12959
12941
|
__decorateClass([
|
|
12960
|
-
(0,
|
|
12942
|
+
(0, import_typeorm76.Column)({ name: "name", type: "varchar", nullable: true })
|
|
12961
12943
|
], Lead.prototype, "name", 2);
|
|
12962
12944
|
__decorateClass([
|
|
12963
|
-
(0,
|
|
12945
|
+
(0, import_typeorm76.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
12964
12946
|
], Lead.prototype, "mobileCode", 2);
|
|
12965
12947
|
__decorateClass([
|
|
12966
|
-
(0,
|
|
12948
|
+
(0, import_typeorm76.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
12967
12949
|
], Lead.prototype, "mobile", 2);
|
|
12968
12950
|
__decorateClass([
|
|
12969
|
-
(0,
|
|
12951
|
+
(0, import_typeorm76.Column)({ name: "email", type: "varchar", nullable: true })
|
|
12970
12952
|
], Lead.prototype, "email", 2);
|
|
12971
12953
|
__decorateClass([
|
|
12972
|
-
(0,
|
|
12954
|
+
(0, import_typeorm76.Column)({ name: "description", type: "varchar", nullable: true })
|
|
12973
12955
|
], Lead.prototype, "description", 2);
|
|
12974
12956
|
__decorateClass([
|
|
12975
|
-
(0,
|
|
12957
|
+
(0, import_typeorm76.Column)({
|
|
12976
12958
|
name: "category",
|
|
12977
12959
|
type: "enum",
|
|
12978
12960
|
enum: CategoryEmum,
|
|
@@ -12980,129 +12962,129 @@ __decorateClass([
|
|
|
12980
12962
|
})
|
|
12981
12963
|
], Lead.prototype, "category", 2);
|
|
12982
12964
|
Lead = __decorateClass([
|
|
12983
|
-
(0,
|
|
12965
|
+
(0, import_typeorm76.Entity)("leads")
|
|
12984
12966
|
], Lead);
|
|
12985
12967
|
|
|
12986
12968
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
12987
|
-
var
|
|
12969
|
+
var import_typeorm77 = require("typeorm");
|
|
12988
12970
|
var JobFreelancerRecommendation = class {
|
|
12989
12971
|
};
|
|
12990
12972
|
__decorateClass([
|
|
12991
|
-
(0,
|
|
12973
|
+
(0, import_typeorm77.ViewColumn)({ name: "job_id" })
|
|
12992
12974
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
12993
12975
|
__decorateClass([
|
|
12994
|
-
(0,
|
|
12976
|
+
(0, import_typeorm77.ViewColumn)({ name: "job_uuid" })
|
|
12995
12977
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
12996
12978
|
__decorateClass([
|
|
12997
|
-
(0,
|
|
12979
|
+
(0, import_typeorm77.ViewColumn)({ name: "job_unique_id" })
|
|
12998
12980
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
12999
12981
|
__decorateClass([
|
|
13000
|
-
(0,
|
|
12982
|
+
(0, import_typeorm77.ViewColumn)({ name: "job_role" })
|
|
13001
12983
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
13002
12984
|
__decorateClass([
|
|
13003
|
-
(0,
|
|
12985
|
+
(0, import_typeorm77.ViewColumn)({ name: "job_openings" })
|
|
13004
12986
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
13005
12987
|
__decorateClass([
|
|
13006
|
-
(0,
|
|
12988
|
+
(0, import_typeorm77.ViewColumn)({ name: "job_location" })
|
|
13007
12989
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
13008
12990
|
__decorateClass([
|
|
13009
|
-
(0,
|
|
12991
|
+
(0, import_typeorm77.ViewColumn)({ name: "job_currency" })
|
|
13010
12992
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
13011
12993
|
__decorateClass([
|
|
13012
|
-
(0,
|
|
12994
|
+
(0, import_typeorm77.ViewColumn)({ name: "job_salary_from" })
|
|
13013
12995
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
13014
12996
|
__decorateClass([
|
|
13015
|
-
(0,
|
|
12997
|
+
(0, import_typeorm77.ViewColumn)({ name: "job_salary_to" })
|
|
13016
12998
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
13017
12999
|
__decorateClass([
|
|
13018
|
-
(0,
|
|
13000
|
+
(0, import_typeorm77.ViewColumn)({ name: "job_employment_type" })
|
|
13019
13001
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
13020
13002
|
__decorateClass([
|
|
13021
|
-
(0,
|
|
13003
|
+
(0, import_typeorm77.ViewColumn)({ name: "application_received" })
|
|
13022
13004
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
13023
13005
|
__decorateClass([
|
|
13024
|
-
(0,
|
|
13006
|
+
(0, import_typeorm77.ViewColumn)({ name: "job_posted_at" })
|
|
13025
13007
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
13026
13008
|
__decorateClass([
|
|
13027
|
-
(0,
|
|
13009
|
+
(0, import_typeorm77.ViewColumn)({ name: "freelancer_id" })
|
|
13028
13010
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
13029
13011
|
__decorateClass([
|
|
13030
|
-
(0,
|
|
13012
|
+
(0, import_typeorm77.ViewColumn)({ name: "freelancer_uuid" })
|
|
13031
13013
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
13032
13014
|
__decorateClass([
|
|
13033
|
-
(0,
|
|
13015
|
+
(0, import_typeorm77.ViewColumn)({ name: "freelancer_unique_id" })
|
|
13034
13016
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
13035
13017
|
__decorateClass([
|
|
13036
|
-
(0,
|
|
13018
|
+
(0, import_typeorm77.ViewColumn)({ name: "freelancer_first_name" })
|
|
13037
13019
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
13038
13020
|
__decorateClass([
|
|
13039
|
-
(0,
|
|
13021
|
+
(0, import_typeorm77.ViewColumn)({ name: "freelancer_last_name" })
|
|
13040
13022
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
13041
13023
|
__decorateClass([
|
|
13042
|
-
(0,
|
|
13024
|
+
(0, import_typeorm77.ViewColumn)({ name: "freelancer_email" })
|
|
13043
13025
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
13044
13026
|
__decorateClass([
|
|
13045
|
-
(0,
|
|
13027
|
+
(0, import_typeorm77.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
13046
13028
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
13047
13029
|
__decorateClass([
|
|
13048
|
-
(0,
|
|
13030
|
+
(0, import_typeorm77.ViewColumn)({ name: "freelancer_is_social" })
|
|
13049
13031
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
13050
13032
|
__decorateClass([
|
|
13051
|
-
(0,
|
|
13033
|
+
(0, import_typeorm77.ViewColumn)({ name: "freelancer_created_at" })
|
|
13052
13034
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
13053
13035
|
__decorateClass([
|
|
13054
|
-
(0,
|
|
13036
|
+
(0, import_typeorm77.ViewColumn)({ name: "freelancer_designation" })
|
|
13055
13037
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
13056
13038
|
__decorateClass([
|
|
13057
|
-
(0,
|
|
13039
|
+
(0, import_typeorm77.ViewColumn)({ name: "freelancer_experience" })
|
|
13058
13040
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
13059
13041
|
__decorateClass([
|
|
13060
|
-
(0,
|
|
13042
|
+
(0, import_typeorm77.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
13061
13043
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
13062
13044
|
__decorateClass([
|
|
13063
|
-
(0,
|
|
13045
|
+
(0, import_typeorm77.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
13064
13046
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
13065
13047
|
__decorateClass([
|
|
13066
|
-
(0,
|
|
13048
|
+
(0, import_typeorm77.ViewColumn)({ name: "freelancer_country_name" })
|
|
13067
13049
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
13068
13050
|
__decorateClass([
|
|
13069
|
-
(0,
|
|
13051
|
+
(0, import_typeorm77.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
13070
13052
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
13071
13053
|
__decorateClass([
|
|
13072
|
-
(0,
|
|
13054
|
+
(0, import_typeorm77.ViewColumn)({ name: "client_id" })
|
|
13073
13055
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
13074
13056
|
__decorateClass([
|
|
13075
|
-
(0,
|
|
13057
|
+
(0, import_typeorm77.ViewColumn)({ name: "client_uuid" })
|
|
13076
13058
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
13077
13059
|
__decorateClass([
|
|
13078
|
-
(0,
|
|
13060
|
+
(0, import_typeorm77.ViewColumn)({ name: "client_first_name" })
|
|
13079
13061
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
13080
13062
|
__decorateClass([
|
|
13081
|
-
(0,
|
|
13063
|
+
(0, import_typeorm77.ViewColumn)({ name: "client_last_name" })
|
|
13082
13064
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
13083
13065
|
__decorateClass([
|
|
13084
|
-
(0,
|
|
13066
|
+
(0, import_typeorm77.ViewColumn)({ name: "client_email" })
|
|
13085
13067
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
13086
13068
|
__decorateClass([
|
|
13087
|
-
(0,
|
|
13069
|
+
(0, import_typeorm77.ViewColumn)({ name: "client_company_logo" })
|
|
13088
13070
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
13089
13071
|
__decorateClass([
|
|
13090
|
-
(0,
|
|
13072
|
+
(0, import_typeorm77.ViewColumn)({ name: "client_company_name" })
|
|
13091
13073
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
13092
13074
|
__decorateClass([
|
|
13093
|
-
(0,
|
|
13075
|
+
(0, import_typeorm77.ViewColumn)({ name: "matching_skills" })
|
|
13094
13076
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
13095
13077
|
__decorateClass([
|
|
13096
|
-
(0,
|
|
13078
|
+
(0, import_typeorm77.ViewColumn)({ name: "matching_skills_count" })
|
|
13097
13079
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
13098
13080
|
__decorateClass([
|
|
13099
|
-
(0,
|
|
13081
|
+
(0, import_typeorm77.ViewColumn)({ name: "required_skills" })
|
|
13100
13082
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
13101
13083
|
__decorateClass([
|
|
13102
|
-
(0,
|
|
13084
|
+
(0, import_typeorm77.ViewColumn)({ name: "required_skills_count" })
|
|
13103
13085
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
13104
13086
|
JobFreelancerRecommendation = __decorateClass([
|
|
13105
|
-
(0,
|
|
13087
|
+
(0, import_typeorm77.ViewEntity)({
|
|
13106
13088
|
name: "job_freelancer_recommendations",
|
|
13107
13089
|
materialized: true,
|
|
13108
13090
|
synchronize: false
|
|
@@ -13111,32 +13093,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
13111
13093
|
], JobFreelancerRecommendation);
|
|
13112
13094
|
|
|
13113
13095
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
13114
|
-
var
|
|
13096
|
+
var import_typeorm78 = require("typeorm");
|
|
13115
13097
|
var JobFreelancerRecommendationV2 = class {
|
|
13116
13098
|
};
|
|
13117
13099
|
__decorateClass([
|
|
13118
|
-
(0,
|
|
13100
|
+
(0, import_typeorm78.ViewColumn)({ name: "job_id" })
|
|
13119
13101
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
13120
13102
|
__decorateClass([
|
|
13121
|
-
(0,
|
|
13103
|
+
(0, import_typeorm78.ViewColumn)({ name: "job_owner_id" })
|
|
13122
13104
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
13123
13105
|
__decorateClass([
|
|
13124
|
-
(0,
|
|
13106
|
+
(0, import_typeorm78.ViewColumn)({ name: "freelancer_id" })
|
|
13125
13107
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
13126
13108
|
__decorateClass([
|
|
13127
|
-
(0,
|
|
13109
|
+
(0, import_typeorm78.ViewColumn)({ name: "matching_skills" })
|
|
13128
13110
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
13129
13111
|
__decorateClass([
|
|
13130
|
-
(0,
|
|
13112
|
+
(0, import_typeorm78.ViewColumn)({ name: "matching_skills_count" })
|
|
13131
13113
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
13132
13114
|
__decorateClass([
|
|
13133
|
-
(0,
|
|
13115
|
+
(0, import_typeorm78.ViewColumn)({ name: "required_skills" })
|
|
13134
13116
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
13135
13117
|
__decorateClass([
|
|
13136
|
-
(0,
|
|
13118
|
+
(0, import_typeorm78.ViewColumn)({ name: "required_skills_count" })
|
|
13137
13119
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
13138
13120
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
13139
|
-
(0,
|
|
13121
|
+
(0, import_typeorm78.ViewEntity)({
|
|
13140
13122
|
name: "job_freelancer_recommendations_v2",
|
|
13141
13123
|
materialized: true,
|
|
13142
13124
|
synchronize: false
|
|
@@ -13145,74 +13127,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
13145
13127
|
], JobFreelancerRecommendationV2);
|
|
13146
13128
|
|
|
13147
13129
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
13148
|
-
var
|
|
13130
|
+
var import_typeorm79 = require("typeorm");
|
|
13149
13131
|
var ClientFreelancerRecommendation = class {
|
|
13150
13132
|
};
|
|
13151
13133
|
__decorateClass([
|
|
13152
|
-
(0,
|
|
13134
|
+
(0, import_typeorm79.ViewColumn)({ name: "client_id" })
|
|
13153
13135
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
13154
13136
|
__decorateClass([
|
|
13155
|
-
(0,
|
|
13137
|
+
(0, import_typeorm79.ViewColumn)({ name: "client_uuid" })
|
|
13156
13138
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
13157
13139
|
__decorateClass([
|
|
13158
|
-
(0,
|
|
13140
|
+
(0, import_typeorm79.ViewColumn)({ name: "freelancer_id" })
|
|
13159
13141
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
13160
13142
|
__decorateClass([
|
|
13161
|
-
(0,
|
|
13143
|
+
(0, import_typeorm79.ViewColumn)({ name: "freelancer_uuid" })
|
|
13162
13144
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
13163
13145
|
__decorateClass([
|
|
13164
|
-
(0,
|
|
13146
|
+
(0, import_typeorm79.ViewColumn)({ name: "freelancer_unique_id" })
|
|
13165
13147
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
13166
13148
|
__decorateClass([
|
|
13167
|
-
(0,
|
|
13149
|
+
(0, import_typeorm79.ViewColumn)({ name: "freelancer_first_name" })
|
|
13168
13150
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
13169
13151
|
__decorateClass([
|
|
13170
|
-
(0,
|
|
13152
|
+
(0, import_typeorm79.ViewColumn)({ name: "freelancer_last_name" })
|
|
13171
13153
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
13172
13154
|
__decorateClass([
|
|
13173
|
-
(0,
|
|
13155
|
+
(0, import_typeorm79.ViewColumn)({ name: "freelancer_email" })
|
|
13174
13156
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
13175
13157
|
__decorateClass([
|
|
13176
|
-
(0,
|
|
13158
|
+
(0, import_typeorm79.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
13177
13159
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
13178
13160
|
__decorateClass([
|
|
13179
|
-
(0,
|
|
13161
|
+
(0, import_typeorm79.ViewColumn)({ name: "freelancer_is_social" })
|
|
13180
13162
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
13181
13163
|
__decorateClass([
|
|
13182
|
-
(0,
|
|
13164
|
+
(0, import_typeorm79.ViewColumn)({ name: "freelancer_created_at" })
|
|
13183
13165
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
13184
13166
|
__decorateClass([
|
|
13185
|
-
(0,
|
|
13167
|
+
(0, import_typeorm79.ViewColumn)({ name: "freelancer_designation" })
|
|
13186
13168
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
13187
13169
|
__decorateClass([
|
|
13188
|
-
(0,
|
|
13170
|
+
(0, import_typeorm79.ViewColumn)({ name: "freelancer_experience" })
|
|
13189
13171
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
13190
13172
|
__decorateClass([
|
|
13191
|
-
(0,
|
|
13173
|
+
(0, import_typeorm79.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
13192
13174
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
13193
13175
|
__decorateClass([
|
|
13194
|
-
(0,
|
|
13176
|
+
(0, import_typeorm79.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
13195
13177
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
13196
13178
|
__decorateClass([
|
|
13197
|
-
(0,
|
|
13179
|
+
(0, import_typeorm79.ViewColumn)({ name: "freelancer_country_name" })
|
|
13198
13180
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
13199
13181
|
__decorateClass([
|
|
13200
|
-
(0,
|
|
13182
|
+
(0, import_typeorm79.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
13201
13183
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
13202
13184
|
__decorateClass([
|
|
13203
|
-
(0,
|
|
13185
|
+
(0, import_typeorm79.ViewColumn)({ name: "matching_skills" })
|
|
13204
13186
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
13205
13187
|
__decorateClass([
|
|
13206
|
-
(0,
|
|
13188
|
+
(0, import_typeorm79.ViewColumn)({ name: "matching_skills_count" })
|
|
13207
13189
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
13208
13190
|
__decorateClass([
|
|
13209
|
-
(0,
|
|
13191
|
+
(0, import_typeorm79.ViewColumn)({ name: "required_skills" })
|
|
13210
13192
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
13211
13193
|
__decorateClass([
|
|
13212
|
-
(0,
|
|
13194
|
+
(0, import_typeorm79.ViewColumn)({ name: "required_skills_count" })
|
|
13213
13195
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
13214
13196
|
ClientFreelancerRecommendation = __decorateClass([
|
|
13215
|
-
(0,
|
|
13197
|
+
(0, import_typeorm79.ViewEntity)({
|
|
13216
13198
|
name: "client_freelancer_recommendations",
|
|
13217
13199
|
materialized: true,
|
|
13218
13200
|
synchronize: false
|
|
@@ -13221,7 +13203,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
13221
13203
|
], ClientFreelancerRecommendation);
|
|
13222
13204
|
|
|
13223
13205
|
// src/entities/commission.entity.ts
|
|
13224
|
-
var
|
|
13206
|
+
var import_typeorm80 = require("typeorm");
|
|
13225
13207
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
13226
13208
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
13227
13209
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -13230,7 +13212,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
13230
13212
|
var Commission = class extends BaseEntity {
|
|
13231
13213
|
};
|
|
13232
13214
|
__decorateClass([
|
|
13233
|
-
(0,
|
|
13215
|
+
(0, import_typeorm80.Column)({
|
|
13234
13216
|
name: "freelancer_commission_type",
|
|
13235
13217
|
type: "enum",
|
|
13236
13218
|
enum: CommissionTypeEnum,
|
|
@@ -13238,10 +13220,10 @@ __decorateClass([
|
|
|
13238
13220
|
})
|
|
13239
13221
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
13240
13222
|
__decorateClass([
|
|
13241
|
-
(0,
|
|
13223
|
+
(0, import_typeorm80.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
13242
13224
|
], Commission.prototype, "freelancerCommission", 2);
|
|
13243
13225
|
__decorateClass([
|
|
13244
|
-
(0,
|
|
13226
|
+
(0, import_typeorm80.Column)({
|
|
13245
13227
|
name: "client_commission_type",
|
|
13246
13228
|
type: "enum",
|
|
13247
13229
|
enum: CommissionTypeEnum,
|
|
@@ -13249,48 +13231,79 @@ __decorateClass([
|
|
|
13249
13231
|
})
|
|
13250
13232
|
], Commission.prototype, "clientCommissionType", 2);
|
|
13251
13233
|
__decorateClass([
|
|
13252
|
-
(0,
|
|
13234
|
+
(0, import_typeorm80.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
13253
13235
|
], Commission.prototype, "clientCommission", 2);
|
|
13254
13236
|
Commission = __decorateClass([
|
|
13255
|
-
(0,
|
|
13237
|
+
(0, import_typeorm80.Entity)("commissions")
|
|
13256
13238
|
], Commission);
|
|
13257
13239
|
|
|
13258
13240
|
// src/entities/calendly-meeting-log.entity.ts
|
|
13259
|
-
var
|
|
13241
|
+
var import_typeorm81 = require("typeorm");
|
|
13260
13242
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
13261
13243
|
};
|
|
13262
13244
|
__decorateClass([
|
|
13263
|
-
(0,
|
|
13264
|
-
(0,
|
|
13245
|
+
(0, import_typeorm81.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
13246
|
+
(0, import_typeorm81.Index)()
|
|
13265
13247
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
13266
13248
|
__decorateClass([
|
|
13267
|
-
(0,
|
|
13249
|
+
(0, import_typeorm81.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
13268
13250
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
13269
13251
|
__decorateClass([
|
|
13270
|
-
(0,
|
|
13252
|
+
(0, import_typeorm81.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13271
13253
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
13272
13254
|
CalendlyMeetingLog = __decorateClass([
|
|
13273
|
-
(0,
|
|
13255
|
+
(0, import_typeorm81.Entity)("calendly_meeting_logs")
|
|
13274
13256
|
], CalendlyMeetingLog);
|
|
13275
13257
|
|
|
13276
13258
|
// src/entities/zoom-meeting-log.entity.ts
|
|
13277
|
-
var
|
|
13259
|
+
var import_typeorm82 = require("typeorm");
|
|
13278
13260
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
13279
13261
|
};
|
|
13280
13262
|
__decorateClass([
|
|
13281
|
-
(0,
|
|
13282
|
-
(0,
|
|
13263
|
+
(0, import_typeorm82.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
13264
|
+
(0, import_typeorm82.Index)()
|
|
13283
13265
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
13284
13266
|
__decorateClass([
|
|
13285
|
-
(0,
|
|
13267
|
+
(0, import_typeorm82.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
13286
13268
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
13287
13269
|
__decorateClass([
|
|
13288
|
-
(0,
|
|
13270
|
+
(0, import_typeorm82.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13289
13271
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
13290
13272
|
ZoomMeetingLog = __decorateClass([
|
|
13291
|
-
(0,
|
|
13273
|
+
(0, import_typeorm82.Entity)("zoom_meeting_logs")
|
|
13292
13274
|
], ZoomMeetingLog);
|
|
13293
13275
|
|
|
13276
|
+
// src/entities/docuseal.entity.ts
|
|
13277
|
+
var import_typeorm83 = require("typeorm");
|
|
13278
|
+
var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
13279
|
+
DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
|
|
13280
|
+
DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
|
|
13281
|
+
DocuSealTypeEnum2["CONTRACT"] = "CONTRACT";
|
|
13282
|
+
return DocuSealTypeEnum2;
|
|
13283
|
+
})(DocuSealTypeEnum || {});
|
|
13284
|
+
var DocuSeal = class extends BaseEntity {
|
|
13285
|
+
};
|
|
13286
|
+
__decorateClass([
|
|
13287
|
+
(0, import_typeorm83.Column)({ name: "reference_id", type: "integer", nullable: false }),
|
|
13288
|
+
(0, import_typeorm83.Index)()
|
|
13289
|
+
], DocuSeal.prototype, "referenceId", 2);
|
|
13290
|
+
__decorateClass([
|
|
13291
|
+
(0, import_typeorm83.Column)({ name: "submitter_id", type: "integer", nullable: true }),
|
|
13292
|
+
(0, import_typeorm83.Index)()
|
|
13293
|
+
], DocuSeal.prototype, "submitterId", 2);
|
|
13294
|
+
__decorateClass([
|
|
13295
|
+
(0, import_typeorm83.Column)({ name: "submitter_response", type: "jsonb", nullable: true })
|
|
13296
|
+
], DocuSeal.prototype, "submitterResponse", 2);
|
|
13297
|
+
__decorateClass([
|
|
13298
|
+
(0, import_typeorm83.Column)({ name: "webhook_response", type: "jsonb", nullable: true })
|
|
13299
|
+
], DocuSeal.prototype, "webhookResponse", 2);
|
|
13300
|
+
__decorateClass([
|
|
13301
|
+
(0, import_typeorm83.Column)({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
|
|
13302
|
+
], DocuSeal.prototype, "type", 2);
|
|
13303
|
+
DocuSeal = __decorateClass([
|
|
13304
|
+
(0, import_typeorm83.Entity)("docuseal")
|
|
13305
|
+
], DocuSeal);
|
|
13306
|
+
|
|
13294
13307
|
// src/entities/stripe-logs.entity.ts
|
|
13295
13308
|
var import_typeorm84 = require("typeorm");
|
|
13296
13309
|
var StripeLog = class extends BaseEntity {
|
|
@@ -13491,6 +13504,7 @@ GlobalSetting = __decorateClass([
|
|
|
13491
13504
|
DocuSeal,
|
|
13492
13505
|
DocuSealMessageDto,
|
|
13493
13506
|
DocuSealSubmitterDto,
|
|
13507
|
+
DocuSealTypeEnum,
|
|
13494
13508
|
DocumentType,
|
|
13495
13509
|
DurationTypeEnum,
|
|
13496
13510
|
EMAIL_PATTERN,
|