@experts_hub/shared 1.0.451 → 1.0.453

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