@experts_hub/shared 1.0.464 → 1.0.465

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.
@@ -16,7 +16,7 @@ export declare class Wallet extends BaseEntity {
16
16
  accountType: WalletAccountTypeEnum;
17
17
  stripeAccountId: string;
18
18
  stripeCustomerId: string;
19
- walletBalance: number;
19
+ walletBalance: string;
20
20
  walletBalanceCents: number;
21
21
  onboardingStatus: WalletOnboardingStatusEnum;
22
22
  stripeMetadata: Record<string, any>;
package/dist/index.d.mts CHANGED
@@ -1713,7 +1713,7 @@ declare class Wallet extends BaseEntity {
1713
1713
  accountType: WalletAccountTypeEnum;
1714
1714
  stripeAccountId: string;
1715
1715
  stripeCustomerId: string;
1716
- walletBalance: number;
1716
+ walletBalance: string;
1717
1717
  walletBalanceCents: number;
1718
1718
  onboardingStatus: WalletOnboardingStatusEnum;
1719
1719
  stripeMetadata: Record<string, any>;
package/dist/index.d.ts CHANGED
@@ -1713,7 +1713,7 @@ declare class Wallet extends BaseEntity {
1713
1713
  accountType: WalletAccountTypeEnum;
1714
1714
  stripeAccountId: string;
1715
1715
  stripeCustomerId: string;
1716
- walletBalance: number;
1716
+ walletBalance: string;
1717
1717
  walletBalanceCents: number;
1718
1718
  onboardingStatus: WalletOnboardingStatusEnum;
1719
1719
  stripeMetadata: Record<string, any>;
package/dist/index.js CHANGED
@@ -4939,7 +4939,7 @@ __decorateClass([
4939
4939
  (0, import_typeorm55.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
4940
4940
  ], StripeTransaction.prototype, "actualTotalPaidCents", 2);
4941
4941
  __decorateClass([
4942
- (0, import_typeorm55.Column)({ name: "net_received_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
4942
+ (0, import_typeorm55.Column)({ name: "net_received_cents", type: "bigint", nullable: true, comment: "What YOU receive after Stripe fee Example: 11386 cents = $113.86. This is your actual revenue + user deposit" })
4943
4943
  ], StripeTransaction.prototype, "netReceivedCents", 2);
4944
4944
  __decorateClass([
4945
4945
  (0, import_typeorm55.Column)({ name: "description", type: "text", nullable: true })
@@ -5064,10 +5064,10 @@ __decorateClass([
5064
5064
  (0, import_typeorm57.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
5065
5065
  ], Wallet.prototype, "stripeCustomerId", 2);
5066
5066
  __decorateClass([
5067
- (0, import_typeorm57.Column)({ name: "wallet_balance", type: "bigint", default: 0 })
5067
+ (0, import_typeorm57.Column)({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
5068
5068
  ], Wallet.prototype, "walletBalance", 2);
5069
5069
  __decorateClass([
5070
- (0, import_typeorm57.Column)({ name: "wallet_balance_cents", type: "bigint", default: 0 })
5070
+ (0, import_typeorm57.Column)({ name: "wallet_balance_cents", type: "bigint", default: 0, comment: "This column is used to store wallet balance in cents Example: 371 cents = $3.71, All computation will be handled by this column" })
5071
5071
  ], Wallet.prototype, "walletBalanceCents", 2);
5072
5072
  __decorateClass([
5073
5073
  (0, import_typeorm57.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
package/dist/index.mjs CHANGED
@@ -4966,7 +4966,7 @@ __decorateClass([
4966
4966
  Column55({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
4967
4967
  ], StripeTransaction.prototype, "actualTotalPaidCents", 2);
4968
4968
  __decorateClass([
4969
- Column55({ name: "net_received_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
4969
+ Column55({ name: "net_received_cents", type: "bigint", nullable: true, comment: "What YOU receive after Stripe fee Example: 11386 cents = $113.86. This is your actual revenue + user deposit" })
4970
4970
  ], StripeTransaction.prototype, "netReceivedCents", 2);
4971
4971
  __decorateClass([
4972
4972
  Column55({ name: "description", type: "text", nullable: true })
@@ -5091,10 +5091,10 @@ __decorateClass([
5091
5091
  Column57({ name: "stripe_customer_id", type: "varchar", nullable: true })
5092
5092
  ], Wallet.prototype, "stripeCustomerId", 2);
5093
5093
  __decorateClass([
5094
- Column57({ name: "wallet_balance", type: "bigint", default: 0 })
5094
+ Column57({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
5095
5095
  ], Wallet.prototype, "walletBalance", 2);
5096
5096
  __decorateClass([
5097
- Column57({ name: "wallet_balance_cents", type: "bigint", default: 0 })
5097
+ Column57({ name: "wallet_balance_cents", type: "bigint", default: 0, comment: "This column is used to store wallet balance in cents Example: 371 cents = $3.71, All computation will be handled by this column" })
5098
5098
  ], Wallet.prototype, "walletBalanceCents", 2);
5099
5099
  __decorateClass([
5100
5100
  Column57({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.464",
3
+ "version": "1.0.465",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",