@zeniai/client-epic-state 4.19.77-betaSS1 → 4.19.77-betaSS2
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/esm/view/creditAgentView/epics/fetchCreditAgentMacroEpic.js +1 -1
- package/lib/esm/view/creditAgentView/epics/saveCreditAgentMacroEpic.js +1 -1
- package/lib/tsconfig.typecheck.tsbuildinfo +1 -1
- package/lib/view/creditAgentView/epics/fetchCreditAgentMacroEpic.js +1 -1
- package/lib/view/creditAgentView/epics/saveCreditAgentMacroEpic.js +1 -1
- package/lib/zeniAPI.d.ts +0 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ const operators_1 = require("rxjs/operators");
|
|
|
6
6
|
const responsePayload_1 = require("../../../responsePayload");
|
|
7
7
|
const creditAgentViewReducer_1 = require("../creditAgentViewReducer");
|
|
8
8
|
const fetchCreditAgentMacroEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(creditAgentViewReducer_1.fetchCreditAgentMacro.match), (0, operators_1.switchMap)(() => {
|
|
9
|
-
const url = `${zeniAPI.apiEndPoints.
|
|
9
|
+
const url = `${zeniAPI.apiEndPoints.aiCfoMicroServiceBaseUrl}/1.0/macros/credit-agent`;
|
|
10
10
|
return zeniAPI.getJSON(url).pipe((0, operators_1.mergeMap)((response) => {
|
|
11
11
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
|
12
12
|
return (0, rxjs_1.of)((0, creditAgentViewReducer_1.updateCreditAgentMacro)(response.data // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
@@ -8,7 +8,7 @@ const creditAgentViewReducer_1 = require("../creditAgentViewReducer");
|
|
|
8
8
|
const saveCreditAgentMacroEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(creditAgentViewReducer_1.saveCreditAgentMacro.match), (0, operators_1.switchMap)((action) => {
|
|
9
9
|
const { instructions } = action.payload;
|
|
10
10
|
const existingMacro = state$.value.creditAgentViewState.macro.data;
|
|
11
|
-
const url = `${zeniAPI.apiEndPoints.
|
|
11
|
+
const url = `${zeniAPI.apiEndPoints.aiCfoMicroServiceBaseUrl}/1.0/macros/credit-agent`;
|
|
12
12
|
const body = {
|
|
13
13
|
instructions,
|
|
14
14
|
name: existingMacro?.name ?? 'credit-agent',
|
package/lib/zeniAPI.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ export interface RESTAPIEndpoints {
|
|
|
10
10
|
readonly authMicroServiceBaseUrl: string;
|
|
11
11
|
readonly bankingMicroServiceBaseUrl: string;
|
|
12
12
|
readonly cardMicroServiceBaseUrl: string;
|
|
13
|
-
readonly chatMicroServiceBaseUrl: string;
|
|
14
13
|
readonly communicationAgentMicroServiceBaseUrl: string;
|
|
15
14
|
readonly documentAIMicroServiceBaseUrl: string;
|
|
16
15
|
readonly fileMicroServiceBaseUrl: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.19.77-
|
|
3
|
+
"version": "4.19.77-betaSS2",
|
|
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",
|