@experts_hub/shared 1.0.452 → 1.0.454

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/index.mjs CHANGED
@@ -1457,17 +1457,17 @@ import {
1457
1457
  } from "class-validator";
1458
1458
 
1459
1459
  // src/entities/rating.entity.ts
1460
- import { Entity as Entity57, Column as Column58, ManyToOne as ManyToOne51, JoinColumn as JoinColumn52, Index as Index50 } from "typeorm";
1460
+ import { Entity as Entity58, Column as Column59, ManyToOne as ManyToOne52, JoinColumn as JoinColumn53, Index as Index51 } from "typeorm";
1461
1461
 
1462
1462
  // src/entities/user.entity.ts
1463
1463
  import {
1464
- Entity as Entity56,
1465
- Column as Column57,
1464
+ Entity as Entity57,
1465
+ Column as Column58,
1466
1466
  OneToMany as OneToMany19,
1467
1467
  OneToOne as OneToOne7,
1468
- Index as Index49,
1469
- ManyToOne as ManyToOne50,
1470
- JoinColumn as JoinColumn51
1468
+ Index as Index50,
1469
+ ManyToOne as ManyToOne51,
1470
+ JoinColumn as JoinColumn52
1471
1471
  } from "typeorm";
1472
1472
 
1473
1473
  // src/entities/base.entity.ts
@@ -4782,169 +4782,34 @@ FreelancerResume = __decorateClass([
4782
4782
  Entity51("freelancer_resumes")
4783
4783
  ], FreelancerResume);
4784
4784
 
