@zeniai/client-epic-state 4.19.96-betaJK5 → 4.19.96-betaJK6

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.
@@ -8,7 +8,7 @@ export const fetchReconExcludedAccountsEpic = (actions$, _state$, zeniAPI) => ac
8
8
  .pipe(mergeMap((response) => {
9
9
  if (isSuccessResponse(response) && response.data != null) {
10
10
  return of(fetchReconExcludedAccountsSuccess({
11
- excludedAccounts: response.data.excluded_account,
11
+ excludedAccounts: response.data.excluded_accounts,
12
12
  }));
13
13
  }
14
14
  else {
@@ -366,8 +366,7 @@ export const getExpenseAutomationReconciliationView = createSelector((state) =>
366
366
  excludedLiabilityTotals.balanceTotal = total.balanceTotal;
367
367
  excludedLiabilityTotals.clearedTotal = total.clearedTotal;
368
368
  excludedLiabilityTotals.varianceTotal = total.varianceTotal;
369
- excludedLiabilityTotals.variancePercentage =
370
- total.variancePercentage;
369
+ excludedLiabilityTotals.variancePercentage = total.variancePercentage;
371
370
  }
372
371
  });
373
372
  const excludedAccountReconciliationBySectionID = {
@@ -421,10 +420,10 @@ export const getExpenseAutomationReconciliationView = createSelector((state) =>
421
420
  bankAccounts: uniqueBankAccounts,
422
421
  creditCards: uniqueCreditCards,
423
422
  accountReconciliationsByAccountID: reconList,
424
- fetchStatus: {
425
- fetchState: reconciliationViewState.fetchState,
426
- error: reconciliationViewState.error,
427
- },
423
+ fetchStatus: reduceAnyFetchState([
424
+ reconciliationViewState,
425
+ reconciliationViewState.excludedAccountsFetchState,
426
+ ]),
428
427
  plaidConnectionDetails: plaidAccountViewState['expense_automation_reconcile']
429
428
  .plaidConnectionDetails,
430
429
  reconciliationTabsState: reconciliationViewState.reconTabsState,
@@ -11,7 +11,7 @@ const fetchReconExcludedAccountsEpic = (actions$, _state$, zeniAPI) => actions$.
11
11
  .pipe((0, operators_1.mergeMap)((response) => {
12
12
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
13
13
  return (0, rxjs_1.of)((0, reconciliationViewReducer_1.fetchReconExcludedAccountsSuccess)({
14
- excludedAccounts: response.data.excluded_account,
14
+ excludedAccounts: response.data.excluded_accounts,
15
15
  }));
16
16
  }
17
17
  else {
@@ -72,7 +72,7 @@ export interface ExcludedAccountPayload {
72
72
  update_time: string;
73
73
  }
74
74
  export interface ExcludedAccountsResponsePayload {
75
- excluded_account: ExcludedAccountPayload[];
75
+ excluded_accounts: ExcludedAccountPayload[];
76
76
  }
77
77
  export type ExcludedAccountsResponse = ZeniAPIResponse<ExcludedAccountsResponsePayload>;
78
78
  export declare const toExcludedAccount: (payload: ExcludedAccountPayload) => ExcludedAccount;
@@ -372,8 +372,7 @@ exports.getExpenseAutomationReconciliationView = (0, toolkit_1.createSelector)((
372
372
  excludedLiabilityTotals.balanceTotal = total.balanceTotal;
373
373
  excludedLiabilityTotals.clearedTotal = total.clearedTotal;
374
374
  excludedLiabilityTotals.varianceTotal = total.varianceTotal;
375
- excludedLiabilityTotals.variancePercentage =
376
- total.variancePercentage;
375
+ excludedLiabilityTotals.variancePercentage = total.variancePercentage;
377
376
  }
378
377
  });
379
378
  const excludedAccountReconciliationBySectionID = {
@@ -427,10 +426,10 @@ exports.getExpenseAutomationReconciliationView = (0, toolkit_1.createSelector)((
427
426
  bankAccounts: uniqueBankAccounts,
428
427
  creditCards: uniqueCreditCards,
429
428
  accountReconciliationsByAccountID: reconList,
430
- fetchStatus: {
431
- fetchState: reconciliationViewState.fetchState,
432
- error: reconciliationViewState.error,
433
- },
429
+ fetchStatus: (0, reduceFetchState_1.reduceAnyFetchState)([
430
+ reconciliationViewState,
431
+ reconciliationViewState.excludedAccountsFetchState,
432
+ ]),
434
433
  plaidConnectionDetails: plaidAccountViewState['expense_automation_reconcile']
435
434
  .plaidConnectionDetails,
436
435
  reconciliationTabsState: reconciliationViewState.reconTabsState,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.19.96-betaJK5",
3
+ "version": "4.19.96-betaJK6",
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
  "module": "lib/esm/index.js",