@zeniai/client-epic-state 4.17.15 → 4.17.17

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.
Files changed (75) hide show
  1. package/lib/entity/accountRecon/accountReconPayload.d.ts +0 -2
  2. package/lib/entity/accountRecon/accountReconPayload.js +1 -6
  3. package/lib/entity/accountRecon/accountReconState.d.ts +0 -2
  4. package/lib/entity/{aiCfo/aiCfoPayload.d.ts → aiController/aiControllerPayload.d.ts} +3 -3
  5. package/lib/entity/aiController/aiControllerReducer.d.ts +46 -0
  6. package/lib/entity/{aiCfo/aiCfoReducer.js → aiController/aiControllerReducer.js} +42 -40
  7. package/lib/entity/aiController/aiControllerSelector.d.ts +14 -0
  8. package/lib/entity/{aiCfo/aiCfoSelector.js → aiController/aiControllerSelector.js} +6 -6
  9. package/lib/entity/aiController/aiControllerState.d.ts +88 -0
  10. package/lib/entity/aiController/aiControllerState.js +49 -0
  11. package/lib/entity/tenant/clearAllEpic.d.ts +4 -4
  12. package/lib/entity/tenant/clearAllEpic.js +4 -4
  13. package/lib/epic.d.ts +8 -10
  14. package/lib/epic.js +8 -10
  15. package/lib/index.d.ts +13 -15
  16. package/lib/index.js +74 -83
  17. package/lib/reducer.d.ts +6 -6
  18. package/lib/reducer.js +6 -6
  19. package/lib/view/{aiCfoView/aiCfoViewPayload.d.ts → aiControllerView/aiControllerViewPayload.d.ts} +2 -2
  20. package/lib/view/aiControllerView/aiControllerViewReducer.d.ts +73 -0
  21. package/lib/view/{aiCfoView/aiCfoViewReducer.js → aiControllerView/aiControllerViewReducer.js} +10 -10
  22. package/lib/view/{aiCfoView/aiCfoViewSelector.d.ts → aiControllerView/aiControllerViewSelector.d.ts} +5 -5
  23. package/lib/view/{aiCfoView/aiCfoViewSelector.js → aiControllerView/aiControllerViewSelector.js} +6 -6
  24. package/lib/view/{aiCfoView/aiCfoViewState.d.ts → aiControllerView/aiControllerViewState.d.ts} +3 -3
  25. package/lib/view/{aiCfoView → aiControllerView}/epics/createSessionAndSubmitEpic.d.ts +2 -2
  26. package/lib/view/{aiCfoView → aiControllerView}/epics/createSessionAndSubmitEpic.js +9 -9
  27. package/lib/view/{aiCfoView → aiControllerView}/epics/createSessionEpic.d.ts +2 -2
  28. package/lib/view/{aiCfoView → aiControllerView}/epics/createSessionEpic.js +8 -8
  29. package/lib/view/{aiCfoView → aiControllerView}/epics/fetchChatHistoryEpic.d.ts +2 -2
  30. package/lib/view/{aiCfoView → aiControllerView}/epics/fetchChatHistoryEpic.js +9 -9
  31. package/lib/view/{aiCfoView → aiControllerView}/epics/fetchChatSessionsForUserEpic.d.ts +2 -2
  32. package/lib/view/{aiCfoView → aiControllerView}/epics/fetchChatSessionsForUserEpic.js +9 -8
  33. package/lib/view/{aiCfoView → aiControllerView}/epics/stopSubmitEpic.d.ts +2 -2
  34. package/lib/view/{aiCfoView → aiControllerView}/epics/stopSubmitEpic.js +11 -11
  35. package/lib/view/{aiCfoView → aiControllerView}/epics/stopSubmitQuestionEpic.d.ts +2 -2
  36. package/lib/view/{aiCfoView → aiControllerView}/epics/stopSubmitQuestionEpic.js +8 -8
  37. package/lib/view/{aiCfoView → aiControllerView}/epics/submitQuestionEpic.d.ts +2 -2
  38. package/lib/view/{aiCfoView → aiControllerView}/epics/submitQuestionEpic.js +10 -10
  39. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +0 -2
  40. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +34 -49
  41. package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailPayload.d.ts +0 -7
  42. package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer.js +0 -11
  43. package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailSelector.d.ts +1 -2
  44. package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailSelector.js +0 -1
  45. package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailState.d.ts +0 -8
  46. package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailState.js +1 -7
  47. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +0 -19
  48. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.js +1 -33
  49. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailPayload.d.ts +0 -13
  50. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.d.ts +2 -11
  51. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js +2 -18
  52. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.d.ts +1 -2
  53. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.js +1 -2
  54. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +0 -13
  55. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +1 -14
  56. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListPayload.d.ts +0 -14
  57. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.d.ts +2 -2
  58. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +2 -26
  59. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.d.ts +3 -17
  60. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +4 -34
  61. package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +36 -40
  62. package/lib/zeniAPI.d.ts +1 -1
  63. package/package.json +1 -1
  64. package/lib/entity/aiCfo/aiCfoReducer.d.ts +0 -45
  65. package/lib/entity/aiCfo/aiCfoSelector.d.ts +0 -14
  66. package/lib/entity/aiCfo/aiCfoState.d.ts +0 -88
  67. package/lib/entity/aiCfo/aiCfoState.js +0 -46
  68. package/lib/view/aiCfoView/aiCfoViewReducer.d.ts +0 -73
  69. package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardTransactionStatisticsEpic.d.ts +0 -7
  70. package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardTransactionStatisticsEpic.js +0 -39
  71. package/lib/view/spendManagement/chargeCards/chargeCardList/fetchCreditAccountRepaymentEpic.d.ts +0 -7
  72. package/lib/view/spendManagement/chargeCards/chargeCardList/fetchCreditAccountRepaymentEpic.js +0 -23
  73. /package/lib/entity/{aiCfo/aiCfoPayload.js → aiController/aiControllerPayload.js} +0 -0
  74. /package/lib/view/{aiCfoView/aiCfoViewPayload.js → aiControllerView/aiControllerViewPayload.js} +0 -0
  75. /package/lib/view/{aiCfoView/aiCfoViewState.js → aiControllerView/aiControllerViewState.js} +0 -0
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fetchChargeCardTransactionStatisticsEpic = void 0;
4
- const rxjs_1 = require("rxjs");
5
- const operators_1 = require("rxjs/operators");
6
- const responsePayload_1 = require("../../../../responsePayload");
7
- const chargeCardDetailReducer_1 = require("./chargeCardDetailReducer");
8
- const fetchChargeCardTransactionStatisticsEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(chargeCardDetailReducer_1.fetchChargeCardTransactionStatistics.match), (0, operators_1.switchMap)((action) => {
9
- const { chargeCardId } = action.payload;
10
- return zeniAPI
11
- .getJSON(`${zeniAPI.apiEndPoints.cardMicroServiceBaseUrl}/1.0/cards/${chargeCardId}/analytics/transaction-statistics`)
12
- .pipe((0, operators_1.mergeMap)((response) => {
13
- if ((0, responsePayload_1.isSuccessResponse)(response) && response.data) {
14
- return (0, rxjs_1.of)((0, chargeCardDetailReducer_1.updateChargeCardTransactionStatistics)({
15
- chargeCardId,
16
- statistics: response.data,
17
- }), (0, chargeCardDetailReducer_1.updateChargeCardTransactionStatisticsFetchState)({
18
- chargeCardId,
19
- fetchState: 'Completed',
20
- error: undefined,
21
- }));
22
- }
23
- else {
24
- return (0, rxjs_1.of)((0, chargeCardDetailReducer_1.updateChargeCardTransactionStatisticsFetchState)({
25
- chargeCardId,
26
- fetchState: 'Error',
27
- error: response.status,
28
- }));
29
- }
30
- }), (0, operators_1.catchError)((error) => {
31
- return (0, rxjs_1.of)((0, chargeCardDetailReducer_1.updateChargeCardTransactionStatisticsFetchState)({
32
- chargeCardId,
33
- fetchState: 'Error',
34
- error: (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Fetch Charge Card Transaction Statistics REST API call errored out' +
35
- JSON.stringify(error)),
36
- }));
37
- }));
38
- }));
39
- exports.fetchChargeCardTransactionStatisticsEpic = fetchChargeCardTransactionStatisticsEpic;
@@ -1,7 +0,0 @@
1
- import { ActionsObservable, StateObservable } from 'redux-observable';
2
- import { Observable } from 'rxjs';
3
- import { RootState } from '../../../../reducer';
4
- import { ZeniAPI } from '../../../../zeniAPI';
5
- import { fetchCreditAccountRepayment, updateCreditAccountRepayment, updateCreditAccountRepaymentFailure } from './chargeCardListReducer';
6
- export type ActionType = ReturnType<typeof fetchCreditAccountRepayment> | ReturnType<typeof updateCreditAccountRepayment> | ReturnType<typeof updateCreditAccountRepaymentFailure>;
7
- export declare const fetchCreditAccountRepaymentEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fetchCreditAccountRepaymentEpic = void 0;
4
- const rxjs_1 = require("rxjs");
5
- const operators_1 = require("rxjs/operators");
6
- const responsePayload_1 = require("../../../../responsePayload");
7
- const chargeCardListReducer_1 = require("./chargeCardListReducer");
8
- const fetchCreditAccountRepaymentEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(chargeCardListReducer_1.fetchCreditAccountRepayment.match), (0, operators_1.switchMap)(() => {
9
- return zeniAPI
10
- .getJSON(`${zeniAPI.apiEndPoints.cardMicroServiceBaseUrl}/1.0/cards/repayments`)
11
- .pipe((0, operators_1.mergeMap)((response) => {
12
- if ((0, responsePayload_1.isSuccessStatus)(response) && response.data != null) {
13
- return (0, rxjs_1.of)((0, chargeCardListReducer_1.updateCreditAccountRepayment)(response.data));
14
- }
15
- else {
16
- return (0, rxjs_1.of)((0, chargeCardListReducer_1.updateCreditAccountRepaymentFailure)(response.status));
17
- }
18
- }), (0, operators_1.catchError)((error) => {
19
- return (0, rxjs_1.of)((0, chargeCardListReducer_1.updateCreditAccountRepaymentFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Fetch creditAccountRepayment REST API call errored out' +
20
- JSON.stringify(error))));
21
- }));
22
- }));
23
- exports.fetchCreditAccountRepaymentEpic = fetchCreditAccountRepaymentEpic;