@zeniai/client-epic-state 4.17.16 → 4.17.18
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.
- package/lib/entity/accountRecon/accountReconPayload.d.ts +0 -2
- package/lib/entity/accountRecon/accountReconPayload.js +1 -6
- package/lib/entity/accountRecon/accountReconState.d.ts +0 -2
- package/lib/entity/{aiCfo/aiCfoPayload.d.ts → aiController/aiControllerPayload.d.ts} +3 -10
- package/lib/entity/aiController/aiControllerReducer.d.ts +46 -0
- package/lib/entity/{aiCfo/aiCfoReducer.js → aiController/aiControllerReducer.js} +45 -53
- package/lib/entity/aiController/aiControllerSelector.d.ts +14 -0
- package/lib/entity/{aiCfo/aiCfoSelector.js → aiController/aiControllerSelector.js} +6 -6
- package/lib/entity/aiController/aiControllerState.d.ts +88 -0
- package/lib/entity/aiController/aiControllerState.js +49 -0
- package/lib/entity/tenant/clearAllEpic.d.ts +4 -4
- package/lib/entity/tenant/clearAllEpic.js +4 -4
- package/lib/epic.d.ts +8 -10
- package/lib/epic.js +8 -10
- package/lib/index.d.ts +13 -15
- package/lib/index.js +74 -83
- package/lib/reducer.d.ts +6 -6
- package/lib/reducer.js +6 -6
- package/lib/view/{aiCfoView/aiCfoViewPayload.d.ts → aiControllerView/aiControllerViewPayload.d.ts} +2 -2
- package/lib/view/aiControllerView/aiControllerViewReducer.d.ts +73 -0
- package/lib/view/{aiCfoView/aiCfoViewReducer.js → aiControllerView/aiControllerViewReducer.js} +10 -10
- package/lib/view/{aiCfoView/aiCfoViewSelector.d.ts → aiControllerView/aiControllerViewSelector.d.ts} +5 -5
- package/lib/view/{aiCfoView/aiCfoViewSelector.js → aiControllerView/aiControllerViewSelector.js} +6 -6
- package/lib/view/{aiCfoView/aiCfoViewState.d.ts → aiControllerView/aiControllerViewState.d.ts} +3 -3
- package/lib/view/{aiCfoView → aiControllerView}/epics/createSessionAndSubmitEpic.d.ts +2 -2
- package/lib/view/{aiCfoView → aiControllerView}/epics/createSessionAndSubmitEpic.js +9 -9
- package/lib/view/{aiCfoView → aiControllerView}/epics/createSessionEpic.d.ts +2 -2
- package/lib/view/{aiCfoView → aiControllerView}/epics/createSessionEpic.js +8 -8
- package/lib/view/{aiCfoView → aiControllerView}/epics/fetchChatHistoryEpic.d.ts +2 -2
- package/lib/view/{aiCfoView → aiControllerView}/epics/fetchChatHistoryEpic.js +9 -9
- package/lib/view/{aiCfoView → aiControllerView}/epics/fetchChatSessionsForUserEpic.d.ts +2 -2
- package/lib/view/{aiCfoView → aiControllerView}/epics/fetchChatSessionsForUserEpic.js +9 -8
- package/lib/view/{aiCfoView → aiControllerView}/epics/stopSubmitEpic.d.ts +2 -2
- package/lib/view/{aiCfoView → aiControllerView}/epics/stopSubmitEpic.js +11 -11
- package/lib/view/{aiCfoView → aiControllerView}/epics/stopSubmitQuestionEpic.d.ts +2 -2
- package/lib/view/{aiCfoView → aiControllerView}/epics/stopSubmitQuestionEpic.js +8 -8
- package/lib/view/{aiCfoView → aiControllerView}/epics/submitQuestionEpic.d.ts +2 -2
- package/lib/view/{aiCfoView → aiControllerView}/epics/submitQuestionEpic.js +10 -10
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +0 -2
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +34 -49
- package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailPayload.d.ts +0 -7
- package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer.js +0 -11
- package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailSelector.d.ts +1 -2
- package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailSelector.js +0 -1
- package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailState.d.ts +0 -8
- package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailState.js +1 -7
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +0 -19
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.js +1 -33
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailPayload.d.ts +0 -13
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.d.ts +2 -11
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js +2 -18
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.d.ts +1 -2
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.js +1 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +0 -13
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +1 -14
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListPayload.d.ts +0 -14
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.d.ts +2 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +2 -26
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.d.ts +3 -17
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +4 -34
- package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailSelector.js +1 -0
- package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +36 -40
- package/lib/zeniAPI.d.ts +1 -1
- package/package.json +1 -1
- package/lib/entity/aiCfo/aiCfoReducer.d.ts +0 -45
- package/lib/entity/aiCfo/aiCfoSelector.d.ts +0 -14
- package/lib/entity/aiCfo/aiCfoState.d.ts +0 -107
- package/lib/entity/aiCfo/aiCfoState.js +0 -81
- package/lib/view/aiCfoView/aiCfoViewReducer.d.ts +0 -73
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardTransactionStatisticsEpic.d.ts +0 -7
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardTransactionStatisticsEpic.js +0 -39
- package/lib/view/spendManagement/chargeCards/chargeCardList/fetchCreditAccountRepaymentEpic.d.ts +0 -7
- package/lib/view/spendManagement/chargeCards/chargeCardList/fetchCreditAccountRepaymentEpic.js +0 -23
- /package/lib/entity/{aiCfo/aiCfoPayload.js → aiController/aiControllerPayload.js} +0 -0
- /package/lib/view/{aiCfoView/aiCfoViewPayload.js → aiControllerView/aiControllerViewPayload.js} +0 -0
- /package/lib/view/{aiCfoView/aiCfoViewState.js → aiControllerView/aiControllerViewState.js} +0 -0
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { FetchStateAndError, ID } from '../../commonStateTypes/common';
|
|
2
|
-
import { PageToken } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
3
|
-
import { ChatSessionPayload } from '../../entity/aiCfo/aiCfoPayload';
|
|
4
|
-
import { AiCfoAnswerResponseType } from '../../entity/aiCfo/aiCfoState';
|
|
5
|
-
import { ZeniAPIStatus } from '../../responsePayload';
|
|
6
|
-
import { AiCfoViewState } from './aiCfoViewState';
|
|
7
|
-
export declare const initialAiCfoViewState: AiCfoViewState;
|
|
8
|
-
export declare const submitQuestion: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[sessionId: string, questionAnswerId: string, userId: string, questionId: string, createdAt: import("dayjs").Dayjs, question: string], {
|
|
9
|
-
sessionId: string;
|
|
10
|
-
questionAnswerId: string;
|
|
11
|
-
userId: string;
|
|
12
|
-
questionId: string;
|
|
13
|
-
createdAt: import("dayjs").Dayjs;
|
|
14
|
-
question: string;
|
|
15
|
-
}, "aiCfoView/submitQuestion", never, never>, submitQuestionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "aiCfoView/submitQuestionSuccess">, submitQuestionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
16
|
-
sessionId: ID;
|
|
17
|
-
error: ZeniAPIStatus;
|
|
18
|
-
}, "aiCfoView/submitQuestionFailure">, updateResponseState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
19
|
-
chatSessionId: ID;
|
|
20
|
-
responseType: AiCfoAnswerResponseType;
|
|
21
|
-
fetchState: FetchStateAndError;
|
|
22
|
-
}, "aiCfoView/updateResponseState">, updateAiCfoViewScrollPosition: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "aiCfoView/updateAiCfoViewScrollPosition">, updateCurrentInput: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "aiCfoView/updateCurrentInput">, clearInput: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/clearInput">, setSession: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
23
|
-
sessionId: string;
|
|
24
|
-
agentId: string;
|
|
25
|
-
}, "aiCfoView/setSession">, createSession: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[agentId: string, userId: string], {
|
|
26
|
-
agentId: string;
|
|
27
|
-
userId: string;
|
|
28
|
-
}, "aiCfoView/createSession", never, never>, createSessionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
29
|
-
agentId: string;
|
|
30
|
-
sessionId: ID;
|
|
31
|
-
}, "aiCfoView/createSessionSuccess">, createSessionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/createSessionFailure">, createSessionAndSubmit: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[agentId: string, userId: string, questionAnswerId: string, questionId: string, createdAt: import("dayjs").Dayjs, question: string], {
|
|
32
|
-
agentId: string;
|
|
33
|
-
userId: string;
|
|
34
|
-
questionAnswerId: string;
|
|
35
|
-
questionId: string;
|
|
36
|
-
createdAt: import("dayjs").Dayjs;
|
|
37
|
-
question: string;
|
|
38
|
-
}, "aiCfoView/createSessionAndSubmit", never, never>, createSessionAndSubmitSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
39
|
-
agentId: string;
|
|
40
|
-
sessionId: ID;
|
|
41
|
-
}, "aiCfoView/createSessionAndSubmitSuccess">, createSessionAndSubmitFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/createSessionAndSubmitFailure">, fetchChatSessionsForUser: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/fetchChatSessionsForUser">, fetchChatSessionsForUserSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
42
|
-
nextPageToken: PageToken;
|
|
43
|
-
sessions: ChatSessionPayload[];
|
|
44
|
-
}, "aiCfoView/fetchChatSessionsForUserSuccess">, fetchChatSessionsForUserFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/fetchChatSessionsForUserFailure">, fetchChatHistory: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chatSessionId: string, userId: string], {
|
|
45
|
-
chatSessionId: string;
|
|
46
|
-
userId: string;
|
|
47
|
-
}, "aiCfoView/fetchChatHistory", never, never>, fetchChatHistorySuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
48
|
-
chatSessionId: ID;
|
|
49
|
-
nextPageToken: PageToken;
|
|
50
|
-
}, "aiCfoView/fetchChatHistorySuccess">, fetchChatHistoryFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
51
|
-
chatSessionId: ID;
|
|
52
|
-
error: ZeniAPIStatus;
|
|
53
|
-
}, "aiCfoView/fetchChatHistoryFailure">, clearCurrentSessionId: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/clearCurrentSessionId">, stopSubmit: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chatSessionId: string], {
|
|
54
|
-
chatSessionId: string;
|
|
55
|
-
}, "aiCfoView/stopSubmit", never, never>, stopSubmitSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
56
|
-
chatSessionId: ID;
|
|
57
|
-
question: string;
|
|
58
|
-
isOnlyQuestionInSession: boolean;
|
|
59
|
-
}, "aiCfoView/stopSubmitSuccess">, stopSubmitFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
60
|
-
chatSessionId: ID;
|
|
61
|
-
error: ZeniAPIStatus;
|
|
62
|
-
}, "aiCfoView/stopSubmitFailure">, stopSubmitQuestion: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chatSessionId: string], {
|
|
63
|
-
chatSessionId: string;
|
|
64
|
-
}, "aiCfoView/stopSubmitQuestion", never, never>, stopSubmitQuestionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
65
|
-
chatSessionId: ID;
|
|
66
|
-
question: string;
|
|
67
|
-
isOnlyQuestionInSession: boolean;
|
|
68
|
-
}, "aiCfoView/stopSubmitQuestionSuccess">, stopSubmitQuestionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
69
|
-
chatSessionId: ID;
|
|
70
|
-
error: ZeniAPIStatus;
|
|
71
|
-
}, "aiCfoView/stopSubmitQuestionFailure">, clearAiCfoView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/clearAiCfoView">;
|
|
72
|
-
declare const _default: import("redux").Reducer<AiCfoViewState>;
|
|
73
|
-
export default _default;
|
|
@@ -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 { fetchChargeCardTransactionStatistics, updateChargeCardTransactionStatistics, updateChargeCardTransactionStatisticsFetchState } from './chargeCardDetailReducer';
|
|
6
|
-
export type ActionType = ReturnType<typeof fetchChargeCardTransactionStatistics> | ReturnType<typeof updateChargeCardTransactionStatistics> | ReturnType<typeof updateChargeCardTransactionStatisticsFetchState>;
|
|
7
|
-
export declare const fetchChargeCardTransactionStatisticsEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -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;
|
package/lib/view/spendManagement/chargeCards/chargeCardList/fetchCreditAccountRepaymentEpic.d.ts
DELETED
|
@@ -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>;
|
package/lib/view/spendManagement/chargeCards/chargeCardList/fetchCreditAccountRepaymentEpic.js
DELETED
|
@@ -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;
|
|
File without changes
|
/package/lib/view/{aiCfoView/aiCfoViewPayload.js → aiControllerView/aiControllerViewPayload.js}
RENAMED
|
File without changes
|
|
File without changes
|