@experts_hub/shared 1.0.604 → 1.0.606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/contract-summary.entity.d.ts +2 -0
- package/dist/entities/contract.entity.d.ts +3 -0
- package/dist/entities/job.entity.d.ts +2 -0
- package/dist/entities/user.entity.d.ts +3 -0
- package/dist/index.d.mts +30 -24
- package/dist/index.d.ts +30 -24
- package/dist/index.js +903 -875
- package/dist/index.mjs +914 -886
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2514,10 +2514,10 @@ var RATING_PATTERN = {
|
|
|
2514
2514
|
var import_class_validator63 = require("class-validator");
|
|
2515
2515
|
|
|
2516
2516
|
// src/entities/rating.entity.ts
|
|
2517
|
-
var
|
|
2517
|
+
var import_typeorm66 = require("typeorm");
|
|
2518
2518
|
|
|
2519
2519
|
// src/entities/user.entity.ts
|
|
2520
|
-
var
|
|
2520
|
+
var import_typeorm65 = require("typeorm");
|
|
2521
2521
|
|
|
2522
2522
|
// src/entities/base.entity.ts
|
|
2523
2523
|
var import_typeorm = require("typeorm");
|
|
@@ -3326,7 +3326,7 @@ FreelancerProfile = __decorateClass([
|
|
|
3326
3326
|
], FreelancerProfile);
|
|
3327
3327
|
|
|
3328
3328
|
// src/entities/job.entity.ts
|
|
3329
|
-
var
|
|
3329
|
+
var import_typeorm34 = require("typeorm");
|
|
3330
3330
|
|
|
3331
3331
|
// src/entities/job-skill.entity.ts
|
|
3332
3332
|
var import_typeorm10 = require("typeorm");
|
|
@@ -4354,7 +4354,7 @@ JobRecommendation = __decorateClass([
|
|
|
4354
4354
|
], JobRecommendation);
|
|
4355
4355
|
|
|
4356
4356
|
// src/entities/contract.entity.ts
|
|
4357
|
-
var
|
|
4357
|
+
var import_typeorm31 = require("typeorm");
|
|
4358
4358
|
|
|
4359
4359
|
// src/entities/escrow-wallet.entity.ts
|
|
4360
4360
|
var import_typeorm29 = require("typeorm");
|
|
@@ -4847,6 +4847,104 @@ EscrowWallet = __decorateClass([
|
|
|
4847
4847
|
(0, import_typeorm29.Entity)("escrow_wallets")
|
|
4848
4848
|
], EscrowWallet);
|
|
4849
4849
|
|
|
4850
|
+
// src/entities/contract-summary.entity.ts
|
|
4851
|
+
var import_typeorm30 = require("typeorm");
|
|
4852
|
+
var ContractSummaryStatusEnum = /* @__PURE__ */ ((ContractSummaryStatusEnum2) => {
|
|
4853
|
+
ContractSummaryStatusEnum2["PENDING"] = "PENDING";
|
|
4854
|
+
ContractSummaryStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
4855
|
+
ContractSummaryStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
4856
|
+
return ContractSummaryStatusEnum2;
|
|
4857
|
+
})(ContractSummaryStatusEnum || {});
|
|
4858
|
+
var ContractSummary = class extends BaseEntity {
|
|
4859
|
+
};
|
|
4860
|
+
__decorateClass([
|
|
4861
|
+
(0, import_typeorm30.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
4862
|
+
(0, import_typeorm30.Index)()
|
|
4863
|
+
], ContractSummary.prototype, "jobId", 2);
|
|
4864
|
+
__decorateClass([
|
|
4865
|
+
(0, import_typeorm30.ManyToOne)(() => Job, (job) => job.contracts),
|
|
4866
|
+
(0, import_typeorm30.JoinColumn)({ name: "job_id" })
|
|
4867
|
+
], ContractSummary.prototype, "job", 2);
|
|
4868
|
+
__decorateClass([
|
|
4869
|
+
(0, import_typeorm30.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
4870
|
+
(0, import_typeorm30.Index)()
|
|
4871
|
+
], ContractSummary.prototype, "clientId", 2);
|
|
4872
|
+
__decorateClass([
|
|
4873
|
+
(0, import_typeorm30.ManyToOne)(() => User, (user) => user.clientContracts),
|
|
4874
|
+
(0, import_typeorm30.JoinColumn)({ name: "client_id" })
|
|
4875
|
+
], ContractSummary.prototype, "client", 2);
|
|
4876
|
+
__decorateClass([
|
|
4877
|
+
(0, import_typeorm30.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4878
|
+
(0, import_typeorm30.Index)()
|
|
4879
|
+
], ContractSummary.prototype, "freelancerId", 2);
|
|
4880
|
+
__decorateClass([
|
|
4881
|
+
(0, import_typeorm30.ManyToOne)(() => User, (user) => user.freelancerContracts),
|
|
4882
|
+
(0, import_typeorm30.JoinColumn)({ name: "freelancer_id" })
|
|
4883
|
+
], ContractSummary.prototype, "freelancer", 2);
|
|
4884
|
+
__decorateClass([
|
|
4885
|
+
(0, import_typeorm30.Column)({
|
|
4886
|
+
name: "start_date",
|
|
4887
|
+
type: "timestamp with time zone",
|
|
4888
|
+
nullable: true
|
|
4889
|
+
})
|
|
4890
|
+
], ContractSummary.prototype, "startDate", 2);
|
|
4891
|
+
__decorateClass([
|
|
4892
|
+
(0, import_typeorm30.Column)({
|
|
4893
|
+
name: "end_date",
|
|
4894
|
+
type: "timestamp with time zone",
|
|
4895
|
+
nullable: true
|
|
4896
|
+
})
|
|
4897
|
+
], ContractSummary.prototype, "endDate", 2);
|
|
4898
|
+
__decorateClass([
|
|
4899
|
+
(0, import_typeorm30.Column)({ name: "duration", type: "integer", nullable: true })
|
|
4900
|
+
], ContractSummary.prototype, "duration", 2);
|
|
4901
|
+
__decorateClass([
|
|
4902
|
+
(0, import_typeorm30.Column)({
|
|
4903
|
+
name: "contract_value",
|
|
4904
|
+
type: "decimal",
|
|
4905
|
+
precision: 10,
|
|
4906
|
+
scale: 2,
|
|
4907
|
+
nullable: true
|
|
4908
|
+
})
|
|
4909
|
+
], ContractSummary.prototype, "contractValue", 2);
|
|
4910
|
+
__decorateClass([
|
|
4911
|
+
(0, import_typeorm30.Column)({ name: "invoicing_cycle", type: "varchar", nullable: true })
|
|
4912
|
+
], ContractSummary.prototype, "invoicingCycle", 2);
|
|
4913
|
+
__decorateClass([
|
|
4914
|
+
(0, import_typeorm30.Column)({ name: "is_msa_signed", type: "boolean", default: false })
|
|
4915
|
+
], ContractSummary.prototype, "isMsaSigned", 2);
|
|
4916
|
+
__decorateClass([
|
|
4917
|
+
(0, import_typeorm30.Column)({ name: "is_sow_signed", type: "boolean", default: false })
|
|
4918
|
+
], ContractSummary.prototype, "isSowSigned", 2);
|
|
4919
|
+
__decorateClass([
|
|
4920
|
+
(0, import_typeorm30.Column)({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
4921
|
+
], ContractSummary.prototype, "isEscrowDeposited", 2);
|
|
4922
|
+
__decorateClass([
|
|
4923
|
+
(0, import_typeorm30.Column)({
|
|
4924
|
+
name: "escrow_deposite_amount",
|
|
4925
|
+
type: "decimal",
|
|
4926
|
+
precision: 10,
|
|
4927
|
+
scale: 2,
|
|
4928
|
+
nullable: true
|
|
4929
|
+
})
|
|
4930
|
+
], ContractSummary.prototype, "escrowDepositeAmount", 2);
|
|
4931
|
+
__decorateClass([
|
|
4932
|
+
(0, import_typeorm30.Column)({
|
|
4933
|
+
name: "status",
|
|
4934
|
+
type: "enum",
|
|
4935
|
+
enum: ContractSummaryStatusEnum,
|
|
4936
|
+
nullable: true
|
|
4937
|
+
})
|
|
4938
|
+
], ContractSummary.prototype, "status", 2);
|
|
4939
|
+
__decorateClass([
|
|
4940
|
+
(0, import_typeorm30.OneToMany)(() => Contract, (contract) => contract.contractSummary, {
|
|
4941
|
+
cascade: true
|
|
4942
|
+
})
|
|
4943
|
+
], ContractSummary.prototype, "contracts", 2);
|
|
4944
|
+
ContractSummary = __decorateClass([
|
|
4945
|
+
(0, import_typeorm30.Entity)("contract_summaries")
|
|
4946
|
+
], ContractSummary);
|
|
4947
|
+
|
|
4850
4948
|
// src/entities/contract.entity.ts
|
|
4851
4949
|
var ContractStatusEnum = /* @__PURE__ */ ((ContractStatusEnum2) => {
|
|
4852
4950
|
ContractStatusEnum2["GENERATED"] = "GENERATED";
|
|
@@ -4871,37 +4969,45 @@ var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
|
|
|
4871
4969
|
var Contract = class extends BaseEntity {
|
|
4872
4970
|
};
|
|
4873
4971
|
__decorateClass([
|
|
4874
|
-
(0,
|
|
4972
|
+
(0, import_typeorm31.Column)({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
|
|
4875
4973
|
], Contract.prototype, "contractUniqueId", 2);
|
|
4876
4974
|
__decorateClass([
|
|
4877
|
-
(0,
|
|
4878
|
-
(0,
|
|
4975
|
+
(0, import_typeorm31.Column)({ name: "contract_summary_id", type: "integer", nullable: true }),
|
|
4976
|
+
(0, import_typeorm31.Index)()
|
|
4977
|
+
], Contract.prototype, "contractSummaryId", 2);
|
|
4978
|
+
__decorateClass([
|
|
4979
|
+
(0, import_typeorm31.ManyToOne)(() => ContractSummary, (contractSummary) => contractSummary.contracts),
|
|
4980
|
+
(0, import_typeorm31.JoinColumn)({ name: "contract_summary_id" })
|
|
4981
|
+
], Contract.prototype, "contractSummary", 2);
|
|
4982
|
+
__decorateClass([
|
|
4983
|
+
(0, import_typeorm31.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
4984
|
+
(0, import_typeorm31.Index)()
|
|
4879
4985
|
], Contract.prototype, "jobId", 2);
|
|
4880
4986
|
__decorateClass([
|
|
4881
|
-
(0,
|
|
4882
|
-
(0,
|
|
4987
|
+
(0, import_typeorm31.ManyToOne)(() => Job, (job) => job.contracts),
|
|
4988
|
+
(0, import_typeorm31.JoinColumn)({ name: "job_id" })
|
|
4883
4989
|
], Contract.prototype, "job", 2);
|
|
4884
4990
|
__decorateClass([
|
|
4885
|
-
(0,
|
|
4886
|
-
(0,
|
|
4991
|
+
(0, import_typeorm31.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
4992
|
+
(0, import_typeorm31.Index)()
|
|
4887
4993
|
], Contract.prototype, "clientId", 2);
|
|
4888
4994
|
__decorateClass([
|
|
4889
|
-
(0,
|
|
4890
|
-
(0,
|
|
4995
|
+
(0, import_typeorm31.ManyToOne)(() => User, (user) => user.clientContracts),
|
|
4996
|
+
(0, import_typeorm31.JoinColumn)({ name: "client_id" })
|
|
4891
4997
|
], Contract.prototype, "client", 2);
|
|
4892
4998
|
__decorateClass([
|
|
4893
|
-
(0,
|
|
4894
|
-
(0,
|
|
4999
|
+
(0, import_typeorm31.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5000
|
+
(0, import_typeorm31.Index)()
|
|
4895
5001
|
], Contract.prototype, "freelancerId", 2);
|
|
4896
5002
|
__decorateClass([
|
|
4897
|
-
(0,
|
|
4898
|
-
(0,
|
|
5003
|
+
(0, import_typeorm31.ManyToOne)(() => User, (user) => user.freelancerContracts),
|
|
5004
|
+
(0, import_typeorm31.JoinColumn)({ name: "freelancer_id" })
|
|
4899
5005
|
], Contract.prototype, "freelancer", 2);
|
|
4900
5006
|
__decorateClass([
|
|
4901
|
-
(0,
|
|
5007
|
+
(0, import_typeorm31.Column)({ name: "duration", type: "integer", nullable: true })
|
|
4902
5008
|
], Contract.prototype, "duration", 2);
|
|
4903
5009
|
__decorateClass([
|
|
4904
|
-
(0,
|
|
5010
|
+
(0, import_typeorm31.Column)({
|
|
4905
5011
|
name: "status",
|
|
4906
5012
|
type: "enum",
|
|
4907
5013
|
enum: ContractStatusEnum,
|
|
@@ -4909,7 +5015,7 @@ __decorateClass([
|
|
|
4909
5015
|
})
|
|
4910
5016
|
], Contract.prototype, "status", 2);
|
|
4911
5017
|
__decorateClass([
|
|
4912
|
-
(0,
|
|
5018
|
+
(0, import_typeorm31.Column)({
|
|
4913
5019
|
name: "type",
|
|
4914
5020
|
type: "enum",
|
|
4915
5021
|
enum: ContractTypeEnum,
|
|
@@ -4917,10 +5023,10 @@ __decorateClass([
|
|
|
4917
5023
|
})
|
|
4918
5024
|
], Contract.prototype, "type", 2);
|
|
4919
5025
|
__decorateClass([
|
|
4920
|
-
(0,
|
|
5026
|
+
(0, import_typeorm31.Column)({ name: "invoicing_cycle", type: "varchar", nullable: true })
|
|
4921
5027
|
], Contract.prototype, "invoicingCycle", 2);
|
|
4922
5028
|
__decorateClass([
|
|
4923
|
-
(0,
|
|
5029
|
+
(0, import_typeorm31.Column)({
|
|
4924
5030
|
name: "escrow_deposite_amount",
|
|
4925
5031
|
type: "decimal",
|
|
4926
5032
|
precision: 10,
|
|
@@ -4929,83 +5035,83 @@ __decorateClass([
|
|
|
4929
5035
|
})
|
|
4930
5036
|
], Contract.prototype, "escrowDepositeAmount", 2);
|
|
4931
5037
|
__decorateClass([
|
|
4932
|
-
(0,
|
|
5038
|
+
(0, import_typeorm31.Column)({
|
|
4933
5039
|
name: "start_date",
|
|
4934
5040
|
type: "timestamp with time zone",
|
|
4935
5041
|
nullable: true
|
|
4936
5042
|
})
|
|
4937
5043
|
], Contract.prototype, "startDate", 2);
|
|
4938
5044
|
__decorateClass([
|
|
4939
|
-
(0,
|
|
5045
|
+
(0, import_typeorm31.Column)({
|
|
4940
5046
|
name: "end_date",
|
|
4941
5047
|
type: "timestamp with time zone",
|
|
4942
5048
|
nullable: true
|
|
4943
5049
|
})
|
|
4944
5050
|
], Contract.prototype, "endDate", 2);
|
|
4945
5051
|
__decorateClass([
|
|
4946
|
-
(0,
|
|
5052
|
+
(0, import_typeorm31.Column)({ name: "original_document_url", type: "varchar", nullable: true })
|
|
4947
5053
|
], Contract.prototype, "originalDocumentUrl", 2);
|
|
4948
5054
|
__decorateClass([
|
|
4949
|
-
(0,
|
|
5055
|
+
(0, import_typeorm31.Column)({ name: "contract_document_url", type: "varchar", nullable: true })
|
|
4950
5056
|
], Contract.prototype, "contractDocumentUrl", 2);
|
|
4951
5057
|
__decorateClass([
|
|
4952
|
-
(0,
|
|
5058
|
+
(0, import_typeorm31.Column)({
|
|
4953
5059
|
name: "client_signed_at",
|
|
4954
5060
|
type: "timestamp with time zone",
|
|
4955
5061
|
nullable: true
|
|
4956
5062
|
})
|
|
4957
5063
|
], Contract.prototype, "clientSignedAt", 2);
|
|
4958
5064
|
__decorateClass([
|
|
4959
|
-
(0,
|
|
5065
|
+
(0, import_typeorm31.Column)({ name: "freelancer_viewed", type: "boolean", default: false })
|
|
4960
5066
|
], Contract.prototype, "freelancerViewed", 2);
|
|
4961
5067
|
__decorateClass([
|
|
4962
|
-
(0,
|
|
5068
|
+
(0, import_typeorm31.Column)({
|
|
4963
5069
|
name: "freelancer_viewed_at",
|
|
4964
5070
|
type: "timestamp with time zone",
|
|
4965
5071
|
nullable: true
|
|
4966
5072
|
})
|
|
4967
5073
|
], Contract.prototype, "freelancerViewedAt", 2);
|
|
4968
5074
|
__decorateClass([
|
|
4969
|
-
(0,
|
|
5075
|
+
(0, import_typeorm31.Column)({
|
|
4970
5076
|
name: "freelancer_signed_at",
|
|
4971
5077
|
type: "timestamp with time zone",
|
|
4972
5078
|
nullable: true
|
|
4973
5079
|
})
|
|
4974
5080
|
], Contract.prototype, "freelancerSignedAt", 2);
|
|
4975
5081
|
__decorateClass([
|
|
4976
|
-
(0,
|
|
5082
|
+
(0, import_typeorm31.Column)({
|
|
4977
5083
|
name: "rejectd_at",
|
|
4978
5084
|
type: "timestamp with time zone",
|
|
4979
5085
|
nullable: true
|
|
4980
5086
|
})
|
|
4981
5087
|
], Contract.prototype, "rejectedAt", 2);
|
|
4982
5088
|
__decorateClass([
|
|
4983
|
-
(0,
|
|
5089
|
+
(0, import_typeorm31.Column)({ name: "reject_reason", type: "varchar", nullable: true })
|
|
4984
5090
|
], Contract.prototype, "rejectReason", 2);
|
|
4985
5091
|
__decorateClass([
|
|
4986
|
-
(0,
|
|
5092
|
+
(0, import_typeorm31.Column)({ name: "resend_count", type: "integer", default: 0 })
|
|
4987
5093
|
], Contract.prototype, "resendCount", 2);
|
|
4988
5094
|
__decorateClass([
|
|
4989
|
-
(0,
|
|
5095
|
+
(0, import_typeorm31.Column)({ name: "is_work_contract_sent", type: "boolean", default: false })
|
|
4990
5096
|
], Contract.prototype, "isWorkContractSent", 2);
|
|
4991
5097
|
__decorateClass([
|
|
4992
|
-
(0,
|
|
5098
|
+
(0, import_typeorm31.Column)({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
4993
5099
|
], Contract.prototype, "isEscrowDeposited", 2);
|
|
4994
5100
|
__decorateClass([
|
|
4995
|
-
(0,
|
|
5101
|
+
(0, import_typeorm31.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
|
|
4996
5102
|
], Contract.prototype, "signaturePositions", 2);
|
|
4997
5103
|
__decorateClass([
|
|
4998
|
-
(0,
|
|
5104
|
+
(0, import_typeorm31.Column)({ name: "meta_data", type: "jsonb", nullable: true })
|
|
4999
5105
|
], Contract.prototype, "metaData", 2);
|
|
5000
5106
|
__decorateClass([
|
|
5001
|
-
(0,
|
|
5107
|
+
(0, import_typeorm31.OneToOne)(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
|
|
5002
5108
|
], Contract.prototype, "escrowWallet", 2);
|
|
5003
5109
|
Contract = __decorateClass([
|
|
5004
|
-
(0,
|
|
5110
|
+
(0, import_typeorm31.Entity)("contracts")
|
|
5005
5111
|
], Contract);
|
|
5006
5112
|
|
|
5007
5113
|
// src/entities/timesheets.entity.ts
|
|
5008
|
-
var
|
|
5114
|
+
var import_typeorm32 = require("typeorm");
|
|
5009
5115
|
var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
5010
5116
|
TimesheetStatusEnum2["DRAFT"] = "DRAFT";
|
|
5011
5117
|
TimesheetStatusEnum2["SEND"] = "SEND";
|
|
@@ -5018,136 +5124,136 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
|
5018
5124
|
var Timesheet = class extends BaseEntity {
|
|
5019
5125
|
};
|
|
5020
5126
|
__decorateClass([
|
|
5021
|
-
(0,
|
|
5022
|
-
(0,
|
|
5127
|
+
(0, import_typeorm32.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
5128
|
+
(0, import_typeorm32.Index)()
|
|
5023
5129
|
], Timesheet.prototype, "jobId", 2);
|
|
5024
5130
|
__decorateClass([
|
|
5025
|
-
(0,
|
|
5026
|
-
(0,
|
|
5131
|
+
(0, import_typeorm32.ManyToOne)(() => Job, (job) => job.timesheets),
|
|
5132
|
+
(0, import_typeorm32.JoinColumn)({ name: "job_id" })
|
|
5027
5133
|
], Timesheet.prototype, "job", 2);
|
|
5028
5134
|
__decorateClass([
|
|
5029
|
-
(0,
|
|
5030
|
-
(0,
|
|
5135
|
+
(0, import_typeorm32.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
5136
|
+
(0, import_typeorm32.Index)()
|
|
5031
5137
|
], Timesheet.prototype, "clientId", 2);
|
|
5032
5138
|
__decorateClass([
|
|
5033
|
-
(0,
|
|
5034
|
-
(0,
|
|
5139
|
+
(0, import_typeorm32.ManyToOne)(() => User, (user) => user.clientTimesheets),
|
|
5140
|
+
(0, import_typeorm32.JoinColumn)({ name: "client_id" })
|
|
5035
5141
|
], Timesheet.prototype, "client", 2);
|
|
5036
5142
|
__decorateClass([
|
|
5037
|
-
(0,
|
|
5038
|
-
(0,
|
|
5143
|
+
(0, import_typeorm32.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5144
|
+
(0, import_typeorm32.Index)()
|
|
5039
5145
|
], Timesheet.prototype, "freelancerId", 2);
|
|
5040
5146
|
__decorateClass([
|
|
5041
|
-
(0,
|
|
5042
|
-
(0,
|
|
5147
|
+
(0, import_typeorm32.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
|
|
5148
|
+
(0, import_typeorm32.JoinColumn)({ name: "freelancer_id" })
|
|
5043
5149
|
], Timesheet.prototype, "freelancer", 2);
|
|
5044
5150
|
__decorateClass([
|
|
5045
|
-
(0,
|
|
5151
|
+
(0, import_typeorm32.Column)({
|
|
5046
5152
|
name: "start_date",
|
|
5047
5153
|
type: "date",
|
|
5048
5154
|
nullable: true
|
|
5049
5155
|
})
|
|
5050
5156
|
], Timesheet.prototype, "startDate", 2);
|
|
5051
5157
|
__decorateClass([
|
|
5052
|
-
(0,
|
|
5158
|
+
(0, import_typeorm32.Column)({
|
|
5053
5159
|
name: "end_date",
|
|
5054
5160
|
type: "date",
|
|
5055
5161
|
nullable: true
|
|
5056
5162
|
})
|
|
5057
5163
|
], Timesheet.prototype, "endDate", 2);
|
|
5058
5164
|
__decorateClass([
|
|
5059
|
-
(0,
|
|
5165
|
+
(0, import_typeorm32.Column)({ name: "start_time", type: "varchar", nullable: true })
|
|
5060
5166
|
], Timesheet.prototype, "startTime", 2);
|
|
5061
5167
|
__decorateClass([
|
|
5062
|
-
(0,
|
|
5168
|
+
(0, import_typeorm32.Column)({ name: "end_time", type: "varchar", nullable: true })
|
|
5063
5169
|
], Timesheet.prototype, "endTime", 2);
|
|
5064
5170
|
__decorateClass([
|
|
5065
|
-
(0,
|
|
5171
|
+
(0, import_typeorm32.Column)({ name: "worked_hours", type: "varchar", nullable: true })
|
|
5066
5172
|
], Timesheet.prototype, "workedHours", 2);
|
|
5067
5173
|
__decorateClass([
|
|
5068
|
-
(0,
|
|
5174
|
+
(0, import_typeorm32.Column)({ name: "task_id", type: "integer", nullable: true })
|
|
5069
5175
|
], Timesheet.prototype, "taskId", 2);
|
|
5070
5176
|
__decorateClass([
|
|
5071
|
-
(0,
|
|
5177
|
+
(0, import_typeorm32.Column)({ name: "task_name", type: "varchar", nullable: true })
|
|
5072
5178
|
], Timesheet.prototype, "taskName", 2);
|
|
5073
5179
|
__decorateClass([
|
|
5074
|
-
(0,
|
|
5180
|
+
(0, import_typeorm32.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5075
5181
|
], Timesheet.prototype, "description", 2);
|
|
5076
5182
|
__decorateClass([
|
|
5077
|
-
(0,
|
|
5183
|
+
(0, import_typeorm32.Column)({ name: "week_start_date", type: "date", nullable: true })
|
|
5078
5184
|
], Timesheet.prototype, "weekStartDate", 2);
|
|
5079
5185
|
__decorateClass([
|
|
5080
|
-
(0,
|
|
5186
|
+
(0, import_typeorm32.Column)({ name: "week_end_date", type: "date", nullable: true })
|
|
5081
5187
|
], Timesheet.prototype, "weekEndDate", 2);
|
|
5082
5188
|
__decorateClass([
|
|
5083
|
-
(0,
|
|
5189
|
+
(0, import_typeorm32.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
|
|
5084
5190
|
], Timesheet.prototype, "rejectedAt", 2);
|
|
5085
5191
|
__decorateClass([
|
|
5086
|
-
(0,
|
|
5192
|
+
(0, import_typeorm32.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
|
|
5087
5193
|
], Timesheet.prototype, "submittedAt", 2);
|
|
5088
5194
|
__decorateClass([
|
|
5089
|
-
(0,
|
|
5195
|
+
(0, import_typeorm32.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
|
|
5090
5196
|
], Timesheet.prototype, "resubmittedAt", 2);
|
|
5091
5197
|
__decorateClass([
|
|
5092
|
-
(0,
|
|
5198
|
+
(0, import_typeorm32.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
|
|
5093
5199
|
], Timesheet.prototype, "approvedAt", 2);
|
|
5094
5200
|
__decorateClass([
|
|
5095
|
-
(0,
|
|
5201
|
+
(0, import_typeorm32.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
|
|
5096
5202
|
], Timesheet.prototype, "status", 2);
|
|
5097
5203
|
__decorateClass([
|
|
5098
|
-
(0,
|
|
5204
|
+
(0, import_typeorm32.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
|
|
5099
5205
|
], Timesheet.prototype, "clientSendBackReason", 2);
|
|
5100
5206
|
Timesheet = __decorateClass([
|
|
5101
|
-
(0,
|
|
5207
|
+
(0, import_typeorm32.Entity)("timesheets")
|
|
5102
5208
|
], Timesheet);
|
|
5103
5209
|
|
|
5104
5210
|
// src/entities/job-location.entity.ts
|
|
5105
|
-
var
|
|
5211
|
+
var import_typeorm33 = require("typeorm");
|
|
5106
5212
|
var JobLocation = class extends BaseEntity {
|
|
5107
5213
|
};
|
|
5108
5214
|
__decorateClass([
|
|
5109
|
-
(0,
|
|
5110
|
-
(0,
|
|
5215
|
+
(0, import_typeorm33.Column)({ name: "job_id", type: "integer", nullable: false }),
|
|
5216
|
+
(0, import_typeorm33.Index)()
|
|
5111
5217
|
], JobLocation.prototype, "jobId", 2);
|
|
5112
5218
|
__decorateClass([
|
|
5113
|
-
(0,
|
|
5114
|
-
(0,
|
|
5219
|
+
(0, import_typeorm33.ManyToOne)(() => Job, (job) => job.jobLocations),
|
|
5220
|
+
(0, import_typeorm33.JoinColumn)({ name: "job_id" })
|
|
5115
5221
|
], JobLocation.prototype, "job", 2);
|
|
5116
5222
|
__decorateClass([
|
|
5117
|
-
(0,
|
|
5223
|
+
(0, import_typeorm33.Column)({ name: "country_id", type: "int", nullable: false })
|
|
5118
5224
|
], JobLocation.prototype, "countryId", 2);
|
|
5119
5225
|
__decorateClass([
|
|
5120
|
-
(0,
|
|
5226
|
+
(0, import_typeorm33.Column)({ name: "country_name", type: "varchar", nullable: true })
|
|
5121
5227
|
], JobLocation.prototype, "countryName", 2);
|
|
5122
5228
|
__decorateClass([
|
|
5123
|
-
(0,
|
|
5124
|
-
(0,
|
|
5229
|
+
(0, import_typeorm33.ManyToOne)(() => Country),
|
|
5230
|
+
(0, import_typeorm33.JoinColumn)({ name: "country_id" })
|
|
5125
5231
|
], JobLocation.prototype, "country", 2);
|
|
5126
5232
|
__decorateClass([
|
|
5127
|
-
(0,
|
|
5233
|
+
(0, import_typeorm33.Column)({ name: "state_id", type: "int", nullable: false })
|
|
5128
5234
|
], JobLocation.prototype, "stateId", 2);
|
|
5129
5235
|
__decorateClass([
|
|
5130
|
-
(0,
|
|
5236
|
+
(0, import_typeorm33.Column)({ name: "state_name", type: "varchar", nullable: true })
|
|
5131
5237
|
], JobLocation.prototype, "stateName", 2);
|
|
5132
5238
|
__decorateClass([
|
|
5133
|
-
(0,
|
|
5134
|
-
(0,
|
|
5239
|
+
(0, import_typeorm33.ManyToOne)(() => State),
|
|
5240
|
+
(0, import_typeorm33.JoinColumn)({ name: "state_id" })
|
|
5135
5241
|
], JobLocation.prototype, "state", 2);
|
|
5136
5242
|
__decorateClass([
|
|
5137
|
-
(0,
|
|
5243
|
+
(0, import_typeorm33.Column)({ name: "city_id", type: "int", nullable: false })
|
|
5138
5244
|
], JobLocation.prototype, "cityId", 2);
|
|
5139
5245
|
__decorateClass([
|
|
5140
|
-
(0,
|
|
5246
|
+
(0, import_typeorm33.Column)({ name: "city_name", type: "varchar", nullable: true })
|
|
5141
5247
|
], JobLocation.prototype, "cityName", 2);
|
|
5142
5248
|
__decorateClass([
|
|
5143
|
-
(0,
|
|
5144
|
-
(0,
|
|
5249
|
+
(0, import_typeorm33.ManyToOne)(() => City),
|
|
5250
|
+
(0, import_typeorm33.JoinColumn)({ name: "city_id" })
|
|
5145
5251
|
], JobLocation.prototype, "city", 2);
|
|
5146
5252
|
__decorateClass([
|
|
5147
|
-
(0,
|
|
5253
|
+
(0, import_typeorm33.Column)({ name: "location_wise_openings", type: "int", default: 0 })
|
|
5148
5254
|
], JobLocation.prototype, "locationWiseOpenings", 2);
|
|
5149
5255
|
JobLocation = __decorateClass([
|
|
5150
|
-
(0,
|
|
5256
|
+
(0, import_typeorm33.Entity)("job_locations")
|
|
5151
5257
|
], JobLocation);
|
|
5152
5258
|
|
|
5153
5259
|
// src/entities/job.entity.ts
|
|
@@ -5197,58 +5303,58 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
5197
5303
|
var Job = class extends BaseEntity {
|
|
5198
5304
|
};
|
|
5199
5305
|
__decorateClass([
|
|
5200
|
-
(0,
|
|
5306
|
+
(0, import_typeorm34.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
5201
5307
|
], Job.prototype, "jobId", 2);
|
|
5202
5308
|
// individual index to find jobs by user
|
|
5203
5309
|
__decorateClass([
|
|
5204
|
-
(0,
|
|
5205
|
-
(0,
|
|
5310
|
+
(0, import_typeorm34.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5311
|
+
(0, import_typeorm34.Index)()
|
|
5206
5312
|
], Job.prototype, "userId", 2);
|
|
5207
5313
|
__decorateClass([
|
|
5208
|
-
(0,
|
|
5209
|
-
(0,
|
|
5314
|
+
(0, import_typeorm34.ManyToOne)(() => User, (user) => user.jobs),
|
|
5315
|
+
(0, import_typeorm34.JoinColumn)({ name: "user_id" })
|
|
5210
5316
|
], Job.prototype, "user", 2);
|
|
5211
5317
|
__decorateClass([
|
|
5212
|
-
(0,
|
|
5318
|
+
(0, import_typeorm34.Column)({ name: "country_id", type: "int", nullable: true })
|
|
5213
5319
|
], Job.prototype, "countryId", 2);
|
|
5214
5320
|
__decorateClass([
|
|
5215
|
-
(0,
|
|
5216
|
-
(0,
|
|
5321
|
+
(0, import_typeorm34.ManyToOne)(() => Country),
|
|
5322
|
+
(0, import_typeorm34.JoinColumn)({ name: "country_id" })
|
|
5217
5323
|
], Job.prototype, "country", 2);
|
|
5218
5324
|
__decorateClass([
|
|
5219
|
-
(0,
|
|
5325
|
+
(0, import_typeorm34.Column)({ name: "state_id", type: "int", nullable: true })
|
|
5220
5326
|
], Job.prototype, "stateId", 2);
|
|
5221
5327
|
__decorateClass([
|
|
5222
|
-
(0,
|
|
5223
|
-
(0,
|
|
5328
|
+
(0, import_typeorm34.ManyToOne)(() => State),
|
|
5329
|
+
(0, import_typeorm34.JoinColumn)({ name: "state_id" })
|
|
5224
5330
|
], Job.prototype, "state", 2);
|
|
5225
5331
|
__decorateClass([
|
|
5226
|
-
(0,
|
|
5332
|
+
(0, import_typeorm34.Column)({ name: "city_id", type: "int", nullable: true })
|
|
5227
5333
|
], Job.prototype, "cityId", 2);
|
|
5228
5334
|
__decorateClass([
|
|
5229
|
-
(0,
|
|
5230
|
-
(0,
|
|
5335
|
+
(0, import_typeorm34.ManyToOne)(() => City),
|
|
5336
|
+
(0, import_typeorm34.JoinColumn)({ name: "city_id" })
|
|
5231
5337
|
], Job.prototype, "city", 2);
|
|
5232
5338
|
__decorateClass([
|
|
5233
|
-
(0,
|
|
5339
|
+
(0, import_typeorm34.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
5234
5340
|
], Job.prototype, "jobRole", 2);
|
|
5235
5341
|
__decorateClass([
|
|
5236
|
-
(0,
|
|
5342
|
+
(0, import_typeorm34.Column)({ name: "job_role_canonical_name", type: "varchar", nullable: true })
|
|
5237
5343
|
], Job.prototype, "jobRoleCanonicalName", 2);
|
|
5238
5344
|
__decorateClass([
|
|
5239
|
-
(0,
|
|
5345
|
+
(0, import_typeorm34.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
5240
5346
|
], Job.prototype, "projectName", 2);
|
|
5241
5347
|
__decorateClass([
|
|
5242
|
-
(0,
|
|
5348
|
+
(0, import_typeorm34.Column)({ name: "note", type: "varchar", nullable: true })
|
|
5243
5349
|
], Job.prototype, "note", 2);
|
|
5244
5350
|
__decorateClass([
|
|
5245
|
-
(0,
|
|
5351
|
+
(0, import_typeorm34.Column)({ name: "openings", type: "integer", default: 0 })
|
|
5246
5352
|
], Job.prototype, "openings", 2);
|
|
5247
5353
|
__decorateClass([
|
|
5248
|
-
(0,
|
|
5354
|
+
(0, import_typeorm34.Column)({ name: "utilised_openings", type: "integer", default: 0 })
|
|
5249
5355
|
], Job.prototype, "utilisedOpenings", 2);
|
|
5250
5356
|
__decorateClass([
|
|
5251
|
-
(0,
|
|
5357
|
+
(0, import_typeorm34.Column)({
|
|
5252
5358
|
name: "location",
|
|
5253
5359
|
type: "enum",
|
|
5254
5360
|
enum: JobLocationEnum2,
|
|
@@ -5256,7 +5362,7 @@ __decorateClass([
|
|
|
5256
5362
|
})
|
|
5257
5363
|
], Job.prototype, "location", 2);
|
|
5258
5364
|
__decorateClass([
|
|
5259
|
-
(0,
|
|
5365
|
+
(0, import_typeorm34.Column)({
|
|
5260
5366
|
name: "type_of_employment",
|
|
5261
5367
|
type: "enum",
|
|
5262
5368
|
enum: TypeOfEmploymentEnum,
|
|
@@ -5264,10 +5370,10 @@ __decorateClass([
|
|
|
5264
5370
|
})
|
|
5265
5371
|
], Job.prototype, "typeOfEmployment", 2);
|
|
5266
5372
|
__decorateClass([
|
|
5267
|
-
(0,
|
|
5373
|
+
(0, import_typeorm34.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
5268
5374
|
], Job.prototype, "academicQualification", 2);
|
|
5269
5375
|
__decorateClass([
|
|
5270
|
-
(0,
|
|
5376
|
+
(0, import_typeorm34.Column)({
|
|
5271
5377
|
name: "type_of_experience",
|
|
5272
5378
|
type: "enum",
|
|
5273
5379
|
enum: typeOfExperienceEnum,
|
|
@@ -5275,22 +5381,22 @@ __decorateClass([
|
|
|
5275
5381
|
})
|
|
5276
5382
|
], Job.prototype, "typeOfExperience", 2);
|
|
5277
5383
|
__decorateClass([
|
|
5278
|
-
(0,
|
|
5384
|
+
(0, import_typeorm34.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
5279
5385
|
], Job.prototype, "yearsOfExperience", 2);
|
|
5280
5386
|
__decorateClass([
|
|
5281
|
-
(0,
|
|
5387
|
+
(0, import_typeorm34.Column)({ name: "years_of_experience_from", type: "varchar", nullable: true })
|
|
5282
5388
|
], Job.prototype, "yearsOfExperienceFrom", 2);
|
|
5283
5389
|
__decorateClass([
|
|
5284
|
-
(0,
|
|
5390
|
+
(0, import_typeorm34.Column)({ name: "years_of_experience_to", type: "varchar", nullable: true })
|
|
5285
5391
|
], Job.prototype, "yearsOfExperienceTo", 2);
|
|
5286
5392
|
__decorateClass([
|
|
5287
|
-
(0,
|
|
5393
|
+
(0, import_typeorm34.Column)({ name: "business_industry", type: "varchar", nullable: true })
|
|
5288
5394
|
], Job.prototype, "businessIndustry", 2);
|
|
5289
5395
|
__decorateClass([
|
|
5290
|
-
(0,
|
|
5396
|
+
(0, import_typeorm34.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
5291
5397
|
], Job.prototype, "currency", 2);
|
|
5292
5398
|
__decorateClass([
|
|
5293
|
-
(0,
|
|
5399
|
+
(0, import_typeorm34.Column)({
|
|
5294
5400
|
name: "expected_salary_from",
|
|
5295
5401
|
type: "decimal",
|
|
5296
5402
|
precision: 10,
|
|
@@ -5299,14 +5405,14 @@ __decorateClass([
|
|
|
5299
5405
|
})
|
|
5300
5406
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
5301
5407
|
__decorateClass([
|
|
5302
|
-
(0,
|
|
5408
|
+
(0, import_typeorm34.Column)({
|
|
5303
5409
|
name: "hide_expected_salary_from",
|
|
5304
5410
|
type: "boolean",
|
|
5305
5411
|
default: false
|
|
5306
5412
|
})
|
|
5307
5413
|
], Job.prototype, "hideExpectedSalaryFrom", 2);
|
|
5308
5414
|
__decorateClass([
|
|
5309
|
-
(0,
|
|
5415
|
+
(0, import_typeorm34.Column)({
|
|
5310
5416
|
name: "expected_salary_to",
|
|
5311
5417
|
type: "decimal",
|
|
5312
5418
|
precision: 10,
|
|
@@ -5315,14 +5421,14 @@ __decorateClass([
|
|
|
5315
5421
|
})
|
|
5316
5422
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
5317
5423
|
__decorateClass([
|
|
5318
|
-
(0,
|
|
5424
|
+
(0, import_typeorm34.Column)({
|
|
5319
5425
|
name: "hide_expected_salary_to",
|
|
5320
5426
|
type: "boolean",
|
|
5321
5427
|
default: false
|
|
5322
5428
|
})
|
|
5323
5429
|
], Job.prototype, "hideExpectedSalaryTo", 2);
|
|
5324
5430
|
__decorateClass([
|
|
5325
|
-
(0,
|
|
5431
|
+
(0, import_typeorm34.Column)({
|
|
5326
5432
|
name: "expected_annual_budget_from",
|
|
5327
5433
|
type: "decimal",
|
|
5328
5434
|
precision: 10,
|
|
@@ -5331,14 +5437,14 @@ __decorateClass([
|
|
|
5331
5437
|
})
|
|
5332
5438
|
], Job.prototype, "expectedAnnualBudgetFrom", 2);
|
|
5333
5439
|
__decorateClass([
|
|
5334
|
-
(0,
|
|
5440
|
+
(0, import_typeorm34.Column)({
|
|
5335
5441
|
name: "hide_expected_annual_budget_from",
|
|
5336
5442
|
type: "boolean",
|
|
5337
5443
|
default: false
|
|
5338
5444
|
})
|
|
5339
5445
|
], Job.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
5340
5446
|
__decorateClass([
|
|
5341
|
-
(0,
|
|
5447
|
+
(0, import_typeorm34.Column)({
|
|
5342
5448
|
name: "expected_annual_budget_to",
|
|
5343
5449
|
type: "decimal",
|
|
5344
5450
|
precision: 10,
|
|
@@ -5347,32 +5453,32 @@ __decorateClass([
|
|
|
5347
5453
|
})
|
|
5348
5454
|
], Job.prototype, "expectedAnnualBudgetTo", 2);
|
|
5349
5455
|
__decorateClass([
|
|
5350
|
-
(0,
|
|
5456
|
+
(0, import_typeorm34.Column)({
|
|
5351
5457
|
name: "hide_expected_annual_budget_to",
|
|
5352
5458
|
type: "boolean",
|
|
5353
5459
|
default: false
|
|
5354
5460
|
})
|
|
5355
5461
|
], Job.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
5356
5462
|
__decorateClass([
|
|
5357
|
-
(0,
|
|
5463
|
+
(0, import_typeorm34.Column)({ name: "years", type: "varchar", nullable: true })
|
|
5358
5464
|
], Job.prototype, "years", 2);
|
|
5359
5465
|
__decorateClass([
|
|
5360
|
-
(0,
|
|
5466
|
+
(0, import_typeorm34.Column)({ name: "months", type: "varchar", nullable: true })
|
|
5361
5467
|
], Job.prototype, "months", 2);
|
|
5362
5468
|
__decorateClass([
|
|
5363
|
-
(0,
|
|
5469
|
+
(0, import_typeorm34.Column)({ name: "weeks", type: "varchar", nullable: true })
|
|
5364
5470
|
], Job.prototype, "weeks", 2);
|
|
5365
5471
|
__decorateClass([
|
|
5366
|
-
(0,
|
|
5472
|
+
(0, import_typeorm34.Column)({ name: "days", type: "varchar", nullable: true })
|
|
5367
5473
|
], Job.prototype, "days", 2);
|
|
5368
5474
|
__decorateClass([
|
|
5369
|
-
(0,
|
|
5475
|
+
(0, import_typeorm34.Column)({ name: "tentative_start_date", type: "date", nullable: true })
|
|
5370
5476
|
], Job.prototype, "tentativeStartDate", 2);
|
|
5371
5477
|
__decorateClass([
|
|
5372
|
-
(0,
|
|
5478
|
+
(0, import_typeorm34.Column)({ name: "tentative_end_date", type: "date", nullable: true })
|
|
5373
5479
|
], Job.prototype, "tentativeEndDate", 2);
|
|
5374
5480
|
__decorateClass([
|
|
5375
|
-
(0,
|
|
5481
|
+
(0, import_typeorm34.Column)({
|
|
5376
5482
|
name: "duration_type",
|
|
5377
5483
|
type: "enum",
|
|
5378
5484
|
enum: DurationTypeEnum,
|
|
@@ -5380,10 +5486,10 @@ __decorateClass([
|
|
|
5380
5486
|
})
|
|
5381
5487
|
], Job.prototype, "durationType", 2);
|
|
5382
5488
|
__decorateClass([
|
|
5383
|
-
(0,
|
|
5489
|
+
(0, import_typeorm34.Column)({ name: "duration", type: "varchar", nullable: true })
|
|
5384
5490
|
], Job.prototype, "duration", 2);
|
|
5385
5491
|
__decorateClass([
|
|
5386
|
-
(0,
|
|
5492
|
+
(0, import_typeorm34.Column)({
|
|
5387
5493
|
name: "number_of_hours",
|
|
5388
5494
|
type: "decimal",
|
|
5389
5495
|
precision: 4,
|
|
@@ -5392,13 +5498,13 @@ __decorateClass([
|
|
|
5392
5498
|
})
|
|
5393
5499
|
], Job.prototype, "numberOfHours", 2);
|
|
5394
5500
|
__decorateClass([
|
|
5395
|
-
(0,
|
|
5501
|
+
(0, import_typeorm34.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5396
5502
|
], Job.prototype, "description", 2);
|
|
5397
5503
|
__decorateClass([
|
|
5398
|
-
(0,
|
|
5504
|
+
(0, import_typeorm34.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
5399
5505
|
], Job.prototype, "additionalComment", 2);
|
|
5400
5506
|
__decorateClass([
|
|
5401
|
-
(0,
|
|
5507
|
+
(0, import_typeorm34.Column)({
|
|
5402
5508
|
name: "onboarding_tat",
|
|
5403
5509
|
type: "varchar",
|
|
5404
5510
|
length: 50,
|
|
@@ -5406,14 +5512,14 @@ __decorateClass([
|
|
|
5406
5512
|
})
|
|
5407
5513
|
], Job.prototype, "onboardingTat", 2);
|
|
5408
5514
|
__decorateClass([
|
|
5409
|
-
(0,
|
|
5515
|
+
(0, import_typeorm34.Column)({
|
|
5410
5516
|
name: "candidate_communication_skills",
|
|
5411
5517
|
type: "varchar",
|
|
5412
5518
|
nullable: true
|
|
5413
5519
|
})
|
|
5414
5520
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
5415
5521
|
__decorateClass([
|
|
5416
|
-
(0,
|
|
5522
|
+
(0, import_typeorm34.Column)({
|
|
5417
5523
|
name: "step_completed",
|
|
5418
5524
|
type: "enum",
|
|
5419
5525
|
enum: Step,
|
|
@@ -5421,7 +5527,7 @@ __decorateClass([
|
|
|
5421
5527
|
})
|
|
5422
5528
|
], Job.prototype, "stepCompleted", 2);
|
|
5423
5529
|
__decorateClass([
|
|
5424
|
-
(0,
|
|
5530
|
+
(0, import_typeorm34.Column)({
|
|
5425
5531
|
name: "status",
|
|
5426
5532
|
type: "enum",
|
|
5427
5533
|
enum: JobStatusEnum,
|
|
@@ -5429,40 +5535,40 @@ __decorateClass([
|
|
|
5429
5535
|
})
|
|
5430
5536
|
], Job.prototype, "status", 2);
|
|
5431
5537
|
__decorateClass([
|
|
5432
|
-
(0,
|
|
5538
|
+
(0, import_typeorm34.Column)({ name: "viewed_count", type: "integer", default: 0 })
|
|
5433
5539
|
], Job.prototype, "viewedCount", 2);
|
|
5434
5540
|
__decorateClass([
|
|
5435
|
-
(0,
|
|
5541
|
+
(0, import_typeorm34.Column)({ name: "application_count", type: "integer", default: 0 })
|
|
5436
5542
|
], Job.prototype, "applicationCount", 2);
|
|
5437
5543
|
__decorateClass([
|
|
5438
|
-
(0,
|
|
5544
|
+
(0, import_typeorm34.Column)({ name: "is_contract_signed", type: "boolean", default: false })
|
|
5439
5545
|
], Job.prototype, "isContractSigned", 2);
|
|
5440
5546
|
__decorateClass([
|
|
5441
|
-
(0,
|
|
5547
|
+
(0, import_typeorm34.Column)({ name: "is_interview_created", type: "boolean", default: false })
|
|
5442
5548
|
], Job.prototype, "isInterviewCreated", 2);
|
|
5443
5549
|
__decorateClass([
|
|
5444
|
-
(0,
|
|
5550
|
+
(0, import_typeorm34.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
5445
5551
|
], Job.prototype, "interviewInvites", 2);
|
|
5446
5552
|
__decorateClass([
|
|
5447
|
-
(0,
|
|
5553
|
+
(0, import_typeorm34.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
5448
5554
|
], Job.prototype, "jobSkills", 2);
|
|
5449
5555
|
__decorateClass([
|
|
5450
|
-
(0,
|
|
5556
|
+
(0, import_typeorm34.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
5451
5557
|
cascade: true
|
|
5452
5558
|
})
|
|
5453
5559
|
], Job.prototype, "jobApplications", 2);
|
|
5454
5560
|
__decorateClass([
|
|
5455
|
-
(0,
|
|
5561
|
+
(0, import_typeorm34.OneToMany)(() => Interview, (interview) => interview.job, {
|
|
5456
5562
|
cascade: true
|
|
5457
5563
|
})
|
|
5458
5564
|
], Job.prototype, "interviews", 2);
|
|
5459
5565
|
__decorateClass([
|
|
5460
|
-
(0,
|
|
5566
|
+
(0, import_typeorm34.OneToMany)(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
|
|
5461
5567
|
cascade: true
|
|
5462
5568
|
})
|
|
5463
5569
|
], Job.prototype, "f2fInterviews", 2);
|
|
5464
5570
|
__decorateClass([
|
|
5465
|
-
(0,
|
|
5571
|
+
(0, import_typeorm34.OneToMany)(
|
|
5466
5572
|
() => JobRecommendation,
|
|
5467
5573
|
(jobRecommendation) => jobRecommendation.job,
|
|
5468
5574
|
{
|
|
@@ -5471,54 +5577,59 @@ __decorateClass([
|
|
|
5471
5577
|
)
|
|
5472
5578
|
], Job.prototype, "recommendations", 2);
|
|
5473
5579
|
__decorateClass([
|
|
5474
|
-
(0,
|
|
5580
|
+
(0, import_typeorm34.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.job, {
|
|
5581
|
+
cascade: true
|
|
5582
|
+
})
|
|
5583
|
+
], Job.prototype, "contractSummaries", 2);
|
|
5584
|
+
__decorateClass([
|
|
5585
|
+
(0, import_typeorm34.OneToMany)(() => Contract, (contract) => contract.job, {
|
|
5475
5586
|
cascade: true
|
|
5476
5587
|
})
|
|
5477
5588
|
], Job.prototype, "contracts", 2);
|
|
5478
5589
|
__decorateClass([
|
|
5479
|
-
(0,
|
|
5590
|
+
(0, import_typeorm34.OneToMany)(() => Hiring, (hiring) => hiring.job, {
|
|
5480
5591
|
cascade: true
|
|
5481
5592
|
})
|
|
5482
5593
|
], Job.prototype, "hirings", 2);
|
|
5483
5594
|
__decorateClass([
|
|
5484
|
-
(0,
|
|
5595
|
+
(0, import_typeorm34.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
|
|
5485
5596
|
cascade: true
|
|
5486
5597
|
})
|
|
5487
5598
|
], Job.prototype, "escrowWallets", 2);
|
|
5488
5599
|
__decorateClass([
|
|
5489
|
-
(0,
|
|
5600
|
+
(0, import_typeorm34.OneToMany)(() => Timesheet, (timesheet) => timesheet.job, {
|
|
5490
5601
|
cascade: true
|
|
5491
5602
|
})
|
|
5492
5603
|
], Job.prototype, "timesheets", 2);
|
|
5493
5604
|
__decorateClass([
|
|
5494
|
-
(0,
|
|
5605
|
+
(0, import_typeorm34.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
|
|
5495
5606
|
cascade: true
|
|
5496
5607
|
})
|
|
5497
5608
|
], Job.prototype, "timesheetLine", 2);
|
|
5498
5609
|
__decorateClass([
|
|
5499
|
-
(0,
|
|
5610
|
+
(0, import_typeorm34.OneToMany)(() => Invoice, (invoice) => invoice.job, {
|
|
5500
5611
|
cascade: true
|
|
5501
5612
|
})
|
|
5502
5613
|
], Job.prototype, "invoice", 2);
|
|
5503
5614
|
__decorateClass([
|
|
5504
|
-
(0,
|
|
5615
|
+
(0, import_typeorm34.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
|
|
5505
5616
|
], Job.prototype, "clientCandidatePreferences", 2);
|
|
5506
5617
|
__decorateClass([
|
|
5507
|
-
(0,
|
|
5618
|
+
(0, import_typeorm34.OneToMany)(() => JobLocation, (jobLocation) => jobLocation.job, {
|
|
5508
5619
|
cascade: true
|
|
5509
5620
|
})
|
|
5510
5621
|
], Job.prototype, "jobLocations", 2);
|
|
5511
5622
|
__decorateClass([
|
|
5512
|
-
(0,
|
|
5623
|
+
(0, import_typeorm34.OneToMany)(() => Rating, (rating) => rating.job, {
|
|
5513
5624
|
cascade: true
|
|
5514
5625
|
})
|
|
5515
5626
|
], Job.prototype, "ratings", 2);
|
|
5516
5627
|
Job = __decorateClass([
|
|
5517
|
-
(0,
|
|
5628
|
+
(0, import_typeorm34.Entity)("jobs")
|
|
5518
5629
|
], Job);
|
|
5519
5630
|
|
|
5520
5631
|
// src/entities/bank-details.entity.ts
|
|
5521
|
-
var
|
|
5632
|
+
var import_typeorm35 = require("typeorm");
|
|
5522
5633
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
5523
5634
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
5524
5635
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -5533,51 +5644,51 @@ var BankDetail = class extends BaseEntity {
|
|
|
5533
5644
|
};
|
|
5534
5645
|
// individual index to find bank details by user
|
|
5535
5646
|
__decorateClass([
|
|
5536
|
-
(0,
|
|
5537
|
-
(0,
|
|
5647
|
+
(0, import_typeorm35.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5648
|
+
(0, import_typeorm35.Index)()
|
|
5538
5649
|
], BankDetail.prototype, "userId", 2);
|
|
5539
5650
|
__decorateClass([
|
|
5540
|
-
(0,
|
|
5541
|
-
(0,
|
|
5651
|
+
(0, import_typeorm35.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
5652
|
+
(0, import_typeorm35.JoinColumn)({ name: "user_id" })
|
|
5542
5653
|
], BankDetail.prototype, "user", 2);
|
|
5543
5654
|
__decorateClass([
|
|
5544
|
-
(0,
|
|
5655
|
+
(0, import_typeorm35.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5545
5656
|
], BankDetail.prototype, "name", 2);
|
|
5546
5657
|
__decorateClass([
|
|
5547
|
-
(0,
|
|
5658
|
+
(0, import_typeorm35.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5548
5659
|
], BankDetail.prototype, "mobileCode", 2);
|
|
5549
5660
|
__decorateClass([
|
|
5550
|
-
(0,
|
|
5661
|
+
(0, import_typeorm35.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
5551
5662
|
], BankDetail.prototype, "mobile", 2);
|
|
5552
5663
|
__decorateClass([
|
|
5553
|
-
(0,
|
|
5664
|
+
(0, import_typeorm35.Column)({ name: "email", type: "varchar" })
|
|
5554
5665
|
], BankDetail.prototype, "email", 2);
|
|
5555
5666
|
__decorateClass([
|
|
5556
|
-
(0,
|
|
5667
|
+
(0, import_typeorm35.Column)({ name: "address", type: "varchar", nullable: true })
|
|
5557
5668
|
], BankDetail.prototype, "address", 2);
|
|
5558
5669
|
__decorateClass([
|
|
5559
|
-
(0,
|
|
5670
|
+
(0, import_typeorm35.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
5560
5671
|
], BankDetail.prototype, "accountNumber", 2);
|
|
5561
5672
|
__decorateClass([
|
|
5562
|
-
(0,
|
|
5673
|
+
(0, import_typeorm35.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
5563
5674
|
], BankDetail.prototype, "bankName", 2);
|
|
5564
5675
|
__decorateClass([
|
|
5565
|
-
(0,
|
|
5676
|
+
(0, import_typeorm35.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
5566
5677
|
], BankDetail.prototype, "ifscCode", 2);
|
|
5567
5678
|
__decorateClass([
|
|
5568
|
-
(0,
|
|
5679
|
+
(0, import_typeorm35.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
5569
5680
|
], BankDetail.prototype, "branchName", 2);
|
|
5570
5681
|
__decorateClass([
|
|
5571
|
-
(0,
|
|
5682
|
+
(0, import_typeorm35.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
5572
5683
|
], BankDetail.prototype, "routingNo", 2);
|
|
5573
5684
|
__decorateClass([
|
|
5574
|
-
(0,
|
|
5685
|
+
(0, import_typeorm35.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
5575
5686
|
], BankDetail.prototype, "abaNumber", 2);
|
|
5576
5687
|
__decorateClass([
|
|
5577
|
-
(0,
|
|
5688
|
+
(0, import_typeorm35.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
5578
5689
|
], BankDetail.prototype, "iban", 2);
|
|
5579
5690
|
__decorateClass([
|
|
5580
|
-
(0,
|
|
5691
|
+
(0, import_typeorm35.Column)({
|
|
5581
5692
|
name: "account_type",
|
|
5582
5693
|
type: "enum",
|
|
5583
5694
|
enum: BankAccountTypeEnum,
|
|
@@ -5585,7 +5696,7 @@ __decorateClass([
|
|
|
5585
5696
|
})
|
|
5586
5697
|
], BankDetail.prototype, "accountType", 2);
|
|
5587
5698
|
__decorateClass([
|
|
5588
|
-
(0,
|
|
5699
|
+
(0, import_typeorm35.Column)({
|
|
5589
5700
|
name: "account_scope",
|
|
5590
5701
|
type: "enum",
|
|
5591
5702
|
enum: BankAccountScopeEnum,
|
|
@@ -5593,150 +5704,150 @@ __decorateClass([
|
|
|
5593
5704
|
})
|
|
5594
5705
|
], BankDetail.prototype, "accountScope", 2);
|
|
5595
5706
|
BankDetail = __decorateClass([
|
|
5596
|
-
(0,
|
|
5707
|
+
(0, import_typeorm35.Entity)("bank_details")
|
|
5597
5708
|
], BankDetail);
|
|
5598
5709
|
|
|
5599
5710
|
// src/entities/system-preference.entity.ts
|
|
5600
|
-
var
|
|
5711
|
+
var import_typeorm36 = require("typeorm");
|
|
5601
5712
|
var SystemPreference = class extends BaseEntity {
|
|
5602
5713
|
};
|
|
5603
5714
|
// individual index to find system preference by user
|
|
5604
5715
|
__decorateClass([
|
|
5605
|
-
(0,
|
|
5606
|
-
(0,
|
|
5716
|
+
(0, import_typeorm36.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5717
|
+
(0, import_typeorm36.Index)()
|
|
5607
5718
|
], SystemPreference.prototype, "userId", 2);
|
|
5608
5719
|
__decorateClass([
|
|
5609
|
-
(0,
|
|
5610
|
-
(0,
|
|
5720
|
+
(0, import_typeorm36.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
5721
|
+
(0, import_typeorm36.JoinColumn)({ name: "user_id" })
|
|
5611
5722
|
], SystemPreference.prototype, "user", 2);
|
|
5612
5723
|
__decorateClass([
|
|
5613
|
-
(0,
|
|
5724
|
+
(0, import_typeorm36.Column)({ name: "key", type: "varchar", nullable: false })
|
|
5614
5725
|
], SystemPreference.prototype, "key", 2);
|
|
5615
5726
|
__decorateClass([
|
|
5616
|
-
(0,
|
|
5727
|
+
(0, import_typeorm36.Column)({ name: "value", type: "boolean", default: false })
|
|
5617
5728
|
], SystemPreference.prototype, "value", 2);
|
|
5618
5729
|
SystemPreference = __decorateClass([
|
|
5619
|
-
(0,
|
|
5730
|
+
(0, import_typeorm36.Entity)("system_preferences")
|
|
5620
5731
|
], SystemPreference);
|
|
5621
5732
|
|
|
5622
5733
|
// src/entities/freelancer-experience.entity.ts
|
|
5623
|
-
var
|
|
5734
|
+
var import_typeorm37 = require("typeorm");
|
|
5624
5735
|
var FreelancerExperience = class extends BaseEntity {
|
|
5625
5736
|
};
|
|
5626
5737
|
// individual index to find experence by user
|
|
5627
5738
|
__decorateClass([
|
|
5628
|
-
(0,
|
|
5629
|
-
(0,
|
|
5739
|
+
(0, import_typeorm37.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5740
|
+
(0, import_typeorm37.Index)()
|
|
5630
5741
|
], FreelancerExperience.prototype, "userId", 2);
|
|
5631
5742
|
__decorateClass([
|
|
5632
|
-
(0,
|
|
5633
|
-
(0,
|
|
5743
|
+
(0, import_typeorm37.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
5744
|
+
(0, import_typeorm37.JoinColumn)({ name: "user_id" })
|
|
5634
5745
|
], FreelancerExperience.prototype, "user", 2);
|
|
5635
5746
|
__decorateClass([
|
|
5636
|
-
(0,
|
|
5747
|
+
(0, import_typeorm37.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
5637
5748
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
5638
5749
|
__decorateClass([
|
|
5639
|
-
(0,
|
|
5750
|
+
(0, import_typeorm37.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
5640
5751
|
], FreelancerExperience.prototype, "designation", 2);
|
|
5641
5752
|
__decorateClass([
|
|
5642
|
-
(0,
|
|
5753
|
+
(0, import_typeorm37.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
5643
5754
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
5644
5755
|
__decorateClass([
|
|
5645
|
-
(0,
|
|
5756
|
+
(0, import_typeorm37.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5646
5757
|
], FreelancerExperience.prototype, "description", 2);
|
|
5647
5758
|
FreelancerExperience = __decorateClass([
|
|
5648
|
-
(0,
|
|
5759
|
+
(0, import_typeorm37.Entity)("freelancer_experiences")
|
|
5649
5760
|
], FreelancerExperience);
|
|
5650
5761
|
|
|
5651
5762
|
// src/entities/freelancer-education.entity.ts
|
|
5652
|
-
var
|
|
5763
|
+
var import_typeorm38 = require("typeorm");
|
|
5653
5764
|
var FreelancerEducation = class extends BaseEntity {
|
|
5654
5765
|
};
|
|
5655
5766
|
// individual index to find education by user
|
|
5656
5767
|
__decorateClass([
|
|
5657
|
-
(0,
|
|
5658
|
-
(0,
|
|
5768
|
+
(0, import_typeorm38.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5769
|
+
(0, import_typeorm38.Index)()
|
|
5659
5770
|
], FreelancerEducation.prototype, "userId", 2);
|
|
5660
5771
|
__decorateClass([
|
|
5661
|
-
(0,
|
|
5662
|
-
(0,
|
|
5772
|
+
(0, import_typeorm38.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
5773
|
+
(0, import_typeorm38.JoinColumn)({ name: "user_id" })
|
|
5663
5774
|
], FreelancerEducation.prototype, "user", 2);
|
|
5664
5775
|
__decorateClass([
|
|
5665
|
-
(0,
|
|
5776
|
+
(0, import_typeorm38.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
5666
5777
|
], FreelancerEducation.prototype, "degree", 2);
|
|
5667
5778
|
__decorateClass([
|
|
5668
|
-
(0,
|
|
5779
|
+
(0, import_typeorm38.Column)({ name: "university", type: "varchar", nullable: true })
|
|
5669
5780
|
], FreelancerEducation.prototype, "university", 2);
|
|
5670
5781
|
__decorateClass([
|
|
5671
|
-
(0,
|
|
5782
|
+
(0, import_typeorm38.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
5672
5783
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
5673
5784
|
FreelancerEducation = __decorateClass([
|
|
5674
|
-
(0,
|
|
5785
|
+
(0, import_typeorm38.Entity)("freelancer_educations")
|
|
5675
5786
|
], FreelancerEducation);
|
|
5676
5787
|
|
|
5677
5788
|
// src/entities/freelancer-project.entity.ts
|
|
5678
|
-
var
|
|
5789
|
+
var import_typeorm39 = require("typeorm");
|
|
5679
5790
|
var FreelancerProject = class extends BaseEntity {
|
|
5680
5791
|
};
|
|
5681
5792
|
// individual index to find project by user
|
|
5682
5793
|
__decorateClass([
|
|
5683
|
-
(0,
|
|
5684
|
-
(0,
|
|
5794
|
+
(0, import_typeorm39.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5795
|
+
(0, import_typeorm39.Index)()
|
|
5685
5796
|
], FreelancerProject.prototype, "userId", 2);
|
|
5686
5797
|
__decorateClass([
|
|
5687
|
-
(0,
|
|
5688
|
-
(0,
|
|
5798
|
+
(0, import_typeorm39.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
5799
|
+
(0, import_typeorm39.JoinColumn)({ name: "user_id" })
|
|
5689
5800
|
], FreelancerProject.prototype, "user", 2);
|
|
5690
5801
|
__decorateClass([
|
|
5691
|
-
(0,
|
|
5802
|
+
(0, import_typeorm39.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
5692
5803
|
], FreelancerProject.prototype, "projectName", 2);
|
|
5693
5804
|
__decorateClass([
|
|
5694
|
-
(0,
|
|
5805
|
+
(0, import_typeorm39.Column)({ name: "start_date", type: "date", nullable: true })
|
|
5695
5806
|
], FreelancerProject.prototype, "startDate", 2);
|
|
5696
5807
|
__decorateClass([
|
|
5697
|
-
(0,
|
|
5808
|
+
(0, import_typeorm39.Column)({ name: "end_date", type: "date", nullable: true })
|
|
5698
5809
|
], FreelancerProject.prototype, "endDate", 2);
|
|
5699
5810
|
__decorateClass([
|
|
5700
|
-
(0,
|
|
5811
|
+
(0, import_typeorm39.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
5701
5812
|
], FreelancerProject.prototype, "clientName", 2);
|
|
5702
5813
|
__decorateClass([
|
|
5703
|
-
(0,
|
|
5814
|
+
(0, import_typeorm39.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
5704
5815
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
5705
5816
|
__decorateClass([
|
|
5706
|
-
(0,
|
|
5817
|
+
(0, import_typeorm39.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5707
5818
|
], FreelancerProject.prototype, "description", 2);
|
|
5708
5819
|
FreelancerProject = __decorateClass([
|
|
5709
|
-
(0,
|
|
5820
|
+
(0, import_typeorm39.Entity)("freelancer_projects")
|
|
5710
5821
|
], FreelancerProject);
|
|
5711
5822
|
|
|
5712
5823
|
// src/entities/freelancer-casestudy.entity.ts
|
|
5713
|
-
var
|
|
5824
|
+
var import_typeorm40 = require("typeorm");
|
|
5714
5825
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
5715
5826
|
};
|
|
5716
5827
|
// individual index to find case study by user
|
|
5717
5828
|
__decorateClass([
|
|
5718
|
-
(0,
|
|
5719
|
-
(0,
|
|
5829
|
+
(0, import_typeorm40.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5830
|
+
(0, import_typeorm40.Index)()
|
|
5720
5831
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
5721
5832
|
__decorateClass([
|
|
5722
|
-
(0,
|
|
5723
|
-
(0,
|
|
5833
|
+
(0, import_typeorm40.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
5834
|
+
(0, import_typeorm40.JoinColumn)({ name: "user_id" })
|
|
5724
5835
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
5725
5836
|
__decorateClass([
|
|
5726
|
-
(0,
|
|
5837
|
+
(0, import_typeorm40.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
5727
5838
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
5728
5839
|
__decorateClass([
|
|
5729
|
-
(0,
|
|
5840
|
+
(0, import_typeorm40.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
5730
5841
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
5731
5842
|
__decorateClass([
|
|
5732
|
-
(0,
|
|
5843
|
+
(0, import_typeorm40.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5733
5844
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
5734
5845
|
FreelancerCaseStudy = __decorateClass([
|
|
5735
|
-
(0,
|
|
5846
|
+
(0, import_typeorm40.Entity)("freelancer_case_studies")
|
|
5736
5847
|
], FreelancerCaseStudy);
|
|
5737
5848
|
|
|
5738
5849
|
// src/entities/freelancer-skill.entity.ts
|
|
5739
|
-
var
|
|
5850
|
+
var import_typeorm41 = require("typeorm");
|
|
5740
5851
|
var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
|
|
5741
5852
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
|
|
5742
5853
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["MUST_HAVE"] = 1] = "MUST_HAVE";
|
|
@@ -5746,18 +5857,18 @@ var FreelancerSkill = class extends BaseEntity {
|
|
|
5746
5857
|
};
|
|
5747
5858
|
// individual index to find core skills by user
|
|
5748
5859
|
__decorateClass([
|
|
5749
|
-
(0,
|
|
5750
|
-
(0,
|
|
5860
|
+
(0, import_typeorm41.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5861
|
+
(0, import_typeorm41.Index)()
|
|
5751
5862
|
], FreelancerSkill.prototype, "userId", 2);
|
|
5752
5863
|
__decorateClass([
|
|
5753
|
-
(0,
|
|
5754
|
-
(0,
|
|
5864
|
+
(0, import_typeorm41.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
5865
|
+
(0, import_typeorm41.JoinColumn)({ name: "user_id" })
|
|
5755
5866
|
], FreelancerSkill.prototype, "user", 2);
|
|
5756
5867
|
__decorateClass([
|
|
5757
|
-
(0,
|
|
5868
|
+
(0, import_typeorm41.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
5758
5869
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
5759
5870
|
__decorateClass([
|
|
5760
|
-
(0,
|
|
5871
|
+
(0, import_typeorm41.Column)({
|
|
5761
5872
|
name: "skill_category",
|
|
5762
5873
|
type: "smallint",
|
|
5763
5874
|
default: 1,
|
|
@@ -5765,51 +5876,51 @@ __decorateClass([
|
|
|
5765
5876
|
})
|
|
5766
5877
|
], FreelancerSkill.prototype, "skillCategory", 2);
|
|
5767
5878
|
FreelancerSkill = __decorateClass([
|
|
5768
|
-
(0,
|
|
5879
|
+
(0, import_typeorm41.Entity)("freelancer_skills")
|
|
5769
5880
|
], FreelancerSkill);
|
|
5770
5881
|
|
|
5771
5882
|
// src/entities/freelancer-tool.entity.ts
|
|
5772
|
-
var
|
|
5883
|
+
var import_typeorm42 = require("typeorm");
|
|
5773
5884
|
var FreelancerTool = class extends BaseEntity {
|
|
5774
5885
|
};
|
|
5775
5886
|
// individual index to find tool by user
|
|
5776
5887
|
__decorateClass([
|
|
5777
|
-
(0,
|
|
5778
|
-
(0,
|
|
5888
|
+
(0, import_typeorm42.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5889
|
+
(0, import_typeorm42.Index)()
|
|
5779
5890
|
], FreelancerTool.prototype, "userId", 2);
|
|
5780
5891
|
__decorateClass([
|
|
5781
|
-
(0,
|
|
5782
|
-
(0,
|
|
5892
|
+
(0, import_typeorm42.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
5893
|
+
(0, import_typeorm42.JoinColumn)({ name: "user_id" })
|
|
5783
5894
|
], FreelancerTool.prototype, "user", 2);
|
|
5784
5895
|
__decorateClass([
|
|
5785
|
-
(0,
|
|
5896
|
+
(0, import_typeorm42.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
5786
5897
|
], FreelancerTool.prototype, "toolName", 2);
|
|
5787
5898
|
FreelancerTool = __decorateClass([
|
|
5788
|
-
(0,
|
|
5899
|
+
(0, import_typeorm42.Entity)("freelancer_tools")
|
|
5789
5900
|
], FreelancerTool);
|
|
5790
5901
|
|
|
5791
5902
|
// src/entities/freelancer-framework.entity.ts
|
|
5792
|
-
var
|
|
5903
|
+
var import_typeorm43 = require("typeorm");
|
|
5793
5904
|
var FreelancerFramework = class extends BaseEntity {
|
|
5794
5905
|
};
|
|
5795
5906
|
// individual index to find framework by user
|
|
5796
5907
|
__decorateClass([
|
|
5797
|
-
(0,
|
|
5798
|
-
(0,
|
|
5908
|
+
(0, import_typeorm43.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5909
|
+
(0, import_typeorm43.Index)()
|
|
5799
5910
|
], FreelancerFramework.prototype, "userId", 2);
|
|
5800
5911
|
__decorateClass([
|
|
5801
|
-
(0,
|
|
5802
|
-
(0,
|
|
5912
|
+
(0, import_typeorm43.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
5913
|
+
(0, import_typeorm43.JoinColumn)({ name: "user_id" })
|
|
5803
5914
|
], FreelancerFramework.prototype, "user", 2);
|
|
5804
5915
|
__decorateClass([
|
|
5805
|
-
(0,
|
|
5916
|
+
(0, import_typeorm43.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
5806
5917
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
5807
5918
|
FreelancerFramework = __decorateClass([
|
|
5808
|
-
(0,
|
|
5919
|
+
(0, import_typeorm43.Entity)("freelancer_frameworks")
|
|
5809
5920
|
], FreelancerFramework);
|
|
5810
5921
|
|
|
5811
5922
|
// src/entities/freelancer-assessment.entity.ts
|
|
5812
|
-
var
|
|
5923
|
+
var import_typeorm44 = require("typeorm");
|
|
5813
5924
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
5814
5925
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
5815
5926
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -5825,30 +5936,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
5825
5936
|
var FreelancerAssessment = class extends BaseEntity {
|
|
5826
5937
|
};
|
|
5827
5938
|
__decorateClass([
|
|
5828
|
-
(0,
|
|
5829
|
-
(0,
|
|
5939
|
+
(0, import_typeorm44.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5940
|
+
(0, import_typeorm44.Index)()
|
|
5830
5941
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
5831
5942
|
__decorateClass([
|
|
5832
|
-
(0,
|
|
5833
|
-
(0,
|
|
5943
|
+
(0, import_typeorm44.ManyToOne)(() => User, (user) => user.assessments),
|
|
5944
|
+
(0, import_typeorm44.JoinColumn)({ name: "user_id" })
|
|
5834
5945
|
], FreelancerAssessment.prototype, "user", 2);
|
|
5835
5946
|
__decorateClass([
|
|
5836
|
-
(0,
|
|
5947
|
+
(0, import_typeorm44.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
5837
5948
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
5838
5949
|
__decorateClass([
|
|
5839
|
-
(0,
|
|
5950
|
+
(0, import_typeorm44.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
5840
5951
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
5841
5952
|
__decorateClass([
|
|
5842
|
-
(0,
|
|
5953
|
+
(0, import_typeorm44.Column)({ name: "recording_link", type: "text", nullable: true })
|
|
5843
5954
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
5844
5955
|
__decorateClass([
|
|
5845
|
-
(0,
|
|
5956
|
+
(0, import_typeorm44.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
5846
5957
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
5847
5958
|
__decorateClass([
|
|
5848
|
-
(0,
|
|
5959
|
+
(0, import_typeorm44.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
5849
5960
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
5850
5961
|
__decorateClass([
|
|
5851
|
-
(0,
|
|
5962
|
+
(0, import_typeorm44.Column)({
|
|
5852
5963
|
name: "status",
|
|
5853
5964
|
type: "enum",
|
|
5854
5965
|
enum: AssessmentStatusEnum,
|
|
@@ -5856,14 +5967,14 @@ __decorateClass([
|
|
|
5856
5967
|
})
|
|
5857
5968
|
], FreelancerAssessment.prototype, "status", 2);
|
|
5858
5969
|
__decorateClass([
|
|
5859
|
-
(0,
|
|
5970
|
+
(0, import_typeorm44.Column)({ name: "task_id", type: "varchar", nullable: true })
|
|
5860
5971
|
], FreelancerAssessment.prototype, "taskId", 2);
|
|
5861
5972
|
FreelancerAssessment = __decorateClass([
|
|
5862
|
-
(0,
|
|
5973
|
+
(0, import_typeorm44.Entity)("freelancer_assessments")
|
|
5863
5974
|
], FreelancerAssessment);
|
|
5864
5975
|
|
|
5865
5976
|
// src/entities/freelancer-declaration.entity.ts
|
|
5866
|
-
var
|
|
5977
|
+
var import_typeorm45 = require("typeorm");
|
|
5867
5978
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
5868
5979
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
5869
5980
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -5875,15 +5986,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
5875
5986
|
};
|
|
5876
5987
|
// individual index to find declaration by user
|
|
5877
5988
|
__decorateClass([
|
|
5878
|
-
(0,
|
|
5879
|
-
(0,
|
|
5989
|
+
(0, import_typeorm45.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5990
|
+
(0, import_typeorm45.Index)()
|
|
5880
5991
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
5881
5992
|
__decorateClass([
|
|
5882
|
-
(0,
|
|
5883
|
-
(0,
|
|
5993
|
+
(0, import_typeorm45.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
5994
|
+
(0, import_typeorm45.JoinColumn)({ name: "user_id" })
|
|
5884
5995
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
5885
5996
|
__decorateClass([
|
|
5886
|
-
(0,
|
|
5997
|
+
(0, import_typeorm45.Column)({
|
|
5887
5998
|
name: "document_type",
|
|
5888
5999
|
type: "enum",
|
|
5889
6000
|
enum: DocumentType,
|
|
@@ -5891,144 +6002,144 @@ __decorateClass([
|
|
|
5891
6002
|
})
|
|
5892
6003
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
5893
6004
|
__decorateClass([
|
|
5894
|
-
(0,
|
|
6005
|
+
(0, import_typeorm45.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
5895
6006
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
5896
6007
|
__decorateClass([
|
|
5897
|
-
(0,
|
|
6008
|
+
(0, import_typeorm45.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
5898
6009
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
5899
6010
|
__decorateClass([
|
|
5900
|
-
(0,
|
|
6011
|
+
(0, import_typeorm45.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
5901
6012
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
5902
6013
|
__decorateClass([
|
|
5903
|
-
(0,
|
|
6014
|
+
(0, import_typeorm45.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
5904
6015
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
5905
6016
|
FreelancerDeclaration = __decorateClass([
|
|
5906
|
-
(0,
|
|
6017
|
+
(0, import_typeorm45.Entity)("freelancer_declaration")
|
|
5907
6018
|
], FreelancerDeclaration);
|
|
5908
6019
|
|
|
5909
6020
|
// src/entities/company-members-roles.entity.ts
|
|
5910
|
-
var
|
|
6021
|
+
var import_typeorm49 = require("typeorm");
|
|
5911
6022
|
|
|
5912
6023
|
// src/entities/company-role.entity.ts
|
|
5913
|
-
var
|
|
6024
|
+
var import_typeorm48 = require("typeorm");
|
|
5914
6025
|
|
|
5915
6026
|
// src/entities/company-role-permission.entity.ts
|
|
5916
|
-
var
|
|
6027
|
+
var import_typeorm47 = require("typeorm");
|
|
5917
6028
|
|
|
5918
6029
|
// src/entities/permission.entity.ts
|
|
5919
|
-
var
|
|
6030
|
+
var import_typeorm46 = require("typeorm");
|
|
5920
6031
|
var Permission = class extends BaseEntity {
|
|
5921
6032
|
};
|
|
5922
6033
|
__decorateClass([
|
|
5923
|
-
(0,
|
|
6034
|
+
(0, import_typeorm46.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5924
6035
|
], Permission.prototype, "name", 2);
|
|
5925
6036
|
__decorateClass([
|
|
5926
|
-
(0,
|
|
5927
|
-
(0,
|
|
6037
|
+
(0, import_typeorm46.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
6038
|
+
(0, import_typeorm46.Index)()
|
|
5928
6039
|
], Permission.prototype, "slug", 2);
|
|
5929
6040
|
__decorateClass([
|
|
5930
|
-
(0,
|
|
6041
|
+
(0, import_typeorm46.Column)({ name: "description", type: "text", nullable: true })
|
|
5931
6042
|
], Permission.prototype, "description", 2);
|
|
5932
6043
|
__decorateClass([
|
|
5933
|
-
(0,
|
|
6044
|
+
(0, import_typeorm46.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5934
6045
|
], Permission.prototype, "isActive", 2);
|
|
5935
6046
|
Permission = __decorateClass([
|
|
5936
|
-
(0,
|
|
6047
|
+
(0, import_typeorm46.Entity)("permissions")
|
|
5937
6048
|
], Permission);
|
|
5938
6049
|
|
|
5939
6050
|
// src/entities/company-role-permission.entity.ts
|
|
5940
6051
|
var CompanyRolePermission = class extends BaseEntity {
|
|
5941
6052
|
};
|
|
5942
6053
|
__decorateClass([
|
|
5943
|
-
(0,
|
|
5944
|
-
(0,
|
|
6054
|
+
(0, import_typeorm47.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
6055
|
+
(0, import_typeorm47.Index)()
|
|
5945
6056
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
5946
6057
|
__decorateClass([
|
|
5947
|
-
(0,
|
|
6058
|
+
(0, import_typeorm47.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
5948
6059
|
onDelete: "CASCADE"
|
|
5949
6060
|
}),
|
|
5950
|
-
(0,
|
|
6061
|
+
(0, import_typeorm47.JoinColumn)({ name: "company_role_id" })
|
|
5951
6062
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
5952
6063
|
__decorateClass([
|
|
5953
|
-
(0,
|
|
5954
|
-
(0,
|
|
6064
|
+
(0, import_typeorm47.Column)({ name: "permission_id", type: "integer" }),
|
|
6065
|
+
(0, import_typeorm47.Index)()
|
|
5955
6066
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
5956
6067
|
__decorateClass([
|
|
5957
|
-
(0,
|
|
5958
|
-
(0,
|
|
6068
|
+
(0, import_typeorm47.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
6069
|
+
(0, import_typeorm47.JoinColumn)({ name: "permission_id" })
|
|
5959
6070
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
5960
6071
|
__decorateClass([
|
|
5961
|
-
(0,
|
|
6072
|
+
(0, import_typeorm47.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
5962
6073
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
5963
6074
|
CompanyRolePermission = __decorateClass([
|
|
5964
|
-
(0,
|
|
6075
|
+
(0, import_typeorm47.Entity)("company_role_permissions")
|
|
5965
6076
|
], CompanyRolePermission);
|
|
5966
6077
|
|
|
5967
6078
|
// src/entities/company-role.entity.ts
|
|
5968
6079
|
var CompanyRole = class extends BaseEntity {
|
|
5969
6080
|
};
|
|
5970
6081
|
__decorateClass([
|
|
5971
|
-
(0,
|
|
5972
|
-
(0,
|
|
6082
|
+
(0, import_typeorm48.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
6083
|
+
(0, import_typeorm48.Index)()
|
|
5973
6084
|
], CompanyRole.prototype, "userId", 2);
|
|
5974
6085
|
__decorateClass([
|
|
5975
|
-
(0,
|
|
5976
|
-
(0,
|
|
6086
|
+
(0, import_typeorm48.ManyToOne)(() => User, (user) => user.otps),
|
|
6087
|
+
(0, import_typeorm48.JoinColumn)({ name: "user_id" })
|
|
5977
6088
|
], CompanyRole.prototype, "user", 2);
|
|
5978
6089
|
__decorateClass([
|
|
5979
|
-
(0,
|
|
6090
|
+
(0, import_typeorm48.Column)({ name: "name", type: "varchar" })
|
|
5980
6091
|
], CompanyRole.prototype, "name", 2);
|
|
5981
6092
|
__decorateClass([
|
|
5982
|
-
(0,
|
|
5983
|
-
(0,
|
|
6093
|
+
(0, import_typeorm48.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
6094
|
+
(0, import_typeorm48.Index)()
|
|
5984
6095
|
], CompanyRole.prototype, "slug", 2);
|
|
5985
6096
|
__decorateClass([
|
|
5986
|
-
(0,
|
|
6097
|
+
(0, import_typeorm48.Column)({ name: "description", type: "text", nullable: true })
|
|
5987
6098
|
], CompanyRole.prototype, "description", 2);
|
|
5988
6099
|
__decorateClass([
|
|
5989
|
-
(0,
|
|
6100
|
+
(0, import_typeorm48.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5990
6101
|
], CompanyRole.prototype, "isActive", 2);
|
|
5991
6102
|
__decorateClass([
|
|
5992
|
-
(0,
|
|
6103
|
+
(0, import_typeorm48.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
5993
6104
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
5994
6105
|
CompanyRole = __decorateClass([
|
|
5995
|
-
(0,
|
|
6106
|
+
(0, import_typeorm48.Entity)("company_roles")
|
|
5996
6107
|
], CompanyRole);
|
|
5997
6108
|
|
|
5998
6109
|
// src/entities/company-members-roles.entity.ts
|
|
5999
6110
|
var CompanyMemberRole = class extends BaseEntity {
|
|
6000
6111
|
};
|
|
6001
6112
|
__decorateClass([
|
|
6002
|
-
(0,
|
|
6003
|
-
(0,
|
|
6113
|
+
(0, import_typeorm49.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
6114
|
+
(0, import_typeorm49.Index)()
|
|
6004
6115
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
6005
6116
|
__decorateClass([
|
|
6006
|
-
(0,
|
|
6007
|
-
(0,
|
|
6117
|
+
(0, import_typeorm49.ManyToOne)(() => User),
|
|
6118
|
+
(0, import_typeorm49.JoinColumn)({ name: "user_id" })
|
|
6008
6119
|
], CompanyMemberRole.prototype, "user", 2);
|
|
6009
6120
|
__decorateClass([
|
|
6010
|
-
(0,
|
|
6011
|
-
(0,
|
|
6121
|
+
(0, import_typeorm49.ManyToOne)(() => CompanyRole),
|
|
6122
|
+
(0, import_typeorm49.JoinColumn)({ name: "company_role_id" })
|
|
6012
6123
|
], CompanyMemberRole.prototype, "role", 2);
|
|
6013
6124
|
__decorateClass([
|
|
6014
|
-
(0,
|
|
6015
|
-
(0,
|
|
6125
|
+
(0, import_typeorm49.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
6126
|
+
(0, import_typeorm49.Index)()
|
|
6016
6127
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
6017
6128
|
__decorateClass([
|
|
6018
|
-
(0,
|
|
6129
|
+
(0, import_typeorm49.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
6019
6130
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
6020
6131
|
CompanyMemberRole = __decorateClass([
|
|
6021
|
-
(0,
|
|
6132
|
+
(0, import_typeorm49.Entity)("company_member_roles")
|
|
6022
6133
|
], CompanyMemberRole);
|
|
6023
6134
|
|
|
6024
6135
|
// src/entities/assessment-answer.entity.ts
|
|
6025
|
-
var
|
|
6136
|
+
var import_typeorm52 = require("typeorm");
|
|
6026
6137
|
|
|
6027
6138
|
// src/entities/assessment-question.entity.ts
|
|
6028
|
-
var
|
|
6139
|
+
var import_typeorm51 = require("typeorm");
|
|
6029
6140
|
|
|
6030
6141
|
// src/entities/assessment-question-option.entity.ts
|
|
6031
|
-
var
|
|
6142
|
+
var import_typeorm50 = require("typeorm");
|
|
6032
6143
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
6033
6144
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
6034
6145
|
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
@@ -6038,21 +6149,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
6038
6149
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
6039
6150
|
};
|
|
6040
6151
|
__decorateClass([
|
|
6041
|
-
(0,
|
|
6042
|
-
(0,
|
|
6152
|
+
(0, import_typeorm50.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
6153
|
+
(0, import_typeorm50.Index)()
|
|
6043
6154
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
6044
6155
|
__decorateClass([
|
|
6045
|
-
(0,
|
|
6156
|
+
(0, import_typeorm50.ManyToOne)(
|
|
6046
6157
|
() => AssessmetQuestion,
|
|
6047
6158
|
(assessmentQuestion) => assessmentQuestion.options
|
|
6048
6159
|
),
|
|
6049
|
-
(0,
|
|
6160
|
+
(0, import_typeorm50.JoinColumn)({ name: "question_id" })
|
|
6050
6161
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
6051
6162
|
__decorateClass([
|
|
6052
|
-
(0,
|
|
6163
|
+
(0, import_typeorm50.Column)({ name: "text", type: "varchar", nullable: true })
|
|
6053
6164
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
6054
6165
|
__decorateClass([
|
|
6055
|
-
(0,
|
|
6166
|
+
(0, import_typeorm50.Column)({
|
|
6056
6167
|
name: "answer_type",
|
|
6057
6168
|
type: "enum",
|
|
6058
6169
|
enum: AnswerTypeEnum,
|
|
@@ -6060,13 +6171,13 @@ __decorateClass([
|
|
|
6060
6171
|
})
|
|
6061
6172
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
6062
6173
|
__decorateClass([
|
|
6063
|
-
(0,
|
|
6174
|
+
(0, import_typeorm50.Column)({ name: "is_active", type: "boolean", default: true })
|
|
6064
6175
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
6065
6176
|
__decorateClass([
|
|
6066
|
-
(0,
|
|
6177
|
+
(0, import_typeorm50.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
6067
6178
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
6068
6179
|
AssessmetQuestionOption = __decorateClass([
|
|
6069
|
-
(0,
|
|
6180
|
+
(0, import_typeorm50.Entity)("assessment_question_options")
|
|
6070
6181
|
], AssessmetQuestionOption);
|
|
6071
6182
|
|
|
6072
6183
|
// src/entities/assessment-question.entity.ts
|
|
@@ -6078,10 +6189,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
6078
6189
|
var AssessmetQuestion = class extends BaseEntity {
|
|
6079
6190
|
};
|
|
6080
6191
|
__decorateClass([
|
|
6081
|
-
(0,
|
|
6192
|
+
(0, import_typeorm51.Column)({ name: "text", type: "varchar", nullable: true })
|
|
6082
6193
|
], AssessmetQuestion.prototype, "text", 2);
|
|
6083
6194
|
__decorateClass([
|
|
6084
|
-
(0,
|
|
6195
|
+
(0, import_typeorm51.Column)({
|
|
6085
6196
|
name: "question_for",
|
|
6086
6197
|
type: "enum",
|
|
6087
6198
|
enum: QuestionForEnum,
|
|
@@ -6089,24 +6200,24 @@ __decorateClass([
|
|
|
6089
6200
|
})
|
|
6090
6201
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
6091
6202
|
__decorateClass([
|
|
6092
|
-
(0,
|
|
6203
|
+
(0, import_typeorm51.Column)({ name: "is_active", type: "boolean", default: true })
|
|
6093
6204
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
6094
6205
|
__decorateClass([
|
|
6095
|
-
(0,
|
|
6096
|
-
(0,
|
|
6206
|
+
(0, import_typeorm51.Column)({ name: "candidate_id", type: "integer", nullable: true }),
|
|
6207
|
+
(0, import_typeorm51.Index)()
|
|
6097
6208
|
], AssessmetQuestion.prototype, "candidateId", 2);
|
|
6098
6209
|
__decorateClass([
|
|
6099
|
-
(0,
|
|
6100
|
-
(0,
|
|
6210
|
+
(0, import_typeorm51.ManyToOne)(() => User, (user) => user.freelancerMcq, { nullable: true }),
|
|
6211
|
+
(0, import_typeorm51.JoinColumn)({ name: "candidate_id" })
|
|
6101
6212
|
], AssessmetQuestion.prototype, "candidate", 2);
|
|
6102
6213
|
__decorateClass([
|
|
6103
|
-
(0,
|
|
6214
|
+
(0, import_typeorm51.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
6104
6215
|
], AssessmetQuestion.prototype, "options", 2);
|
|
6105
6216
|
__decorateClass([
|
|
6106
|
-
(0,
|
|
6217
|
+
(0, import_typeorm51.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
6107
6218
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
6108
6219
|
AssessmetQuestion = __decorateClass([
|
|
6109
|
-
(0,
|
|
6220
|
+
(0, import_typeorm51.Entity)("assessment_questions")
|
|
6110
6221
|
], AssessmetQuestion);
|
|
6111
6222
|
|
|
6112
6223
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -6119,118 +6230,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
6119
6230
|
var AssessmentAnswer = class extends BaseEntity {
|
|
6120
6231
|
};
|
|
6121
6232
|
__decorateClass([
|
|
6122
|
-
(0,
|
|
6123
|
-
(0,
|
|
6233
|
+
(0, import_typeorm52.Column)({ name: "user_id", type: "integer" }),
|
|
6234
|
+
(0, import_typeorm52.Index)()
|
|
6124
6235
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
6125
6236
|
__decorateClass([
|
|
6126
|
-
(0,
|
|
6127
|
-
(0,
|
|
6237
|
+
(0, import_typeorm52.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
6238
|
+
(0, import_typeorm52.JoinColumn)({ name: "user_id" })
|
|
6128
6239
|
], AssessmentAnswer.prototype, "user", 2);
|
|
6129
6240
|
__decorateClass([
|
|
6130
|
-
(0,
|
|
6131
|
-
(0,
|
|
6241
|
+
(0, import_typeorm52.Column)({ name: "question_id", type: "integer" }),
|
|
6242
|
+
(0, import_typeorm52.Index)()
|
|
6132
6243
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
6133
6244
|
__decorateClass([
|
|
6134
|
-
(0,
|
|
6245
|
+
(0, import_typeorm52.ManyToOne)(
|
|
6135
6246
|
() => AssessmetQuestion,
|
|
6136
6247
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
6137
6248
|
),
|
|
6138
|
-
(0,
|
|
6249
|
+
(0, import_typeorm52.JoinColumn)({ name: "question_id" })
|
|
6139
6250
|
], AssessmentAnswer.prototype, "question", 2);
|
|
6140
6251
|
__decorateClass([
|
|
6141
|
-
(0,
|
|
6142
|
-
(0,
|
|
6252
|
+
(0, import_typeorm52.Column)({ name: "selected_option_id", type: "integer" }),
|
|
6253
|
+
(0, import_typeorm52.Index)()
|
|
6143
6254
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
6144
6255
|
__decorateClass([
|
|
6145
|
-
(0,
|
|
6256
|
+
(0, import_typeorm52.ManyToOne)(
|
|
6146
6257
|
() => AssessmetQuestionOption,
|
|
6147
6258
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
6148
6259
|
),
|
|
6149
|
-
(0,
|
|
6260
|
+
(0, import_typeorm52.JoinColumn)({ name: "selected_option_id" })
|
|
6150
6261
|
], AssessmentAnswer.prototype, "option", 2);
|
|
6151
6262
|
__decorateClass([
|
|
6152
|
-
(0,
|
|
6263
|
+
(0, import_typeorm52.Column)({
|
|
6153
6264
|
name: "selected_answer_type",
|
|
6154
6265
|
type: "enum",
|
|
6155
6266
|
enum: SelectedAnswerTypeEnum
|
|
6156
6267
|
})
|
|
6157
6268
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
6158
6269
|
__decorateClass([
|
|
6159
|
-
(0,
|
|
6270
|
+
(0, import_typeorm52.Column)({ name: "score", type: "float" })
|
|
6160
6271
|
], AssessmentAnswer.prototype, "score", 2);
|
|
6161
6272
|
AssessmentAnswer = __decorateClass([
|
|
6162
|
-
(0,
|
|
6273
|
+
(0, import_typeorm52.Entity)("assessment_answers")
|
|
6163
6274
|
], AssessmentAnswer);
|
|
6164
6275
|
|
|
6165
6276
|
// src/entities/company-skill.entity.ts
|
|
6166
|
-
var
|
|
6277
|
+
var import_typeorm53 = require("typeorm");
|
|
6167
6278
|
var CompanySkill = class extends BaseEntity {
|
|
6168
6279
|
};
|
|
6169
6280
|
// individual index to find core skills by user
|
|
6170
6281
|
__decorateClass([
|
|
6171
|
-
(0,
|
|
6172
|
-
(0,
|
|
6282
|
+
(0, import_typeorm53.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
6283
|
+
(0, import_typeorm53.Index)()
|
|
6173
6284
|
], CompanySkill.prototype, "userId", 2);
|
|
6174
6285
|
__decorateClass([
|
|
6175
|
-
(0,
|
|
6176
|
-
(0,
|
|
6286
|
+
(0, import_typeorm53.ManyToOne)(() => User, (user) => user.companySkills),
|
|
6287
|
+
(0, import_typeorm53.JoinColumn)({ name: "user_id" })
|
|
6177
6288
|
], CompanySkill.prototype, "user", 2);
|
|
6178
6289
|
__decorateClass([
|
|
6179
|
-
(0,
|
|
6290
|
+
(0, import_typeorm53.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
6180
6291
|
], CompanySkill.prototype, "skillName", 2);
|
|
6181
6292
|
CompanySkill = __decorateClass([
|
|
6182
|
-
(0,
|
|
6293
|
+
(0, import_typeorm53.Entity)("company_skills")
|
|
6183
6294
|
], CompanySkill);
|
|
6184
6295
|
|
|
6185
6296
|
// src/entities/admin-user-role.entity.ts
|
|
6186
|
-
var
|
|
6297
|
+
var import_typeorm57 = require("typeorm");
|
|
6187
6298
|
|
|
6188
6299
|
// src/entities/admin-role.entity.ts
|
|
6189
|
-
var
|
|
6300
|
+
var import_typeorm56 = require("typeorm");
|
|
6190
6301
|
|
|
6191
6302
|
// src/entities/admin-role-permission.entity.ts
|
|
6192
|
-
var
|
|
6303
|
+
var import_typeorm55 = require("typeorm");
|
|
6193
6304
|
|
|
6194
6305
|
// src/entities/admin-permission.entity.ts
|
|
6195
|
-
var
|
|
6306
|
+
var import_typeorm54 = require("typeorm");
|
|
6196
6307
|
var AdminPermission = class extends BaseEntity {
|
|
6197
6308
|
};
|
|
6198
6309
|
__decorateClass([
|
|
6199
|
-
(0,
|
|
6310
|
+
(0, import_typeorm54.Column)({ name: "permission_name", type: "varchar", nullable: true })
|
|
6200
6311
|
], AdminPermission.prototype, "permissionName", 2);
|
|
6201
6312
|
__decorateClass([
|
|
6202
|
-
(0,
|
|
6313
|
+
(0, import_typeorm54.Column)({
|
|
6203
6314
|
name: "permission_slug",
|
|
6204
6315
|
type: "varchar",
|
|
6205
6316
|
unique: true,
|
|
6206
6317
|
nullable: true
|
|
6207
6318
|
}),
|
|
6208
|
-
(0,
|
|
6319
|
+
(0, import_typeorm54.Index)()
|
|
6209
6320
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
6210
6321
|
__decorateClass([
|
|
6211
|
-
(0,
|
|
6322
|
+
(0, import_typeorm54.Column)({ name: "permission_description", type: "varchar", nullable: true })
|
|
6212
6323
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
6213
6324
|
__decorateClass([
|
|
6214
|
-
(0,
|
|
6325
|
+
(0, import_typeorm54.Column)({ name: "module", type: "varchar", nullable: true })
|
|
6215
6326
|
], AdminPermission.prototype, "module", 2);
|
|
6216
6327
|
__decorateClass([
|
|
6217
|
-
(0,
|
|
6328
|
+
(0, import_typeorm54.Column)({ name: "is_active", type: "boolean", default: true })
|
|
6218
6329
|
], AdminPermission.prototype, "isActive", 2);
|
|
6219
6330
|
__decorateClass([
|
|
6220
|
-
(0,
|
|
6331
|
+
(0, import_typeorm54.OneToMany)(
|
|
6221
6332
|
() => AdminRolePermission,
|
|
6222
6333
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
6223
6334
|
)
|
|
6224
6335
|
], AdminPermission.prototype, "adminRole", 2);
|
|
6225
6336
|
AdminPermission = __decorateClass([
|
|
6226
|
-
(0,
|
|
6337
|
+
(0, import_typeorm54.Entity)("admin_permissions")
|
|
6227
6338
|
], AdminPermission);
|
|
6228
6339
|
|
|
6229
6340
|
// src/entities/admin-role-permission.entity.ts
|
|
6230
6341
|
var AdminRolePermission = class extends BaseEntity {
|
|
6231
6342
|
};
|
|
6232
6343
|
__decorateClass([
|
|
6233
|
-
(0,
|
|
6344
|
+
(0, import_typeorm55.Column)({
|
|
6234
6345
|
name: "role_id",
|
|
6235
6346
|
type: "int",
|
|
6236
6347
|
nullable: true,
|
|
@@ -6238,11 +6349,11 @@ __decorateClass([
|
|
|
6238
6349
|
})
|
|
6239
6350
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
6240
6351
|
__decorateClass([
|
|
6241
|
-
(0,
|
|
6242
|
-
(0,
|
|
6352
|
+
(0, import_typeorm55.ManyToOne)(() => AdminRole),
|
|
6353
|
+
(0, import_typeorm55.JoinColumn)({ name: "role_id" })
|
|
6243
6354
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
6244
6355
|
__decorateClass([
|
|
6245
|
-
(0,
|
|
6356
|
+
(0, import_typeorm55.Column)({
|
|
6246
6357
|
name: "permission_id",
|
|
6247
6358
|
type: "int",
|
|
6248
6359
|
nullable: true,
|
|
@@ -6250,47 +6361,47 @@ __decorateClass([
|
|
|
6250
6361
|
})
|
|
6251
6362
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
6252
6363
|
__decorateClass([
|
|
6253
|
-
(0,
|
|
6254
|
-
(0,
|
|
6364
|
+
(0, import_typeorm55.ManyToOne)(() => AdminPermission),
|
|
6365
|
+
(0, import_typeorm55.JoinColumn)({ name: "permission_id" })
|
|
6255
6366
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
6256
6367
|
AdminRolePermission = __decorateClass([
|
|
6257
|
-
(0,
|
|
6368
|
+
(0, import_typeorm55.Entity)("admin_role_permissions")
|
|
6258
6369
|
], AdminRolePermission);
|
|
6259
6370
|
|
|
6260
6371
|
// src/entities/admin-role.entity.ts
|
|
6261
6372
|
var AdminRole = class extends BaseEntity {
|
|
6262
6373
|
};
|
|
6263
6374
|
__decorateClass([
|
|
6264
|
-
(0,
|
|
6375
|
+
(0, import_typeorm56.Column)({ name: "role_name", type: "varchar", nullable: true })
|
|
6265
6376
|
], AdminRole.prototype, "roleName", 2);
|
|
6266
6377
|
__decorateClass([
|
|
6267
|
-
(0,
|
|
6268
|
-
(0,
|
|
6378
|
+
(0, import_typeorm56.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
6379
|
+
(0, import_typeorm56.Index)()
|
|
6269
6380
|
], AdminRole.prototype, "roleSlug", 2);
|
|
6270
6381
|
__decorateClass([
|
|
6271
|
-
(0,
|
|
6382
|
+
(0, import_typeorm56.Column)({ name: "role_description", type: "varchar", nullable: true })
|
|
6272
6383
|
], AdminRole.prototype, "roleDescription", 2);
|
|
6273
6384
|
__decorateClass([
|
|
6274
|
-
(0,
|
|
6385
|
+
(0, import_typeorm56.Column)({ name: "is_active", type: "boolean", default: true })
|
|
6275
6386
|
], AdminRole.prototype, "isActive", 2);
|
|
6276
6387
|
__decorateClass([
|
|
6277
|
-
(0,
|
|
6388
|
+
(0, import_typeorm56.OneToMany)(
|
|
6278
6389
|
() => AdminRolePermission,
|
|
6279
6390
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
6280
6391
|
)
|
|
6281
6392
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
6282
6393
|
__decorateClass([
|
|
6283
|
-
(0,
|
|
6394
|
+
(0, import_typeorm56.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
6284
6395
|
], AdminRole.prototype, "userRoles", 2);
|
|
6285
6396
|
AdminRole = __decorateClass([
|
|
6286
|
-
(0,
|
|
6397
|
+
(0, import_typeorm56.Entity)("admin_roles")
|
|
6287
6398
|
], AdminRole);
|
|
6288
6399
|
|
|
6289
6400
|
// src/entities/admin-user-role.entity.ts
|
|
6290
6401
|
var AdminUserRole = class extends BaseEntity {
|
|
6291
6402
|
};
|
|
6292
6403
|
__decorateClass([
|
|
6293
|
-
(0,
|
|
6404
|
+
(0, import_typeorm57.Column)({
|
|
6294
6405
|
name: "user_id",
|
|
6295
6406
|
type: "int",
|
|
6296
6407
|
nullable: true,
|
|
@@ -6298,11 +6409,11 @@ __decorateClass([
|
|
|
6298
6409
|
})
|
|
6299
6410
|
], AdminUserRole.prototype, "userId", 2);
|
|
6300
6411
|
__decorateClass([
|
|
6301
|
-
(0,
|
|
6302
|
-
(0,
|
|
6412
|
+
(0, import_typeorm57.ManyToOne)(() => User),
|
|
6413
|
+
(0, import_typeorm57.JoinColumn)({ name: "user_id" })
|
|
6303
6414
|
], AdminUserRole.prototype, "user", 2);
|
|
6304
6415
|
__decorateClass([
|
|
6305
|
-
(0,
|
|
6416
|
+
(0, import_typeorm57.Column)({
|
|
6306
6417
|
name: "role_id",
|
|
6307
6418
|
type: "int",
|
|
6308
6419
|
nullable: true,
|
|
@@ -6310,58 +6421,58 @@ __decorateClass([
|
|
|
6310
6421
|
})
|
|
6311
6422
|
], AdminUserRole.prototype, "roleId", 2);
|
|
6312
6423
|
__decorateClass([
|
|
6313
|
-
(0,
|
|
6314
|
-
(0,
|
|
6424
|
+
(0, import_typeorm57.ManyToOne)(() => AdminRole),
|
|
6425
|
+
(0, import_typeorm57.JoinColumn)({ name: "role_id" })
|
|
6315
6426
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
6316
6427
|
AdminUserRole = __decorateClass([
|
|
6317
|
-
(0,
|
|
6428
|
+
(0, import_typeorm57.Entity)("admin_user_roles")
|
|
6318
6429
|
], AdminUserRole);
|
|
6319
6430
|
|
|
6320
6431
|
// src/entities/freelancer-resume.entity.ts
|
|
6321
|
-
var
|
|
6432
|
+
var import_typeorm58 = require("typeorm");
|
|
6322
6433
|
var FreelancerResume = class extends BaseEntity {
|
|
6323
6434
|
};
|
|
6324
6435
|
// individual index to find profile by user
|
|
6325
6436
|
__decorateClass([
|
|
6326
|
-
(0,
|
|
6327
|
-
(0,
|
|
6437
|
+
(0, import_typeorm58.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
6438
|
+
(0, import_typeorm58.Index)()
|
|
6328
6439
|
], FreelancerResume.prototype, "userId", 2);
|
|
6329
6440
|
__decorateClass([
|
|
6330
|
-
(0,
|
|
6331
|
-
(0,
|
|
6441
|
+
(0, import_typeorm58.ManyToOne)(() => User, (user) => user.freelancerProfile),
|
|
6442
|
+
(0, import_typeorm58.JoinColumn)({ name: "user_id" })
|
|
6332
6443
|
], FreelancerResume.prototype, "user", 2);
|
|
6333
6444
|
__decorateClass([
|
|
6334
|
-
(0,
|
|
6445
|
+
(0, import_typeorm58.Column)({ name: "resume_data", type: "jsonb", nullable: true })
|
|
6335
6446
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
6336
6447
|
__decorateClass([
|
|
6337
|
-
(0,
|
|
6448
|
+
(0, import_typeorm58.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
6338
6449
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
6339
6450
|
FreelancerResume = __decorateClass([
|
|
6340
|
-
(0,
|
|
6451
|
+
(0, import_typeorm58.Entity)("freelancer_resumes")
|
|
6341
6452
|
], FreelancerResume);
|
|
6342
6453
|
|
|
6343
6454
|
// src/entities/signature.entity.ts
|
|
6344
|
-
var
|
|
6455
|
+
var import_typeorm59 = require("typeorm");
|
|
6345
6456
|
var Signature = class extends BaseEntity {
|
|
6346
6457
|
};
|
|
6347
6458
|
// individual index to find profile by user
|
|
6348
6459
|
__decorateClass([
|
|
6349
|
-
(0,
|
|
6350
|
-
(0,
|
|
6460
|
+
(0, import_typeorm59.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
6461
|
+
(0, import_typeorm59.Index)()
|
|
6351
6462
|
], Signature.prototype, "userId", 2);
|
|
6352
6463
|
__decorateClass([
|
|
6353
|
-
(0,
|
|
6354
|
-
(0,
|
|
6464
|
+
(0, import_typeorm59.ManyToOne)(() => User, (user) => user.signatures),
|
|
6465
|
+
(0, import_typeorm59.JoinColumn)({ name: "user_id" })
|
|
6355
6466
|
], Signature.prototype, "user", 2);
|
|
6356
6467
|
__decorateClass([
|
|
6357
|
-
(0,
|
|
6468
|
+
(0, import_typeorm59.Column)({ name: "signature_url", type: "text", nullable: true })
|
|
6358
6469
|
], Signature.prototype, "signatureUrl", 2);
|
|
6359
6470
|
Signature = __decorateClass([
|
|
6360
|
-
(0,
|
|
6471
|
+
(0, import_typeorm59.Entity)("signatures")
|
|
6361
6472
|
], Signature);
|
|
6362
6473
|
|
|
6363
6474
|
// src/entities/dispute.entity.ts
|
|
6364
|
-
var
|
|
6475
|
+
var import_typeorm60 = require("typeorm");
|
|
6365
6476
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
6366
6477
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
6367
6478
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -6382,36 +6493,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
|
|
|
6382
6493
|
var Dispute = class extends BaseEntity {
|
|
6383
6494
|
};
|
|
6384
6495
|
__decorateClass([
|
|
6385
|
-
(0,
|
|
6386
|
-
(0,
|
|
6496
|
+
(0, import_typeorm60.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
6497
|
+
(0, import_typeorm60.Index)()
|
|
6387
6498
|
], Dispute.prototype, "clientId", 2);
|
|
6388
6499
|
__decorateClass([
|
|
6389
|
-
(0,
|
|
6390
|
-
(0,
|
|
6500
|
+
(0, import_typeorm60.ManyToOne)(() => User, (user) => user.clientDisputes),
|
|
6501
|
+
(0, import_typeorm60.JoinColumn)({ name: "client_id" })
|
|
6391
6502
|
], Dispute.prototype, "client", 2);
|
|
6392
6503
|
__decorateClass([
|
|
6393
|
-
(0,
|
|
6394
|
-
(0,
|
|
6504
|
+
(0, import_typeorm60.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
6505
|
+
(0, import_typeorm60.Index)()
|
|
6395
6506
|
], Dispute.prototype, "freelancerId", 2);
|
|
6396
6507
|
__decorateClass([
|
|
6397
|
-
(0,
|
|
6398
|
-
(0,
|
|
6508
|
+
(0, import_typeorm60.ManyToOne)(() => User, (user) => user.freelancerDisputes),
|
|
6509
|
+
(0, import_typeorm60.JoinColumn)({ name: "freelancer_id" })
|
|
6399
6510
|
], Dispute.prototype, "freelancer", 2);
|
|
6400
6511
|
__decorateClass([
|
|
6401
|
-
(0,
|
|
6512
|
+
(0, import_typeorm60.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
6402
6513
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
6403
6514
|
__decorateClass([
|
|
6404
|
-
(0,
|
|
6405
|
-
(0,
|
|
6515
|
+
(0, import_typeorm60.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
6516
|
+
(0, import_typeorm60.Index)()
|
|
6406
6517
|
], Dispute.prototype, "disputeType", 2);
|
|
6407
6518
|
__decorateClass([
|
|
6408
|
-
(0,
|
|
6519
|
+
(0, import_typeorm60.Column)({ name: "description", type: "varchar", nullable: true })
|
|
6409
6520
|
], Dispute.prototype, "description", 2);
|
|
6410
6521
|
__decorateClass([
|
|
6411
|
-
(0,
|
|
6522
|
+
(0, import_typeorm60.Column)({ name: "comment", type: "varchar", nullable: true })
|
|
6412
6523
|
], Dispute.prototype, "comment", 2);
|
|
6413
6524
|
__decorateClass([
|
|
6414
|
-
(0,
|
|
6525
|
+
(0, import_typeorm60.Column)({
|
|
6415
6526
|
name: "status",
|
|
6416
6527
|
type: "enum",
|
|
6417
6528
|
enum: DisputeStatusEnum,
|
|
@@ -6419,7 +6530,7 @@ __decorateClass([
|
|
|
6419
6530
|
})
|
|
6420
6531
|
], Dispute.prototype, "status", 2);
|
|
6421
6532
|
__decorateClass([
|
|
6422
|
-
(0,
|
|
6533
|
+
(0, import_typeorm60.Column)({
|
|
6423
6534
|
name: "initiator_type",
|
|
6424
6535
|
type: "enum",
|
|
6425
6536
|
enum: InitiatorTypeEnum,
|
|
@@ -6428,33 +6539,33 @@ __decorateClass([
|
|
|
6428
6539
|
})
|
|
6429
6540
|
], Dispute.prototype, "initiatorType", 2);
|
|
6430
6541
|
__decorateClass([
|
|
6431
|
-
(0,
|
|
6432
|
-
(0,
|
|
6542
|
+
(0, import_typeorm60.Column)({ name: "initiator_id", type: "integer" }),
|
|
6543
|
+
(0, import_typeorm60.Index)()
|
|
6433
6544
|
], Dispute.prototype, "initiatorId", 2);
|
|
6434
6545
|
__decorateClass([
|
|
6435
|
-
(0,
|
|
6436
|
-
(0,
|
|
6546
|
+
(0, import_typeorm60.ManyToOne)(() => User, (user) => user.initiatedDisputes),
|
|
6547
|
+
(0, import_typeorm60.JoinColumn)({ name: "initiator_id" })
|
|
6437
6548
|
], Dispute.prototype, "initiator", 2);
|
|
6438
6549
|
__decorateClass([
|
|
6439
|
-
(0,
|
|
6440
|
-
(0,
|
|
6550
|
+
(0, import_typeorm60.Column)({ name: "respondent_id", type: "integer", nullable: true }),
|
|
6551
|
+
(0, import_typeorm60.Index)()
|
|
6441
6552
|
], Dispute.prototype, "respondentId", 2);
|
|
6442
6553
|
__decorateClass([
|
|
6443
|
-
(0,
|
|
6444
|
-
(0,
|
|
6554
|
+
(0, import_typeorm60.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
6555
|
+
(0, import_typeorm60.JoinColumn)({ name: "respondent_id" })
|
|
6445
6556
|
], Dispute.prototype, "respondent", 2);
|
|
6446
6557
|
__decorateClass([
|
|
6447
|
-
(0,
|
|
6558
|
+
(0, import_typeorm60.Column)({ name: "attachments", type: "jsonb", nullable: true })
|
|
6448
6559
|
], Dispute.prototype, "attachments", 2);
|
|
6449
6560
|
__decorateClass([
|
|
6450
|
-
(0,
|
|
6561
|
+
(0, import_typeorm60.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
6451
6562
|
], Dispute.prototype, "dynamicFields", 2);
|
|
6452
6563
|
Dispute = __decorateClass([
|
|
6453
|
-
(0,
|
|
6564
|
+
(0, import_typeorm60.Entity)("disputes")
|
|
6454
6565
|
], Dispute);
|
|
6455
6566
|
|
|
6456
6567
|
// src/entities/stripe-transaction.entity.ts
|
|
6457
|
-
var
|
|
6568
|
+
var import_typeorm61 = require("typeorm");
|
|
6458
6569
|
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
6459
6570
|
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
6460
6571
|
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -6476,97 +6587,97 @@ var StripeTransaction = class extends BaseEntity {
|
|
|
6476
6587
|
// Full Stripe session response
|
|
6477
6588
|
};
|
|
6478
6589
|
__decorateClass([
|
|
6479
|
-
(0,
|
|
6480
|
-
(0,
|
|
6590
|
+
(0, import_typeorm61.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
6591
|
+
(0, import_typeorm61.Index)()
|
|
6481
6592
|
], StripeTransaction.prototype, "userId", 2);
|
|
6482
6593
|
__decorateClass([
|
|
6483
|
-
(0,
|
|
6484
|
-
(0,
|
|
6594
|
+
(0, import_typeorm61.ManyToOne)(() => User, (user) => user.stripeTransactions),
|
|
6595
|
+
(0, import_typeorm61.JoinColumn)({ name: "user_id" })
|
|
6485
6596
|
], StripeTransaction.prototype, "user", 2);
|
|
6486
6597
|
__decorateClass([
|
|
6487
|
-
(0,
|
|
6598
|
+
(0, import_typeorm61.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
6488
6599
|
], StripeTransaction.prototype, "stripeSessionId", 2);
|
|
6489
6600
|
__decorateClass([
|
|
6490
|
-
(0,
|
|
6601
|
+
(0, import_typeorm61.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
6491
6602
|
], StripeTransaction.prototype, "stripePaymentIntentId", 2);
|
|
6492
6603
|
__decorateClass([
|
|
6493
|
-
(0,
|
|
6604
|
+
(0, import_typeorm61.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
6494
6605
|
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
6495
6606
|
__decorateClass([
|
|
6496
|
-
(0,
|
|
6607
|
+
(0, import_typeorm61.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
|
|
6497
6608
|
], StripeTransaction.prototype, "stripeReceiptUrl", 2);
|
|
6498
6609
|
__decorateClass([
|
|
6499
|
-
(0,
|
|
6610
|
+
(0, import_typeorm61.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
6500
6611
|
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
6501
6612
|
__decorateClass([
|
|
6502
|
-
(0,
|
|
6613
|
+
(0, import_typeorm61.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
|
|
6503
6614
|
], StripeTransaction.prototype, "stripePaymentMethod", 2);
|
|
6504
6615
|
__decorateClass([
|
|
6505
|
-
(0,
|
|
6616
|
+
(0, import_typeorm61.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
|
|
6506
6617
|
], StripeTransaction.prototype, "stripePaymentStatus", 2);
|
|
6507
6618
|
__decorateClass([
|
|
6508
|
-
(0,
|
|
6619
|
+
(0, import_typeorm61.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
|
|
6509
6620
|
], StripeTransaction.prototype, "type", 2);
|
|
6510
6621
|
__decorateClass([
|
|
6511
|
-
(0,
|
|
6622
|
+
(0, import_typeorm61.Column)({ name: "currency", type: "varchar", nullable: true })
|
|
6512
6623
|
], StripeTransaction.prototype, "currency", 2);
|
|
6513
6624
|
__decorateClass([
|
|
6514
|
-
(0,
|
|
6625
|
+
(0, import_typeorm61.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" })
|
|
6515
6626
|
], StripeTransaction.prototype, "desiredDepositCents", 2);
|
|
6516
6627
|
__decorateClass([
|
|
6517
|
-
(0,
|
|
6628
|
+
(0, import_typeorm61.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
|
|
6518
6629
|
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
6519
6630
|
__decorateClass([
|
|
6520
|
-
(0,
|
|
6631
|
+
(0, import_typeorm61.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
|
|
6521
6632
|
], StripeTransaction.prototype, "taxCents", 2);
|
|
6522
6633
|
__decorateClass([
|
|
6523
|
-
(0,
|
|
6634
|
+
(0, import_typeorm61.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
|
|
6524
6635
|
], StripeTransaction.prototype, "estimatedStripeFee", 2);
|
|
6525
6636
|
__decorateClass([
|
|
6526
|
-
(0,
|
|
6637
|
+
(0, import_typeorm61.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" })
|
|
6527
6638
|
], StripeTransaction.prototype, "estimatedTotalCents", 2);
|
|
6528
6639
|
__decorateClass([
|
|
6529
|
-
(0,
|
|
6640
|
+
(0, import_typeorm61.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
|
|
6530
6641
|
], StripeTransaction.prototype, "actualStripeFee", 2);
|
|
6531
6642
|
__decorateClass([
|
|
6532
|
-
(0,
|
|
6643
|
+
(0, import_typeorm61.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
|
|
6533
6644
|
], StripeTransaction.prototype, "actualTotalPaidCents", 2);
|
|
6534
6645
|
__decorateClass([
|
|
6535
|
-
(0,
|
|
6646
|
+
(0, import_typeorm61.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" })
|
|
6536
6647
|
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
6537
6648
|
__decorateClass([
|
|
6538
|
-
(0,
|
|
6649
|
+
(0, import_typeorm61.Column)({ name: "description", type: "text", nullable: true })
|
|
6539
6650
|
], StripeTransaction.prototype, "description", 2);
|
|
6540
6651
|
__decorateClass([
|
|
6541
|
-
(0,
|
|
6652
|
+
(0, import_typeorm61.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
6542
6653
|
], StripeTransaction.prototype, "status", 2);
|
|
6543
6654
|
__decorateClass([
|
|
6544
|
-
(0,
|
|
6655
|
+
(0, import_typeorm61.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
|
|
6545
6656
|
], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
|
|
6546
6657
|
__decorateClass([
|
|
6547
|
-
(0,
|
|
6658
|
+
(0, import_typeorm61.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
6548
6659
|
], StripeTransaction.prototype, "completedAt", 2);
|
|
6549
6660
|
__decorateClass([
|
|
6550
|
-
(0,
|
|
6661
|
+
(0, import_typeorm61.Column)({ name: "billing_details", type: "jsonb", nullable: true })
|
|
6551
6662
|
], StripeTransaction.prototype, "billingDetails", 2);
|
|
6552
6663
|
__decorateClass([
|
|
6553
|
-
(0,
|
|
6664
|
+
(0, import_typeorm61.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
|
|
6554
6665
|
], StripeTransaction.prototype, "paymentMethodDetails", 2);
|
|
6555
6666
|
__decorateClass([
|
|
6556
|
-
(0,
|
|
6667
|
+
(0, import_typeorm61.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
|
|
6557
6668
|
], StripeTransaction.prototype, "rawSessionPayload", 2);
|
|
6558
6669
|
__decorateClass([
|
|
6559
|
-
(0,
|
|
6670
|
+
(0, import_typeorm61.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
6560
6671
|
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
6561
6672
|
StripeTransaction = __decorateClass([
|
|
6562
|
-
(0,
|
|
6673
|
+
(0, import_typeorm61.Entity)("stripe_transactions")
|
|
6563
6674
|
], StripeTransaction);
|
|
6564
6675
|
|
|
6565
6676
|
// src/entities/wallet.entity.ts
|
|
6566
|
-
var
|
|
6677
|
+
var import_typeorm63 = require("typeorm");
|
|
6567
6678
|
|
|
6568
6679
|
// src/entities/wallet-transaction.entity.ts
|
|
6569
|
-
var
|
|
6680
|
+
var import_typeorm62 = require("typeorm");
|
|
6570
6681
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
6571
6682
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
6572
6683
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -6583,46 +6694,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
|
|
|
6583
6694
|
var WalletTransaction = class extends BaseEntity {
|
|
6584
6695
|
};
|
|
6585
6696
|
__decorateClass([
|
|
6586
|
-
(0,
|
|
6587
|
-
(0,
|
|
6697
|
+
(0, import_typeorm62.Column)({ name: "wallet_id", type: "integer", nullable: true }),
|
|
6698
|
+
(0, import_typeorm62.Index)()
|
|
6588
6699
|
], WalletTransaction.prototype, "walletId", 2);
|
|
6589
6700
|
__decorateClass([
|
|
6590
|
-
(0,
|
|
6591
|
-
(0,
|
|
6701
|
+
(0, import_typeorm62.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
6702
|
+
(0, import_typeorm62.JoinColumn)({ name: "wallet_id" })
|
|
6592
6703
|
], WalletTransaction.prototype, "wallet", 2);
|
|
6593
6704
|
__decorateClass([
|
|
6594
|
-
(0,
|
|
6705
|
+
(0, import_typeorm62.Column)({ name: "amount", type: "bigint", nullable: true })
|
|
6595
6706
|
], WalletTransaction.prototype, "amount", 2);
|
|
6596
6707
|
__decorateClass([
|
|
6597
|
-
(0,
|
|
6708
|
+
(0, import_typeorm62.Column)({ name: "balance_before", type: "bigint", nullable: true })
|
|
6598
6709
|
], WalletTransaction.prototype, "balanceBefore", 2);
|
|
6599
6710
|
__decorateClass([
|
|
6600
|
-
(0,
|
|
6711
|
+
(0, import_typeorm62.Column)({ name: "balance_after", type: "bigint", nullable: true })
|
|
6601
6712
|
], WalletTransaction.prototype, "balanceAfter", 2);
|
|
6602
6713
|
__decorateClass([
|
|
6603
|
-
(0,
|
|
6714
|
+
(0, import_typeorm62.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
6604
6715
|
], WalletTransaction.prototype, "type", 2);
|
|
6605
6716
|
__decorateClass([
|
|
6606
|
-
(0,
|
|
6717
|
+
(0, import_typeorm62.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
6607
6718
|
], WalletTransaction.prototype, "status", 2);
|
|
6608
6719
|
__decorateClass([
|
|
6609
|
-
(0,
|
|
6720
|
+
(0, import_typeorm62.Column)({ name: "description", type: "text", nullable: true })
|
|
6610
6721
|
], WalletTransaction.prototype, "description", 2);
|
|
6611
6722
|
__decorateClass([
|
|
6612
|
-
(0,
|
|
6723
|
+
(0, import_typeorm62.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
6613
6724
|
], WalletTransaction.prototype, "completedAt", 2);
|
|
6614
6725
|
__decorateClass([
|
|
6615
|
-
(0,
|
|
6726
|
+
(0, import_typeorm62.Column)({ name: "transaction_for", type: "varchar", nullable: true })
|
|
6616
6727
|
], WalletTransaction.prototype, "transactionFor", 2);
|
|
6617
6728
|
__decorateClass([
|
|
6618
|
-
(0,
|
|
6729
|
+
(0, import_typeorm62.Column)({ name: "meta_data", type: "varchar", nullable: true })
|
|
6619
6730
|
], WalletTransaction.prototype, "metaData", 2);
|
|
6620
6731
|
__decorateClass([
|
|
6621
|
-
(0,
|
|
6622
|
-
(0,
|
|
6732
|
+
(0, import_typeorm62.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
6733
|
+
(0, import_typeorm62.Index)()
|
|
6623
6734
|
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
6624
6735
|
WalletTransaction = __decorateClass([
|
|
6625
|
-
(0,
|
|
6736
|
+
(0, import_typeorm62.Entity)("wallet_transactions")
|
|
6626
6737
|
], WalletTransaction);
|
|
6627
6738
|
|
|
6628
6739
|
// src/entities/wallet.entity.ts
|
|
@@ -6640,43 +6751,43 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
|
|
|
6640
6751
|
var Wallet = class extends BaseEntity {
|
|
6641
6752
|
};
|
|
6642
6753
|
__decorateClass([
|
|
6643
|
-
(0,
|
|
6644
|
-
(0,
|
|
6754
|
+
(0, import_typeorm63.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
6755
|
+
(0, import_typeorm63.Index)()
|
|
6645
6756
|
], Wallet.prototype, "userId", 2);
|
|
6646
6757
|
__decorateClass([
|
|
6647
|
-
(0,
|
|
6648
|
-
(0,
|
|
6758
|
+
(0, import_typeorm63.OneToOne)(() => User, (user) => user.wallet),
|
|
6759
|
+
(0, import_typeorm63.JoinColumn)({ name: "user_id" })
|
|
6649
6760
|
], Wallet.prototype, "user", 2);
|
|
6650
6761
|
__decorateClass([
|
|
6651
|
-
(0,
|
|
6762
|
+
(0, import_typeorm63.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
6652
6763
|
], Wallet.prototype, "accountType", 2);
|
|
6653
6764
|
__decorateClass([
|
|
6654
|
-
(0,
|
|
6765
|
+
(0, import_typeorm63.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
6655
6766
|
], Wallet.prototype, "stripeAccountId", 2);
|
|
6656
6767
|
__decorateClass([
|
|
6657
|
-
(0,
|
|
6768
|
+
(0, import_typeorm63.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
6658
6769
|
], Wallet.prototype, "stripeCustomerId", 2);
|
|
6659
6770
|
__decorateClass([
|
|
6660
|
-
(0,
|
|
6771
|
+
(0, import_typeorm63.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" })
|
|
6661
6772
|
], Wallet.prototype, "walletBalance", 2);
|
|
6662
6773
|
__decorateClass([
|
|
6663
|
-
(0,
|
|
6774
|
+
(0, import_typeorm63.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" })
|
|
6664
6775
|
], Wallet.prototype, "walletBalanceCents", 2);
|
|
6665
6776
|
__decorateClass([
|
|
6666
|
-
(0,
|
|
6777
|
+
(0, import_typeorm63.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
|
|
6667
6778
|
], Wallet.prototype, "onboardingStatus", 2);
|
|
6668
6779
|
__decorateClass([
|
|
6669
|
-
(0,
|
|
6780
|
+
(0, import_typeorm63.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
6670
6781
|
], Wallet.prototype, "stripeMetadata", 2);
|
|
6671
6782
|
__decorateClass([
|
|
6672
|
-
(0,
|
|
6783
|
+
(0, import_typeorm63.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
6673
6784
|
], Wallet.prototype, "walletTransactions", 2);
|
|
6674
6785
|
Wallet = __decorateClass([
|
|
6675
|
-
(0,
|
|
6786
|
+
(0, import_typeorm63.Entity)("wallets")
|
|
6676
6787
|
], Wallet);
|
|
6677
6788
|
|
|
6678
6789
|
// src/entities/freelancer-assessment-request.entity.ts
|
|
6679
|
-
var
|
|
6790
|
+
var import_typeorm64 = require("typeorm");
|
|
6680
6791
|
var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2) => {
|
|
6681
6792
|
AssessmentRequestStatusEnum2["PENDING"] = "PENDING";
|
|
6682
6793
|
AssessmentRequestStatusEnum2["APPROVED"] = "APPROVED";
|
|
@@ -6686,23 +6797,23 @@ var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2
|
|
|
6686
6797
|
var FreelancerAssessmentRequest = class extends BaseEntity {
|
|
6687
6798
|
};
|
|
6688
6799
|
__decorateClass([
|
|
6689
|
-
(0,
|
|
6690
|
-
(0,
|
|
6800
|
+
(0, import_typeorm64.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
6801
|
+
(0, import_typeorm64.Index)()
|
|
6691
6802
|
], FreelancerAssessmentRequest.prototype, "freelancerId", 2);
|
|
6692
6803
|
__decorateClass([
|
|
6693
|
-
(0,
|
|
6694
|
-
(0,
|
|
6804
|
+
(0, import_typeorm64.ManyToOne)(() => User, (user) => user.freelancerAssessmentRequests),
|
|
6805
|
+
(0, import_typeorm64.JoinColumn)({ name: "freelancer_id" })
|
|
6695
6806
|
], FreelancerAssessmentRequest.prototype, "freelancer", 2);
|
|
6696
6807
|
__decorateClass([
|
|
6697
|
-
(0,
|
|
6698
|
-
(0,
|
|
6808
|
+
(0, import_typeorm64.Column)({ name: "approved_by_id", type: "integer", nullable: true }),
|
|
6809
|
+
(0, import_typeorm64.Index)()
|
|
6699
6810
|
], FreelancerAssessmentRequest.prototype, "approvedById", 2);
|
|
6700
6811
|
__decorateClass([
|
|
6701
|
-
(0,
|
|
6702
|
-
(0,
|
|
6812
|
+
(0, import_typeorm64.ManyToOne)(() => User, (user) => user.assessmentRequests),
|
|
6813
|
+
(0, import_typeorm64.JoinColumn)({ name: "approved_by_id" })
|
|
6703
6814
|
], FreelancerAssessmentRequest.prototype, "approvedBy", 2);
|
|
6704
6815
|
__decorateClass([
|
|
6705
|
-
(0,
|
|
6816
|
+
(0, import_typeorm64.Column)({
|
|
6706
6817
|
name: "status",
|
|
6707
6818
|
type: "enum",
|
|
6708
6819
|
enum: AssessmentRequestStatusEnum,
|
|
@@ -6710,10 +6821,10 @@ __decorateClass([
|
|
|
6710
6821
|
})
|
|
6711
6822
|
], FreelancerAssessmentRequest.prototype, "status", 2);
|
|
6712
6823
|
__decorateClass([
|
|
6713
|
-
(0,
|
|
6824
|
+
(0, import_typeorm64.Column)({ name: "assessment_link", type: "text", nullable: true })
|
|
6714
6825
|
], FreelancerAssessmentRequest.prototype, "assessmentLink", 2);
|
|
6715
6826
|
FreelancerAssessmentRequest = __decorateClass([
|
|
6716
|
-
(0,
|
|
6827
|
+
(0, import_typeorm64.Entity)({ name: "freelancer_assessment_requests" })
|
|
6717
6828
|
], FreelancerAssessmentRequest);
|
|
6718
6829
|
|
|
6719
6830
|
// src/entities/user.entity.ts
|
|
@@ -6742,51 +6853,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
6742
6853
|
var User = class extends BaseEntity {
|
|
6743
6854
|
};
|
|
6744
6855
|
__decorateClass([
|
|
6745
|
-
(0,
|
|
6856
|
+
(0, import_typeorm65.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
6746
6857
|
], User.prototype, "uniqueId", 2);
|
|
6747
6858
|
__decorateClass([
|
|
6748
|
-
(0,
|
|
6749
|
-
(0,
|
|
6859
|
+
(0, import_typeorm65.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
6860
|
+
(0, import_typeorm65.Index)()
|
|
6750
6861
|
], User.prototype, "parentId", 2);
|
|
6751
6862
|
__decorateClass([
|
|
6752
|
-
(0,
|
|
6753
|
-
(0,
|
|
6863
|
+
(0, import_typeorm65.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
6864
|
+
(0, import_typeorm65.JoinColumn)({ name: "parent_id" })
|
|
6754
6865
|
], User.prototype, "parent", 2);
|
|
6755
6866
|
__decorateClass([
|
|
6756
|
-
(0,
|
|
6867
|
+
(0, import_typeorm65.OneToMany)(() => User, (user) => user.parent)
|
|
6757
6868
|
], User.prototype, "children", 2);
|
|
6758
6869
|
__decorateClass([
|
|
6759
|
-
(0,
|
|
6870
|
+
(0, import_typeorm65.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
6760
6871
|
], User.prototype, "username", 2);
|
|
6761
6872
|
__decorateClass([
|
|
6762
|
-
(0,
|
|
6873
|
+
(0, import_typeorm65.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
6763
6874
|
], User.prototype, "firstName", 2);
|
|
6764
6875
|
__decorateClass([
|
|
6765
|
-
(0,
|
|
6876
|
+
(0, import_typeorm65.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
6766
6877
|
], User.prototype, "lastName", 2);
|
|
6767
6878
|
__decorateClass([
|
|
6768
|
-
(0,
|
|
6879
|
+
(0, import_typeorm65.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
6769
6880
|
], User.prototype, "dateOfBirth", 2);
|
|
6770
6881
|
__decorateClass([
|
|
6771
|
-
(0,
|
|
6882
|
+
(0, import_typeorm65.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
6772
6883
|
], User.prototype, "gender", 2);
|
|
6773
6884
|
__decorateClass([
|
|
6774
|
-
(0,
|
|
6885
|
+
(0, import_typeorm65.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
6775
6886
|
], User.prototype, "profilePictureUrl", 2);
|
|
6776
6887
|
__decorateClass([
|
|
6777
|
-
(0,
|
|
6888
|
+
(0, import_typeorm65.Column)({ name: "email", type: "varchar", unique: true })
|
|
6778
6889
|
], User.prototype, "email", 2);
|
|
6779
6890
|
__decorateClass([
|
|
6780
|
-
(0,
|
|
6891
|
+
(0, import_typeorm65.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
6781
6892
|
], User.prototype, "mobileCode", 2);
|
|
6782
6893
|
__decorateClass([
|
|
6783
|
-
(0,
|
|
6894
|
+
(0, import_typeorm65.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
6784
6895
|
], User.prototype, "mobile", 2);
|
|
6785
6896
|
__decorateClass([
|
|
6786
|
-
(0,
|
|
6897
|
+
(0, import_typeorm65.Column)({ name: "password", type: "varchar", nullable: true })
|
|
6787
6898
|
], User.prototype, "password", 2);
|
|
6788
6899
|
__decorateClass([
|
|
6789
|
-
(0,
|
|
6900
|
+
(0, import_typeorm65.Column)({
|
|
6790
6901
|
name: "account_type",
|
|
6791
6902
|
type: "enum",
|
|
6792
6903
|
enum: AccountType3,
|
|
@@ -6794,7 +6905,7 @@ __decorateClass([
|
|
|
6794
6905
|
})
|
|
6795
6906
|
], User.prototype, "accountType", 2);
|
|
6796
6907
|
__decorateClass([
|
|
6797
|
-
(0,
|
|
6908
|
+
(0, import_typeorm65.Column)({
|
|
6798
6909
|
name: "account_status",
|
|
6799
6910
|
type: "enum",
|
|
6800
6911
|
enum: AccountStatus,
|
|
@@ -6802,42 +6913,42 @@ __decorateClass([
|
|
|
6802
6913
|
})
|
|
6803
6914
|
], User.prototype, "accountStatus", 2);
|
|
6804
6915
|
__decorateClass([
|
|
6805
|
-
(0,
|
|
6916
|
+
(0, import_typeorm65.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
6806
6917
|
], User.prototype, "isEmailVerified", 2);
|
|
6807
6918
|
__decorateClass([
|
|
6808
|
-
(0,
|
|
6919
|
+
(0, import_typeorm65.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
6809
6920
|
], User.prototype, "isMobileVerified", 2);
|
|
6810
6921
|
__decorateClass([
|
|
6811
|
-
(0,
|
|
6922
|
+
(0, import_typeorm65.Column)({ name: "is_social", type: "boolean", default: false })
|
|
6812
6923
|
], User.prototype, "isSocial", 2);
|
|
6813
6924
|
__decorateClass([
|
|
6814
|
-
(0,
|
|
6925
|
+
(0, import_typeorm65.Column)({
|
|
6815
6926
|
name: "last_login_at",
|
|
6816
6927
|
type: "timestamp with time zone",
|
|
6817
6928
|
nullable: true
|
|
6818
6929
|
})
|
|
6819
6930
|
], User.prototype, "lastLoginAt", 2);
|
|
6820
6931
|
__decorateClass([
|
|
6821
|
-
(0,
|
|
6932
|
+
(0, import_typeorm65.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
6822
6933
|
], User.prototype, "lastLoginIp", 2);
|
|
6823
6934
|
__decorateClass([
|
|
6824
|
-
(0,
|
|
6935
|
+
(0, import_typeorm65.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
6825
6936
|
], User.prototype, "resetToken", 2);
|
|
6826
6937
|
__decorateClass([
|
|
6827
|
-
(0,
|
|
6938
|
+
(0, import_typeorm65.Column)({
|
|
6828
6939
|
name: "reset_token_expire_at",
|
|
6829
6940
|
type: "timestamp with time zone",
|
|
6830
6941
|
nullable: true
|
|
6831
6942
|
})
|
|
6832
6943
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
6833
6944
|
__decorateClass([
|
|
6834
|
-
(0,
|
|
6945
|
+
(0, import_typeorm65.Column)({ name: "set_password_token", type: "varchar", nullable: true })
|
|
6835
6946
|
], User.prototype, "setPasswordToken", 2);
|
|
6836
6947
|
__decorateClass([
|
|
6837
|
-
(0,
|
|
6948
|
+
(0, import_typeorm65.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
6838
6949
|
], User.prototype, "refreshTokens", 2);
|
|
6839
6950
|
__decorateClass([
|
|
6840
|
-
(0,
|
|
6951
|
+
(0, import_typeorm65.Column)({
|
|
6841
6952
|
name: "provider",
|
|
6842
6953
|
type: "enum",
|
|
6843
6954
|
enum: Provider,
|
|
@@ -6846,238 +6957,248 @@ __decorateClass([
|
|
|
6846
6957
|
})
|
|
6847
6958
|
], User.prototype, "provider", 2);
|
|
6848
6959
|
__decorateClass([
|
|
6849
|
-
(0,
|
|
6960
|
+
(0, import_typeorm65.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
6850
6961
|
], User.prototype, "providerToken", 2);
|
|
6851
6962
|
__decorateClass([
|
|
6852
|
-
(0,
|
|
6963
|
+
(0, import_typeorm65.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
6853
6964
|
], User.prototype, "linkedInId", 2);
|
|
6854
6965
|
__decorateClass([
|
|
6855
|
-
(0,
|
|
6966
|
+
(0, import_typeorm65.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
6856
6967
|
], User.prototype, "googleId", 2);
|
|
6857
6968
|
__decorateClass([
|
|
6858
|
-
(0,
|
|
6969
|
+
(0, import_typeorm65.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
6859
6970
|
], User.prototype, "gitLabsId", 2);
|
|
6860
6971
|
__decorateClass([
|
|
6861
|
-
(0,
|
|
6972
|
+
(0, import_typeorm65.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
6862
6973
|
], User.prototype, "onBoardedBy", 2);
|
|
6863
6974
|
__decorateClass([
|
|
6864
|
-
(0,
|
|
6975
|
+
(0, import_typeorm65.OneToMany)(() => Otp, (otp) => otp.user)
|
|
6865
6976
|
], User.prototype, "otps", 2);
|
|
6866
6977
|
__decorateClass([
|
|
6867
|
-
(0,
|
|
6978
|
+
(0, import_typeorm65.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
6868
6979
|
], User.prototype, "senseloafLogs", 2);
|
|
6869
6980
|
__decorateClass([
|
|
6870
|
-
(0,
|
|
6981
|
+
(0, import_typeorm65.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
6871
6982
|
], User.prototype, "companyProfile", 2);
|
|
6872
6983
|
__decorateClass([
|
|
6873
|
-
(0,
|
|
6984
|
+
(0, import_typeorm65.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
6874
6985
|
], User.prototype, "companySkills", 2);
|
|
6875
6986
|
__decorateClass([
|
|
6876
|
-
(0,
|
|
6987
|
+
(0, import_typeorm65.OneToMany)(
|
|
6877
6988
|
() => CompanyMemberRole,
|
|
6878
6989
|
(companyMemberRole) => companyMemberRole.user
|
|
6879
6990
|
)
|
|
6880
6991
|
], User.prototype, "companyMemberRoles", 2);
|
|
6881
6992
|
__decorateClass([
|
|
6882
|
-
(0,
|
|
6993
|
+
(0, import_typeorm65.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
6883
6994
|
], User.prototype, "companyAiInterview", 2);
|
|
6884
6995
|
__decorateClass([
|
|
6885
|
-
(0,
|
|
6996
|
+
(0, import_typeorm65.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
6886
6997
|
], User.prototype, "clientF2FInterviews", 2);
|
|
6887
6998
|
__decorateClass([
|
|
6888
|
-
(0,
|
|
6999
|
+
(0, import_typeorm65.OneToOne)(
|
|
6889
7000
|
() => FreelancerProfile,
|
|
6890
7001
|
(freelancerProfile) => freelancerProfile.user
|
|
6891
7002
|
)
|
|
6892
7003
|
], User.prototype, "freelancerProfile", 2);
|
|
6893
7004
|
__decorateClass([
|
|
6894
|
-
(0,
|
|
7005
|
+
(0, import_typeorm65.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
6895
7006
|
], User.prototype, "freelancerResume", 2);
|
|
6896
7007
|
__decorateClass([
|
|
6897
|
-
(0,
|
|
7008
|
+
(0, import_typeorm65.OneToMany)(
|
|
6898
7009
|
() => FreelancerAssessmentRequest,
|
|
6899
7010
|
(freelancerAssessmentRequest) => freelancerAssessmentRequest.freelancer
|
|
6900
7011
|
)
|
|
6901
7012
|
], User.prototype, "freelancerAssessmentRequests", 2);
|
|
6902
7013
|
__decorateClass([
|
|
6903
|
-
(0,
|
|
7014
|
+
(0, import_typeorm65.OneToMany)(
|
|
6904
7015
|
() => FreelancerAssessmentRequest,
|
|
6905
7016
|
(freelancerAssessment) => freelancerAssessment.approvedBy
|
|
6906
7017
|
)
|
|
6907
7018
|
], User.prototype, "assessmentRequests", 2);
|
|
6908
7019
|
__decorateClass([
|
|
6909
|
-
(0,
|
|
7020
|
+
(0, import_typeorm65.OneToMany)(
|
|
6910
7021
|
() => FreelancerAssessment,
|
|
6911
7022
|
(freelancerAssessment) => freelancerAssessment.user
|
|
6912
7023
|
)
|
|
6913
7024
|
], User.prototype, "assessments", 2);
|
|
6914
7025
|
__decorateClass([
|
|
6915
|
-
(0,
|
|
7026
|
+
(0, import_typeorm65.OneToMany)(
|
|
6916
7027
|
() => AssessmentAnswer,
|
|
6917
7028
|
(assessmentAnswer) => assessmentAnswer.user
|
|
6918
7029
|
)
|
|
6919
7030
|
], User.prototype, "assessmentAnswers", 2);
|
|
6920
7031
|
__decorateClass([
|
|
6921
|
-
(0,
|
|
7032
|
+
(0, import_typeorm65.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
6922
7033
|
], User.prototype, "freelancerSkills", 2);
|
|
6923
7034
|
__decorateClass([
|
|
6924
|
-
(0,
|
|
7035
|
+
(0, import_typeorm65.OneToMany)(
|
|
6925
7036
|
() => FreelancerExperience,
|
|
6926
7037
|
(freelancerExperience) => freelancerExperience.user
|
|
6927
7038
|
)
|
|
6928
7039
|
], User.prototype, "freelancerExperience", 2);
|
|
6929
7040
|
__decorateClass([
|
|
6930
|
-
(0,
|
|
7041
|
+
(0, import_typeorm65.OneToMany)(
|
|
6931
7042
|
() => FreelancerEducation,
|
|
6932
7043
|
(freelancerEducation) => freelancerEducation.user
|
|
6933
7044
|
)
|
|
6934
7045
|
], User.prototype, "freelancerEducation", 2);
|
|
6935
7046
|
__decorateClass([
|
|
6936
|
-
(0,
|
|
7047
|
+
(0, import_typeorm65.OneToMany)(
|
|
6937
7048
|
() => FreelancerProject,
|
|
6938
7049
|
(freelancerProject) => freelancerProject.user
|
|
6939
7050
|
)
|
|
6940
7051
|
], User.prototype, "freelancerProject", 2);
|
|
6941
7052
|
__decorateClass([
|
|
6942
|
-
(0,
|
|
7053
|
+
(0, import_typeorm65.OneToMany)(
|
|
6943
7054
|
() => FreelancerCaseStudy,
|
|
6944
7055
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
6945
7056
|
)
|
|
6946
7057
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
6947
7058
|
__decorateClass([
|
|
6948
|
-
(0,
|
|
7059
|
+
(0, import_typeorm65.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
6949
7060
|
], User.prototype, "freelancerTool", 2);
|
|
6950
7061
|
__decorateClass([
|
|
6951
|
-
(0,
|
|
7062
|
+
(0, import_typeorm65.OneToMany)(
|
|
6952
7063
|
() => FreelancerFramework,
|
|
6953
7064
|
(freelancerFramework) => freelancerFramework.user
|
|
6954
7065
|
)
|
|
6955
7066
|
], User.prototype, "freelancerFramework", 2);
|
|
6956
7067
|
__decorateClass([
|
|
6957
|
-
(0,
|
|
7068
|
+
(0, import_typeorm65.OneToOne)(
|
|
6958
7069
|
() => FreelancerDeclaration,
|
|
6959
7070
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
6960
7071
|
)
|
|
6961
7072
|
], User.prototype, "freelancerDeclaration", 2);
|
|
6962
7073
|
__decorateClass([
|
|
6963
|
-
(0,
|
|
7074
|
+
(0, import_typeorm65.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
6964
7075
|
], User.prototype, "freelancerMcq", 2);
|
|
6965
7076
|
__decorateClass([
|
|
6966
|
-
(0,
|
|
7077
|
+
(0, import_typeorm65.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
6967
7078
|
], User.prototype, "freelancerAiInterview", 2);
|
|
6968
7079
|
__decorateClass([
|
|
6969
|
-
(0,
|
|
7080
|
+
(0, import_typeorm65.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
6970
7081
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
6971
7082
|
__decorateClass([
|
|
6972
|
-
(0,
|
|
7083
|
+
(0, import_typeorm65.OneToMany)(
|
|
6973
7084
|
() => F2fInterviewRescheduleRequest,
|
|
6974
7085
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
6975
7086
|
)
|
|
6976
7087
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
6977
7088
|
__decorateClass([
|
|
6978
|
-
(0,
|
|
7089
|
+
(0, import_typeorm65.OneToMany)(
|
|
6979
7090
|
() => AiInterviewRescheduleRequest,
|
|
6980
7091
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.candidate
|
|
6981
7092
|
)
|
|
6982
7093
|
], User.prototype, "freelancerAiInterviewRescheduleRequests", 2);
|
|
6983
7094
|
__decorateClass([
|
|
6984
|
-
(0,
|
|
7095
|
+
(0, import_typeorm65.OneToMany)(
|
|
6985
7096
|
() => AiInterviewRescheduleRequest,
|
|
6986
7097
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.client
|
|
6987
7098
|
)
|
|
6988
7099
|
], User.prototype, "clientAiInterviewRescheduleRequests", 2);
|
|
6989
7100
|
__decorateClass([
|
|
6990
|
-
(0,
|
|
7101
|
+
(0, import_typeorm65.OneToMany)(() => Job, (job) => job.user)
|
|
6991
7102
|
], User.prototype, "jobs", 2);
|
|
6992
7103
|
__decorateClass([
|
|
6993
|
-
(0,
|
|
7104
|
+
(0, import_typeorm65.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
6994
7105
|
], User.prototype, "jobApplications", 2);
|
|
6995
7106
|
__decorateClass([
|
|
6996
|
-
(0,
|
|
7107
|
+
(0, import_typeorm65.OneToMany)(() => Interview, (interview) => interview.user)
|
|
6997
7108
|
], User.prototype, "interviews", 2);
|
|
6998
7109
|
__decorateClass([
|
|
6999
|
-
(0,
|
|
7110
|
+
(0, import_typeorm65.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
7000
7111
|
], User.prototype, "bankDetail", 2);
|
|
7001
7112
|
__decorateClass([
|
|
7002
|
-
(0,
|
|
7113
|
+
(0, import_typeorm65.OneToMany)(
|
|
7003
7114
|
() => SystemPreference,
|
|
7004
7115
|
(systemPreference) => systemPreference.user
|
|
7005
7116
|
)
|
|
7006
7117
|
], User.prototype, "systemPreference", 2);
|
|
7007
7118
|
__decorateClass([
|
|
7008
|
-
(0,
|
|
7119
|
+
(0, import_typeorm65.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
7009
7120
|
], User.prototype, "givenRatings", 2);
|
|
7010
7121
|
__decorateClass([
|
|
7011
|
-
(0,
|
|
7122
|
+
(0, import_typeorm65.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
7012
7123
|
], User.prototype, "receivedRatings", 2);
|
|
7013
7124
|
__decorateClass([
|
|
7014
|
-
(0,
|
|
7125
|
+
(0, import_typeorm65.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
7015
7126
|
], User.prototype, "adminUserRoles", 2);
|
|
7016
7127
|
__decorateClass([
|
|
7017
|
-
(0,
|
|
7128
|
+
(0, import_typeorm65.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
|
|
7129
|
+
cascade: true
|
|
7130
|
+
})
|
|
7131
|
+
], User.prototype, "clientContractSummaries", 2);
|
|
7132
|
+
__decorateClass([
|
|
7133
|
+
(0, import_typeorm65.OneToMany)(() => Contract, (contract) => contract.client)
|
|
7018
7134
|
], User.prototype, "clientContracts", 2);
|
|
7019
7135
|
__decorateClass([
|
|
7020
|
-
(0,
|
|
7136
|
+
(0, import_typeorm65.OneToMany)(() => Hiring, (hiring) => hiring.client)
|
|
7021
7137
|
], User.prototype, "clientHirings", 2);
|
|
7022
7138
|
__decorateClass([
|
|
7023
|
-
(0,
|
|
7139
|
+
(0, import_typeorm65.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
7024
7140
|
], User.prototype, "clientEscrowWallets", 2);
|
|
7025
7141
|
__decorateClass([
|
|
7026
|
-
(0,
|
|
7142
|
+
(0, import_typeorm65.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
|
|
7143
|
+
cascade: true
|
|
7144
|
+
})
|
|
7145
|
+
], User.prototype, "freelancerContractSummaries", 2);
|
|
7146
|
+
__decorateClass([
|
|
7147
|
+
(0, import_typeorm65.OneToMany)(() => Contract, (contract) => contract.freelancer)
|
|
7027
7148
|
], User.prototype, "freelancerContracts", 2);
|
|
7028
7149
|
__decorateClass([
|
|
7029
|
-
(0,
|
|
7150
|
+
(0, import_typeorm65.OneToMany)(() => Hiring, (hiring) => hiring.freelancer)
|
|
7030
7151
|
], User.prototype, "freelancerHirings", 2);
|
|
7031
7152
|
__decorateClass([
|
|
7032
|
-
(0,
|
|
7153
|
+
(0, import_typeorm65.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
7033
7154
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
7034
7155
|
__decorateClass([
|
|
7035
|
-
(0,
|
|
7156
|
+
(0, import_typeorm65.OneToOne)(() => Signature, (signature) => signature.user)
|
|
7036
7157
|
], User.prototype, "signatures", 2);
|
|
7037
7158
|
__decorateClass([
|
|
7038
|
-
(0,
|
|
7159
|
+
(0, import_typeorm65.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
|
|
7039
7160
|
], User.prototype, "clientTimesheets", 2);
|
|
7040
7161
|
__decorateClass([
|
|
7041
|
-
(0,
|
|
7162
|
+
(0, import_typeorm65.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
7042
7163
|
], User.prototype, "freelancerTimesheets", 2);
|
|
7043
7164
|
__decorateClass([
|
|
7044
|
-
(0,
|
|
7165
|
+
(0, import_typeorm65.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
7045
7166
|
], User.prototype, "clientTimesheetLine", 2);
|
|
7046
7167
|
__decorateClass([
|
|
7047
|
-
(0,
|
|
7168
|
+
(0, import_typeorm65.OneToMany)(() => Invoice, (invoice) => invoice.client)
|
|
7048
7169
|
], User.prototype, "clientInvoice", 2);
|
|
7049
7170
|
__decorateClass([
|
|
7050
|
-
(0,
|
|
7171
|
+
(0, import_typeorm65.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
7051
7172
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
7052
7173
|
__decorateClass([
|
|
7053
|
-
(0,
|
|
7174
|
+
(0, import_typeorm65.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
|
|
7054
7175
|
], User.prototype, "freelancerInvoice", 2);
|
|
7055
7176
|
__decorateClass([
|
|
7056
|
-
(0,
|
|
7177
|
+
(0, import_typeorm65.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
7057
7178
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
7058
7179
|
__decorateClass([
|
|
7059
|
-
(0,
|
|
7180
|
+
(0, import_typeorm65.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
7060
7181
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
7061
7182
|
__decorateClass([
|
|
7062
|
-
(0,
|
|
7183
|
+
(0, import_typeorm65.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
7063
7184
|
], User.prototype, "initiatedDisputes", 2);
|
|
7064
7185
|
__decorateClass([
|
|
7065
|
-
(0,
|
|
7186
|
+
(0, import_typeorm65.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
7066
7187
|
], User.prototype, "respondentDisputes", 2);
|
|
7067
7188
|
__decorateClass([
|
|
7068
|
-
(0,
|
|
7189
|
+
(0, import_typeorm65.OneToOne)(() => Wallet, (wallet) => wallet.user)
|
|
7069
7190
|
], User.prototype, "wallet", 2);
|
|
7070
7191
|
__decorateClass([
|
|
7071
|
-
(0,
|
|
7192
|
+
(0, import_typeorm65.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
7072
7193
|
], User.prototype, "stripeTransactions", 2);
|
|
7073
7194
|
__decorateClass([
|
|
7074
|
-
(0,
|
|
7195
|
+
(0, import_typeorm65.OneToMany)(() => Dispute, (dispute) => dispute.client)
|
|
7075
7196
|
], User.prototype, "clientDisputes", 2);
|
|
7076
7197
|
__decorateClass([
|
|
7077
|
-
(0,
|
|
7198
|
+
(0, import_typeorm65.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
|
|
7078
7199
|
], User.prototype, "freelancerDisputes", 2);
|
|
7079
7200
|
User = __decorateClass([
|
|
7080
|
-
(0,
|
|
7201
|
+
(0, import_typeorm65.Entity)("users")
|
|
7081
7202
|
], User);
|
|
7082
7203
|
|
|
7083
7204
|
// src/entities/rating.entity.ts
|
|
@@ -7089,31 +7210,31 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
7089
7210
|
var Rating = class extends BaseEntity {
|
|
7090
7211
|
};
|
|
7091
7212
|
__decorateClass([
|
|
7092
|
-
(0,
|
|
7093
|
-
(0,
|
|
7213
|
+
(0, import_typeorm66.Column)({ name: "reviewer_id", type: "integer" }),
|
|
7214
|
+
(0, import_typeorm66.Index)()
|
|
7094
7215
|
], Rating.prototype, "reviewerId", 2);
|
|
7095
7216
|
__decorateClass([
|
|
7096
|
-
(0,
|
|
7097
|
-
(0,
|
|
7217
|
+
(0, import_typeorm66.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
7218
|
+
(0, import_typeorm66.JoinColumn)({ name: "reviewer_id" })
|
|
7098
7219
|
], Rating.prototype, "reviewer", 2);
|
|
7099
7220
|
__decorateClass([
|
|
7100
|
-
(0,
|
|
7101
|
-
(0,
|
|
7221
|
+
(0, import_typeorm66.Column)({ name: "reviewee_id", type: "integer" }),
|
|
7222
|
+
(0, import_typeorm66.Index)()
|
|
7102
7223
|
], Rating.prototype, "revieweeId", 2);
|
|
7103
7224
|
__decorateClass([
|
|
7104
|
-
(0,
|
|
7105
|
-
(0,
|
|
7225
|
+
(0, import_typeorm66.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
7226
|
+
(0, import_typeorm66.JoinColumn)({ name: "reviewee_id" })
|
|
7106
7227
|
], Rating.prototype, "reviewee", 2);
|
|
7107
7228
|
__decorateClass([
|
|
7108
|
-
(0,
|
|
7109
|
-
(0,
|
|
7229
|
+
(0, import_typeorm66.Column)({ name: "job_id", type: "integer" }),
|
|
7230
|
+
(0, import_typeorm66.Index)()
|
|
7110
7231
|
], Rating.prototype, "jobId", 2);
|
|
7111
7232
|
__decorateClass([
|
|
7112
|
-
(0,
|
|
7113
|
-
(0,
|
|
7233
|
+
(0, import_typeorm66.ManyToOne)(() => Job, (job) => job.ratings, { onDelete: "CASCADE" }),
|
|
7234
|
+
(0, import_typeorm66.JoinColumn)({ name: "job_id" })
|
|
7114
7235
|
], Rating.prototype, "job", 2);
|
|
7115
7236
|
__decorateClass([
|
|
7116
|
-
(0,
|
|
7237
|
+
(0, import_typeorm66.Column)({
|
|
7117
7238
|
name: "rating_type",
|
|
7118
7239
|
type: "enum",
|
|
7119
7240
|
enum: RatingTypeEnum,
|
|
@@ -7121,67 +7242,67 @@ __decorateClass([
|
|
|
7121
7242
|
})
|
|
7122
7243
|
], Rating.prototype, "ratingType", 2);
|
|
7123
7244
|
__decorateClass([
|
|
7124
|
-
(0,
|
|
7245
|
+
(0, import_typeorm66.Column)({ name: "reviewer_comment", type: "text", nullable: true })
|
|
7125
7246
|
], Rating.prototype, "reviewerComment", 2);
|
|
7126
7247
|
__decorateClass([
|
|
7127
|
-
(0,
|
|
7248
|
+
(0, import_typeorm66.Column)({
|
|
7128
7249
|
name: "overall_experience",
|
|
7129
7250
|
type: "float",
|
|
7130
7251
|
default: 0
|
|
7131
7252
|
})
|
|
7132
7253
|
], Rating.prototype, "overAllExperience", 2);
|
|
7133
7254
|
__decorateClass([
|
|
7134
|
-
(0,
|
|
7255
|
+
(0, import_typeorm66.Column)({
|
|
7135
7256
|
name: "work_quality",
|
|
7136
7257
|
type: "float",
|
|
7137
7258
|
default: 0
|
|
7138
7259
|
})
|
|
7139
7260
|
], Rating.prototype, "workQuality", 2);
|
|
7140
7261
|
__decorateClass([
|
|
7141
|
-
(0,
|
|
7262
|
+
(0, import_typeorm66.Column)({
|
|
7142
7263
|
name: "one_time_delivery",
|
|
7143
7264
|
type: "float",
|
|
7144
7265
|
default: 0
|
|
7145
7266
|
})
|
|
7146
7267
|
], Rating.prototype, "oneTimeDelivery", 2);
|
|
7147
7268
|
__decorateClass([
|
|
7148
|
-
(0,
|
|
7269
|
+
(0, import_typeorm66.Column)({
|
|
7149
7270
|
name: "understaning",
|
|
7150
7271
|
type: "float",
|
|
7151
7272
|
default: 0
|
|
7152
7273
|
})
|
|
7153
7274
|
], Rating.prototype, "understaning", 2);
|
|
7154
7275
|
__decorateClass([
|
|
7155
|
-
(0,
|
|
7276
|
+
(0, import_typeorm66.Column)({
|
|
7156
7277
|
name: "communication",
|
|
7157
7278
|
type: "float",
|
|
7158
7279
|
default: 0
|
|
7159
7280
|
})
|
|
7160
7281
|
], Rating.prototype, "communication", 2);
|
|
7161
7282
|
__decorateClass([
|
|
7162
|
-
(0,
|
|
7283
|
+
(0, import_typeorm66.Column)({
|
|
7163
7284
|
name: "skill_utilized",
|
|
7164
7285
|
type: "float",
|
|
7165
7286
|
default: 0
|
|
7166
7287
|
})
|
|
7167
7288
|
], Rating.prototype, "skillUtilized", 2);
|
|
7168
7289
|
__decorateClass([
|
|
7169
|
-
(0,
|
|
7290
|
+
(0, import_typeorm66.Column)({ name: "communication_clarity", type: "float", default: 0 })
|
|
7170
7291
|
], Rating.prototype, "communicationClarity", 2);
|
|
7171
7292
|
__decorateClass([
|
|
7172
|
-
(0,
|
|
7293
|
+
(0, import_typeorm66.Column)({ name: "requirements_clarity", type: "float", default: 0 })
|
|
7173
7294
|
], Rating.prototype, "requirementsClarity", 2);
|
|
7174
7295
|
__decorateClass([
|
|
7175
|
-
(0,
|
|
7296
|
+
(0, import_typeorm66.Column)({ name: "responsiveness", type: "float", default: 0 })
|
|
7176
7297
|
], Rating.prototype, "responsiveness", 2);
|
|
7177
7298
|
__decorateClass([
|
|
7178
|
-
(0,
|
|
7299
|
+
(0, import_typeorm66.Column)({ name: "payment_promptness", type: "float", default: 0 })
|
|
7179
7300
|
], Rating.prototype, "paymentPromptness", 2);
|
|
7180
7301
|
__decorateClass([
|
|
7181
|
-
(0,
|
|
7302
|
+
(0, import_typeorm66.Column)({ name: "responsibilities_and_expectations", type: "float", default: 0 })
|
|
7182
7303
|
], Rating.prototype, "responsibilitiesAndExpectations", 2);
|
|
7183
7304
|
Rating = __decorateClass([
|
|
7184
|
-
(0,
|
|
7305
|
+
(0, import_typeorm66.Entity)("ratings")
|
|
7185
7306
|
], Rating);
|
|
7186
7307
|
|
|
7187
7308
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -10769,11 +10890,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
10769
10890
|
};
|
|
10770
10891
|
|
|
10771
10892
|
// src/entities/sequence-generator.entity.ts
|
|
10772
|
-
var
|
|
10893
|
+
var import_typeorm67 = require("typeorm");
|
|
10773
10894
|
var SequenceGenerator = class extends BaseEntity {
|
|
10774
10895
|
};
|
|
10775
10896
|
__decorateClass([
|
|
10776
|
-
(0,
|
|
10897
|
+
(0, import_typeorm67.Column)({
|
|
10777
10898
|
name: "module",
|
|
10778
10899
|
type: "varchar",
|
|
10779
10900
|
length: 50,
|
|
@@ -10782,7 +10903,7 @@ __decorateClass([
|
|
|
10782
10903
|
})
|
|
10783
10904
|
], SequenceGenerator.prototype, "module", 2);
|
|
10784
10905
|
__decorateClass([
|
|
10785
|
-
(0,
|
|
10906
|
+
(0, import_typeorm67.Column)({
|
|
10786
10907
|
name: "prefix",
|
|
10787
10908
|
type: "varchar",
|
|
10788
10909
|
length: 10,
|
|
@@ -10791,7 +10912,7 @@ __decorateClass([
|
|
|
10791
10912
|
})
|
|
10792
10913
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
10793
10914
|
__decorateClass([
|
|
10794
|
-
(0,
|
|
10915
|
+
(0, import_typeorm67.Column)({
|
|
10795
10916
|
name: "last_sequence",
|
|
10796
10917
|
type: "int",
|
|
10797
10918
|
nullable: false,
|
|
@@ -10799,7 +10920,7 @@ __decorateClass([
|
|
|
10799
10920
|
})
|
|
10800
10921
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
10801
10922
|
__decorateClass([
|
|
10802
|
-
(0,
|
|
10923
|
+
(0, import_typeorm67.Column)({
|
|
10803
10924
|
name: "year",
|
|
10804
10925
|
type: "int",
|
|
10805
10926
|
nullable: true,
|
|
@@ -10807,11 +10928,11 @@ __decorateClass([
|
|
|
10807
10928
|
})
|
|
10808
10929
|
], SequenceGenerator.prototype, "year", 2);
|
|
10809
10930
|
SequenceGenerator = __decorateClass([
|
|
10810
|
-
(0,
|
|
10931
|
+
(0, import_typeorm67.Entity)("sequence_generators")
|
|
10811
10932
|
], SequenceGenerator);
|
|
10812
10933
|
|
|
10813
10934
|
// src/entities/question.entity.ts
|
|
10814
|
-
var
|
|
10935
|
+
var import_typeorm68 = require("typeorm");
|
|
10815
10936
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
10816
10937
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
10817
10938
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -10820,16 +10941,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
10820
10941
|
var Question = class extends BaseEntity {
|
|
10821
10942
|
};
|
|
10822
10943
|
__decorateClass([
|
|
10823
|
-
(0,
|
|
10944
|
+
(0, import_typeorm68.Column)({ name: "question", type: "varchar" })
|
|
10824
10945
|
], Question.prototype, "question", 2);
|
|
10825
10946
|
__decorateClass([
|
|
10826
|
-
(0,
|
|
10947
|
+
(0, import_typeorm68.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
10827
10948
|
], Question.prototype, "hint", 2);
|
|
10828
10949
|
__decorateClass([
|
|
10829
|
-
(0,
|
|
10950
|
+
(0, import_typeorm68.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
10830
10951
|
], Question.prototype, "slug", 2);
|
|
10831
10952
|
__decorateClass([
|
|
10832
|
-
(0,
|
|
10953
|
+
(0, import_typeorm68.Column)({
|
|
10833
10954
|
name: "question_for",
|
|
10834
10955
|
type: "enum",
|
|
10835
10956
|
enum: QuestionFor,
|
|
@@ -10837,45 +10958,45 @@ __decorateClass([
|
|
|
10837
10958
|
})
|
|
10838
10959
|
], Question.prototype, "questionFor", 2);
|
|
10839
10960
|
__decorateClass([
|
|
10840
|
-
(0,
|
|
10961
|
+
(0, import_typeorm68.Column)({ name: "type", type: "varchar", nullable: true })
|
|
10841
10962
|
], Question.prototype, "type", 2);
|
|
10842
10963
|
__decorateClass([
|
|
10843
|
-
(0,
|
|
10964
|
+
(0, import_typeorm68.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
10844
10965
|
], Question.prototype, "options", 2);
|
|
10845
10966
|
__decorateClass([
|
|
10846
|
-
(0,
|
|
10967
|
+
(0, import_typeorm68.Column)({ name: "is_active", type: "boolean", default: false })
|
|
10847
10968
|
], Question.prototype, "isActive", 2);
|
|
10848
10969
|
Question = __decorateClass([
|
|
10849
|
-
(0,
|
|
10970
|
+
(0, import_typeorm68.Entity)("questions")
|
|
10850
10971
|
], Question);
|
|
10851
10972
|
|
|
10852
10973
|
// src/entities/skill.entity.ts
|
|
10853
|
-
var
|
|
10974
|
+
var import_typeorm69 = require("typeorm");
|
|
10854
10975
|
var Skill = class extends BaseEntity {
|
|
10855
10976
|
};
|
|
10856
10977
|
__decorateClass([
|
|
10857
|
-
(0,
|
|
10978
|
+
(0, import_typeorm69.Column)({ name: "name", type: "varchar", nullable: true })
|
|
10858
10979
|
], Skill.prototype, "name", 2);
|
|
10859
10980
|
__decorateClass([
|
|
10860
|
-
(0,
|
|
10981
|
+
(0, import_typeorm69.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
10861
10982
|
], Skill.prototype, "slug", 2);
|
|
10862
10983
|
__decorateClass([
|
|
10863
|
-
(0,
|
|
10984
|
+
(0, import_typeorm69.Column)({ name: "is_active", type: "boolean", default: false })
|
|
10864
10985
|
], Skill.prototype, "isActive", 2);
|
|
10865
10986
|
Skill = __decorateClass([
|
|
10866
|
-
(0,
|
|
10987
|
+
(0, import_typeorm69.Entity)("skills")
|
|
10867
10988
|
], Skill);
|
|
10868
10989
|
|
|
10869
10990
|
// src/entities/skill-catalog.entity.ts
|
|
10870
|
-
var
|
|
10991
|
+
var import_typeorm70 = require("typeorm");
|
|
10871
10992
|
var SkillCatalog = class extends BaseEntity {
|
|
10872
10993
|
};
|
|
10873
10994
|
__decorateClass([
|
|
10874
|
-
(0,
|
|
10875
|
-
(0,
|
|
10995
|
+
(0, import_typeorm70.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
10996
|
+
(0, import_typeorm70.Index)()
|
|
10876
10997
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
10877
10998
|
__decorateClass([
|
|
10878
|
-
(0,
|
|
10999
|
+
(0, import_typeorm70.Column)({
|
|
10879
11000
|
name: "aliases",
|
|
10880
11001
|
type: "text",
|
|
10881
11002
|
array: true,
|
|
@@ -10883,20 +11004,20 @@ __decorateClass([
|
|
|
10883
11004
|
})
|
|
10884
11005
|
], SkillCatalog.prototype, "aliases", 2);
|
|
10885
11006
|
__decorateClass([
|
|
10886
|
-
(0,
|
|
11007
|
+
(0, import_typeorm70.Column)({
|
|
10887
11008
|
name: "variations",
|
|
10888
11009
|
type: "jsonb",
|
|
10889
11010
|
default: "{}"
|
|
10890
11011
|
})
|
|
10891
11012
|
], SkillCatalog.prototype, "variations", 2);
|
|
10892
11013
|
__decorateClass([
|
|
10893
|
-
(0,
|
|
11014
|
+
(0, import_typeorm70.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
10894
11015
|
], SkillCatalog.prototype, "category", 2);
|
|
10895
11016
|
__decorateClass([
|
|
10896
|
-
(0,
|
|
11017
|
+
(0, import_typeorm70.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
10897
11018
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
10898
11019
|
__decorateClass([
|
|
10899
|
-
(0,
|
|
11020
|
+
(0, import_typeorm70.Column)({
|
|
10900
11021
|
name: "related_skills",
|
|
10901
11022
|
type: "text",
|
|
10902
11023
|
array: true,
|
|
@@ -10904,111 +11025,111 @@ __decorateClass([
|
|
|
10904
11025
|
})
|
|
10905
11026
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
10906
11027
|
__decorateClass([
|
|
10907
|
-
(0,
|
|
10908
|
-
(0,
|
|
11028
|
+
(0, import_typeorm70.Column)({ name: "usage_count", type: "integer", default: 0 }),
|
|
11029
|
+
(0, import_typeorm70.Index)()
|
|
10909
11030
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
10910
11031
|
__decorateClass([
|
|
10911
|
-
(0,
|
|
11032
|
+
(0, import_typeorm70.Column)({ name: "is_verified", type: "boolean", default: false })
|
|
10912
11033
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
10913
11034
|
__decorateClass([
|
|
10914
|
-
(0,
|
|
11035
|
+
(0, import_typeorm70.Column)({ name: "first_seen_date", type: "date" })
|
|
10915
11036
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
10916
11037
|
__decorateClass([
|
|
10917
|
-
(0,
|
|
11038
|
+
(0, import_typeorm70.Column)({ name: "last_updated_date", type: "date" })
|
|
10918
11039
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
10919
11040
|
__decorateClass([
|
|
10920
|
-
(0,
|
|
11041
|
+
(0, import_typeorm70.Column)({
|
|
10921
11042
|
name: "search_vector",
|
|
10922
11043
|
type: "tsvector",
|
|
10923
11044
|
nullable: true
|
|
10924
11045
|
})
|
|
10925
11046
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
10926
11047
|
SkillCatalog = __decorateClass([
|
|
10927
|
-
(0,
|
|
11048
|
+
(0, import_typeorm70.Entity)("skill_catalogs")
|
|
10928
11049
|
], SkillCatalog);
|
|
10929
11050
|
|
|
10930
11051
|
// src/entities/job-role.entity.ts
|
|
10931
|
-
var
|
|
11052
|
+
var import_typeorm71 = require("typeorm");
|
|
10932
11053
|
var JobRoles = class extends BaseEntity {
|
|
10933
11054
|
};
|
|
10934
11055
|
__decorateClass([
|
|
10935
|
-
(0,
|
|
11056
|
+
(0, import_typeorm71.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
10936
11057
|
], JobRoles.prototype, "slug", 2);
|
|
10937
11058
|
__decorateClass([
|
|
10938
|
-
(0,
|
|
11059
|
+
(0, import_typeorm71.Column)({ name: "name", type: "varchar", nullable: true })
|
|
10939
11060
|
], JobRoles.prototype, "name", 2);
|
|
10940
11061
|
__decorateClass([
|
|
10941
|
-
(0,
|
|
11062
|
+
(0, import_typeorm71.Column)({ name: "is_active", type: "boolean", default: true })
|
|
10942
11063
|
], JobRoles.prototype, "isActive", 2);
|
|
10943
11064
|
JobRoles = __decorateClass([
|
|
10944
|
-
(0,
|
|
11065
|
+
(0, import_typeorm71.Entity)("job_roles")
|
|
10945
11066
|
], JobRoles);
|
|
10946
11067
|
|
|
10947
11068
|
// src/entities/plan.entity.ts
|
|
10948
|
-
var
|
|
11069
|
+
var import_typeorm73 = require("typeorm");
|
|
10949
11070
|
|
|
10950
11071
|
// src/entities/feature.entity.ts
|
|
10951
|
-
var
|
|
11072
|
+
var import_typeorm72 = require("typeorm");
|
|
10952
11073
|
var Feature = class extends BaseEntity {
|
|
10953
11074
|
};
|
|
10954
11075
|
__decorateClass([
|
|
10955
|
-
(0,
|
|
11076
|
+
(0, import_typeorm72.Column)({ name: "name", type: "varchar", unique: true })
|
|
10956
11077
|
], Feature.prototype, "name", 2);
|
|
10957
11078
|
__decorateClass([
|
|
10958
|
-
(0,
|
|
11079
|
+
(0, import_typeorm72.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
10959
11080
|
], Feature.prototype, "plans", 2);
|
|
10960
11081
|
Feature = __decorateClass([
|
|
10961
|
-
(0,
|
|
11082
|
+
(0, import_typeorm72.Entity)("features")
|
|
10962
11083
|
], Feature);
|
|
10963
11084
|
|
|
10964
11085
|
// src/entities/plan.entity.ts
|
|
10965
11086
|
var Plan = class extends BaseEntity {
|
|
10966
11087
|
};
|
|
10967
11088
|
__decorateClass([
|
|
10968
|
-
(0,
|
|
11089
|
+
(0, import_typeorm73.Column)({ name: "name", type: "varchar", unique: true })
|
|
10969
11090
|
], Plan.prototype, "name", 2);
|
|
10970
11091
|
__decorateClass([
|
|
10971
|
-
(0,
|
|
11092
|
+
(0, import_typeorm73.Column)({ name: "description", type: "varchar", nullable: true })
|
|
10972
11093
|
], Plan.prototype, "description", 2);
|
|
10973
11094
|
__decorateClass([
|
|
10974
|
-
(0,
|
|
11095
|
+
(0, import_typeorm73.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
10975
11096
|
], Plan.prototype, "price", 2);
|
|
10976
11097
|
__decorateClass([
|
|
10977
|
-
(0,
|
|
11098
|
+
(0, import_typeorm73.Column)({ name: "billing_period", type: "varchar" })
|
|
10978
11099
|
], Plan.prototype, "billingPeriod", 2);
|
|
10979
11100
|
__decorateClass([
|
|
10980
|
-
(0,
|
|
11101
|
+
(0, import_typeorm73.Column)({ name: "is_current", type: "boolean", default: false })
|
|
10981
11102
|
], Plan.prototype, "isCurrent", 2);
|
|
10982
11103
|
__decorateClass([
|
|
10983
|
-
(0,
|
|
10984
|
-
(0,
|
|
11104
|
+
(0, import_typeorm73.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
11105
|
+
(0, import_typeorm73.JoinTable)()
|
|
10985
11106
|
], Plan.prototype, "features", 2);
|
|
10986
11107
|
Plan = __decorateClass([
|
|
10987
|
-
(0,
|
|
11108
|
+
(0, import_typeorm73.Entity)("plans")
|
|
10988
11109
|
], Plan);
|
|
10989
11110
|
|
|
10990
11111
|
// src/entities/cms.entity.ts
|
|
10991
|
-
var
|
|
11112
|
+
var import_typeorm74 = require("typeorm");
|
|
10992
11113
|
var Cms = class extends BaseEntity {
|
|
10993
11114
|
};
|
|
10994
11115
|
__decorateClass([
|
|
10995
|
-
(0,
|
|
11116
|
+
(0, import_typeorm74.Column)({ name: "title", type: "varchar", nullable: true })
|
|
10996
11117
|
], Cms.prototype, "title", 2);
|
|
10997
11118
|
__decorateClass([
|
|
10998
|
-
(0,
|
|
11119
|
+
(0, import_typeorm74.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
10999
11120
|
], Cms.prototype, "slug", 2);
|
|
11000
11121
|
__decorateClass([
|
|
11001
|
-
(0,
|
|
11122
|
+
(0, import_typeorm74.Column)({ name: "content", type: "varchar", nullable: true })
|
|
11002
11123
|
], Cms.prototype, "content", 2);
|
|
11003
11124
|
__decorateClass([
|
|
11004
|
-
(0,
|
|
11125
|
+
(0, import_typeorm74.Column)({ name: "is_active", type: "boolean", default: true })
|
|
11005
11126
|
], Cms.prototype, "isActive", 2);
|
|
11006
11127
|
Cms = __decorateClass([
|
|
11007
|
-
(0,
|
|
11128
|
+
(0, import_typeorm74.Entity)("cms")
|
|
11008
11129
|
], Cms);
|
|
11009
11130
|
|
|
11010
11131
|
// src/entities/lead.entity.ts
|
|
11011
|
-
var
|
|
11132
|
+
var import_typeorm75 = require("typeorm");
|
|
11012
11133
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
11013
11134
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
11014
11135
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -11017,22 +11138,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
11017
11138
|
var Lead = class extends BaseEntity {
|
|
11018
11139
|
};
|
|
11019
11140
|
__decorateClass([
|
|
11020
|
-
(0,
|
|
11141
|
+
(0, import_typeorm75.Column)({ name: "name", type: "varchar", nullable: true })
|
|
11021
11142
|
], Lead.prototype, "name", 2);
|
|
11022
11143
|
__decorateClass([
|
|
11023
|
-
(0,
|
|
11144
|
+
(0, import_typeorm75.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
11024
11145
|
], Lead.prototype, "mobileCode", 2);
|
|
11025
11146
|
__decorateClass([
|
|
11026
|
-
(0,
|
|
11147
|
+
(0, import_typeorm75.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
11027
11148
|
], Lead.prototype, "mobile", 2);
|
|
11028
11149
|
__decorateClass([
|
|
11029
|
-
(0,
|
|
11150
|
+
(0, import_typeorm75.Column)({ name: "email", type: "varchar", nullable: true })
|
|
11030
11151
|
], Lead.prototype, "email", 2);
|
|
11031
11152
|
__decorateClass([
|
|
11032
|
-
(0,
|
|
11153
|
+
(0, import_typeorm75.Column)({ name: "description", type: "varchar", nullable: true })
|
|
11033
11154
|
], Lead.prototype, "description", 2);
|
|
11034
11155
|
__decorateClass([
|
|
11035
|
-
(0,
|
|
11156
|
+
(0, import_typeorm75.Column)({
|
|
11036
11157
|
name: "category",
|
|
11037
11158
|
type: "enum",
|
|
11038
11159
|
enum: CategoryEmum,
|
|
@@ -11040,129 +11161,129 @@ __decorateClass([
|
|
|
11040
11161
|
})
|
|
11041
11162
|
], Lead.prototype, "category", 2);
|
|
11042
11163
|
Lead = __decorateClass([
|
|
11043
|
-
(0,
|
|
11164
|
+
(0, import_typeorm75.Entity)("leads")
|
|
11044
11165
|
], Lead);
|
|
11045
11166
|
|
|
11046
11167
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
11047
|
-
var
|
|
11168
|
+
var import_typeorm76 = require("typeorm");
|
|
11048
11169
|
var JobFreelancerRecommendation = class {
|
|
11049
11170
|
};
|
|
11050
11171
|
__decorateClass([
|
|
11051
|
-
(0,
|
|
11172
|
+
(0, import_typeorm76.ViewColumn)({ name: "job_id" })
|
|
11052
11173
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
11053
11174
|
__decorateClass([
|
|
11054
|
-
(0,
|
|
11175
|
+
(0, import_typeorm76.ViewColumn)({ name: "job_uuid" })
|
|
11055
11176
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
11056
11177
|
__decorateClass([
|
|
11057
|
-
(0,
|
|
11178
|
+
(0, import_typeorm76.ViewColumn)({ name: "job_unique_id" })
|
|
11058
11179
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
11059
11180
|
__decorateClass([
|
|
11060
|
-
(0,
|
|
11181
|
+
(0, import_typeorm76.ViewColumn)({ name: "job_role" })
|
|
11061
11182
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
11062
11183
|
__decorateClass([
|
|
11063
|
-
(0,
|
|
11184
|
+
(0, import_typeorm76.ViewColumn)({ name: "job_openings" })
|
|
11064
11185
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
11065
11186
|
__decorateClass([
|
|
11066
|
-
(0,
|
|
11187
|
+
(0, import_typeorm76.ViewColumn)({ name: "job_location" })
|
|
11067
11188
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
11068
11189
|
__decorateClass([
|
|
11069
|
-
(0,
|
|
11190
|
+
(0, import_typeorm76.ViewColumn)({ name: "job_currency" })
|
|
11070
11191
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
11071
11192
|
__decorateClass([
|
|
11072
|
-
(0,
|
|
11193
|
+
(0, import_typeorm76.ViewColumn)({ name: "job_salary_from" })
|
|
11073
11194
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
11074
11195
|
__decorateClass([
|
|
11075
|
-
(0,
|
|
11196
|
+
(0, import_typeorm76.ViewColumn)({ name: "job_salary_to" })
|
|
11076
11197
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
11077
11198
|
__decorateClass([
|
|
11078
|
-
(0,
|
|
11199
|
+
(0, import_typeorm76.ViewColumn)({ name: "job_employment_type" })
|
|
11079
11200
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
11080
11201
|
__decorateClass([
|
|
11081
|
-
(0,
|
|
11202
|
+
(0, import_typeorm76.ViewColumn)({ name: "application_received" })
|
|
11082
11203
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
11083
11204
|
__decorateClass([
|
|
11084
|
-
(0,
|
|
11205
|
+
(0, import_typeorm76.ViewColumn)({ name: "job_posted_at" })
|
|
11085
11206
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
11086
11207
|
__decorateClass([
|
|
11087
|
-
(0,
|
|
11208
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_id" })
|
|
11088
11209
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
11089
11210
|
__decorateClass([
|
|
11090
|
-
(0,
|
|
11211
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_uuid" })
|
|
11091
11212
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
11092
11213
|
__decorateClass([
|
|
11093
|
-
(0,
|
|
11214
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_unique_id" })
|
|
11094
11215
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
11095
11216
|
__decorateClass([
|
|
11096
|
-
(0,
|
|
11217
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_first_name" })
|
|
11097
11218
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
11098
11219
|
__decorateClass([
|
|
11099
|
-
(0,
|
|
11220
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_last_name" })
|
|
11100
11221
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
11101
11222
|
__decorateClass([
|
|
11102
|
-
(0,
|
|
11223
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_email" })
|
|
11103
11224
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
11104
11225
|
__decorateClass([
|
|
11105
|
-
(0,
|
|
11226
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
11106
11227
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
11107
11228
|
__decorateClass([
|
|
11108
|
-
(0,
|
|
11229
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_is_social" })
|
|
11109
11230
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
11110
11231
|
__decorateClass([
|
|
11111
|
-
(0,
|
|
11232
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_created_at" })
|
|
11112
11233
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
11113
11234
|
__decorateClass([
|
|
11114
|
-
(0,
|
|
11235
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_designation" })
|
|
11115
11236
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
11116
11237
|
__decorateClass([
|
|
11117
|
-
(0,
|
|
11238
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_experience" })
|
|
11118
11239
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
11119
11240
|
__decorateClass([
|
|
11120
|
-
(0,
|
|
11241
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
11121
11242
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
11122
11243
|
__decorateClass([
|
|
11123
|
-
(0,
|
|
11244
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
11124
11245
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
11125
11246
|
__decorateClass([
|
|
11126
|
-
(0,
|
|
11247
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_country_name" })
|
|
11127
11248
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
11128
11249
|
__decorateClass([
|
|
11129
|
-
(0,
|
|
11250
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
11130
11251
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
11131
11252
|
__decorateClass([
|
|
11132
|
-
(0,
|
|
11253
|
+
(0, import_typeorm76.ViewColumn)({ name: "client_id" })
|
|
11133
11254
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
11134
11255
|
__decorateClass([
|
|
11135
|
-
(0,
|
|
11256
|
+
(0, import_typeorm76.ViewColumn)({ name: "client_uuid" })
|
|
11136
11257
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
11137
11258
|
__decorateClass([
|
|
11138
|
-
(0,
|
|
11259
|
+
(0, import_typeorm76.ViewColumn)({ name: "client_first_name" })
|
|
11139
11260
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
11140
11261
|
__decorateClass([
|
|
11141
|
-
(0,
|
|
11262
|
+
(0, import_typeorm76.ViewColumn)({ name: "client_last_name" })
|
|
11142
11263
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
11143
11264
|
__decorateClass([
|
|
11144
|
-
(0,
|
|
11265
|
+
(0, import_typeorm76.ViewColumn)({ name: "client_email" })
|
|
11145
11266
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
11146
11267
|
__decorateClass([
|
|
11147
|
-
(0,
|
|
11268
|
+
(0, import_typeorm76.ViewColumn)({ name: "client_company_logo" })
|
|
11148
11269
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
11149
11270
|
__decorateClass([
|
|
11150
|
-
(0,
|
|
11271
|
+
(0, import_typeorm76.ViewColumn)({ name: "client_company_name" })
|
|
11151
11272
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
11152
11273
|
__decorateClass([
|
|
11153
|
-
(0,
|
|
11274
|
+
(0, import_typeorm76.ViewColumn)({ name: "matching_skills" })
|
|
11154
11275
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
11155
11276
|
__decorateClass([
|
|
11156
|
-
(0,
|
|
11277
|
+
(0, import_typeorm76.ViewColumn)({ name: "matching_skills_count" })
|
|
11157
11278
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
11158
11279
|
__decorateClass([
|
|
11159
|
-
(0,
|
|
11280
|
+
(0, import_typeorm76.ViewColumn)({ name: "required_skills" })
|
|
11160
11281
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
11161
11282
|
__decorateClass([
|
|
11162
|
-
(0,
|
|
11283
|
+
(0, import_typeorm76.ViewColumn)({ name: "required_skills_count" })
|
|
11163
11284
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
11164
11285
|
JobFreelancerRecommendation = __decorateClass([
|
|
11165
|
-
(0,
|
|
11286
|
+
(0, import_typeorm76.ViewEntity)({
|
|
11166
11287
|
name: "job_freelancer_recommendations",
|
|
11167
11288
|
materialized: true,
|
|
11168
11289
|
synchronize: false
|
|
@@ -11171,32 +11292,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
11171
11292
|
], JobFreelancerRecommendation);
|
|
11172
11293
|
|
|
11173
11294
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
11174
|
-
var
|
|
11295
|
+
var import_typeorm77 = require("typeorm");
|
|
11175
11296
|
var JobFreelancerRecommendationV2 = class {
|
|
11176
11297
|
};
|
|
11177
11298
|
__decorateClass([
|
|
11178
|
-
(0,
|
|
11299
|
+
(0, import_typeorm77.ViewColumn)({ name: "job_id" })
|
|
11179
11300
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
11180
11301
|
__decorateClass([
|
|
11181
|
-
(0,
|
|
11302
|
+
(0, import_typeorm77.ViewColumn)({ name: "job_owner_id" })
|
|
11182
11303
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
11183
11304
|
__decorateClass([
|
|
11184
|
-
(0,
|
|
11305
|
+
(0, import_typeorm77.ViewColumn)({ name: "freelancer_id" })
|
|
11185
11306
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
11186
11307
|
__decorateClass([
|
|
11187
|
-
(0,
|
|
11308
|
+
(0, import_typeorm77.ViewColumn)({ name: "matching_skills" })
|
|
11188
11309
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
11189
11310
|
__decorateClass([
|
|
11190
|
-
(0,
|
|
11311
|
+
(0, import_typeorm77.ViewColumn)({ name: "matching_skills_count" })
|
|
11191
11312
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
11192
11313
|
__decorateClass([
|
|
11193
|
-
(0,
|
|
11314
|
+
(0, import_typeorm77.ViewColumn)({ name: "required_skills" })
|
|
11194
11315
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
11195
11316
|
__decorateClass([
|
|
11196
|
-
(0,
|
|
11317
|
+
(0, import_typeorm77.ViewColumn)({ name: "required_skills_count" })
|
|
11197
11318
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
11198
11319
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
11199
|
-
(0,
|
|
11320
|
+
(0, import_typeorm77.ViewEntity)({
|
|
11200
11321
|
name: "job_freelancer_recommendations_v2",
|
|
11201
11322
|
materialized: true,
|
|
11202
11323
|
synchronize: false
|
|
@@ -11205,74 +11326,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
11205
11326
|
], JobFreelancerRecommendationV2);
|
|
11206
11327
|
|
|
11207
11328
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
11208
|
-
var
|
|
11329
|
+
var import_typeorm78 = require("typeorm");
|
|
11209
11330
|
var ClientFreelancerRecommendation = class {
|
|
11210
11331
|
};
|
|
11211
11332
|
__decorateClass([
|
|
11212
|
-
(0,
|
|
11333
|
+
(0, import_typeorm78.ViewColumn)({ name: "client_id" })
|
|
11213
11334
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
11214
11335
|
__decorateClass([
|
|
11215
|
-
(0,
|
|
11336
|
+
(0, import_typeorm78.ViewColumn)({ name: "client_uuid" })
|
|
11216
11337
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
11217
11338
|
__decorateClass([
|
|
11218
|
-
(0,
|
|
11339
|
+
(0, import_typeorm78.ViewColumn)({ name: "freelancer_id" })
|
|
11219
11340
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
11220
11341
|
__decorateClass([
|
|
11221
|
-
(0,
|
|
11342
|
+
(0, import_typeorm78.ViewColumn)({ name: "freelancer_uuid" })
|
|
11222
11343
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
11223
11344
|
__decorateClass([
|
|
11224
|
-
(0,
|
|
11345
|
+
(0, import_typeorm78.ViewColumn)({ name: "freelancer_unique_id" })
|
|
11225
11346
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
11226
11347
|
__decorateClass([
|
|
11227
|
-
(0,
|
|
11348
|
+
(0, import_typeorm78.ViewColumn)({ name: "freelancer_first_name" })
|
|
11228
11349
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
11229
11350
|
__decorateClass([
|
|
11230
|
-
(0,
|
|
11351
|
+
(0, import_typeorm78.ViewColumn)({ name: "freelancer_last_name" })
|
|
11231
11352
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
11232
11353
|
__decorateClass([
|
|
11233
|
-
(0,
|
|
11354
|
+
(0, import_typeorm78.ViewColumn)({ name: "freelancer_email" })
|
|
11234
11355
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
11235
11356
|
__decorateClass([
|
|
11236
|
-
(0,
|
|
11357
|
+
(0, import_typeorm78.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
11237
11358
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
11238
11359
|
__decorateClass([
|
|
11239
|
-
(0,
|
|
11360
|
+
(0, import_typeorm78.ViewColumn)({ name: "freelancer_is_social" })
|
|
11240
11361
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
11241
11362
|
__decorateClass([
|
|
11242
|
-
(0,
|
|
11363
|
+
(0, import_typeorm78.ViewColumn)({ name: "freelancer_created_at" })
|
|
11243
11364
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
11244
11365
|
__decorateClass([
|
|
11245
|
-
(0,
|
|
11366
|
+
(0, import_typeorm78.ViewColumn)({ name: "freelancer_designation" })
|
|
11246
11367
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
11247
11368
|
__decorateClass([
|
|
11248
|
-
(0,
|
|
11369
|
+
(0, import_typeorm78.ViewColumn)({ name: "freelancer_experience" })
|
|
11249
11370
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
11250
11371
|
__decorateClass([
|
|
11251
|
-
(0,
|
|
11372
|
+
(0, import_typeorm78.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
11252
11373
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
11253
11374
|
__decorateClass([
|
|
11254
|
-
(0,
|
|
11375
|
+
(0, import_typeorm78.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
11255
11376
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
11256
11377
|
__decorateClass([
|
|
11257
|
-
(0,
|
|
11378
|
+
(0, import_typeorm78.ViewColumn)({ name: "freelancer_country_name" })
|
|
11258
11379
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
11259
11380
|
__decorateClass([
|
|
11260
|
-
(0,
|
|
11381
|
+
(0, import_typeorm78.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
11261
11382
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
11262
11383
|
__decorateClass([
|
|
11263
|
-
(0,
|
|
11384
|
+
(0, import_typeorm78.ViewColumn)({ name: "matching_skills" })
|
|
11264
11385
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
11265
11386
|
__decorateClass([
|
|
11266
|
-
(0,
|
|
11387
|
+
(0, import_typeorm78.ViewColumn)({ name: "matching_skills_count" })
|
|
11267
11388
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
11268
11389
|
__decorateClass([
|
|
11269
|
-
(0,
|
|
11390
|
+
(0, import_typeorm78.ViewColumn)({ name: "required_skills" })
|
|
11270
11391
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
11271
11392
|
__decorateClass([
|
|
11272
|
-
(0,
|
|
11393
|
+
(0, import_typeorm78.ViewColumn)({ name: "required_skills_count" })
|
|
11273
11394
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
11274
11395
|
ClientFreelancerRecommendation = __decorateClass([
|
|
11275
|
-
(0,
|
|
11396
|
+
(0, import_typeorm78.ViewEntity)({
|
|
11276
11397
|
name: "client_freelancer_recommendations",
|
|
11277
11398
|
materialized: true,
|
|
11278
11399
|
synchronize: false
|
|
@@ -11281,7 +11402,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
11281
11402
|
], ClientFreelancerRecommendation);
|
|
11282
11403
|
|
|
11283
11404
|
// src/entities/commission.entity.ts
|
|
11284
|
-
var
|
|
11405
|
+
var import_typeorm79 = require("typeorm");
|
|
11285
11406
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
11286
11407
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
11287
11408
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -11290,7 +11411,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
11290
11411
|
var Commission = class extends BaseEntity {
|
|
11291
11412
|
};
|
|
11292
11413
|
__decorateClass([
|
|
11293
|
-
(0,
|
|
11414
|
+
(0, import_typeorm79.Column)({
|
|
11294
11415
|
name: "freelancer_commission_type",
|
|
11295
11416
|
type: "enum",
|
|
11296
11417
|
enum: CommissionTypeEnum,
|
|
@@ -11298,10 +11419,10 @@ __decorateClass([
|
|
|
11298
11419
|
})
|
|
11299
11420
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
11300
11421
|
__decorateClass([
|
|
11301
|
-
(0,
|
|
11422
|
+
(0, import_typeorm79.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
11302
11423
|
], Commission.prototype, "freelancerCommission", 2);
|
|
11303
11424
|
__decorateClass([
|
|
11304
|
-
(0,
|
|
11425
|
+
(0, import_typeorm79.Column)({
|
|
11305
11426
|
name: "client_commission_type",
|
|
11306
11427
|
type: "enum",
|
|
11307
11428
|
enum: CommissionTypeEnum,
|
|
@@ -11309,141 +11430,48 @@ __decorateClass([
|
|
|
11309
11430
|
})
|
|
11310
11431
|
], Commission.prototype, "clientCommissionType", 2);
|
|
11311
11432
|
__decorateClass([
|
|
11312
|
-
(0,
|
|
11433
|
+
(0, import_typeorm79.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
11313
11434
|
], Commission.prototype, "clientCommission", 2);
|
|
11314
11435
|
Commission = __decorateClass([
|
|
11315
|
-
(0,
|
|
11436
|
+
(0, import_typeorm79.Entity)("commissions")
|
|
11316
11437
|
], Commission);
|
|
11317
11438
|
|
|
11318
11439
|
// src/entities/calendly-meeting-log.entity.ts
|
|
11319
|
-
var
|
|
11440
|
+
var import_typeorm80 = require("typeorm");
|
|
11320
11441
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
11321
11442
|
};
|
|
11322
11443
|
__decorateClass([
|
|
11323
|
-
(0,
|
|
11324
|
-
(0,
|
|
11444
|
+
(0, import_typeorm80.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
11445
|
+
(0, import_typeorm80.Index)()
|
|
11325
11446
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
11326
11447
|
__decorateClass([
|
|
11327
|
-
(0,
|
|
11448
|
+
(0, import_typeorm80.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
11328
11449
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
11329
11450
|
__decorateClass([
|
|
11330
|
-
(0,
|
|
11451
|
+
(0, import_typeorm80.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
11331
11452
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
11332
11453
|
CalendlyMeetingLog = __decorateClass([
|
|
11333
|
-
(0,
|
|
11454
|
+
(0, import_typeorm80.Entity)("calendly_meeting_logs")
|
|
11334
11455
|
], CalendlyMeetingLog);
|
|
11335
11456
|
|
|
11336
11457
|
// src/entities/zoom-meeting-log.entity.ts
|
|
11337
|
-
var
|
|
11458
|
+
var import_typeorm81 = require("typeorm");
|
|
11338
11459
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
11339
11460
|
};
|
|
11340
11461
|
__decorateClass([
|
|
11341
|
-
(0,
|
|
11342
|
-
(0,
|
|
11462
|
+
(0, import_typeorm81.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
11463
|
+
(0, import_typeorm81.Index)()
|
|
11343
11464
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
11344
11465
|
__decorateClass([
|
|
11345
|
-
(0,
|
|
11466
|
+
(0, import_typeorm81.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
11346
11467
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
11347
11468
|
__decorateClass([
|
|
11348
|
-
(0,
|
|
11469
|
+
(0, import_typeorm81.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
11349
11470
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
11350
11471
|
ZoomMeetingLog = __decorateClass([
|
|
11351
|
-
(0,
|
|
11472
|
+
(0, import_typeorm81.Entity)("zoom_meeting_logs")
|
|
11352
11473
|
], ZoomMeetingLog);
|
|
11353
11474
|
|
|
11354
|
-
// src/entities/contract-summary.entity.ts
|
|
11355
|
-
var import_typeorm81 = require("typeorm");
|
|
11356
|
-
var ContractSummaryStatusEnum = /* @__PURE__ */ ((ContractSummaryStatusEnum2) => {
|
|
11357
|
-
ContractSummaryStatusEnum2["PENDING"] = "PENDING";
|
|
11358
|
-
ContractSummaryStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
11359
|
-
ContractSummaryStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
11360
|
-
return ContractSummaryStatusEnum2;
|
|
11361
|
-
})(ContractSummaryStatusEnum || {});
|
|
11362
|
-
var ContractSummary = class extends BaseEntity {
|
|
11363
|
-
};
|
|
11364
|
-
__decorateClass([
|
|
11365
|
-
(0, import_typeorm81.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
11366
|
-
(0, import_typeorm81.Index)()
|
|
11367
|
-
], ContractSummary.prototype, "jobId", 2);
|
|
11368
|
-
__decorateClass([
|
|
11369
|
-
(0, import_typeorm81.ManyToOne)(() => Job, (job) => job.contracts),
|
|
11370
|
-
(0, import_typeorm81.JoinColumn)({ name: "job_id" })
|
|
11371
|
-
], ContractSummary.prototype, "job", 2);
|
|
11372
|
-
__decorateClass([
|
|
11373
|
-
(0, import_typeorm81.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
11374
|
-
(0, import_typeorm81.Index)()
|
|
11375
|
-
], ContractSummary.prototype, "clientId", 2);
|
|
11376
|
-
__decorateClass([
|
|
11377
|
-
(0, import_typeorm81.ManyToOne)(() => User, (user) => user.clientContracts),
|
|
11378
|
-
(0, import_typeorm81.JoinColumn)({ name: "client_id" })
|
|
11379
|
-
], ContractSummary.prototype, "client", 2);
|
|
11380
|
-
__decorateClass([
|
|
11381
|
-
(0, import_typeorm81.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
11382
|
-
(0, import_typeorm81.Index)()
|
|
11383
|
-
], ContractSummary.prototype, "freelancerId", 2);
|
|
11384
|
-
__decorateClass([
|
|
11385
|
-
(0, import_typeorm81.ManyToOne)(() => User, (user) => user.freelancerContracts),
|
|
11386
|
-
(0, import_typeorm81.JoinColumn)({ name: "freelancer_id" })
|
|
11387
|
-
], ContractSummary.prototype, "freelancer", 2);
|
|
11388
|
-
__decorateClass([
|
|
11389
|
-
(0, import_typeorm81.Column)({
|
|
11390
|
-
name: "start_date",
|
|
11391
|
-
type: "timestamp with time zone",
|
|
11392
|
-
nullable: true
|
|
11393
|
-
})
|
|
11394
|
-
], ContractSummary.prototype, "startDate", 2);
|
|
11395
|
-
__decorateClass([
|
|
11396
|
-
(0, import_typeorm81.Column)({
|
|
11397
|
-
name: "end_date",
|
|
11398
|
-
type: "timestamp with time zone",
|
|
11399
|
-
nullable: true
|
|
11400
|
-
})
|
|
11401
|
-
], ContractSummary.prototype, "endDate", 2);
|
|
11402
|
-
__decorateClass([
|
|
11403
|
-
(0, import_typeorm81.Column)({ name: "duration", type: "integer", nullable: true })
|
|
11404
|
-
], ContractSummary.prototype, "duration", 2);
|
|
11405
|
-
__decorateClass([
|
|
11406
|
-
(0, import_typeorm81.Column)({
|
|
11407
|
-
name: "contract_value",
|
|
11408
|
-
type: "decimal",
|
|
11409
|
-
precision: 10,
|
|
11410
|
-
scale: 2,
|
|
11411
|
-
nullable: true
|
|
11412
|
-
})
|
|
11413
|
-
], ContractSummary.prototype, "contractValue", 2);
|
|
11414
|
-
__decorateClass([
|
|
11415
|
-
(0, import_typeorm81.Column)({ name: "invoicing_cycle", type: "varchar", nullable: true })
|
|
11416
|
-
], ContractSummary.prototype, "invoicingCycle", 2);
|
|
11417
|
-
__decorateClass([
|
|
11418
|
-
(0, import_typeorm81.Column)({ name: "is_msa_signed", type: "boolean", default: false })
|
|
11419
|
-
], ContractSummary.prototype, "isMsaSigned", 2);
|
|
11420
|
-
__decorateClass([
|
|
11421
|
-
(0, import_typeorm81.Column)({ name: "is_sow_signed", type: "boolean", default: false })
|
|
11422
|
-
], ContractSummary.prototype, "isSowSigned", 2);
|
|
11423
|
-
__decorateClass([
|
|
11424
|
-
(0, import_typeorm81.Column)({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
11425
|
-
], ContractSummary.prototype, "isEscrowDeposited", 2);
|
|
11426
|
-
__decorateClass([
|
|
11427
|
-
(0, import_typeorm81.Column)({
|
|
11428
|
-
name: "escrow_deposite_amount",
|
|
11429
|
-
type: "decimal",
|
|
11430
|
-
precision: 10,
|
|
11431
|
-
scale: 2,
|
|
11432
|
-
nullable: true
|
|
11433
|
-
})
|
|
11434
|
-
], ContractSummary.prototype, "escrowDepositeAmount", 2);
|
|
11435
|
-
__decorateClass([
|
|
11436
|
-
(0, import_typeorm81.Column)({
|
|
11437
|
-
name: "status",
|
|
11438
|
-
type: "enum",
|
|
11439
|
-
enum: ContractSummaryStatusEnum,
|
|
11440
|
-
nullable: true
|
|
11441
|
-
})
|
|
11442
|
-
], ContractSummary.prototype, "status", 2);
|
|
11443
|
-
ContractSummary = __decorateClass([
|
|
11444
|
-
(0, import_typeorm81.Entity)("contract_summaries")
|
|
11445
|
-
], ContractSummary);
|
|
11446
|
-
|
|
11447
11475
|
// src/entities/stripe-logs.entity.ts
|
|
11448
11476
|
var import_typeorm82 = require("typeorm");
|
|
11449
11477
|
var StripeLog = class extends BaseEntity {
|