@zeniai/client-epic-state 4.19.74 → 4.19.75-betaAS1

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/index.js CHANGED
@@ -592,7 +592,7 @@ export { fetchCompanyTaskManagerView, getCompanyTaskManagerView, createTaskFromT
592
592
  export { fetchInternationalVerificationForm, submitInternationalVerificationForm, updateVerificationFormLocalData, getIntlWireVerificationView, };
593
593
  export { fetchExpressPayInitialDetails, updateExpressPayFormLocalData, submitExpressPay, resetExpressPayLocalData, getExpressPayView, };
594
594
  export { acceptTreasuryTerms, fetchTreasurySetupView, clearTreasurySetupView, fetchTreasuryFunds, updatePortfolioAllocation, fetchPortfolioAllocation, updateFundAllocationLocalData, updateTreasuryVideoViewed, getTreasurySetupViewDetails, getTreasuryFundsMaximumYield, };
595
- export { fetchChatSessionsForUser, createSession, submitQuestion, updateAiCfoViewScrollPosition, updateCurrentInput, updateCotCollapsedState, clearInput, setSession, clearAiCfoView, clearCurrentSessionId, clearLastContextMessage, createSessionAndSubmit, stopSubmit, stopSubmitQuestion, fetchChatHistory, acceptMasterTOS, deleteChatSession, updateResponseState, } from './view/aiCfoView/aiCfoViewReducer';
595
+ export { fetchChatSessionsForUser, createSession, submitQuestion, updateAiCfoViewScrollPosition, updateCurrentInput, updateCotCollapsedState, clearInput, setSession, clearAiCfoView, clearCurrentSessionId, clearDeleteChatSessionStatus, clearLastContextMessage, createSessionAndSubmit, stopSubmit, stopSubmitQuestion, fetchChatHistory, acceptMasterTOS, deleteChatSession, updateResponseState, } from './view/aiCfoView/aiCfoViewReducer';
596
596
  export { getAiCfoView, } from './view/aiCfoView/aiCfoViewSelector';
597
597
  export { setNewSession, setSessions, upsertAnswerPayload, upsertOrAddQuestionAnswerPayload, addQuestionPayload, clearSession, clearAiCfo, toAiCfoVisualization, } from './entity/aiCfo/aiCfoReducer';
598
598
  export { getAllQuestionAnswersForChatSession, getQuestionAnswerByIdForChatSession, getAllQuestionsForChatSession, getAiCfoSelectorView, } from './entity/aiCfo/aiCfoSelector';
@@ -317,9 +317,11 @@ const aiCfoView = createSlice({
317
317
  },
318
318
  deleteChatSession: {
319
319
  reducer(draft, action) {
320
- // No-op; session removed from state only when API completes (deleteChatSessionSuccess).
321
- void draft;
322
- void action;
320
+ const { chatSessionId } = action.payload;
321
+ draft.deleteChatSessionStateByChatSessionId[chatSessionId] = {
322
+ fetchState: 'In-Progress',
323
+ error: undefined,
324
+ };
323
325
  },
324
326
  prepare(chatSessionId) {
325
327
  return { payload: { chatSessionId } };
@@ -327,7 +329,10 @@ const aiCfoView = createSlice({
327
329
  },
328
330
  deleteChatSessionSuccess(draft, action) {
329
331
  const { chatSessionId } = action.payload;
330
- delete draft.deleteChatSessionStateByChatSessionId[chatSessionId];
332
+ draft.deleteChatSessionStateByChatSessionId[chatSessionId] = {
333
+ fetchState: 'Completed',
334
+ error: undefined,
335
+ };
331
336
  draft.allChatSessionIds = draft.allChatSessionIds.filter((id) => id !== chatSessionId);
332
337
  if (draft.uiState.currentChatSessionId === chatSessionId) {
333
338
  draft.uiState.currentChatSessionId = undefined;
@@ -346,6 +351,10 @@ const aiCfoView = createSlice({
346
351
  error,
347
352
  };
348
353
  },
354
+ clearDeleteChatSessionStatus(draft, action) {
355
+ const { chatSessionId } = action.payload;
356
+ delete draft.deleteChatSessionStateByChatSessionId[chatSessionId];
357
+ },
349
358
  clearInput(draft) {
350
359
  draft.uiState.currentInput = '';
351
360
  },
@@ -362,5 +371,5 @@ const aiCfoView = createSlice({
362
371
  },
363
372
  },
364
373
  });
365
- export const { submitQuestion, submitQuestionSuccess, submitQuestionFailure, updateResponseState, updateAiCfoViewScrollPosition, updateCurrentInput, clearInput, setSession, createSession, createSessionSuccess, createSessionFailure, createSessionAndSubmit, initializeNewSessionState, createSessionAndSubmitSuccess, createSessionAndSubmitFailure, fetchChatSessionsForUser, fetchChatSessionsForUserSuccess, fetchChatSessionsForUserFailure, fetchChatHistory, fetchChatHistorySuccess, fetchChatHistoryFailure, clearCurrentSessionId, clearLastContextMessage, stopSubmit, stopSubmitSuccess, stopSubmitFailure, stopSubmitQuestion, stopSubmitQuestionSuccess, stopSubmitQuestionFailure, acceptMasterTOS, acceptMasterTOSSuccess, acceptMasterTOSFailure, deleteChatSession, deleteChatSessionSuccess, deleteChatSessionFailure, clearAiCfoView, updateCotCollapsedState, } = aiCfoView.actions;
374
+ export const { submitQuestion, submitQuestionSuccess, submitQuestionFailure, updateResponseState, updateAiCfoViewScrollPosition, updateCurrentInput, clearInput, setSession, createSession, createSessionSuccess, createSessionFailure, createSessionAndSubmit, initializeNewSessionState, createSessionAndSubmitSuccess, createSessionAndSubmitFailure, fetchChatSessionsForUser, fetchChatSessionsForUserSuccess, fetchChatSessionsForUserFailure, fetchChatHistory, fetchChatHistorySuccess, fetchChatHistoryFailure, clearCurrentSessionId, clearLastContextMessage, stopSubmit, stopSubmitSuccess, stopSubmitFailure, stopSubmitQuestion, stopSubmitQuestionSuccess, stopSubmitQuestionFailure, acceptMasterTOS, acceptMasterTOSSuccess, acceptMasterTOSFailure, deleteChatSession, deleteChatSessionSuccess, deleteChatSessionFailure, clearDeleteChatSessionStatus, clearAiCfoView, updateCotCollapsedState, } = aiCfoView.actions;
366
375
  export default aiCfoView.reducer;
@@ -157,10 +157,11 @@ const billPaySetupApproverView = createSlice({
157
157
  reducer(draft, action) {
158
158
  const { approvalRuleIds, affectedEntityIds, newApprovalRuleId } = action.payload;
159
159
  if (draft.billPaySetupApproverViewUpdateData != null) {
160
- if (draft.billPaySetupApproverViewUpdateData.type ===
161
- 'approval_update' &&
162
- draft.billPaySetupApproverViewUpdateData.data
163
- ?.isApplicableOnPendingApprovalEntity === true) {
160
+ if (
161
+ // draft.billPaySetupApproverViewUpdateData.type ===
162
+ // 'approval_update' &&
163
+ draft.billPaySetupApproverViewUpdateData.data
164
+ ?.isApplicableOnPendingApprovalEntity === true) {
164
165
  draft.listeningToPusherEvent = true;
165
166
  }
166
167
  draft.billPaySetupApproverViewUpdateData.updateStatus = {
@@ -12,6 +12,7 @@ export const saveBillPaySetupApproverViewUpdatesEpic = (actions$, state$, zeniAP
12
12
  if (billPaySetupApproverViewUpdateData != null &&
13
13
  billPaySetupApproverViewUpdateData.data != null) {
14
14
  const payload = toApprovalChangableInfoPayload(billPaySetupApproverViewUpdateData.data);
15
+ console.log('________________payload_________________', payload);
15
16
  return zeniAPI
16
17
  .postAndGetJSON(`${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/bill-pay/approval-rules`, payload)
17
18
  .pipe(mergeMap((response) => {
@@ -34,14 +34,14 @@ export const toApprovalChangableInfoPayload = (approverViewUpdateData) => {
34
34
  };
35
35
  });
36
36
  const isUpdate = approverViewUpdateData.approvalRuleId != null;
37
+ console.log('________________approverViewUpdateData_________________', approverViewUpdateData);
37
38
  const payload = {
38
39
  criteria: criteriaPayload,
39
40
  steps,
41
+ is_applicable_on_pending_approval_entity: approverViewUpdateData.isApplicableOnPendingApprovalEntity ?? true,
40
42
  };
41
43
  if (isUpdate) {
42
44
  payload.approval_rule_id = approverViewUpdateData.approvalRuleId;
43
- payload.is_applicable_on_pending_approval_entity =
44
- approverViewUpdateData.isApplicableOnPendingApprovalEntity ?? false;
45
45
  }
46
46
  return payload;
47
47
  };
@@ -179,9 +179,10 @@ const remiSetupApproverView = createSlice({
179
179
  reducer(draft, action) {
180
180
  const { approvalRuleIds, affectedEntityIds, newApprovalRuleId } = action.payload;
181
181
  if (draft.remiSetupApproverViewUpdateData != null) {
182
- if (draft.remiSetupApproverViewUpdateData.type === 'approval_update' &&
183
- draft.remiSetupApproverViewUpdateData.data
184
- ?.isApplicableOnPendingApprovalEntity === true) {
182
+ if (
183
+ // draft.remiSetupApproverViewUpdateData.type === 'approval_update' &&
184
+ draft.remiSetupApproverViewUpdateData.data
185
+ ?.isApplicableOnPendingApprovalEntity === true) {
185
186
  draft.listeningToPusherEvent = true;
186
187
  }
187
188
  draft.remiSetupApproverViewUpdateData.updateStatus = {
package/lib/index.d.ts CHANGED
@@ -846,7 +846,7 @@ export { Country };
846
846
  export { InternationalWireVerificationState, VerificationFormField, VerificationFormLocalData, FieldValueType, fetchInternationalVerificationForm, submitInternationalVerificationForm, updateVerificationFormLocalData, getIntlWireVerificationView, InternationalWireVerificationView, };
847
847
  export { fetchExpressPayInitialDetails, updateExpressPayFormLocalData, submitExpressPay, resetExpressPayLocalData, ExpressPayFormLocalData, ExpressPayView, getExpressPayView, };
848
848
  export { acceptTreasuryTerms, fetchTreasurySetupView, clearTreasurySetupView, fetchTreasuryFunds, updatePortfolioAllocation, fetchPortfolioAllocation, updateFundAllocationLocalData, updateTreasuryVideoViewed, FundAllocationOption, FundComposition, FundData, TreasurySetupView, getTreasurySetupViewDetails, getTreasuryFundsMaximumYield, };
849
- export { fetchChatSessionsForUser, createSession, submitQuestion, updateAiCfoViewScrollPosition, updateCurrentInput, updateCotCollapsedState, clearInput, setSession, clearAiCfoView, clearCurrentSessionId, clearLastContextMessage, createSessionAndSubmit, stopSubmit, stopSubmitQuestion, fetchChatHistory, acceptMasterTOS, deleteChatSession, updateResponseState, } from './view/aiCfoView/aiCfoViewReducer';
849
+ export { fetchChatSessionsForUser, createSession, submitQuestion, updateAiCfoViewScrollPosition, updateCurrentInput, updateCotCollapsedState, clearInput, setSession, clearAiCfoView, clearCurrentSessionId, clearDeleteChatSessionStatus, clearLastContextMessage, createSessionAndSubmit, stopSubmit, stopSubmitQuestion, fetchChatHistory, acceptMasterTOS, deleteChatSession, updateResponseState, } from './view/aiCfoView/aiCfoViewReducer';
850
850
  export { AiCfoViewState, AiCfoViewUIState, } from './view/aiCfoView/aiCfoViewState';
851
851
  export { AiCfoViewSelector, getAiCfoView, } from './view/aiCfoView/aiCfoViewSelector';
852
852
  export { MessagePayload, ChatSessionPayload, AiCfoAnswerPayload, } from './entity/aiCfo/aiCfoPayload';
package/lib/index.js CHANGED
@@ -66,8 +66,8 @@ exports.getVendorFirstReviewView = exports.getGlobalMerchantAutoCompleteResults
66
66
  exports.allTaskPriority = exports.allTaskStatus = exports.updateTaskListUIState = exports.updateTaskListSearchText = exports.archiveTask = exports.saveTaskDetail = exports.saveTaskUpdatesToLocalStore = exports.fetchTaskDetailPage = exports.getTaskDetail = exports.fetchTaskListPage = exports.getAllTasks = exports.getTaskGroupById = exports.toRecurringBillFrequencyStrict = exports.toRecurringBillFrequency = exports.updateArAgingNodeCollapseState = exports.getArAgingDetailForCustomer = exports.getArAgingReport = exports.updateArAgingDetailUIState = exports.fetchArAgingDetail = exports.updateArAgingUIState = exports.fetchArAging = exports.updateVendorGlobalReviewViewLocalData = exports.toVendorGlobalReviewColumnSortKeyType = exports.getTenantMerchantByMerchantId = exports.getVendorGlobalReviewView = exports.updateVendorGlobalReviewViewUIState = exports.updateSelectedGlobalMerchant = exports.fetchVendorGlobalReviewView = exports.rejectVendorGlobalReview = exports.approveVendorGlobalReview = exports.getGlobalMerchantView = exports.clearGlobalMerchantView = exports.updateCreateGlobalMerchantLocalData = exports.createGlobalMerchant = exports.fetchGlobalMerchantRecommendation = exports.getVendorDetailSelectorView = exports.saveVendorDetailsView = exports.updateReviewVendorDetailLocalData = exports.clearGlobalMerchantAutoCompleteResults = exports.fetchGlobalMerchantAutoCompleteView = exports.updateVendorFirstReviewSortUiState = exports.updateVendorFirstReviewViewLocalData = exports.saveVendorFirstReviewView = exports.clearRecentlySavedErroredVendorData = exports.updateVendorFirstReviewViewPageToken = exports.resetVendorFirstReviewLocalData = exports.updateVendorFirstReviewViewScrollYOffset = exports.fetchVendorFirstReviewAttachments = exports.fetchVendorFirstReviewView = exports.getVendorFirstReviewAttachmentView = void 0;
67
67
  exports.toNotificationSubTabTypeStrict = exports.updateCommentsNotificationsStatuses = exports.updateCommentsNotifications = exports.toNotificationModeStrict = exports.fetchZeniAccountsPromoCard = exports.getZeniAccountsPromoCard = exports.getAuthenticationView = exports.fetchCollaborationAuthToken = exports.clearAuditReportGroupViewByCompanyId = exports.saveReasonForAuditRule = exports.fetchAuditReportGroupView = exports.fetchAuditRuleGroupView = exports.getUserFromAllUsers = exports.getAuditRuleGroupViewSelectorView = exports.getAuditReportGroupViewSelectorView = exports.clearCardPaymentView = exports.resetCardPaymentErrorStatuses = exports.fetchPaymentSources = exports.addCardPaymentSource = exports.confirmCardSetupIntent = exports.createCardSetupIntent = exports.getAllCardsAndBankPaymentMethods = exports.deleteTag = exports.createTag = exports.fetchTagList = exports.getAllTags = exports.initialTaskDetailLocalData = exports.convertHHMMStrToMinutes = exports.updateTaskFromListView = exports.toDueDateGroupKeyType = exports.toTaskStatusCodeType = exports.toPriorityCodeType = exports.getDueDateValueFromDueDateGroupId = exports.initialTaskDetail = exports.fetchAllTaskGroups = exports.getTaskUpdates = exports.toTaskListGroupByKeyTypeStrict = exports.toTaskListGroupByKeyType = exports.updateTaskGroupName = exports.dragNDropTasks = exports.updateTaskListLocalData = exports.deleteTaskGroup = exports.initiateTaskListLocalData = exports.createNewTaskGroup = exports.bulkUpdateTaskList = exports.discardTaskUpdatesInLocalStore = exports.deleteTask = exports.TASK_LIST_GROUP_BY_CATEGORIES = exports.TASK_LIST_FILTER_CATEGORIES = exports.updateTaskFilters = void 0;
68
68
  exports.updatePortfolioAllocation = exports.fetchTreasuryFunds = exports.clearTreasurySetupView = exports.fetchTreasurySetupView = exports.acceptTreasuryTerms = exports.getExpressPayView = exports.resetExpressPayLocalData = exports.submitExpressPay = exports.updateExpressPayFormLocalData = exports.fetchExpressPayInitialDetails = exports.getIntlWireVerificationView = exports.updateVerificationFormLocalData = exports.submitInternationalVerificationForm = exports.fetchInternationalVerificationForm = exports.createTaskFromTaskGroupTemplate = exports.getCompanyTaskManagerView = exports.fetchCompanyTaskManagerView = exports.getMinAllowedEndDate = exports.toRecurringFrequency = exports.getRecurringEndDateFromCount = exports.updateReferViewed = exports.getRewardsPlanCard = exports.fetchRewardsPlan = exports.resendReferralInvite = exports.updateReferralListSortUiState = exports.saveReferralFormDataInLocalStore = exports.clearReferrals = exports.sendReferralInvite = exports.fetchReferrals = exports.AmountStatusTypes = exports.StatusTypes = exports.toReferralListViewSortKeyType = exports.getInviteFormView = exports.getReferralListView = exports.getNotifications = exports.getLastNotificationTime = exports.pushToastNotification = exports.getNotificationsForSelectedSubTab = exports.getExternalNotificationsForSelectedSubTab = exports.getNotificationView = exports.updateNotificationViewUIState = exports.updateNotificationViewSubTab = exports.updateNotificationViewCurrentTabAndSubTab = exports.updateNotificationViewTabState = exports.updateNotificationViewNotificationStatus = exports.updateNotificationViewAllNotificationsStatus = exports.fetchNotificationUnreadCountSuccess = exports.fetchNotificationUnreadCount = exports.fetchNotificationView = exports.toNotificationTabTypeStrict = void 0;
69
- exports.toMessageType = exports.toMessageSender = exports.toAiCfoAnswerResponseTypeStrict = exports.toAiCfoAnswerResponseType = exports.toAiCfoAnswerStateTypeStrict = exports.toAiCfoAnswerStateType = exports.toAiCfoChartTypeStrict = exports.toAiCfoChartType = exports.toAiCfoVisualizationTypeStrict = exports.toAiCfoVisualizationType = exports.ALL_AI_CFO_ANSWER_RESPONSE_TYPES = exports.ALL_AI_CFO_ANSWER_STATE_TYPES = exports.ALL_AI_CFO_VISUALIZATION_TYPES = exports.ALL_AI_CFO_CHARTS_TYPES = exports.getAiCfoSelectorView = exports.getAllQuestionsForChatSession = exports.getQuestionAnswerByIdForChatSession = exports.getAllQuestionAnswersForChatSession = exports.toAiCfoVisualization = exports.clearAiCfo = exports.clearSession = exports.addQuestionPayload = exports.upsertOrAddQuestionAnswerPayload = exports.upsertAnswerPayload = exports.setSessions = exports.setNewSession = exports.getAiCfoView = exports.updateResponseState = exports.deleteChatSession = exports.acceptMasterTOS = exports.fetchChatHistory = exports.stopSubmitQuestion = exports.stopSubmit = exports.createSessionAndSubmit = exports.clearLastContextMessage = exports.clearCurrentSessionId = exports.clearAiCfoView = exports.setSession = exports.clearInput = exports.updateCotCollapsedState = exports.updateCurrentInput = exports.updateAiCfoViewScrollPosition = exports.submitQuestion = exports.createSession = exports.fetchChatSessionsForUser = exports.getTreasuryFundsMaximumYield = exports.getTreasurySetupViewDetails = exports.updateTreasuryVideoViewed = exports.updateFundAllocationLocalData = exports.fetchPortfolioAllocation = void 0;
70
- exports.getTransactionActivityLogView = exports.fetchTransactionActivityLog = exports.getTreasuryTaxLetters = exports.fetchTreasuryTaxLetterList = exports.getTreasuryStatements = exports.fetchTreasuryStatementList = exports.getTreasuryTransferMoney = exports.clearTreasuryTransferMoney = exports.updateTreasuryTransferMoneyLocalData = exports.executeTreasuryTransferMoney = exports.getTreasuryDetail = exports.updateTreasuryTransactionListUIState = exports.fetchTreasuryTransactionList = exports.fetchTreasuryOverviewDetail = void 0;
69
+ exports.toMessageSender = exports.toAiCfoAnswerResponseTypeStrict = exports.toAiCfoAnswerResponseType = exports.toAiCfoAnswerStateTypeStrict = exports.toAiCfoAnswerStateType = exports.toAiCfoChartTypeStrict = exports.toAiCfoChartType = exports.toAiCfoVisualizationTypeStrict = exports.toAiCfoVisualizationType = exports.ALL_AI_CFO_ANSWER_RESPONSE_TYPES = exports.ALL_AI_CFO_ANSWER_STATE_TYPES = exports.ALL_AI_CFO_VISUALIZATION_TYPES = exports.ALL_AI_CFO_CHARTS_TYPES = exports.getAiCfoSelectorView = exports.getAllQuestionsForChatSession = exports.getQuestionAnswerByIdForChatSession = exports.getAllQuestionAnswersForChatSession = exports.toAiCfoVisualization = exports.clearAiCfo = exports.clearSession = exports.addQuestionPayload = exports.upsertOrAddQuestionAnswerPayload = exports.upsertAnswerPayload = exports.setSessions = exports.setNewSession = exports.getAiCfoView = exports.updateResponseState = exports.deleteChatSession = exports.acceptMasterTOS = exports.fetchChatHistory = exports.stopSubmitQuestion = exports.stopSubmit = exports.createSessionAndSubmit = exports.clearLastContextMessage = exports.clearDeleteChatSessionStatus = exports.clearCurrentSessionId = exports.clearAiCfoView = exports.setSession = exports.clearInput = exports.updateCotCollapsedState = exports.updateCurrentInput = exports.updateAiCfoViewScrollPosition = exports.submitQuestion = exports.createSession = exports.fetchChatSessionsForUser = exports.getTreasuryFundsMaximumYield = exports.getTreasurySetupViewDetails = exports.updateTreasuryVideoViewed = exports.updateFundAllocationLocalData = exports.fetchPortfolioAllocation = void 0;
70
+ exports.getTransactionActivityLogView = exports.fetchTransactionActivityLog = exports.getTreasuryTaxLetters = exports.fetchTreasuryTaxLetterList = exports.getTreasuryStatements = exports.fetchTreasuryStatementList = exports.getTreasuryTransferMoney = exports.clearTreasuryTransferMoney = exports.updateTreasuryTransferMoneyLocalData = exports.executeTreasuryTransferMoney = exports.getTreasuryDetail = exports.updateTreasuryTransactionListUIState = exports.fetchTreasuryTransactionList = exports.fetchTreasuryOverviewDetail = exports.toMessageType = void 0;
71
71
  const allowedValue_1 = require("./commonStateTypes/allowedValue");
72
72
  Object.defineProperty(exports, "isAllowedValueWithCode", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithCode; } });
73
73
  Object.defineProperty(exports, "isAllowedValueWithID", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithID; } });
@@ -1999,6 +1999,7 @@ Object.defineProperty(exports, "clearInput", { enumerable: true, get: function (
1999
1999
  Object.defineProperty(exports, "setSession", { enumerable: true, get: function () { return aiCfoViewReducer_1.setSession; } });
2000
2000
  Object.defineProperty(exports, "clearAiCfoView", { enumerable: true, get: function () { return aiCfoViewReducer_1.clearAiCfoView; } });
2001
2001
  Object.defineProperty(exports, "clearCurrentSessionId", { enumerable: true, get: function () { return aiCfoViewReducer_1.clearCurrentSessionId; } });
2002
+ Object.defineProperty(exports, "clearDeleteChatSessionStatus", { enumerable: true, get: function () { return aiCfoViewReducer_1.clearDeleteChatSessionStatus; } });
2002
2003
  Object.defineProperty(exports, "clearLastContextMessage", { enumerable: true, get: function () { return aiCfoViewReducer_1.clearLastContextMessage; } });
2003
2004
  Object.defineProperty(exports, "createSessionAndSubmit", { enumerable: true, get: function () { return aiCfoViewReducer_1.createSessionAndSubmit; } });
2004
2005
  Object.defineProperty(exports, "stopSubmit", { enumerable: true, get: function () { return aiCfoViewReducer_1.stopSubmit; } });
@@ -84,7 +84,9 @@ export declare const submitQuestion: import("@reduxjs/toolkit").ActionCreatorWit
84
84
  }, "aiCfoView/deleteChatSessionSuccess">, deleteChatSessionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
85
85
  chatSessionId: ID;
86
86
  error: ZeniAPIStatus;
87
- }, "aiCfoView/deleteChatSessionFailure">, clearAiCfoView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/clearAiCfoView">, updateCotCollapsedState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
87
+ }, "aiCfoView/deleteChatSessionFailure">, clearDeleteChatSessionStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
88
+ chatSessionId: ID;
89
+ }, "aiCfoView/clearDeleteChatSessionStatus">, clearAiCfoView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/clearAiCfoView">, updateCotCollapsedState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
88
90
  isCollapsed: boolean;
89
91
  questionAnswerId: ID;
90
92
  }, "aiCfoView/updateCotCollapsedState">;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.updateCotCollapsedState = exports.clearAiCfoView = exports.deleteChatSessionFailure = exports.deleteChatSessionSuccess = exports.deleteChatSession = exports.acceptMasterTOSFailure = exports.acceptMasterTOSSuccess = exports.acceptMasterTOS = exports.stopSubmitQuestionFailure = exports.stopSubmitQuestionSuccess = exports.stopSubmitQuestion = exports.stopSubmitFailure = exports.stopSubmitSuccess = exports.stopSubmit = exports.clearLastContextMessage = exports.clearCurrentSessionId = exports.fetchChatHistoryFailure = exports.fetchChatHistorySuccess = exports.fetchChatHistory = exports.fetchChatSessionsForUserFailure = exports.fetchChatSessionsForUserSuccess = exports.fetchChatSessionsForUser = exports.createSessionAndSubmitFailure = exports.createSessionAndSubmitSuccess = exports.initializeNewSessionState = exports.createSessionAndSubmit = exports.createSessionFailure = exports.createSessionSuccess = exports.createSession = exports.setSession = exports.clearInput = exports.updateCurrentInput = exports.updateAiCfoViewScrollPosition = exports.updateResponseState = exports.submitQuestionFailure = exports.submitQuestionSuccess = exports.submitQuestion = exports.initialAiCfoViewState = void 0;
4
+ exports.updateCotCollapsedState = exports.clearAiCfoView = exports.clearDeleteChatSessionStatus = exports.deleteChatSessionFailure = exports.deleteChatSessionSuccess = exports.deleteChatSession = exports.acceptMasterTOSFailure = exports.acceptMasterTOSSuccess = exports.acceptMasterTOS = exports.stopSubmitQuestionFailure = exports.stopSubmitQuestionSuccess = exports.stopSubmitQuestion = exports.stopSubmitFailure = exports.stopSubmitSuccess = exports.stopSubmit = exports.clearLastContextMessage = exports.clearCurrentSessionId = exports.fetchChatHistoryFailure = exports.fetchChatHistorySuccess = exports.fetchChatHistory = exports.fetchChatSessionsForUserFailure = exports.fetchChatSessionsForUserSuccess = exports.fetchChatSessionsForUser = exports.createSessionAndSubmitFailure = exports.createSessionAndSubmitSuccess = exports.initializeNewSessionState = exports.createSessionAndSubmit = exports.createSessionFailure = exports.createSessionSuccess = exports.createSession = exports.setSession = exports.clearInput = exports.updateCurrentInput = exports.updateAiCfoViewScrollPosition = exports.updateResponseState = exports.submitQuestionFailure = exports.submitQuestionSuccess = exports.submitQuestion = exports.initialAiCfoViewState = void 0;
5
5
  const toolkit_1 = require("@reduxjs/toolkit");
6
6
  exports.initialAiCfoViewState = {
7
7
  fetchState: 'Not-Started',
@@ -321,9 +321,11 @@ const aiCfoView = (0, toolkit_1.createSlice)({
321
321
  },
322
322
  deleteChatSession: {
323
323
  reducer(draft, action) {
324
- // No-op; session removed from state only when API completes (deleteChatSessionSuccess).
325
- void draft;
326
- void action;
324
+ const { chatSessionId } = action.payload;
325
+ draft.deleteChatSessionStateByChatSessionId[chatSessionId] = {
326
+ fetchState: 'In-Progress',
327
+ error: undefined,
328
+ };
327
329
  },
328
330
  prepare(chatSessionId) {
329
331
  return { payload: { chatSessionId } };
@@ -331,7 +333,10 @@ const aiCfoView = (0, toolkit_1.createSlice)({
331
333
  },
332
334
  deleteChatSessionSuccess(draft, action) {
333
335
  const { chatSessionId } = action.payload;
334
- delete draft.deleteChatSessionStateByChatSessionId[chatSessionId];
336
+ draft.deleteChatSessionStateByChatSessionId[chatSessionId] = {
337
+ fetchState: 'Completed',
338
+ error: undefined,
339
+ };
335
340
  draft.allChatSessionIds = draft.allChatSessionIds.filter((id) => id !== chatSessionId);
336
341
  if (draft.uiState.currentChatSessionId === chatSessionId) {
337
342
  draft.uiState.currentChatSessionId = undefined;
@@ -350,6 +355,10 @@ const aiCfoView = (0, toolkit_1.createSlice)({
350
355
  error,
351
356
  };
352
357
  },
358
+ clearDeleteChatSessionStatus(draft, action) {
359
+ const { chatSessionId } = action.payload;
360
+ delete draft.deleteChatSessionStateByChatSessionId[chatSessionId];
361
+ },
353
362
  clearInput(draft) {
354
363
  draft.uiState.currentInput = '';
355
364
  },
@@ -366,5 +375,5 @@ const aiCfoView = (0, toolkit_1.createSlice)({
366
375
  },
367
376
  },
368
377
  });
369
- _a = aiCfoView.actions, exports.submitQuestion = _a.submitQuestion, exports.submitQuestionSuccess = _a.submitQuestionSuccess, exports.submitQuestionFailure = _a.submitQuestionFailure, exports.updateResponseState = _a.updateResponseState, exports.updateAiCfoViewScrollPosition = _a.updateAiCfoViewScrollPosition, exports.updateCurrentInput = _a.updateCurrentInput, exports.clearInput = _a.clearInput, exports.setSession = _a.setSession, exports.createSession = _a.createSession, exports.createSessionSuccess = _a.createSessionSuccess, exports.createSessionFailure = _a.createSessionFailure, exports.createSessionAndSubmit = _a.createSessionAndSubmit, exports.initializeNewSessionState = _a.initializeNewSessionState, exports.createSessionAndSubmitSuccess = _a.createSessionAndSubmitSuccess, exports.createSessionAndSubmitFailure = _a.createSessionAndSubmitFailure, exports.fetchChatSessionsForUser = _a.fetchChatSessionsForUser, exports.fetchChatSessionsForUserSuccess = _a.fetchChatSessionsForUserSuccess, exports.fetchChatSessionsForUserFailure = _a.fetchChatSessionsForUserFailure, exports.fetchChatHistory = _a.fetchChatHistory, exports.fetchChatHistorySuccess = _a.fetchChatHistorySuccess, exports.fetchChatHistoryFailure = _a.fetchChatHistoryFailure, exports.clearCurrentSessionId = _a.clearCurrentSessionId, exports.clearLastContextMessage = _a.clearLastContextMessage, exports.stopSubmit = _a.stopSubmit, exports.stopSubmitSuccess = _a.stopSubmitSuccess, exports.stopSubmitFailure = _a.stopSubmitFailure, exports.stopSubmitQuestion = _a.stopSubmitQuestion, exports.stopSubmitQuestionSuccess = _a.stopSubmitQuestionSuccess, exports.stopSubmitQuestionFailure = _a.stopSubmitQuestionFailure, exports.acceptMasterTOS = _a.acceptMasterTOS, exports.acceptMasterTOSSuccess = _a.acceptMasterTOSSuccess, exports.acceptMasterTOSFailure = _a.acceptMasterTOSFailure, exports.deleteChatSession = _a.deleteChatSession, exports.deleteChatSessionSuccess = _a.deleteChatSessionSuccess, exports.deleteChatSessionFailure = _a.deleteChatSessionFailure, exports.clearAiCfoView = _a.clearAiCfoView, exports.updateCotCollapsedState = _a.updateCotCollapsedState;
378
+ _a = aiCfoView.actions, exports.submitQuestion = _a.submitQuestion, exports.submitQuestionSuccess = _a.submitQuestionSuccess, exports.submitQuestionFailure = _a.submitQuestionFailure, exports.updateResponseState = _a.updateResponseState, exports.updateAiCfoViewScrollPosition = _a.updateAiCfoViewScrollPosition, exports.updateCurrentInput = _a.updateCurrentInput, exports.clearInput = _a.clearInput, exports.setSession = _a.setSession, exports.createSession = _a.createSession, exports.createSessionSuccess = _a.createSessionSuccess, exports.createSessionFailure = _a.createSessionFailure, exports.createSessionAndSubmit = _a.createSessionAndSubmit, exports.initializeNewSessionState = _a.initializeNewSessionState, exports.createSessionAndSubmitSuccess = _a.createSessionAndSubmitSuccess, exports.createSessionAndSubmitFailure = _a.createSessionAndSubmitFailure, exports.fetchChatSessionsForUser = _a.fetchChatSessionsForUser, exports.fetchChatSessionsForUserSuccess = _a.fetchChatSessionsForUserSuccess, exports.fetchChatSessionsForUserFailure = _a.fetchChatSessionsForUserFailure, exports.fetchChatHistory = _a.fetchChatHistory, exports.fetchChatHistorySuccess = _a.fetchChatHistorySuccess, exports.fetchChatHistoryFailure = _a.fetchChatHistoryFailure, exports.clearCurrentSessionId = _a.clearCurrentSessionId, exports.clearLastContextMessage = _a.clearLastContextMessage, exports.stopSubmit = _a.stopSubmit, exports.stopSubmitSuccess = _a.stopSubmitSuccess, exports.stopSubmitFailure = _a.stopSubmitFailure, exports.stopSubmitQuestion = _a.stopSubmitQuestion, exports.stopSubmitQuestionSuccess = _a.stopSubmitQuestionSuccess, exports.stopSubmitQuestionFailure = _a.stopSubmitQuestionFailure, exports.acceptMasterTOS = _a.acceptMasterTOS, exports.acceptMasterTOSSuccess = _a.acceptMasterTOSSuccess, exports.acceptMasterTOSFailure = _a.acceptMasterTOSFailure, exports.deleteChatSession = _a.deleteChatSession, exports.deleteChatSessionSuccess = _a.deleteChatSessionSuccess, exports.deleteChatSessionFailure = _a.deleteChatSessionFailure, exports.clearDeleteChatSessionStatus = _a.clearDeleteChatSessionStatus, exports.clearAiCfoView = _a.clearAiCfoView, exports.updateCotCollapsedState = _a.updateCotCollapsedState;
370
379
  exports.default = aiCfoView.reducer;
@@ -161,10 +161,11 @@ const billPaySetupApproverView = (0, toolkit_1.createSlice)({
161
161
  reducer(draft, action) {
162
162
  const { approvalRuleIds, affectedEntityIds, newApprovalRuleId } = action.payload;
163
163
  if (draft.billPaySetupApproverViewUpdateData != null) {
164
- if (draft.billPaySetupApproverViewUpdateData.type ===
165
- 'approval_update' &&
166
- draft.billPaySetupApproverViewUpdateData.data
167
- ?.isApplicableOnPendingApprovalEntity === true) {
164
+ if (
165
+ // draft.billPaySetupApproverViewUpdateData.type ===
166
+ // 'approval_update' &&
167
+ draft.billPaySetupApproverViewUpdateData.data
168
+ ?.isApplicableOnPendingApprovalEntity === true) {
168
169
  draft.listeningToPusherEvent = true;
169
170
  }
170
171
  draft.billPaySetupApproverViewUpdateData.updateStatus = {
@@ -15,6 +15,7 @@ const saveBillPaySetupApproverViewUpdatesEpic = (actions$, state$, zeniAPI) => a
15
15
  if (billPaySetupApproverViewUpdateData != null &&
16
16
  billPaySetupApproverViewUpdateData.data != null) {
17
17
  const payload = (0, commonPayload_1.toApprovalChangableInfoPayload)(billPaySetupApproverViewUpdateData.data);
18
+ console.log('________________payload_________________', payload);
18
19
  return zeniAPI
19
20
  .postAndGetJSON(`${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/bill-pay/approval-rules`, payload)
20
21
  .pipe((0, operators_1.mergeMap)((response) => {
@@ -37,14 +37,14 @@ const toApprovalChangableInfoPayload = (approverViewUpdateData) => {
37
37
  };
38
38
  });
39
39
  const isUpdate = approverViewUpdateData.approvalRuleId != null;
40
+ console.log('________________approverViewUpdateData_________________', approverViewUpdateData);
40
41
  const payload = {
41
42
  criteria: criteriaPayload,
42
43
  steps,
44
+ is_applicable_on_pending_approval_entity: approverViewUpdateData.isApplicableOnPendingApprovalEntity ?? true,
43
45
  };
44
46
  if (isUpdate) {
45
47
  payload.approval_rule_id = approverViewUpdateData.approvalRuleId;
46
- payload.is_applicable_on_pending_approval_entity =
47
- approverViewUpdateData.isApplicableOnPendingApprovalEntity ?? false;
48
48
  }
49
49
  return payload;
50
50
  };
@@ -5,6 +5,7 @@ export interface ApproverViewUpdateData {
5
5
  type: ApprovalUpdateActionType;
6
6
  updateStatus: FetchStateAndError;
7
7
  data?: ApprovalRuleUpdateData | ApprovalRuleCreateData;
8
+ isApplicableOnPendingApprovalEntity?: boolean;
8
9
  }
9
10
  export interface ApprovalRuleUpdateData {
10
11
  approvalRuleId: ID;
@@ -183,9 +183,10 @@ const remiSetupApproverView = (0, toolkit_1.createSlice)({
183
183
  reducer(draft, action) {
184
184
  const { approvalRuleIds, affectedEntityIds, newApprovalRuleId } = action.payload;
185
185
  if (draft.remiSetupApproverViewUpdateData != null) {
186
- if (draft.remiSetupApproverViewUpdateData.type === 'approval_update' &&
187
- draft.remiSetupApproverViewUpdateData.data
188
- ?.isApplicableOnPendingApprovalEntity === true) {
186
+ if (
187
+ // draft.remiSetupApproverViewUpdateData.type === 'approval_update' &&
188
+ draft.remiSetupApproverViewUpdateData.data
189
+ ?.isApplicableOnPendingApprovalEntity === true) {
189
190
  draft.listeningToPusherEvent = true;
190
191
  }
191
192
  draft.remiSetupApproverViewUpdateData.updateStatus = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.19.74",
3
+ "version": "4.19.75-betaAS1",
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",