@zeniai/client-epic-state 4.20.3-betaSS8 → 4.20.3-betaSS9

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.
@@ -1,8 +1,8 @@
1
1
  import { of } from 'rxjs';
2
- import { catchError, filter, switchMap, mergeMap, withLatestFrom } from 'rxjs/operators';
2
+ import { catchError, filter, switchMap, mergeMap } from 'rxjs/operators';
3
3
  import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload';
4
4
  import { fetchCardProfiles, fetchCardProfilesCompleted, fetchCardProfilesFailed, mapCardTenantProfileRowPayload, } from '../creditAgentViewReducer';
5
- export const fetchCardProfilesEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(fetchCardProfiles.match), withLatestFrom(state$), filter(([, state]) => state.creditAgentViewState.cardProfiles.fetchState !== 'In-Progress'), switchMap(() => {
5
+ export const fetchCardProfilesEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(fetchCardProfiles.match), switchMap(() => {
6
6
  const url = `${zeniAPI.apiEndPoints.cardMicroServiceBaseUrl}/1.0/cockpit/card-tenant-profiles`;
7
7
  return zeniAPI.getJSON(url).pipe(mergeMap((response) => {
8
8
  if (isSuccessResponse(response) && response.data != null) {
@@ -3,7 +3,7 @@ import { RootState } from '../../../reducer';
3
3
  import { ZeniAPI } from '../../../zeniAPI';
4
4
  import { fetchCardProfiles, fetchCardProfilesCompleted, fetchCardProfilesFailed } from '../creditAgentViewReducer';
5
5
  export type ActionType = ReturnType<typeof fetchCardProfiles> | ReturnType<typeof fetchCardProfilesCompleted> | ReturnType<typeof fetchCardProfilesFailed>;
6
- export declare const fetchCardProfilesEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
6
+ export declare const fetchCardProfilesEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
7
7
  payload: import("../creditAgentViewState").CardTenantProfileRow[];
8
8
  type: "creditAgentView/fetchCardProfilesCompleted";
9
9
  } | {
@@ -5,7 +5,7 @@ const rxjs_1 = require("rxjs");
5
5
  const operators_1 = require("rxjs/operators");
6
6
  const responsePayload_1 = require("../../../responsePayload");
7
7
  const creditAgentViewReducer_1 = require("../creditAgentViewReducer");
8
- const fetchCardProfilesEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(creditAgentViewReducer_1.fetchCardProfiles.match), (0, operators_1.withLatestFrom)(state$), (0, operators_1.filter)(([, state]) => state.creditAgentViewState.cardProfiles.fetchState !== 'In-Progress'), (0, operators_1.switchMap)(() => {
8
+ const fetchCardProfilesEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(creditAgentViewReducer_1.fetchCardProfiles.match), (0, operators_1.switchMap)(() => {
9
9
  const url = `${zeniAPI.apiEndPoints.cardMicroServiceBaseUrl}/1.0/cockpit/card-tenant-profiles`;
10
10
  return zeniAPI.getJSON(url).pipe((0, operators_1.mergeMap)((response) => {
11
11
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.20.3-betaSS8",
3
+ "version": "4.20.3-betaSS9",
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",