@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.mjs
CHANGED
|
@@ -2226,17 +2226,17 @@ import {
|
|
|
2226
2226
|
} from "class-validator";
|
|
2227
2227
|
|
|
2228
2228
|
// src/entities/rating.entity.ts
|
|
2229
|
-
import { Entity as
|
|
2229
|
+
import { Entity as Entity65, Column as Column66, ManyToOne as ManyToOne60, JoinColumn as JoinColumn61, Index as Index58 } from "typeorm";
|
|
2230
2230
|
|
|
2231
2231
|
// src/entities/user.entity.ts
|
|
2232
2232
|
import {
|
|
2233
|
-
Entity as
|
|
2234
|
-
Column as
|
|
2235
|
-
OneToMany as
|
|
2233
|
+
Entity as Entity64,
|
|
2234
|
+
Column as Column65,
|
|
2235
|
+
OneToMany as OneToMany23,
|
|
2236
2236
|
OneToOne as OneToOne12,
|
|
2237
|
-
Index as
|
|
2238
|
-
ManyToOne as
|
|
2239
|
-
JoinColumn as
|
|
2237
|
+
Index as Index57,
|
|
2238
|
+
ManyToOne as ManyToOne59,
|
|
2239
|
+
JoinColumn as JoinColumn60
|
|
2240
2240
|
} from "typeorm";
|
|
2241
2241
|
|
|
2242
2242
|
// src/entities/base.entity.ts
|
|
@@ -3093,12 +3093,12 @@ FreelancerProfile = __decorateClass([
|
|
|
3093
3093
|
|
|
3094
3094
|
// src/entities/job.entity.ts
|
|
3095
3095
|
import {
|
|
3096
|
-
Entity as
|
|
3097
|
-
Column as
|
|
3098
|
-
Index as
|
|
3099
|
-
ManyToOne as
|
|
3100
|
-
JoinColumn as
|
|
3101
|
-
OneToMany as
|
|
3096
|
+
Entity as Entity33,
|
|
3097
|
+
Column as Column34,
|
|
3098
|
+
Index as Index26,
|
|
3099
|
+
ManyToOne as ManyToOne32,
|
|
3100
|
+
JoinColumn as JoinColumn32,
|
|
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,142 +4947,142 @@ 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
5088
|
// src/entities/job.entity.ts
|
|
@@ -5026,58 +5132,58 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
5026
5132
|
var Job = class extends BaseEntity {
|
|
5027
5133
|
};
|
|
5028
5134
|
__decorateClass([
|
|
5029
|
-
|
|
5135
|
+
Column34({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
5030
5136
|
], Job.prototype, "jobId", 2);
|
|
5031
5137
|
// individual index to find jobs by user
|
|
5032
5138
|
__decorateClass([
|
|
5033
|
-
|
|
5034
|
-
|
|
5139
|
+
Column34({ name: "user_id", type: "integer", nullable: true }),
|
|
5140
|
+
Index26()
|
|
5035
5141
|
], Job.prototype, "userId", 2);
|
|
5036
5142
|
__decorateClass([
|
|
5037
|
-
|
|
5038
|
-
|
|
5143
|
+
ManyToOne32(() => User, (user) => user.jobs),
|
|
5144
|
+
JoinColumn32({ name: "user_id" })
|
|
5039
5145
|
], Job.prototype, "user", 2);
|
|
5040
5146
|
__decorateClass([
|
|
5041
|
-
|
|
5147
|
+
Column34({ name: "country_id", type: "int", nullable: true })
|
|
5042
5148
|
], Job.prototype, "countryId", 2);
|
|
5043
5149
|
__decorateClass([
|
|
5044
|
-
|
|
5045
|
-
|
|
5150
|
+
ManyToOne32(() => Country),
|
|
5151
|
+
JoinColumn32({ name: "country_id" })
|
|
5046
5152
|
], Job.prototype, "country", 2);
|
|
5047
5153
|
__decorateClass([
|
|
5048
|
-
|
|
5154
|
+
Column34({ name: "state_id", type: "int", nullable: true })
|
|
5049
5155
|
], Job.prototype, "stateId", 2);
|
|
5050
5156
|
__decorateClass([
|
|
5051
|
-
|
|
5052
|
-
|
|
5157
|
+
ManyToOne32(() => State),
|
|
5158
|
+
JoinColumn32({ name: "state_id" })
|
|
5053
5159
|
], Job.prototype, "state", 2);
|
|
5054
5160
|
__decorateClass([
|
|
5055
|
-
|
|
5161
|
+
Column34({ name: "city_id", type: "int", nullable: true })
|
|
5056
5162
|
], Job.prototype, "cityId", 2);
|
|
5057
5163
|
__decorateClass([
|
|
5058
|
-
|
|
5059
|
-
|
|
5164
|
+
ManyToOne32(() => City),
|
|
5165
|
+
JoinColumn32({ name: "city_id" })
|
|
5060
5166
|
], Job.prototype, "city", 2);
|
|
5061
5167
|
__decorateClass([
|
|
5062
|
-
|
|
5168
|
+
Column34({ name: "job_role", type: "varchar", nullable: true })
|
|
5063
5169
|
], Job.prototype, "jobRole", 2);
|
|
5064
5170
|
__decorateClass([
|
|
5065
|
-
|
|
5171
|
+
Column34({ name: "job_role_canonical_name", type: "varchar", nullable: true })
|
|
5066
5172
|
], Job.prototype, "jobRoleCanonicalName", 2);
|
|
5067
5173
|
__decorateClass([
|
|
5068
|
-
|
|
5174
|
+
Column34({ name: "project_name", type: "varchar", nullable: true })
|
|
5069
5175
|
], Job.prototype, "projectName", 2);
|
|
5070
5176
|
__decorateClass([
|
|
5071
|
-
|
|
5177
|
+
Column34({ name: "note", type: "varchar", nullable: true })
|
|
5072
5178
|
], Job.prototype, "note", 2);
|
|
5073
5179
|
__decorateClass([
|
|
5074
|
-
|
|
5180
|
+
Column34({ name: "openings", type: "integer", default: 0 })
|
|
5075
5181
|
], Job.prototype, "openings", 2);
|
|
5076
5182
|
__decorateClass([
|
|
5077
|
-
|
|
5183
|
+
Column34({ name: "utilised_openings", type: "integer", default: 0 })
|
|
5078
5184
|
], Job.prototype, "utilisedOpenings", 2);
|
|
5079
5185
|
__decorateClass([
|
|
5080
|
-
|
|
5186
|
+
Column34({
|
|
5081
5187
|
name: "location",
|
|
5082
5188
|
type: "enum",
|
|
5083
5189
|
enum: JobLocationEnum2,
|
|
@@ -5085,7 +5191,7 @@ __decorateClass([
|
|
|
5085
5191
|
})
|
|
5086
5192
|
], Job.prototype, "location", 2);
|
|
5087
5193
|
__decorateClass([
|
|
5088
|
-
|
|
5194
|
+
Column34({
|
|
5089
5195
|
name: "type_of_employment",
|
|
5090
5196
|
type: "enum",
|
|
5091
5197
|
enum: TypeOfEmploymentEnum,
|
|
@@ -5093,10 +5199,10 @@ __decorateClass([
|
|
|
5093
5199
|
})
|
|
5094
5200
|
], Job.prototype, "typeOfEmployment", 2);
|
|
5095
5201
|
__decorateClass([
|
|
5096
|
-
|
|
5202
|
+
Column34({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
5097
5203
|
], Job.prototype, "academicQualification", 2);
|
|
5098
5204
|
__decorateClass([
|
|
5099
|
-
|
|
5205
|
+
Column34({
|
|
5100
5206
|
name: "type_of_experience",
|
|
5101
5207
|
type: "enum",
|
|
5102
5208
|
enum: typeOfExperienceEnum,
|
|
@@ -5104,22 +5210,22 @@ __decorateClass([
|
|
|
5104
5210
|
})
|
|
5105
5211
|
], Job.prototype, "typeOfExperience", 2);
|
|
5106
5212
|
__decorateClass([
|
|
5107
|
-
|
|
5213
|
+
Column34({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
5108
5214
|
], Job.prototype, "yearsOfExperience", 2);
|
|
5109
5215
|
__decorateClass([
|
|
5110
|
-
|
|
5216
|
+
Column34({ name: "years_of_experience_from", type: "varchar", nullable: true })
|
|
5111
5217
|
], Job.prototype, "yearsOfExperienceFrom", 2);
|
|
5112
5218
|
__decorateClass([
|
|
5113
|
-
|
|
5219
|
+
Column34({ name: "years_of_experience_to", type: "varchar", nullable: true })
|
|
5114
5220
|
], Job.prototype, "yearsOfExperienceTo", 2);
|
|
5115
5221
|
__decorateClass([
|
|
5116
|
-
|
|
5222
|
+
Column34({ name: "business_industry", type: "varchar", nullable: true })
|
|
5117
5223
|
], Job.prototype, "businessIndustry", 2);
|
|
5118
5224
|
__decorateClass([
|
|
5119
|
-
|
|
5225
|
+
Column34({ name: "currency", type: "varchar", default: "USD" })
|
|
5120
5226
|
], Job.prototype, "currency", 2);
|
|
5121
5227
|
__decorateClass([
|
|
5122
|
-
|
|
5228
|
+
Column34({
|
|
5123
5229
|
name: "expected_salary_from",
|
|
5124
5230
|
type: "decimal",
|
|
5125
5231
|
precision: 10,
|
|
@@ -5128,14 +5234,14 @@ __decorateClass([
|
|
|
5128
5234
|
})
|
|
5129
5235
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
5130
5236
|
__decorateClass([
|
|
5131
|
-
|
|
5237
|
+
Column34({
|
|
5132
5238
|
name: "hide_expected_salary_from",
|
|
5133
5239
|
type: "boolean",
|
|
5134
5240
|
default: false
|
|
5135
5241
|
})
|
|
5136
5242
|
], Job.prototype, "hideExpectedSalaryFrom", 2);
|
|
5137
5243
|
__decorateClass([
|
|
5138
|
-
|
|
5244
|
+
Column34({
|
|
5139
5245
|
name: "expected_salary_to",
|
|
5140
5246
|
type: "decimal",
|
|
5141
5247
|
precision: 10,
|
|
@@ -5144,14 +5250,14 @@ __decorateClass([
|
|
|
5144
5250
|
})
|
|
5145
5251
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
5146
5252
|
__decorateClass([
|
|
5147
|
-
|
|
5253
|
+
Column34({
|
|
5148
5254
|
name: "hide_expected_salary_to",
|
|
5149
5255
|
type: "boolean",
|
|
5150
5256
|
default: false
|
|
5151
5257
|
})
|
|
5152
5258
|
], Job.prototype, "hideExpectedSalaryTo", 2);
|
|
5153
5259
|
__decorateClass([
|
|
5154
|
-
|
|
5260
|
+
Column34({
|
|
5155
5261
|
name: "expected_annual_budget_from",
|
|
5156
5262
|
type: "decimal",
|
|
5157
5263
|
precision: 10,
|
|
@@ -5160,14 +5266,14 @@ __decorateClass([
|
|
|
5160
5266
|
})
|
|
5161
5267
|
], Job.prototype, "expectedAnnualBudgetFrom", 2);
|
|
5162
5268
|
__decorateClass([
|
|
5163
|
-
|
|
5269
|
+
Column34({
|
|
5164
5270
|
name: "hide_expected_annual_budget_from",
|
|
5165
5271
|
type: "boolean",
|
|
5166
5272
|
default: false
|
|
5167
5273
|
})
|
|
5168
5274
|
], Job.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
5169
5275
|
__decorateClass([
|
|
5170
|
-
|
|
5276
|
+
Column34({
|
|
5171
5277
|
name: "expected_annual_budget_to",
|
|
5172
5278
|
type: "decimal",
|
|
5173
5279
|
precision: 10,
|
|
@@ -5176,32 +5282,32 @@ __decorateClass([
|
|
|
5176
5282
|
})
|
|
5177
5283
|
], Job.prototype, "expectedAnnualBudgetTo", 2);
|
|
5178
5284
|
__decorateClass([
|
|
5179
|
-
|
|
5285
|
+
Column34({
|
|
5180
5286
|
name: "hide_expected_annual_budget_to",
|
|
5181
5287
|
type: "boolean",
|
|
5182
5288
|
default: false
|
|
5183
5289
|
})
|
|
5184
5290
|
], Job.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
5185
5291
|
__decorateClass([
|
|
5186
|
-
|
|
5292
|
+
Column34({ name: "years", type: "varchar", nullable: true })
|
|
5187
5293
|
], Job.prototype, "years", 2);
|
|
5188
5294
|
__decorateClass([
|
|
5189
|
-
|
|
5295
|
+
Column34({ name: "months", type: "varchar", nullable: true })
|
|
5190
5296
|
], Job.prototype, "months", 2);
|
|
5191
5297
|
__decorateClass([
|
|
5192
|
-
|
|
5298
|
+
Column34({ name: "weeks", type: "varchar", nullable: true })
|
|
5193
5299
|
], Job.prototype, "weeks", 2);
|
|
5194
5300
|
__decorateClass([
|
|
5195
|
-
|
|
5301
|
+
Column34({ name: "days", type: "varchar", nullable: true })
|
|
5196
5302
|
], Job.prototype, "days", 2);
|
|
5197
5303
|
__decorateClass([
|
|
5198
|
-
|
|
5304
|
+
Column34({ name: "tentative_start_date", type: "date", nullable: true })
|
|
5199
5305
|
], Job.prototype, "tentativeStartDate", 2);
|
|
5200
5306
|
__decorateClass([
|
|
5201
|
-
|
|
5307
|
+
Column34({ name: "tentative_end_date", type: "date", nullable: true })
|
|
5202
5308
|
], Job.prototype, "tentativeEndDate", 2);
|
|
5203
5309
|
__decorateClass([
|
|
5204
|
-
|
|
5310
|
+
Column34({
|
|
5205
5311
|
name: "duration_type",
|
|
5206
5312
|
type: "enum",
|
|
5207
5313
|
enum: DurationTypeEnum,
|
|
@@ -5209,10 +5315,10 @@ __decorateClass([
|
|
|
5209
5315
|
})
|
|
5210
5316
|
], Job.prototype, "durationType", 2);
|
|
5211
5317
|
__decorateClass([
|
|
5212
|
-
|
|
5318
|
+
Column34({ name: "duration", type: "varchar", nullable: true })
|
|
5213
5319
|
], Job.prototype, "duration", 2);
|
|
5214
5320
|
__decorateClass([
|
|
5215
|
-
|
|
5321
|
+
Column34({
|
|
5216
5322
|
name: "number_of_hours",
|
|
5217
5323
|
type: "decimal",
|
|
5218
5324
|
precision: 4,
|
|
@@ -5221,13 +5327,13 @@ __decorateClass([
|
|
|
5221
5327
|
})
|
|
5222
5328
|
], Job.prototype, "numberOfHours", 2);
|
|
5223
5329
|
__decorateClass([
|
|
5224
|
-
|
|
5330
|
+
Column34({ name: "description", type: "varchar", nullable: true })
|
|
5225
5331
|
], Job.prototype, "description", 2);
|
|
5226
5332
|
__decorateClass([
|
|
5227
|
-
|
|
5333
|
+
Column34({ name: "additional_comment", type: "varchar", nullable: true })
|
|
5228
5334
|
], Job.prototype, "additionalComment", 2);
|
|
5229
5335
|
__decorateClass([
|
|
5230
|
-
|
|
5336
|
+
Column34({
|
|
5231
5337
|
name: "onboarding_tat",
|
|
5232
5338
|
type: "varchar",
|
|
5233
5339
|
length: 50,
|
|
@@ -5235,14 +5341,14 @@ __decorateClass([
|
|
|
5235
5341
|
})
|
|
5236
5342
|
], Job.prototype, "onboardingTat", 2);
|
|
5237
5343
|
__decorateClass([
|
|
5238
|
-
|
|
5344
|
+
Column34({
|
|
5239
5345
|
name: "candidate_communication_skills",
|
|
5240
5346
|
type: "varchar",
|
|
5241
5347
|
nullable: true
|
|
5242
5348
|
})
|
|
5243
5349
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
5244
5350
|
__decorateClass([
|
|
5245
|
-
|
|
5351
|
+
Column34({
|
|
5246
5352
|
name: "step_completed",
|
|
5247
5353
|
type: "enum",
|
|
5248
5354
|
enum: Step,
|
|
@@ -5250,7 +5356,7 @@ __decorateClass([
|
|
|
5250
5356
|
})
|
|
5251
5357
|
], Job.prototype, "stepCompleted", 2);
|
|
5252
5358
|
__decorateClass([
|
|
5253
|
-
|
|
5359
|
+
Column34({
|
|
5254
5360
|
name: "status",
|
|
5255
5361
|
type: "enum",
|
|
5256
5362
|
enum: JobStatusEnum,
|
|
@@ -5258,40 +5364,40 @@ __decorateClass([
|
|
|
5258
5364
|
})
|
|
5259
5365
|
], Job.prototype, "status", 2);
|
|
5260
5366
|
__decorateClass([
|
|
5261
|
-
|
|
5367
|
+
Column34({ name: "viewed_count", type: "integer", default: 0 })
|
|
5262
5368
|
], Job.prototype, "viewedCount", 2);
|
|
5263
5369
|
__decorateClass([
|
|
5264
|
-
|
|
5370
|
+
Column34({ name: "application_count", type: "integer", default: 0 })
|
|
5265
5371
|
], Job.prototype, "applicationCount", 2);
|
|
5266
5372
|
__decorateClass([
|
|
5267
|
-
|
|
5373
|
+
Column34({ name: "is_contract_signed", type: "boolean", default: false })
|
|
5268
5374
|
], Job.prototype, "isContractSigned", 2);
|
|
5269
5375
|
__decorateClass([
|
|
5270
|
-
|
|
5376
|
+
Column34({ name: "is_interview_created", type: "boolean", default: false })
|
|
5271
5377
|
], Job.prototype, "isInterviewCreated", 2);
|
|
5272
5378
|
__decorateClass([
|
|
5273
|
-
|
|
5379
|
+
OneToMany14(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
5274
5380
|
], Job.prototype, "interviewInvites", 2);
|
|
5275
5381
|
__decorateClass([
|
|
5276
|
-
|
|
5382
|
+
OneToMany14(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
5277
5383
|
], Job.prototype, "jobSkills", 2);
|
|
5278
5384
|
__decorateClass([
|
|
5279
|
-
|
|
5385
|
+
OneToMany14(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
5280
5386
|
cascade: true
|
|
5281
5387
|
})
|
|
5282
5388
|
], Job.prototype, "jobApplications", 2);
|
|
5283
5389
|
__decorateClass([
|
|
5284
|
-
|
|
5390
|
+
OneToMany14(() => Interview, (interview) => interview.job, {
|
|
5285
5391
|
cascade: true
|
|
5286
5392
|
})
|
|
5287
5393
|
], Job.prototype, "interviews", 2);
|
|
5288
5394
|
__decorateClass([
|
|
5289
|
-
|
|
5395
|
+
OneToMany14(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
|
|
5290
5396
|
cascade: true
|
|
5291
5397
|
})
|
|
5292
5398
|
], Job.prototype, "f2fInterviews", 2);
|
|
5293
5399
|
__decorateClass([
|
|
5294
|
-
|
|
5400
|
+
OneToMany14(
|
|
5295
5401
|
() => JobRecommendation,
|
|
5296
5402
|
(jobRecommendation) => jobRecommendation.job,
|
|
5297
5403
|
{
|
|
@@ -5300,59 +5406,64 @@ __decorateClass([
|
|
|
5300
5406
|
)
|
|
5301
5407
|
], Job.prototype, "recommendations", 2);
|
|
5302
5408
|
__decorateClass([
|
|
5303
|
-
|
|
5409
|
+
OneToMany14(() => ContractSummary, (contractSummary) => contractSummary.job, {
|
|
5410
|
+
cascade: true
|
|
5411
|
+
})
|
|
5412
|
+
], Job.prototype, "contractSummaries", 2);
|
|
5413
|
+
__decorateClass([
|
|
5414
|
+
OneToMany14(() => Contract, (contract) => contract.job, {
|
|
5304
5415
|
cascade: true
|
|
5305
5416
|
})
|
|
5306
5417
|
], Job.prototype, "contracts", 2);
|
|
5307
5418
|
__decorateClass([
|
|
5308
|
-
|
|
5419
|
+
OneToMany14(() => Hiring, (hiring) => hiring.job, {
|
|
5309
5420
|
cascade: true
|
|
5310
5421
|
})
|
|
5311
5422
|
], Job.prototype, "hirings", 2);
|
|
5312
5423
|
__decorateClass([
|
|
5313
|
-
|
|
5424
|
+
OneToMany14(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
|
|
5314
5425
|
cascade: true
|
|
5315
5426
|
})
|
|
5316
5427
|
], Job.prototype, "escrowWallets", 2);
|
|
5317
5428
|
__decorateClass([
|
|
5318
|
-
|
|
5429
|
+
OneToMany14(() => Timesheet, (timesheet) => timesheet.job, {
|
|
5319
5430
|
cascade: true
|
|
5320
5431
|
})
|
|
5321
5432
|
], Job.prototype, "timesheets", 2);
|
|
5322
5433
|
__decorateClass([
|
|
5323
|
-
|
|
5434
|
+
OneToMany14(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
|
|
5324
5435
|
cascade: true
|
|
5325
5436
|
})
|
|
5326
5437
|
], Job.prototype, "timesheetLine", 2);
|
|
5327
5438
|
__decorateClass([
|
|
5328
|
-
|
|
5439
|
+
OneToMany14(() => Invoice, (invoice) => invoice.job, {
|
|
5329
5440
|
cascade: true
|
|
5330
5441
|
})
|
|
5331
5442
|
], Job.prototype, "invoice", 2);
|
|
5332
5443
|
__decorateClass([
|
|
5333
|
-
|
|
5444
|
+
OneToMany14(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
|
|
5334
5445
|
], Job.prototype, "clientCandidatePreferences", 2);
|
|
5335
5446
|
__decorateClass([
|
|
5336
|
-
|
|
5447
|
+
OneToMany14(() => JobLocation, (jobLocation) => jobLocation.job, {
|
|
5337
5448
|
cascade: true
|
|
5338
5449
|
})
|
|
5339
5450
|
], Job.prototype, "jobLocations", 2);
|
|
5340
5451
|
__decorateClass([
|
|
5341
|
-
|
|
5452
|
+
OneToMany14(() => Rating, (rating) => rating.job, {
|
|
5342
5453
|
cascade: true
|
|
5343
5454
|
})
|
|
5344
5455
|
], Job.prototype, "ratings", 2);
|
|
5345
5456
|
Job = __decorateClass([
|
|
5346
|
-
|
|
5457
|
+
Entity33("jobs")
|
|
5347
5458
|
], Job);
|
|
5348
5459
|
|
|
5349
5460
|
// src/entities/bank-details.entity.ts
|
|
5350
5461
|
import {
|
|
5351
|
-
Entity as
|
|
5352
|
-
Column as
|
|
5353
|
-
Index as
|
|
5354
|
-
ManyToOne as
|
|
5355
|
-
JoinColumn as
|
|
5462
|
+
Entity as Entity34,
|
|
5463
|
+
Column as Column35,
|
|
5464
|
+
Index as Index27,
|
|
5465
|
+
ManyToOne as ManyToOne33,
|
|
5466
|
+
JoinColumn as JoinColumn33
|
|
5356
5467
|
} from "typeorm";
|
|
5357
5468
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
5358
5469
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
@@ -5368,51 +5479,51 @@ var BankDetail = class extends BaseEntity {
|
|
|
5368
5479
|
};
|
|
5369
5480
|
// individual index to find bank details by user
|
|
5370
5481
|
__decorateClass([
|
|
5371
|
-
|
|
5372
|
-
|
|
5482
|
+
Column35({ name: "user_id", type: "integer", nullable: true }),
|
|
5483
|
+
Index27()
|
|
5373
5484
|
], BankDetail.prototype, "userId", 2);
|
|
5374
5485
|
__decorateClass([
|
|
5375
|
-
|
|
5376
|
-
|
|
5486
|
+
ManyToOne33(() => User, (user) => user.bankDetail),
|
|
5487
|
+
JoinColumn33({ name: "user_id" })
|
|
5377
5488
|
], BankDetail.prototype, "user", 2);
|
|
5378
5489
|
__decorateClass([
|
|
5379
|
-
|
|
5490
|
+
Column35({ name: "name", type: "varchar", nullable: true })
|
|
5380
5491
|
], BankDetail.prototype, "name", 2);
|
|
5381
5492
|
__decorateClass([
|
|
5382
|
-
|
|
5493
|
+
Column35({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5383
5494
|
], BankDetail.prototype, "mobileCode", 2);
|
|
5384
5495
|
__decorateClass([
|
|
5385
|
-
|
|
5496
|
+
Column35({ name: "mobile", type: "varchar", nullable: true })
|
|
5386
5497
|
], BankDetail.prototype, "mobile", 2);
|
|
5387
5498
|
__decorateClass([
|
|
5388
|
-
|
|
5499
|
+
Column35({ name: "email", type: "varchar" })
|
|
5389
5500
|
], BankDetail.prototype, "email", 2);
|
|
5390
5501
|
__decorateClass([
|
|
5391
|
-
|
|
5502
|
+
Column35({ name: "address", type: "varchar", nullable: true })
|
|
5392
5503
|
], BankDetail.prototype, "address", 2);
|
|
5393
5504
|
__decorateClass([
|
|
5394
|
-
|
|
5505
|
+
Column35({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
5395
5506
|
], BankDetail.prototype, "accountNumber", 2);
|
|
5396
5507
|
__decorateClass([
|
|
5397
|
-
|
|
5508
|
+
Column35({ name: "bank_name", type: "varchar", nullable: true })
|
|
5398
5509
|
], BankDetail.prototype, "bankName", 2);
|
|
5399
5510
|
__decorateClass([
|
|
5400
|
-
|
|
5511
|
+
Column35({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
5401
5512
|
], BankDetail.prototype, "ifscCode", 2);
|
|
5402
5513
|
__decorateClass([
|
|
5403
|
-
|
|
5514
|
+
Column35({ name: "branch_name", type: "varchar", nullable: true })
|
|
5404
5515
|
], BankDetail.prototype, "branchName", 2);
|
|
5405
5516
|
__decorateClass([
|
|
5406
|
-
|
|
5517
|
+
Column35({ name: "routing_no", type: "varchar", nullable: true })
|
|
5407
5518
|
], BankDetail.prototype, "routingNo", 2);
|
|
5408
5519
|
__decorateClass([
|
|
5409
|
-
|
|
5520
|
+
Column35({ name: "aba_no", type: "varchar", nullable: true })
|
|
5410
5521
|
], BankDetail.prototype, "abaNumber", 2);
|
|
5411
5522
|
__decorateClass([
|
|
5412
|
-
|
|
5523
|
+
Column35({ name: "iban", type: "varchar", nullable: true })
|
|
5413
5524
|
], BankDetail.prototype, "iban", 2);
|
|
5414
5525
|
__decorateClass([
|
|
5415
|
-
|
|
5526
|
+
Column35({
|
|
5416
5527
|
name: "account_type",
|
|
5417
5528
|
type: "enum",
|
|
5418
5529
|
enum: BankAccountTypeEnum,
|
|
@@ -5420,7 +5531,7 @@ __decorateClass([
|
|
|
5420
5531
|
})
|
|
5421
5532
|
], BankDetail.prototype, "accountType", 2);
|
|
5422
5533
|
__decorateClass([
|
|
5423
|
-
|
|
5534
|
+
Column35({
|
|
5424
5535
|
name: "account_scope",
|
|
5425
5536
|
type: "enum",
|
|
5426
5537
|
enum: BankAccountScopeEnum,
|
|
@@ -5428,185 +5539,185 @@ __decorateClass([
|
|
|
5428
5539
|
})
|
|
5429
5540
|
], BankDetail.prototype, "accountScope", 2);
|
|
5430
5541
|
BankDetail = __decorateClass([
|
|
5431
|
-
|
|
5542
|
+
Entity34("bank_details")
|
|
5432
5543
|
], BankDetail);
|
|
5433
5544
|
|
|
5434
5545
|
// src/entities/system-preference.entity.ts
|
|
5435
5546
|
import {
|
|
5436
|
-
Entity as
|
|
5437
|
-
Column as
|
|
5438
|
-
Index as
|
|
5439
|
-
ManyToOne as
|
|
5440
|
-
JoinColumn as
|
|
5547
|
+
Entity as Entity35,
|
|
5548
|
+
Column as Column36,
|
|
5549
|
+
Index as Index28,
|
|
5550
|
+
ManyToOne as ManyToOne34,
|
|
5551
|
+
JoinColumn as JoinColumn34
|
|
5441
5552
|
} from "typeorm";
|
|
5442
5553
|
var SystemPreference = class extends BaseEntity {
|
|
5443
5554
|
};
|
|
5444
5555
|
// individual index to find system preference by user
|
|
5445
5556
|
__decorateClass([
|
|
5446
|
-
|
|
5447
|
-
|
|
5557
|
+
Column36({ name: "user_id", type: "integer", nullable: true }),
|
|
5558
|
+
Index28()
|
|
5448
5559
|
], SystemPreference.prototype, "userId", 2);
|
|
5449
5560
|
__decorateClass([
|
|
5450
|
-
|
|
5451
|
-
|
|
5561
|
+
ManyToOne34(() => User, (user) => user.systemPreference),
|
|
5562
|
+
JoinColumn34({ name: "user_id" })
|
|
5452
5563
|
], SystemPreference.prototype, "user", 2);
|
|
5453
5564
|
__decorateClass([
|
|
5454
|
-
|
|
5565
|
+
Column36({ name: "key", type: "varchar", nullable: false })
|
|
5455
5566
|
], SystemPreference.prototype, "key", 2);
|
|
5456
5567
|
__decorateClass([
|
|
5457
|
-
|
|
5568
|
+
Column36({ name: "value", type: "boolean", default: false })
|
|
5458
5569
|
], SystemPreference.prototype, "value", 2);
|
|
5459
5570
|
SystemPreference = __decorateClass([
|
|
5460
|
-
|
|
5571
|
+
Entity35("system_preferences")
|
|
5461
5572
|
], SystemPreference);
|
|
5462
5573
|
|
|
5463
5574
|
// src/entities/freelancer-experience.entity.ts
|
|
5464
5575
|
import {
|
|
5465
|
-
Entity as
|
|
5466
|
-
Column as
|
|
5467
|
-
Index as
|
|
5468
|
-
ManyToOne as
|
|
5469
|
-
JoinColumn as
|
|
5576
|
+
Entity as Entity36,
|
|
5577
|
+
Column as Column37,
|
|
5578
|
+
Index as Index29,
|
|
5579
|
+
ManyToOne as ManyToOne35,
|
|
5580
|
+
JoinColumn as JoinColumn35
|
|
5470
5581
|
} from "typeorm";
|
|
5471
5582
|
var FreelancerExperience = class extends BaseEntity {
|
|
5472
5583
|
};
|
|
5473
5584
|
// individual index to find experence by user
|
|
5474
5585
|
__decorateClass([
|
|
5475
|
-
|
|
5476
|
-
|
|
5586
|
+
Column37({ name: "user_id", type: "integer", nullable: true }),
|
|
5587
|
+
Index29()
|
|
5477
5588
|
], FreelancerExperience.prototype, "userId", 2);
|
|
5478
5589
|
__decorateClass([
|
|
5479
|
-
|
|
5480
|
-
|
|
5590
|
+
ManyToOne35(() => User, (user) => user.freelancerExperience),
|
|
5591
|
+
JoinColumn35({ name: "user_id" })
|
|
5481
5592
|
], FreelancerExperience.prototype, "user", 2);
|
|
5482
5593
|
__decorateClass([
|
|
5483
|
-
|
|
5594
|
+
Column37({ name: "company_name", type: "varchar", nullable: true })
|
|
5484
5595
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
5485
5596
|
__decorateClass([
|
|
5486
|
-
|
|
5597
|
+
Column37({ name: "designation", type: "varchar", nullable: true })
|
|
5487
5598
|
], FreelancerExperience.prototype, "designation", 2);
|
|
5488
5599
|
__decorateClass([
|
|
5489
|
-
|
|
5600
|
+
Column37({ name: "job_duration", type: "varchar", nullable: true })
|
|
5490
5601
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
5491
5602
|
__decorateClass([
|
|
5492
|
-
|
|
5603
|
+
Column37({ name: "description", type: "varchar", nullable: true })
|
|
5493
5604
|
], FreelancerExperience.prototype, "description", 2);
|
|
5494
5605
|
FreelancerExperience = __decorateClass([
|
|
5495
|
-
|
|
5606
|
+
Entity36("freelancer_experiences")
|
|
5496
5607
|
], FreelancerExperience);
|
|
5497
5608
|
|
|
5498
5609
|
// src/entities/freelancer-education.entity.ts
|
|
5499
5610
|
import {
|
|
5500
|
-
Entity as
|
|
5501
|
-
Column as
|
|
5502
|
-
Index as
|
|
5503
|
-
ManyToOne as
|
|
5504
|
-
JoinColumn as
|
|
5611
|
+
Entity as Entity37,
|
|
5612
|
+
Column as Column38,
|
|
5613
|
+
Index as Index30,
|
|
5614
|
+
ManyToOne as ManyToOne36,
|
|
5615
|
+
JoinColumn as JoinColumn36
|
|
5505
5616
|
} from "typeorm";
|
|
5506
5617
|
var FreelancerEducation = class extends BaseEntity {
|
|
5507
5618
|
};
|
|
5508
5619
|
// individual index to find education by user
|
|
5509
5620
|
__decorateClass([
|
|
5510
|
-
|
|
5511
|
-
|
|
5621
|
+
Column38({ name: "user_id", type: "integer", nullable: true }),
|
|
5622
|
+
Index30()
|
|
5512
5623
|
], FreelancerEducation.prototype, "userId", 2);
|
|
5513
5624
|
__decorateClass([
|
|
5514
|
-
|
|
5515
|
-
|
|
5625
|
+
ManyToOne36(() => User, (user) => user.freelancerEducation),
|
|
5626
|
+
JoinColumn36({ name: "user_id" })
|
|
5516
5627
|
], FreelancerEducation.prototype, "user", 2);
|
|
5517
5628
|
__decorateClass([
|
|
5518
|
-
|
|
5629
|
+
Column38({ name: "degree", type: "varchar", nullable: true })
|
|
5519
5630
|
], FreelancerEducation.prototype, "degree", 2);
|
|
5520
5631
|
__decorateClass([
|
|
5521
|
-
|
|
5632
|
+
Column38({ name: "university", type: "varchar", nullable: true })
|
|
5522
5633
|
], FreelancerEducation.prototype, "university", 2);
|
|
5523
5634
|
__decorateClass([
|
|
5524
|
-
|
|
5635
|
+
Column38({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
5525
5636
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
5526
5637
|
FreelancerEducation = __decorateClass([
|
|
5527
|
-
|
|
5638
|
+
Entity37("freelancer_educations")
|
|
5528
5639
|
], FreelancerEducation);
|
|
5529
5640
|
|
|
5530
5641
|
// src/entities/freelancer-project.entity.ts
|
|
5531
5642
|
import {
|
|
5532
|
-
Entity as
|
|
5533
|
-
Column as
|
|
5534
|
-
Index as
|
|
5535
|
-
ManyToOne as
|
|
5536
|
-
JoinColumn as
|
|
5643
|
+
Entity as Entity38,
|
|
5644
|
+
Column as Column39,
|
|
5645
|
+
Index as Index31,
|
|
5646
|
+
ManyToOne as ManyToOne37,
|
|
5647
|
+
JoinColumn as JoinColumn37
|
|
5537
5648
|
} from "typeorm";
|
|
5538
5649
|
var FreelancerProject = class extends BaseEntity {
|
|
5539
5650
|
};
|
|
5540
5651
|
// individual index to find project by user
|
|
5541
5652
|
__decorateClass([
|
|
5542
|
-
|
|
5543
|
-
|
|
5653
|
+
Column39({ name: "user_id", type: "integer", nullable: true }),
|
|
5654
|
+
Index31()
|
|
5544
5655
|
], FreelancerProject.prototype, "userId", 2);
|
|
5545
5656
|
__decorateClass([
|
|
5546
|
-
|
|
5547
|
-
|
|
5657
|
+
ManyToOne37(() => User, (user) => user.freelancerProject),
|
|
5658
|
+
JoinColumn37({ name: "user_id" })
|
|
5548
5659
|
], FreelancerProject.prototype, "user", 2);
|
|
5549
5660
|
__decorateClass([
|
|
5550
|
-
|
|
5661
|
+
Column39({ name: "project_name", type: "varchar", nullable: true })
|
|
5551
5662
|
], FreelancerProject.prototype, "projectName", 2);
|
|
5552
5663
|
__decorateClass([
|
|
5553
|
-
|
|
5664
|
+
Column39({ name: "start_date", type: "date", nullable: true })
|
|
5554
5665
|
], FreelancerProject.prototype, "startDate", 2);
|
|
5555
5666
|
__decorateClass([
|
|
5556
|
-
|
|
5667
|
+
Column39({ name: "end_date", type: "date", nullable: true })
|
|
5557
5668
|
], FreelancerProject.prototype, "endDate", 2);
|
|
5558
5669
|
__decorateClass([
|
|
5559
|
-
|
|
5670
|
+
Column39({ name: "client_name", type: "varchar", nullable: true })
|
|
5560
5671
|
], FreelancerProject.prototype, "clientName", 2);
|
|
5561
5672
|
__decorateClass([
|
|
5562
|
-
|
|
5673
|
+
Column39({ name: "git_link", type: "varchar", nullable: true })
|
|
5563
5674
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
5564
5675
|
__decorateClass([
|
|
5565
|
-
|
|
5676
|
+
Column39({ name: "description", type: "varchar", nullable: true })
|
|
5566
5677
|
], FreelancerProject.prototype, "description", 2);
|
|
5567
5678
|
FreelancerProject = __decorateClass([
|
|
5568
|
-
|
|
5679
|
+
Entity38("freelancer_projects")
|
|
5569
5680
|
], FreelancerProject);
|
|
5570
5681
|
|
|
5571
5682
|
// src/entities/freelancer-casestudy.entity.ts
|
|
5572
5683
|
import {
|
|
5573
|
-
Entity as
|
|
5574
|
-
Column as
|
|
5575
|
-
Index as
|
|
5576
|
-
ManyToOne as
|
|
5577
|
-
JoinColumn as
|
|
5684
|
+
Entity as Entity39,
|
|
5685
|
+
Column as Column40,
|
|
5686
|
+
Index as Index32,
|
|
5687
|
+
ManyToOne as ManyToOne38,
|
|
5688
|
+
JoinColumn as JoinColumn38
|
|
5578
5689
|
} from "typeorm";
|
|
5579
5690
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
5580
5691
|
};
|
|
5581
5692
|
// individual index to find case study by user
|
|
5582
5693
|
__decorateClass([
|
|
5583
|
-
|
|
5584
|
-
|
|
5694
|
+
Column40({ name: "user_id", type: "integer", nullable: true }),
|
|
5695
|
+
Index32()
|
|
5585
5696
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
5586
5697
|
__decorateClass([
|
|
5587
|
-
|
|
5588
|
-
|
|
5698
|
+
ManyToOne38(() => User, (user) => user.freelancerCaseStudy),
|
|
5699
|
+
JoinColumn38({ name: "user_id" })
|
|
5589
5700
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
5590
5701
|
__decorateClass([
|
|
5591
|
-
|
|
5702
|
+
Column40({ name: "project_name", type: "varchar", nullable: true })
|
|
5592
5703
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
5593
5704
|
__decorateClass([
|
|
5594
|
-
|
|
5705
|
+
Column40({ name: "case_study_link", type: "varchar", nullable: true })
|
|
5595
5706
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
5596
5707
|
__decorateClass([
|
|
5597
|
-
|
|
5708
|
+
Column40({ name: "description", type: "varchar", nullable: true })
|
|
5598
5709
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
5599
5710
|
FreelancerCaseStudy = __decorateClass([
|
|
5600
|
-
|
|
5711
|
+
Entity39("freelancer_case_studies")
|
|
5601
5712
|
], FreelancerCaseStudy);
|
|
5602
5713
|
|
|
5603
5714
|
// src/entities/freelancer-skill.entity.ts
|
|
5604
5715
|
import {
|
|
5605
|
-
Entity as
|
|
5606
|
-
Column as
|
|
5607
|
-
Index as
|
|
5608
|
-
ManyToOne as
|
|
5609
|
-
JoinColumn as
|
|
5716
|
+
Entity as Entity40,
|
|
5717
|
+
Column as Column41,
|
|
5718
|
+
Index as Index33,
|
|
5719
|
+
ManyToOne as ManyToOne39,
|
|
5720
|
+
JoinColumn as JoinColumn39
|
|
5610
5721
|
} from "typeorm";
|
|
5611
5722
|
var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
|
|
5612
5723
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
|
|
@@ -5617,18 +5728,18 @@ var FreelancerSkill = class extends BaseEntity {
|
|
|
5617
5728
|
};
|
|
5618
5729
|
// individual index to find core skills by user
|
|
5619
5730
|
__decorateClass([
|
|
5620
|
-
|
|
5621
|
-
|
|
5731
|
+
Column41({ name: "user_id", type: "integer", nullable: true }),
|
|
5732
|
+
Index33()
|
|
5622
5733
|
], FreelancerSkill.prototype, "userId", 2);
|
|
5623
5734
|
__decorateClass([
|
|
5624
|
-
|
|
5625
|
-
|
|
5735
|
+
ManyToOne39(() => User, (user) => user.freelancerSkills),
|
|
5736
|
+
JoinColumn39({ name: "user_id" })
|
|
5626
5737
|
], FreelancerSkill.prototype, "user", 2);
|
|
5627
5738
|
__decorateClass([
|
|
5628
|
-
|
|
5739
|
+
Column41({ name: "skill_name", type: "varchar", nullable: true })
|
|
5629
5740
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
5630
5741
|
__decorateClass([
|
|
5631
|
-
|
|
5742
|
+
Column41({
|
|
5632
5743
|
name: "skill_category",
|
|
5633
5744
|
type: "smallint",
|
|
5634
5745
|
default: 1,
|
|
@@ -5636,68 +5747,68 @@ __decorateClass([
|
|
|
5636
5747
|
})
|
|
5637
5748
|
], FreelancerSkill.prototype, "skillCategory", 2);
|
|
5638
5749
|
FreelancerSkill = __decorateClass([
|
|
5639
|
-
|
|
5750
|
+
Entity40("freelancer_skills")
|
|
5640
5751
|
], FreelancerSkill);
|
|
5641
5752
|
|
|
5642
5753
|
// src/entities/freelancer-tool.entity.ts
|
|
5643
5754
|
import {
|
|
5644
|
-
Entity as
|
|
5645
|
-
Column as
|
|
5646
|
-
Index as
|
|
5647
|
-
ManyToOne as
|
|
5648
|
-
JoinColumn as
|
|
5755
|
+
Entity as Entity41,
|
|
5756
|
+
Column as Column42,
|
|
5757
|
+
Index as Index34,
|
|
5758
|
+
ManyToOne as ManyToOne40,
|
|
5759
|
+
JoinColumn as JoinColumn40
|
|
5649
5760
|
} from "typeorm";
|
|
5650
5761
|
var FreelancerTool = class extends BaseEntity {
|
|
5651
5762
|
};
|
|
5652
5763
|
// individual index to find tool by user
|
|
5653
5764
|
__decorateClass([
|
|
5654
|
-
|
|
5655
|
-
|
|
5765
|
+
Column42({ name: "user_id", type: "integer", nullable: true }),
|
|
5766
|
+
Index34()
|
|
5656
5767
|
], FreelancerTool.prototype, "userId", 2);
|
|
5657
5768
|
__decorateClass([
|
|
5658
|
-
|
|
5659
|
-
|
|
5769
|
+
ManyToOne40(() => User, (user) => user.freelancerTool),
|
|
5770
|
+
JoinColumn40({ name: "user_id" })
|
|
5660
5771
|
], FreelancerTool.prototype, "user", 2);
|
|
5661
5772
|
__decorateClass([
|
|
5662
|
-
|
|
5773
|
+
Column42({ name: "tool_name", type: "varchar", nullable: true })
|
|
5663
5774
|
], FreelancerTool.prototype, "toolName", 2);
|
|
5664
5775
|
FreelancerTool = __decorateClass([
|
|
5665
|
-
|
|
5776
|
+
Entity41("freelancer_tools")
|
|
5666
5777
|
], FreelancerTool);
|
|
5667
5778
|
|
|
5668
5779
|
// src/entities/freelancer-framework.entity.ts
|
|
5669
5780
|
import {
|
|
5670
|
-
Entity as
|
|
5671
|
-
Column as
|
|
5672
|
-
Index as
|
|
5673
|
-
ManyToOne as
|
|
5674
|
-
JoinColumn as
|
|
5781
|
+
Entity as Entity42,
|
|
5782
|
+
Column as Column43,
|
|
5783
|
+
Index as Index35,
|
|
5784
|
+
ManyToOne as ManyToOne41,
|
|
5785
|
+
JoinColumn as JoinColumn41
|
|
5675
5786
|
} from "typeorm";
|
|
5676
5787
|
var FreelancerFramework = class extends BaseEntity {
|
|
5677
5788
|
};
|
|
5678
5789
|
// individual index to find framework by user
|
|
5679
5790
|
__decorateClass([
|
|
5680
|
-
|
|
5681
|
-
|
|
5791
|
+
Column43({ name: "user_id", type: "integer", nullable: true }),
|
|
5792
|
+
Index35()
|
|
5682
5793
|
], FreelancerFramework.prototype, "userId", 2);
|
|
5683
5794
|
__decorateClass([
|
|
5684
|
-
|
|
5685
|
-
|
|
5795
|
+
ManyToOne41(() => User, (user) => user.freelancerFramework),
|
|
5796
|
+
JoinColumn41({ name: "user_id" })
|
|
5686
5797
|
], FreelancerFramework.prototype, "user", 2);
|
|
5687
5798
|
__decorateClass([
|
|
5688
|
-
|
|
5799
|
+
Column43({ name: "framework_name", type: "varchar", nullable: true })
|
|
5689
5800
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
5690
5801
|
FreelancerFramework = __decorateClass([
|
|
5691
|
-
|
|
5802
|
+
Entity42("freelancer_frameworks")
|
|
5692
5803
|
], FreelancerFramework);
|
|
5693
5804
|
|
|
5694
5805
|
// src/entities/freelancer-assessment.entity.ts
|
|
5695
5806
|
import {
|
|
5696
|
-
Entity as
|
|
5697
|
-
Column as
|
|
5698
|
-
Index as
|
|
5699
|
-
ManyToOne as
|
|
5700
|
-
JoinColumn as
|
|
5807
|
+
Entity as Entity43,
|
|
5808
|
+
Column as Column44,
|
|
5809
|
+
Index as Index36,
|
|
5810
|
+
ManyToOne as ManyToOne42,
|
|
5811
|
+
JoinColumn as JoinColumn42
|
|
5701
5812
|
} from "typeorm";
|
|
5702
5813
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
5703
5814
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -5714,30 +5825,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
5714
5825
|
var FreelancerAssessment = class extends BaseEntity {
|
|
5715
5826
|
};
|
|
5716
5827
|
__decorateClass([
|
|
5717
|
-
|
|
5718
|
-
|
|
5828
|
+
Column44({ name: "user_id", type: "integer", nullable: true }),
|
|
5829
|
+
Index36()
|
|
5719
5830
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
5720
5831
|
__decorateClass([
|
|
5721
|
-
|
|
5722
|
-
|
|
5832
|
+
ManyToOne42(() => User, (user) => user.assessments),
|
|
5833
|
+
JoinColumn42({ name: "user_id" })
|
|
5723
5834
|
], FreelancerAssessment.prototype, "user", 2);
|
|
5724
5835
|
__decorateClass([
|
|
5725
|
-
|
|
5836
|
+
Column44({ name: "interview_id", type: "varchar", nullable: true })
|
|
5726
5837
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
5727
5838
|
__decorateClass([
|
|
5728
|
-
|
|
5839
|
+
Column44({ name: "interview_link", type: "text", nullable: true })
|
|
5729
5840
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
5730
5841
|
__decorateClass([
|
|
5731
|
-
|
|
5842
|
+
Column44({ name: "recording_link", type: "text", nullable: true })
|
|
5732
5843
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
5733
5844
|
__decorateClass([
|
|
5734
|
-
|
|
5845
|
+
Column44({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
5735
5846
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
5736
5847
|
__decorateClass([
|
|
5737
|
-
|
|
5848
|
+
Column44({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
5738
5849
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
5739
5850
|
__decorateClass([
|
|
5740
|
-
|
|
5851
|
+
Column44({
|
|
5741
5852
|
name: "status",
|
|
5742
5853
|
type: "enum",
|
|
5743
5854
|
enum: AssessmentStatusEnum,
|
|
@@ -5745,14 +5856,14 @@ __decorateClass([
|
|
|
5745
5856
|
})
|
|
5746
5857
|
], FreelancerAssessment.prototype, "status", 2);
|
|
5747
5858
|
__decorateClass([
|
|
5748
|
-
|
|
5859
|
+
Column44({ name: "task_id", type: "varchar", nullable: true })
|
|
5749
5860
|
], FreelancerAssessment.prototype, "taskId", 2);
|
|
5750
5861
|
FreelancerAssessment = __decorateClass([
|
|
5751
|
-
|
|
5862
|
+
Entity43("freelancer_assessments")
|
|
5752
5863
|
], FreelancerAssessment);
|
|
5753
5864
|
|
|
5754
5865
|
// src/entities/freelancer-declaration.entity.ts
|
|
5755
|
-
import { Entity as
|
|
5866
|
+
import { Entity as Entity44, Column as Column45, Index as Index37, ManyToOne as ManyToOne43, JoinColumn as JoinColumn43 } from "typeorm";
|
|
5756
5867
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
5757
5868
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
5758
5869
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -5764,15 +5875,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
5764
5875
|
};
|
|
5765
5876
|
// individual index to find declaration by user
|
|
5766
5877
|
__decorateClass([
|
|
5767
|
-
|
|
5768
|
-
|
|
5878
|
+
Column45({ name: "user_id", type: "integer", nullable: true }),
|
|
5879
|
+
Index37()
|
|
5769
5880
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
5770
5881
|
__decorateClass([
|
|
5771
|
-
|
|
5772
|
-
|
|
5882
|
+
ManyToOne43(() => User, (user) => user.freelancerDeclaration),
|
|
5883
|
+
JoinColumn43({ name: "user_id" })
|
|
5773
5884
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
5774
5885
|
__decorateClass([
|
|
5775
|
-
|
|
5886
|
+
Column45({
|
|
5776
5887
|
name: "document_type",
|
|
5777
5888
|
type: "enum",
|
|
5778
5889
|
enum: DocumentType,
|
|
@@ -5780,175 +5891,175 @@ __decorateClass([
|
|
|
5780
5891
|
})
|
|
5781
5892
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
5782
5893
|
__decorateClass([
|
|
5783
|
-
|
|
5894
|
+
Column45({ name: "front_document_url", type: "varchar", nullable: true })
|
|
5784
5895
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
5785
5896
|
__decorateClass([
|
|
5786
|
-
|
|
5897
|
+
Column45({ name: "back_document_url", type: "varchar", nullable: true })
|
|
5787
5898
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
5788
5899
|
__decorateClass([
|
|
5789
|
-
|
|
5900
|
+
Column45({ name: "declaration_accepted", type: "boolean", default: false })
|
|
5790
5901
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
5791
5902
|
__decorateClass([
|
|
5792
|
-
|
|
5903
|
+
Column45({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
5793
5904
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
5794
5905
|
FreelancerDeclaration = __decorateClass([
|
|
5795
|
-
|
|
5906
|
+
Entity44("freelancer_declaration")
|
|
5796
5907
|
], FreelancerDeclaration);
|
|
5797
5908
|
|
|
5798
5909
|
// src/entities/company-members-roles.entity.ts
|
|
5910
|
+
import {
|
|
5911
|
+
Column as Column49,
|
|
5912
|
+
Entity as Entity48,
|
|
5913
|
+
ManyToOne as ManyToOne46,
|
|
5914
|
+
JoinColumn as JoinColumn46,
|
|
5915
|
+
Index as Index41
|
|
5916
|
+
} from "typeorm";
|
|
5917
|
+
|
|
5918
|
+
// src/entities/company-role.entity.ts
|
|
5799
5919
|
import {
|
|
5800
5920
|
Column as Column48,
|
|
5801
5921
|
Entity as Entity47,
|
|
5802
|
-
|
|
5922
|
+
Index as Index40,
|
|
5803
5923
|
JoinColumn as JoinColumn45,
|
|
5804
|
-
|
|
5924
|
+
ManyToOne as ManyToOne45,
|
|
5925
|
+
OneToMany as OneToMany16
|
|
5805
5926
|
} from "typeorm";
|
|
5806
5927
|
|
|
5807
|
-
// src/entities/company-role.entity.ts
|
|
5928
|
+
// src/entities/company-role-permission.entity.ts
|
|
5808
5929
|
import {
|
|
5809
5930
|
Column as Column47,
|
|
5810
5931
|
Entity as Entity46,
|
|
5811
|
-
Index as Index39,
|
|
5812
|
-
JoinColumn as JoinColumn44,
|
|
5813
5932
|
ManyToOne as ManyToOne44,
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
// src/entities/company-role-permission.entity.ts
|
|
5818
|
-
import {
|
|
5819
|
-
Column as Column46,
|
|
5820
|
-
Entity as Entity45,
|
|
5821
|
-
ManyToOne as ManyToOne43,
|
|
5822
|
-
JoinColumn as JoinColumn43,
|
|
5823
|
-
Index as Index38
|
|
5933
|
+
JoinColumn as JoinColumn44,
|
|
5934
|
+
Index as Index39
|
|
5824
5935
|
} from "typeorm";
|
|
5825
5936
|
|
|
5826
5937
|
// src/entities/permission.entity.ts
|
|
5827
|
-
import { Column as
|
|
5938
|
+
import { Column as Column46, Entity as Entity45, Index as Index38 } from "typeorm";
|
|
5828
5939
|
var Permission = class extends BaseEntity {
|
|
5829
5940
|
};
|
|
5830
5941
|
__decorateClass([
|
|
5831
|
-
|
|
5942
|
+
Column46({ name: "name", type: "varchar", nullable: true })
|
|
5832
5943
|
], Permission.prototype, "name", 2);
|
|
5833
5944
|
__decorateClass([
|
|
5834
|
-
|
|
5835
|
-
|
|
5945
|
+
Column46({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
5946
|
+
Index38()
|
|
5836
5947
|
], Permission.prototype, "slug", 2);
|
|
5837
5948
|
__decorateClass([
|
|
5838
|
-
|
|
5949
|
+
Column46({ name: "description", type: "text", nullable: true })
|
|
5839
5950
|
], Permission.prototype, "description", 2);
|
|
5840
5951
|
__decorateClass([
|
|
5841
|
-
|
|
5952
|
+
Column46({ name: "is_active", type: "boolean", default: true })
|
|
5842
5953
|
], Permission.prototype, "isActive", 2);
|
|
5843
5954
|
Permission = __decorateClass([
|
|
5844
|
-
|
|
5955
|
+
Entity45("permissions")
|
|
5845
5956
|
], Permission);
|
|
5846
5957
|
|
|
5847
5958
|
// src/entities/company-role-permission.entity.ts
|
|
5848
5959
|
var CompanyRolePermission = class extends BaseEntity {
|
|
5849
5960
|
};
|
|
5850
5961
|
__decorateClass([
|
|
5851
|
-
|
|
5852
|
-
|
|
5962
|
+
Column47({ name: "company_role_id", type: "integer", nullable: true }),
|
|
5963
|
+
Index39()
|
|
5853
5964
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
5854
5965
|
__decorateClass([
|
|
5855
|
-
|
|
5966
|
+
ManyToOne44(() => CompanyRole, (role) => role.rolePermissions, {
|
|
5856
5967
|
onDelete: "CASCADE"
|
|
5857
5968
|
}),
|
|
5858
|
-
|
|
5969
|
+
JoinColumn44({ name: "company_role_id" })
|
|
5859
5970
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
5860
5971
|
__decorateClass([
|
|
5861
|
-
|
|
5862
|
-
|
|
5972
|
+
Column47({ name: "permission_id", type: "integer" }),
|
|
5973
|
+
Index39()
|
|
5863
5974
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
5864
5975
|
__decorateClass([
|
|
5865
|
-
|
|
5866
|
-
|
|
5976
|
+
ManyToOne44(() => Permission, { onDelete: "CASCADE" }),
|
|
5977
|
+
JoinColumn44({ name: "permission_id" })
|
|
5867
5978
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
5868
5979
|
__decorateClass([
|
|
5869
|
-
|
|
5980
|
+
Column47({ name: "assigned_by", type: "integer", nullable: true })
|
|
5870
5981
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
5871
5982
|
CompanyRolePermission = __decorateClass([
|
|
5872
|
-
|
|
5983
|
+
Entity46("company_role_permissions")
|
|
5873
5984
|
], CompanyRolePermission);
|
|
5874
5985
|
|
|
5875
5986
|
// src/entities/company-role.entity.ts
|
|
5876
5987
|
var CompanyRole = class extends BaseEntity {
|
|
5877
5988
|
};
|
|
5878
5989
|
__decorateClass([
|
|
5879
|
-
|
|
5880
|
-
|
|
5990
|
+
Column48({ name: "user_id", type: "integer", nullable: true }),
|
|
5991
|
+
Index40()
|
|
5881
5992
|
], CompanyRole.prototype, "userId", 2);
|
|
5882
5993
|
__decorateClass([
|
|
5883
|
-
|
|
5884
|
-
|
|
5994
|
+
ManyToOne45(() => User, (user) => user.otps),
|
|
5995
|
+
JoinColumn45({ name: "user_id" })
|
|
5885
5996
|
], CompanyRole.prototype, "user", 2);
|
|
5886
5997
|
__decorateClass([
|
|
5887
|
-
|
|
5998
|
+
Column48({ name: "name", type: "varchar" })
|
|
5888
5999
|
], CompanyRole.prototype, "name", 2);
|
|
5889
6000
|
__decorateClass([
|
|
5890
|
-
|
|
5891
|
-
|
|
6001
|
+
Column48({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
6002
|
+
Index40()
|
|
5892
6003
|
], CompanyRole.prototype, "slug", 2);
|
|
5893
6004
|
__decorateClass([
|
|
5894
|
-
|
|
6005
|
+
Column48({ name: "description", type: "text", nullable: true })
|
|
5895
6006
|
], CompanyRole.prototype, "description", 2);
|
|
5896
6007
|
__decorateClass([
|
|
5897
|
-
|
|
6008
|
+
Column48({ name: "is_active", type: "boolean", default: true })
|
|
5898
6009
|
], CompanyRole.prototype, "isActive", 2);
|
|
5899
6010
|
__decorateClass([
|
|
5900
|
-
|
|
6011
|
+
OneToMany16(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
5901
6012
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
5902
6013
|
CompanyRole = __decorateClass([
|
|
5903
|
-
|
|
6014
|
+
Entity47("company_roles")
|
|
5904
6015
|
], CompanyRole);
|
|
5905
6016
|
|
|
5906
6017
|
// src/entities/company-members-roles.entity.ts
|
|
5907
6018
|
var CompanyMemberRole = class extends BaseEntity {
|
|
5908
6019
|
};
|
|
5909
6020
|
__decorateClass([
|
|
5910
|
-
|
|
5911
|
-
|
|
6021
|
+
Column49({ name: "user_id", type: "integer", nullable: true }),
|
|
6022
|
+
Index41()
|
|
5912
6023
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
5913
6024
|
__decorateClass([
|
|
5914
|
-
|
|
5915
|
-
|
|
6025
|
+
ManyToOne46(() => User),
|
|
6026
|
+
JoinColumn46({ name: "user_id" })
|
|
5916
6027
|
], CompanyMemberRole.prototype, "user", 2);
|
|
5917
6028
|
__decorateClass([
|
|
5918
|
-
|
|
5919
|
-
|
|
6029
|
+
ManyToOne46(() => CompanyRole),
|
|
6030
|
+
JoinColumn46({ name: "company_role_id" })
|
|
5920
6031
|
], CompanyMemberRole.prototype, "role", 2);
|
|
5921
6032
|
__decorateClass([
|
|
5922
|
-
|
|
5923
|
-
|
|
6033
|
+
Column49({ name: "company_role_id", type: "integer", nullable: true }),
|
|
6034
|
+
Index41()
|
|
5924
6035
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
5925
6036
|
__decorateClass([
|
|
5926
|
-
|
|
6037
|
+
Column49({ name: "assigned_by", type: "integer", nullable: true })
|
|
5927
6038
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
5928
6039
|
CompanyMemberRole = __decorateClass([
|
|
5929
|
-
|
|
6040
|
+
Entity48("company_member_roles")
|
|
5930
6041
|
], CompanyMemberRole);
|
|
5931
6042
|
|
|
5932
6043
|
// src/entities/assessment-answer.entity.ts
|
|
5933
6044
|
import {
|
|
5934
|
-
Entity as
|
|
5935
|
-
Column as
|
|
5936
|
-
ManyToOne as
|
|
5937
|
-
Index as
|
|
5938
|
-
JoinColumn as
|
|
6045
|
+
Entity as Entity51,
|
|
6046
|
+
Column as Column52,
|
|
6047
|
+
ManyToOne as ManyToOne49,
|
|
6048
|
+
Index as Index44,
|
|
6049
|
+
JoinColumn as JoinColumn49
|
|
5939
6050
|
} from "typeorm";
|
|
5940
6051
|
|
|
5941
6052
|
// src/entities/assessment-question.entity.ts
|
|
5942
|
-
import { Entity as
|
|
6053
|
+
import { Entity as Entity50, Column as Column51, OneToMany as OneToMany18, Index as Index43, ManyToOne as ManyToOne48, JoinColumn as JoinColumn48 } from "typeorm";
|
|
5943
6054
|
|
|
5944
6055
|
// src/entities/assessment-question-option.entity.ts
|
|
5945
6056
|
import {
|
|
5946
|
-
Entity as
|
|
5947
|
-
Column as
|
|
5948
|
-
OneToMany as
|
|
5949
|
-
ManyToOne as
|
|
5950
|
-
Index as
|
|
5951
|
-
JoinColumn as
|
|
6057
|
+
Entity as Entity49,
|
|
6058
|
+
Column as Column50,
|
|
6059
|
+
OneToMany as OneToMany17,
|
|
6060
|
+
ManyToOne as ManyToOne47,
|
|
6061
|
+
Index as Index42,
|
|
6062
|
+
JoinColumn as JoinColumn47
|
|
5952
6063
|
} from "typeorm";
|
|
5953
6064
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
5954
6065
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -5959,21 +6070,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
5959
6070
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
5960
6071
|
};
|
|
5961
6072
|
__decorateClass([
|
|
5962
|
-
|
|
5963
|
-
|
|
6073
|
+
Column50({ name: "question_id", type: "integer", nullable: true }),
|
|
6074
|
+
Index42()
|
|
5964
6075
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
5965
6076
|
__decorateClass([
|
|
5966
|
-
|
|
6077
|
+
ManyToOne47(
|
|
5967
6078
|
() => AssessmetQuestion,
|
|
5968
6079
|
(assessmentQuestion) => assessmentQuestion.options
|
|
5969
6080
|
),
|
|
5970
|
-
|
|
6081
|
+
JoinColumn47({ name: "question_id" })
|
|
5971
6082
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
5972
6083
|
__decorateClass([
|
|
5973
|
-
|
|
6084
|
+
Column50({ name: "text", type: "varchar", nullable: true })
|
|
5974
6085
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
5975
6086
|
__decorateClass([
|
|
5976
|
-
|
|
6087
|
+
Column50({
|
|
5977
6088
|
name: "answer_type",
|
|
5978
6089
|
type: "enum",
|
|
5979
6090
|
enum: AnswerTypeEnum,
|
|
@@ -5981,13 +6092,13 @@ __decorateClass([
|
|
|
5981
6092
|
})
|
|
5982
6093
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
5983
6094
|
__decorateClass([
|
|
5984
|
-
|
|
6095
|
+
Column50({ name: "is_active", type: "boolean", default: true })
|
|
5985
6096
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
5986
6097
|
__decorateClass([
|
|
5987
|
-
|
|
6098
|
+
OneToMany17(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
5988
6099
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
5989
6100
|
AssessmetQuestionOption = __decorateClass([
|
|
5990
|
-
|
|
6101
|
+
Entity49("assessment_question_options")
|
|
5991
6102
|
], AssessmetQuestionOption);
|
|
5992
6103
|
|
|
5993
6104
|
// src/entities/assessment-question.entity.ts
|
|
@@ -5999,10 +6110,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
5999
6110
|
var AssessmetQuestion = class extends BaseEntity {
|
|
6000
6111
|
};
|
|
6001
6112
|
__decorateClass([
|
|
6002
|
-
|
|
6113
|
+
Column51({ name: "text", type: "varchar", nullable: true })
|
|
6003
6114
|
], AssessmetQuestion.prototype, "text", 2);
|
|
6004
6115
|
__decorateClass([
|
|
6005
|
-
|
|
6116
|
+
Column51({
|
|
6006
6117
|
name: "question_for",
|
|
6007
6118
|
type: "enum",
|
|
6008
6119
|
enum: QuestionForEnum,
|
|
@@ -6010,24 +6121,24 @@ __decorateClass([
|
|
|
6010
6121
|
})
|
|
6011
6122
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
6012
6123
|
__decorateClass([
|
|
6013
|
-
|
|
6124
|
+
Column51({ name: "is_active", type: "boolean", default: true })
|
|
6014
6125
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
6015
6126
|
__decorateClass([
|
|
6016
|
-
|
|
6017
|
-
|
|
6127
|
+
Column51({ name: "candidate_id", type: "integer", nullable: true }),
|
|
6128
|
+
Index43()
|
|
6018
6129
|
], AssessmetQuestion.prototype, "candidateId", 2);
|
|
6019
6130
|
__decorateClass([
|
|
6020
|
-
|
|
6021
|
-
|
|
6131
|
+
ManyToOne48(() => User, (user) => user.freelancerMcq, { nullable: true }),
|
|
6132
|
+
JoinColumn48({ name: "candidate_id" })
|
|
6022
6133
|
], AssessmetQuestion.prototype, "candidate", 2);
|
|
6023
6134
|
__decorateClass([
|
|
6024
|
-
|
|
6135
|
+
OneToMany18(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
6025
6136
|
], AssessmetQuestion.prototype, "options", 2);
|
|
6026
6137
|
__decorateClass([
|
|
6027
|
-
|
|
6138
|
+
OneToMany18(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
6028
6139
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
6029
6140
|
AssessmetQuestion = __decorateClass([
|
|
6030
|
-
|
|
6141
|
+
Entity50("assessment_questions")
|
|
6031
6142
|
], AssessmetQuestion);
|
|
6032
6143
|
|
|
6033
6144
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -6040,118 +6151,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
6040
6151
|
var AssessmentAnswer = class extends BaseEntity {
|
|
6041
6152
|
};
|
|
6042
6153
|
__decorateClass([
|
|
6043
|
-
|
|
6044
|
-
|
|
6154
|
+
Column52({ name: "user_id", type: "integer" }),
|
|
6155
|
+
Index44()
|
|
6045
6156
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
6046
6157
|
__decorateClass([
|
|
6047
|
-
|
|
6048
|
-
|
|
6158
|
+
ManyToOne49(() => User, (user) => user.assessmentAnswers),
|
|
6159
|
+
JoinColumn49({ name: "user_id" })
|
|
6049
6160
|
], AssessmentAnswer.prototype, "user", 2);
|
|
6050
6161
|
__decorateClass([
|
|
6051
|
-
|
|
6052
|
-
|
|
6162
|
+
Column52({ name: "question_id", type: "integer" }),
|
|
6163
|
+
Index44()
|
|
6053
6164
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
6054
6165
|
__decorateClass([
|
|
6055
|
-
|
|
6166
|
+
ManyToOne49(
|
|
6056
6167
|
() => AssessmetQuestion,
|
|
6057
6168
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
6058
6169
|
),
|
|
6059
|
-
|
|
6170
|
+
JoinColumn49({ name: "question_id" })
|
|
6060
6171
|
], AssessmentAnswer.prototype, "question", 2);
|
|
6061
6172
|
__decorateClass([
|
|
6062
|
-
|
|
6063
|
-
|
|
6173
|
+
Column52({ name: "selected_option_id", type: "integer" }),
|
|
6174
|
+
Index44()
|
|
6064
6175
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
6065
6176
|
__decorateClass([
|
|
6066
|
-
|
|
6177
|
+
ManyToOne49(
|
|
6067
6178
|
() => AssessmetQuestionOption,
|
|
6068
6179
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
6069
6180
|
),
|
|
6070
|
-
|
|
6181
|
+
JoinColumn49({ name: "selected_option_id" })
|
|
6071
6182
|
], AssessmentAnswer.prototype, "option", 2);
|
|
6072
6183
|
__decorateClass([
|
|
6073
|
-
|
|
6184
|
+
Column52({
|
|
6074
6185
|
name: "selected_answer_type",
|
|
6075
6186
|
type: "enum",
|
|
6076
6187
|
enum: SelectedAnswerTypeEnum
|
|
6077
6188
|
})
|
|
6078
6189
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
6079
6190
|
__decorateClass([
|
|
6080
|
-
|
|
6191
|
+
Column52({ name: "score", type: "float" })
|
|
6081
6192
|
], AssessmentAnswer.prototype, "score", 2);
|
|
6082
6193
|
AssessmentAnswer = __decorateClass([
|
|
6083
|
-
|
|
6194
|
+
Entity51("assessment_answers")
|
|
6084
6195
|
], AssessmentAnswer);
|
|
6085
6196
|
|
|
6086
6197
|
// src/entities/company-skill.entity.ts
|
|
6087
|
-
import { Entity as
|
|
6198
|
+
import { Entity as Entity52, Column as Column53, Index as Index45, ManyToOne as ManyToOne50, JoinColumn as JoinColumn50 } from "typeorm";
|
|
6088
6199
|
var CompanySkill = class extends BaseEntity {
|
|
6089
6200
|
};
|
|
6090
6201
|
// individual index to find core skills by user
|
|
6091
6202
|
__decorateClass([
|
|
6092
|
-
|
|
6093
|
-
|
|
6203
|
+
Column53({ name: "user_id", type: "integer", nullable: true }),
|
|
6204
|
+
Index45()
|
|
6094
6205
|
], CompanySkill.prototype, "userId", 2);
|
|
6095
6206
|
__decorateClass([
|
|
6096
|
-
|
|
6097
|
-
|
|
6207
|
+
ManyToOne50(() => User, (user) => user.companySkills),
|
|
6208
|
+
JoinColumn50({ name: "user_id" })
|
|
6098
6209
|
], CompanySkill.prototype, "user", 2);
|
|
6099
6210
|
__decorateClass([
|
|
6100
|
-
|
|
6211
|
+
Column53({ name: "skill_name", type: "varchar", nullable: true })
|
|
6101
6212
|
], CompanySkill.prototype, "skillName", 2);
|
|
6102
6213
|
CompanySkill = __decorateClass([
|
|
6103
|
-
|
|
6214
|
+
Entity52("company_skills")
|
|
6104
6215
|
], CompanySkill);
|
|
6105
6216
|
|
|
6106
6217
|
// src/entities/admin-user-role.entity.ts
|
|
6107
|
-
import { Entity as
|
|
6218
|
+
import { Entity as Entity56, Column as Column57, ManyToOne as ManyToOne52, JoinColumn as JoinColumn52 } from "typeorm";
|
|
6108
6219
|
|
|
6109
6220
|
// src/entities/admin-role.entity.ts
|
|
6110
|
-
import { Entity as
|
|
6221
|
+
import { Entity as Entity55, Column as Column56, Index as Index48, OneToMany as OneToMany21 } from "typeorm";
|
|
6111
6222
|
|
|
6112
6223
|
// src/entities/admin-role-permission.entity.ts
|
|
6113
|
-
import { Entity as
|
|
6224
|
+
import { Entity as Entity54, Column as Column55, ManyToOne as ManyToOne51, JoinColumn as JoinColumn51 } from "typeorm";
|
|
6114
6225
|
|
|
6115
6226
|
// src/entities/admin-permission.entity.ts
|
|
6116
|
-
import { Entity as
|
|
6227
|
+
import { Entity as Entity53, Column as Column54, Index as Index46, OneToMany as OneToMany20 } from "typeorm";
|
|
6117
6228
|
var AdminPermission = class extends BaseEntity {
|
|
6118
6229
|
};
|
|
6119
6230
|
__decorateClass([
|
|
6120
|
-
|
|
6231
|
+
Column54({ name: "permission_name", type: "varchar", nullable: true })
|
|
6121
6232
|
], AdminPermission.prototype, "permissionName", 2);
|
|
6122
6233
|
__decorateClass([
|
|
6123
|
-
|
|
6234
|
+
Column54({
|
|
6124
6235
|
name: "permission_slug",
|
|
6125
6236
|
type: "varchar",
|
|
6126
6237
|
unique: true,
|
|
6127
6238
|
nullable: true
|
|
6128
6239
|
}),
|
|
6129
|
-
|
|
6240
|
+
Index46()
|
|
6130
6241
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
6131
6242
|
__decorateClass([
|
|
6132
|
-
|
|
6243
|
+
Column54({ name: "permission_description", type: "varchar", nullable: true })
|
|
6133
6244
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
6134
6245
|
__decorateClass([
|
|
6135
|
-
|
|
6246
|
+
Column54({ name: "module", type: "varchar", nullable: true })
|
|
6136
6247
|
], AdminPermission.prototype, "module", 2);
|
|
6137
6248
|
__decorateClass([
|
|
6138
|
-
|
|
6249
|
+
Column54({ name: "is_active", type: "boolean", default: true })
|
|
6139
6250
|
], AdminPermission.prototype, "isActive", 2);
|
|
6140
6251
|
__decorateClass([
|
|
6141
|
-
|
|
6252
|
+
OneToMany20(
|
|
6142
6253
|
() => AdminRolePermission,
|
|
6143
6254
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
6144
6255
|
)
|
|
6145
6256
|
], AdminPermission.prototype, "adminRole", 2);
|
|
6146
6257
|
AdminPermission = __decorateClass([
|
|
6147
|
-
|
|
6258
|
+
Entity53("admin_permissions")
|
|
6148
6259
|
], AdminPermission);
|
|
6149
6260
|
|
|
6150
6261
|
// src/entities/admin-role-permission.entity.ts
|
|
6151
6262
|
var AdminRolePermission = class extends BaseEntity {
|
|
6152
6263
|
};
|
|
6153
6264
|
__decorateClass([
|
|
6154
|
-
|
|
6265
|
+
Column55({
|
|
6155
6266
|
name: "role_id",
|
|
6156
6267
|
type: "int",
|
|
6157
6268
|
nullable: true,
|
|
@@ -6159,11 +6270,11 @@ __decorateClass([
|
|
|
6159
6270
|
})
|
|
6160
6271
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
6161
6272
|
__decorateClass([
|
|
6162
|
-
|
|
6163
|
-
|
|
6273
|
+
ManyToOne51(() => AdminRole),
|
|
6274
|
+
JoinColumn51({ name: "role_id" })
|
|
6164
6275
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
6165
6276
|
__decorateClass([
|
|
6166
|
-
|
|
6277
|
+
Column55({
|
|
6167
6278
|
name: "permission_id",
|
|
6168
6279
|
type: "int",
|
|
6169
6280
|
nullable: true,
|
|
@@ -6171,47 +6282,47 @@ __decorateClass([
|
|
|
6171
6282
|
})
|
|
6172
6283
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
6173
6284
|
__decorateClass([
|
|
6174
|
-
|
|
6175
|
-
|
|
6285
|
+
ManyToOne51(() => AdminPermission),
|
|
6286
|
+
JoinColumn51({ name: "permission_id" })
|
|
6176
6287
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
6177
6288
|
AdminRolePermission = __decorateClass([
|
|
6178
|
-
|
|
6289
|
+
Entity54("admin_role_permissions")
|
|
6179
6290
|
], AdminRolePermission);
|
|
6180
6291
|
|
|
6181
6292
|
// src/entities/admin-role.entity.ts
|
|
6182
6293
|
var AdminRole = class extends BaseEntity {
|
|
6183
6294
|
};
|
|
6184
6295
|
__decorateClass([
|
|
6185
|
-
|
|
6296
|
+
Column56({ name: "role_name", type: "varchar", nullable: true })
|
|
6186
6297
|
], AdminRole.prototype, "roleName", 2);
|
|
6187
6298
|
__decorateClass([
|
|
6188
|
-
|
|
6189
|
-
|
|
6299
|
+
Column56({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
6300
|
+
Index48()
|
|
6190
6301
|
], AdminRole.prototype, "roleSlug", 2);
|
|
6191
6302
|
__decorateClass([
|
|
6192
|
-
|
|
6303
|
+
Column56({ name: "role_description", type: "varchar", nullable: true })
|
|
6193
6304
|
], AdminRole.prototype, "roleDescription", 2);
|
|
6194
6305
|
__decorateClass([
|
|
6195
|
-
|
|
6306
|
+
Column56({ name: "is_active", type: "boolean", default: true })
|
|
6196
6307
|
], AdminRole.prototype, "isActive", 2);
|
|
6197
6308
|
__decorateClass([
|
|
6198
|
-
|
|
6309
|
+
OneToMany21(
|
|
6199
6310
|
() => AdminRolePermission,
|
|
6200
6311
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
6201
6312
|
)
|
|
6202
6313
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
6203
6314
|
__decorateClass([
|
|
6204
|
-
|
|
6315
|
+
OneToMany21(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
6205
6316
|
], AdminRole.prototype, "userRoles", 2);
|
|
6206
6317
|
AdminRole = __decorateClass([
|
|
6207
|
-
|
|
6318
|
+
Entity55("admin_roles")
|
|
6208
6319
|
], AdminRole);
|
|
6209
6320
|
|
|
6210
6321
|
// src/entities/admin-user-role.entity.ts
|
|
6211
6322
|
var AdminUserRole = class extends BaseEntity {
|
|
6212
6323
|
};
|
|
6213
6324
|
__decorateClass([
|
|
6214
|
-
|
|
6325
|
+
Column57({
|
|
6215
6326
|
name: "user_id",
|
|
6216
6327
|
type: "int",
|
|
6217
6328
|
nullable: true,
|
|
@@ -6219,11 +6330,11 @@ __decorateClass([
|
|
|
6219
6330
|
})
|
|
6220
6331
|
], AdminUserRole.prototype, "userId", 2);
|
|
6221
6332
|
__decorateClass([
|
|
6222
|
-
|
|
6223
|
-
|
|
6333
|
+
ManyToOne52(() => User),
|
|
6334
|
+
JoinColumn52({ name: "user_id" })
|
|
6224
6335
|
], AdminUserRole.prototype, "user", 2);
|
|
6225
6336
|
__decorateClass([
|
|
6226
|
-
|
|
6337
|
+
Column57({
|
|
6227
6338
|
name: "role_id",
|
|
6228
6339
|
type: "int",
|
|
6229
6340
|
nullable: true,
|
|
@@ -6231,70 +6342,70 @@ __decorateClass([
|
|
|
6231
6342
|
})
|
|
6232
6343
|
], AdminUserRole.prototype, "roleId", 2);
|
|
6233
6344
|
__decorateClass([
|
|
6234
|
-
|
|
6235
|
-
|
|
6345
|
+
ManyToOne52(() => AdminRole),
|
|
6346
|
+
JoinColumn52({ name: "role_id" })
|
|
6236
6347
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
6237
6348
|
AdminUserRole = __decorateClass([
|
|
6238
|
-
|
|
6349
|
+
Entity56("admin_user_roles")
|
|
6239
6350
|
], AdminUserRole);
|
|
6240
6351
|
|
|
6241
6352
|
// src/entities/freelancer-resume.entity.ts
|
|
6242
6353
|
import {
|
|
6243
|
-
Entity as
|
|
6244
|
-
Column as
|
|
6245
|
-
Index as
|
|
6246
|
-
ManyToOne as
|
|
6247
|
-
JoinColumn as
|
|
6354
|
+
Entity as Entity57,
|
|
6355
|
+
Column as Column58,
|
|
6356
|
+
Index as Index50,
|
|
6357
|
+
ManyToOne as ManyToOne53,
|
|
6358
|
+
JoinColumn as JoinColumn53
|
|
6248
6359
|
} from "typeorm";
|
|
6249
6360
|
var FreelancerResume = class extends BaseEntity {
|
|
6250
6361
|
};
|
|
6251
6362
|
// individual index to find profile by user
|
|
6252
6363
|
__decorateClass([
|
|
6253
|
-
|
|
6254
|
-
|
|
6364
|
+
Column58({ name: "user_id", type: "integer", nullable: true }),
|
|
6365
|
+
Index50()
|
|
6255
6366
|
], FreelancerResume.prototype, "userId", 2);
|
|
6256
6367
|
__decorateClass([
|
|
6257
|
-
|
|
6258
|
-
|
|
6368
|
+
ManyToOne53(() => User, (user) => user.freelancerProfile),
|
|
6369
|
+
JoinColumn53({ name: "user_id" })
|
|
6259
6370
|
], FreelancerResume.prototype, "user", 2);
|
|
6260
6371
|
__decorateClass([
|
|
6261
|
-
|
|
6372
|
+
Column58({ name: "resume_data", type: "jsonb", nullable: true })
|
|
6262
6373
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
6263
6374
|
__decorateClass([
|
|
6264
|
-
|
|
6375
|
+
Column58({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
6265
6376
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
6266
6377
|
FreelancerResume = __decorateClass([
|
|
6267
|
-
|
|
6378
|
+
Entity57("freelancer_resumes")
|
|
6268
6379
|
], FreelancerResume);
|
|
6269
6380
|
|
|
6270
6381
|
// src/entities/signature.entity.ts
|
|
6271
6382
|
import {
|
|
6272
|
-
Entity as
|
|
6273
|
-
Column as
|
|
6274
|
-
Index as
|
|
6275
|
-
ManyToOne as
|
|
6276
|
-
JoinColumn as
|
|
6383
|
+
Entity as Entity58,
|
|
6384
|
+
Column as Column59,
|
|
6385
|
+
Index as Index51,
|
|
6386
|
+
ManyToOne as ManyToOne54,
|
|
6387
|
+
JoinColumn as JoinColumn54
|
|
6277
6388
|
} from "typeorm";
|
|
6278
6389
|
var Signature = class extends BaseEntity {
|
|
6279
6390
|
};
|
|
6280
6391
|
// individual index to find profile by user
|
|
6281
6392
|
__decorateClass([
|
|
6282
|
-
|
|
6283
|
-
|
|
6393
|
+
Column59({ name: "user_id", type: "integer", nullable: true }),
|
|
6394
|
+
Index51()
|
|
6284
6395
|
], Signature.prototype, "userId", 2);
|
|
6285
6396
|
__decorateClass([
|
|
6286
|
-
|
|
6287
|
-
|
|
6397
|
+
ManyToOne54(() => User, (user) => user.signatures),
|
|
6398
|
+
JoinColumn54({ name: "user_id" })
|
|
6288
6399
|
], Signature.prototype, "user", 2);
|
|
6289
6400
|
__decorateClass([
|
|
6290
|
-
|
|
6401
|
+
Column59({ name: "signature_url", type: "text", nullable: true })
|
|
6291
6402
|
], Signature.prototype, "signatureUrl", 2);
|
|
6292
6403
|
Signature = __decorateClass([
|
|
6293
|
-
|
|
6404
|
+
Entity58("signatures")
|
|
6294
6405
|
], Signature);
|
|
6295
6406
|
|
|
6296
6407
|
// src/entities/dispute.entity.ts
|
|
6297
|
-
import { Entity as
|
|
6408
|
+
import { Entity as Entity59, Column as Column60, Index as Index52, JoinColumn as JoinColumn55, ManyToOne as ManyToOne55 } from "typeorm";
|
|
6298
6409
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
6299
6410
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
6300
6411
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -6315,36 +6426,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
|
|
|
6315
6426
|
var Dispute = class extends BaseEntity {
|
|
6316
6427
|
};
|
|
6317
6428
|
__decorateClass([
|
|
6318
|
-
|
|
6319
|
-
|
|
6429
|
+
Column60({ name: "client_id", type: "integer", nullable: true }),
|
|
6430
|
+
Index52()
|
|
6320
6431
|
], Dispute.prototype, "clientId", 2);
|
|
6321
6432
|
__decorateClass([
|
|
6322
|
-
|
|
6323
|
-
|
|
6433
|
+
ManyToOne55(() => User, (user) => user.clientDisputes),
|
|
6434
|
+
JoinColumn55({ name: "client_id" })
|
|
6324
6435
|
], Dispute.prototype, "client", 2);
|
|
6325
6436
|
__decorateClass([
|
|
6326
|
-
|
|
6327
|
-
|
|
6437
|
+
Column60({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
6438
|
+
Index52()
|
|
6328
6439
|
], Dispute.prototype, "freelancerId", 2);
|
|
6329
6440
|
__decorateClass([
|
|
6330
|
-
|
|
6331
|
-
|
|
6441
|
+
ManyToOne55(() => User, (user) => user.freelancerDisputes),
|
|
6442
|
+
JoinColumn55({ name: "freelancer_id" })
|
|
6332
6443
|
], Dispute.prototype, "freelancer", 2);
|
|
6333
6444
|
__decorateClass([
|
|
6334
|
-
|
|
6445
|
+
Column60({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
6335
6446
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
6336
6447
|
__decorateClass([
|
|
6337
|
-
|
|
6338
|
-
|
|
6448
|
+
Column60({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
6449
|
+
Index52()
|
|
6339
6450
|
], Dispute.prototype, "disputeType", 2);
|
|
6340
6451
|
__decorateClass([
|
|
6341
|
-
|
|
6452
|
+
Column60({ name: "description", type: "varchar", nullable: true })
|
|
6342
6453
|
], Dispute.prototype, "description", 2);
|
|
6343
6454
|
__decorateClass([
|
|
6344
|
-
|
|
6455
|
+
Column60({ name: "comment", type: "varchar", nullable: true })
|
|
6345
6456
|
], Dispute.prototype, "comment", 2);
|
|
6346
6457
|
__decorateClass([
|
|
6347
|
-
|
|
6458
|
+
Column60({
|
|
6348
6459
|
name: "status",
|
|
6349
6460
|
type: "enum",
|
|
6350
6461
|
enum: DisputeStatusEnum,
|
|
@@ -6352,7 +6463,7 @@ __decorateClass([
|
|
|
6352
6463
|
})
|
|
6353
6464
|
], Dispute.prototype, "status", 2);
|
|
6354
6465
|
__decorateClass([
|
|
6355
|
-
|
|
6466
|
+
Column60({
|
|
6356
6467
|
name: "initiator_type",
|
|
6357
6468
|
type: "enum",
|
|
6358
6469
|
enum: InitiatorTypeEnum,
|
|
@@ -6361,33 +6472,33 @@ __decorateClass([
|
|
|
6361
6472
|
})
|
|
6362
6473
|
], Dispute.prototype, "initiatorType", 2);
|
|
6363
6474
|
__decorateClass([
|
|
6364
|
-
|
|
6365
|
-
|
|
6475
|
+
Column60({ name: "initiator_id", type: "integer" }),
|
|
6476
|
+
Index52()
|
|
6366
6477
|
], Dispute.prototype, "initiatorId", 2);
|
|
6367
6478
|
__decorateClass([
|
|
6368
|
-
|
|
6369
|
-
|
|
6479
|
+
ManyToOne55(() => User, (user) => user.initiatedDisputes),
|
|
6480
|
+
JoinColumn55({ name: "initiator_id" })
|
|
6370
6481
|
], Dispute.prototype, "initiator", 2);
|
|
6371
6482
|
__decorateClass([
|
|
6372
|
-
|
|
6373
|
-
|
|
6483
|
+
Column60({ name: "respondent_id", type: "integer", nullable: true }),
|
|
6484
|
+
Index52()
|
|
6374
6485
|
], Dispute.prototype, "respondentId", 2);
|
|
6375
6486
|
__decorateClass([
|
|
6376
|
-
|
|
6377
|
-
|
|
6487
|
+
ManyToOne55(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
6488
|
+
JoinColumn55({ name: "respondent_id" })
|
|
6378
6489
|
], Dispute.prototype, "respondent", 2);
|
|
6379
6490
|
__decorateClass([
|
|
6380
|
-
|
|
6491
|
+
Column60({ name: "attachments", type: "jsonb", nullable: true })
|
|
6381
6492
|
], Dispute.prototype, "attachments", 2);
|
|
6382
6493
|
__decorateClass([
|
|
6383
|
-
|
|
6494
|
+
Column60({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
6384
6495
|
], Dispute.prototype, "dynamicFields", 2);
|
|
6385
6496
|
Dispute = __decorateClass([
|
|
6386
|
-
|
|
6497
|
+
Entity59("disputes")
|
|
6387
6498
|
], Dispute);
|
|
6388
6499
|
|
|
6389
6500
|
// src/entities/stripe-transaction.entity.ts
|
|
6390
|
-
import { Entity as
|
|
6501
|
+
import { Entity as Entity60, Column as Column61, Index as Index53, ManyToOne as ManyToOne56, JoinColumn as JoinColumn56 } from "typeorm";
|
|
6391
6502
|
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
6392
6503
|
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
6393
6504
|
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -6409,97 +6520,97 @@ var StripeTransaction = class extends BaseEntity {
|
|
|
6409
6520
|
// Full Stripe session response
|
|
6410
6521
|
};
|
|
6411
6522
|
__decorateClass([
|
|
6412
|
-
|
|
6413
|
-
|
|
6523
|
+
Column61({ name: "user_id", type: "integer", nullable: true }),
|
|
6524
|
+
Index53()
|
|
6414
6525
|
], StripeTransaction.prototype, "userId", 2);
|
|
6415
6526
|
__decorateClass([
|
|
6416
|
-
|
|
6417
|
-
|
|
6527
|
+
ManyToOne56(() => User, (user) => user.stripeTransactions),
|
|
6528
|
+
JoinColumn56({ name: "user_id" })
|
|
6418
6529
|
], StripeTransaction.prototype, "user", 2);
|
|
6419
6530
|
__decorateClass([
|
|
6420
|
-
|
|
6531
|
+
Column61({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
6421
6532
|
], StripeTransaction.prototype, "stripeSessionId", 2);
|
|
6422
6533
|
__decorateClass([
|
|
6423
|
-
|
|
6534
|
+
Column61({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
6424
6535
|
], StripeTransaction.prototype, "stripePaymentIntentId", 2);
|
|
6425
6536
|
__decorateClass([
|
|
6426
|
-
|
|
6537
|
+
Column61({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
6427
6538
|
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
6428
6539
|
__decorateClass([
|
|
6429
|
-
|
|
6540
|
+
Column61({ name: "stripe_receipt_url", type: "varchar", nullable: true })
|
|
6430
6541
|
], StripeTransaction.prototype, "stripeReceiptUrl", 2);
|
|
6431
6542
|
__decorateClass([
|
|
6432
|
-
|
|
6543
|
+
Column61({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
6433
6544
|
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
6434
6545
|
__decorateClass([
|
|
6435
|
-
|
|
6546
|
+
Column61({ name: "stripe_payment_method", type: "varchar", nullable: true })
|
|
6436
6547
|
], StripeTransaction.prototype, "stripePaymentMethod", 2);
|
|
6437
6548
|
__decorateClass([
|
|
6438
|
-
|
|
6549
|
+
Column61({ name: "stripe_payment_status", type: "varchar", nullable: true })
|
|
6439
6550
|
], StripeTransaction.prototype, "stripePaymentStatus", 2);
|
|
6440
6551
|
__decorateClass([
|
|
6441
|
-
|
|
6552
|
+
Column61({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
|
|
6442
6553
|
], StripeTransaction.prototype, "type", 2);
|
|
6443
6554
|
__decorateClass([
|
|
6444
|
-
|
|
6555
|
+
Column61({ name: "currency", type: "varchar", nullable: true })
|
|
6445
6556
|
], StripeTransaction.prototype, "currency", 2);
|
|
6446
6557
|
__decorateClass([
|
|
6447
|
-
|
|
6558
|
+
Column61({ 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" })
|
|
6448
6559
|
], StripeTransaction.prototype, "desiredDepositCents", 2);
|
|
6449
6560
|
__decorateClass([
|
|
6450
|
-
|
|
6561
|
+
Column61({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
|
|
6451
6562
|
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
6452
6563
|
__decorateClass([
|
|
6453
|
-
|
|
6564
|
+
Column61({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
|
|
6454
6565
|
], StripeTransaction.prototype, "taxCents", 2);
|
|
6455
6566
|
__decorateClass([
|
|
6456
|
-
|
|
6567
|
+
Column61({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
|
|
6457
6568
|
], StripeTransaction.prototype, "estimatedStripeFee", 2);
|
|
6458
6569
|
__decorateClass([
|
|
6459
|
-
|
|
6570
|
+
Column61({ 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" })
|
|
6460
6571
|
], StripeTransaction.prototype, "estimatedTotalCents", 2);
|
|
6461
6572
|
__decorateClass([
|
|
6462
|
-
|
|
6573
|
+
Column61({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
|
|
6463
6574
|
], StripeTransaction.prototype, "actualStripeFee", 2);
|
|
6464
6575
|
__decorateClass([
|
|
6465
|
-
|
|
6576
|
+
Column61({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
|
|
6466
6577
|
], StripeTransaction.prototype, "actualTotalPaidCents", 2);
|
|
6467
6578
|
__decorateClass([
|
|
6468
|
-
|
|
6579
|
+
Column61({ 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" })
|
|
6469
6580
|
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
6470
6581
|
__decorateClass([
|
|
6471
|
-
|
|
6582
|
+
Column61({ name: "description", type: "text", nullable: true })
|
|
6472
6583
|
], StripeTransaction.prototype, "description", 2);
|
|
6473
6584
|
__decorateClass([
|
|
6474
|
-
|
|
6585
|
+
Column61({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
6475
6586
|
], StripeTransaction.prototype, "status", 2);
|
|
6476
6587
|
__decorateClass([
|
|
6477
|
-
|
|
6588
|
+
Column61({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
|
|
6478
6589
|
], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
|
|
6479
6590
|
__decorateClass([
|
|
6480
|
-
|
|
6591
|
+
Column61({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
6481
6592
|
], StripeTransaction.prototype, "completedAt", 2);
|
|
6482
6593
|
__decorateClass([
|
|
6483
|
-
|
|
6594
|
+
Column61({ name: "billing_details", type: "jsonb", nullable: true })
|
|
6484
6595
|
], StripeTransaction.prototype, "billingDetails", 2);
|
|
6485
6596
|
__decorateClass([
|
|
6486
|
-
|
|
6597
|
+
Column61({ name: "payment_method_details", type: "jsonb", nullable: true })
|
|
6487
6598
|
], StripeTransaction.prototype, "paymentMethodDetails", 2);
|
|
6488
6599
|
__decorateClass([
|
|
6489
|
-
|
|
6600
|
+
Column61({ name: "raw_session_payload", type: "jsonb", nullable: true })
|
|
6490
6601
|
], StripeTransaction.prototype, "rawSessionPayload", 2);
|
|
6491
6602
|
__decorateClass([
|
|
6492
|
-
|
|
6603
|
+
Column61({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
6493
6604
|
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
6494
6605
|
StripeTransaction = __decorateClass([
|
|
6495
|
-
|
|
6606
|
+
Entity60("stripe_transactions")
|
|
6496
6607
|
], StripeTransaction);
|
|
6497
6608
|
|
|
6498
6609
|
// src/entities/wallet.entity.ts
|
|
6499
|
-
import { Entity as
|
|
6610
|
+
import { Entity as Entity62, Column as Column63, Index as Index55, JoinColumn as JoinColumn58, OneToOne as OneToOne11, OneToMany as OneToMany22 } from "typeorm";
|
|
6500
6611
|
|
|
6501
6612
|
// src/entities/wallet-transaction.entity.ts
|
|
6502
|
-
import { Entity as
|
|
6613
|
+
import { Entity as Entity61, Column as Column62, Index as Index54, ManyToOne as ManyToOne57, JoinColumn as JoinColumn57 } from "typeorm";
|
|
6503
6614
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
6504
6615
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
6505
6616
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -6516,46 +6627,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
|
|
|
6516
6627
|
var WalletTransaction = class extends BaseEntity {
|
|
6517
6628
|
};
|
|
6518
6629
|
__decorateClass([
|
|
6519
|
-
|
|
6520
|
-
|
|
6630
|
+
Column62({ name: "wallet_id", type: "integer", nullable: true }),
|
|
6631
|
+
Index54()
|
|
6521
6632
|
], WalletTransaction.prototype, "walletId", 2);
|
|
6522
6633
|
__decorateClass([
|
|
6523
|
-
|
|
6524
|
-
|
|
6634
|
+
ManyToOne57(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
6635
|
+
JoinColumn57({ name: "wallet_id" })
|
|
6525
6636
|
], WalletTransaction.prototype, "wallet", 2);
|
|
6526
6637
|
__decorateClass([
|
|
6527
|
-
|
|
6638
|
+
Column62({ name: "amount", type: "bigint", nullable: true })
|
|
6528
6639
|
], WalletTransaction.prototype, "amount", 2);
|
|
6529
6640
|
__decorateClass([
|
|
6530
|
-
|
|
6641
|
+
Column62({ name: "balance_before", type: "bigint", nullable: true })
|
|
6531
6642
|
], WalletTransaction.prototype, "balanceBefore", 2);
|
|
6532
6643
|
__decorateClass([
|
|
6533
|
-
|
|
6644
|
+
Column62({ name: "balance_after", type: "bigint", nullable: true })
|
|
6534
6645
|
], WalletTransaction.prototype, "balanceAfter", 2);
|
|
6535
6646
|
__decorateClass([
|
|
6536
|
-
|
|
6647
|
+
Column62({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
6537
6648
|
], WalletTransaction.prototype, "type", 2);
|
|
6538
6649
|
__decorateClass([
|
|
6539
|
-
|
|
6650
|
+
Column62({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
6540
6651
|
], WalletTransaction.prototype, "status", 2);
|
|
6541
6652
|
__decorateClass([
|
|
6542
|
-
|
|
6653
|
+
Column62({ name: "description", type: "text", nullable: true })
|
|
6543
6654
|
], WalletTransaction.prototype, "description", 2);
|
|
6544
6655
|
__decorateClass([
|
|
6545
|
-
|
|
6656
|
+
Column62({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
6546
6657
|
], WalletTransaction.prototype, "completedAt", 2);
|
|
6547
6658
|
__decorateClass([
|
|
6548
|
-
|
|
6659
|
+
Column62({ name: "transaction_for", type: "varchar", nullable: true })
|
|
6549
6660
|
], WalletTransaction.prototype, "transactionFor", 2);
|
|
6550
6661
|
__decorateClass([
|
|
6551
|
-
|
|
6662
|
+
Column62({ name: "meta_data", type: "varchar", nullable: true })
|
|
6552
6663
|
], WalletTransaction.prototype, "metaData", 2);
|
|
6553
6664
|
__decorateClass([
|
|
6554
|
-
|
|
6555
|
-
|
|
6665
|
+
Column62({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
6666
|
+
Index54()
|
|
6556
6667
|
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
6557
6668
|
WalletTransaction = __decorateClass([
|
|
6558
|
-
|
|
6669
|
+
Entity61("wallet_transactions")
|
|
6559
6670
|
], WalletTransaction);
|
|
6560
6671
|
|
|
6561
6672
|
// src/entities/wallet.entity.ts
|
|
@@ -6573,48 +6684,48 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
|
|
|
6573
6684
|
var Wallet = class extends BaseEntity {
|
|
6574
6685
|
};
|
|
6575
6686
|
__decorateClass([
|
|
6576
|
-
|
|
6577
|
-
|
|
6687
|
+
Column63({ name: "user_id", type: "integer", nullable: true }),
|
|
6688
|
+
Index55()
|
|
6578
6689
|
], Wallet.prototype, "userId", 2);
|
|
6579
6690
|
__decorateClass([
|
|
6580
6691
|
OneToOne11(() => User, (user) => user.wallet),
|
|
6581
|
-
|
|
6692
|
+
JoinColumn58({ name: "user_id" })
|
|
6582
6693
|
], Wallet.prototype, "user", 2);
|
|
6583
6694
|
__decorateClass([
|
|
6584
|
-
|
|
6695
|
+
Column63({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
6585
6696
|
], Wallet.prototype, "accountType", 2);
|
|
6586
6697
|
__decorateClass([
|
|
6587
|
-
|
|
6698
|
+
Column63({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
6588
6699
|
], Wallet.prototype, "stripeAccountId", 2);
|
|
6589
6700
|
__decorateClass([
|
|
6590
|
-
|
|
6701
|
+
Column63({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
6591
6702
|
], Wallet.prototype, "stripeCustomerId", 2);
|
|
6592
6703
|
__decorateClass([
|
|
6593
|
-
|
|
6704
|
+
Column63({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
|
|
6594
6705
|
], Wallet.prototype, "walletBalance", 2);
|
|
6595
6706
|
__decorateClass([
|
|
6596
|
-
|
|
6707
|
+
Column63({ 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" })
|
|
6597
6708
|
], Wallet.prototype, "walletBalanceCents", 2);
|
|
6598
6709
|
__decorateClass([
|
|
6599
|
-
|
|
6710
|
+
Column63({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
|
|
6600
6711
|
], Wallet.prototype, "onboardingStatus", 2);
|
|
6601
6712
|
__decorateClass([
|
|
6602
|
-
|
|
6713
|
+
Column63({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
6603
6714
|
], Wallet.prototype, "stripeMetadata", 2);
|
|
6604
6715
|
__decorateClass([
|
|
6605
|
-
|
|
6716
|
+
OneToMany22(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
6606
6717
|
], Wallet.prototype, "walletTransactions", 2);
|
|
6607
6718
|
Wallet = __decorateClass([
|
|
6608
|
-
|
|
6719
|
+
Entity62("wallets")
|
|
6609
6720
|
], Wallet);
|
|
6610
6721
|
|
|
6611
6722
|
// src/entities/freelancer-assessment-request.entity.ts
|
|
6612
6723
|
import {
|
|
6613
|
-
Entity as
|
|
6614
|
-
Column as
|
|
6615
|
-
ManyToOne as
|
|
6616
|
-
Index as
|
|
6617
|
-
JoinColumn as
|
|
6724
|
+
Entity as Entity63,
|
|
6725
|
+
Column as Column64,
|
|
6726
|
+
ManyToOne as ManyToOne58,
|
|
6727
|
+
Index as Index56,
|
|
6728
|
+
JoinColumn as JoinColumn59
|
|
6618
6729
|
} from "typeorm";
|
|
6619
6730
|
var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2) => {
|
|
6620
6731
|
AssessmentRequestStatusEnum2["PENDING"] = "PENDING";
|
|
@@ -6625,23 +6736,23 @@ var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2
|
|
|
6625
6736
|
var FreelancerAssessmentRequest = class extends BaseEntity {
|
|
6626
6737
|
};
|
|
6627
6738
|
__decorateClass([
|
|
6628
|
-
|
|
6629
|
-
|
|
6739
|
+
Column64({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
6740
|
+
Index56()
|
|
6630
6741
|
], FreelancerAssessmentRequest.prototype, "freelancerId", 2);
|
|
6631
6742
|
__decorateClass([
|
|
6632
|
-
|
|
6633
|
-
|
|
6743
|
+
ManyToOne58(() => User, (user) => user.freelancerAssessmentRequests),
|
|
6744
|
+
JoinColumn59({ name: "freelancer_id" })
|
|
6634
6745
|
], FreelancerAssessmentRequest.prototype, "freelancer", 2);
|
|
6635
6746
|
__decorateClass([
|
|
6636
|
-
|
|
6637
|
-
|
|
6747
|
+
Column64({ name: "approved_by_id", type: "integer", nullable: true }),
|
|
6748
|
+
Index56()
|
|
6638
6749
|
], FreelancerAssessmentRequest.prototype, "approvedById", 2);
|
|
6639
6750
|
__decorateClass([
|
|
6640
|
-
|
|
6641
|
-
|
|
6751
|
+
ManyToOne58(() => User, (user) => user.assessmentRequests),
|
|
6752
|
+
JoinColumn59({ name: "approved_by_id" })
|
|
6642
6753
|
], FreelancerAssessmentRequest.prototype, "approvedBy", 2);
|
|
6643
6754
|
__decorateClass([
|
|
6644
|
-
|
|
6755
|
+
Column64({
|
|
6645
6756
|
name: "status",
|
|
6646
6757
|
type: "enum",
|
|
6647
6758
|
enum: AssessmentRequestStatusEnum,
|
|
@@ -6649,10 +6760,10 @@ __decorateClass([
|
|
|
6649
6760
|
})
|
|
6650
6761
|
], FreelancerAssessmentRequest.prototype, "status", 2);
|
|
6651
6762
|
__decorateClass([
|
|
6652
|
-
|
|
6763
|
+
Column64({ name: "assessment_link", type: "text", nullable: true })
|
|
6653
6764
|
], FreelancerAssessmentRequest.prototype, "assessmentLink", 2);
|
|
6654
6765
|
FreelancerAssessmentRequest = __decorateClass([
|
|
6655
|
-
|
|
6766
|
+
Entity63({ name: "freelancer_assessment_requests" })
|
|
6656
6767
|
], FreelancerAssessmentRequest);
|
|
6657
6768
|
|
|
6658
6769
|
// src/entities/user.entity.ts
|
|
@@ -6681,51 +6792,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
6681
6792
|
var User = class extends BaseEntity {
|
|
6682
6793
|
};
|
|
6683
6794
|
__decorateClass([
|
|
6684
|
-
|
|
6795
|
+
Column65({ name: "unique_id", type: "varchar", unique: true })
|
|
6685
6796
|
], User.prototype, "uniqueId", 2);
|
|
6686
6797
|
__decorateClass([
|
|
6687
|
-
|
|
6688
|
-
|
|
6798
|
+
Column65({ name: "parent_id", type: "integer", nullable: true }),
|
|
6799
|
+
Index57()
|
|
6689
6800
|
], User.prototype, "parentId", 2);
|
|
6690
6801
|
__decorateClass([
|
|
6691
|
-
|
|
6692
|
-
|
|
6802
|
+
ManyToOne59(() => User, (user) => user.children, { nullable: true }),
|
|
6803
|
+
JoinColumn60({ name: "parent_id" })
|
|
6693
6804
|
], User.prototype, "parent", 2);
|
|
6694
6805
|
__decorateClass([
|
|
6695
|
-
|
|
6806
|
+
OneToMany23(() => User, (user) => user.parent)
|
|
6696
6807
|
], User.prototype, "children", 2);
|
|
6697
6808
|
__decorateClass([
|
|
6698
|
-
|
|
6809
|
+
Column65({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
6699
6810
|
], User.prototype, "username", 2);
|
|
6700
6811
|
__decorateClass([
|
|
6701
|
-
|
|
6812
|
+
Column65({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
6702
6813
|
], User.prototype, "firstName", 2);
|
|
6703
6814
|
__decorateClass([
|
|
6704
|
-
|
|
6815
|
+
Column65({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
6705
6816
|
], User.prototype, "lastName", 2);
|
|
6706
6817
|
__decorateClass([
|
|
6707
|
-
|
|
6818
|
+
Column65({ name: "date_of_birth", type: "date", nullable: true })
|
|
6708
6819
|
], User.prototype, "dateOfBirth", 2);
|
|
6709
6820
|
__decorateClass([
|
|
6710
|
-
|
|
6821
|
+
Column65({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
6711
6822
|
], User.prototype, "gender", 2);
|
|
6712
6823
|
__decorateClass([
|
|
6713
|
-
|
|
6824
|
+
Column65({ name: "profile_picture_url", type: "text", nullable: true })
|
|
6714
6825
|
], User.prototype, "profilePictureUrl", 2);
|
|
6715
6826
|
__decorateClass([
|
|
6716
|
-
|
|
6827
|
+
Column65({ name: "email", type: "varchar", unique: true })
|
|
6717
6828
|
], User.prototype, "email", 2);
|
|
6718
6829
|
__decorateClass([
|
|
6719
|
-
|
|
6830
|
+
Column65({ name: "mobile_code", type: "varchar", nullable: true })
|
|
6720
6831
|
], User.prototype, "mobileCode", 2);
|
|
6721
6832
|
__decorateClass([
|
|
6722
|
-
|
|
6833
|
+
Column65({ name: "mobile", type: "varchar", nullable: true })
|
|
6723
6834
|
], User.prototype, "mobile", 2);
|
|
6724
6835
|
__decorateClass([
|
|
6725
|
-
|
|
6836
|
+
Column65({ name: "password", type: "varchar", nullable: true })
|
|
6726
6837
|
], User.prototype, "password", 2);
|
|
6727
6838
|
__decorateClass([
|
|
6728
|
-
|
|
6839
|
+
Column65({
|
|
6729
6840
|
name: "account_type",
|
|
6730
6841
|
type: "enum",
|
|
6731
6842
|
enum: AccountType3,
|
|
@@ -6733,7 +6844,7 @@ __decorateClass([
|
|
|
6733
6844
|
})
|
|
6734
6845
|
], User.prototype, "accountType", 2);
|
|
6735
6846
|
__decorateClass([
|
|
6736
|
-
|
|
6847
|
+
Column65({
|
|
6737
6848
|
name: "account_status",
|
|
6738
6849
|
type: "enum",
|
|
6739
6850
|
enum: AccountStatus,
|
|
@@ -6741,42 +6852,42 @@ __decorateClass([
|
|
|
6741
6852
|
})
|
|
6742
6853
|
], User.prototype, "accountStatus", 2);
|
|
6743
6854
|
__decorateClass([
|
|
6744
|
-
|
|
6855
|
+
Column65({ name: "is_email_verified", type: "boolean", default: false })
|
|
6745
6856
|
], User.prototype, "isEmailVerified", 2);
|
|
6746
6857
|
__decorateClass([
|
|
6747
|
-
|
|
6858
|
+
Column65({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
6748
6859
|
], User.prototype, "isMobileVerified", 2);
|
|
6749
6860
|
__decorateClass([
|
|
6750
|
-
|
|
6861
|
+
Column65({ name: "is_social", type: "boolean", default: false })
|
|
6751
6862
|
], User.prototype, "isSocial", 2);
|
|
6752
6863
|
__decorateClass([
|
|
6753
|
-
|
|
6864
|
+
Column65({
|
|
6754
6865
|
name: "last_login_at",
|
|
6755
6866
|
type: "timestamp with time zone",
|
|
6756
6867
|
nullable: true
|
|
6757
6868
|
})
|
|
6758
6869
|
], User.prototype, "lastLoginAt", 2);
|
|
6759
6870
|
__decorateClass([
|
|
6760
|
-
|
|
6871
|
+
Column65({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
6761
6872
|
], User.prototype, "lastLoginIp", 2);
|
|
6762
6873
|
__decorateClass([
|
|
6763
|
-
|
|
6874
|
+
Column65({ name: "reset_token", type: "varchar", nullable: true })
|
|
6764
6875
|
], User.prototype, "resetToken", 2);
|
|
6765
6876
|
__decorateClass([
|
|
6766
|
-
|
|
6877
|
+
Column65({
|
|
6767
6878
|
name: "reset_token_expire_at",
|
|
6768
6879
|
type: "timestamp with time zone",
|
|
6769
6880
|
nullable: true
|
|
6770
6881
|
})
|
|
6771
6882
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
6772
6883
|
__decorateClass([
|
|
6773
|
-
|
|
6884
|
+
Column65({ name: "set_password_token", type: "varchar", nullable: true })
|
|
6774
6885
|
], User.prototype, "setPasswordToken", 2);
|
|
6775
6886
|
__decorateClass([
|
|
6776
|
-
|
|
6887
|
+
OneToMany23(() => RefreshToken, (token) => token.user)
|
|
6777
6888
|
], User.prototype, "refreshTokens", 2);
|
|
6778
6889
|
__decorateClass([
|
|
6779
|
-
|
|
6890
|
+
Column65({
|
|
6780
6891
|
name: "provider",
|
|
6781
6892
|
type: "enum",
|
|
6782
6893
|
enum: Provider,
|
|
@@ -6785,43 +6896,43 @@ __decorateClass([
|
|
|
6785
6896
|
})
|
|
6786
6897
|
], User.prototype, "provider", 2);
|
|
6787
6898
|
__decorateClass([
|
|
6788
|
-
|
|
6899
|
+
Column65({ name: "provider_token", type: "varchar", nullable: true })
|
|
6789
6900
|
], User.prototype, "providerToken", 2);
|
|
6790
6901
|
__decorateClass([
|
|
6791
|
-
|
|
6902
|
+
Column65({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
6792
6903
|
], User.prototype, "linkedInId", 2);
|
|
6793
6904
|
__decorateClass([
|
|
6794
|
-
|
|
6905
|
+
Column65({ name: "google_id", type: "varchar", nullable: true })
|
|
6795
6906
|
], User.prototype, "googleId", 2);
|
|
6796
6907
|
__decorateClass([
|
|
6797
|
-
|
|
6908
|
+
Column65({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
6798
6909
|
], User.prototype, "gitLabsId", 2);
|
|
6799
6910
|
__decorateClass([
|
|
6800
|
-
|
|
6911
|
+
Column65({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
6801
6912
|
], User.prototype, "onBoardedBy", 2);
|
|
6802
6913
|
__decorateClass([
|
|
6803
|
-
|
|
6914
|
+
OneToMany23(() => Otp, (otp) => otp.user)
|
|
6804
6915
|
], User.prototype, "otps", 2);
|
|
6805
6916
|
__decorateClass([
|
|
6806
|
-
|
|
6917
|
+
OneToMany23(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
6807
6918
|
], User.prototype, "senseloafLogs", 2);
|
|
6808
6919
|
__decorateClass([
|
|
6809
6920
|
OneToOne12(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
6810
6921
|
], User.prototype, "companyProfile", 2);
|
|
6811
6922
|
__decorateClass([
|
|
6812
|
-
|
|
6923
|
+
OneToMany23(() => CompanySkill, (companySkill) => companySkill.user)
|
|
6813
6924
|
], User.prototype, "companySkills", 2);
|
|
6814
6925
|
__decorateClass([
|
|
6815
|
-
|
|
6926
|
+
OneToMany23(
|
|
6816
6927
|
() => CompanyMemberRole,
|
|
6817
6928
|
(companyMemberRole) => companyMemberRole.user
|
|
6818
6929
|
)
|
|
6819
6930
|
], User.prototype, "companyMemberRoles", 2);
|
|
6820
6931
|
__decorateClass([
|
|
6821
|
-
|
|
6932
|
+
OneToMany23(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
6822
6933
|
], User.prototype, "companyAiInterview", 2);
|
|
6823
6934
|
__decorateClass([
|
|
6824
|
-
|
|
6935
|
+
OneToMany23(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
6825
6936
|
], User.prototype, "clientF2FInterviews", 2);
|
|
6826
6937
|
__decorateClass([
|
|
6827
6938
|
OneToOne12(
|
|
@@ -6833,61 +6944,61 @@ __decorateClass([
|
|
|
6833
6944
|
OneToOne12(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
6834
6945
|
], User.prototype, "freelancerResume", 2);
|
|
6835
6946
|
__decorateClass([
|
|
6836
|
-
|
|
6947
|
+
OneToMany23(
|
|
6837
6948
|
() => FreelancerAssessmentRequest,
|
|
6838
6949
|
(freelancerAssessmentRequest) => freelancerAssessmentRequest.freelancer
|
|
6839
6950
|
)
|
|
6840
6951
|
], User.prototype, "freelancerAssessmentRequests", 2);
|
|
6841
6952
|
__decorateClass([
|
|
6842
|
-
|
|
6953
|
+
OneToMany23(
|
|
6843
6954
|
() => FreelancerAssessmentRequest,
|
|
6844
6955
|
(freelancerAssessment) => freelancerAssessment.approvedBy
|
|
6845
6956
|
)
|
|
6846
6957
|
], User.prototype, "assessmentRequests", 2);
|
|
6847
6958
|
__decorateClass([
|
|
6848
|
-
|
|
6959
|
+
OneToMany23(
|
|
6849
6960
|
() => FreelancerAssessment,
|
|
6850
6961
|
(freelancerAssessment) => freelancerAssessment.user
|
|
6851
6962
|
)
|
|
6852
6963
|
], User.prototype, "assessments", 2);
|
|
6853
6964
|
__decorateClass([
|
|
6854
|
-
|
|
6965
|
+
OneToMany23(
|
|
6855
6966
|
() => AssessmentAnswer,
|
|
6856
6967
|
(assessmentAnswer) => assessmentAnswer.user
|
|
6857
6968
|
)
|
|
6858
6969
|
], User.prototype, "assessmentAnswers", 2);
|
|
6859
6970
|
__decorateClass([
|
|
6860
|
-
|
|
6971
|
+
OneToMany23(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
6861
6972
|
], User.prototype, "freelancerSkills", 2);
|
|
6862
6973
|
__decorateClass([
|
|
6863
|
-
|
|
6974
|
+
OneToMany23(
|
|
6864
6975
|
() => FreelancerExperience,
|
|
6865
6976
|
(freelancerExperience) => freelancerExperience.user
|
|
6866
6977
|
)
|
|
6867
6978
|
], User.prototype, "freelancerExperience", 2);
|
|
6868
6979
|
__decorateClass([
|
|
6869
|
-
|
|
6980
|
+
OneToMany23(
|
|
6870
6981
|
() => FreelancerEducation,
|
|
6871
6982
|
(freelancerEducation) => freelancerEducation.user
|
|
6872
6983
|
)
|
|
6873
6984
|
], User.prototype, "freelancerEducation", 2);
|
|
6874
6985
|
__decorateClass([
|
|
6875
|
-
|
|
6986
|
+
OneToMany23(
|
|
6876
6987
|
() => FreelancerProject,
|
|
6877
6988
|
(freelancerProject) => freelancerProject.user
|
|
6878
6989
|
)
|
|
6879
6990
|
], User.prototype, "freelancerProject", 2);
|
|
6880
6991
|
__decorateClass([
|
|
6881
|
-
|
|
6992
|
+
OneToMany23(
|
|
6882
6993
|
() => FreelancerCaseStudy,
|
|
6883
6994
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
6884
6995
|
)
|
|
6885
6996
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
6886
6997
|
__decorateClass([
|
|
6887
|
-
|
|
6998
|
+
OneToMany23(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
6888
6999
|
], User.prototype, "freelancerTool", 2);
|
|
6889
7000
|
__decorateClass([
|
|
6890
|
-
|
|
7001
|
+
OneToMany23(
|
|
6891
7002
|
() => FreelancerFramework,
|
|
6892
7003
|
(freelancerFramework) => freelancerFramework.user
|
|
6893
7004
|
)
|
|
@@ -6899,124 +7010,134 @@ __decorateClass([
|
|
|
6899
7010
|
)
|
|
6900
7011
|
], User.prototype, "freelancerDeclaration", 2);
|
|
6901
7012
|
__decorateClass([
|
|
6902
|
-
|
|
7013
|
+
OneToMany23(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
6903
7014
|
], User.prototype, "freelancerMcq", 2);
|
|
6904
7015
|
__decorateClass([
|
|
6905
|
-
|
|
7016
|
+
OneToMany23(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
6906
7017
|
], User.prototype, "freelancerAiInterview", 2);
|
|
6907
7018
|
__decorateClass([
|
|
6908
|
-
|
|
7019
|
+
OneToMany23(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
6909
7020
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
6910
7021
|
__decorateClass([
|
|
6911
|
-
|
|
7022
|
+
OneToMany23(
|
|
6912
7023
|
() => F2fInterviewRescheduleRequest,
|
|
6913
7024
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
6914
7025
|
)
|
|
6915
7026
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
6916
7027
|
__decorateClass([
|
|
6917
|
-
|
|
7028
|
+
OneToMany23(
|
|
6918
7029
|
() => AiInterviewRescheduleRequest,
|
|
6919
7030
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.candidate
|
|
6920
7031
|
)
|
|
6921
7032
|
], User.prototype, "freelancerAiInterviewRescheduleRequests", 2);
|
|
6922
7033
|
__decorateClass([
|
|
6923
|
-
|
|
7034
|
+
OneToMany23(
|
|
6924
7035
|
() => AiInterviewRescheduleRequest,
|
|
6925
7036
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.client
|
|
6926
7037
|
)
|
|
6927
7038
|
], User.prototype, "clientAiInterviewRescheduleRequests", 2);
|
|
6928
7039
|
__decorateClass([
|
|
6929
|
-
|
|
7040
|
+
OneToMany23(() => Job, (job) => job.user)
|
|
6930
7041
|
], User.prototype, "jobs", 2);
|
|
6931
7042
|
__decorateClass([
|
|
6932
|
-
|
|
7043
|
+
OneToMany23(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
6933
7044
|
], User.prototype, "jobApplications", 2);
|
|
6934
7045
|
__decorateClass([
|
|
6935
|
-
|
|
7046
|
+
OneToMany23(() => Interview, (interview) => interview.user)
|
|
6936
7047
|
], User.prototype, "interviews", 2);
|
|
6937
7048
|
__decorateClass([
|
|
6938
|
-
|
|
7049
|
+
OneToMany23(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
6939
7050
|
], User.prototype, "bankDetail", 2);
|
|
6940
7051
|
__decorateClass([
|
|
6941
|
-
|
|
7052
|
+
OneToMany23(
|
|
6942
7053
|
() => SystemPreference,
|
|
6943
7054
|
(systemPreference) => systemPreference.user
|
|
6944
7055
|
)
|
|
6945
7056
|
], User.prototype, "systemPreference", 2);
|
|
6946
7057
|
__decorateClass([
|
|
6947
|
-
|
|
7058
|
+
OneToMany23(() => Rating, (rating) => rating.reviewer)
|
|
6948
7059
|
], User.prototype, "givenRatings", 2);
|
|
6949
7060
|
__decorateClass([
|
|
6950
|
-
|
|
7061
|
+
OneToMany23(() => Rating, (rating) => rating.reviewee)
|
|
6951
7062
|
], User.prototype, "receivedRatings", 2);
|
|
6952
7063
|
__decorateClass([
|
|
6953
|
-
|
|
7064
|
+
OneToMany23(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
6954
7065
|
], User.prototype, "adminUserRoles", 2);
|
|
6955
7066
|
__decorateClass([
|
|
6956
|
-
|
|
7067
|
+
OneToMany23(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
|
|
7068
|
+
cascade: true
|
|
7069
|
+
})
|
|
7070
|
+
], User.prototype, "clientContractSummaries", 2);
|
|
7071
|
+
__decorateClass([
|
|
7072
|
+
OneToMany23(() => Contract, (contract) => contract.client)
|
|
6957
7073
|
], User.prototype, "clientContracts", 2);
|
|
6958
7074
|
__decorateClass([
|
|
6959
|
-
|
|
7075
|
+
OneToMany23(() => Hiring, (hiring) => hiring.client)
|
|
6960
7076
|
], User.prototype, "clientHirings", 2);
|
|
6961
7077
|
__decorateClass([
|
|
6962
|
-
|
|
7078
|
+
OneToMany23(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
6963
7079
|
], User.prototype, "clientEscrowWallets", 2);
|
|
6964
7080
|
__decorateClass([
|
|
6965
|
-
|
|
7081
|
+
OneToMany23(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
|
|
7082
|
+
cascade: true
|
|
7083
|
+
})
|
|
7084
|
+
], User.prototype, "freelancerContractSummaries", 2);
|
|
7085
|
+
__decorateClass([
|
|
7086
|
+
OneToMany23(() => Contract, (contract) => contract.freelancer)
|
|
6966
7087
|
], User.prototype, "freelancerContracts", 2);
|
|
6967
7088
|
__decorateClass([
|
|
6968
|
-
|
|
7089
|
+
OneToMany23(() => Hiring, (hiring) => hiring.freelancer)
|
|
6969
7090
|
], User.prototype, "freelancerHirings", 2);
|
|
6970
7091
|
__decorateClass([
|
|
6971
|
-
|
|
7092
|
+
OneToMany23(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
6972
7093
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
6973
7094
|
__decorateClass([
|
|
6974
7095
|
OneToOne12(() => Signature, (signature) => signature.user)
|
|
6975
7096
|
], User.prototype, "signatures", 2);
|
|
6976
7097
|
__decorateClass([
|
|
6977
|
-
|
|
7098
|
+
OneToMany23(() => Timesheet, (timesheet) => timesheet.client)
|
|
6978
7099
|
], User.prototype, "clientTimesheets", 2);
|
|
6979
7100
|
__decorateClass([
|
|
6980
|
-
|
|
7101
|
+
OneToMany23(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
6981
7102
|
], User.prototype, "freelancerTimesheets", 2);
|
|
6982
7103
|
__decorateClass([
|
|
6983
|
-
|
|
7104
|
+
OneToMany23(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
6984
7105
|
], User.prototype, "clientTimesheetLine", 2);
|
|
6985
7106
|
__decorateClass([
|
|
6986
|
-
|
|
7107
|
+
OneToMany23(() => Invoice, (invoice) => invoice.client)
|
|
6987
7108
|
], User.prototype, "clientInvoice", 2);
|
|
6988
7109
|
__decorateClass([
|
|
6989
|
-
|
|
7110
|
+
OneToMany23(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
6990
7111
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
6991
7112
|
__decorateClass([
|
|
6992
|
-
|
|
7113
|
+
OneToMany23(() => Invoice, (invoice) => invoice.freelancer)
|
|
6993
7114
|
], User.prototype, "freelancerInvoice", 2);
|
|
6994
7115
|
__decorateClass([
|
|
6995
|
-
|
|
7116
|
+
OneToMany23(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
6996
7117
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
6997
7118
|
__decorateClass([
|
|
6998
|
-
|
|
7119
|
+
OneToMany23(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
6999
7120
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
7000
7121
|
__decorateClass([
|
|
7001
|
-
|
|
7122
|
+
OneToMany23(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
7002
7123
|
], User.prototype, "initiatedDisputes", 2);
|
|
7003
7124
|
__decorateClass([
|
|
7004
|
-
|
|
7125
|
+
OneToMany23(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
7005
7126
|
], User.prototype, "respondentDisputes", 2);
|
|
7006
7127
|
__decorateClass([
|
|
7007
7128
|
OneToOne12(() => Wallet, (wallet) => wallet.user)
|
|
7008
7129
|
], User.prototype, "wallet", 2);
|
|
7009
7130
|
__decorateClass([
|
|
7010
|
-
|
|
7131
|
+
OneToMany23(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
7011
7132
|
], User.prototype, "stripeTransactions", 2);
|
|
7012
7133
|
__decorateClass([
|
|
7013
|
-
|
|
7134
|
+
OneToMany23(() => Dispute, (dispute) => dispute.client)
|
|
7014
7135
|
], User.prototype, "clientDisputes", 2);
|
|
7015
7136
|
__decorateClass([
|
|
7016
|
-
|
|
7137
|
+
OneToMany23(() => Dispute, (dispute) => dispute.freelancer)
|
|
7017
7138
|
], User.prototype, "freelancerDisputes", 2);
|
|
7018
7139
|
User = __decorateClass([
|
|
7019
|
-
|
|
7140
|
+
Entity64("users")
|
|
7020
7141
|
], User);
|
|
7021
7142
|
|
|
7022
7143
|
// src/entities/rating.entity.ts
|
|
@@ -7028,31 +7149,31 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
7028
7149
|
var Rating = class extends BaseEntity {
|
|
7029
7150
|
};
|
|
7030
7151
|
__decorateClass([
|
|
7031
|
-
|
|
7032
|
-
|
|
7152
|
+
Column66({ name: "reviewer_id", type: "integer" }),
|
|
7153
|
+
Index58()
|
|
7033
7154
|
], Rating.prototype, "reviewerId", 2);
|
|
7034
7155
|
__decorateClass([
|
|
7035
|
-
|
|
7036
|
-
|
|
7156
|
+
ManyToOne60(() => User, { onDelete: "CASCADE" }),
|
|
7157
|
+
JoinColumn61({ name: "reviewer_id" })
|
|
7037
7158
|
], Rating.prototype, "reviewer", 2);
|
|
7038
7159
|
__decorateClass([
|
|
7039
|
-
|
|
7040
|
-
|
|
7160
|
+
Column66({ name: "reviewee_id", type: "integer" }),
|
|
7161
|
+
Index58()
|
|
7041
7162
|
], Rating.prototype, "revieweeId", 2);
|
|
7042
7163
|
__decorateClass([
|
|
7043
|
-
|
|
7044
|
-
|
|
7164
|
+
ManyToOne60(() => User, { onDelete: "CASCADE" }),
|
|
7165
|
+
JoinColumn61({ name: "reviewee_id" })
|
|
7045
7166
|
], Rating.prototype, "reviewee", 2);
|
|
7046
7167
|
__decorateClass([
|
|
7047
|
-
|
|
7048
|
-
|
|
7168
|
+
Column66({ name: "job_id", type: "integer" }),
|
|
7169
|
+
Index58()
|
|
7049
7170
|
], Rating.prototype, "jobId", 2);
|
|
7050
7171
|
__decorateClass([
|
|
7051
|
-
|
|
7052
|
-
|
|
7172
|
+
ManyToOne60(() => Job, (job) => job.ratings, { onDelete: "CASCADE" }),
|
|
7173
|
+
JoinColumn61({ name: "job_id" })
|
|
7053
7174
|
], Rating.prototype, "job", 2);
|
|
7054
7175
|
__decorateClass([
|
|
7055
|
-
|
|
7176
|
+
Column66({
|
|
7056
7177
|
name: "rating_type",
|
|
7057
7178
|
type: "enum",
|
|
7058
7179
|
enum: RatingTypeEnum,
|
|
@@ -7060,67 +7181,67 @@ __decorateClass([
|
|
|
7060
7181
|
})
|
|
7061
7182
|
], Rating.prototype, "ratingType", 2);
|
|
7062
7183
|
__decorateClass([
|
|
7063
|
-
|
|
7184
|
+
Column66({ name: "reviewer_comment", type: "text", nullable: true })
|
|
7064
7185
|
], Rating.prototype, "reviewerComment", 2);
|
|
7065
7186
|
__decorateClass([
|
|
7066
|
-
|
|
7187
|
+
Column66({
|
|
7067
7188
|
name: "overall_experience",
|
|
7068
7189
|
type: "float",
|
|
7069
7190
|
default: 0
|
|
7070
7191
|
})
|
|
7071
7192
|
], Rating.prototype, "overAllExperience", 2);
|
|
7072
7193
|
__decorateClass([
|
|
7073
|
-
|
|
7194
|
+
Column66({
|
|
7074
7195
|
name: "work_quality",
|
|
7075
7196
|
type: "float",
|
|
7076
7197
|
default: 0
|
|
7077
7198
|
})
|
|
7078
7199
|
], Rating.prototype, "workQuality", 2);
|
|
7079
7200
|
__decorateClass([
|
|
7080
|
-
|
|
7201
|
+
Column66({
|
|
7081
7202
|
name: "one_time_delivery",
|
|
7082
7203
|
type: "float",
|
|
7083
7204
|
default: 0
|
|
7084
7205
|
})
|
|
7085
7206
|
], Rating.prototype, "oneTimeDelivery", 2);
|
|
7086
7207
|
__decorateClass([
|
|
7087
|
-
|
|
7208
|
+
Column66({
|
|
7088
7209
|
name: "understaning",
|
|
7089
7210
|
type: "float",
|
|
7090
7211
|
default: 0
|
|
7091
7212
|
})
|
|
7092
7213
|
], Rating.prototype, "understaning", 2);
|
|
7093
7214
|
__decorateClass([
|
|
7094
|
-
|
|
7215
|
+
Column66({
|
|
7095
7216
|
name: "communication",
|
|
7096
7217
|
type: "float",
|
|
7097
7218
|
default: 0
|
|
7098
7219
|
})
|
|
7099
7220
|
], Rating.prototype, "communication", 2);
|
|
7100
7221
|
__decorateClass([
|
|
7101
|
-
|
|
7222
|
+
Column66({
|
|
7102
7223
|
name: "skill_utilized",
|
|
7103
7224
|
type: "float",
|
|
7104
7225
|
default: 0
|
|
7105
7226
|
})
|
|
7106
7227
|
], Rating.prototype, "skillUtilized", 2);
|
|
7107
7228
|
__decorateClass([
|
|
7108
|
-
|
|
7229
|
+
Column66({ name: "communication_clarity", type: "float", default: 0 })
|
|
7109
7230
|
], Rating.prototype, "communicationClarity", 2);
|
|
7110
7231
|
__decorateClass([
|
|
7111
|
-
|
|
7232
|
+
Column66({ name: "requirements_clarity", type: "float", default: 0 })
|
|
7112
7233
|
], Rating.prototype, "requirementsClarity", 2);
|
|
7113
7234
|
__decorateClass([
|
|
7114
|
-
|
|
7235
|
+
Column66({ name: "responsiveness", type: "float", default: 0 })
|
|
7115
7236
|
], Rating.prototype, "responsiveness", 2);
|
|
7116
7237
|
__decorateClass([
|
|
7117
|
-
|
|
7238
|
+
Column66({ name: "payment_promptness", type: "float", default: 0 })
|
|
7118
7239
|
], Rating.prototype, "paymentPromptness", 2);
|
|
7119
7240
|
__decorateClass([
|
|
7120
|
-
|
|
7241
|
+
Column66({ name: "responsibilities_and_expectations", type: "float", default: 0 })
|
|
7121
7242
|
], Rating.prototype, "responsibilitiesAndExpectations", 2);
|
|
7122
7243
|
Rating = __decorateClass([
|
|
7123
|
-
|
|
7244
|
+
Entity65("ratings")
|
|
7124
7245
|
], Rating);
|
|
7125
7246
|
|
|
7126
7247
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -10892,11 +11013,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
10892
11013
|
};
|
|
10893
11014
|
|
|
10894
11015
|
// src/entities/sequence-generator.entity.ts
|
|
10895
|
-
import { Entity as
|
|
11016
|
+
import { Entity as Entity66, Column as Column67 } from "typeorm";
|
|
10896
11017
|
var SequenceGenerator = class extends BaseEntity {
|
|
10897
11018
|
};
|
|
10898
11019
|
__decorateClass([
|
|
10899
|
-
|
|
11020
|
+
Column67({
|
|
10900
11021
|
name: "module",
|
|
10901
11022
|
type: "varchar",
|
|
10902
11023
|
length: 50,
|
|
@@ -10905,7 +11026,7 @@ __decorateClass([
|
|
|
10905
11026
|
})
|
|
10906
11027
|
], SequenceGenerator.prototype, "module", 2);
|
|
10907
11028
|
__decorateClass([
|
|
10908
|
-
|
|
11029
|
+
Column67({
|
|
10909
11030
|
name: "prefix",
|
|
10910
11031
|
type: "varchar",
|
|
10911
11032
|
length: 10,
|
|
@@ -10914,7 +11035,7 @@ __decorateClass([
|
|
|
10914
11035
|
})
|
|
10915
11036
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
10916
11037
|
__decorateClass([
|
|
10917
|
-
|
|
11038
|
+
Column67({
|
|
10918
11039
|
name: "last_sequence",
|
|
10919
11040
|
type: "int",
|
|
10920
11041
|
nullable: false,
|
|
@@ -10922,7 +11043,7 @@ __decorateClass([
|
|
|
10922
11043
|
})
|
|
10923
11044
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
10924
11045
|
__decorateClass([
|
|
10925
|
-
|
|
11046
|
+
Column67({
|
|
10926
11047
|
name: "year",
|
|
10927
11048
|
type: "int",
|
|
10928
11049
|
nullable: true,
|
|
@@ -10930,11 +11051,11 @@ __decorateClass([
|
|
|
10930
11051
|
})
|
|
10931
11052
|
], SequenceGenerator.prototype, "year", 2);
|
|
10932
11053
|
SequenceGenerator = __decorateClass([
|
|
10933
|
-
|
|
11054
|
+
Entity66("sequence_generators")
|
|
10934
11055
|
], SequenceGenerator);
|
|
10935
11056
|
|
|
10936
11057
|
// src/entities/question.entity.ts
|
|
10937
|
-
import { Entity as
|
|
11058
|
+
import { Entity as Entity67, Column as Column68 } from "typeorm";
|
|
10938
11059
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
10939
11060
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
10940
11061
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -10943,16 +11064,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
10943
11064
|
var Question = class extends BaseEntity {
|
|
10944
11065
|
};
|
|
10945
11066
|
__decorateClass([
|
|
10946
|
-
|
|
11067
|
+
Column68({ name: "question", type: "varchar" })
|
|
10947
11068
|
], Question.prototype, "question", 2);
|
|
10948
11069
|
__decorateClass([
|
|
10949
|
-
|
|
11070
|
+
Column68({ name: "hint", type: "varchar", nullable: true })
|
|
10950
11071
|
], Question.prototype, "hint", 2);
|
|
10951
11072
|
__decorateClass([
|
|
10952
|
-
|
|
11073
|
+
Column68({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
10953
11074
|
], Question.prototype, "slug", 2);
|
|
10954
11075
|
__decorateClass([
|
|
10955
|
-
|
|
11076
|
+
Column68({
|
|
10956
11077
|
name: "question_for",
|
|
10957
11078
|
type: "enum",
|
|
10958
11079
|
enum: QuestionFor,
|
|
@@ -10960,49 +11081,49 @@ __decorateClass([
|
|
|
10960
11081
|
})
|
|
10961
11082
|
], Question.prototype, "questionFor", 2);
|
|
10962
11083
|
__decorateClass([
|
|
10963
|
-
|
|
11084
|
+
Column68({ name: "type", type: "varchar", nullable: true })
|
|
10964
11085
|
], Question.prototype, "type", 2);
|
|
10965
11086
|
__decorateClass([
|
|
10966
|
-
|
|
11087
|
+
Column68({ name: "options", type: "jsonb", nullable: true })
|
|
10967
11088
|
], Question.prototype, "options", 2);
|
|
10968
11089
|
__decorateClass([
|
|
10969
|
-
|
|
11090
|
+
Column68({ name: "is_active", type: "boolean", default: false })
|
|
10970
11091
|
], Question.prototype, "isActive", 2);
|
|
10971
11092
|
Question = __decorateClass([
|
|
10972
|
-
|
|
11093
|
+
Entity67("questions")
|
|
10973
11094
|
], Question);
|
|
10974
11095
|
|
|
10975
11096
|
// src/entities/skill.entity.ts
|
|
10976
|
-
import { Entity as
|
|
11097
|
+
import { Entity as Entity68, Column as Column69 } from "typeorm";
|
|
10977
11098
|
var Skill = class extends BaseEntity {
|
|
10978
11099
|
};
|
|
10979
11100
|
__decorateClass([
|
|
10980
|
-
|
|
11101
|
+
Column69({ name: "name", type: "varchar", nullable: true })
|
|
10981
11102
|
], Skill.prototype, "name", 2);
|
|
10982
11103
|
__decorateClass([
|
|
10983
|
-
|
|
11104
|
+
Column69({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
10984
11105
|
], Skill.prototype, "slug", 2);
|
|
10985
11106
|
__decorateClass([
|
|
10986
|
-
|
|
11107
|
+
Column69({ name: "is_active", type: "boolean", default: false })
|
|
10987
11108
|
], Skill.prototype, "isActive", 2);
|
|
10988
11109
|
Skill = __decorateClass([
|
|
10989
|
-
|
|
11110
|
+
Entity68("skills")
|
|
10990
11111
|
], Skill);
|
|
10991
11112
|
|
|
10992
11113
|
// src/entities/skill-catalog.entity.ts
|
|
10993
11114
|
import {
|
|
10994
|
-
Entity as
|
|
10995
|
-
Column as
|
|
10996
|
-
Index as
|
|
11115
|
+
Entity as Entity69,
|
|
11116
|
+
Column as Column70,
|
|
11117
|
+
Index as Index59
|
|
10997
11118
|
} from "typeorm";
|
|
10998
11119
|
var SkillCatalog = class extends BaseEntity {
|
|
10999
11120
|
};
|
|
11000
11121
|
__decorateClass([
|
|
11001
|
-
|
|
11002
|
-
|
|
11122
|
+
Column70({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
11123
|
+
Index59()
|
|
11003
11124
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
11004
11125
|
__decorateClass([
|
|
11005
|
-
|
|
11126
|
+
Column70({
|
|
11006
11127
|
name: "aliases",
|
|
11007
11128
|
type: "text",
|
|
11008
11129
|
array: true,
|
|
@@ -11010,20 +11131,20 @@ __decorateClass([
|
|
|
11010
11131
|
})
|
|
11011
11132
|
], SkillCatalog.prototype, "aliases", 2);
|
|
11012
11133
|
__decorateClass([
|
|
11013
|
-
|
|
11134
|
+
Column70({
|
|
11014
11135
|
name: "variations",
|
|
11015
11136
|
type: "jsonb",
|
|
11016
11137
|
default: "{}"
|
|
11017
11138
|
})
|
|
11018
11139
|
], SkillCatalog.prototype, "variations", 2);
|
|
11019
11140
|
__decorateClass([
|
|
11020
|
-
|
|
11141
|
+
Column70({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
11021
11142
|
], SkillCatalog.prototype, "category", 2);
|
|
11022
11143
|
__decorateClass([
|
|
11023
|
-
|
|
11144
|
+
Column70({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
11024
11145
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
11025
11146
|
__decorateClass([
|
|
11026
|
-
|
|
11147
|
+
Column70({
|
|
11027
11148
|
name: "related_skills",
|
|
11028
11149
|
type: "text",
|
|
11029
11150
|
array: true,
|
|
@@ -11031,113 +11152,113 @@ __decorateClass([
|
|
|
11031
11152
|
})
|
|
11032
11153
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
11033
11154
|
__decorateClass([
|
|
11034
|
-
|
|
11035
|
-
|
|
11155
|
+
Column70({ name: "usage_count", type: "integer", default: 0 }),
|
|
11156
|
+
Index59()
|
|
11036
11157
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
11037
11158
|
__decorateClass([
|
|
11038
|
-
|
|
11159
|
+
Column70({ name: "is_verified", type: "boolean", default: false })
|
|
11039
11160
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
11040
11161
|
__decorateClass([
|
|
11041
|
-
|
|
11162
|
+
Column70({ name: "first_seen_date", type: "date" })
|
|
11042
11163
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
11043
11164
|
__decorateClass([
|
|
11044
|
-
|
|
11165
|
+
Column70({ name: "last_updated_date", type: "date" })
|
|
11045
11166
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
11046
11167
|
__decorateClass([
|
|
11047
|
-
|
|
11168
|
+
Column70({
|
|
11048
11169
|
name: "search_vector",
|
|
11049
11170
|
type: "tsvector",
|
|
11050
11171
|
nullable: true
|
|
11051
11172
|
})
|
|
11052
11173
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
11053
11174
|
SkillCatalog = __decorateClass([
|
|
11054
|
-
|
|
11175
|
+
Entity69("skill_catalogs")
|
|
11055
11176
|
], SkillCatalog);
|
|
11056
11177
|
|
|
11057
11178
|
// src/entities/job-role.entity.ts
|
|
11058
|
-
import { Entity as
|
|
11179
|
+
import { Entity as Entity70, Column as Column71 } from "typeorm";
|
|
11059
11180
|
var JobRoles = class extends BaseEntity {
|
|
11060
11181
|
};
|
|
11061
11182
|
__decorateClass([
|
|
11062
|
-
|
|
11183
|
+
Column71({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
11063
11184
|
], JobRoles.prototype, "slug", 2);
|
|
11064
11185
|
__decorateClass([
|
|
11065
|
-
|
|
11186
|
+
Column71({ name: "name", type: "varchar", nullable: true })
|
|
11066
11187
|
], JobRoles.prototype, "name", 2);
|
|
11067
11188
|
__decorateClass([
|
|
11068
|
-
|
|
11189
|
+
Column71({ name: "is_active", type: "boolean", default: true })
|
|
11069
11190
|
], JobRoles.prototype, "isActive", 2);
|
|
11070
11191
|
JobRoles = __decorateClass([
|
|
11071
|
-
|
|
11192
|
+
Entity70("job_roles")
|
|
11072
11193
|
], JobRoles);
|
|
11073
11194
|
|
|
11074
11195
|
// src/entities/plan.entity.ts
|
|
11075
|
-
import { Entity as
|
|
11196
|
+
import { Entity as Entity72, Column as Column73, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
11076
11197
|
|
|
11077
11198
|
// src/entities/feature.entity.ts
|
|
11078
|
-
import { Entity as
|
|
11199
|
+
import { Entity as Entity71, Column as Column72, ManyToMany as ManyToMany2 } from "typeorm";
|
|
11079
11200
|
var Feature = class extends BaseEntity {
|
|
11080
11201
|
};
|
|
11081
11202
|
__decorateClass([
|
|
11082
|
-
|
|
11203
|
+
Column72({ name: "name", type: "varchar", unique: true })
|
|
11083
11204
|
], Feature.prototype, "name", 2);
|
|
11084
11205
|
__decorateClass([
|
|
11085
11206
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
11086
11207
|
], Feature.prototype, "plans", 2);
|
|
11087
11208
|
Feature = __decorateClass([
|
|
11088
|
-
|
|
11209
|
+
Entity71("features")
|
|
11089
11210
|
], Feature);
|
|
11090
11211
|
|
|
11091
11212
|
// src/entities/plan.entity.ts
|
|
11092
11213
|
var Plan = class extends BaseEntity {
|
|
11093
11214
|
};
|
|
11094
11215
|
__decorateClass([
|
|
11095
|
-
|
|
11216
|
+
Column73({ name: "name", type: "varchar", unique: true })
|
|
11096
11217
|
], Plan.prototype, "name", 2);
|
|
11097
11218
|
__decorateClass([
|
|
11098
|
-
|
|
11219
|
+
Column73({ name: "description", type: "varchar", nullable: true })
|
|
11099
11220
|
], Plan.prototype, "description", 2);
|
|
11100
11221
|
__decorateClass([
|
|
11101
|
-
|
|
11222
|
+
Column73({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
11102
11223
|
], Plan.prototype, "price", 2);
|
|
11103
11224
|
__decorateClass([
|
|
11104
|
-
|
|
11225
|
+
Column73({ name: "billing_period", type: "varchar" })
|
|
11105
11226
|
], Plan.prototype, "billingPeriod", 2);
|
|
11106
11227
|
__decorateClass([
|
|
11107
|
-
|
|
11228
|
+
Column73({ name: "is_current", type: "boolean", default: false })
|
|
11108
11229
|
], Plan.prototype, "isCurrent", 2);
|
|
11109
11230
|
__decorateClass([
|
|
11110
11231
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
11111
11232
|
JoinTable()
|
|
11112
11233
|
], Plan.prototype, "features", 2);
|
|
11113
11234
|
Plan = __decorateClass([
|
|
11114
|
-
|
|
11235
|
+
Entity72("plans")
|
|
11115
11236
|
], Plan);
|
|
11116
11237
|
|
|
11117
11238
|
// src/entities/cms.entity.ts
|
|
11118
|
-
import { Entity as
|
|
11239
|
+
import { Entity as Entity73, Column as Column74 } from "typeorm";
|
|
11119
11240
|
var Cms = class extends BaseEntity {
|
|
11120
11241
|
};
|
|
11121
11242
|
__decorateClass([
|
|
11122
|
-
|
|
11243
|
+
Column74({ name: "title", type: "varchar", nullable: true })
|
|
11123
11244
|
], Cms.prototype, "title", 2);
|
|
11124
11245
|
__decorateClass([
|
|
11125
|
-
|
|
11246
|
+
Column74({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
11126
11247
|
], Cms.prototype, "slug", 2);
|
|
11127
11248
|
__decorateClass([
|
|
11128
|
-
|
|
11249
|
+
Column74({ name: "content", type: "varchar", nullable: true })
|
|
11129
11250
|
], Cms.prototype, "content", 2);
|
|
11130
11251
|
__decorateClass([
|
|
11131
|
-
|
|
11252
|
+
Column74({ name: "is_active", type: "boolean", default: true })
|
|
11132
11253
|
], Cms.prototype, "isActive", 2);
|
|
11133
11254
|
Cms = __decorateClass([
|
|
11134
|
-
|
|
11255
|
+
Entity73("cms")
|
|
11135
11256
|
], Cms);
|
|
11136
11257
|
|
|
11137
11258
|
// src/entities/lead.entity.ts
|
|
11138
11259
|
import {
|
|
11139
|
-
Entity as
|
|
11140
|
-
Column as
|
|
11260
|
+
Entity as Entity74,
|
|
11261
|
+
Column as Column75
|
|
11141
11262
|
} from "typeorm";
|
|
11142
11263
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
11143
11264
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -11147,22 +11268,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
11147
11268
|
var Lead = class extends BaseEntity {
|
|
11148
11269
|
};
|
|
11149
11270
|
__decorateClass([
|
|
11150
|
-
|
|
11271
|
+
Column75({ name: "name", type: "varchar", nullable: true })
|
|
11151
11272
|
], Lead.prototype, "name", 2);
|
|
11152
11273
|
__decorateClass([
|
|
11153
|
-
|
|
11274
|
+
Column75({ name: "mobile_code", type: "varchar", nullable: true })
|
|
11154
11275
|
], Lead.prototype, "mobileCode", 2);
|
|
11155
11276
|
__decorateClass([
|
|
11156
|
-
|
|
11277
|
+
Column75({ name: "mobile", type: "varchar", nullable: true })
|
|
11157
11278
|
], Lead.prototype, "mobile", 2);
|
|
11158
11279
|
__decorateClass([
|
|
11159
|
-
|
|
11280
|
+
Column75({ name: "email", type: "varchar", nullable: true })
|
|
11160
11281
|
], Lead.prototype, "email", 2);
|
|
11161
11282
|
__decorateClass([
|
|
11162
|
-
|
|
11283
|
+
Column75({ name: "description", type: "varchar", nullable: true })
|
|
11163
11284
|
], Lead.prototype, "description", 2);
|
|
11164
11285
|
__decorateClass([
|
|
11165
|
-
|
|
11286
|
+
Column75({
|
|
11166
11287
|
name: "category",
|
|
11167
11288
|
type: "enum",
|
|
11168
11289
|
enum: CategoryEmum,
|
|
@@ -11170,7 +11291,7 @@ __decorateClass([
|
|
|
11170
11291
|
})
|
|
11171
11292
|
], Lead.prototype, "category", 2);
|
|
11172
11293
|
Lead = __decorateClass([
|
|
11173
|
-
|
|
11294
|
+
Entity74("leads")
|
|
11174
11295
|
], Lead);
|
|
11175
11296
|
|
|
11176
11297
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -11411,7 +11532,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
11411
11532
|
], ClientFreelancerRecommendation);
|
|
11412
11533
|
|
|
11413
11534
|
// src/entities/commission.entity.ts
|
|
11414
|
-
import { Entity as
|
|
11535
|
+
import { Entity as Entity75, Column as Column76 } from "typeorm";
|
|
11415
11536
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
11416
11537
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
11417
11538
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -11420,7 +11541,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
11420
11541
|
var Commission = class extends BaseEntity {
|
|
11421
11542
|
};
|
|
11422
11543
|
__decorateClass([
|
|
11423
|
-
|
|
11544
|
+
Column76({
|
|
11424
11545
|
name: "freelancer_commission_type",
|
|
11425
11546
|
type: "enum",
|
|
11426
11547
|
enum: CommissionTypeEnum,
|
|
@@ -11428,10 +11549,10 @@ __decorateClass([
|
|
|
11428
11549
|
})
|
|
11429
11550
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
11430
11551
|
__decorateClass([
|
|
11431
|
-
|
|
11552
|
+
Column76({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
11432
11553
|
], Commission.prototype, "freelancerCommission", 2);
|
|
11433
11554
|
__decorateClass([
|
|
11434
|
-
|
|
11555
|
+
Column76({
|
|
11435
11556
|
name: "client_commission_type",
|
|
11436
11557
|
type: "enum",
|
|
11437
11558
|
enum: CommissionTypeEnum,
|
|
@@ -11439,149 +11560,56 @@ __decorateClass([
|
|
|
11439
11560
|
})
|
|
11440
11561
|
], Commission.prototype, "clientCommissionType", 2);
|
|
11441
11562
|
__decorateClass([
|
|
11442
|
-
|
|
11563
|
+
Column76({ name: "client_commission", type: "integer", default: 0 })
|
|
11443
11564
|
], Commission.prototype, "clientCommission", 2);
|
|
11444
11565
|
Commission = __decorateClass([
|
|
11445
|
-
|
|
11566
|
+
Entity75("commissions")
|
|
11446
11567
|
], Commission);
|
|
11447
11568
|
|
|
11448
11569
|
// src/entities/calendly-meeting-log.entity.ts
|
|
11449
11570
|
import {
|
|
11450
|
-
Entity as
|
|
11451
|
-
Column as
|
|
11452
|
-
Index as
|
|
11571
|
+
Entity as Entity76,
|
|
11572
|
+
Column as Column77,
|
|
11573
|
+
Index as Index60
|
|
11453
11574
|
} from "typeorm";
|
|
11454
11575
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
11455
11576
|
};
|
|
11456
11577
|
__decorateClass([
|
|
11457
|
-
|
|
11458
|
-
|
|
11578
|
+
Column77({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
11579
|
+
Index60()
|
|
11459
11580
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
11460
11581
|
__decorateClass([
|
|
11461
|
-
|
|
11582
|
+
Column77({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
11462
11583
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
11463
11584
|
__decorateClass([
|
|
11464
|
-
|
|
11585
|
+
Column77({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
11465
11586
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
11466
11587
|
CalendlyMeetingLog = __decorateClass([
|
|
11467
|
-
|
|
11588
|
+
Entity76("calendly_meeting_logs")
|
|
11468
11589
|
], CalendlyMeetingLog);
|
|
11469
11590
|
|
|
11470
11591
|
// src/entities/zoom-meeting-log.entity.ts
|
|
11471
11592
|
import {
|
|
11472
|
-
Entity as
|
|
11473
|
-
Column as
|
|
11474
|
-
Index as
|
|
11593
|
+
Entity as Entity77,
|
|
11594
|
+
Column as Column78,
|
|
11595
|
+
Index as Index61
|
|
11475
11596
|
} from "typeorm";
|
|
11476
11597
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
11477
11598
|
};
|
|
11478
11599
|
__decorateClass([
|
|
11479
|
-
|
|
11480
|
-
|
|
11600
|
+
Column78({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
11601
|
+
Index61()
|
|
11481
11602
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
11482
11603
|
__decorateClass([
|
|
11483
|
-
|
|
11604
|
+
Column78({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
11484
11605
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
11485
11606
|
__decorateClass([
|
|
11486
|
-
|
|
11607
|
+
Column78({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
11487
11608
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
11488
11609
|
ZoomMeetingLog = __decorateClass([
|
|
11489
|
-
|
|
11610
|
+
Entity77("zoom_meeting_logs")
|
|
11490
11611
|
], ZoomMeetingLog);
|
|
11491
11612
|
|
|
11492
|
-
// src/entities/contract-summary.entity.ts
|
|
11493
|
-
import { Entity as Entity77, Column as Column78, Index as Index61, ManyToOne as ManyToOne60, JoinColumn as JoinColumn61 } from "typeorm";
|
|
11494
|
-
var ContractSummaryStatusEnum = /* @__PURE__ */ ((ContractSummaryStatusEnum2) => {
|
|
11495
|
-
ContractSummaryStatusEnum2["PENDING"] = "PENDING";
|
|
11496
|
-
ContractSummaryStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
11497
|
-
ContractSummaryStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
11498
|
-
return ContractSummaryStatusEnum2;
|
|
11499
|
-
})(ContractSummaryStatusEnum || {});
|
|
11500
|
-
var ContractSummary = class extends BaseEntity {
|
|
11501
|
-
};
|
|
11502
|
-
__decorateClass([
|
|
11503
|
-
Column78({ name: "job_id", type: "integer", nullable: true }),
|
|
11504
|
-
Index61()
|
|
11505
|
-
], ContractSummary.prototype, "jobId", 2);
|
|
11506
|
-
__decorateClass([
|
|
11507
|
-
ManyToOne60(() => Job, (job) => job.contracts),
|
|
11508
|
-
JoinColumn61({ name: "job_id" })
|
|
11509
|
-
], ContractSummary.prototype, "job", 2);
|
|
11510
|
-
__decorateClass([
|
|
11511
|
-
Column78({ name: "client_id", type: "integer", nullable: true }),
|
|
11512
|
-
Index61()
|
|
11513
|
-
], ContractSummary.prototype, "clientId", 2);
|
|
11514
|
-
__decorateClass([
|
|
11515
|
-
ManyToOne60(() => User, (user) => user.clientContracts),
|
|
11516
|
-
JoinColumn61({ name: "client_id" })
|
|
11517
|
-
], ContractSummary.prototype, "client", 2);
|
|
11518
|
-
__decorateClass([
|
|
11519
|
-
Column78({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
11520
|
-
Index61()
|
|
11521
|
-
], ContractSummary.prototype, "freelancerId", 2);
|
|
11522
|
-
__decorateClass([
|
|
11523
|
-
ManyToOne60(() => User, (user) => user.freelancerContracts),
|
|
11524
|
-
JoinColumn61({ name: "freelancer_id" })
|
|
11525
|
-
], ContractSummary.prototype, "freelancer", 2);
|
|
11526
|
-
__decorateClass([
|
|
11527
|
-
Column78({
|
|
11528
|
-
name: "start_date",
|
|
11529
|
-
type: "timestamp with time zone",
|
|
11530
|
-
nullable: true
|
|
11531
|
-
})
|
|
11532
|
-
], ContractSummary.prototype, "startDate", 2);
|
|
11533
|
-
__decorateClass([
|
|
11534
|
-
Column78({
|
|
11535
|
-
name: "end_date",
|
|
11536
|
-
type: "timestamp with time zone",
|
|
11537
|
-
nullable: true
|
|
11538
|
-
})
|
|
11539
|
-
], ContractSummary.prototype, "endDate", 2);
|
|
11540
|
-
__decorateClass([
|
|
11541
|
-
Column78({ name: "duration", type: "integer", nullable: true })
|
|
11542
|
-
], ContractSummary.prototype, "duration", 2);
|
|
11543
|
-
__decorateClass([
|
|
11544
|
-
Column78({
|
|
11545
|
-
name: "contract_value",
|
|
11546
|
-
type: "decimal",
|
|
11547
|
-
precision: 10,
|
|
11548
|
-
scale: 2,
|
|
11549
|
-
nullable: true
|
|
11550
|
-
})
|
|
11551
|
-
], ContractSummary.prototype, "contractValue", 2);
|
|
11552
|
-
__decorateClass([
|
|
11553
|
-
Column78({ name: "invoicing_cycle", type: "varchar", nullable: true })
|
|
11554
|
-
], ContractSummary.prototype, "invoicingCycle", 2);
|
|
11555
|
-
__decorateClass([
|
|
11556
|
-
Column78({ name: "is_msa_signed", type: "boolean", default: false })
|
|
11557
|
-
], ContractSummary.prototype, "isMsaSigned", 2);
|
|
11558
|
-
__decorateClass([
|
|
11559
|
-
Column78({ name: "is_sow_signed", type: "boolean", default: false })
|
|
11560
|
-
], ContractSummary.prototype, "isSowSigned", 2);
|
|
11561
|
-
__decorateClass([
|
|
11562
|
-
Column78({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
11563
|
-
], ContractSummary.prototype, "isEscrowDeposited", 2);
|
|
11564
|
-
__decorateClass([
|
|
11565
|
-
Column78({
|
|
11566
|
-
name: "escrow_deposite_amount",
|
|
11567
|
-
type: "decimal",
|
|
11568
|
-
precision: 10,
|
|
11569
|
-
scale: 2,
|
|
11570
|
-
nullable: true
|
|
11571
|
-
})
|
|
11572
|
-
], ContractSummary.prototype, "escrowDepositeAmount", 2);
|
|
11573
|
-
__decorateClass([
|
|
11574
|
-
Column78({
|
|
11575
|
-
name: "status",
|
|
11576
|
-
type: "enum",
|
|
11577
|
-
enum: ContractSummaryStatusEnum,
|
|
11578
|
-
nullable: true
|
|
11579
|
-
})
|
|
11580
|
-
], ContractSummary.prototype, "status", 2);
|
|
11581
|
-
ContractSummary = __decorateClass([
|
|
11582
|
-
Entity77("contract_summaries")
|
|
11583
|
-
], ContractSummary);
|
|
11584
|
-
|
|
11585
11613
|
// src/entities/stripe-logs.entity.ts
|
|
11586
11614
|
import { Entity as Entity78, Column as Column79 } from "typeorm";
|
|
11587
11615
|
var StripeLog = class extends BaseEntity {
|