@experts_hub/shared 1.0.605 → 1.0.607
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/index.d.mts +28 -24
- package/dist/index.d.ts +28 -24
- package/dist/index.js +195 -178
- package/dist/index.mjs +287 -270
- package/dist/modules/wallet/dto/add-topup-escrow-amount.dto.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -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,231 +5124,138 @@ 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
|
-
// src/entities/contract-summary.entity.ts
|
|
5154
|
-
var import_typeorm33 = require("typeorm");
|
|
5155
|
-
var ContractSummaryStatusEnum = /* @__PURE__ */ ((ContractSummaryStatusEnum2) => {
|
|
5156
|
-
ContractSummaryStatusEnum2["PENDING"] = "PENDING";
|
|
5157
|
-
ContractSummaryStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
5158
|
-
ContractSummaryStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
5159
|
-
return ContractSummaryStatusEnum2;
|
|
5160
|
-
})(ContractSummaryStatusEnum || {});
|
|
5161
|
-
var ContractSummary = class extends BaseEntity {
|
|
5162
|
-
};
|
|
5163
|
-
__decorateClass([
|
|
5164
|
-
(0, import_typeorm33.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
5165
|
-
(0, import_typeorm33.Index)()
|
|
5166
|
-
], ContractSummary.prototype, "jobId", 2);
|
|
5167
|
-
__decorateClass([
|
|
5168
|
-
(0, import_typeorm33.ManyToOne)(() => Job, (job) => job.contracts),
|
|
5169
|
-
(0, import_typeorm33.JoinColumn)({ name: "job_id" })
|
|
5170
|
-
], ContractSummary.prototype, "job", 2);
|
|
5171
|
-
__decorateClass([
|
|
5172
|
-
(0, import_typeorm33.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
5173
|
-
(0, import_typeorm33.Index)()
|
|
5174
|
-
], ContractSummary.prototype, "clientId", 2);
|
|
5175
|
-
__decorateClass([
|
|
5176
|
-
(0, import_typeorm33.ManyToOne)(() => User, (user) => user.clientContracts),
|
|
5177
|
-
(0, import_typeorm33.JoinColumn)({ name: "client_id" })
|
|
5178
|
-
], ContractSummary.prototype, "client", 2);
|
|
5179
|
-
__decorateClass([
|
|
5180
|
-
(0, import_typeorm33.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5181
|
-
(0, import_typeorm33.Index)()
|
|
5182
|
-
], ContractSummary.prototype, "freelancerId", 2);
|
|
5183
|
-
__decorateClass([
|
|
5184
|
-
(0, import_typeorm33.ManyToOne)(() => User, (user) => user.freelancerContracts),
|
|
5185
|
-
(0, import_typeorm33.JoinColumn)({ name: "freelancer_id" })
|
|
5186
|
-
], ContractSummary.prototype, "freelancer", 2);
|
|
5187
|
-
__decorateClass([
|
|
5188
|
-
(0, import_typeorm33.Column)({
|
|
5189
|
-
name: "start_date",
|
|
5190
|
-
type: "timestamp with time zone",
|
|
5191
|
-
nullable: true
|
|
5192
|
-
})
|
|
5193
|
-
], ContractSummary.prototype, "startDate", 2);
|
|
5194
|
-
__decorateClass([
|
|
5195
|
-
(0, import_typeorm33.Column)({
|
|
5196
|
-
name: "end_date",
|
|
5197
|
-
type: "timestamp with time zone",
|
|
5198
|
-
nullable: true
|
|
5199
|
-
})
|
|
5200
|
-
], ContractSummary.prototype, "endDate", 2);
|
|
5201
|
-
__decorateClass([
|
|
5202
|
-
(0, import_typeorm33.Column)({ name: "duration", type: "integer", nullable: true })
|
|
5203
|
-
], ContractSummary.prototype, "duration", 2);
|
|
5204
|
-
__decorateClass([
|
|
5205
|
-
(0, import_typeorm33.Column)({
|
|
5206
|
-
name: "contract_value",
|
|
5207
|
-
type: "decimal",
|
|
5208
|
-
precision: 10,
|
|
5209
|
-
scale: 2,
|
|
5210
|
-
nullable: true
|
|
5211
|
-
})
|
|
5212
|
-
], ContractSummary.prototype, "contractValue", 2);
|
|
5213
|
-
__decorateClass([
|
|
5214
|
-
(0, import_typeorm33.Column)({ name: "invoicing_cycle", type: "varchar", nullable: true })
|
|
5215
|
-
], ContractSummary.prototype, "invoicingCycle", 2);
|
|
5216
|
-
__decorateClass([
|
|
5217
|
-
(0, import_typeorm33.Column)({ name: "is_msa_signed", type: "boolean", default: false })
|
|
5218
|
-
], ContractSummary.prototype, "isMsaSigned", 2);
|
|
5219
|
-
__decorateClass([
|
|
5220
|
-
(0, import_typeorm33.Column)({ name: "is_sow_signed", type: "boolean", default: false })
|
|
5221
|
-
], ContractSummary.prototype, "isSowSigned", 2);
|
|
5222
|
-
__decorateClass([
|
|
5223
|
-
(0, import_typeorm33.Column)({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
5224
|
-
], ContractSummary.prototype, "isEscrowDeposited", 2);
|
|
5225
|
-
__decorateClass([
|
|
5226
|
-
(0, import_typeorm33.Column)({
|
|
5227
|
-
name: "escrow_deposite_amount",
|
|
5228
|
-
type: "decimal",
|
|
5229
|
-
precision: 10,
|
|
5230
|
-
scale: 2,
|
|
5231
|
-
nullable: true
|
|
5232
|
-
})
|
|
5233
|
-
], ContractSummary.prototype, "escrowDepositeAmount", 2);
|
|
5234
|
-
__decorateClass([
|
|
5235
|
-
(0, import_typeorm33.Column)({
|
|
5236
|
-
name: "status",
|
|
5237
|
-
type: "enum",
|
|
5238
|
-
enum: ContractSummaryStatusEnum,
|
|
5239
|
-
nullable: true
|
|
5240
|
-
})
|
|
5241
|
-
], ContractSummary.prototype, "status", 2);
|
|
5242
|
-
ContractSummary = __decorateClass([
|
|
5243
|
-
(0, import_typeorm33.Entity)("contract_summaries")
|
|
5244
|
-
], ContractSummary);
|
|
5245
|
-
|
|
5246
5259
|
// src/entities/job.entity.ts
|
|
5247
5260
|
var JobLocationEnum2 = /* @__PURE__ */ ((JobLocationEnum3) => {
|
|
5248
5261
|
JobLocationEnum3["ONSITE"] = "ONSITE";
|
|
@@ -10506,6 +10519,10 @@ __decorateClass([
|
|
|
10506
10519
|
(0, import_class_validator141.IsNotEmpty)({ message: "Amount is required" }),
|
|
10507
10520
|
(0, import_class_validator141.IsNumber)({}, { message: "Amount must be a number" })
|
|
10508
10521
|
], AddTopupEscrowAmountDto.prototype, "amount", 2);
|
|
10522
|
+
__decorateClass([
|
|
10523
|
+
(0, import_class_validator141.IsNotEmpty)({ message: "Escrow wallet UUID is required" }),
|
|
10524
|
+
(0, import_class_validator141.IsUUID)("4", { message: "Escrow wallet UUID must be a valid UUID" })
|
|
10525
|
+
], AddTopupEscrowAmountDto.prototype, "escrowWalletUuid", 2);
|
|
10509
10526
|
|
|
10510
10527
|
// src/modules/wallet/dto/debit-commission-fte-hiring.dto.ts
|
|
10511
10528
|
var import_class_validator142 = require("class-validator");
|