@zeniai/client-epic-state 4.9.44 → 4.9.45

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.
@@ -5,6 +5,7 @@ export interface ZeniAccountsPromoCardPayload {
5
5
  max_apy: number;
6
6
  max_insured_amount: number;
7
7
  max_possible_interest: number | null;
8
+ max_cash_balance_available: number | null;
8
9
  primary_deposit_account_id: ID | null;
9
10
  }
10
11
  export declare type ZeniAccountsPromoCardResponse = ZeniAPIResponse<ZeniAccountsPromoCardPayload>;
@@ -10,6 +10,7 @@ exports.initialState = {
10
10
  maxInsuredAmount: 0,
11
11
  maxAnnualPercentageYield: 0,
12
12
  maxPossibleInterest: 0,
13
+ maxCashBalanceAvailable: 0,
13
14
  isShowDepositAccountsPromo: false,
14
15
  firstMonthOfFY: 1,
15
16
  reportId: 'zeni_accounts_promo_card',
@@ -37,6 +38,10 @@ const zeniAccountsPromoCard = (0, toolkit_1.createSlice)({
37
38
  promoPayload.max_possible_interest != null
38
39
  ? promoPayload.max_possible_interest
39
40
  : undefined;
41
+ draft.maxCashBalanceAvailable =
42
+ promoPayload.max_cash_balance_available != null
43
+ ? promoPayload.max_cash_balance_available
44
+ : undefined;
40
45
  draft.maxInsuredAmount = promoPayload.max_insured_amount;
41
46
  draft.depositAccountId =
42
47
  promoPayload.primary_deposit_account_id != null
@@ -3,6 +3,7 @@ export declare const getZeniAccountsPromoCard: (state: RootState) => {
3
3
  isShowDepositAccountsPromo: boolean;
4
4
  maxAnnualPercentageYield: number;
5
5
  maxPossibleInterest: number | undefined;
6
+ maxCashBalanceAvailable: number | undefined;
6
7
  maxInsuredAmount: number;
7
8
  depositAccountId: string | undefined;
8
9
  reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets";
@@ -6,6 +6,7 @@ const getZeniAccountsPromoCardSelector = (0, toolkit_1.createSelector)((state) =
6
6
  isShowDepositAccountsPromo: zeniAccountsPromoCardState.isShowDepositAccountsPromo,
7
7
  maxAnnualPercentageYield: zeniAccountsPromoCardState.maxAnnualPercentageYield,
8
8
  maxPossibleInterest: zeniAccountsPromoCardState.maxPossibleInterest,
9
+ maxCashBalanceAvailable: zeniAccountsPromoCardState.maxCashBalanceAvailable,
9
10
  maxInsuredAmount: zeniAccountsPromoCardState.maxInsuredAmount,
10
11
  depositAccountId: zeniAccountsPromoCardState.depositAccountId,
11
12
  reportId: zeniAccountsPromoCardState.reportId,
@@ -4,6 +4,7 @@ export interface ZeniAccountsPromoCardState extends FetchedState, Report {
4
4
  isShowDepositAccountsPromo: boolean;
5
5
  maxAnnualPercentageYield: number;
6
6
  maxPossibleInterest?: number;
7
+ maxCashBalanceAvailable?: number;
7
8
  maxInsuredAmount: number;
8
9
  depositAccountId?: ID;
9
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.9.44",
3
+ "version": "4.9.45",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",