@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.js CHANGED
@@ -258,12 +258,9 @@ __export(index_exports, {
258
258
  State: () => State,
259
259
  Step: () => Step,
260
260
  StripeLog: () => StripeLog,
261
- StripeWallet: () => StripeWallet,
262
- StripeWalletAccountTypeEnum: () => StripeWalletAccountTypeEnum,
263
- StripeWalletOnboardingStatusEnum: () => StripeWalletOnboardingStatusEnum,
264
- StripeWalletTransaction: () => StripeWalletTransaction,
265
- StripeWalletTransactionStatusEnum: () => StripeWalletTransactionStatusEnum,
266
- StripeWalletTransactionTypeEnum: () => StripeWalletTransactionTypeEnum,
261
+ StripeTransaction: () => StripeTransaction,
262
+ StripeTransactionStatusEnum: () => StripeTransactionStatusEnum,
263
+ StripeTransactionTypeEnum: () => StripeTransactionTypeEnum,
267
264
  SystemPreference: () => SystemPreference,
268
265
  SystemPreferenceDto: () => SystemPreferenceDto,
269
266
  SystemPreferenceKey: () => SystemPreferenceKey,
@@ -302,6 +299,12 @@ __export(index_exports, {
302
299
  UserTCPAdapter: () => UserTCPAdapter,
303
300
  VerifyGuestOtpDto: () => VerifyGuestOtpDto,
304
301
  VerifyGuestOtpPurposeEnum: () => VerifyGuestOtpPurposeEnum,
302
+ Wallet: () => Wallet,
303
+ WalletAccountTypeEnum: () => WalletAccountTypeEnum,
304
+ WalletOnboardingStatusEnum: () => WalletOnboardingStatusEnum,
305
+ WalletTransaction: () => WalletTransaction,
306
+ WalletTransactionStatusEnum: () => WalletTransactionStatusEnum,
307
+ WalletTransactionTypeEnum: () => WalletTransactionTypeEnum,
305
308
  ZoomMeetingLog: () => ZoomMeetingLog
306
309
  });
307
310
  module.exports = __toCommonJS(index_exports);
@@ -1541,6 +1544,9 @@ var FreelancerBankDetailsDto = class {
1541
1544
  __decorateClass([
1542
1545
  (0, import_class_validator40.IsNotEmpty)({ message: "Please enter Account Holder Name." })
1543
1546
  ], FreelancerBankDetailsDto.prototype, "name", 2);
1547
+ __decorateClass([
1548
+ (0, import_class_validator40.IsNotEmpty)({ message: "Please enter Mobile Code." })
1549
+ ], FreelancerBankDetailsDto.prototype, "mobileCode", 2);
1544
1550
  __decorateClass([
1545
1551
  (0, import_class_validator40.IsNotEmpty)({ message: "Please enter Mobile Number." })
1546
1552
  ], FreelancerBankDetailsDto.prototype, "mobile", 2);
@@ -1634,10 +1640,10 @@ var RATING_PATTERN = {
1634
1640
  var import_class_validator42 = require("class-validator");
1635
1641
 
1636
1642
  // src/entities/rating.entity.ts
1637
- var import_typeorm58 = require("typeorm");
1643
+ var import_typeorm59 = require("typeorm");
1638
1644
 
1639
1645
  // src/entities/user.entity.ts
1640
- var import_typeorm57 = require("typeorm");
1646
+ var import_typeorm58 = require("typeorm");
1641
1647
 
1642
1648
  // src/entities/base.entity.ts
1643
1649
  var import_typeorm = require("typeorm");
@@ -3982,6 +3988,9 @@ __decorateClass([
3982
3988
  __decorateClass([
3983
3989
  (0, import_typeorm29.Column)({ name: "name", type: "varchar", nullable: true })
3984
3990
  ], BankDetail.prototype, "name", 2);
3991
+ __decorateClass([
3992
+ (0, import_typeorm29.Column)({ name: "mobile_code", type: "varchar", nullable: true })
3993
+ ], BankDetail.prototype, "mobileCode", 2);
3985
3994
  __decorateClass([
3986
3995
  (0, import_typeorm29.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
3987
3996
  ], BankDetail.prototype, "mobile", 2);
@@ -4752,163 +4761,28 @@ FreelancerResume = __decorateClass([
4752
4761
  (0, import_typeorm52.Entity)("freelancer_resumes")
4753
4762
  ], FreelancerResume);
4754
4763
 
4755
- // src/entities/stripe-wallet.entity.ts
4756
- var import_typeorm54 = require("typeorm");
4757
-
4758
- // src/entities/stripe-wallet-transaction.entity.ts
4759
- var import_typeorm53 = require("typeorm");
4760
- var StripeWalletTransactionTypeEnum = /* @__PURE__ */ ((StripeWalletTransactionTypeEnum2) => {
4761
- StripeWalletTransactionTypeEnum2["CR"] = "CR";
4762
- StripeWalletTransactionTypeEnum2["DR"] = "DR";
4763
- return StripeWalletTransactionTypeEnum2;
4764
- })(StripeWalletTransactionTypeEnum || {});
4765
- var StripeWalletTransactionStatusEnum = /* @__PURE__ */ ((StripeWalletTransactionStatusEnum2) => {
4766
- StripeWalletTransactionStatusEnum2["PENDING"] = "PENDING";
4767
- StripeWalletTransactionStatusEnum2["PROCESSING"] = "PROCESSING";
4768
- StripeWalletTransactionStatusEnum2["SUCCESS"] = "SUCCESS";
4769
- StripeWalletTransactionStatusEnum2["FAILED"] = "FAILED";
4770
- StripeWalletTransactionStatusEnum2["EXPIRED"] = "EXPIRED";
4771
- return StripeWalletTransactionStatusEnum2;
4772
- })(StripeWalletTransactionStatusEnum || {});
4773
- var StripeWalletTransaction = class extends BaseEntity {
4774
- };
4775
- __decorateClass([
4776
- (0, import_typeorm53.Column)({ name: "wallet_id", type: "integer", nullable: true }),
4777
- (0, import_typeorm53.Index)()
4778
- ], StripeWalletTransaction.prototype, "walletId", 2);
4779
- __decorateClass([
4780
- (0, import_typeorm53.ManyToOne)(() => StripeWallet, (stripeWallet) => stripeWallet.transactions),
4781
- (0, import_typeorm53.JoinColumn)({ name: "wallet_id" })
4782
- ], StripeWalletTransaction.prototype, "stripeWallet", 2);
4783
- __decorateClass([
4784
- (0, import_typeorm53.Column)({ name: "amount", type: "bigint", nullable: true })
4785
- ], StripeWalletTransaction.prototype, "amount", 2);
4786
- __decorateClass([
4787
- (0, import_typeorm53.Column)({ name: "currency", type: "varchar", nullable: true })
4788
- ], StripeWalletTransaction.prototype, "currency", 2);
4789
- __decorateClass([
4790
- (0, import_typeorm53.Column)({ name: "type", type: "enum", enum: StripeWalletTransactionTypeEnum })
4791
- ], StripeWalletTransaction.prototype, "type", 2);
4792
- __decorateClass([
4793
- (0, import_typeorm53.Column)({ name: "status", type: "enum", enum: StripeWalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
4794
- ], StripeWalletTransaction.prototype, "status", 2);
4795
- __decorateClass([
4796
- (0, import_typeorm53.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
4797
- ], StripeWalletTransaction.prototype, "stripeSessionId", 2);
4798
- __decorateClass([
4799
- (0, import_typeorm53.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
4800
- ], StripeWalletTransaction.prototype, "stripePaymentIntentId", 2);
4801
- __decorateClass([
4802
- (0, import_typeorm53.Column)({ name: "description", type: "text", nullable: true })
4803
- ], StripeWalletTransaction.prototype, "description", 2);
4804
- __decorateClass([
4805
- (0, import_typeorm53.Column)({ name: "deposit_amount_cents", type: "bigint", nullable: true, default: 0 })
4806
- ], StripeWalletTransaction.prototype, "depositAmountCents", 2);
4807
- __decorateClass([
4808
- (0, import_typeorm53.Column)({ name: "platform_fee_cents", type: "bigint", nullable: true, default: 0 })
4809
- ], StripeWalletTransaction.prototype, "platformFeeCents", 2);
4810
- __decorateClass([
4811
- (0, import_typeorm53.Column)({ name: "tax_cents", type: "bigint", nullable: true, default: 0 })
4812
- ], StripeWalletTransaction.prototype, "taxCents", 2);
4813
- __decorateClass([
4814
- (0, import_typeorm53.Column)({ name: "stripe_fee_cents", type: "bigint", nullable: true, default: 0 })
4815
- ], StripeWalletTransaction.prototype, "stripeFeeCents", 2);
4816
- __decorateClass([
4817
- (0, import_typeorm53.Column)({ name: "total_paid_cents", type: "bigint", nullable: true, default: 0 })
4818
- ], StripeWalletTransaction.prototype, "totalPaidCents", 2);
4819
- __decorateClass([
4820
- (0, import_typeorm53.Column)({ name: "net_received_cents", type: "bigint", nullable: true, default: 0 })
4821
- ], StripeWalletTransaction.prototype, "netReceivedCents", 2);
4822
- __decorateClass([
4823
- (0, import_typeorm53.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
4824
- ], StripeWalletTransaction.prototype, "stripeChargeId", 2);
4825
- __decorateClass([
4826
- (0, import_typeorm53.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
4827
- ], StripeWalletTransaction.prototype, "stripeBalanceTransactionId", 2);
4828
- __decorateClass([
4829
- (0, import_typeorm53.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
4830
- ], StripeWalletTransaction.prototype, "completedAt", 2);
4831
- __decorateClass([
4832
- (0, import_typeorm53.Column)({ name: "transaction_for", type: "varchar", nullable: true })
4833
- ], StripeWalletTransaction.prototype, "transactionFor", 2);
4834
- __decorateClass([
4835
- (0, import_typeorm53.Column)({ name: "meta_data", type: "varchar", nullable: true })
4836
- ], StripeWalletTransaction.prototype, "metaData", 2);
4837
- StripeWalletTransaction = __decorateClass([
4838
- (0, import_typeorm53.Entity)("stripe_wallet_transactions")
4839
- ], StripeWalletTransaction);
4840
-
4841
- // src/entities/stripe-wallet.entity.ts
4842
- var StripeWalletAccountTypeEnum = /* @__PURE__ */ ((StripeWalletAccountTypeEnum2) => {
4843
- StripeWalletAccountTypeEnum2["BUSINESS"] = "BUSINESS";
4844
- StripeWalletAccountTypeEnum2["FREELANCER"] = "FREELANCER";
4845
- return StripeWalletAccountTypeEnum2;
4846
- })(StripeWalletAccountTypeEnum || {});
4847
- var StripeWalletOnboardingStatusEnum = /* @__PURE__ */ ((StripeWalletOnboardingStatusEnum2) => {
4848
- StripeWalletOnboardingStatusEnum2["PENDING"] = "PENDING";
4849
- StripeWalletOnboardingStatusEnum2["COMPLETED"] = "COMPLETED";
4850
- return StripeWalletOnboardingStatusEnum2;
4851
- })(StripeWalletOnboardingStatusEnum || {});
4852
- var StripeWallet = class extends BaseEntity {
4853
- };
4854
- __decorateClass([
4855
- (0, import_typeorm54.Column)({ name: "user_id", type: "integer", nullable: true }),
4856
- (0, import_typeorm54.Index)()
4857
- ], StripeWallet.prototype, "userId", 2);
4858
- __decorateClass([
4859
- (0, import_typeorm54.OneToOne)(() => User, (user) => user.stripeWallet),
4860
- (0, import_typeorm54.JoinColumn)({ name: "user_id" })
4861
- ], StripeWallet.prototype, "user", 2);
4862
- __decorateClass([
4863
- (0, import_typeorm54.Column)({ name: "account_type", type: "enum", enum: StripeWalletAccountTypeEnum, nullable: true })
4864
- ], StripeWallet.prototype, "accountType", 2);
4865
- __decorateClass([
4866
- (0, import_typeorm54.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
4867
- ], StripeWallet.prototype, "stripeAccountId", 2);
4868
- __decorateClass([
4869
- (0, import_typeorm54.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
4870
- ], StripeWallet.prototype, "stripeCustomerId", 2);
4871
- __decorateClass([
4872
- (0, import_typeorm54.Column)({ name: "wallet_balance", type: "bigint", default: 0 })
4873
- ], StripeWallet.prototype, "walletBalance", 2);
4874
- __decorateClass([
4875
- (0, import_typeorm54.Column)({ name: "wallet_balance_cents", type: "bigint", default: 0 })
4876
- ], StripeWallet.prototype, "walletBalanceCents", 2);
4877
- __decorateClass([
4878
- (0, import_typeorm54.Column)({ name: "onboarding_status", type: "enum", enum: StripeWalletOnboardingStatusEnum, nullable: true })
4879
- ], StripeWallet.prototype, "onboardingStatus", 2);
4880
- __decorateClass([
4881
- (0, import_typeorm54.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
4882
- ], StripeWallet.prototype, "stripeMetadata", 2);
4883
- __decorateClass([
4884
- (0, import_typeorm54.OneToMany)(() => StripeWalletTransaction, (stripeWalletTransaction) => stripeWalletTransaction.stripeWallet)
4885
- ], StripeWallet.prototype, "transactions", 2);
4886
- StripeWallet = __decorateClass([
4887
- (0, import_typeorm54.Entity)("stripe_wallets")
4888
- ], StripeWallet);
4889
-
4890
4764
  // src/entities/signature.entity.ts
4891
- var import_typeorm55 = require("typeorm");
4765
+ var import_typeorm53 = require("typeorm");
4892
4766
  var Signature = class extends BaseEntity {
4893
4767
  };
4894
4768
  // individual index to find profile by user
4895
4769
  __decorateClass([
4896
- (0, import_typeorm55.Column)({ name: "user_id", type: "integer", nullable: true }),
4897
- (0, import_typeorm55.Index)()
4770
+ (0, import_typeorm53.Column)({ name: "user_id", type: "integer", nullable: true }),
4771
+ (0, import_typeorm53.Index)()
4898
4772
  ], Signature.prototype, "userId", 2);
4899
4773
  __decorateClass([
4900
- (0, import_typeorm55.ManyToOne)(() => User, (user) => user.signatures),
4901
- (0, import_typeorm55.JoinColumn)({ name: "user_id" })
4774
+ (0, import_typeorm53.ManyToOne)(() => User, (user) => user.signatures),
4775
+ (0, import_typeorm53.JoinColumn)({ name: "user_id" })
4902
4776
  ], Signature.prototype, "user", 2);
4903
4777
  __decorateClass([
4904
- (0, import_typeorm55.Column)({ name: "signature_url", type: "text", nullable: true })
4778
+ (0, import_typeorm53.Column)({ name: "signature_url", type: "text", nullable: true })
4905
4779
  ], Signature.prototype, "signatureUrl", 2);
4906
4780
  Signature = __decorateClass([
4907
- (0, import_typeorm55.Entity)("signatures")
4781
+ (0, import_typeorm53.Entity)("signatures")
4908
4782
  ], Signature);
4909
4783
 
4910
4784
  // src/entities/dispute.entity.ts
4911
- var import_typeorm56 = require("typeorm");
4785
+ var import_typeorm54 = require("typeorm");
4912
4786
  var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
4913
4787
  DisputeStatusEnum2["OPEN"] = "OPEN";
4914
4788
  DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
@@ -4924,20 +4798,20 @@ var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
4924
4798
  var Dispute = class extends BaseEntity {
4925
4799
  };
4926
4800
  __decorateClass([
4927
- (0, import_typeorm56.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
4801
+ (0, import_typeorm54.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
4928
4802
  ], Dispute.prototype, "disputeUniqueId", 2);
4929
4803
  __decorateClass([
4930
- (0, import_typeorm56.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
4931
- (0, import_typeorm56.Index)()
4804
+ (0, import_typeorm54.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
4805
+ (0, import_typeorm54.Index)()
4932
4806
  ], Dispute.prototype, "disputeType", 2);
4933
4807
  __decorateClass([
4934
- (0, import_typeorm56.Column)({ name: "description", type: "varchar", nullable: true })
4808
+ (0, import_typeorm54.Column)({ name: "description", type: "varchar", nullable: true })
4935
4809
  ], Dispute.prototype, "description", 2);
4936
4810
  __decorateClass([
4937
- (0, import_typeorm56.Column)({ name: "comment", type: "varchar", nullable: true })
4811
+ (0, import_typeorm54.Column)({ name: "comment", type: "varchar", nullable: true })
4938
4812
  ], Dispute.prototype, "comment", 2);
4939
4813
  __decorateClass([
4940
- (0, import_typeorm56.Column)({
4814
+ (0, import_typeorm54.Column)({
4941
4815
  name: "status",
4942
4816
  type: "enum",
4943
4817
  enum: DisputeStatusEnum,
@@ -4945,31 +4819,217 @@ __decorateClass([
4945
4819
  })
4946
4820
  ], Dispute.prototype, "status", 2);
4947
4821
  __decorateClass([
4948
- (0, import_typeorm56.Column)({ name: "initiator_id", type: "integer" }),
4949
- (0, import_typeorm56.Index)()
4822
+ (0, import_typeorm54.Column)({ name: "initiator_id", type: "integer" }),
4823
+ (0, import_typeorm54.Index)()
4950
4824
  ], Dispute.prototype, "initiatorId", 2);
4951
4825
  __decorateClass([
4952
- (0, import_typeorm56.ManyToOne)(() => User, (user) => user.initiatedDisputes),
4953
- (0, import_typeorm56.JoinColumn)({ name: "initiator_id" })
4826
+ (0, import_typeorm54.ManyToOne)(() => User, (user) => user.initiatedDisputes),
4827
+ (0, import_typeorm54.JoinColumn)({ name: "initiator_id" })
4954
4828
  ], Dispute.prototype, "initiator", 2);
4955
4829
  __decorateClass([
4956
- (0, import_typeorm56.Column)({ name: "respondent_id", type: "integer", nullable: true }),
4957
- (0, import_typeorm56.Index)()
4830
+ (0, import_typeorm54.Column)({ name: "respondent_id", type: "integer", nullable: true }),
4831
+ (0, import_typeorm54.Index)()
4958
4832
  ], Dispute.prototype, "respondentId", 2);
4959
4833
  __decorateClass([
4960
- (0, import_typeorm56.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
4961
- (0, import_typeorm56.JoinColumn)({ name: "respondent_id" })
4834
+ (0, import_typeorm54.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
4835
+ (0, import_typeorm54.JoinColumn)({ name: "respondent_id" })
4962
4836
  ], Dispute.prototype, "respondent", 2);
4963
4837
  __decorateClass([
4964
- (0, import_typeorm56.Column)({ name: "attachments", type: "jsonb", nullable: true })
4838
+ (0, import_typeorm54.Column)({ name: "attachments", type: "jsonb", nullable: true })
4965
4839
  ], Dispute.prototype, "attachments", 2);
4966
4840
  __decorateClass([
4967
- (0, import_typeorm56.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
4841
+ (0, import_typeorm54.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
4968
4842
  ], Dispute.prototype, "dynamicFields", 2);
4969
4843
  Dispute = __decorateClass([
4970
- (0, import_typeorm56.Entity)("disputes")
4844
+ (0, import_typeorm54.Entity)("disputes")
4971
4845
  ], Dispute);
4972
4846
 
4847
+ // src/entities/stripe-transaction.entity.ts
4848
+ var import_typeorm55 = require("typeorm");
4849
+ var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
4850
+ StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
4851
+ StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
4852
+ StripeTransactionTypeEnum2["WITHDRAW"] = "WITHDRAW";
4853
+ StripeTransactionTypeEnum2["INVOICE_PAYMENT"] = "INVOICE_PAYMENT";
4854
+ StripeTransactionTypeEnum2["REFUND"] = "REFUND";
4855
+ return StripeTransactionTypeEnum2;
4856
+ })(StripeTransactionTypeEnum || {});
4857
+ var StripeTransactionStatusEnum = /* @__PURE__ */ ((StripeTransactionStatusEnum2) => {
4858
+ StripeTransactionStatusEnum2["PENDING"] = "PENDING";
4859
+ StripeTransactionStatusEnum2["PROCESSING"] = "PROCESSING";
4860
+ StripeTransactionStatusEnum2["SUCCESS"] = "SUCCESS";
4861
+ StripeTransactionStatusEnum2["FAILED"] = "FAILED";
4862
+ StripeTransactionStatusEnum2["EXPIRED"] = "EXPIRED";
4863
+ return StripeTransactionStatusEnum2;
4864
+ })(StripeTransactionStatusEnum || {});
4865
+ var StripeTransaction = class extends BaseEntity {
4866
+ };
4867
+ __decorateClass([
4868
+ (0, import_typeorm55.Column)({ name: "user_id", type: "integer", nullable: true }),
4869
+ (0, import_typeorm55.Index)()
4870
+ ], StripeTransaction.prototype, "userId", 2);
4871
+ __decorateClass([
4872
+ (0, import_typeorm55.ManyToOne)(() => User, (user) => user.stripeTransactions),
4873
+ (0, import_typeorm55.JoinColumn)({ name: "user_id" })
4874
+ ], StripeTransaction.prototype, "user", 2);
4875
+ __decorateClass([
4876
+ (0, import_typeorm55.Column)({ name: "amount", type: "bigint", nullable: true })
4877
+ ], StripeTransaction.prototype, "amount", 2);
4878
+ __decorateClass([
4879
+ (0, import_typeorm55.Column)({ name: "currency", type: "varchar", nullable: true })
4880
+ ], StripeTransaction.prototype, "currency", 2);
4881
+ __decorateClass([
4882
+ (0, import_typeorm55.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
4883
+ ], StripeTransaction.prototype, "type", 2);
4884
+ __decorateClass([
4885
+ (0, import_typeorm55.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
4886
+ ], StripeTransaction.prototype, "status", 2);
4887
+ __decorateClass([
4888
+ (0, import_typeorm55.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
4889
+ ], StripeTransaction.prototype, "stripeSessionId", 2);
4890
+ __decorateClass([
4891
+ (0, import_typeorm55.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
4892
+ ], StripeTransaction.prototype, "stripePaymentIntentId", 2);
4893
+ __decorateClass([
4894
+ (0, import_typeorm55.Column)({ name: "description", type: "text", nullable: true })
4895
+ ], StripeTransaction.prototype, "description", 2);
4896
+ __decorateClass([
4897
+ (0, import_typeorm55.Column)({ name: "deposit_amount_cents", type: "bigint", nullable: true, default: 0 })
4898
+ ], StripeTransaction.prototype, "depositAmountCents", 2);
4899
+ __decorateClass([
4900
+ (0, import_typeorm55.Column)({ name: "platform_fee_cents", type: "bigint", nullable: true, default: 0 })
4901
+ ], StripeTransaction.prototype, "platformFeeCents", 2);
4902
+ __decorateClass([
4903
+ (0, import_typeorm55.Column)({ name: "tax_cents", type: "bigint", nullable: true, default: 0 })
4904
+ ], StripeTransaction.prototype, "taxCents", 2);
4905
+ __decorateClass([
4906
+ (0, import_typeorm55.Column)({ name: "stripe_fee_cents", type: "bigint", nullable: true, default: 0 })
4907
+ ], StripeTransaction.prototype, "stripeFeeCents", 2);
4908
+ __decorateClass([
4909
+ (0, import_typeorm55.Column)({ name: "total_paid_cents", type: "bigint", nullable: true, default: 0 })
4910
+ ], StripeTransaction.prototype, "totalPaidCents", 2);
4911
+ __decorateClass([
4912
+ (0, import_typeorm55.Column)({ name: "net_received_cents", type: "bigint", nullable: true, default: 0 })
4913
+ ], StripeTransaction.prototype, "netReceivedCents", 2);
4914
+ __decorateClass([
4915
+ (0, import_typeorm55.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
4916
+ ], StripeTransaction.prototype, "stripeChargeId", 2);
4917
+ __decorateClass([
4918
+ (0, import_typeorm55.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
4919
+ ], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
4920
+ __decorateClass([
4921
+ (0, import_typeorm55.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
4922
+ ], StripeTransaction.prototype, "completedAt", 2);
4923
+ StripeTransaction = __decorateClass([
4924
+ (0, import_typeorm55.Entity)("stripe_transactions")
4925
+ ], StripeTransaction);
4926
+
4927
+ // src/entities/wallet.entity.ts
4928
+ var import_typeorm57 = require("typeorm");
4929
+
4930
+ // src/entities/wallet-transaction.entity.ts
4931
+ var import_typeorm56 = require("typeorm");
4932
+ var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
4933
+ WalletTransactionTypeEnum2["CR"] = "CR";
4934
+ WalletTransactionTypeEnum2["DR"] = "DR";
4935
+ return WalletTransactionTypeEnum2;
4936
+ })(WalletTransactionTypeEnum || {});
4937
+ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2) => {
4938
+ WalletTransactionStatusEnum2["PENDING"] = "PENDING";
4939
+ WalletTransactionStatusEnum2["PROCESSING"] = "PROCESSING";
4940
+ WalletTransactionStatusEnum2["SUCCESS"] = "SUCCESS";
4941
+ WalletTransactionStatusEnum2["FAILED"] = "FAILED";
4942
+ WalletTransactionStatusEnum2["EXPIRED"] = "EXPIRED";
4943
+ return WalletTransactionStatusEnum2;
4944
+ })(WalletTransactionStatusEnum || {});
4945
+ var WalletTransaction = class extends BaseEntity {
4946
+ };
4947
+ __decorateClass([
4948
+ (0, import_typeorm56.Column)({ name: "wallet_id", type: "integer", nullable: true }),
4949
+ (0, import_typeorm56.Index)()
4950
+ ], WalletTransaction.prototype, "walletId", 2);
4951
+ __decorateClass([
4952
+ (0, import_typeorm56.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
4953
+ (0, import_typeorm56.JoinColumn)({ name: "wallet_id" })
4954
+ ], WalletTransaction.prototype, "wallet", 2);
4955
+ __decorateClass([
4956
+ (0, import_typeorm56.Column)({ name: "amount", type: "bigint", nullable: true })
4957
+ ], WalletTransaction.prototype, "amount", 2);
4958
+ __decorateClass([
4959
+ (0, import_typeorm56.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
4960
+ ], WalletTransaction.prototype, "type", 2);
4961
+ __decorateClass([
4962
+ (0, import_typeorm56.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
4963
+ ], WalletTransaction.prototype, "status", 2);
4964
+ __decorateClass([
4965
+ (0, import_typeorm56.Column)({ name: "description", type: "text", nullable: true })
4966
+ ], WalletTransaction.prototype, "description", 2);
4967
+ __decorateClass([
4968
+ (0, import_typeorm56.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
4969
+ ], WalletTransaction.prototype, "completedAt", 2);
4970
+ __decorateClass([
4971
+ (0, import_typeorm56.Column)({ name: "transaction_for", type: "varchar", nullable: true })
4972
+ ], WalletTransaction.prototype, "transactionFor", 2);
4973
+ __decorateClass([
4974
+ (0, import_typeorm56.Column)({ name: "meta_data", type: "varchar", nullable: true })
4975
+ ], WalletTransaction.prototype, "metaData", 2);
4976
+ __decorateClass([
4977
+ (0, import_typeorm56.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
4978
+ (0, import_typeorm56.Index)()
4979
+ ], WalletTransaction.prototype, "stripeTransactionId", 2);
4980
+ WalletTransaction = __decorateClass([
4981
+ (0, import_typeorm56.Entity)("wallet_transactions")
4982
+ ], WalletTransaction);
4983
+
4984
+ // src/entities/wallet.entity.ts
4985
+ var WalletAccountTypeEnum = /* @__PURE__ */ ((WalletAccountTypeEnum2) => {
4986
+ WalletAccountTypeEnum2["BUSINESS"] = "BUSINESS";
4987
+ WalletAccountTypeEnum2["FREELANCER"] = "FREELANCER";
4988
+ return WalletAccountTypeEnum2;
4989
+ })(WalletAccountTypeEnum || {});
4990
+ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2) => {
4991
+ WalletOnboardingStatusEnum2["PENDING"] = "PENDING";
4992
+ WalletOnboardingStatusEnum2["COMPLETED"] = "COMPLETED";
4993
+ return WalletOnboardingStatusEnum2;
4994
+ })(WalletOnboardingStatusEnum || {});
4995
+ var Wallet = class extends BaseEntity {
4996
+ };
4997
+ __decorateClass([
4998
+ (0, import_typeorm57.Column)({ name: "user_id", type: "integer", nullable: true }),
4999
+ (0, import_typeorm57.Index)()
5000
+ ], Wallet.prototype, "userId", 2);
5001
+ __decorateClass([
5002
+ (0, import_typeorm57.OneToOne)(() => User, (user) => user.wallet),
5003
+ (0, import_typeorm57.JoinColumn)({ name: "user_id" })
5004
+ ], Wallet.prototype, "user", 2);
5005
+ __decorateClass([
5006
+ (0, import_typeorm57.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
5007
+ ], Wallet.prototype, "accountType", 2);
5008
+ __decorateClass([
5009
+ (0, import_typeorm57.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
5010
+ ], Wallet.prototype, "stripeAccountId", 2);
5011
+ __decorateClass([
5012
+ (0, import_typeorm57.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
5013
+ ], Wallet.prototype, "stripeCustomerId", 2);
5014
+ __decorateClass([
5015
+ (0, import_typeorm57.Column)({ name: "wallet_balance", type: "bigint", default: 0 })
5016
+ ], Wallet.prototype, "walletBalance", 2);
5017
+ __decorateClass([
5018
+ (0, import_typeorm57.Column)({ name: "wallet_balance_cents", type: "bigint", default: 0 })
5019
+ ], Wallet.prototype, "walletBalanceCents", 2);
5020
+ __decorateClass([
5021
+ (0, import_typeorm57.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
5022
+ ], Wallet.prototype, "onboardingStatus", 2);
5023
+ __decorateClass([
5024
+ (0, import_typeorm57.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
5025
+ ], Wallet.prototype, "stripeMetadata", 2);
5026
+ __decorateClass([
5027
+ (0, import_typeorm57.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
5028
+ ], Wallet.prototype, "walletTransactions", 2);
5029
+ Wallet = __decorateClass([
5030
+ (0, import_typeorm57.Entity)("wallets")
5031
+ ], Wallet);
5032
+
4973
5033
  // src/entities/user.entity.ts
4974
5034
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
4975
5035
  AccountType2["ADMIN"] = "ADMIN";
@@ -4995,51 +5055,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
4995
5055
  var User = class extends BaseEntity {
4996
5056
  };
4997
5057
  __decorateClass([
4998
- (0, import_typeorm57.Column)({ name: "unique_id", type: "varchar", unique: true })
5058
+ (0, import_typeorm58.Column)({ name: "unique_id", type: "varchar", unique: true })
4999
5059
  ], User.prototype, "uniqueId", 2);
5000
5060
  __decorateClass([
5001
- (0, import_typeorm57.Column)({ name: "parent_id", type: "integer", nullable: true }),
5002
- (0, import_typeorm57.Index)()
5061
+ (0, import_typeorm58.Column)({ name: "parent_id", type: "integer", nullable: true }),
5062
+ (0, import_typeorm58.Index)()
5003
5063
  ], User.prototype, "parentId", 2);
5004
5064
  __decorateClass([
5005
- (0, import_typeorm57.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
5006
- (0, import_typeorm57.JoinColumn)({ name: "parent_id" })
5065
+ (0, import_typeorm58.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
5066
+ (0, import_typeorm58.JoinColumn)({ name: "parent_id" })
5007
5067
  ], User.prototype, "parent", 2);
5008
5068
  __decorateClass([
5009
- (0, import_typeorm57.OneToMany)(() => User, (user) => user.parent)
5069
+ (0, import_typeorm58.OneToMany)(() => User, (user) => user.parent)
5010
5070
  ], User.prototype, "children", 2);
5011
5071
  __decorateClass([
5012
- (0, import_typeorm57.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
5072
+ (0, import_typeorm58.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
5013
5073
  ], User.prototype, "username", 2);
5014
5074
  __decorateClass([
5015
- (0, import_typeorm57.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
5075
+ (0, import_typeorm58.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
5016
5076
  ], User.prototype, "firstName", 2);
5017
5077
  __decorateClass([
5018
- (0, import_typeorm57.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
5078
+ (0, import_typeorm58.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
5019
5079
  ], User.prototype, "lastName", 2);
5020
5080
  __decorateClass([
5021
- (0, import_typeorm57.Column)({ name: "date_of_birth", type: "date", nullable: true })
5081
+ (0, import_typeorm58.Column)({ name: "date_of_birth", type: "date", nullable: true })
5022
5082
  ], User.prototype, "dateOfBirth", 2);
5023
5083
  __decorateClass([
5024
- (0, import_typeorm57.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
5084
+ (0, import_typeorm58.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
5025
5085
  ], User.prototype, "gender", 2);
5026
5086
  __decorateClass([
5027
- (0, import_typeorm57.Column)({ name: "profile_picture_url", type: "text", nullable: true })
5087
+ (0, import_typeorm58.Column)({ name: "profile_picture_url", type: "text", nullable: true })
5028
5088
  ], User.prototype, "profilePictureUrl", 2);
5029
5089
  __decorateClass([
5030
- (0, import_typeorm57.Column)({ name: "email", type: "varchar", unique: true })
5090
+ (0, import_typeorm58.Column)({ name: "email", type: "varchar", unique: true })
5031
5091
  ], User.prototype, "email", 2);
5032
5092
  __decorateClass([
5033
- (0, import_typeorm57.Column)({ name: "mobile_code", type: "varchar", nullable: true })
5093
+ (0, import_typeorm58.Column)({ name: "mobile_code", type: "varchar", nullable: true })
5034
5094
  ], User.prototype, "mobileCode", 2);
5035
5095
  __decorateClass([
5036
- (0, import_typeorm57.Column)({ name: "mobile", type: "varchar", nullable: true })
5096
+ (0, import_typeorm58.Column)({ name: "mobile", type: "varchar", nullable: true })
5037
5097
  ], User.prototype, "mobile", 2);
5038
5098
  __decorateClass([
5039
- (0, import_typeorm57.Column)({ name: "password", type: "varchar", nullable: true })
5099
+ (0, import_typeorm58.Column)({ name: "password", type: "varchar", nullable: true })
5040
5100
  ], User.prototype, "password", 2);
5041
5101
  __decorateClass([
5042
- (0, import_typeorm57.Column)({
5102
+ (0, import_typeorm58.Column)({
5043
5103
  name: "account_type",
5044
5104
  type: "enum",
5045
5105
  enum: AccountType,
@@ -5047,7 +5107,7 @@ __decorateClass([
5047
5107
  })
5048
5108
  ], User.prototype, "accountType", 2);
5049
5109
  __decorateClass([
5050
- (0, import_typeorm57.Column)({
5110
+ (0, import_typeorm58.Column)({
5051
5111
  name: "account_status",
5052
5112
  type: "enum",
5053
5113
  enum: AccountStatus,
@@ -5055,42 +5115,42 @@ __decorateClass([
5055
5115
  })
5056
5116
  ], User.prototype, "accountStatus", 2);
5057
5117
  __decorateClass([
5058
- (0, import_typeorm57.Column)({ name: "is_email_verified", type: "boolean", default: false })
5118
+ (0, import_typeorm58.Column)({ name: "is_email_verified", type: "boolean", default: false })
5059
5119
  ], User.prototype, "isEmailVerified", 2);
5060
5120
  __decorateClass([
5061
- (0, import_typeorm57.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
5121
+ (0, import_typeorm58.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
5062
5122
  ], User.prototype, "isMobileVerified", 2);
5063
5123
  __decorateClass([
5064
- (0, import_typeorm57.Column)({ name: "is_social", type: "boolean", default: false })
5124
+ (0, import_typeorm58.Column)({ name: "is_social", type: "boolean", default: false })
5065
5125
  ], User.prototype, "isSocial", 2);
5066
5126
  __decorateClass([
5067
- (0, import_typeorm57.Column)({
5127
+ (0, import_typeorm58.Column)({
5068
5128
  name: "last_login_at",
5069
5129
  type: "timestamp with time zone",
5070
5130
  nullable: true
5071
5131
  })
5072
5132
  ], User.prototype, "lastLoginAt", 2);
5073
5133
  __decorateClass([
5074
- (0, import_typeorm57.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
5134
+ (0, import_typeorm58.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
5075
5135
  ], User.prototype, "lastLoginIp", 2);
5076
5136
  __decorateClass([
5077
- (0, import_typeorm57.Column)({ name: "reset_token", type: "varchar", nullable: true })
5137
+ (0, import_typeorm58.Column)({ name: "reset_token", type: "varchar", nullable: true })
5078
5138
  ], User.prototype, "resetToken", 2);
5079
5139
  __decorateClass([
5080
- (0, import_typeorm57.Column)({
5140
+ (0, import_typeorm58.Column)({
5081
5141
  name: "reset_token_expire_at",
5082
5142
  type: "timestamp with time zone",
5083
5143
  nullable: true
5084
5144
  })
5085
5145
  ], User.prototype, "resetTokenExpireAt", 2);
5086
5146
  __decorateClass([
5087
- (0, import_typeorm57.Column)({ name: "set_password_token", type: "varchar", nullable: true })
5147
+ (0, import_typeorm58.Column)({ name: "set_password_token", type: "varchar", nullable: true })
5088
5148
  ], User.prototype, "setPasswordToken", 2);
5089
5149
  __decorateClass([
5090
- (0, import_typeorm57.OneToMany)(() => RefreshToken, (token) => token.user)
5150
+ (0, import_typeorm58.OneToMany)(() => RefreshToken, (token) => token.user)
5091
5151
  ], User.prototype, "refreshTokens", 2);
5092
5152
  __decorateClass([
5093
- (0, import_typeorm57.Column)({
5153
+ (0, import_typeorm58.Column)({
5094
5154
  name: "provider",
5095
5155
  type: "enum",
5096
5156
  enum: Provider,
@@ -5099,190 +5159,193 @@ __decorateClass([
5099
5159
  })
5100
5160
  ], User.prototype, "provider", 2);
5101
5161
  __decorateClass([
5102
- (0, import_typeorm57.Column)({ name: "provider_token", type: "varchar", nullable: true })
5162
+ (0, import_typeorm58.Column)({ name: "provider_token", type: "varchar", nullable: true })
5103
5163
  ], User.prototype, "providerToken", 2);
5104
5164
  __decorateClass([
5105
- (0, import_typeorm57.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
5165
+ (0, import_typeorm58.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
5106
5166
  ], User.prototype, "linkedInId", 2);
5107
5167
  __decorateClass([
5108
- (0, import_typeorm57.Column)({ name: "google_id", type: "varchar", nullable: true })
5168
+ (0, import_typeorm58.Column)({ name: "google_id", type: "varchar", nullable: true })
5109
5169
  ], User.prototype, "googleId", 2);
5110
5170
  __decorateClass([
5111
- (0, import_typeorm57.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
5171
+ (0, import_typeorm58.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
5112
5172
  ], User.prototype, "gitLabsId", 2);
5113
5173
  __decorateClass([
5114
- (0, import_typeorm57.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
5174
+ (0, import_typeorm58.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
5115
5175
  ], User.prototype, "onBoardedBy", 2);
5116
5176
  __decorateClass([
5117
- (0, import_typeorm57.OneToMany)(() => Otp, (otp) => otp.user)
5177
+ (0, import_typeorm58.OneToMany)(() => Otp, (otp) => otp.user)
5118
5178
  ], User.prototype, "otps", 2);
5119
5179
  __decorateClass([
5120
- (0, import_typeorm57.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
5180
+ (0, import_typeorm58.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
5121
5181
  ], User.prototype, "senseloafLogs", 2);
5122
5182
  __decorateClass([
5123
- (0, import_typeorm57.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
5183
+ (0, import_typeorm58.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
5124
5184
  ], User.prototype, "companyProfile", 2);
5125
5185
  __decorateClass([
5126
- (0, import_typeorm57.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
5186
+ (0, import_typeorm58.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
5127
5187
  ], User.prototype, "companySkills", 2);
5128
5188
  __decorateClass([
5129
- (0, import_typeorm57.OneToMany)(
5189
+ (0, import_typeorm58.OneToMany)(
5130
5190
  () => CompanyMemberRole,
5131
5191
  (companyMemberRole) => companyMemberRole.user
5132
5192
  )
5133
5193
  ], User.prototype, "companyMemberRoles", 2);
5134
5194
  __decorateClass([
5135
- (0, import_typeorm57.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
5195
+ (0, import_typeorm58.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
5136
5196
  ], User.prototype, "companyAiInterview", 2);
5137
5197
  __decorateClass([
5138
- (0, import_typeorm57.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
5198
+ (0, import_typeorm58.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
5139
5199
  ], User.prototype, "clientF2FInterviews", 2);
5140
5200
  __decorateClass([
5141
- (0, import_typeorm57.OneToOne)(
5201
+ (0, import_typeorm58.OneToOne)(
5142
5202
  () => FreelancerProfile,
5143
5203
  (freelancerProfile) => freelancerProfile.user
5144
5204
  )
5145
5205
  ], User.prototype, "freelancerProfile", 2);
5146
5206
  __decorateClass([
5147
- (0, import_typeorm57.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
5207
+ (0, import_typeorm58.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
5148
5208
  ], User.prototype, "freelancerResume", 2);
5149
5209
  __decorateClass([
5150
- (0, import_typeorm57.OneToMany)(
5210
+ (0, import_typeorm58.OneToMany)(
5151
5211
  () => FreelancerAssessment,
5152
5212
  (freelancerAssessment) => freelancerAssessment.user
5153
5213
  )
5154
5214
  ], User.prototype, "assessments", 2);
5155
5215
  __decorateClass([
5156
- (0, import_typeorm57.OneToMany)(
5216
+ (0, import_typeorm58.OneToMany)(
5157
5217
  () => AssessmentAnswer,
5158
5218
  (assessmentAnswer) => assessmentAnswer.user
5159
5219
  )
5160
5220
  ], User.prototype, "assessmentAnswers", 2);
5161
5221
  __decorateClass([
5162
- (0, import_typeorm57.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
5222
+ (0, import_typeorm58.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
5163
5223
  ], User.prototype, "freelancerSkills", 2);
5164
5224
  __decorateClass([
5165
- (0, import_typeorm57.OneToMany)(
5225
+ (0, import_typeorm58.OneToMany)(
5166
5226
  () => FreelancerExperience,
5167
5227
  (freelancerExperience) => freelancerExperience.user
5168
5228
  )
5169
5229
  ], User.prototype, "freelancerExperience", 2);
5170
5230
  __decorateClass([
5171
- (0, import_typeorm57.OneToMany)(
5231
+ (0, import_typeorm58.OneToMany)(
5172
5232
  () => FreelancerEducation,
5173
5233
  (freelancerEducation) => freelancerEducation.user
5174
5234
  )
5175
5235
  ], User.prototype, "freelancerEducation", 2);
5176
5236
  __decorateClass([
5177
- (0, import_typeorm57.OneToMany)(
5237
+ (0, import_typeorm58.OneToMany)(
5178
5238
  () => FreelancerProject,
5179
5239
  (freelancerProject) => freelancerProject.user
5180
5240
  )
5181
5241
  ], User.prototype, "freelancerProject", 2);
5182
5242
  __decorateClass([
5183
- (0, import_typeorm57.OneToMany)(
5243
+ (0, import_typeorm58.OneToMany)(
5184
5244
  () => FreelancerCaseStudy,
5185
5245
  (freelancerCaseStudy) => freelancerCaseStudy.user
5186
5246
  )
5187
5247
  ], User.prototype, "freelancerCaseStudy", 2);
5188
5248
  __decorateClass([
5189
- (0, import_typeorm57.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
5249
+ (0, import_typeorm58.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
5190
5250
  ], User.prototype, "freelancerTool", 2);
5191
5251
  __decorateClass([
5192
- (0, import_typeorm57.OneToMany)(
5252
+ (0, import_typeorm58.OneToMany)(
5193
5253
  () => FreelancerFramework,
5194
5254
  (freelancerFramework) => freelancerFramework.user
5195
5255
  )
5196
5256
  ], User.prototype, "freelancerFramework", 2);
5197
5257
  __decorateClass([
5198
- (0, import_typeorm57.OneToOne)(
5258
+ (0, import_typeorm58.OneToOne)(
5199
5259
  () => FreelancerDeclaration,
5200
5260
  (freelancerDeclaration) => freelancerDeclaration.user
5201
5261
  )
5202
5262
  ], User.prototype, "freelancerDeclaration", 2);
5203
5263
  __decorateClass([
5204
- (0, import_typeorm57.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
5264
+ (0, import_typeorm58.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
5205
5265
  ], User.prototype, "freelancerAiInterview", 2);
5206
5266
  __decorateClass([
5207
- (0, import_typeorm57.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
5267
+ (0, import_typeorm58.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
5208
5268
  ], User.prototype, "freelancerF2FInterviews", 2);
5209
5269
  __decorateClass([
5210
- (0, import_typeorm57.OneToMany)(
5270
+ (0, import_typeorm58.OneToMany)(
5211
5271
  () => F2fInterviewRescheduleRequest,
5212
5272
  (f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
5213
5273
  )
5214
5274
  ], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
5215
5275
  __decorateClass([
5216
- (0, import_typeorm57.OneToMany)(() => Job, (job) => job.user)
5276
+ (0, import_typeorm58.OneToMany)(() => Job, (job) => job.user)
5217
5277
  ], User.prototype, "jobs", 2);
5218
5278
  __decorateClass([
5219
- (0, import_typeorm57.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
5279
+ (0, import_typeorm58.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
5220
5280
  ], User.prototype, "jobApplications", 2);
5221
5281
  __decorateClass([
5222
- (0, import_typeorm57.OneToMany)(() => Interview, (interview) => interview.user)
5282
+ (0, import_typeorm58.OneToMany)(() => Interview, (interview) => interview.user)
5223
5283
  ], User.prototype, "interviews", 2);
5224
5284
  __decorateClass([
5225
- (0, import_typeorm57.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
5285
+ (0, import_typeorm58.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
5226
5286
  ], User.prototype, "bankDetail", 2);
5227
5287
  __decorateClass([
5228
- (0, import_typeorm57.OneToMany)(
5288
+ (0, import_typeorm58.OneToMany)(
5229
5289
  () => SystemPreference,
5230
5290
  (systemPreference) => systemPreference.user
5231
5291
  )
5232
5292
  ], User.prototype, "systemPreference", 2);
5233
5293
  __decorateClass([
5234
- (0, import_typeorm57.OneToMany)(() => Rating, (rating) => rating.reviewer)
5294
+ (0, import_typeorm58.OneToMany)(() => Rating, (rating) => rating.reviewer)
5235
5295
  ], User.prototype, "givenRatings", 2);
5236
5296
  __decorateClass([
5237
- (0, import_typeorm57.OneToMany)(() => Rating, (rating) => rating.reviewee)
5297
+ (0, import_typeorm58.OneToMany)(() => Rating, (rating) => rating.reviewee)
5238
5298
  ], User.prototype, "receivedRatings", 2);
5239
5299
  __decorateClass([
5240
- (0, import_typeorm57.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
5300
+ (0, import_typeorm58.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
5241
5301
  ], User.prototype, "adminUserRoles", 2);
5242
5302
  __decorateClass([
5243
- (0, import_typeorm57.OneToMany)(() => Contract, (contract) => contract.client)
5303
+ (0, import_typeorm58.OneToMany)(() => Contract, (contract) => contract.client)
5244
5304
  ], User.prototype, "clientContracts", 2);
5245
5305
  __decorateClass([
5246
- (0, import_typeorm57.OneToMany)(() => Contract, (contract) => contract.freelancer)
5306
+ (0, import_typeorm58.OneToMany)(() => Contract, (contract) => contract.freelancer)
5247
5307
  ], User.prototype, "freelancerContracts", 2);
5248
5308
  __decorateClass([
5249
- (0, import_typeorm57.OneToOne)(() => StripeWallet, (stripeWallet) => stripeWallet.user)
5250
- ], User.prototype, "stripeWallet", 2);
5251
- __decorateClass([
5252
- (0, import_typeorm57.OneToOne)(() => Signature, (signature) => signature.user)
5309
+ (0, import_typeorm58.OneToOne)(() => Signature, (signature) => signature.user)
5253
5310
  ], User.prototype, "signatures", 2);
5254
5311
  __decorateClass([
5255
- (0, import_typeorm57.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
5312
+ (0, import_typeorm58.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
5256
5313
  ], User.prototype, "clientTimesheets", 2);
5257
5314
  __decorateClass([
5258
- (0, import_typeorm57.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
5315
+ (0, import_typeorm58.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
5259
5316
  ], User.prototype, "freelancerTimesheets", 2);
5260
5317
  __decorateClass([
5261
- (0, import_typeorm57.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
5318
+ (0, import_typeorm58.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
5262
5319
  ], User.prototype, "clientTimesheetLine", 2);
5263
5320
  __decorateClass([
5264
- (0, import_typeorm57.OneToMany)(() => Invoice, (invoice) => invoice.client)
5321
+ (0, import_typeorm58.OneToMany)(() => Invoice, (invoice) => invoice.client)
5265
5322
  ], User.prototype, "clientInvoice", 2);
5266
5323
  __decorateClass([
5267
- (0, import_typeorm57.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
5324
+ (0, import_typeorm58.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
5268
5325
  ], User.prototype, "freelancerTimesheetLine", 2);
5269
5326
  __decorateClass([
5270
- (0, import_typeorm57.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
5327
+ (0, import_typeorm58.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
5271
5328
  ], User.prototype, "freelancerInvoice", 2);
5272
5329
  __decorateClass([
5273
- (0, import_typeorm57.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
5330
+ (0, import_typeorm58.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
5274
5331
  ], User.prototype, "clientPreferencesGiven", 2);
5275
5332
  __decorateClass([
5276
- (0, import_typeorm57.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
5333
+ (0, import_typeorm58.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
5277
5334
  ], User.prototype, "clientPreferencesReceived", 2);
5278
5335
  __decorateClass([
5279
- (0, import_typeorm57.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
5336
+ (0, import_typeorm58.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
5280
5337
  ], User.prototype, "initiatedDisputes", 2);
5281
5338
  __decorateClass([
5282
- (0, import_typeorm57.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
5339
+ (0, import_typeorm58.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
5283
5340
  ], User.prototype, "respondentDisputes", 2);
5341
+ __decorateClass([
5342
+ (0, import_typeorm58.OneToOne)(() => Wallet, (wallet) => wallet.user)
5343
+ ], User.prototype, "wallet", 2);
5344
+ __decorateClass([
5345
+ (0, import_typeorm58.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
5346
+ ], User.prototype, "stripeTransactions", 2);
5284
5347
  User = __decorateClass([
5285
- (0, import_typeorm57.Entity)("users")
5348
+ (0, import_typeorm58.Entity)("users")
5286
5349
  ], User);
5287
5350
 
5288
5351
  // src/entities/rating.entity.ts
@@ -5294,36 +5357,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
5294
5357
  var Rating = class extends BaseEntity {
5295
5358
  };
5296
5359
  __decorateClass([
5297
- (0, import_typeorm58.Column)({ name: "reviewer_id", type: "integer" }),
5298
- (0, import_typeorm58.Index)()
5360
+ (0, import_typeorm59.Column)({ name: "reviewer_id", type: "integer" }),
5361
+ (0, import_typeorm59.Index)()
5299
5362
  ], Rating.prototype, "reviewer_id", 2);
5300
5363
  __decorateClass([
5301
- (0, import_typeorm58.ManyToOne)(() => User, { onDelete: "CASCADE" }),
5302
- (0, import_typeorm58.JoinColumn)({ name: "reviewer_id" })
5364
+ (0, import_typeorm59.ManyToOne)(() => User, { onDelete: "CASCADE" }),
5365
+ (0, import_typeorm59.JoinColumn)({ name: "reviewer_id" })
5303
5366
  ], Rating.prototype, "reviewer", 2);
5304
5367
  __decorateClass([
5305
- (0, import_typeorm58.Column)({ name: "reviewee_id", type: "integer" }),
5306
- (0, import_typeorm58.Index)()
5368
+ (0, import_typeorm59.Column)({ name: "reviewee_id", type: "integer" }),
5369
+ (0, import_typeorm59.Index)()
5307
5370
  ], Rating.prototype, "reviewee_id", 2);
5308
5371
  __decorateClass([
5309
- (0, import_typeorm58.ManyToOne)(() => User, { onDelete: "CASCADE" }),
5310
- (0, import_typeorm58.JoinColumn)({ name: "reviewee_id" })
5372
+ (0, import_typeorm59.ManyToOne)(() => User, { onDelete: "CASCADE" }),
5373
+ (0, import_typeorm59.JoinColumn)({ name: "reviewee_id" })
5311
5374
  ], Rating.prototype, "reviewee", 2);
5312
5375
  __decorateClass([
5313
- (0, import_typeorm58.Column)({
5376
+ (0, import_typeorm59.Column)({
5314
5377
  type: "enum",
5315
5378
  enum: RatingTypeEnum,
5316
5379
  nullable: true
5317
5380
  })
5318
5381
  ], Rating.prototype, "ratingType", 2);
5319
5382
  __decorateClass([
5320
- (0, import_typeorm58.Column)({ type: "integer", nullable: true })
5383
+ (0, import_typeorm59.Column)({ type: "integer", nullable: true })
5321
5384
  ], Rating.prototype, "rating", 2);
5322
5385
  __decorateClass([
5323
- (0, import_typeorm58.Column)({ type: "text", nullable: true })
5386
+ (0, import_typeorm59.Column)({ type: "text", nullable: true })
5324
5387
  ], Rating.prototype, "review", 2);
5325
5388
  Rating = __decorateClass([
5326
- (0, import_typeorm58.Entity)("ratings")
5389
+ (0, import_typeorm59.Entity)("ratings")
5327
5390
  ], Rating);
5328
5391
 
5329
5392
  // src/modules/rating/dto/add.rating.dto.ts
@@ -7078,11 +7141,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
7078
7141
  };
7079
7142
 
7080
7143
  // src/entities/sequence-generator.entity.ts
7081
- var import_typeorm59 = require("typeorm");
7144
+ var import_typeorm60 = require("typeorm");
7082
7145
  var SequenceGenerator = class extends BaseEntity {
7083
7146
  };
7084
7147
  __decorateClass([
7085
- (0, import_typeorm59.Column)({
7148
+ (0, import_typeorm60.Column)({
7086
7149
  name: "module",
7087
7150
  type: "varchar",
7088
7151
  length: 50,
@@ -7091,7 +7154,7 @@ __decorateClass([
7091
7154
  })
7092
7155
  ], SequenceGenerator.prototype, "module", 2);
7093
7156
  __decorateClass([
7094
- (0, import_typeorm59.Column)({
7157
+ (0, import_typeorm60.Column)({
7095
7158
  name: "prefix",
7096
7159
  type: "varchar",
7097
7160
  length: 10,
@@ -7100,7 +7163,7 @@ __decorateClass([
7100
7163
  })
7101
7164
  ], SequenceGenerator.prototype, "prefix", 2);
7102
7165
  __decorateClass([
7103
- (0, import_typeorm59.Column)({
7166
+ (0, import_typeorm60.Column)({
7104
7167
  name: "last_sequence",
7105
7168
  type: "int",
7106
7169
  nullable: false,
@@ -7108,7 +7171,7 @@ __decorateClass([
7108
7171
  })
7109
7172
  ], SequenceGenerator.prototype, "lastSequence", 2);
7110
7173
  __decorateClass([
7111
- (0, import_typeorm59.Column)({
7174
+ (0, import_typeorm60.Column)({
7112
7175
  name: "year",
7113
7176
  type: "int",
7114
7177
  nullable: true,
@@ -7116,11 +7179,11 @@ __decorateClass([
7116
7179
  })
7117
7180
  ], SequenceGenerator.prototype, "year", 2);
7118
7181
  SequenceGenerator = __decorateClass([
7119
- (0, import_typeorm59.Entity)("sequence_generators")
7182
+ (0, import_typeorm60.Entity)("sequence_generators")
7120
7183
  ], SequenceGenerator);
7121
7184
 
7122
7185
  // src/entities/question.entity.ts
7123
- var import_typeorm60 = require("typeorm");
7186
+ var import_typeorm61 = require("typeorm");
7124
7187
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
7125
7188
  QuestionFor2["CLIENT"] = "CLIENT";
7126
7189
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -7129,16 +7192,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
7129
7192
  var Question = class extends BaseEntity {
7130
7193
  };
7131
7194
  __decorateClass([
7132
- (0, import_typeorm60.Column)({ name: "question", type: "varchar" })
7195
+ (0, import_typeorm61.Column)({ name: "question", type: "varchar" })
7133
7196
  ], Question.prototype, "question", 2);
7134
7197
  __decorateClass([
7135
- (0, import_typeorm60.Column)({ name: "hint", type: "varchar", nullable: true })
7198
+ (0, import_typeorm61.Column)({ name: "hint", type: "varchar", nullable: true })
7136
7199
  ], Question.prototype, "hint", 2);
7137
7200
  __decorateClass([
7138
- (0, import_typeorm60.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7201
+ (0, import_typeorm61.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7139
7202
  ], Question.prototype, "slug", 2);
7140
7203
  __decorateClass([
7141
- (0, import_typeorm60.Column)({
7204
+ (0, import_typeorm61.Column)({
7142
7205
  name: "question_for",
7143
7206
  type: "enum",
7144
7207
  enum: QuestionFor,
@@ -7146,117 +7209,117 @@ __decorateClass([
7146
7209
  })
7147
7210
  ], Question.prototype, "questionFor", 2);
7148
7211
  __decorateClass([
7149
- (0, import_typeorm60.Column)({ name: "type", type: "varchar", nullable: true })
7212
+ (0, import_typeorm61.Column)({ name: "type", type: "varchar", nullable: true })
7150
7213
  ], Question.prototype, "type", 2);
7151
7214
  __decorateClass([
7152
- (0, import_typeorm60.Column)({ name: "options", type: "jsonb", nullable: true })
7215
+ (0, import_typeorm61.Column)({ name: "options", type: "jsonb", nullable: true })
7153
7216
  ], Question.prototype, "options", 2);
7154
7217
  __decorateClass([
7155
- (0, import_typeorm60.Column)({ name: "is_active", type: "boolean", default: false })
7218
+ (0, import_typeorm61.Column)({ name: "is_active", type: "boolean", default: false })
7156
7219
  ], Question.prototype, "isActive", 2);
7157
7220
  Question = __decorateClass([
7158
- (0, import_typeorm60.Entity)("questions")
7221
+ (0, import_typeorm61.Entity)("questions")
7159
7222
  ], Question);
7160
7223
 
7161
7224
  // src/entities/skill.entity.ts
7162
- var import_typeorm61 = require("typeorm");
7225
+ var import_typeorm62 = require("typeorm");
7163
7226
  var Skill = class extends BaseEntity {
7164
7227
  };
7165
7228
  __decorateClass([
7166
- (0, import_typeorm61.Column)({ name: "name", type: "varchar", nullable: true })
7229
+ (0, import_typeorm62.Column)({ name: "name", type: "varchar", nullable: true })
7167
7230
  ], Skill.prototype, "name", 2);
7168
7231
  __decorateClass([
7169
- (0, import_typeorm61.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7232
+ (0, import_typeorm62.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7170
7233
  ], Skill.prototype, "slug", 2);
7171
7234
  __decorateClass([
7172
- (0, import_typeorm61.Column)({ name: "is_active", type: "boolean", default: false })
7235
+ (0, import_typeorm62.Column)({ name: "is_active", type: "boolean", default: false })
7173
7236
  ], Skill.prototype, "isActive", 2);
7174
7237
  Skill = __decorateClass([
7175
- (0, import_typeorm61.Entity)("skills")
7238
+ (0, import_typeorm62.Entity)("skills")
7176
7239
  ], Skill);
7177
7240
 
7178
7241
  // src/entities/job-role.entity.ts
7179
- var import_typeorm62 = require("typeorm");
7242
+ var import_typeorm63 = require("typeorm");
7180
7243
  var JobRoles = class extends BaseEntity {
7181
7244
  };
7182
7245
  __decorateClass([
7183
- (0, import_typeorm62.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7246
+ (0, import_typeorm63.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7184
7247
  ], JobRoles.prototype, "slug", 2);
7185
7248
  __decorateClass([
7186
- (0, import_typeorm62.Column)({ name: "name", type: "varchar", nullable: true })
7249
+ (0, import_typeorm63.Column)({ name: "name", type: "varchar", nullable: true })
7187
7250
  ], JobRoles.prototype, "name", 2);
7188
7251
  __decorateClass([
7189
- (0, import_typeorm62.Column)({ name: "is_active", type: "boolean", default: true })
7252
+ (0, import_typeorm63.Column)({ name: "is_active", type: "boolean", default: true })
7190
7253
  ], JobRoles.prototype, "isActive", 2);
7191
7254
  JobRoles = __decorateClass([
7192
- (0, import_typeorm62.Entity)("job_roles")
7255
+ (0, import_typeorm63.Entity)("job_roles")
7193
7256
  ], JobRoles);
7194
7257
 
7195
7258
  // src/entities/plan.entity.ts
7196
- var import_typeorm64 = require("typeorm");
7259
+ var import_typeorm65 = require("typeorm");
7197
7260
 
7198
7261
  // src/entities/feature.entity.ts
7199
- var import_typeorm63 = require("typeorm");
7262
+ var import_typeorm64 = require("typeorm");
7200
7263
  var Feature = class extends BaseEntity {
7201
7264
  };
7202
7265
  __decorateClass([
7203
- (0, import_typeorm63.Column)({ name: "name", type: "varchar", unique: true })
7266
+ (0, import_typeorm64.Column)({ name: "name", type: "varchar", unique: true })
7204
7267
  ], Feature.prototype, "name", 2);
7205
7268
  __decorateClass([
7206
- (0, import_typeorm63.ManyToMany)(() => Plan, (plan) => plan.features)
7269
+ (0, import_typeorm64.ManyToMany)(() => Plan, (plan) => plan.features)
7207
7270
  ], Feature.prototype, "plans", 2);
7208
7271
  Feature = __decorateClass([
7209
- (0, import_typeorm63.Entity)("features")
7272
+ (0, import_typeorm64.Entity)("features")
7210
7273
  ], Feature);
7211
7274
 
7212
7275
  // src/entities/plan.entity.ts
7213
7276
  var Plan = class extends BaseEntity {
7214
7277
  };
7215
7278
  __decorateClass([
7216
- (0, import_typeorm64.Column)({ name: "name", type: "varchar", unique: true })
7279
+ (0, import_typeorm65.Column)({ name: "name", type: "varchar", unique: true })
7217
7280
  ], Plan.prototype, "name", 2);
7218
7281
  __decorateClass([
7219
- (0, import_typeorm64.Column)({ name: "description", type: "varchar", nullable: true })
7282
+ (0, import_typeorm65.Column)({ name: "description", type: "varchar", nullable: true })
7220
7283
  ], Plan.prototype, "description", 2);
7221
7284
  __decorateClass([
7222
- (0, import_typeorm64.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
7285
+ (0, import_typeorm65.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
7223
7286
  ], Plan.prototype, "price", 2);
7224
7287
  __decorateClass([
7225
- (0, import_typeorm64.Column)({ name: "billing_period", type: "varchar" })
7288
+ (0, import_typeorm65.Column)({ name: "billing_period", type: "varchar" })
7226
7289
  ], Plan.prototype, "billingPeriod", 2);
7227
7290
  __decorateClass([
7228
- (0, import_typeorm64.Column)({ name: "is_current", type: "boolean", default: false })
7291
+ (0, import_typeorm65.Column)({ name: "is_current", type: "boolean", default: false })
7229
7292
  ], Plan.prototype, "isCurrent", 2);
7230
7293
  __decorateClass([
7231
- (0, import_typeorm64.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
7232
- (0, import_typeorm64.JoinTable)()
7294
+ (0, import_typeorm65.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
7295
+ (0, import_typeorm65.JoinTable)()
7233
7296
  ], Plan.prototype, "features", 2);
7234
7297
  Plan = __decorateClass([
7235
- (0, import_typeorm64.Entity)("plans")
7298
+ (0, import_typeorm65.Entity)("plans")
7236
7299
  ], Plan);
7237
7300
 
7238
7301
  // src/entities/cms.entity.ts
7239
- var import_typeorm65 = require("typeorm");
7302
+ var import_typeorm66 = require("typeorm");
7240
7303
  var Cms = class extends BaseEntity {
7241
7304
  };
7242
7305
  __decorateClass([
7243
- (0, import_typeorm65.Column)({ name: "title", type: "varchar", nullable: true })
7306
+ (0, import_typeorm66.Column)({ name: "title", type: "varchar", nullable: true })
7244
7307
  ], Cms.prototype, "title", 2);
7245
7308
  __decorateClass([
7246
- (0, import_typeorm65.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7309
+ (0, import_typeorm66.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7247
7310
  ], Cms.prototype, "slug", 2);
7248
7311
  __decorateClass([
7249
- (0, import_typeorm65.Column)({ name: "content", type: "varchar", nullable: true })
7312
+ (0, import_typeorm66.Column)({ name: "content", type: "varchar", nullable: true })
7250
7313
  ], Cms.prototype, "content", 2);
7251
7314
  __decorateClass([
7252
- (0, import_typeorm65.Column)({ name: "is_active", type: "boolean", default: true })
7315
+ (0, import_typeorm66.Column)({ name: "is_active", type: "boolean", default: true })
7253
7316
  ], Cms.prototype, "isActive", 2);
7254
7317
  Cms = __decorateClass([
7255
- (0, import_typeorm65.Entity)("cms")
7318
+ (0, import_typeorm66.Entity)("cms")
7256
7319
  ], Cms);
7257
7320
 
7258
7321
  // src/entities/lead.entity.ts
7259
- var import_typeorm66 = require("typeorm");
7322
+ var import_typeorm67 = require("typeorm");
7260
7323
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
7261
7324
  CategoryEmum2["BUSINESS"] = "BUSINESS";
7262
7325
  CategoryEmum2["FREELANCER"] = "FREELANCER";
@@ -7265,22 +7328,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
7265
7328
  var Lead = class extends BaseEntity {
7266
7329
  };
7267
7330
  __decorateClass([
7268
- (0, import_typeorm66.Column)({ name: "name", type: "varchar", nullable: true })
7331
+ (0, import_typeorm67.Column)({ name: "name", type: "varchar", nullable: true })
7269
7332
  ], Lead.prototype, "name", 2);
7270
7333
  __decorateClass([
7271
- (0, import_typeorm66.Column)({ name: "mobile_code", type: "varchar", nullable: true })
7334
+ (0, import_typeorm67.Column)({ name: "mobile_code", type: "varchar", nullable: true })
7272
7335
  ], Lead.prototype, "mobileCode", 2);
7273
7336
  __decorateClass([
7274
- (0, import_typeorm66.Column)({ name: "mobile", type: "varchar", nullable: true })
7337
+ (0, import_typeorm67.Column)({ name: "mobile", type: "varchar", nullable: true })
7275
7338
  ], Lead.prototype, "mobile", 2);
7276
7339
  __decorateClass([
7277
- (0, import_typeorm66.Column)({ name: "email", type: "varchar", nullable: true })
7340
+ (0, import_typeorm67.Column)({ name: "email", type: "varchar", nullable: true })
7278
7341
  ], Lead.prototype, "email", 2);
7279
7342
  __decorateClass([
7280
- (0, import_typeorm66.Column)({ name: "description", type: "varchar", nullable: true })
7343
+ (0, import_typeorm67.Column)({ name: "description", type: "varchar", nullable: true })
7281
7344
  ], Lead.prototype, "description", 2);
7282
7345
  __decorateClass([
7283
- (0, import_typeorm66.Column)({
7346
+ (0, import_typeorm67.Column)({
7284
7347
  name: "category",
7285
7348
  type: "enum",
7286
7349
  enum: CategoryEmum,
@@ -7288,129 +7351,129 @@ __decorateClass([
7288
7351
  })
7289
7352
  ], Lead.prototype, "category", 2);
7290
7353
  Lead = __decorateClass([
7291
- (0, import_typeorm66.Entity)("leads")
7354
+ (0, import_typeorm67.Entity)("leads")
7292
7355
  ], Lead);
7293
7356
 
7294
7357
  // src/entities/job-freelancer-recommendation.entity.ts
7295
- var import_typeorm67 = require("typeorm");
7358
+ var import_typeorm68 = require("typeorm");
7296
7359
  var JobFreelancerRecommendation = class {
7297
7360
  };
7298
7361
  __decorateClass([
7299
- (0, import_typeorm67.ViewColumn)({ name: "job_id" })
7362
+ (0, import_typeorm68.ViewColumn)({ name: "job_id" })
7300
7363
  ], JobFreelancerRecommendation.prototype, "jobId", 2);
7301
7364
  __decorateClass([
7302
- (0, import_typeorm67.ViewColumn)({ name: "job_uuid" })
7365
+ (0, import_typeorm68.ViewColumn)({ name: "job_uuid" })
7303
7366
  ], JobFreelancerRecommendation.prototype, "jobUuid", 2);
7304
7367
  __decorateClass([
7305
- (0, import_typeorm67.ViewColumn)({ name: "job_unique_id" })
7368
+ (0, import_typeorm68.ViewColumn)({ name: "job_unique_id" })
7306
7369
  ], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
7307
7370
  __decorateClass([
7308
- (0, import_typeorm67.ViewColumn)({ name: "job_role" })
7371
+ (0, import_typeorm68.ViewColumn)({ name: "job_role" })
7309
7372
  ], JobFreelancerRecommendation.prototype, "jobRole", 2);
7310
7373
  __decorateClass([
7311
- (0, import_typeorm67.ViewColumn)({ name: "job_openings" })
7374
+ (0, import_typeorm68.ViewColumn)({ name: "job_openings" })
7312
7375
  ], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
7313
7376
  __decorateClass([
7314
- (0, import_typeorm67.ViewColumn)({ name: "job_location" })
7377
+ (0, import_typeorm68.ViewColumn)({ name: "job_location" })
7315
7378
  ], JobFreelancerRecommendation.prototype, "jobLocation", 2);
7316
7379
  __decorateClass([
7317
- (0, import_typeorm67.ViewColumn)({ name: "job_currency" })
7380
+ (0, import_typeorm68.ViewColumn)({ name: "job_currency" })
7318
7381
  ], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
7319
7382
  __decorateClass([
7320
- (0, import_typeorm67.ViewColumn)({ name: "job_salary_from" })
7383
+ (0, import_typeorm68.ViewColumn)({ name: "job_salary_from" })
7321
7384
  ], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
7322
7385
  __decorateClass([
7323
- (0, import_typeorm67.ViewColumn)({ name: "job_salary_to" })
7386
+ (0, import_typeorm68.ViewColumn)({ name: "job_salary_to" })
7324
7387
  ], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
7325
7388
  __decorateClass([
7326
- (0, import_typeorm67.ViewColumn)({ name: "job_employment_type" })
7389
+ (0, import_typeorm68.ViewColumn)({ name: "job_employment_type" })
7327
7390
  ], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
7328
7391
  __decorateClass([
7329
- (0, import_typeorm67.ViewColumn)({ name: "application_received" })
7392
+ (0, import_typeorm68.ViewColumn)({ name: "application_received" })
7330
7393
  ], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
7331
7394
  __decorateClass([
7332
- (0, import_typeorm67.ViewColumn)({ name: "job_posted_at" })
7395
+ (0, import_typeorm68.ViewColumn)({ name: "job_posted_at" })
7333
7396
  ], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
7334
7397
  __decorateClass([
7335
- (0, import_typeorm67.ViewColumn)({ name: "freelancer_id" })
7398
+ (0, import_typeorm68.ViewColumn)({ name: "freelancer_id" })
7336
7399
  ], JobFreelancerRecommendation.prototype, "freelancerId", 2);
7337
7400
  __decorateClass([
7338
- (0, import_typeorm67.ViewColumn)({ name: "freelancer_uuid" })
7401
+ (0, import_typeorm68.ViewColumn)({ name: "freelancer_uuid" })
7339
7402
  ], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
7340
7403
  __decorateClass([
7341
- (0, import_typeorm67.ViewColumn)({ name: "freelancer_unique_id" })
7404
+ (0, import_typeorm68.ViewColumn)({ name: "freelancer_unique_id" })
7342
7405
  ], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
7343
7406
  __decorateClass([
7344
- (0, import_typeorm67.ViewColumn)({ name: "freelancer_first_name" })
7407
+ (0, import_typeorm68.ViewColumn)({ name: "freelancer_first_name" })
7345
7408
  ], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
7346
7409
  __decorateClass([
7347
- (0, import_typeorm67.ViewColumn)({ name: "freelancer_last_name" })
7410
+ (0, import_typeorm68.ViewColumn)({ name: "freelancer_last_name" })
7348
7411
  ], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
7349
7412
  __decorateClass([
7350
- (0, import_typeorm67.ViewColumn)({ name: "freelancer_email" })
7413
+ (0, import_typeorm68.ViewColumn)({ name: "freelancer_email" })
7351
7414
  ], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
7352
7415
  __decorateClass([
7353
- (0, import_typeorm67.ViewColumn)({ name: "freelancer_profile_picture" })
7416
+ (0, import_typeorm68.ViewColumn)({ name: "freelancer_profile_picture" })
7354
7417
  ], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
7355
7418
  __decorateClass([
7356
- (0, import_typeorm67.ViewColumn)({ name: "freelancer_is_social" })
7419
+ (0, import_typeorm68.ViewColumn)({ name: "freelancer_is_social" })
7357
7420
  ], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
7358
7421
  __decorateClass([
7359
- (0, import_typeorm67.ViewColumn)({ name: "freelancer_created_at" })
7422
+ (0, import_typeorm68.ViewColumn)({ name: "freelancer_created_at" })
7360
7423
  ], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
7361
7424
  __decorateClass([
7362
- (0, import_typeorm67.ViewColumn)({ name: "freelancer_designation" })
7425
+ (0, import_typeorm68.ViewColumn)({ name: "freelancer_designation" })
7363
7426
  ], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
7364
7427
  __decorateClass([
7365
- (0, import_typeorm67.ViewColumn)({ name: "freelancer_experience" })
7428
+ (0, import_typeorm68.ViewColumn)({ name: "freelancer_experience" })
7366
7429
  ], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
7367
7430
  __decorateClass([
7368
- (0, import_typeorm67.ViewColumn)({ name: "freelancer_expertshub_verified" })
7431
+ (0, import_typeorm68.ViewColumn)({ name: "freelancer_expertshub_verified" })
7369
7432
  ], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
7370
7433
  __decorateClass([
7371
- (0, import_typeorm67.ViewColumn)({ name: "freelancer_hourly_compensation" })
7434
+ (0, import_typeorm68.ViewColumn)({ name: "freelancer_hourly_compensation" })
7372
7435
  ], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
7373
7436
  __decorateClass([
7374
- (0, import_typeorm67.ViewColumn)({ name: "freelancer_country_name" })
7437
+ (0, import_typeorm68.ViewColumn)({ name: "freelancer_country_name" })
7375
7438
  ], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
7376
7439
  __decorateClass([
7377
- (0, import_typeorm67.ViewColumn)({ name: "freelancer_country_iso_code" })
7440
+ (0, import_typeorm68.ViewColumn)({ name: "freelancer_country_iso_code" })
7378
7441
  ], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
7379
7442
  __decorateClass([
7380
- (0, import_typeorm67.ViewColumn)({ name: "client_id" })
7443
+ (0, import_typeorm68.ViewColumn)({ name: "client_id" })
7381
7444
  ], JobFreelancerRecommendation.prototype, "clientId", 2);
7382
7445
  __decorateClass([
7383
- (0, import_typeorm67.ViewColumn)({ name: "client_uuid" })
7446
+ (0, import_typeorm68.ViewColumn)({ name: "client_uuid" })
7384
7447
  ], JobFreelancerRecommendation.prototype, "clientUuid", 2);
7385
7448
  __decorateClass([
7386
- (0, import_typeorm67.ViewColumn)({ name: "client_first_name" })
7449
+ (0, import_typeorm68.ViewColumn)({ name: "client_first_name" })
7387
7450
  ], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
7388
7451
  __decorateClass([
7389
- (0, import_typeorm67.ViewColumn)({ name: "client_last_name" })
7452
+ (0, import_typeorm68.ViewColumn)({ name: "client_last_name" })
7390
7453
  ], JobFreelancerRecommendation.prototype, "clientLastName", 2);
7391
7454
  __decorateClass([
7392
- (0, import_typeorm67.ViewColumn)({ name: "client_email" })
7455
+ (0, import_typeorm68.ViewColumn)({ name: "client_email" })
7393
7456
  ], JobFreelancerRecommendation.prototype, "clientEmail", 2);
7394
7457
  __decorateClass([
7395
- (0, import_typeorm67.ViewColumn)({ name: "client_company_logo" })
7458
+ (0, import_typeorm68.ViewColumn)({ name: "client_company_logo" })
7396
7459
  ], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
7397
7460
  __decorateClass([
7398
- (0, import_typeorm67.ViewColumn)({ name: "client_company_name" })
7461
+ (0, import_typeorm68.ViewColumn)({ name: "client_company_name" })
7399
7462
  ], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
7400
7463
  __decorateClass([
7401
- (0, import_typeorm67.ViewColumn)({ name: "matching_skills" })
7464
+ (0, import_typeorm68.ViewColumn)({ name: "matching_skills" })
7402
7465
  ], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
7403
7466
  __decorateClass([
7404
- (0, import_typeorm67.ViewColumn)({ name: "matching_skills_count" })
7467
+ (0, import_typeorm68.ViewColumn)({ name: "matching_skills_count" })
7405
7468
  ], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
7406
7469
  __decorateClass([
7407
- (0, import_typeorm67.ViewColumn)({ name: "required_skills" })
7470
+ (0, import_typeorm68.ViewColumn)({ name: "required_skills" })
7408
7471
  ], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
7409
7472
  __decorateClass([
7410
- (0, import_typeorm67.ViewColumn)({ name: "required_skills_count" })
7473
+ (0, import_typeorm68.ViewColumn)({ name: "required_skills_count" })
7411
7474
  ], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
7412
7475
  JobFreelancerRecommendation = __decorateClass([
7413
- (0, import_typeorm67.ViewEntity)({
7476
+ (0, import_typeorm68.ViewEntity)({
7414
7477
  name: "job_freelancer_recommendations",
7415
7478
  materialized: true,
7416
7479
  synchronize: false
@@ -7419,32 +7482,32 @@ JobFreelancerRecommendation = __decorateClass([
7419
7482
  ], JobFreelancerRecommendation);
7420
7483
 
7421
7484
  // src/entities/job-freelancer-recommendation-v2.entity.ts
7422
- var import_typeorm68 = require("typeorm");
7485
+ var import_typeorm69 = require("typeorm");
7423
7486
  var JobFreelancerRecommendationV2 = class {
7424
7487
  };
7425
7488
  __decorateClass([
7426
- (0, import_typeorm68.ViewColumn)({ name: "job_id" })
7489
+ (0, import_typeorm69.ViewColumn)({ name: "job_id" })
7427
7490
  ], JobFreelancerRecommendationV2.prototype, "jobId", 2);
7428
7491
  __decorateClass([
7429
- (0, import_typeorm68.ViewColumn)({ name: "job_owner_id" })
7492
+ (0, import_typeorm69.ViewColumn)({ name: "job_owner_id" })
7430
7493
  ], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
7431
7494
  __decorateClass([
7432
- (0, import_typeorm68.ViewColumn)({ name: "freelancer_id" })
7495
+ (0, import_typeorm69.ViewColumn)({ name: "freelancer_id" })
7433
7496
  ], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
7434
7497
  __decorateClass([
7435
- (0, import_typeorm68.ViewColumn)({ name: "matching_skills" })
7498
+ (0, import_typeorm69.ViewColumn)({ name: "matching_skills" })
7436
7499
  ], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
7437
7500
  __decorateClass([
7438
- (0, import_typeorm68.ViewColumn)({ name: "matching_skills_count" })
7501
+ (0, import_typeorm69.ViewColumn)({ name: "matching_skills_count" })
7439
7502
  ], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
7440
7503
  __decorateClass([
7441
- (0, import_typeorm68.ViewColumn)({ name: "required_skills" })
7504
+ (0, import_typeorm69.ViewColumn)({ name: "required_skills" })
7442
7505
  ], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
7443
7506
  __decorateClass([
7444
- (0, import_typeorm68.ViewColumn)({ name: "required_skills_count" })
7507
+ (0, import_typeorm69.ViewColumn)({ name: "required_skills_count" })
7445
7508
  ], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
7446
7509
  JobFreelancerRecommendationV2 = __decorateClass([
7447
- (0, import_typeorm68.ViewEntity)({
7510
+ (0, import_typeorm69.ViewEntity)({
7448
7511
  name: "job_freelancer_recommendations_v2",
7449
7512
  materialized: true,
7450
7513
  synchronize: false
@@ -7453,74 +7516,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
7453
7516
  ], JobFreelancerRecommendationV2);
7454
7517
 
7455
7518
  // src/entities/client-freelancer-recommendation.entity.ts
7456
- var import_typeorm69 = require("typeorm");
7519
+ var import_typeorm70 = require("typeorm");
7457
7520
  var ClientFreelancerRecommendation = class {
7458
7521
  };
7459
7522
  __decorateClass([
7460
- (0, import_typeorm69.ViewColumn)({ name: "client_id" })
7523
+ (0, import_typeorm70.ViewColumn)({ name: "client_id" })
7461
7524
  ], ClientFreelancerRecommendation.prototype, "clientId", 2);
7462
7525
  __decorateClass([
7463
- (0, import_typeorm69.ViewColumn)({ name: "client_uuid" })
7526
+ (0, import_typeorm70.ViewColumn)({ name: "client_uuid" })
7464
7527
  ], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
7465
7528
  __decorateClass([
7466
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_id" })
7529
+ (0, import_typeorm70.ViewColumn)({ name: "freelancer_id" })
7467
7530
  ], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
7468
7531
  __decorateClass([
7469
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_uuid" })
7532
+ (0, import_typeorm70.ViewColumn)({ name: "freelancer_uuid" })
7470
7533
  ], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
7471
7534
  __decorateClass([
7472
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_unique_id" })
7535
+ (0, import_typeorm70.ViewColumn)({ name: "freelancer_unique_id" })
7473
7536
  ], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
7474
7537
  __decorateClass([
7475
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_first_name" })
7538
+ (0, import_typeorm70.ViewColumn)({ name: "freelancer_first_name" })
7476
7539
  ], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
7477
7540
  __decorateClass([
7478
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_last_name" })
7541
+ (0, import_typeorm70.ViewColumn)({ name: "freelancer_last_name" })
7479
7542
  ], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
7480
7543
  __decorateClass([
7481
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_email" })
7544
+ (0, import_typeorm70.ViewColumn)({ name: "freelancer_email" })
7482
7545
  ], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
7483
7546
  __decorateClass([
7484
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_profile_picture" })
7547
+ (0, import_typeorm70.ViewColumn)({ name: "freelancer_profile_picture" })
7485
7548
  ], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
7486
7549
  __decorateClass([
7487
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_is_social" })
7550
+ (0, import_typeorm70.ViewColumn)({ name: "freelancer_is_social" })
7488
7551
  ], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
7489
7552
  __decorateClass([
7490
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_created_at" })
7553
+ (0, import_typeorm70.ViewColumn)({ name: "freelancer_created_at" })
7491
7554
  ], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
7492
7555
  __decorateClass([
7493
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_designation" })
7556
+ (0, import_typeorm70.ViewColumn)({ name: "freelancer_designation" })
7494
7557
  ], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
7495
7558
  __decorateClass([
7496
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_experience" })
7559
+ (0, import_typeorm70.ViewColumn)({ name: "freelancer_experience" })
7497
7560
  ], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
7498
7561
  __decorateClass([
7499
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_expertshub_verified" })
7562
+ (0, import_typeorm70.ViewColumn)({ name: "freelancer_expertshub_verified" })
7500
7563
  ], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
7501
7564
  __decorateClass([
7502
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_hourly_compensation" })
7565
+ (0, import_typeorm70.ViewColumn)({ name: "freelancer_hourly_compensation" })
7503
7566
  ], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
7504
7567
  __decorateClass([
7505
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_country_name" })
7568
+ (0, import_typeorm70.ViewColumn)({ name: "freelancer_country_name" })
7506
7569
  ], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
7507
7570
  __decorateClass([
7508
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_country_iso_code" })
7571
+ (0, import_typeorm70.ViewColumn)({ name: "freelancer_country_iso_code" })
7509
7572
  ], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
7510
7573
  __decorateClass([
7511
- (0, import_typeorm69.ViewColumn)({ name: "matching_skills" })
7574
+ (0, import_typeorm70.ViewColumn)({ name: "matching_skills" })
7512
7575
  ], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
7513
7576
  __decorateClass([
7514
- (0, import_typeorm69.ViewColumn)({ name: "matching_skills_count" })
7577
+ (0, import_typeorm70.ViewColumn)({ name: "matching_skills_count" })
7515
7578
  ], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
7516
7579
  __decorateClass([
7517
- (0, import_typeorm69.ViewColumn)({ name: "required_skills" })
7580
+ (0, import_typeorm70.ViewColumn)({ name: "required_skills" })
7518
7581
  ], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
7519
7582
  __decorateClass([
7520
- (0, import_typeorm69.ViewColumn)({ name: "required_skills_count" })
7583
+ (0, import_typeorm70.ViewColumn)({ name: "required_skills_count" })
7521
7584
  ], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
7522
7585
  ClientFreelancerRecommendation = __decorateClass([
7523
- (0, import_typeorm69.ViewEntity)({
7586
+ (0, import_typeorm70.ViewEntity)({
7524
7587
  name: "client_freelancer_recommendations",
7525
7588
  materialized: true,
7526
7589
  synchronize: false
@@ -7529,7 +7592,7 @@ ClientFreelancerRecommendation = __decorateClass([
7529
7592
  ], ClientFreelancerRecommendation);
7530
7593
 
7531
7594
  // src/entities/commission.entity.ts
7532
- var import_typeorm70 = require("typeorm");
7595
+ var import_typeorm71 = require("typeorm");
7533
7596
  var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
7534
7597
  CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
7535
7598
  CommissionTypeEnum2["FLAT"] = "FLAT";
@@ -7538,7 +7601,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
7538
7601
  var Commission = class extends BaseEntity {
7539
7602
  };
7540
7603
  __decorateClass([
7541
- (0, import_typeorm70.Column)({
7604
+ (0, import_typeorm71.Column)({
7542
7605
  name: "freelancer_commission_type",
7543
7606
  type: "enum",
7544
7607
  enum: CommissionTypeEnum,
@@ -7546,10 +7609,10 @@ __decorateClass([
7546
7609
  })
7547
7610
  ], Commission.prototype, "freelancerCommissionType", 2);
7548
7611
  __decorateClass([
7549
- (0, import_typeorm70.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
7612
+ (0, import_typeorm71.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
7550
7613
  ], Commission.prototype, "freelancerCommission", 2);
7551
7614
  __decorateClass([
7552
- (0, import_typeorm70.Column)({
7615
+ (0, import_typeorm71.Column)({
7553
7616
  name: "client_commission_type",
7554
7617
  type: "enum",
7555
7618
  enum: CommissionTypeEnum,
@@ -7557,66 +7620,66 @@ __decorateClass([
7557
7620
  })
7558
7621
  ], Commission.prototype, "clientCommissionType", 2);
7559
7622
  __decorateClass([
7560
- (0, import_typeorm70.Column)({ name: "client_commission", type: "integer", default: 0 })
7623
+ (0, import_typeorm71.Column)({ name: "client_commission", type: "integer", default: 0 })
7561
7624
  ], Commission.prototype, "clientCommission", 2);
7562
7625
  Commission = __decorateClass([
7563
- (0, import_typeorm70.Entity)("commissions")
7626
+ (0, import_typeorm71.Entity)("commissions")
7564
7627
  ], Commission);
7565
7628
 
7566
7629
  // src/entities/calendly-meeting-log.entity.ts
7567
- var import_typeorm71 = require("typeorm");
7630
+ var import_typeorm72 = require("typeorm");
7568
7631
  var CalendlyMeetingLog = class extends BaseEntity {
7569
7632
  };
7570
7633
  __decorateClass([
7571
- (0, import_typeorm71.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
7572
- (0, import_typeorm71.Index)()
7634
+ (0, import_typeorm72.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
7635
+ (0, import_typeorm72.Index)()
7573
7636
  ], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
7574
7637
  __decorateClass([
7575
- (0, import_typeorm71.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
7638
+ (0, import_typeorm72.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
7576
7639
  ], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
7577
7640
  __decorateClass([
7578
- (0, import_typeorm71.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7641
+ (0, import_typeorm72.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7579
7642
  ], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
7580
7643
  CalendlyMeetingLog = __decorateClass([
7581
- (0, import_typeorm71.Entity)("calendly_meeting_logs")
7644
+ (0, import_typeorm72.Entity)("calendly_meeting_logs")
7582
7645
  ], CalendlyMeetingLog);
7583
7646
 
7584
7647
  // src/entities/zoom-meeting-log.entity.ts
7585
- var import_typeorm72 = require("typeorm");
7648
+ var import_typeorm73 = require("typeorm");
7586
7649
  var ZoomMeetingLog = class extends BaseEntity {
7587
7650
  };
7588
7651
  __decorateClass([
7589
- (0, import_typeorm72.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
7590
- (0, import_typeorm72.Index)()
7652
+ (0, import_typeorm73.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
7653
+ (0, import_typeorm73.Index)()
7591
7654
  ], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
7592
7655
  __decorateClass([
7593
- (0, import_typeorm72.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
7656
+ (0, import_typeorm73.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
7594
7657
  ], ZoomMeetingLog.prototype, "zoomEventType", 2);
7595
7658
  __decorateClass([
7596
- (0, import_typeorm72.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7659
+ (0, import_typeorm73.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7597
7660
  ], ZoomMeetingLog.prototype, "rawWebhookData", 2);
7598
7661
  ZoomMeetingLog = __decorateClass([
7599
- (0, import_typeorm72.Entity)("zoom_meeting_logs")
7662
+ (0, import_typeorm73.Entity)("zoom_meeting_logs")
7600
7663
  ], ZoomMeetingLog);
7601
7664
 
7602
7665
  // src/entities/stripe-logs.entity.ts
7603
- var import_typeorm73 = require("typeorm");
7666
+ var import_typeorm74 = require("typeorm");
7604
7667
  var StripeLog = class extends BaseEntity {
7605
7668
  };
7606
7669
  __decorateClass([
7607
- (0, import_typeorm73.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
7670
+ (0, import_typeorm74.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
7608
7671
  ], StripeLog.prototype, "stripeEventId", 2);
7609
7672
  __decorateClass([
7610
- (0, import_typeorm73.Column)({ name: "event_type", type: "varchar", nullable: true })
7673
+ (0, import_typeorm74.Column)({ name: "event_type", type: "varchar", nullable: true })
7611
7674
  ], StripeLog.prototype, "eventType", 2);
7612
7675
  __decorateClass([
7613
- (0, import_typeorm73.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
7676
+ (0, import_typeorm74.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
7614
7677
  ], StripeLog.prototype, "stripeAccountId", 2);
7615
7678
  __decorateClass([
7616
- (0, import_typeorm73.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7679
+ (0, import_typeorm74.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7617
7680
  ], StripeLog.prototype, "rawWebhookData", 2);
7618
7681
  StripeLog = __decorateClass([
7619
- (0, import_typeorm73.Entity)("stripe_logs")
7682
+ (0, import_typeorm74.Entity)("stripe_logs")
7620
7683
  ], StripeLog);
7621
7684
  // Annotate the CommonJS export names for ESM import in node:
7622
7685
  0 && (module.exports = {
@@ -7851,12 +7914,9 @@ StripeLog = __decorateClass([
7851
7914
  State,
7852
7915
  Step,
7853
7916
  StripeLog,
7854
- StripeWallet,
7855
- StripeWalletAccountTypeEnum,
7856
- StripeWalletOnboardingStatusEnum,
7857
- StripeWalletTransaction,
7858
- StripeWalletTransactionStatusEnum,
7859
- StripeWalletTransactionTypeEnum,
7917
+ StripeTransaction,
7918
+ StripeTransactionStatusEnum,
7919
+ StripeTransactionTypeEnum,
7860
7920
  SystemPreference,
7861
7921
  SystemPreferenceDto,
7862
7922
  SystemPreferenceKey,
@@ -7895,5 +7955,11 @@ StripeLog = __decorateClass([
7895
7955
  UserTCPAdapter,
7896
7956
  VerifyGuestOtpDto,
7897
7957
  VerifyGuestOtpPurposeEnum,
7958
+ Wallet,
7959
+ WalletAccountTypeEnum,
7960
+ WalletOnboardingStatusEnum,
7961
+ WalletTransaction,
7962
+ WalletTransactionStatusEnum,
7963
+ WalletTransactionTypeEnum,
7898
7964
  ZoomMeetingLog
7899
7965
  });