@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.mjs
CHANGED
|
@@ -2232,7 +2232,7 @@ import { Entity as Entity65, Column as Column66, ManyToOne as ManyToOne60, JoinC
|
|
|
2232
2232
|
import {
|
|
2233
2233
|
Entity as Entity64,
|
|
2234
2234
|
Column as Column65,
|
|
2235
|
-
OneToMany as
|
|
2235
|
+
OneToMany as OneToMany23,
|
|
2236
2236
|
OneToOne as OneToOne12,
|
|
2237
2237
|
Index as Index57,
|
|
2238
2238
|
ManyToOne as ManyToOne59,
|
|
@@ -3098,7 +3098,7 @@ import {
|
|
|
3098
3098
|
Index as Index26,
|
|
3099
3099
|
ManyToOne as ManyToOne32,
|
|
3100
3100
|
JoinColumn as JoinColumn32,
|
|
3101
|
-
OneToMany as
|
|
3101
|
+
OneToMany as OneToMany14
|
|
3102
3102
|
} from "typeorm";
|
|
3103
3103
|
|
|
3104
3104
|
// src/entities/job-skill.entity.ts
|
|
@@ -4177,7 +4177,7 @@ JobRecommendation = __decorateClass([
|
|
|
4177
4177
|
], JobRecommendation);
|
|
4178
4178
|
|
|
4179
4179
|
// src/entities/contract.entity.ts
|
|
4180
|
-
import { Entity as
|
|
4180
|
+
import { Entity as Entity30, Column as Column31, Index as Index23, ManyToOne as ManyToOne29, JoinColumn as JoinColumn29, OneToOne as OneToOne9 } from "typeorm";
|
|
4181
4181
|
|
|
4182
4182
|
// src/entities/escrow-wallet.entity.ts
|
|
4183
4183
|
import { Entity as Entity28, Column as Column29, Index as Index21, JoinColumn as JoinColumn27, OneToOne as OneToOne8, OneToMany as OneToMany11, ManyToOne as ManyToOne27 } from "typeorm";
|
|
@@ -4670,6 +4670,104 @@ EscrowWallet = __decorateClass([
|
|
|
4670
4670
|
Entity28("escrow_wallets")
|
|
4671
4671
|
], EscrowWallet);
|
|
4672
4672
|
|
|
4673
|
+
// src/entities/contract-summary.entity.ts
|
|
4674
|
+
import { Entity as Entity29, Column as Column30, Index as Index22, ManyToOne as ManyToOne28, JoinColumn as JoinColumn28, OneToMany as OneToMany12 } from "typeorm";
|
|
4675
|
+
var ContractSummaryStatusEnum = /* @__PURE__ */ ((ContractSummaryStatusEnum2) => {
|
|
4676
|
+
ContractSummaryStatusEnum2["PENDING"] = "PENDING";
|
|
4677
|
+
ContractSummaryStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
4678
|
+
ContractSummaryStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
4679
|
+
return ContractSummaryStatusEnum2;
|
|
4680
|
+
})(ContractSummaryStatusEnum || {});
|
|
4681
|
+
var ContractSummary = class extends BaseEntity {
|
|
4682
|
+
};
|
|
4683
|
+
__decorateClass([
|
|
4684
|
+
Column30({ name: "job_id", type: "integer", nullable: true }),
|
|
4685
|
+
Index22()
|
|
4686
|
+
], ContractSummary.prototype, "jobId", 2);
|
|
4687
|
+
__decorateClass([
|
|
4688
|
+
ManyToOne28(() => Job, (job) => job.contracts),
|
|
4689
|
+
JoinColumn28({ name: "job_id" })
|
|
4690
|
+
], ContractSummary.prototype, "job", 2);
|
|
4691
|
+
__decorateClass([
|
|
4692
|
+
Column30({ name: "client_id", type: "integer", nullable: true }),
|
|
4693
|
+
Index22()
|
|
4694
|
+
], ContractSummary.prototype, "clientId", 2);
|
|
4695
|
+
__decorateClass([
|
|
4696
|
+
ManyToOne28(() => User, (user) => user.clientContracts),
|
|
4697
|
+
JoinColumn28({ name: "client_id" })
|
|
4698
|
+
], ContractSummary.prototype, "client", 2);
|
|
4699
|
+
__decorateClass([
|
|
4700
|
+
Column30({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4701
|
+
Index22()
|
|
4702
|
+
], ContractSummary.prototype, "freelancerId", 2);
|
|
4703
|
+
__decorateClass([
|
|
4704
|
+
ManyToOne28(() => User, (user) => user.freelancerContracts),
|
|
4705
|
+
JoinColumn28({ name: "freelancer_id" })
|
|
4706
|
+
], ContractSummary.prototype, "freelancer", 2);
|
|
4707
|
+
__decorateClass([
|
|
4708
|
+
Column30({
|
|
4709
|
+
name: "start_date",
|
|
4710
|
+
type: "timestamp with time zone",
|
|
4711
|
+
nullable: true
|
|
4712
|
+
})
|
|
4713
|
+
], ContractSummary.prototype, "startDate", 2);
|
|
4714
|
+
__decorateClass([
|
|
4715
|
+
Column30({
|
|
4716
|
+
name: "end_date",
|
|
4717
|
+
type: "timestamp with time zone",
|
|
4718
|
+
nullable: true
|
|
4719
|
+
})
|
|
4720
|
+
], ContractSummary.prototype, "endDate", 2);
|
|
4721
|
+
__decorateClass([
|
|
4722
|
+
Column30({ name: "duration", type: "integer", nullable: true })
|
|
4723
|
+
], ContractSummary.prototype, "duration", 2);
|
|
4724
|
+
__decorateClass([
|
|
4725
|
+
Column30({
|
|
4726
|
+
name: "contract_value",
|
|
4727
|
+
type: "decimal",
|
|
4728
|
+
precision: 10,
|
|
4729
|
+
scale: 2,
|
|
4730
|
+
nullable: true
|
|
4731
|
+
})
|
|
4732
|
+
], ContractSummary.prototype, "contractValue", 2);
|
|
4733
|
+
__decorateClass([
|
|
4734
|
+
Column30({ name: "invoicing_cycle", type: "varchar", nullable: true })
|
|
4735
|
+
], ContractSummary.prototype, "invoicingCycle", 2);
|
|
4736
|
+
__decorateClass([
|
|
4737
|
+
Column30({ name: "is_msa_signed", type: "boolean", default: false })
|
|
4738
|
+
], ContractSummary.prototype, "isMsaSigned", 2);
|
|
4739
|
+
__decorateClass([
|
|
4740
|
+
Column30({ name: "is_sow_signed", type: "boolean", default: false })
|
|
4741
|
+
], ContractSummary.prototype, "isSowSigned", 2);
|
|
4742
|
+
__decorateClass([
|
|
4743
|
+
Column30({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
4744
|
+
], ContractSummary.prototype, "isEscrowDeposited", 2);
|
|
4745
|
+
__decorateClass([
|
|
4746
|
+
Column30({
|
|
4747
|
+
name: "escrow_deposite_amount",
|
|
4748
|
+
type: "decimal",
|
|
4749
|
+
precision: 10,
|
|
4750
|
+
scale: 2,
|
|
4751
|
+
nullable: true
|
|
4752
|
+
})
|
|
4753
|
+
], ContractSummary.prototype, "escrowDepositeAmount", 2);
|
|
4754
|
+
__decorateClass([
|
|
4755
|
+
Column30({
|
|
4756
|
+
name: "status",
|
|
4757
|
+
type: "enum",
|
|
4758
|
+
enum: ContractSummaryStatusEnum,
|
|
4759
|
+
nullable: true
|
|
4760
|
+
})
|
|
4761
|
+
], ContractSummary.prototype, "status", 2);
|
|
4762
|
+
__decorateClass([
|
|
4763
|
+
OneToMany12(() => Contract, (contract) => contract.contractSummary, {
|
|
4764
|
+
cascade: true
|
|
4765
|
+
})
|
|
4766
|
+
], ContractSummary.prototype, "contracts", 2);
|
|
4767
|
+
ContractSummary = __decorateClass([
|
|
4768
|
+
Entity29("contract_summaries")
|
|
4769
|
+
], ContractSummary);
|
|
4770
|
+
|
|
4673
4771
|
// src/entities/contract.entity.ts
|
|
4674
4772
|
var ContractStatusEnum = /* @__PURE__ */ ((ContractStatusEnum2) => {
|
|
4675
4773
|
ContractStatusEnum2["GENERATED"] = "GENERATED";
|
|
@@ -4694,37 +4792,45 @@ var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
|
|
|
4694
4792
|
var Contract = class extends BaseEntity {
|
|
4695
4793
|
};
|
|
4696
4794
|
__decorateClass([
|
|
4697
|
-
|
|
4795
|
+
Column31({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
|
|
4698
4796
|
], Contract.prototype, "contractUniqueId", 2);
|
|
4699
4797
|
__decorateClass([
|
|
4700
|
-
|
|
4701
|
-
|
|
4798
|
+
Column31({ name: "contract_summary_id", type: "integer", nullable: true }),
|
|
4799
|
+
Index23()
|
|
4800
|
+
], Contract.prototype, "contractSummaryId", 2);
|
|
4801
|
+
__decorateClass([
|
|
4802
|
+
ManyToOne29(() => ContractSummary, (contractSummary) => contractSummary.contracts),
|
|
4803
|
+
JoinColumn29({ name: "contract_summary_id" })
|
|
4804
|
+
], Contract.prototype, "contractSummary", 2);
|
|
4805
|
+
__decorateClass([
|
|
4806
|
+
Column31({ name: "job_id", type: "integer", nullable: true }),
|
|
4807
|
+
Index23()
|
|
4702
4808
|
], Contract.prototype, "jobId", 2);
|
|
4703
4809
|
__decorateClass([
|
|
4704
|
-
|
|
4705
|
-
|
|
4810
|
+
ManyToOne29(() => Job, (job) => job.contracts),
|
|
4811
|
+
JoinColumn29({ name: "job_id" })
|
|
4706
4812
|
], Contract.prototype, "job", 2);
|
|
4707
4813
|
__decorateClass([
|
|
4708
|
-
|
|
4709
|
-
|
|
4814
|
+
Column31({ name: "client_id", type: "integer", nullable: true }),
|
|
4815
|
+
Index23()
|
|
4710
4816
|
], Contract.prototype, "clientId", 2);
|
|
4711
4817
|
__decorateClass([
|
|
4712
|
-
|
|
4713
|
-
|
|
4818
|
+
ManyToOne29(() => User, (user) => user.clientContracts),
|
|
4819
|
+
JoinColumn29({ name: "client_id" })
|
|
4714
4820
|
], Contract.prototype, "client", 2);
|
|
4715
4821
|
__decorateClass([
|
|
4716
|
-
|
|
4717
|
-
|
|
4822
|
+
Column31({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4823
|
+
Index23()
|
|
4718
4824
|
], Contract.prototype, "freelancerId", 2);
|
|
4719
4825
|
__decorateClass([
|
|
4720
|
-
|
|
4721
|
-
|
|
4826
|
+
ManyToOne29(() => User, (user) => user.freelancerContracts),
|
|
4827
|
+
JoinColumn29({ name: "freelancer_id" })
|
|
4722
4828
|
], Contract.prototype, "freelancer", 2);
|
|
4723
4829
|
__decorateClass([
|
|
4724
|
-
|
|
4830
|
+
Column31({ name: "duration", type: "integer", nullable: true })
|
|
4725
4831
|
], Contract.prototype, "duration", 2);
|
|
4726
4832
|
__decorateClass([
|
|
4727
|
-
|
|
4833
|
+
Column31({
|
|
4728
4834
|
name: "status",
|
|
4729
4835
|
type: "enum",
|
|
4730
4836
|
enum: ContractStatusEnum,
|
|
@@ -4732,7 +4838,7 @@ __decorateClass([
|
|
|
4732
4838
|
})
|
|
4733
4839
|
], Contract.prototype, "status", 2);
|
|
4734
4840
|
__decorateClass([
|
|
4735
|
-
|
|
4841
|
+
Column31({
|
|
4736
4842
|
name: "type",
|
|
4737
4843
|
type: "enum",
|
|
4738
4844
|
enum: ContractTypeEnum,
|
|
@@ -4740,10 +4846,10 @@ __decorateClass([
|
|
|
4740
4846
|
})
|
|
4741
4847
|
], Contract.prototype, "type", 2);
|
|
4742
4848
|
__decorateClass([
|
|
4743
|
-
|
|
4849
|
+
Column31({ name: "invoicing_cycle", type: "varchar", nullable: true })
|
|
4744
4850
|
], Contract.prototype, "invoicingCycle", 2);
|
|
4745
4851
|
__decorateClass([
|
|
4746
|
-
|
|
4852
|
+
Column31({
|
|
4747
4853
|
name: "escrow_deposite_amount",
|
|
4748
4854
|
type: "decimal",
|
|
4749
4855
|
precision: 10,
|
|
@@ -4752,83 +4858,83 @@ __decorateClass([
|
|
|
4752
4858
|
})
|
|
4753
4859
|
], Contract.prototype, "escrowDepositeAmount", 2);
|
|
4754
4860
|
__decorateClass([
|
|
4755
|
-
|
|
4861
|
+
Column31({
|
|
4756
4862
|
name: "start_date",
|
|
4757
4863
|
type: "timestamp with time zone",
|
|
4758
4864
|
nullable: true
|
|
4759
4865
|
})
|
|
4760
4866
|
], Contract.prototype, "startDate", 2);
|
|
4761
4867
|
__decorateClass([
|
|
4762
|
-
|
|
4868
|
+
Column31({
|
|
4763
4869
|
name: "end_date",
|
|
4764
4870
|
type: "timestamp with time zone",
|
|
4765
4871
|
nullable: true
|
|
4766
4872
|
})
|
|
4767
4873
|
], Contract.prototype, "endDate", 2);
|
|
4768
4874
|
__decorateClass([
|
|
4769
|
-
|
|
4875
|
+
Column31({ name: "original_document_url", type: "varchar", nullable: true })
|
|
4770
4876
|
], Contract.prototype, "originalDocumentUrl", 2);
|
|
4771
4877
|
__decorateClass([
|
|
4772
|
-
|
|
4878
|
+
Column31({ name: "contract_document_url", type: "varchar", nullable: true })
|
|
4773
4879
|
], Contract.prototype, "contractDocumentUrl", 2);
|
|
4774
4880
|
__decorateClass([
|
|
4775
|
-
|
|
4881
|
+
Column31({
|
|
4776
4882
|
name: "client_signed_at",
|
|
4777
4883
|
type: "timestamp with time zone",
|
|
4778
4884
|
nullable: true
|
|
4779
4885
|
})
|
|
4780
4886
|
], Contract.prototype, "clientSignedAt", 2);
|
|
4781
4887
|
__decorateClass([
|
|
4782
|
-
|
|
4888
|
+
Column31({ name: "freelancer_viewed", type: "boolean", default: false })
|
|
4783
4889
|
], Contract.prototype, "freelancerViewed", 2);
|
|
4784
4890
|
__decorateClass([
|
|
4785
|
-
|
|
4891
|
+
Column31({
|
|
4786
4892
|
name: "freelancer_viewed_at",
|
|
4787
4893
|
type: "timestamp with time zone",
|
|
4788
4894
|
nullable: true
|
|
4789
4895
|
})
|
|
4790
4896
|
], Contract.prototype, "freelancerViewedAt", 2);
|
|
4791
4897
|
__decorateClass([
|
|
4792
|
-
|
|
4898
|
+
Column31({
|
|
4793
4899
|
name: "freelancer_signed_at",
|
|
4794
4900
|
type: "timestamp with time zone",
|
|
4795
4901
|
nullable: true
|
|
4796
4902
|
})
|
|
4797
4903
|
], Contract.prototype, "freelancerSignedAt", 2);
|
|
4798
4904
|
__decorateClass([
|
|
4799
|
-
|
|
4905
|
+
Column31({
|
|
4800
4906
|
name: "rejectd_at",
|
|
4801
4907
|
type: "timestamp with time zone",
|
|
4802
4908
|
nullable: true
|
|
4803
4909
|
})
|
|
4804
4910
|
], Contract.prototype, "rejectedAt", 2);
|
|
4805
4911
|
__decorateClass([
|
|
4806
|
-
|
|
4912
|
+
Column31({ name: "reject_reason", type: "varchar", nullable: true })
|
|
4807
4913
|
], Contract.prototype, "rejectReason", 2);
|
|
4808
4914
|
__decorateClass([
|
|
4809
|
-
|
|
4915
|
+
Column31({ name: "resend_count", type: "integer", default: 0 })
|
|
4810
4916
|
], Contract.prototype, "resendCount", 2);
|
|
4811
4917
|
__decorateClass([
|
|
4812
|
-
|
|
4918
|
+
Column31({ name: "is_work_contract_sent", type: "boolean", default: false })
|
|
4813
4919
|
], Contract.prototype, "isWorkContractSent", 2);
|
|
4814
4920
|
__decorateClass([
|
|
4815
|
-
|
|
4921
|
+
Column31({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
4816
4922
|
], Contract.prototype, "isEscrowDeposited", 2);
|
|
4817
4923
|
__decorateClass([
|
|
4818
|
-
|
|
4924
|
+
Column31({ name: "signature_positions", type: "jsonb", nullable: true })
|
|
4819
4925
|
], Contract.prototype, "signaturePositions", 2);
|
|
4820
4926
|
__decorateClass([
|
|
4821
|
-
|
|
4927
|
+
Column31({ name: "meta_data", type: "jsonb", nullable: true })
|
|
4822
4928
|
], Contract.prototype, "metaData", 2);
|
|
4823
4929
|
__decorateClass([
|
|
4824
4930
|
OneToOne9(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
|
|
4825
4931
|
], Contract.prototype, "escrowWallet", 2);
|
|
4826
4932
|
Contract = __decorateClass([
|
|
4827
|
-
|
|
4933
|
+
Entity30("contracts")
|
|
4828
4934
|
], Contract);
|
|
4829
4935
|
|
|
4830
4936
|
// src/entities/timesheets.entity.ts
|
|
4831
|
-
import { Entity as
|
|
4937
|
+
import { Entity as Entity31, Column as Column32, Index as Index24, JoinColumn as JoinColumn30, ManyToOne as ManyToOne30 } from "typeorm";
|
|
4832
4938
|
var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
4833
4939
|
TimesheetStatusEnum2["DRAFT"] = "DRAFT";
|
|
4834
4940
|
TimesheetStatusEnum2["SEND"] = "SEND";
|
|
@@ -4841,237 +4947,144 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
|
4841
4947
|
var Timesheet = class extends BaseEntity {
|
|
4842
4948
|
};
|
|
4843
4949
|
__decorateClass([
|
|
4844
|
-
|
|
4845
|
-
|
|
4950
|
+
Column32({ name: "job_id", type: "integer", nullable: true }),
|
|
4951
|
+
Index24()
|
|
4846
4952
|
], Timesheet.prototype, "jobId", 2);
|
|
4847
4953
|
__decorateClass([
|
|
4848
|
-
|
|
4849
|
-
|
|
4954
|
+
ManyToOne30(() => Job, (job) => job.timesheets),
|
|
4955
|
+
JoinColumn30({ name: "job_id" })
|
|
4850
4956
|
], Timesheet.prototype, "job", 2);
|
|
4851
4957
|
__decorateClass([
|
|
4852
|
-
|
|
4853
|
-
|
|
4958
|
+
Column32({ name: "client_id", type: "integer", nullable: true }),
|
|
4959
|
+
Index24()
|
|
4854
4960
|
], Timesheet.prototype, "clientId", 2);
|
|
4855
4961
|
__decorateClass([
|
|
4856
|
-
|
|
4857
|
-
|
|
4962
|
+
ManyToOne30(() => User, (user) => user.clientTimesheets),
|
|
4963
|
+
JoinColumn30({ name: "client_id" })
|
|
4858
4964
|
], Timesheet.prototype, "client", 2);
|
|
4859
4965
|
__decorateClass([
|
|
4860
|
-
|
|
4861
|
-
|
|
4966
|
+
Column32({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4967
|
+
Index24()
|
|
4862
4968
|
], Timesheet.prototype, "freelancerId", 2);
|
|
4863
4969
|
__decorateClass([
|
|
4864
|
-
|
|
4865
|
-
|
|
4970
|
+
ManyToOne30(() => User, (user) => user.freelancerTimesheets),
|
|
4971
|
+
JoinColumn30({ name: "freelancer_id" })
|
|
4866
4972
|
], Timesheet.prototype, "freelancer", 2);
|
|
4867
4973
|
__decorateClass([
|
|
4868
|
-
|
|
4974
|
+
Column32({
|
|
4869
4975
|
name: "start_date",
|
|
4870
4976
|
type: "date",
|
|
4871
4977
|
nullable: true
|
|
4872
4978
|
})
|
|
4873
4979
|
], Timesheet.prototype, "startDate", 2);
|
|
4874
4980
|
__decorateClass([
|
|
4875
|
-
|
|
4981
|
+
Column32({
|
|
4876
4982
|
name: "end_date",
|
|
4877
4983
|
type: "date",
|
|
4878
4984
|
nullable: true
|
|
4879
4985
|
})
|
|
4880
4986
|
], Timesheet.prototype, "endDate", 2);
|
|
4881
4987
|
__decorateClass([
|
|
4882
|
-
|
|
4988
|
+
Column32({ name: "start_time", type: "varchar", nullable: true })
|
|
4883
4989
|
], Timesheet.prototype, "startTime", 2);
|
|
4884
4990
|
__decorateClass([
|
|
4885
|
-
|
|
4991
|
+
Column32({ name: "end_time", type: "varchar", nullable: true })
|
|
4886
4992
|
], Timesheet.prototype, "endTime", 2);
|
|
4887
4993
|
__decorateClass([
|
|
4888
|
-
|
|
4994
|
+
Column32({ name: "worked_hours", type: "varchar", nullable: true })
|
|
4889
4995
|
], Timesheet.prototype, "workedHours", 2);
|
|
4890
4996
|
__decorateClass([
|
|
4891
|
-
|
|
4997
|
+
Column32({ name: "task_id", type: "integer", nullable: true })
|
|
4892
4998
|
], Timesheet.prototype, "taskId", 2);
|
|
4893
4999
|
__decorateClass([
|
|
4894
|
-
|
|
5000
|
+
Column32({ name: "task_name", type: "varchar", nullable: true })
|
|
4895
5001
|
], Timesheet.prototype, "taskName", 2);
|
|
4896
5002
|
__decorateClass([
|
|
4897
|
-
|
|
5003
|
+
Column32({ name: "description", type: "varchar", nullable: true })
|
|
4898
5004
|
], Timesheet.prototype, "description", 2);
|
|
4899
5005
|
__decorateClass([
|
|
4900
|
-
|
|
5006
|
+
Column32({ name: "week_start_date", type: "date", nullable: true })
|
|
4901
5007
|
], Timesheet.prototype, "weekStartDate", 2);
|
|
4902
5008
|
__decorateClass([
|
|
4903
|
-
|
|
5009
|
+
Column32({ name: "week_end_date", type: "date", nullable: true })
|
|
4904
5010
|
], Timesheet.prototype, "weekEndDate", 2);
|
|
4905
5011
|
__decorateClass([
|
|
4906
|
-
|
|
5012
|
+
Column32({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
|
|
4907
5013
|
], Timesheet.prototype, "rejectedAt", 2);
|
|
4908
5014
|
__decorateClass([
|
|
4909
|
-
|
|
5015
|
+
Column32({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
|
|
4910
5016
|
], Timesheet.prototype, "submittedAt", 2);
|
|
4911
5017
|
__decorateClass([
|
|
4912
|
-
|
|
5018
|
+
Column32({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
|
|
4913
5019
|
], Timesheet.prototype, "resubmittedAt", 2);
|
|
4914
5020
|
__decorateClass([
|
|
4915
|
-
|
|
5021
|
+
Column32({ name: "approved_at", type: "timestamp with time zone", nullable: true })
|
|
4916
5022
|
], Timesheet.prototype, "approvedAt", 2);
|
|
4917
5023
|
__decorateClass([
|
|
4918
|
-
|
|
5024
|
+
Column32({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
|
|
4919
5025
|
], Timesheet.prototype, "status", 2);
|
|
4920
5026
|
__decorateClass([
|
|
4921
|
-
|
|
5027
|
+
Column32({ name: "client_send_back_reason", type: "varchar", nullable: true })
|
|
4922
5028
|
], Timesheet.prototype, "clientSendBackReason", 2);
|
|
4923
5029
|
Timesheet = __decorateClass([
|
|
4924
|
-
|
|
5030
|
+
Entity31("timesheets")
|
|
4925
5031
|
], Timesheet);
|
|
4926
5032
|
|
|
4927
5033
|
// src/entities/job-location.entity.ts
|
|
4928
5034
|
import {
|
|
4929
|
-
Entity as
|
|
4930
|
-
Column as
|
|
4931
|
-
ManyToOne as
|
|
4932
|
-
JoinColumn as
|
|
4933
|
-
Index as
|
|
5035
|
+
Entity as Entity32,
|
|
5036
|
+
Column as Column33,
|
|
5037
|
+
ManyToOne as ManyToOne31,
|
|
5038
|
+
JoinColumn as JoinColumn31,
|
|
5039
|
+
Index as Index25
|
|
4934
5040
|
} from "typeorm";
|
|
4935
5041
|
var JobLocation = class extends BaseEntity {
|
|
4936
5042
|
};
|
|
4937
5043
|
__decorateClass([
|
|
4938
|
-
|
|
4939
|
-
|
|
5044
|
+
Column33({ name: "job_id", type: "integer", nullable: false }),
|
|
5045
|
+
Index25()
|
|
4940
5046
|
], JobLocation.prototype, "jobId", 2);
|
|
4941
5047
|
__decorateClass([
|
|
4942
|
-
|
|
4943
|
-
|
|
5048
|
+
ManyToOne31(() => Job, (job) => job.jobLocations),
|
|
5049
|
+
JoinColumn31({ name: "job_id" })
|
|
4944
5050
|
], JobLocation.prototype, "job", 2);
|
|
4945
5051
|
__decorateClass([
|
|
4946
|
-
|
|
5052
|
+
Column33({ name: "country_id", type: "int", nullable: false })
|
|
4947
5053
|
], JobLocation.prototype, "countryId", 2);
|
|
4948
5054
|
__decorateClass([
|
|
4949
|
-
|
|
5055
|
+
Column33({ name: "country_name", type: "varchar", nullable: true })
|
|
4950
5056
|
], JobLocation.prototype, "countryName", 2);
|
|
4951
5057
|
__decorateClass([
|
|
4952
|
-
|
|
4953
|
-
|
|
5058
|
+
ManyToOne31(() => Country),
|
|
5059
|
+
JoinColumn31({ name: "country_id" })
|
|
4954
5060
|
], JobLocation.prototype, "country", 2);
|
|
4955
5061
|
__decorateClass([
|
|
4956
|
-
|
|
5062
|
+
Column33({ name: "state_id", type: "int", nullable: false })
|
|
4957
5063
|
], JobLocation.prototype, "stateId", 2);
|
|
4958
5064
|
__decorateClass([
|
|
4959
|
-
|
|
5065
|
+
Column33({ name: "state_name", type: "varchar", nullable: true })
|
|
4960
5066
|
], JobLocation.prototype, "stateName", 2);
|
|
4961
5067
|
__decorateClass([
|
|
4962
|
-
|
|
4963
|
-
|
|
5068
|
+
ManyToOne31(() => State),
|
|
5069
|
+
JoinColumn31({ name: "state_id" })
|
|
4964
5070
|
], JobLocation.prototype, "state", 2);
|
|
4965
5071
|
__decorateClass([
|
|
4966
|
-
|
|
5072
|
+
Column33({ name: "city_id", type: "int", nullable: false })
|
|
4967
5073
|
], JobLocation.prototype, "cityId", 2);
|
|
4968
5074
|
__decorateClass([
|
|
4969
|
-
|
|
5075
|
+
Column33({ name: "city_name", type: "varchar", nullable: true })
|
|
4970
5076
|
], JobLocation.prototype, "cityName", 2);
|
|
4971
5077
|
__decorateClass([
|
|
4972
|
-
|
|
4973
|
-
|
|
5078
|
+
ManyToOne31(() => City),
|
|
5079
|
+
JoinColumn31({ name: "city_id" })
|
|
4974
5080
|
], JobLocation.prototype, "city", 2);
|
|
4975
5081
|
__decorateClass([
|
|
4976
|
-
|
|
5082
|
+
Column33({ name: "location_wise_openings", type: "int", default: 0 })
|
|
4977
5083
|
], JobLocation.prototype, "locationWiseOpenings", 2);
|
|
4978
5084
|
JobLocation = __decorateClass([
|
|
4979
|
-
|
|
5085
|
+
Entity32("job_locations")
|
|
4980
5086
|
], JobLocation);
|
|
4981
5087
|
|
|
4982
|
-
// src/entities/contract-summary.entity.ts
|
|
4983
|
-
import { Entity as Entity32, Column as Column33, Index as Index25, ManyToOne as ManyToOne31, JoinColumn as JoinColumn31 } from "typeorm";
|
|
4984
|
-
var ContractSummaryStatusEnum = /* @__PURE__ */ ((ContractSummaryStatusEnum2) => {
|
|
4985
|
-
ContractSummaryStatusEnum2["PENDING"] = "PENDING";
|
|
4986
|
-
ContractSummaryStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
4987
|
-
ContractSummaryStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
4988
|
-
return ContractSummaryStatusEnum2;
|
|
4989
|
-
})(ContractSummaryStatusEnum || {});
|
|
4990
|
-
var ContractSummary = class extends BaseEntity {
|
|
4991
|
-
};
|
|
4992
|
-
__decorateClass([
|
|
4993
|
-
Column33({ name: "job_id", type: "integer", nullable: true }),
|
|
4994
|
-
Index25()
|
|
4995
|
-
], ContractSummary.prototype, "jobId", 2);
|
|
4996
|
-
__decorateClass([
|
|
4997
|
-
ManyToOne31(() => Job, (job) => job.contracts),
|
|
4998
|
-
JoinColumn31({ name: "job_id" })
|
|
4999
|
-
], ContractSummary.prototype, "job", 2);
|
|
5000
|
-
__decorateClass([
|
|
5001
|
-
Column33({ name: "client_id", type: "integer", nullable: true }),
|
|
5002
|
-
Index25()
|
|
5003
|
-
], ContractSummary.prototype, "clientId", 2);
|
|
5004
|
-
__decorateClass([
|
|
5005
|
-
ManyToOne31(() => User, (user) => user.clientContracts),
|
|
5006
|
-
JoinColumn31({ name: "client_id" })
|
|
5007
|
-
], ContractSummary.prototype, "client", 2);
|
|
5008
|
-
__decorateClass([
|
|
5009
|
-
Column33({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5010
|
-
Index25()
|
|
5011
|
-
], ContractSummary.prototype, "freelancerId", 2);
|
|
5012
|
-
__decorateClass([
|
|
5013
|
-
ManyToOne31(() => User, (user) => user.freelancerContracts),
|
|
5014
|
-
JoinColumn31({ name: "freelancer_id" })
|
|
5015
|
-
], ContractSummary.prototype, "freelancer", 2);
|
|
5016
|
-
__decorateClass([
|
|
5017
|
-
Column33({
|
|
5018
|
-
name: "start_date",
|
|
5019
|
-
type: "timestamp with time zone",
|
|
5020
|
-
nullable: true
|
|
5021
|
-
})
|
|
5022
|
-
], ContractSummary.prototype, "startDate", 2);
|
|
5023
|
-
__decorateClass([
|
|
5024
|
-
Column33({
|
|
5025
|
-
name: "end_date",
|
|
5026
|
-
type: "timestamp with time zone",
|
|
5027
|
-
nullable: true
|
|
5028
|
-
})
|
|
5029
|
-
], ContractSummary.prototype, "endDate", 2);
|
|
5030
|
-
__decorateClass([
|
|
5031
|
-
Column33({ name: "duration", type: "integer", nullable: true })
|
|
5032
|
-
], ContractSummary.prototype, "duration", 2);
|
|
5033
|
-
__decorateClass([
|
|
5034
|
-
Column33({
|
|
5035
|
-
name: "contract_value",
|
|
5036
|
-
type: "decimal",
|
|
5037
|
-
precision: 10,
|
|
5038
|
-
scale: 2,
|
|
5039
|
-
nullable: true
|
|
5040
|
-
})
|
|
5041
|
-
], ContractSummary.prototype, "contractValue", 2);
|
|
5042
|
-
__decorateClass([
|
|
5043
|
-
Column33({ name: "invoicing_cycle", type: "varchar", nullable: true })
|
|
5044
|
-
], ContractSummary.prototype, "invoicingCycle", 2);
|
|
5045
|
-
__decorateClass([
|
|
5046
|
-
Column33({ name: "is_msa_signed", type: "boolean", default: false })
|
|
5047
|
-
], ContractSummary.prototype, "isMsaSigned", 2);
|
|
5048
|
-
__decorateClass([
|
|
5049
|
-
Column33({ name: "is_sow_signed", type: "boolean", default: false })
|
|
5050
|
-
], ContractSummary.prototype, "isSowSigned", 2);
|
|
5051
|
-
__decorateClass([
|
|
5052
|
-
Column33({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
5053
|
-
], ContractSummary.prototype, "isEscrowDeposited", 2);
|
|
5054
|
-
__decorateClass([
|
|
5055
|
-
Column33({
|
|
5056
|
-
name: "escrow_deposite_amount",
|
|
5057
|
-
type: "decimal",
|
|
5058
|
-
precision: 10,
|
|
5059
|
-
scale: 2,
|
|
5060
|
-
nullable: true
|
|
5061
|
-
})
|
|
5062
|
-
], ContractSummary.prototype, "escrowDepositeAmount", 2);
|
|
5063
|
-
__decorateClass([
|
|
5064
|
-
Column33({
|
|
5065
|
-
name: "status",
|
|
5066
|
-
type: "enum",
|
|
5067
|
-
enum: ContractSummaryStatusEnum,
|
|
5068
|
-
nullable: true
|
|
5069
|
-
})
|
|
5070
|
-
], ContractSummary.prototype, "status", 2);
|
|
5071
|
-
ContractSummary = __decorateClass([
|
|
5072
|
-
Entity32("contract_summaries")
|
|
5073
|
-
], ContractSummary);
|
|
5074
|
-
|
|
5075
5088
|
// src/entities/job.entity.ts
|
|
5076
5089
|
var JobLocationEnum2 = /* @__PURE__ */ ((JobLocationEnum3) => {
|
|
5077
5090
|
JobLocationEnum3["ONSITE"] = "ONSITE";
|
|
@@ -5363,28 +5376,28 @@ __decorateClass([
|
|
|
5363
5376
|
Column34({ name: "is_interview_created", type: "boolean", default: false })
|
|
5364
5377
|
], Job.prototype, "isInterviewCreated", 2);
|
|
5365
5378
|
__decorateClass([
|
|
5366
|
-
|
|
5379
|
+
OneToMany14(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
5367
5380
|
], Job.prototype, "interviewInvites", 2);
|
|
5368
5381
|
__decorateClass([
|
|
5369
|
-
|
|
5382
|
+
OneToMany14(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
5370
5383
|
], Job.prototype, "jobSkills", 2);
|
|
5371
5384
|
__decorateClass([
|
|
5372
|
-
|
|
5385
|
+
OneToMany14(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
5373
5386
|
cascade: true
|
|
5374
5387
|
})
|
|
5375
5388
|
], Job.prototype, "jobApplications", 2);
|
|
5376
5389
|
__decorateClass([
|
|
5377
|
-
|
|
5390
|
+
OneToMany14(() => Interview, (interview) => interview.job, {
|
|
5378
5391
|
cascade: true
|
|
5379
5392
|
})
|
|
5380
5393
|
], Job.prototype, "interviews", 2);
|
|
5381
5394
|
__decorateClass([
|
|
5382
|
-
|
|
5395
|
+
OneToMany14(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
|
|
5383
5396
|
cascade: true
|
|
5384
5397
|
})
|
|
5385
5398
|
], Job.prototype, "f2fInterviews", 2);
|
|
5386
5399
|
__decorateClass([
|
|
5387
|
-
|
|
5400
|
+
OneToMany14(
|
|
5388
5401
|
() => JobRecommendation,
|
|
5389
5402
|
(jobRecommendation) => jobRecommendation.job,
|
|
5390
5403
|
{
|
|
@@ -5393,50 +5406,50 @@ __decorateClass([
|
|
|
5393
5406
|
)
|
|
5394
5407
|
], Job.prototype, "recommendations", 2);
|
|
5395
5408
|
__decorateClass([
|
|
5396
|
-
|
|
5409
|
+
OneToMany14(() => ContractSummary, (contractSummary) => contractSummary.job, {
|
|
5397
5410
|
cascade: true
|
|
5398
5411
|
})
|
|
5399
5412
|
], Job.prototype, "contractSummaries", 2);
|
|
5400
5413
|
__decorateClass([
|
|
5401
|
-
|
|
5414
|
+
OneToMany14(() => Contract, (contract) => contract.job, {
|
|
5402
5415
|
cascade: true
|
|
5403
5416
|
})
|
|
5404
5417
|
], Job.prototype, "contracts", 2);
|
|
5405
5418
|
__decorateClass([
|
|
5406
|
-
|
|
5419
|
+
OneToMany14(() => Hiring, (hiring) => hiring.job, {
|
|
5407
5420
|
cascade: true
|
|
5408
5421
|
})
|
|
5409
5422
|
], Job.prototype, "hirings", 2);
|
|
5410
5423
|
__decorateClass([
|
|
5411
|
-
|
|
5424
|
+
OneToMany14(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
|
|
5412
5425
|
cascade: true
|
|
5413
5426
|
})
|
|
5414
5427
|
], Job.prototype, "escrowWallets", 2);
|
|
5415
5428
|
__decorateClass([
|
|
5416
|
-
|
|
5429
|
+
OneToMany14(() => Timesheet, (timesheet) => timesheet.job, {
|
|
5417
5430
|
cascade: true
|
|
5418
5431
|
})
|
|
5419
5432
|
], Job.prototype, "timesheets", 2);
|
|
5420
5433
|
__decorateClass([
|
|
5421
|
-
|
|
5434
|
+
OneToMany14(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
|
|
5422
5435
|
cascade: true
|
|
5423
5436
|
})
|
|
5424
5437
|
], Job.prototype, "timesheetLine", 2);
|
|
5425
5438
|
__decorateClass([
|
|
5426
|
-
|
|
5439
|
+
OneToMany14(() => Invoice, (invoice) => invoice.job, {
|
|
5427
5440
|
cascade: true
|
|
5428
5441
|
})
|
|
5429
5442
|
], Job.prototype, "invoice", 2);
|
|
5430
5443
|
__decorateClass([
|
|
5431
|
-
|
|
5444
|
+
OneToMany14(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
|
|
5432
5445
|
], Job.prototype, "clientCandidatePreferences", 2);
|
|
5433
5446
|
__decorateClass([
|
|
5434
|
-
|
|
5447
|
+
OneToMany14(() => JobLocation, (jobLocation) => jobLocation.job, {
|
|
5435
5448
|
cascade: true
|
|
5436
5449
|
})
|
|
5437
5450
|
], Job.prototype, "jobLocations", 2);
|
|
5438
5451
|
__decorateClass([
|
|
5439
|
-
|
|
5452
|
+
OneToMany14(() => Rating, (rating) => rating.job, {
|
|
5440
5453
|
cascade: true
|
|
5441
5454
|
})
|
|
5442
5455
|
], Job.prototype, "ratings", 2);
|
|
@@ -5909,7 +5922,7 @@ import {
|
|
|
5909
5922
|
Index as Index40,
|
|
5910
5923
|
JoinColumn as JoinColumn45,
|
|
5911
5924
|
ManyToOne as ManyToOne45,
|
|
5912
|
-
OneToMany as
|
|
5925
|
+
OneToMany as OneToMany16
|
|
5913
5926
|
} from "typeorm";
|
|
5914
5927
|
|
|
5915
5928
|
// src/entities/company-role-permission.entity.ts
|
|
@@ -5995,7 +6008,7 @@ __decorateClass([
|
|
|
5995
6008
|
Column48({ name: "is_active", type: "boolean", default: true })
|
|
5996
6009
|
], CompanyRole.prototype, "isActive", 2);
|
|
5997
6010
|
__decorateClass([
|
|
5998
|
-
|
|
6011
|
+
OneToMany16(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
5999
6012
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
6000
6013
|
CompanyRole = __decorateClass([
|
|
6001
6014
|
Entity47("company_roles")
|
|
@@ -6037,13 +6050,13 @@ import {
|
|
|
6037
6050
|
} from "typeorm";
|
|
6038
6051
|
|
|
6039
6052
|
// src/entities/assessment-question.entity.ts
|
|
6040
|
-
import { Entity as Entity50, Column as Column51, OneToMany as
|
|
6053
|
+
import { Entity as Entity50, Column as Column51, OneToMany as OneToMany18, Index as Index43, ManyToOne as ManyToOne48, JoinColumn as JoinColumn48 } from "typeorm";
|
|
6041
6054
|
|
|
6042
6055
|
// src/entities/assessment-question-option.entity.ts
|
|
6043
6056
|
import {
|
|
6044
6057
|
Entity as Entity49,
|
|
6045
6058
|
Column as Column50,
|
|
6046
|
-
OneToMany as
|
|
6059
|
+
OneToMany as OneToMany17,
|
|
6047
6060
|
ManyToOne as ManyToOne47,
|
|
6048
6061
|
Index as Index42,
|
|
6049
6062
|
JoinColumn as JoinColumn47
|
|
@@ -6082,7 +6095,7 @@ __decorateClass([
|
|
|
6082
6095
|
Column50({ name: "is_active", type: "boolean", default: true })
|
|
6083
6096
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
6084
6097
|
__decorateClass([
|
|
6085
|
-
|
|
6098
|
+
OneToMany17(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
6086
6099
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
6087
6100
|
AssessmetQuestionOption = __decorateClass([
|
|
6088
6101
|
Entity49("assessment_question_options")
|
|
@@ -6119,10 +6132,10 @@ __decorateClass([
|
|
|
6119
6132
|
JoinColumn48({ name: "candidate_id" })
|
|
6120
6133
|
], AssessmetQuestion.prototype, "candidate", 2);
|
|
6121
6134
|
__decorateClass([
|
|
6122
|
-
|
|
6135
|
+
OneToMany18(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
6123
6136
|
], AssessmetQuestion.prototype, "options", 2);
|
|
6124
6137
|
__decorateClass([
|
|
6125
|
-
|
|
6138
|
+
OneToMany18(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
6126
6139
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
6127
6140
|
AssessmetQuestion = __decorateClass([
|
|
6128
6141
|
Entity50("assessment_questions")
|
|
@@ -6205,13 +6218,13 @@ CompanySkill = __decorateClass([
|
|
|
6205
6218
|
import { Entity as Entity56, Column as Column57, ManyToOne as ManyToOne52, JoinColumn as JoinColumn52 } from "typeorm";
|
|
6206
6219
|
|
|
6207
6220
|
// src/entities/admin-role.entity.ts
|
|
6208
|
-
import { Entity as Entity55, Column as Column56, Index as Index48, OneToMany as
|
|
6221
|
+
import { Entity as Entity55, Column as Column56, Index as Index48, OneToMany as OneToMany21 } from "typeorm";
|
|
6209
6222
|
|
|
6210
6223
|
// src/entities/admin-role-permission.entity.ts
|
|
6211
6224
|
import { Entity as Entity54, Column as Column55, ManyToOne as ManyToOne51, JoinColumn as JoinColumn51 } from "typeorm";
|
|
6212
6225
|
|
|
6213
6226
|
// src/entities/admin-permission.entity.ts
|
|
6214
|
-
import { Entity as Entity53, Column as Column54, Index as Index46, OneToMany as
|
|
6227
|
+
import { Entity as Entity53, Column as Column54, Index as Index46, OneToMany as OneToMany20 } from "typeorm";
|
|
6215
6228
|
var AdminPermission = class extends BaseEntity {
|
|
6216
6229
|
};
|
|
6217
6230
|
__decorateClass([
|
|
@@ -6236,7 +6249,7 @@ __decorateClass([
|
|
|
6236
6249
|
Column54({ name: "is_active", type: "boolean", default: true })
|
|
6237
6250
|
], AdminPermission.prototype, "isActive", 2);
|
|
6238
6251
|
__decorateClass([
|
|
6239
|
-
|
|
6252
|
+
OneToMany20(
|
|
6240
6253
|
() => AdminRolePermission,
|
|
6241
6254
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
6242
6255
|
)
|
|
@@ -6293,13 +6306,13 @@ __decorateClass([
|
|
|
6293
6306
|
Column56({ name: "is_active", type: "boolean", default: true })
|
|
6294
6307
|
], AdminRole.prototype, "isActive", 2);
|
|
6295
6308
|
__decorateClass([
|
|
6296
|
-
|
|
6309
|
+
OneToMany21(
|
|
6297
6310
|
() => AdminRolePermission,
|
|
6298
6311
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
6299
6312
|
)
|
|
6300
6313
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
6301
6314
|
__decorateClass([
|
|
6302
|
-
|
|
6315
|
+
OneToMany21(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
6303
6316
|
], AdminRole.prototype, "userRoles", 2);
|
|
6304
6317
|
AdminRole = __decorateClass([
|
|
6305
6318
|
Entity55("admin_roles")
|
|
@@ -6594,7 +6607,7 @@ StripeTransaction = __decorateClass([
|
|
|
6594
6607
|
], StripeTransaction);
|
|
6595
6608
|
|
|
6596
6609
|
// src/entities/wallet.entity.ts
|
|
6597
|
-
import { Entity as Entity62, Column as Column63, Index as Index55, JoinColumn as JoinColumn58, OneToOne as OneToOne11, OneToMany as
|
|
6610
|
+
import { Entity as Entity62, Column as Column63, Index as Index55, JoinColumn as JoinColumn58, OneToOne as OneToOne11, OneToMany as OneToMany22 } from "typeorm";
|
|
6598
6611
|
|
|
6599
6612
|
// src/entities/wallet-transaction.entity.ts
|
|
6600
6613
|
import { Entity as Entity61, Column as Column62, Index as Index54, ManyToOne as ManyToOne57, JoinColumn as JoinColumn57 } from "typeorm";
|
|
@@ -6700,7 +6713,7 @@ __decorateClass([
|
|
|
6700
6713
|
Column63({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
6701
6714
|
], Wallet.prototype, "stripeMetadata", 2);
|
|
6702
6715
|
__decorateClass([
|
|
6703
|
-
|
|
6716
|
+
OneToMany22(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
6704
6717
|
], Wallet.prototype, "walletTransactions", 2);
|
|
6705
6718
|
Wallet = __decorateClass([
|
|
6706
6719
|
Entity62("wallets")
|
|
@@ -6790,7 +6803,7 @@ __decorateClass([
|
|
|
6790
6803
|
JoinColumn60({ name: "parent_id" })
|
|
6791
6804
|
], User.prototype, "parent", 2);
|
|
6792
6805
|
__decorateClass([
|
|
6793
|
-
|
|
6806
|
+
OneToMany23(() => User, (user) => user.parent)
|
|
6794
6807
|
], User.prototype, "children", 2);
|
|
6795
6808
|
__decorateClass([
|
|
6796
6809
|
Column65({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
@@ -6871,7 +6884,7 @@ __decorateClass([
|
|
|
6871
6884
|
Column65({ name: "set_password_token", type: "varchar", nullable: true })
|
|
6872
6885
|
], User.prototype, "setPasswordToken", 2);
|
|
6873
6886
|
__decorateClass([
|
|
6874
|
-
|
|
6887
|
+
OneToMany23(() => RefreshToken, (token) => token.user)
|
|
6875
6888
|
], User.prototype, "refreshTokens", 2);
|
|
6876
6889
|
__decorateClass([
|
|
6877
6890
|
Column65({
|
|
@@ -6898,28 +6911,28 @@ __decorateClass([
|
|
|
6898
6911
|
Column65({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
6899
6912
|
], User.prototype, "onBoardedBy", 2);
|
|
6900
6913
|
__decorateClass([
|
|
6901
|
-
|
|
6914
|
+
OneToMany23(() => Otp, (otp) => otp.user)
|
|
6902
6915
|
], User.prototype, "otps", 2);
|
|
6903
6916
|
__decorateClass([
|
|
6904
|
-
|
|
6917
|
+
OneToMany23(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
6905
6918
|
], User.prototype, "senseloafLogs", 2);
|
|
6906
6919
|
__decorateClass([
|
|
6907
6920
|
OneToOne12(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
6908
6921
|
], User.prototype, "companyProfile", 2);
|
|
6909
6922
|
__decorateClass([
|
|
6910
|
-
|
|
6923
|
+
OneToMany23(() => CompanySkill, (companySkill) => companySkill.user)
|
|
6911
6924
|
], User.prototype, "companySkills", 2);
|
|
6912
6925
|
__decorateClass([
|
|
6913
|
-
|
|
6926
|
+
OneToMany23(
|
|
6914
6927
|
() => CompanyMemberRole,
|
|
6915
6928
|
(companyMemberRole) => companyMemberRole.user
|
|
6916
6929
|
)
|
|
6917
6930
|
], User.prototype, "companyMemberRoles", 2);
|
|
6918
6931
|
__decorateClass([
|
|
6919
|
-
|
|
6932
|
+
OneToMany23(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
6920
6933
|
], User.prototype, "companyAiInterview", 2);
|
|
6921
6934
|
__decorateClass([
|
|
6922
|
-
|
|
6935
|
+
OneToMany23(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
6923
6936
|
], User.prototype, "clientF2FInterviews", 2);
|
|
6924
6937
|
__decorateClass([
|
|
6925
6938
|
OneToOne12(
|
|
@@ -6931,61 +6944,61 @@ __decorateClass([
|
|
|
6931
6944
|
OneToOne12(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
6932
6945
|
], User.prototype, "freelancerResume", 2);
|
|
6933
6946
|
__decorateClass([
|
|
6934
|
-
|
|
6947
|
+
OneToMany23(
|
|
6935
6948
|
() => FreelancerAssessmentRequest,
|
|
6936
6949
|
(freelancerAssessmentRequest) => freelancerAssessmentRequest.freelancer
|
|
6937
6950
|
)
|
|
6938
6951
|
], User.prototype, "freelancerAssessmentRequests", 2);
|
|
6939
6952
|
__decorateClass([
|
|
6940
|
-
|
|
6953
|
+
OneToMany23(
|
|
6941
6954
|
() => FreelancerAssessmentRequest,
|
|
6942
6955
|
(freelancerAssessment) => freelancerAssessment.approvedBy
|
|
6943
6956
|
)
|
|
6944
6957
|
], User.prototype, "assessmentRequests", 2);
|
|
6945
6958
|
__decorateClass([
|
|
6946
|
-
|
|
6959
|
+
OneToMany23(
|
|
6947
6960
|
() => FreelancerAssessment,
|
|
6948
6961
|
(freelancerAssessment) => freelancerAssessment.user
|
|
6949
6962
|
)
|
|
6950
6963
|
], User.prototype, "assessments", 2);
|
|
6951
6964
|
__decorateClass([
|
|
6952
|
-
|
|
6965
|
+
OneToMany23(
|
|
6953
6966
|
() => AssessmentAnswer,
|
|
6954
6967
|
(assessmentAnswer) => assessmentAnswer.user
|
|
6955
6968
|
)
|
|
6956
6969
|
], User.prototype, "assessmentAnswers", 2);
|
|
6957
6970
|
__decorateClass([
|
|
6958
|
-
|
|
6971
|
+
OneToMany23(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
6959
6972
|
], User.prototype, "freelancerSkills", 2);
|
|
6960
6973
|
__decorateClass([
|
|
6961
|
-
|
|
6974
|
+
OneToMany23(
|
|
6962
6975
|
() => FreelancerExperience,
|
|
6963
6976
|
(freelancerExperience) => freelancerExperience.user
|
|
6964
6977
|
)
|
|
6965
6978
|
], User.prototype, "freelancerExperience", 2);
|
|
6966
6979
|
__decorateClass([
|
|
6967
|
-
|
|
6980
|
+
OneToMany23(
|
|
6968
6981
|
() => FreelancerEducation,
|
|
6969
6982
|
(freelancerEducation) => freelancerEducation.user
|
|
6970
6983
|
)
|
|
6971
6984
|
], User.prototype, "freelancerEducation", 2);
|
|
6972
6985
|
__decorateClass([
|
|
6973
|
-
|
|
6986
|
+
OneToMany23(
|
|
6974
6987
|
() => FreelancerProject,
|
|
6975
6988
|
(freelancerProject) => freelancerProject.user
|
|
6976
6989
|
)
|
|
6977
6990
|
], User.prototype, "freelancerProject", 2);
|
|
6978
6991
|
__decorateClass([
|
|
6979
|
-
|
|
6992
|
+
OneToMany23(
|
|
6980
6993
|
() => FreelancerCaseStudy,
|
|
6981
6994
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
6982
6995
|
)
|
|
6983
6996
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
6984
6997
|
__decorateClass([
|
|
6985
|
-
|
|
6998
|
+
OneToMany23(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
6986
6999
|
], User.prototype, "freelancerTool", 2);
|
|
6987
7000
|
__decorateClass([
|
|
6988
|
-
|
|
7001
|
+
OneToMany23(
|
|
6989
7002
|
() => FreelancerFramework,
|
|
6990
7003
|
(freelancerFramework) => freelancerFramework.user
|
|
6991
7004
|
)
|
|
@@ -6997,131 +7010,131 @@ __decorateClass([
|
|
|
6997
7010
|
)
|
|
6998
7011
|
], User.prototype, "freelancerDeclaration", 2);
|
|
6999
7012
|
__decorateClass([
|
|
7000
|
-
|
|
7013
|
+
OneToMany23(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
7001
7014
|
], User.prototype, "freelancerMcq", 2);
|
|
7002
7015
|
__decorateClass([
|
|
7003
|
-
|
|
7016
|
+
OneToMany23(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
7004
7017
|
], User.prototype, "freelancerAiInterview", 2);
|
|
7005
7018
|
__decorateClass([
|
|
7006
|
-
|
|
7019
|
+
OneToMany23(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
7007
7020
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
7008
7021
|
__decorateClass([
|
|
7009
|
-
|
|
7022
|
+
OneToMany23(
|
|
7010
7023
|
() => F2fInterviewRescheduleRequest,
|
|
7011
7024
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
7012
7025
|
)
|
|
7013
7026
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
7014
7027
|
__decorateClass([
|
|
7015
|
-
|
|
7028
|
+
OneToMany23(
|
|
7016
7029
|
() => AiInterviewRescheduleRequest,
|
|
7017
7030
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.candidate
|
|
7018
7031
|
)
|
|
7019
7032
|
], User.prototype, "freelancerAiInterviewRescheduleRequests", 2);
|
|
7020
7033
|
__decorateClass([
|
|
7021
|
-
|
|
7034
|
+
OneToMany23(
|
|
7022
7035
|
() => AiInterviewRescheduleRequest,
|
|
7023
7036
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.client
|
|
7024
7037
|
)
|
|
7025
7038
|
], User.prototype, "clientAiInterviewRescheduleRequests", 2);
|
|
7026
7039
|
__decorateClass([
|
|
7027
|
-
|
|
7040
|
+
OneToMany23(() => Job, (job) => job.user)
|
|
7028
7041
|
], User.prototype, "jobs", 2);
|
|
7029
7042
|
__decorateClass([
|
|
7030
|
-
|
|
7043
|
+
OneToMany23(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
7031
7044
|
], User.prototype, "jobApplications", 2);
|
|
7032
7045
|
__decorateClass([
|
|
7033
|
-
|
|
7046
|
+
OneToMany23(() => Interview, (interview) => interview.user)
|
|
7034
7047
|
], User.prototype, "interviews", 2);
|
|
7035
7048
|
__decorateClass([
|
|
7036
|
-
|
|
7049
|
+
OneToMany23(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
7037
7050
|
], User.prototype, "bankDetail", 2);
|
|
7038
7051
|
__decorateClass([
|
|
7039
|
-
|
|
7052
|
+
OneToMany23(
|
|
7040
7053
|
() => SystemPreference,
|
|
7041
7054
|
(systemPreference) => systemPreference.user
|
|
7042
7055
|
)
|
|
7043
7056
|
], User.prototype, "systemPreference", 2);
|
|
7044
7057
|
__decorateClass([
|
|
7045
|
-
|
|
7058
|
+
OneToMany23(() => Rating, (rating) => rating.reviewer)
|
|
7046
7059
|
], User.prototype, "givenRatings", 2);
|
|
7047
7060
|
__decorateClass([
|
|
7048
|
-
|
|
7061
|
+
OneToMany23(() => Rating, (rating) => rating.reviewee)
|
|
7049
7062
|
], User.prototype, "receivedRatings", 2);
|
|
7050
7063
|
__decorateClass([
|
|
7051
|
-
|
|
7064
|
+
OneToMany23(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
7052
7065
|
], User.prototype, "adminUserRoles", 2);
|
|
7053
7066
|
__decorateClass([
|
|
7054
|
-
|
|
7067
|
+
OneToMany23(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
|
|
7055
7068
|
cascade: true
|
|
7056
7069
|
})
|
|
7057
7070
|
], User.prototype, "clientContractSummaries", 2);
|
|
7058
7071
|
__decorateClass([
|
|
7059
|
-
|
|
7072
|
+
OneToMany23(() => Contract, (contract) => contract.client)
|
|
7060
7073
|
], User.prototype, "clientContracts", 2);
|
|
7061
7074
|
__decorateClass([
|
|
7062
|
-
|
|
7075
|
+
OneToMany23(() => Hiring, (hiring) => hiring.client)
|
|
7063
7076
|
], User.prototype, "clientHirings", 2);
|
|
7064
7077
|
__decorateClass([
|
|
7065
|
-
|
|
7078
|
+
OneToMany23(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
7066
7079
|
], User.prototype, "clientEscrowWallets", 2);
|
|
7067
7080
|
__decorateClass([
|
|
7068
|
-
|
|
7081
|
+
OneToMany23(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
|
|
7069
7082
|
cascade: true
|
|
7070
7083
|
})
|
|
7071
7084
|
], User.prototype, "freelancerContractSummaries", 2);
|
|
7072
7085
|
__decorateClass([
|
|
7073
|
-
|
|
7086
|
+
OneToMany23(() => Contract, (contract) => contract.freelancer)
|
|
7074
7087
|
], User.prototype, "freelancerContracts", 2);
|
|
7075
7088
|
__decorateClass([
|
|
7076
|
-
|
|
7089
|
+
OneToMany23(() => Hiring, (hiring) => hiring.freelancer)
|
|
7077
7090
|
], User.prototype, "freelancerHirings", 2);
|
|
7078
7091
|
__decorateClass([
|
|
7079
|
-
|
|
7092
|
+
OneToMany23(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
7080
7093
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
7081
7094
|
__decorateClass([
|
|
7082
7095
|
OneToOne12(() => Signature, (signature) => signature.user)
|
|
7083
7096
|
], User.prototype, "signatures", 2);
|
|
7084
7097
|
__decorateClass([
|
|
7085
|
-
|
|
7098
|
+
OneToMany23(() => Timesheet, (timesheet) => timesheet.client)
|
|
7086
7099
|
], User.prototype, "clientTimesheets", 2);
|
|
7087
7100
|
__decorateClass([
|
|
7088
|
-
|
|
7101
|
+
OneToMany23(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
7089
7102
|
], User.prototype, "freelancerTimesheets", 2);
|
|
7090
7103
|
__decorateClass([
|
|
7091
|
-
|
|
7104
|
+
OneToMany23(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
7092
7105
|
], User.prototype, "clientTimesheetLine", 2);
|
|
7093
7106
|
__decorateClass([
|
|
7094
|
-
|
|
7107
|
+
OneToMany23(() => Invoice, (invoice) => invoice.client)
|
|
7095
7108
|
], User.prototype, "clientInvoice", 2);
|
|
7096
7109
|
__decorateClass([
|
|
7097
|
-
|
|
7110
|
+
OneToMany23(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
7098
7111
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
7099
7112
|
__decorateClass([
|
|
7100
|
-
|
|
7113
|
+
OneToMany23(() => Invoice, (invoice) => invoice.freelancer)
|
|
7101
7114
|
], User.prototype, "freelancerInvoice", 2);
|
|
7102
7115
|
__decorateClass([
|
|
7103
|
-
|
|
7116
|
+
OneToMany23(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
7104
7117
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
7105
7118
|
__decorateClass([
|
|
7106
|
-
|
|
7119
|
+
OneToMany23(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
7107
7120
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
7108
7121
|
__decorateClass([
|
|
7109
|
-
|
|
7122
|
+
OneToMany23(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
7110
7123
|
], User.prototype, "initiatedDisputes", 2);
|
|
7111
7124
|
__decorateClass([
|
|
7112
|
-
|
|
7125
|
+
OneToMany23(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
7113
7126
|
], User.prototype, "respondentDisputes", 2);
|
|
7114
7127
|
__decorateClass([
|
|
7115
7128
|
OneToOne12(() => Wallet, (wallet) => wallet.user)
|
|
7116
7129
|
], User.prototype, "wallet", 2);
|
|
7117
7130
|
__decorateClass([
|
|
7118
|
-
|
|
7131
|
+
OneToMany23(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
7119
7132
|
], User.prototype, "stripeTransactions", 2);
|
|
7120
7133
|
__decorateClass([
|
|
7121
|
-
|
|
7134
|
+
OneToMany23(() => Dispute, (dispute) => dispute.client)
|
|
7122
7135
|
], User.prototype, "clientDisputes", 2);
|
|
7123
7136
|
__decorateClass([
|
|
7124
|
-
|
|
7137
|
+
OneToMany23(() => Dispute, (dispute) => dispute.freelancer)
|
|
7125
7138
|
], User.prototype, "freelancerDisputes", 2);
|
|
7126
7139
|
User = __decorateClass([
|
|
7127
7140
|
Entity64("users")
|
|
@@ -10622,20 +10635,24 @@ var WALLET_ADMIN_PATTERN = {
|
|
|
10622
10635
|
};
|
|
10623
10636
|
|
|
10624
10637
|
// src/modules/wallet/dto/add-topup-escrow-amount.dto.ts
|
|
10625
|
-
import { IsNotEmpty as IsNotEmpty118, IsNumber as IsNumber38 } from "class-validator";
|
|
10638
|
+
import { IsNotEmpty as IsNotEmpty118, IsNumber as IsNumber38, IsUUID as IsUUID29 } from "class-validator";
|
|
10626
10639
|
var AddTopupEscrowAmountDto = class {
|
|
10627
10640
|
};
|
|
10628
10641
|
__decorateClass([
|
|
10629
10642
|
IsNotEmpty118({ message: "Amount is required" }),
|
|
10630
10643
|
IsNumber38({}, { message: "Amount must be a number" })
|
|
10631
10644
|
], AddTopupEscrowAmountDto.prototype, "amount", 2);
|
|
10645
|
+
__decorateClass([
|
|
10646
|
+
IsNotEmpty118({ message: "Escrow wallet UUID is required" }),
|
|
10647
|
+
IsUUID29("4", { message: "Escrow wallet UUID must be a valid UUID" })
|
|
10648
|
+
], AddTopupEscrowAmountDto.prototype, "escrowWalletUuid", 2);
|
|
10632
10649
|
|
|
10633
10650
|
// src/modules/wallet/dto/debit-commission-fte-hiring.dto.ts
|
|
10634
|
-
import { IsNotEmpty as IsNotEmpty119, IsUUID as
|
|
10651
|
+
import { IsNotEmpty as IsNotEmpty119, IsUUID as IsUUID30 } from "class-validator";
|
|
10635
10652
|
var DebitCommissionFteHiringDto = class {
|
|
10636
10653
|
};
|
|
10637
10654
|
__decorateClass([
|
|
10638
|
-
|
|
10655
|
+
IsUUID30("4", { message: "Invoice UUID must be a valid UUID." }),
|
|
10639
10656
|
IsNotEmpty119({ message: "Invoice UUID is required." })
|
|
10640
10657
|
], DebitCommissionFteHiringDto.prototype, "invoiceUuid", 2);
|
|
10641
10658
|
|