@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.
@@ -3,7 +3,7 @@ import { catchError, filter, switchMap, mergeMap } from 'rxjs/operators';
3
3
  import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload';
4
4
  import { fetchCreditAgentMacro, updateCreditAgentMacro, updateCreditAgentMacroFailure, } from '../creditAgentViewReducer';
5
5
  export const fetchCreditAgentMacroEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(fetchCreditAgentMacro.match), switchMap(() => {
6
- const url = `${zeniAPI.apiEndPoints.chatMicroServiceBaseUrl}/1.0/macros/credit-agent`;
6
+ const url = `${zeniAPI.apiEndPoints.aiCfoMicroServiceBaseUrl}/1.0/macros/credit-agent`;
7
7
  return zeniAPI.getJSON(url).pipe(mergeMap((response) => {
8
8
  if (isSuccessResponse(response)) {
9
9
  return of(updateCreditAgentMacro(response.data // eslint-disable-line @typescript-eslint/no-non-null-assertion
@@ -5,7 +5,7 @@ import { saveCreditAgentMacro, saveCreditAgentMacroFailure, saveCreditAgentMacro
5
5
  export const saveCreditAgentMacroEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(saveCreditAgentMacro.match), switchMap((action) => {
6
6
  const { instructions } = action.payload;
7
7
  const existingMacro = state$.value.creditAgentViewState.macro.data;
8
- const url = `${zeniAPI.apiEndPoints.chatMicroServiceBaseUrl}/1.0/macros/credit-agent`;
8
+ const url = `${zeniAPI.apiEndPoints.aiCfoMicroServiceBaseUrl}/1.0/macros/credit-agent`;
9
9
  const body = {
10
10
  instructions,
11
11
  name: existingMacro?.name ?? 'credit-agent',