@zeniai/client-epic-state 4.19.96-betaJK15 → 4.19.96-betaJK16

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.
@@ -3,7 +3,7 @@ import { catchError, filter, mergeMap } from 'rxjs/operators';
3
3
  import { getAccountReconByAccountIdAndSelectedPeriod } from '../../../../entity/accountRecon/accountReconSelector';
4
4
  import { getCurrentTenant } from '../../../../entity/tenant/tenantSelector';
5
5
  import { createZeniAPIStatus, isSuccessResponse, } from '../../../../responsePayload';
6
- import { excludeAccountFromReconciliation, excludeAccountFromReconciliationFailure, excludeAccountFromReconciliationSuccess, fetchReconciliation, } from '../../reducers/reconciliationViewReducer';
6
+ import { excludeAccountFromReconciliation, excludeAccountFromReconciliationFailure, excludeAccountFromReconciliationSuccess, } from '../../reducers/reconciliationViewReducer';
7
7
  export const excludeAccountFromReconciliationEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(excludeAccountFromReconciliation.match), mergeMap((action) => {
8
8
  const { accountId } = action.payload;
9
9
  const state = state$.value;
@@ -21,7 +21,7 @@ export const excludeAccountFromReconciliationEpic = (actions$, state$, zeniAPI)
21
21
  .postAndGetJSON(apiUrl, payload)
22
22
  .pipe(mergeMap((response) => {
23
23
  if (isSuccessResponse(response)) {
24
- return of(excludeAccountFromReconciliationSuccess({ accountId }), fetchReconciliation(selectedPeriod, undefined, true, true));
24
+ return of(excludeAccountFromReconciliationSuccess({ accountId }));
25
25
  }
26
26
  else {
27
27
  return of(excludeAccountFromReconciliationFailure({
@@ -101,6 +101,7 @@ export const getExpenseAutomationReconciliationView = createSelector((state) =>
101
101
  totalVariancePercentage: undefined,
102
102
  },
103
103
  },
104
+ excludeAccountFetchState: reconciliationViewState.actionFetchState.excludeAccountFetch,
104
105
  };
105
106
  }
106
107
  const allAccountIDs = accountReconForMonthYearPeriod.accountIDs;
@@ -358,6 +359,7 @@ export const getExpenseAutomationReconciliationView = createSelector((state) =>
358
359
  reconListUIState: reconciliationViewState.reconListUIState,
359
360
  excludedAccountReconciliationBySectionID,
360
361
  excludedAccountReconciliationByAccountID,
362
+ excludeAccountFetchState: reconciliationViewState.actionFetchState.excludeAccountFetch,
361
363
  };
362
364
  });
363
365
  export const isAccountReconReport = (reportId) => {
@@ -2,6 +2,6 @@ import { ActionsObservable, StateObservable } from 'redux-observable';
2
2
  import { Observable } from 'rxjs';
3
3
  import { RootState } from '../../../../reducer';
4
4
  import { ZeniAPI } from '../../../../zeniAPI';
5
- import { excludeAccountFromReconciliation, excludeAccountFromReconciliationFailure, excludeAccountFromReconciliationSuccess, fetchReconciliation } from '../../reducers/reconciliationViewReducer';
6
- export type ActionType = ReturnType<typeof excludeAccountFromReconciliation> | ReturnType<typeof excludeAccountFromReconciliationSuccess> | ReturnType<typeof excludeAccountFromReconciliationFailure> | ReturnType<typeof fetchReconciliation>;
5
+ import { excludeAccountFromReconciliation, excludeAccountFromReconciliationFailure, excludeAccountFromReconciliationSuccess } from '../../reducers/reconciliationViewReducer';
6
+ export type ActionType = ReturnType<typeof excludeAccountFromReconciliation> | ReturnType<typeof excludeAccountFromReconciliationSuccess> | ReturnType<typeof excludeAccountFromReconciliationFailure>;
7
7
  export declare const excludeAccountFromReconciliationEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
@@ -24,7 +24,7 @@ const excludeAccountFromReconciliationEpic = (actions$, state$, zeniAPI) => acti
24
24
  .postAndGetJSON(apiUrl, payload)
25
25
  .pipe((0, operators_1.mergeMap)((response) => {
26
26
  if ((0, responsePayload_1.isSuccessResponse)(response)) {
27
- return (0, rxjs_1.of)((0, reconciliationViewReducer_1.excludeAccountFromReconciliationSuccess)({ accountId }), (0, reconciliationViewReducer_1.fetchReconciliation)(selectedPeriod, undefined, true, true));
27
+ return (0, rxjs_1.of)((0, reconciliationViewReducer_1.excludeAccountFromReconciliationSuccess)({ accountId }));
28
28
  }
29
29
  else {
30
30
  return (0, rxjs_1.of)((0, reconciliationViewReducer_1.excludeAccountFromReconciliationFailure)({
@@ -30,6 +30,7 @@ export interface ExpenseAutomationReconciliationViewSelector {
30
30
  classListNestedAccountHierarchy: NestedClassHierarchyForReport[];
31
31
  completionStatus: CompletionStatusType;
32
32
  creditCards: AccountBase[];
33
+ excludeAccountFetchState: FetchStateAndError;
33
34
  excludedAccountReconciliationByAccountID: Record<ID, ExcludedAccountReconciliation>;
34
35
  excludedAccountReconciliationBySectionID: Record<AccountReconSectionID, AccountReconciliationBySection>;
35
36
  fetchStatus: FetchStateAndError;
@@ -107,6 +107,7 @@ exports.getExpenseAutomationReconciliationView = (0, toolkit_1.createSelector)((
107
107
  totalVariancePercentage: undefined,
108
108
  },
109
109
  },
110
+ excludeAccountFetchState: reconciliationViewState.actionFetchState.excludeAccountFetch,
110
111
  };
111
112
  }
112
113
  const allAccountIDs = accountReconForMonthYearPeriod.accountIDs;
@@ -364,6 +365,7 @@ exports.getExpenseAutomationReconciliationView = (0, toolkit_1.createSelector)((
364
365
  reconListUIState: reconciliationViewState.reconListUIState,
365
366
  excludedAccountReconciliationBySectionID,
366
367
  excludedAccountReconciliationByAccountID,
368
+ excludeAccountFetchState: reconciliationViewState.actionFetchState.excludeAccountFetch,
367
369
  };
368
370
  });
369
371
  const isAccountReconReport = (reportId) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.19.96-betaJK15",
3
+ "version": "4.19.96-betaJK16",
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",