4785
- // src/entities/stripe-wallet.entity.ts
4786
- import { Entity as Entity53, Column as Column54, Index as Index46, JoinColumn as JoinColumn48, OneToOne as OneToOne6, OneToMany as OneToMany18 } from "typeorm";
4787
-
4788
- // src/entities/stripe-wallet-transaction.entity.ts
4789
- import { Entity as Entity52, Column as Column53, Index as Index45, ManyToOne as ManyToOne47, JoinColumn as JoinColumn47 } from "typeorm";
4790
- var StripeWalletTransactionTypeEnum = /* @__PURE__ */ ((StripeWalletTransactionTypeEnum2) => {
4791
- StripeWalletTransactionTypeEnum2["CR"] = "CR";
4792
- StripeWalletTransactionTypeEnum2["DR"] = "DR";
4793
- return StripeWalletTransactionTypeEnum2;
4794
- })(StripeWalletTransactionTypeEnum || {});
4795
- var StripeWalletTransactionStatusEnum = /* @__PURE__ */ ((StripeWalletTransactionStatusEnum2) => {
4796
- StripeWalletTransactionStatusEnum2["PENDING"] = "PENDING";
4797
- StripeWalletTransactionStatusEnum2["PROCESSING"] = "PROCESSING";
4798
- StripeWalletTransactionStatusEnum2["SUCCESS"] = "SUCCESS";
4799
- StripeWalletTransactionStatusEnum2["FAILED"] = "FAILED";
4800
- StripeWalletTransactionStatusEnum2["EXPIRED"] = "EXPIRED";
4801
- return StripeWalletTransactionStatusEnum2;
4802
- })(StripeWalletTransactionStatusEnum || {});
4803
- var StripeWalletTransaction = class extends BaseEntity {
4804
- };
4805
- __decorateClass([
4806
- Column53({ name: "wallet_id", type: "integer", nullable: true }),
4807
- Index45()
4808
- ], StripeWalletTransaction.prototype, "walletId", 2);
4809
- __decorateClass([
4810
- ManyToOne47(() => StripeWallet, (stripeWallet) => stripeWallet.transactions),
4811
- JoinColumn47({ name: "wallet_id" })
4812
- ], StripeWalletTransaction.prototype, "stripeWallet", 2);
4813
- __decorateClass([
4814
- Column53({ name: "amount", type: "bigint", nullable: true })
4815
- ], StripeWalletTransaction.prototype, "amount", 2);
4816
- __decorateClass([
4817
- Column53({ name: "currency", type: "varchar", nullable: true })
4818
- ], StripeWalletTransaction.prototype, "currency", 2);
4819
- __decorateClass([
4820
- Column53({ name: "type", type: "enum", enum: StripeWalletTransactionTypeEnum })
4821
- ], StripeWalletTransaction.prototype, "type", 2);
4822
- __decorateClass([
4823
- Column53({ name: "status", type: "enum", enum: StripeWalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
4824
- ], StripeWalletTransaction.prototype, "status", 2);
4825
- __decorateClass([
4826
- Column53({ name: "stripe_session_id", type: "varchar", nullable: true })
4827
- ], StripeWalletTransaction.prototype, "stripeSessionId", 2);
4828
- __decorateClass([
4829
- Column53({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
4830
- ], StripeWalletTransaction.prototype, "stripePaymentIntentId", 2);
4831
- __decorateClass([
4832
- Column53({ name: "description", type: "text", nullable: true })
4833
- ], StripeWalletTransaction.prototype, "description", 2);
4834
- __decorateClass([
4835
- Column53({ name: "deposit_amount_cents", type: "bigint", nullable: true, default: 0 })
4836
- ], StripeWalletTransaction.prototype, "depositAmountCents", 2);
4837
- __decorateClass([
4838
- Column53({ name: "platform_fee_cents", type: "bigint", nullable: true, default: 0 })
4839
- ], StripeWalletTransaction.prototype, "platformFeeCents", 2);
4840
- __decorateClass([
4841
- Column53({ name: "tax_cents", type: "bigint", nullable: true, default: 0 })
4842
- ], StripeWalletTransaction.prototype, "taxCents", 2);
4843
- __decorateClass([
4844
- Column53({ name: "stripe_fee_cents", type: "bigint", nullable: true, default: 0 })
4845
- ], StripeWalletTransaction.prototype, "stripeFeeCents", 2);
4846
- __decorateClass([
4847
- Column53({ name: "total_paid_cents", type: "bigint", nullable: true, default: 0 })
4848
- ], StripeWalletTransaction.prototype, "totalPaidCents", 2);
4849
- __decorateClass([
4850
- Column53({ name: "net_received_cents", type: "bigint", nullable: true, default: 0 })
4851
- ], StripeWalletTransaction.prototype, "netReceivedCents", 2);
4852
- __decorateClass([
4853
- Column53({ name: "stripe_charge_id", type: "varchar", nullable: true })
4854
- ], StripeWalletTransaction.prototype, "stripeChargeId", 2);
4855
- __decorateClass([
4856
- Column53({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
4857
- ], StripeWalletTransaction.prototype, "stripeBalanceTransactionId", 2);
4858
- __decorateClass([
4859
- Column53({ name: "completed_at", type: "timestamptz", nullable: true })
4860
- ], StripeWalletTransaction.prototype, "completedAt", 2);
4861
- __decorateClass([
4862
- Column53({ name: "transaction_for", type: "varchar", nullable: true })
4863
- ], StripeWalletTransaction.prototype, "transactionFor", 2);
4864
- __decorateClass([
4865
- Column53({ name: "meta_data", type: "varchar", nullable: true })
4866
- ], StripeWalletTransaction.prototype, "metaData", 2);
4867
- StripeWalletTransaction = __decorateClass([
4868
- Entity52("stripe_wallet_transactions")
4869
- ], StripeWalletTransaction);
4870
-
4871
- // src/entities/stripe-wallet.entity.ts
4872
- var StripeWalletAccountTypeEnum = /* @__PURE__ */ ((StripeWalletAccountTypeEnum2) => {
4873
- StripeWalletAccountTypeEnum2["BUSINESS"] = "BUSINESS";
4874
- StripeWalletAccountTypeEnum2["FREELANCER"] = "FREELANCER";
4875
- return StripeWalletAccountTypeEnum2;
4876
- })(StripeWalletAccountTypeEnum || {});
4877
- var StripeWalletOnboardingStatusEnum = /* @__PURE__ */ ((StripeWalletOnboardingStatusEnum2) => {
4878
- StripeWalletOnboardingStatusEnum2["PENDING"] = "PENDING";
4879
- StripeWalletOnboardingStatusEnum2["COMPLETED"] = "COMPLETED";
4880
- return StripeWalletOnboardingStatusEnum2;
4881
- })(StripeWalletOnboardingStatusEnum || {});
4882
- var StripeWallet = class extends BaseEntity {
4883
- };
4884
- __decorateClass([
4885
- Column54({ name: "user_id", type: "integer", nullable: true }),
4886
- Index46()
4887
- ], StripeWallet.prototype, "userId", 2);
4888
- __decorateClass([
4889
- OneToOne6(() => User, (user) => user.stripeWallet),
4890
- JoinColumn48({ name: "user_id" })
4891
- ], StripeWallet.prototype, "user", 2);
4892
- __decorateClass([
4893
- Column54({ name: "account_type", type: "enum", enum: StripeWalletAccountTypeEnum, nullable: true })
4894
- ], StripeWallet.prototype, "accountType", 2);
4895
- __decorateClass([
4896
- Column54({ name: "stripe_account_id", type: "varchar", nullable: true })
4897
- ], StripeWallet.prototype, "stripeAccountId", 2);
4898
- __decorateClass([
4899
- Column54({ name: "stripe_customer_id", type: "varchar", nullable: true })
4900
- ], StripeWallet.prototype, "stripeCustomerId", 2);
4901
- __decorateClass([
4902
- Column54({ name: "wallet_balance", type: "bigint", default: 0 })
4903
- ], StripeWallet.prototype, "walletBalance", 2);
4904
- __decorateClass([
4905
- Column54({ name: "wallet_balance_cents", type: "bigint", default: 0 })
4906
- ], StripeWallet.prototype, "walletBalanceCents", 2);
4907
- __decorateClass([
4908
- Column54({ name: "onboarding_status", type: "enum", enum: StripeWalletOnboardingStatusEnum, nullable: true })
4909
- ], StripeWallet.prototype, "onboardingStatus", 2);
4910
- __decorateClass([
4911
- Column54({ name: "stripe_metadata", type: "jsonb", nullable: true })
4912
- ], StripeWallet.prototype, "stripeMetadata", 2);
4913
- __decorateClass([
4914
- OneToMany18(() => StripeWalletTransaction, (stripeWalletTransaction) => stripeWalletTransaction.stripeWallet)
4915
- ], StripeWallet.prototype, "transactions", 2);
4916
- StripeWallet = __decorateClass([
4917
- Entity53("stripe_wallets")
4918
- ], StripeWallet);
4919
-
4920
4785
  // src/entities/signature.entity.ts
4921
4786
  import {
4922
- Entity as Entity54,
4923
- Column as Column55,
4924
- Index as Index47,
4925
- ManyToOne as ManyToOne48,
4926
- JoinColumn as JoinColumn49
4787
+ Entity as Entity52,
4788
+ Column as Column53,
4789
+ Index as Index45,
4790
+ ManyToOne as ManyToOne47,
4791
+ JoinColumn as JoinColumn47
4927
4792
  } from "typeorm";
4928
4793
  var Signature = class extends BaseEntity {
4929
4794
  };
4930
4795
  // individual index to find profile by user
4931
4796
  __decorateClass([
4932
- Column55({ name: "user_id", type: "integer", nullable: true }),
4933
- Index47()
4797
+ Column53({ name: "user_id", type: "integer", nullable: true }),
4798
+ Index45()
4934
4799
  ], Signature.prototype, "userId", 2);
4935
4800
  __decorateClass([
4936
- ManyToOne48(() => User, (user) => user.signatures),
4937
- JoinColumn49({ name: "user_id" })
4801
+ ManyToOne47(() => User, (user) => user.signatures),
4802
+ JoinColumn47({ name: "user_id" })
4938
4803
  ], Signature.prototype, "user", 2);
4939
4804
  __decorateClass([
4940
- Column55({ name: "signature_url", type: "text", nullable: true })
4805
+ Column53({ name: "signature_url", type: "text", nullable: true })
4941
4806
  ], Signature.prototype, "signatureUrl", 2);
4942
4807
  Signature = __decorateClass([
4943
- Entity54("signatures")
4808
+ Entity52("signatures")
4944
4809
  ], Signature);
4945
4810
 
4946
4811
  // src/entities/dispute.entity.ts
4947
- import { Entity as Entity55, Column as Column56, Index as Index48, JoinColumn as JoinColumn50, ManyToOne as ManyToOne49 } from "typeorm";
4812
+ import { Entity as Entity53, Column as Column54, Index as Index46, JoinColumn as JoinColumn48, ManyToOne as ManyToOne48 } from "typeorm";
4948
4813
  var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
4949
4814
  DisputeStatusEnum2["OPEN"] = "OPEN";
4950
4815
  DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
@@ -4960,20 +4825,20 @@ var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
4960
4825
  var Dispute = class extends BaseEntity {
4961
4826
  };
4962
4827
  __decorateClass([
4963
- Column56({ name: "dispute_unique_id", type: "varchar", unique: true })
4828
+ Column54({ name: "dispute_unique_id", type: "varchar", unique: true })
4964
4829
  ], Dispute.prototype, "disputeUniqueId", 2);
4965
4830
  __decorateClass([
4966
- Column56({ name: "dispute_type", type: "varchar", nullable: true }),
4967
- Index48()
4831
+ Column54({ name: "dispute_type", type: "varchar", nullable: true }),
4832
+ Index46()
4968
4833
  ], Dispute.prototype, "disputeType", 2);
4969
4834
  __decorateClass([
4970
- Column56({ name: "description", type: "varchar", nullable: true })
4835
+ Column54({ name: "description", type: "varchar", nullable: true })
4971
4836
  ], Dispute.prototype, "description", 2);
4972
4837
  __decorateClass([
4973
- Column56({ name: "comment", type: "varchar", nullable: true })
4838
+ Column54({ name: "comment", type: "varchar", nullable: true })
4974
4839
  ], Dispute.prototype, "comment", 2);
4975
4840
  __decorateClass([
4976
- Column56({
4841
+ Column54({
4977
4842
  name: "status",
4978
4843
  type: "enum",
4979
4844
  enum: DisputeStatusEnum,
@@ -4981,31 +4846,220 @@ __decorateClass([
4981
4846
  })
4982
4847
  ], Dispute.prototype, "status", 2);
4983
4848
  __decorateClass([
4984
- Column56({ name: "initiator_id", type: "integer" }),
4985
- Index48()
4849
+ Column54({ name: "initiator_id", type: "integer" }),
4850
+ Index46()
4986
4851
  ], Dispute.prototype, "initiatorId", 2);
4987
4852
  __decorateClass([
4988
- ManyToOne49(() => User, (user) => user.initiatedDisputes),
4989
- JoinColumn50({ name: "initiator_id" })
4853
+ ManyToOne48(() => User, (user) => user.initiatedDisputes),
4854
+ JoinColumn48({ name: "initiator_id" })
4990
4855
  ], Dispute.prototype, "initiator", 2);
4991
4856
  __decorateClass([
4992
- Column56({ name: "respondent_id", type: "integer", nullable: true }),
4993
- Index48()
4857
+ Column54({ name: "respondent_id", type: "integer", nullable: true }),
4858
+ Index46()
4994
4859
  ], Dispute.prototype, "respondentId", 2);
4995
4860
  __decorateClass([
4996
- ManyToOne49(() => User, (user) => user.respondentDisputes, { nullable: true }),
4997
- JoinColumn50({ name: "respondent_id" })
4861
+ ManyToOne48(() => User, (user) => user.respondentDisputes, { nullable: true }),
4862
+ JoinColumn48({ name: "respondent_id" })
4998
4863
  ], Dispute.prototype, "respondent", 2);
4999
4864
  __decorateClass([
5000
- Column56({ name: "attachments", type: "jsonb", nullable: true })
4865
+ Column54({ name: "attachments", type: "jsonb", nullable: true })
5001
4866
  ], Dispute.prototype, "attachments", 2);
5002
4867
  __decorateClass([
5003
- Column56({ name: "dynamic_fields", type: "jsonb", nullable: true })
4868
+ Column54({ name: "dynamic_fields", type: "jsonb", nullable: true })
5004
4869
  ], Dispute.prototype, "dynamicFields", 2);
5005
4870
  Dispute = __decorateClass([
5006
- Entity55("disputes")
4871
+ Entity53("disputes")
5007
4872
  ], Dispute);
5008
4873
 
4874
+ // src/entities/stripe-transaction.entity.ts
4875
+ import { Entity as Entity54, Column as Column55, Index as Index47, ManyToOne as ManyToOne49, JoinColumn as JoinColumn49 } from "typeorm";
4876
+ var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
4877
+ StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
4878
+ StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
4879
+ StripeTransactionTypeEnum2["WITHDRAW"] = "WITHDRAW";
4880
+ StripeTransactionTypeEnum2["INVOICE_PAYMENT"] = "INVOICE_PAYMENT";
4881
+ StripeTransactionTypeEnum2["REFUND"] = "REFUND";
4882
+ return StripeTransactionTypeEnum2;
4883
+ })(StripeTransactionTypeEnum || {});
4884
+ var StripeTransactionStatusEnum = /* @__PURE__ */ ((StripeTransactionStatusEnum2) => {
4885
+ StripeTransactionStatusEnum2["PENDING"] = "PENDING";
4886
+ StripeTransactionStatusEnum2["PROCESSING"] = "PROCESSING";
4887
+ StripeTransactionStatusEnum2["SUCCESS"] = "SUCCESS";
4888
+ StripeTransactionStatusEnum2["FAILED"] = "FAILED";
4889
+ StripeTransactionStatusEnum2["EXPIRED"] = "EXPIRED";
4890
+ return StripeTransactionStatusEnum2;
4891
+ })(StripeTransactionStatusEnum || {});
4892
+ var StripeTransaction = class extends BaseEntity {
4893
+ };
4894
+ __decorateClass([
4895
+ Column55({ name: "user_id", type: "integer", nullable: true }),
4896
+ Index47()
4897
+ ], StripeTransaction.prototype, "userId", 2);
4898
+ __decorateClass([
4899
+ ManyToOne49(() => User, (user) => user.stripeTransactions),
4900
+ JoinColumn49({ name: "user_id" })
4901
+ ], StripeTransaction.prototype, "user", 2);
4902
+ __decorateClass([
4903
+ Column55({ name: "amount", type: "bigint", nullable: true })
4904
+ ], StripeTransaction.prototype, "amount", 2);
4905
+ __decorateClass([
4906
+ Column55({ name: "currency", type: "varchar", nullable: true })
4907
+ ], StripeTransaction.prototype, "currency", 2);
4908
+ __decorateClass([
4909
+ Column55({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
4910
+ ], StripeTransaction.prototype, "type", 2);
4911
+ __decorateClass([
4912
+ Column55({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
4913
+ ], StripeTransaction.prototype, "status", 2);
4914
+ __decorateClass([
4915
+ Column55({ name: "stripe_session_id", type: "varchar", nullable: true })
4916
+ ], StripeTransaction.prototype, "stripeSessionId", 2);
4917
+ __decorateClass([
4918
+ Column55({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
4919
+ ], StripeTransaction.prototype, "stripePaymentIntentId", 2);
4920
+ __decorateClass([
4921
+ Column55({ name: "description", type: "text", nullable: true })
4922
+ ], StripeTransaction.prototype, "description", 2);
4923
+ __decorateClass([
4924
+ Column55({ name: "deposit_amount_cents", type: "bigint", nullable: true, default: 0 })
4925
+ ], StripeTransaction.prototype, "depositAmountCents", 2);
4926
+ __decorateClass([
4927
+ Column55({ name: "platform_fee_cents", type: "bigint", nullable: true, default: 0 })
4928
+ ], StripeTransaction.prototype, "platformFeeCents", 2);
4929
+ __decorateClass([
4930
+ Column55({ name: "tax_cents", type: "bigint", nullable: true, default: 0 })
4931
+ ], StripeTransaction.prototype, "taxCents", 2);
4932
+ __decorateClass([
4933
+ Column55({ name: "stripe_fee_cents", type: "bigint", nullable: true, default: 0 })
4934
+ ], StripeTransaction.prototype, "stripeFeeCents", 2);
4935
+ __decorateClass([
4936
+ Column55({ name: "total_paid_cents", type: "bigint", nullable: true, default: 0 })
4937
+ ], StripeTransaction.prototype, "totalPaidCents", 2);
4938
+ __decorateClass([
4939
+ Column55({ name: "net_received_cents", type: "bigint", nullable: true, default: 0 })
4940
+ ], StripeTransaction.prototype, "netReceivedCents", 2);
4941
+ __decorateClass([
4942
+ Column55({ name: "stripe_charge_id", type: "varchar", nullable: true })
4943
+ ], StripeTransaction.prototype, "stripeChargeId", 2);
4944
+ __decorateClass([
4945
+ Column55({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
4946
+ ], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
4947
+ __decorateClass([
4948
+ Column55({ name: "completed_at", type: "timestamptz", nullable: true })
4949
+ ], StripeTransaction.prototype, "completedAt", 2);
4950
+ __decorateClass([
4951
+ Column55({ name: "raw_session_data", type: "jsonb", nullable: true })
4952
+ ], StripeTransaction.prototype, "rawSessionData", 2);
4953
+ StripeTransaction = __decorateClass([
4954
+ Entity54("stripe_transactions")
4955
+ ], StripeTransaction);
4956
+
4957
+ // src/entities/wallet.entity.ts
4958
+ import { Entity as Entity56, Column as Column57, Index as Index49, JoinColumn as JoinColumn51, OneToOne as OneToOne6, OneToMany as OneToMany18 } from "typeorm";
4959
+
4960
+ // src/entities/wallet-transaction.entity.ts
4961
+ import { Entity as Entity55, Column as Column56, Index as Index48, ManyToOne as ManyToOne50, JoinColumn as JoinColumn50 } from "typeorm";
4962
+ var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
4963
+ WalletTransactionTypeEnum2["CR"] = "CR";
4964
+ WalletTransactionTypeEnum2["DR"] = "DR";
4965
+ return WalletTransactionTypeEnum2;
4966
+ })(WalletTransactionTypeEnum || {});
4967
+ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2) => {
4968
+ WalletTransactionStatusEnum2["PENDING"] = "PENDING";
4969
+ WalletTransactionStatusEnum2["PROCESSING"] = "PROCESSING";
4970
+ WalletTransactionStatusEnum2["SUCCESS"] = "SUCCESS";
4971
+ WalletTransactionStatusEnum2["FAILED"] = "FAILED";
4972
+ WalletTransactionStatusEnum2["EXPIRED"] = "EXPIRED";
4973
+ return WalletTransactionStatusEnum2;
4974
+ })(WalletTransactionStatusEnum || {});
4975
+ var WalletTransaction = class extends BaseEntity {
4976
+ };
4977
+ __decorateClass([
4978
+ Column56({ name: "wallet_id", type: "integer", nullable: true }),
4979
+ Index48()
4980
+ ], WalletTransaction.prototype, "walletId", 2);
4981
+ __decorateClass([
4982
+ ManyToOne50(() => Wallet, (wallet) => wallet.walletTransactions),
4983
+ JoinColumn50({ name: "wallet_id" })
4984
+ ], WalletTransaction.prototype, "wallet", 2);
4985
+ __decorateClass([
4986
+ Column56({ name: "amount", type: "bigint", nullable: true })
4987
+ ], WalletTransaction.prototype, "amount", 2);
4988
+ __decorateClass([
4989
+ Column56({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
4990
+ ], WalletTransaction.prototype, "type", 2);
4991
+ __decorateClass([
4992
+ Column56({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
4993
+ ], WalletTransaction.prototype, "status", 2);
4994
+ __decorateClass([
4995
+ Column56({ name: "description", type: "text", nullable: true })
4996
+ ], WalletTransaction.prototype, "description", 2);
4997
+ __decorateClass([
4998
+ Column56({ name: "completed_at", type: "timestamptz", nullable: true })
4999
+ ], WalletTransaction.prototype, "completedAt", 2);
5000
+ __decorateClass([
5001
+ Column56({ name: "transaction_for", type: "varchar", nullable: true })
5002
+ ], WalletTransaction.prototype, "transactionFor", 2);
5003
+ __decorateClass([
5004
+ Column56({ name: "meta_data", type: "varchar", nullable: true })
5005
+ ], WalletTransaction.prototype, "metaData", 2);
5006
+ __decorateClass([
5007
+ Column56({ name: "stripe_transaction_id", type: "integer", nullable: true }),
5008
+ Index48()
5009
+ ], WalletTransaction.prototype, "stripeTransactionId", 2);
5010
+ WalletTransaction = __decorateClass([
5011
+ Entity55("wallet_transactions")
5012
+ ], WalletTransaction);
5013
+
5014
+ // src/entities/wallet.entity.ts
5015
+ var WalletAccountTypeEnum = /* @__PURE__ */ ((WalletAccountTypeEnum2) => {
5016
+ WalletAccountTypeEnum2["BUSINESS"] = "BUSINESS";
5017
+ WalletAccountTypeEnum2["FREELANCER"] = "FREELANCER";
5018
+ return WalletAccountTypeEnum2;
5019
+ })(WalletAccountTypeEnum || {});
5020
+ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2) => {
5021
+ WalletOnboardingStatusEnum2["PENDING"] = "PENDING";
5022
+ WalletOnboardingStatusEnum2["COMPLETED"] = "COMPLETED";
5023
+ return WalletOnboardingStatusEnum2;
5024
+ })(WalletOnboardingStatusEnum || {});
5025
+ var Wallet = class extends BaseEntity {
5026
+ };
5027
+ __decorateClass([
5028
+ Column57({ name: "user_id", type: "integer", nullable: true }),
5029
+ Index49()
5030
+ ], Wallet.prototype, "userId", 2);
5031
+ __decorateClass([
5032
+ OneToOne6(() => User, (user) => user.wallet),
5033
+ JoinColumn51({ name: "user_id" })
5034
+ ], Wallet.prototype, "user", 2);
5035
+ __decorateClass([
5036
+ Column57({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
5037
+ ], Wallet.prototype, "accountType", 2);
5038
+ __decorateClass([
5039
+ Column57({ name: "stripe_account_id", type: "varchar", nullable: true })
5040
+ ], Wallet.prototype, "stripeAccountId", 2);
5041
+ __decorateClass([
5042
+ Column57({ name: "stripe_customer_id", type: "varchar", nullable: true })
5043
+ ], Wallet.prototype, "stripeCustomerId", 2);
5044
+ __decorateClass([
5045
+ Column57({ name: "wallet_balance", type: "bigint", default: 0 })
5046
+ ], Wallet.prototype, "walletBalance", 2);
5047
+ __decorateClass([
5048
+ Column57({ name: "wallet_balance_cents", type: "bigint", default: 0 })
5049
+ ], Wallet.prototype, "walletBalanceCents", 2);
5050
+ __decorateClass([
5051
+ Column57({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
5052
+ ], Wallet.prototype, "onboardingStatus", 2);
5053
+ __decorateClass([
5054
+ Column57({ name: "stripe_metadata", type: "jsonb", nullable: true })
5055
+ ], Wallet.prototype, "stripeMetadata", 2);
5056
+ __decorateClass([
5057
+ OneToMany18(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
5058
+ ], Wallet.prototype, "walletTransactions", 2);
5059
+ Wallet = __decorateClass([
5060
+ Entity56("wallets")
5061
+ ], Wallet);
5062
+
5009
5063
  // src/entities/user.entity.ts
5010
5064
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
5011
5065
  AccountType2["ADMIN"] = "ADMIN";
@@ -5031,51 +5085,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
5031
5085
  var User = class extends BaseEntity {
5032
5086
  };
5033
5087
  __decorateClass([
5034
- Column57({ name: "unique_id", type: "varchar", unique: true })
5088
+ Column58({ name: "unique_id", type: "varchar", unique: true })
5035
5089
  ], User.prototype, "uniqueId", 2);
5036
5090
  __decorateClass([
5037
- Column57({ name: "parent_id", type: "integer", nullable: true }),
5038
- Index49()
5091
+ Column58({ name: "parent_id", type: "integer", nullable: true }),
5092
+ Index50()
5039
5093
  ], User.prototype, "parentId", 2);
5040
5094
  __decorateClass([
5041
- ManyToOne50(() => User, (user) => user.children, { nullable: true }),
5042
- JoinColumn51({ name: "parent_id" })
5095
+ ManyToOne51(() => User, (user) => user.children, { nullable: true }),
5096
+ JoinColumn52({ name: "parent_id" })
5043
5097
  ], User.prototype, "parent", 2);
5044
5098
  __decorateClass([
5045
5099
  OneToMany19(() => User, (user) => user.parent)
5046
5100
  ], User.prototype, "children", 2);
5047
5101
  __decorateClass([
5048
- Column57({ name: "username", type: "varchar", unique: true, nullable: true })
5102
+ Column58({ name: "username", type: "varchar", unique: true, nullable: true })
5049
5103
  ], User.prototype, "username", 2);
5050
5104
  __decorateClass([
5051
- Column57({ name: "first_name", type: "varchar", length: 100, nullable: true })
5105
+ Column58({ name: "first_name", type: "varchar", length: 100, nullable: true })
5052
5106
  ], User.prototype, "firstName", 2);
5053
5107
  __decorateClass([
5054
- Column57({ name: "last_name", type: "varchar", length: 100, nullable: true })
5108
+ Column58({ name: "last_name", type: "varchar", length: 100, nullable: true })
5055
5109
  ], User.prototype, "lastName", 2);
5056
5110
  __decorateClass([
5057
- Column57({ name: "date_of_birth", type: "date", nullable: true })
5111
+ Column58({ name: "date_of_birth", type: "date", nullable: true })
5058
5112
  ], User.prototype, "dateOfBirth", 2);
5059
5113
  __decorateClass([
5060
- Column57({ name: "gender", type: "varchar", length: 10, nullable: true })
5114
+ Column58({ name: "gender", type: "varchar", length: 10, nullable: true })
5061
5115
  ], User.prototype, "gender", 2);
5062
5116
  __decorateClass([
5063
- Column57({ name: "profile_picture_url", type: "text", nullable: true })
5117
+ Column58({ name: "profile_picture_url", type: "text", nullable: true })
5064
5118
  ], User.prototype, "profilePictureUrl", 2);
5065
5119
  __decorateClass([
5066
- Column57({ name: "email", type: "varchar", unique: true })
5120
+ Column58({ name: "email", type: "varchar", unique: true })
5067
5121
  ], User.prototype, "email", 2);
5068
5122
  __decorateClass([
5069
- Column57({ name: "mobile_code", type: "varchar", nullable: true })
5123
+ Column58({ name: "mobile_code", type: "varchar", nullable: true })
5070
5124
  ], User.prototype, "mobileCode", 2);
5071
5125
  __decorateClass([
5072
- Column57({ name: "mobile", type: "varchar", nullable: true })
5126
+ Column58({ name: "mobile", type: "varchar", nullable: true })
5073
5127
  ], User.prototype, "mobile", 2);
5074
5128
  __decorateClass([
5075
- Column57({ name: "password", type: "varchar", nullable: true })
5129
+ Column58({ name: "password", type: "varchar", nullable: true })
5076
5130
  ], User.prototype, "password", 2);
5077
5131
  __decorateClass([
5078
- Column57({
5132
+ Column58({
5079
5133
  name: "account_type",
5080
5134
  type: "enum",
5081
5135
  enum: AccountType,
@@ -5083,7 +5137,7 @@ __decorateClass([
5083
5137
  })
5084
5138
  ], User.prototype, "accountType", 2);
5085
5139
  __decorateClass([
5086
- Column57({
5140
+ Column58({
5087
5141
  name: "account_status",
5088
5142
  type: "enum",
5089
5143
  enum: AccountStatus,
@@ -5091,42 +5145,42 @@ __decorateClass([
5091
5145
  })
5092
5146
  ], User.prototype, "accountStatus", 2);
5093
5147
  __decorateClass([
5094
- Column57({ name: "is_email_verified", type: "boolean", default: false })
5148
+ Column58({ name: "is_email_verified", type: "boolean", default: false })
5095
5149
  ], User.prototype, "isEmailVerified", 2);
5096
5150
  __decorateClass([
5097
- Column57({ name: "is_mobile_verified", type: "boolean", default: false })
5151
+ Column58({ name: "is_mobile_verified", type: "boolean", default: false })
5098
5152
  ], User.prototype, "isMobileVerified", 2);
5099
5153
  __decorateClass([
5100
- Column57({ name: "is_social", type: "boolean", default: false })
5154
+ Column58({ name: "is_social", type: "boolean", default: false })
5101
5155
  ], User.prototype, "isSocial", 2);
5102
5156
  __decorateClass([
5103
- Column57({
5157
+ Column58({
5104
5158
  name: "last_login_at",
5105
5159
  type: "timestamp with time zone",
5106
5160
  nullable: true
5107
5161
  })
5108
5162
  ], User.prototype, "lastLoginAt", 2);
5109
5163
  __decorateClass([
5110
- Column57({ name: "last_login_ip", type: "varchar", nullable: true })
5164
+ Column58({ name: "last_login_ip", type: "varchar", nullable: true })
5111
5165
  ], User.prototype, "lastLoginIp", 2);
5112
5166
  __decorateClass([
5113
- Column57({ name: "reset_token", type: "varchar", nullable: true })
5167
+ Column58({ name: "reset_token", type: "varchar", nullable: true })
5114
5168
  ], User.prototype, "resetToken", 2);
5115
5169
  __decorateClass([
5116
- Column57({
5170
+ Column58({
5117
5171
  name: "reset_token_expire_at",
5118
5172
  type: "timestamp with time zone",
5119
5173
  nullable: true
5120
5174
  })
5121
5175
  ], User.prototype, "resetTokenExpireAt", 2);
5122
5176
  __decorateClass([
5123
- Column57({ name: "set_password_token", type: "varchar", nullable: true })
5177
+ Column58({ name: "set_password_token", type: "varchar", nullable: true })
5124
5178
  ], User.prototype, "setPasswordToken", 2);
5125
5179
  __decorateClass([
5126
5180
  OneToMany19(() => RefreshToken, (token) => token.user)
5127
5181
  ], User.prototype, "refreshTokens", 2);
5128
5182
  __decorateClass([
5129
- Column57({
5183
+ Column58({
5130
5184
  name: "provider",
5131
5185
  type: "enum",
5132
5186
  enum: Provider,
@@ -5135,19 +5189,19 @@ __decorateClass([
5135
5189
  })
5136
5190
  ], User.prototype, "provider", 2);
5137
5191
  __decorateClass([
5138
- Column57({ name: "provider_token", type: "varchar", nullable: true })
5192
+ Column58({ name: "provider_token", type: "varchar", nullable: true })
5139
5193
  ], User.prototype, "providerToken", 2);
5140
5194
  __decorateClass([
5141
- Column57({ name: "linkedin_id", type: "varchar", nullable: true })
5195
+ Column58({ name: "linkedin_id", type: "varchar", nullable: true })
5142
5196
  ], User.prototype, "linkedInId", 2);
5143
5197
  __decorateClass([
5144
- Column57({ name: "google_id", type: "varchar", nullable: true })
5198
+ Column58({ name: "google_id", type: "varchar", nullable: true })
5145
5199
  ], User.prototype, "googleId", 2);
5146
5200
  __decorateClass([
5147
- Column57({ name: "gitlabs_id", type: "varchar", nullable: true })
5201
+ Column58({ name: "gitlabs_id", type: "varchar", nullable: true })
5148
5202
  ], User.prototype, "gitLabsId", 2);
5149
5203
  __decorateClass([
5150
- Column57({ name: "onboarded_by", type: "varchar", nullable: true })
5204
+ Column58({ name: "onboarded_by", type: "varchar", nullable: true })
5151
5205
  ], User.prototype, "onBoardedBy", 2);
5152
5206
  __decorateClass([
5153
5207
  OneToMany19(() => Otp, (otp) => otp.user)
@@ -5281,9 +5335,6 @@ __decorateClass([
5281
5335
  __decorateClass([
5282
5336
  OneToMany19(() => Contract, (contract) => contract.freelancer)
5283
5337
  ], User.prototype, "freelancerContracts", 2);
5284
- __decorateClass([
5285
- OneToOne7(() => StripeWallet, (stripeWallet) => stripeWallet.user)
5286
- ], User.prototype, "stripeWallet", 2);
5287
5338
  __decorateClass([
5288
5339
  OneToOne7(() => Signature, (signature) => signature.user)
5289
5340
  ], User.prototype, "signatures", 2);
@@ -5317,8 +5368,14 @@ __decorateClass([
5317
5368
  __decorateClass([
5318
5369
  OneToMany19(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
5319
5370
  ], User.prototype, "respondentDisputes", 2);
5371
+ __decorateClass([
5372
+ OneToOne7(() => Wallet, (wallet) => wallet.user)
5373
+ ], User.prototype, "wallet", 2);
5374
+ __decorateClass([
5375
+ OneToMany19(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
5376
+ ], User.prototype, "stripeTransactions", 2);
5320
5377
  User = __decorateClass([
5321
- Entity56("users")
5378
+ Entity57("users")
5322
5379
  ], User);
5323
5380
 
5324
5381
  // src/entities/rating.entity.ts
@@ -5330,36 +5387,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
5330
5387
  var Rating = class extends BaseEntity {
5331
5388
  };
5332
5389
  __decorateClass([
5333
- Column58({ name: "reviewer_id", type: "integer" }),
5334
- Index50()
5390
+ Column59({ name: "reviewer_id", type: "integer" }),
5391
+ Index51()
5335
5392
  ], Rating.prototype, "reviewer_id", 2);
5336
5393
  __decorateClass([
5337
- ManyToOne51(() => User, { onDelete: "CASCADE" }),
5338
- JoinColumn52({ name: "reviewer_id" })
5394
+ ManyToOne52(() => User, { onDelete: "CASCADE" }),
5395
+ JoinColumn53({ name: "reviewer_id" })
5339
5396
  ], Rating.prototype, "reviewer", 2);
5340
5397
  __decorateClass([
5341
- Column58({ name: "reviewee_id", type: "integer" }),
5342
- Index50()
5398
+ Column59({ name: "reviewee_id", type: "integer" }),
5399
+ Index51()
5343
5400
  ], Rating.prototype, "reviewee_id", 2);
5344
5401
  __decorateClass([
5345
- ManyToOne51(() => User, { onDelete: "CASCADE" }),
5346
- JoinColumn52({ name: "reviewee_id" })
5402
+ ManyToOne52(() => User, { onDelete: "CASCADE" }),
5403
+ JoinColumn53({ name: "reviewee_id" })
5347
5404
  ], Rating.prototype, "reviewee", 2);
5348
5405
  __decorateClass([
5349
- Column58({
5406
+ Column59({
5350
5407
  type: "enum",
5351
5408
  enum: RatingTypeEnum,
5352
5409
  nullable: true
5353
5410
  })
5354
5411
  ], Rating.prototype, "ratingType", 2);
5355
5412
  __decorateClass([
5356
- Column58({ type: "integer", nullable: true })
5413
+ Column59({ type: "integer", nullable: true })
5357
5414
  ], Rating.prototype, "rating", 2);
5358
5415
  __decorateClass([
5359
- Column58({ type: "text", nullable: true })
5416
+ Column59({ type: "text", nullable: true })
5360
5417
  ], Rating.prototype, "review", 2);
5361
5418
  Rating = __decorateClass([
5362
- Entity57("ratings")
5419
+ Entity58("ratings")
5363
5420
  ], Rating);
5364
5421
 
5365
5422
  // src/modules/rating/dto/add.rating.dto.ts
@@ -7239,11 +7296,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
7239
7296
  };
7240
7297
 
7241
7298
  // src/entities/sequence-generator.entity.ts
7242
- import { Entity as Entity58, Column as Column59 } from "typeorm";
7299
+ import { Entity as Entity59, Column as Column60 } from "typeorm";
7243
7300
  var SequenceGenerator = class extends BaseEntity {
7244
7301
  };
7245
7302
  __decorateClass([
7246
- Column59({
7303
+ Column60({
7247
7304
  name: "module",
7248
7305
  type: "varchar",
7249
7306
  length: 50,
@@ -7252,7 +7309,7 @@ __decorateClass([
7252
7309
  })
7253
7310
  ], SequenceGenerator.prototype, "module", 2);
7254
7311
  __decorateClass([
7255
- Column59({
7312
+ Column60({
7256
7313
  name: "prefix",
7257
7314
  type: "varchar",
7258
7315
  length: 10,
@@ -7261,7 +7318,7 @@ __decorateClass([
7261
7318
  })
7262
7319
  ], SequenceGenerator.prototype, "prefix", 2);
7263
7320
  __decorateClass([
7264
- Column59({
7321
+ Column60({
7265
7322
  name: "last_sequence",
7266
7323
  type: "int",
7267
7324
  nullable: false,
@@ -7269,7 +7326,7 @@ __decorateClass([
7269
7326
  })
7270
7327
  ], SequenceGenerator.prototype, "lastSequence", 2);
7271
7328
  __decorateClass([
7272
- Column59({
7329
+ Column60({
7273
7330
  name: "year",
7274
7331
  type: "int",
7275
7332
  nullable: true,
@@ -7277,11 +7334,11 @@ __decorateClass([
7277
7334
  })
7278
7335
  ], SequenceGenerator.prototype, "year", 2);
7279
7336
  SequenceGenerator = __decorateClass([
7280
- Entity58("sequence_generators")
7337
+ Entity59("sequence_generators")
7281
7338
  ], SequenceGenerator);
7282
7339
 
7283
7340
  // src/entities/question.entity.ts
7284
- import { Entity as Entity59, Column as Column60 } from "typeorm";
7341
+ import { Entity as Entity60, Column as Column61 } from "typeorm";
7285
7342
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
7286
7343
  QuestionFor2["CLIENT"] = "CLIENT";
7287
7344
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -7290,16 +7347,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
7290
7347
  var Question = class extends BaseEntity {
7291
7348
  };
7292
7349
  __decorateClass([
7293
- Column60({ name: "question", type: "varchar" })
7350
+ Column61({ name: "question", type: "varchar" })
7294
7351
  ], Question.prototype, "question", 2);
7295
7352
  __decorateClass([
7296
- Column60({ name: "hint", type: "varchar", nullable: true })
7353
+ Column61({ name: "hint", type: "varchar", nullable: true })
7297
7354
  ], Question.prototype, "hint", 2);
7298
7355
  __decorateClass([
7299
- Column60({ name: "slug", type: "varchar", nullable: true, unique: true })
7356
+ Column61({ name: "slug", type: "varchar", nullable: true, unique: true })
7300
7357
  ], Question.prototype, "slug", 2);
7301
7358
  __decorateClass([
7302
- Column60({
7359
+ Column61({
7303
7360
  name: "question_for",
7304
7361
  type: "enum",
7305
7362
  enum: QuestionFor,
@@ -7307,119 +7364,119 @@ __decorateClass([
7307
7364
  })
7308
7365
  ], Question.prototype, "questionFor", 2);
7309
7366
  __decorateClass([
7310
- Column60({ name: "type", type: "varchar", nullable: true })
7367
+ Column61({ name: "type", type: "varchar", nullable: true })
7311
7368
  ], Question.prototype, "type", 2);
7312
7369
  __decorateClass([
7313
- Column60({ name: "options", type: "jsonb", nullable: true })
7370
+ Column61({ name: "options", type: "jsonb", nullable: true })
7314
7371
  ], Question.prototype, "options", 2);
7315
7372
  __decorateClass([
7316
- Column60({ name: "is_active", type: "boolean", default: false })
7373
+ Column61({ name: "is_active", type: "boolean", default: false })
7317
7374
  ], Question.prototype, "isActive", 2);
7318
7375
  Question = __decorateClass([
7319
- Entity59("questions")
7376
+ Entity60("questions")
7320
7377
  ], Question);
7321
7378
 
7322
7379
  // src/entities/skill.entity.ts
7323
- import { Entity as Entity60, Column as Column61 } from "typeorm";
7380
+ import { Entity as Entity61, Column as Column62 } from "typeorm";
7324
7381
  var Skill = class extends BaseEntity {
7325
7382
  };
7326
7383
  __decorateClass([
7327
- Column61({ name: "name", type: "varchar", nullable: true })
7384
+ Column62({ name: "name", type: "varchar", nullable: true })
7328
7385
  ], Skill.prototype, "name", 2);
7329
7386
  __decorateClass([
7330
- Column61({ name: "slug", type: "varchar", nullable: true, unique: true })
7387
+ Column62({ name: "slug", type: "varchar", nullable: true, unique: true })
7331
7388
  ], Skill.prototype, "slug", 2);
7332
7389
  __decorateClass([
7333
- Column61({ name: "is_active", type: "boolean", default: false })
7390
+ Column62({ name: "is_active", type: "boolean", default: false })
7334
7391
  ], Skill.prototype, "isActive", 2);
7335
7392
  Skill = __decorateClass([
7336
- Entity60("skills")
7393
+ Entity61("skills")
7337
7394
  ], Skill);
7338
7395
 
7339
7396
  // src/entities/job-role.entity.ts
7340
- import { Entity as Entity61, Column as Column62 } from "typeorm";
7397
+ import { Entity as Entity62, Column as Column63 } from "typeorm";
7341
7398
  var JobRoles = class extends BaseEntity {
7342
7399
  };
7343
7400
  __decorateClass([
7344
- Column62({ name: "slug", type: "varchar", nullable: true, unique: true })
7401
+ Column63({ name: "slug", type: "varchar", nullable: true, unique: true })
7345
7402
  ], JobRoles.prototype, "slug", 2);
7346
7403
  __decorateClass([
7347
- Column62({ name: "name", type: "varchar", nullable: true })
7404
+ Column63({ name: "name", type: "varchar", nullable: true })
7348
7405
  ], JobRoles.prototype, "name", 2);
7349
7406
  __decorateClass([
7350
- Column62({ name: "is_active", type: "boolean", default: true })
7407
+ Column63({ name: "is_active", type: "boolean", default: true })
7351
7408
  ], JobRoles.prototype, "isActive", 2);
7352
7409
  JobRoles = __decorateClass([
7353
- Entity61("job_roles")
7410
+ Entity62("job_roles")
7354
7411
  ], JobRoles);
7355
7412
 
7356
7413
  // src/entities/plan.entity.ts
7357
- import { Entity as Entity63, Column as Column64, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
7414
+ import { Entity as Entity64, Column as Column65, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
7358
7415
 
7359
7416
  // src/entities/feature.entity.ts
7360
- import { Entity as Entity62, Column as Column63, ManyToMany as ManyToMany2 } from "typeorm";
7417
+ import { Entity as Entity63, Column as Column64, ManyToMany as ManyToMany2 } from "typeorm";
7361
7418
  var Feature = class extends BaseEntity {
7362
7419
  };
7363
7420
  __decorateClass([
7364
- Column63({ name: "name", type: "varchar", unique: true })
7421
+ Column64({ name: "name", type: "varchar", unique: true })
7365
7422
  ], Feature.prototype, "name", 2);
7366
7423
  __decorateClass([
7367
7424
  ManyToMany2(() => Plan, (plan) => plan.features)
7368
7425
  ], Feature.prototype, "plans", 2);
7369
7426
  Feature = __decorateClass([
7370
- Entity62("features")
7427
+ Entity63("features")
7371
7428
  ], Feature);
7372
7429
 
7373
7430
  // src/entities/plan.entity.ts
7374
7431
  var Plan = class extends BaseEntity {
7375
7432
  };
7376
7433
  __decorateClass([
7377
- Column64({ name: "name", type: "varchar", unique: true })
7434
+ Column65({ name: "name", type: "varchar", unique: true })
7378
7435
  ], Plan.prototype, "name", 2);
7379
7436
  __decorateClass([
7380
- Column64({ name: "description", type: "varchar", nullable: true })
7437
+ Column65({ name: "description", type: "varchar", nullable: true })
7381
7438
  ], Plan.prototype, "description", 2);
7382
7439
  __decorateClass([
7383
- Column64({ name: "price", type: "decimal", precision: 10, scale: 2 })
7440
+ Column65({ name: "price", type: "decimal", precision: 10, scale: 2 })
7384
7441
  ], Plan.prototype, "price", 2);
7385
7442
  __decorateClass([
7386
- Column64({ name: "billing_period", type: "varchar" })
7443
+ Column65({ name: "billing_period", type: "varchar" })
7387
7444
  ], Plan.prototype, "billingPeriod", 2);
7388
7445
  __decorateClass([
7389
- Column64({ name: "is_current", type: "boolean", default: false })
7446
+ Column65({ name: "is_current", type: "boolean", default: false })
7390
7447
  ], Plan.prototype, "isCurrent", 2);
7391
7448
  __decorateClass([
7392
7449
  ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
7393
7450
  JoinTable()
7394
7451
  ], Plan.prototype, "features", 2);
7395
7452
  Plan = __decorateClass([
7396
- Entity63("plans")
7453
+ Entity64("plans")
7397
7454
  ], Plan);
7398
7455
 
7399
7456
  // src/entities/cms.entity.ts
7400
- import { Entity as Entity64, Column as Column65 } from "typeorm";
7457
+ import { Entity as Entity65, Column as Column66 } from "typeorm";
7401
7458
  var Cms = class extends BaseEntity {
7402
7459
  };
7403
7460
  __decorateClass([
7404
- Column65({ name: "title", type: "varchar", nullable: true })
7461
+ Column66({ name: "title", type: "varchar", nullable: true })
7405
7462
  ], Cms.prototype, "title", 2);
7406
7463
  __decorateClass([
7407
- Column65({ name: "slug", type: "varchar", nullable: true, unique: true })
7464
+ Column66({ name: "slug", type: "varchar", nullable: true, unique: true })
7408
7465
  ], Cms.prototype, "slug", 2);
7409
7466
  __decorateClass([
7410
- Column65({ name: "content", type: "varchar", nullable: true })
7467
+ Column66({ name: "content", type: "varchar", nullable: true })
7411
7468
  ], Cms.prototype, "content", 2);
7412
7469
  __decorateClass([
7413
- Column65({ name: "is_active", type: "boolean", default: true })
7470
+ Column66({ name: "is_active", type: "boolean", default: true })
7414
7471
  ], Cms.prototype, "isActive", 2);
7415
7472
  Cms = __decorateClass([
7416
- Entity64("cms")
7473
+ Entity65("cms")
7417
7474
  ], Cms);
7418
7475
 
7419
7476
  // src/entities/lead.entity.ts
7420
7477
  import {
7421
- Entity as Entity65,
7422
- Column as Column66
7478
+ Entity as Entity66,
7479
+ Column as Column67
7423
7480
  } from "typeorm";
7424
7481
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
7425
7482
  CategoryEmum2["BUSINESS"] = "BUSINESS";
@@ -7429,22 +7486,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
7429
7486
  var Lead = class extends BaseEntity {
7430
7487
  };
7431
7488
  __decorateClass([
7432
- Column66({ name: "name", type: "varchar", nullable: true })
7489
+ Column67({ name: "name", type: "varchar", nullable: true })
7433
7490
  ], Lead.prototype, "name", 2);
7434
7491
  __decorateClass([
7435
- Column66({ name: "mobile_code", type: "varchar", nullable: true })
7492
+ Column67({ name: "mobile_code", type: "varchar", nullable: true })
7436
7493
  ], Lead.prototype, "mobileCode", 2);
7437
7494
  __decorateClass([
7438
- Column66({ name: "mobile", type: "varchar", nullable: true })
7495
+ Column67({ name: "mobile", type: "varchar", nullable: true })
7439
7496
  ], Lead.prototype, "mobile", 2);
7440
7497
  __decorateClass([
7441
- Column66({ name: "email", type: "varchar", nullable: true })
7498
+ Column67({ name: "email", type: "varchar", nullable: true })
7442
7499
  ], Lead.prototype, "email", 2);
7443
7500
  __decorateClass([
7444
- Column66({ name: "description", type: "varchar", nullable: true })
7501
+ Column67({ name: "description", type: "varchar", nullable: true })
7445
7502
  ], Lead.prototype, "description", 2);
7446
7503
  __decorateClass([
7447
- Column66({
7504
+ Column67({
7448
7505
  name: "category",
7449
7506
  type: "enum",
7450
7507
  enum: CategoryEmum,
@@ -7452,7 +7509,7 @@ __decorateClass([
7452
7509
  })
7453
7510
  ], Lead.prototype, "category", 2);
7454
7511
  Lead = __decorateClass([
7455
- Entity65("leads")
7512
+ Entity66("leads")
7456
7513
  ], Lead);
7457
7514
 
7458
7515
  // src/entities/job-freelancer-recommendation.entity.ts
@@ -7693,7 +7750,7 @@ ClientFreelancerRecommendation = __decorateClass([
7693
7750
  ], ClientFreelancerRecommendation);
7694
7751
 
7695
7752
  // src/entities/commission.entity.ts
7696
- import { Entity as Entity66, Column as Column67 } from "typeorm";
7753
+ import { Entity as Entity67, Column as Column68 } from "typeorm";
7697
7754
  var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
7698
7755
  CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
7699
7756
  CommissionTypeEnum2["FLAT"] = "FLAT";
@@ -7702,7 +7759,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
7702
7759
  var Commission = class extends BaseEntity {
7703
7760
  };
7704
7761
  __decorateClass([
7705
- Column67({
7762
+ Column68({
7706
7763
  name: "freelancer_commission_type",
7707
7764
  type: "enum",
7708
7765
  enum: CommissionTypeEnum,
@@ -7710,10 +7767,10 @@ __decorateClass([
7710
7767
  })
7711
7768
  ], Commission.prototype, "freelancerCommissionType", 2);
7712
7769
  __decorateClass([
7713
- Column67({ name: "freelancer_commission", type: "integer", default: 0 })
7770
+ Column68({ name: "freelancer_commission", type: "integer", default: 0 })
7714
7771
  ], Commission.prototype, "freelancerCommission", 2);
7715
7772
  __decorateClass([
7716
- Column67({
7773
+ Column68({
7717
7774
  name: "client_commission_type",
7718
7775
  type: "enum",
7719
7776
  enum: CommissionTypeEnum,
@@ -7721,74 +7778,74 @@ __decorateClass([
7721
7778
  })
7722
7779
  ], Commission.prototype, "clientCommissionType", 2);
7723
7780
  __decorateClass([
7724
- Column67({ name: "client_commission", type: "integer", default: 0 })
7781
+ Column68({ name: "client_commission", type: "integer", default: 0 })
7725
7782
  ], Commission.prototype, "clientCommission", 2);
7726
7783
  Commission = __decorateClass([
7727
- Entity66("commissions")
7784
+ Entity67("commissions")
7728
7785
  ], Commission);
7729
7786
 
7730
7787
  // src/entities/calendly-meeting-log.entity.ts
7731
7788
  import {
7732
- Entity as Entity67,
7733
- Column as Column68,
7734
- Index as Index51
7789
+ Entity as Entity68,
7790
+ Column as Column69,
7791
+ Index as Index52
7735
7792
  } from "typeorm";
7736
7793
  var CalendlyMeetingLog = class extends BaseEntity {
7737
7794
  };
7738
7795
  __decorateClass([
7739
- Column68({ name: "calendly_event_id", type: "varchar", nullable: true }),
7740
- Index51()
7796
+ Column69({ name: "calendly_event_id", type: "varchar", nullable: true }),
7797
+ Index52()
7741
7798
  ], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
7742
7799
  __decorateClass([
7743
- Column68({ name: "calendly_event_type", type: "varchar", nullable: true })
7800
+ Column69({ name: "calendly_event_type", type: "varchar", nullable: true })
7744
7801
  ], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
7745
7802
  __decorateClass([
7746
- Column68({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7803
+ Column69({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7747
7804
  ], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
7748
7805
  CalendlyMeetingLog = __decorateClass([
7749
- Entity67("calendly_meeting_logs")
7806
+ Entity68("calendly_meeting_logs")
7750
7807
  ], CalendlyMeetingLog);
7751
7808
 
7752
7809
  // src/entities/zoom-meeting-log.entity.ts
7753
7810
  import {
7754
- Entity as Entity68,
7755
- Column as Column69,
7756
- Index as Index52
7811
+ Entity as Entity69,
7812
+ Column as Column70,
7813
+ Index as Index53
7757
7814
  } from "typeorm";
7758
7815
  var ZoomMeetingLog = class extends BaseEntity {
7759
7816
  };
7760
7817
  __decorateClass([
7761
- Column69({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
7762
- Index52()
7818
+ Column70({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
7819
+ Index53()
7763
7820
  ], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
7764
7821
  __decorateClass([
7765
- Column69({ name: "zoom_event_type", type: "varchar", nullable: true })
7822
+ Column70({ name: "zoom_event_type", type: "varchar", nullable: true })
7766
7823
  ], ZoomMeetingLog.prototype, "zoomEventType", 2);
7767
7824
  __decorateClass([
7768
- Column69({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7825
+ Column70({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7769
7826
  ], ZoomMeetingLog.prototype, "rawWebhookData", 2);
7770
7827
  ZoomMeetingLog = __decorateClass([
7771
- Entity68("zoom_meeting_logs")
7828
+ Entity69("zoom_meeting_logs")
7772
7829
  ], ZoomMeetingLog);
7773
7830
 
7774
7831
  // src/entities/stripe-logs.entity.ts
7775
- import { Entity as Entity69, Column as Column70 } from "typeorm";
7832
+ import { Entity as Entity70, Column as Column71 } from "typeorm";
7776
7833
  var StripeLog = class extends BaseEntity {
7777
7834
  };
7778
7835
  __decorateClass([
7779
- Column70({ name: "stripe_event_id", type: "varchar", nullable: true })
7836
+ Column71({ name: "stripe_event_id", type: "varchar", nullable: true })
7780
7837
  ], StripeLog.prototype, "stripeEventId", 2);
7781
7838
  __decorateClass([
7782
- Column70({ name: "event_type", type: "varchar", nullable: true })
7839
+ Column71({ name: "event_type", type: "varchar", nullable: true })
7783
7840
  ], StripeLog.prototype, "eventType", 2);
7784
7841
  __decorateClass([
7785
- Column70({ name: "stripe_account_id", type: "varchar", nullable: true })
7842
+ Column71({ name: "stripe_account_id", type: "varchar", nullable: true })
7786
7843
  ], StripeLog.prototype, "stripeAccountId", 2);
7787
7844
  __decorateClass([
7788
- Column70({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7845
+ Column71({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7789
7846
  ], StripeLog.prototype, "rawWebhookData", 2);
7790
7847
  StripeLog = __decorateClass([
7791
- Entity69("stripe_logs")
7848
+ Entity70("stripe_logs")
7792
7849
  ], StripeLog);
7793
7850
  export {
7794
7851
  ADMIN_FREELANCER_PATTERN,
@@ -8022,12 +8079,9 @@ export {
8022
8079
  State,
8023
8080
  Step,
8024
8081
  StripeLog,
8025
- StripeWallet,
8026
- StripeWalletAccountTypeEnum,
8027
- StripeWalletOnboardingStatusEnum,
8028
- StripeWalletTransaction,
8029
- StripeWalletTransactionStatusEnum,
8030
- StripeWalletTransactionTypeEnum,
8082
+ StripeTransaction,
8083
+ StripeTransactionStatusEnum,
8084
+ StripeTransactionTypeEnum,
8031
8085
  SystemPreference,
8032
8086
  SystemPreferenceDto,
8033
8087
  SystemPreferenceKey,
@@ -8066,5 +8120,11 @@ export {
8066
8120
  UserTCPAdapter,
8067
8121
  VerifyGuestOtpDto,
8068
8122
  VerifyGuestOtpPurposeEnum,
8123
+ Wallet,
8124
+ WalletAccountTypeEnum,
8125
+ WalletOnboardingStatusEnum,
8126
+ WalletTransaction,
8127
+ WalletTransactionStatusEnum,
8128
+ WalletTransactionTypeEnum,
8069
8129
  ZoomMeetingLog
8070
8130
  };