@zeniai/client-epic-state 5.0.93-betaAK1 → 5.0.93-betaAK2

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.
@@ -11,7 +11,7 @@ import { fetchRecentTransfer, updateRecentTransfer, updateRecentTransferFetchSta
11
11
  * (fresh users with no transfer history get `undefined`).
12
12
  */
13
13
  export const fetchRecentTransferEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(fetchRecentTransfer.match), switchMap(() => {
14
- const endpoint = `${zeniAPI.apiEndPoints.cashManagementAgentBaseUrl}/1.0/cash-management/transfers`;
14
+ const endpoint = `${zeniAPI.apiEndPoints.cashManagementAgentBaseUrl}/1.0/cash-management/transfers/latest`;
15
15
  return zeniAPI.getJSON(endpoint).pipe(mergeMap((response) => {
16
16
  if (isSuccessResponse(response) && response.data != null) {
17
17
  return of(updateRecentTransfer({ data: response.data.transfer }));
@@ -14,7 +14,7 @@ const cashManagementOverviewReducer_1 = require("../cashManagementOverviewReduce
14
14
  * (fresh users with no transfer history get `undefined`).
15
15
  */
16
16
  const fetchRecentTransferEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(cashManagementOverviewReducer_1.fetchRecentTransfer.match), (0, operators_1.switchMap)(() => {
17
- const endpoint = `${zeniAPI.apiEndPoints.cashManagementAgentBaseUrl}/1.0/cash-management/transfers`;
17
+ const endpoint = `${zeniAPI.apiEndPoints.cashManagementAgentBaseUrl}/1.0/cash-management/transfers/latest`;
18
18
  return zeniAPI.getJSON(endpoint).pipe((0, operators_1.mergeMap)((response) => {
19
19
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
20
20
  return (0, rxjs_1.of)((0, cashManagementOverviewReducer_1.updateRecentTransfer)({ data: response.data.transfer }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "5.0.93-betaAK1",
3
+ "version": "5.0.93-betaAK2",
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",