@zeniai/client-epic-state 5.1.30 → 5.1.31

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 (88) hide show
  1. package/README.md +1 -3
  2. package/lib/entity/customer/customerPayload.js +11 -2
  3. package/lib/entity/genericEntity/entity.d.ts +1 -1
  4. package/lib/entity/jeSchedules/jeSchedulesPayload.js +2 -3
  5. package/lib/entity/jeSchedules/jeSchedulesSelector.d.ts +1 -1
  6. package/lib/entity/jeSchedules/jeSchedulesSelector.js +4 -4
  7. package/lib/entity/jeSchedules/jeSchedulesState.d.ts +1 -1
  8. package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.js +1 -1
  9. package/lib/entity/vendor/vendorPayload.d.ts +2 -6
  10. package/lib/entity/vendor/vendorPayload.js +3 -14
  11. package/lib/entity/vendor/vendorReducer.js +0 -3
  12. package/lib/epic.d.ts +1 -2
  13. package/lib/epic.js +1 -2
  14. package/lib/esm/entity/customer/customerPayload.js +11 -2
  15. package/lib/esm/entity/jeSchedules/jeSchedulesPayload.js +2 -3
  16. package/lib/esm/entity/jeSchedules/jeSchedulesSelector.js +4 -4
  17. package/lib/esm/entity/transaction/payloadTypes/vendorTransactionPayload.js +2 -2
  18. package/lib/esm/entity/vendor/vendorPayload.js +2 -12
  19. package/lib/esm/entity/vendor/vendorReducer.js +1 -4
  20. package/lib/esm/epic.js +1 -2
  21. package/lib/esm/index.js +2 -2
  22. package/lib/esm/view/aiCfoView/aiCfoViewReducer.js +3 -29
  23. package/lib/esm/view/aiCfoView/aiCfoViewSelector.js +0 -11
  24. package/lib/esm/view/aiCfoView/epics/createSessionAndSubmitEpic.js +2 -2
  25. package/lib/esm/view/aiCfoView/epics/submitQuestionEpic.js +1 -7
  26. package/lib/esm/view/commonVendorView/transactionVendorView/epics/saveTransactionVendorEpic.js +6 -11
  27. package/lib/esm/view/commonVendorView/transactionVendorView/transactionVendorViewReducer.js +0 -2
  28. package/lib/esm/view/createTransferEntry/epics/createTransferEntryEpic.js +1 -5
  29. package/lib/esm/view/expenseAutomationView/payload/jeSchedulesPayload.js +1 -4
  30. package/lib/esm/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +1 -1
  31. package/lib/esm/view/onboardingView/cockpitView/epic/initializeOnboardingCustomerViewUpdateDataEpic.js +16 -4
  32. package/lib/esm/view/onboardingView/cockpitView/onboardingCockpitViewPayload.js +2 -2
  33. package/lib/esm/view/scheduleView/scheduleAccruedDetailView/epics/deleteScheduleAccruedDetailEpic.js +1 -1
  34. package/lib/esm/view/scheduleView/scheduleAccruedDetailView/epics/fetchRecommendedTransactionRowIndexEpic.js +5 -11
  35. package/lib/esm/view/scheduleView/scheduleAccruedDetailView/scheduleAccruedDetailPayload.js +1 -4
  36. package/lib/esm/view/scheduleView/scheduleDetailView/epics/createNewSchedulesEpic.js +1 -1
  37. package/lib/esm/view/scheduleView/scheduleDetailView/epics/deleteScheduleDetailEpic.js +1 -1
  38. package/lib/esm/view/scheduleView/scheduleDetailView/epics/markAsCompleteScheduleDetailEpic.js +1 -1
  39. package/lib/esm/view/scheduleView/scheduleDetailView/epics/saveScheduleDetailsEpic.js +1 -1
  40. package/lib/esm/view/scheduleView/scheduleDetailView/scheduleDetailPayload.js +3 -12
  41. package/lib/esm/view/scheduleView/scheduleListView/scheduleListSelector.js +7 -8
  42. package/lib/esm/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.js +3 -8
  43. package/lib/esm/view/transactionDetail/epics/transactionDetailEpic.js +9 -10
  44. package/lib/esm/view/transactionDetail/epics/updateTransactionDetailEpic.js +1 -5
  45. package/lib/esm/view/trendWithTransactions/fetchTrendForEntityEpic.js +1 -3
  46. package/lib/esm/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListReducer.js +1 -4
  47. package/lib/esm/view/vendorList/vendorListReducer.js +1 -4
  48. package/lib/esm/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.js +1 -9
  49. package/lib/index.d.ts +4 -4
  50. package/lib/index.js +5 -9
  51. package/lib/view/aiCfoView/aiCfoViewPayload.d.ts +0 -14
  52. package/lib/view/aiCfoView/aiCfoViewReducer.d.ts +4 -8
  53. package/lib/view/aiCfoView/aiCfoViewReducer.js +4 -30
  54. package/lib/view/aiCfoView/aiCfoViewSelector.d.ts +1 -2
  55. package/lib/view/aiCfoView/aiCfoViewSelector.js +0 -12
  56. package/lib/view/aiCfoView/aiCfoViewState.d.ts +0 -15
  57. package/lib/view/aiCfoView/epics/createSessionAndSubmitEpic.js +2 -2
  58. package/lib/view/aiCfoView/epics/submitQuestionEpic.js +1 -7
  59. package/lib/view/commonVendorView/transactionVendorView/epics/saveTransactionVendorEpic.js +6 -11
  60. package/lib/view/commonVendorView/transactionVendorView/transactionVendorViewReducer.js +0 -2
  61. package/lib/view/createTransferEntry/epics/createTransferEntryEpic.js +1 -5
  62. package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.js +1 -4
  63. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +1 -1
  64. package/lib/view/onboardingView/cockpitView/epic/initializeOnboardingCustomerViewUpdateDataEpic.js +15 -3
  65. package/lib/view/onboardingView/cockpitView/onboardingCockpitViewPayload.js +2 -2
  66. package/lib/view/scheduleView/scheduleAccruedDetailView/epics/deleteScheduleAccruedDetailEpic.js +1 -1
  67. package/lib/view/scheduleView/scheduleAccruedDetailView/epics/fetchRecommendedTransactionRowIndexEpic.js +5 -11
  68. package/lib/view/scheduleView/scheduleAccruedDetailView/scheduleAccruedDetailPayload.js +1 -4
  69. package/lib/view/scheduleView/scheduleDetailView/epics/createNewSchedulesEpic.js +1 -1
  70. package/lib/view/scheduleView/scheduleDetailView/epics/deleteScheduleDetailEpic.js +1 -1
  71. package/lib/view/scheduleView/scheduleDetailView/epics/markAsCompleteScheduleDetailEpic.js +1 -1
  72. package/lib/view/scheduleView/scheduleDetailView/epics/saveScheduleDetailsEpic.js +1 -1
  73. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.js +3 -12
  74. package/lib/view/scheduleView/scheduleListView/scheduleListSelector.js +7 -8
  75. package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.js +3 -8
  76. package/lib/view/transactionDetail/epics/transactionDetailEpic.js +8 -9
  77. package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +1 -5
  78. package/lib/view/trendWithTransactions/fetchTrendForEntityEpic.js +1 -3
  79. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListReducer.js +1 -4
  80. package/lib/view/vendorList/vendorListReducer.js +1 -4
  81. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.js +1 -9
  82. package/package.json +2 -5
  83. package/lib/commonPayloadTypes/payloadIdentifier.d.ts +0 -6
  84. package/lib/commonPayloadTypes/payloadIdentifier.js +0 -18
  85. package/lib/esm/commonPayloadTypes/payloadIdentifier.js +0 -14
  86. package/lib/esm/view/aiCfoView/epics/fetchSkillsEpic.js +0 -34
  87. package/lib/view/aiCfoView/epics/fetchSkillsEpic.d.ts +0 -8
  88. package/lib/view/aiCfoView/epics/fetchSkillsEpic.js +0 -38
@@ -120,10 +120,7 @@ const mapJEScheduleTransactionToPayload = (jeScheduleTransactionState, vendorSta
120
120
  const lastJEScheduleDate = scheduleLength > 0
121
121
  ? scheduleDetailsLocalData.jeScheduleDetails[scheduleLength - 1].postingDate.format(DEFAULT_DATE_FORMAT)
122
122
  : null;
123
- const vendorID = vendor?.id;
124
- if (vendorID == null) {
125
- throw new Error('Vendor is required to build schedule detail payload (mapJEScheduleTransactionToPayload)');
126
- }
123
+ const vendorID = vendor.id;
127
124
  const vendorDetails = vendorState.vendorByID[vendorID];
128
125
  const updatedVendor = {
129
126
  vendor_id: selectedVendor?.id ?? '',
@@ -198,10 +195,7 @@ const mapFixedAssetJEScheduleTransactionToPayload = (jeScheduleTransactionState,
198
195
  const lastJEScheduleDate = scheduleLength > 0
199
196
  ? scheduleDetailsLocalData.jeScheduleDetails[scheduleLength - 1].postingDate.format(DEFAULT_DATE_FORMAT)
200
197
  : null;
201
- const vendorID = vendor?.id;
202
- if (vendorID == null) {
203
- throw new Error('Vendor is required to build schedule detail payload (mapFixedAssetJEScheduleTransactionToPayload)');
204
- }
198
+ const vendorID = vendor.id;
205
199
  const vendorDetails = vendorState.vendorByID[vendorID];
206
200
  const updatedVendor = {
207
201
  vendor_id: selectedVendor?.id ?? '',
@@ -279,10 +273,7 @@ export const mapAccruedExpenseJEScheduleTransactionToPayload = (jeScheduleTransa
279
273
  const lastJEScheduleDate = scheduleLength > 0
280
274
  ? scheduleDetailsLocalData.jeScheduleDetails[scheduleLength - 1].postingDate.format(DEFAULT_DATE_FORMAT)
281
275
  : null;
282
- const vendorID = vendor?.id;
283
- if (vendorID == null) {
284
- throw new Error('Vendor is required to build schedule detail payload (mapAccruedExpenseJEScheduleTransactionToPayload)');
285
- }
276
+ const vendorID = vendor.id;
286
277
  const vendorDetails = vendorState.vendorByID[vendorID];
287
278
  const payload = {
288
279
  status: updatedStatus,
@@ -12,9 +12,9 @@ const sortedJETransactionsView = (jeTransactions, sortKey, sortOrder) => {
12
12
  case 'transactionDate':
13
13
  return jeTransaction.baseTransaction.date.valueOf();
14
14
  case 'vendor':
15
- return jeTransaction.vendor?.name != null
15
+ return jeTransaction.vendor.name != null
16
16
  ? jeTransaction.vendor.name.toLowerCase()
17
- : jeTransaction.vendor?.name;
17
+ : jeTransaction.vendor.name;
18
18
  case 'scheduleCategory':
19
19
  return jeTransaction.baseTransaction.account.accountName.toLowerCase();
20
20
  case 'expenseCategory':
@@ -75,9 +75,9 @@ const sortedJEAccruedSchedules = (jeAccruedSchedules, sortKey, sortOrder) => {
75
75
  case 'createTime':
76
76
  return jeAccruedSchedule.createTime.valueOf();
77
77
  case 'vendor':
78
- return jeAccruedSchedule.vendor?.name != null
78
+ return jeAccruedSchedule.vendor.name != null
79
79
  ? jeAccruedSchedule.vendor.name.toLowerCase()
80
- : jeAccruedSchedule.vendor?.name;
80
+ : jeAccruedSchedule.vendor.name;
81
81
  case 'expenseCategory':
82
82
  return jeAccruedSchedule.jeDebit.account != null
83
83
  ? jeAccruedSchedule.jeDebit.account.accountName.toLowerCase()
@@ -202,7 +202,7 @@ export const getScheduleListReport = (state, scheduleType) => {
202
202
  .trim()
203
203
  .toLowerCase();
204
204
  const sortedJETransactionView = sortedJETransactionsView(jeTransactionsView.filter((jeTransaction) => {
205
- return ((jeTransaction.vendor?.name != null &&
205
+ return ((jeTransaction.vendor.name != null &&
206
206
  jeTransaction.vendor.name
207
207
  .toLowerCase()
208
208
  .includes(loweredSearchText) === true) ||
@@ -322,9 +322,8 @@ export const getAccruedScheduleListReport = (state, scheduleType) => {
322
322
  .trim()
323
323
  .toLocaleLowerCase();
324
324
  const sortedJESchedules = sortedJEAccruedSchedules(jeScheduleAccrued.filter((jeSchedule) => {
325
- return (jeSchedule.vendor?.name
326
- ?.toLowerCase()
327
- ?.includes(loweredSearchText) === true ||
325
+ return (jeSchedule.vendor.name.toLowerCase().includes(loweredSearchText) ===
326
+ true ||
328
327
  jeSchedule.memo.toLowerCase().includes(loweredSearchText) === true);
329
328
  }), sortKey, sortOrder);
330
329
  const totalBalances = getCalculatedAccruedScheduleTotal(sortedJESchedules);
@@ -14,7 +14,6 @@ import { updateEntityApprovalStatus } from '../../../../../entity/entityApproval
14
14
  import { updatePaymentAccounts } from '../../../../../entity/paymentAccount/paymentAccountReducer';
15
15
  import { updatePaymentInstruments } from '../../../../../entity/paymentInstrument/paymentInstrumentReducer';
16
16
  import { updateAllUsers } from '../../../../../entity/user/userReducer';
17
- import { getVendorPayloadIdentifier } from '../../../../../entity/vendor/vendorPayload';
18
17
  import { updateVendors } from '../../../../../entity/vendor/vendorReducer';
19
18
  import { createZeniAPIStatus, isSuccessResponse, } from '../../../../../responsePayload';
20
19
  import { getFlattenedAddress } from '../../../../commonVendorView/commonVendorViewHelper';
@@ -99,16 +98,12 @@ export const fetchBillDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe(
99
98
  }
100
99
  else {
101
100
  fetchActions.push(updateBillDetail({ billId, billDetail: response.data }));
101
+ fetchActions.push(updateBillDetailFetchState(transcationId, 'Completed', undefined, vendorInResponse?.vendor_id));
102
102
  const transactionInResponse = response.data?.transaction;
103
- const resolvedVendorId = vendorInResponse != null
104
- ? getVendorPayloadIdentifier(vendorInResponse)
105
- : null;
106
- fetchActions.push(updateBillDetailFetchState(transcationId, 'Completed', undefined, resolvedVendorId ?? undefined));
107
103
  if (transactionInResponse != null &&
108
104
  transactionInResponse.total_amount != null &&
109
- resolvedVendorId != null &&
110
105
  vendorInResponse != null) {
111
- fetchActions.push(fetchDuplicateBill(vendorInResponse.vendor_name, resolvedVendorId, transactionInResponse.total_amount, transactionInResponse.recipient_total_amount, transactionInResponse.document_id, billId));
106
+ fetchActions.push(fetchDuplicateBill(vendorInResponse.vendor_name, vendorInResponse.vendor_id, transactionInResponse.total_amount, transactionInResponse.recipient_total_amount, transactionInResponse.document_id, billId));
112
107
  }
113
108
  const billHasPaymentError = [
114
109
  'failed',
@@ -162,7 +157,7 @@ function removeCompleteTransaction(billId, transaction) {
162
157
  function getVendorPreviousBillsActions(billTransactionPayload) {
163
158
  const fetchPreviousBillsActions = [];
164
159
  const vendorId = billTransactionPayload.vendor_id;
165
- if (vendorId != null && vendorId !== '') {
160
+ if (Boolean(vendorId) === true) {
166
161
  fetchPreviousBillsActions.push(fetchPreviousBills(vendorId, false));
167
162
  }
168
163
  return fetchPreviousBillsActions;
@@ -6,7 +6,7 @@ import { toTransaction, } from '../../../entity/transaction/payloadTypes/transac
6
6
  import { toVendorTransactionTypeStrict } from '../../../entity/transaction/stateTypes/transactionType';
7
7
  import { removeTransaction, updateTransaction, } from '../../../entity/transaction/transactionReducer';
8
8
  import { getSupportedTransactionById } from '../../../entity/transaction/transactionSelector';
9
- import { mapVendorPayloadToVendor, getVendorPayloadIdentifier, normalizeVendorBasePayload } from '../../../entity/vendor/vendorPayload';
9
+ import { mapVendorPayloadToVendor } from '../../../entity/vendor/vendorPayload';
10
10
  import { updateVendors } from '../../../entity/vendor/vendorReducer';
11
11
  import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload';
12
12
  import { fetchAccountList } from '../../accountList/accountListReducer';
@@ -56,11 +56,11 @@ export const fetchTransactionDetailEpic = (actions$, state$, zeniAPI) => actions
56
56
  const transcationId = toTransactionID(response.data.transaction);
57
57
  const responseData = {
58
58
  ...response.data,
59
- vendors: response.data.vendors?.map((vendor) => normalizeVendorBasePayload(vendor)) ?? [],
59
+ vendors: response.data.vendors?.map((vendor) => ({
60
+ ...vendor,
61
+ vendor_id: vendor.qbo_id ?? vendor.vendor_id,
62
+ })) ?? [],
60
63
  };
61
- const resolvedVendorId = responseData.vendors.length > 0
62
- ? getVendorPayloadIdentifier(responseData.vendors[0])
63
- : null;
64
64
  if (responseData.vendors.length > 0) {
65
65
  updateActions.push(updateVendors(responseData.vendors, 'merge'));
66
66
  }
@@ -68,16 +68,15 @@ export const fetchTransactionDetailEpic = (actions$, state$, zeniAPI) => actions
68
68
  updateActions.push(updateTransaction(transactionDetailKeyForResponse, responseData.transaction));
69
69
  updateActions.push(initializeTransactionDetailLocalData({
70
70
  transactionId: transcationId,
71
- vendorId: resolvedVendorId ?? undefined,
71
+ vendorId: responseData.vendors[0]?.vendor_id,
72
72
  }));
73
73
  updateActions.push(updateTransactionDetailFetchState(transcationId, 'Completed'));
74
74
  // IMPORTANT: Fetch linked transactions..
75
75
  updateActions.push(...getAllFetchLinkedTransactionDetailActions(responseData.transaction, state$.value));
76
- if (resolvedVendorId != null) {
77
- const vendorPayload = responseData.vendors[0];
76
+ if (responseData.vendors.length > 0) {
78
77
  updateActions.push(updateTransactionVendorLocalData({
79
- vendorId: resolvedVendorId,
80
- localData: getInitializedTransactionVendorLocalData(mapVendorPayloadToVendor(vendorPayload)),
78
+ vendorId: responseData.vendors[0].vendor_id,
79
+ localData: getInitializedTransactionVendorLocalData(mapVendorPayloadToVendor(responseData.vendors[0])),
81
80
  }));
82
81
  }
83
82
  // If vendor transaction, fetch owners list
@@ -17,7 +17,6 @@ import { getTransactionWithCOT } from '../../../entity/transaction/transactionHe
17
17
  import { updateTransaction, updateTransactions, } from '../../../entity/transaction/transactionReducer';
18
18
  import { getSupportedTransactionById } from '../../../entity/transaction/transactionSelector';
19
19
  import { updateVendors } from '../../../entity/vendor/vendorReducer';
20
- import { getVendorPayloadIdentifier } from '../../../entity/vendor/vendorPayload';
21
20
  import { getVendorByVendorId } from '../../../entity/vendor/vendorSelector';
22
21
  import { createZeniAPIStatus, isActionNotAllowed, isSuccessResponse, } from '../../../responsePayload';
23
22
  import { getIsAccountingProjectsEnabled } from '../../../entity/tenant/tenantSelector';
@@ -60,12 +59,9 @@ export const updateTransactionDetailEpic = (actions$, state$, zeniAPI) => action
60
59
  actions.push(updateVendors(response.data.vendors, 'merge'));
61
60
  }
62
61
  actions.push(updateTransaction(transactionDetailKeyForResponse, response.data.transaction));
63
- const updatedVendor = response.data.vendors?.[0];
64
62
  actions.push(initializeTransactionDetailLocalData({
65
63
  transactionId: transactionIdResp,
66
- vendorId: updatedVendor != null
67
- ? getVendorPayloadIdentifier(updatedVendor) ?? undefined
68
- : undefined,
64
+ vendorId: response.data.vendors?.[0]?.vendor_id,
69
65
  }));
70
66
  actions.push(updateTransactionDetailSaveStatus(transactionIdResp, 'Completed'));
71
67
  let callMarkTransactionAsNotMiscategorized = true;
@@ -10,9 +10,7 @@ _state$) => actions$.pipe(filter(fetchTrendForEntity.match), mergeMap((action) =
10
10
  return of(fetchIncomeTrend(entity.id, entity.name));
11
11
  }
12
12
  if (entity.type === 'vendor') {
13
- // QBO-only vendors may lack zeniId; fall back to entity.id so spend
14
- // trend state still keys off the resolved vendor identifier.
15
- return of(fetchExpenseTrend(entity.id, entity.name, entity.zeniId ?? entity.id));
13
+ return of(fetchExpenseTrend(entity.id, entity.name, entity.zeniId));
16
14
  }
17
15
  return from([]);
18
16
  }));
@@ -1,5 +1,4 @@
1
1
  import { createSlice } from '@reduxjs/toolkit';
2
- import { getVendorPayloadIdentifier } from '../../../entity/vendor/vendorPayload';
3
2
  import { date } from '../../../zeniDayJS';
4
3
  export const initialState = {
5
4
  fetchState: 'Not-Started',
@@ -76,9 +75,7 @@ const vendorFiling1099List = createSlice({
76
75
  },
77
76
  updateVendorsFiling1099List(draft, action) {
78
77
  const { response } = action.payload;
79
- const newVendorIds = (response.data?.report.vendors
80
- ?.map((vendor) => getVendorPayloadIdentifier(vendor))
81
- .filter((vendorId) => vendorId != null)) ?? [];
78
+ const newVendorIds = response.data?.report.vendors?.map((vendor) => vendor.vendor_id) ?? [];
82
79
  draft.vendorIds = [...new Set([...draft.vendorIds, ...newVendorIds])];
83
80
  draft.isVendor1099Populated =
84
81
  response.data?.report.is_vendor_1099_populated ?? true;
@@ -1,5 +1,4 @@
1
1
  import { createSlice } from '@reduxjs/toolkit';
2
- import { getVendorPayloadIdentifier } from '../../entity/vendor/vendorPayload';
3
2
  import { date } from '../../zeniDayJS';
4
3
  export const initialState = {
5
4
  fetchState: 'Not-Started',
@@ -85,9 +84,7 @@ const vendorList = createSlice({
85
84
  },
86
85
  updateVendorsList(draft, action) {
87
86
  const { response, searchString, view } = action.payload;
88
- const newVendorIds = (response.data?.vendors
89
- ?.map((vendor) => getVendorPayloadIdentifier(vendor))
90
- .filter((vendorId) => vendorId != null)) ?? [];
87
+ const newVendorIds = response.data?.vendors?.map((vendor) => vendor.vendor_id) ?? [];
91
88
  if (searchString.length > 0) {
92
89
  if (action.payload.keepExistingListItems === false) {
93
90
  draft.searchResults = newVendorIds;
@@ -1,7 +1,6 @@
1
1
  import { createSlice } from '@reduxjs/toolkit';
2
2
  import { toAttachment, } from '../../../entity/transaction/payloadTypes/attachmentPayload';
3
3
  import { toAllRecommendationsFromPayload, toVendorFirstReviewViewStatusesTypeStrict, } from '../common/state/commonTypes';
4
- import { getVendorPayloadIdentifier } from '../../../entity/vendor/vendorPayload';
5
4
  export const initialState = {
6
5
  vendorFirstReviewViewLocalDataById: {},
7
6
  fetchState: 'Not-Started',
@@ -300,14 +299,7 @@ const toVendorReviewViewUpdatedVendorLocalData = (vendorId, vendorPayload) => {
300
299
  const toVendorReviewViewLocalDataById = (vendorsPayload) => {
301
300
  const vendorById = {};
302
301
  vendorsPayload.forEach((vendor) => {
303
- const resolvedVendorId = getVendorPayloadIdentifier(vendor);
304
- if (resolvedVendorId == null) {
305
- return;
306
- }
307
- const vendorView = mapPayloadToVendorFirstReviewView({
308
- ...vendor,
309
- vendor_id: resolvedVendorId,
310
- });
302
+ const vendorView = mapPayloadToVendorFirstReviewView(vendor);
311
303
  vendorById[vendorView.selectedVendorId] = {
312
304
  vendorFirstReviewViewLocalData: vendorView,
313
305
  saveStatus: {
package/lib/index.d.ts CHANGED
@@ -919,11 +919,11 @@ export { AiAccountantCustomerViewState, AiAccountantSortKey, AiAccountantUIState
919
919
  export { AiAccountantFilterCategoryField } from './view/companyView/types/cockpitTypes';
920
920
  export { cancelAiAccountantOnboarding, clearAiAccountantView, fetchAiAccountantCustomers, fetchAiAccountantJobs, setSelectedTenantIdsForJobTrigger, triggerAiAccountantJob, updateAiAccountantUIState, } from './view/aiAccountantView/aiAccountantViewReducer';
921
921
  export { AiAccountantCockpitView, getAiAccountantCockpitView, } from './view/aiAccountantView/aiAccountantViewSelector';
922
- export { fetchChatSessionsForUser, createSession, submitQuestion, updateAiCfoViewScrollPosition, updateCurrentInput, updateCotCollapsedState, clearInput, setSession, clearAiCfoView, clearCurrentSessionId, clearDeleteChatSessionStatus, clearLastContextMessage, createSessionAndSubmit, stopSubmit, stopSubmitQuestion, fetchChatHistory, acceptMasterTOS, deleteChatSession, updateResponseState, fetchSuggestedQuestions, fetchSuggestedQuestionsSuccess, fetchSuggestedQuestionsFailure, fetchSkills, fetchSkillsSuccess, fetchSkillsFailure, applyAiCfoSidePanelHostPageTransition, clearAiCfoSidePanelHostPageContext, } from './view/aiCfoView/aiCfoViewReducer';
923
- export { AiCfoViewState, AiCfoViewUIState, Skill, SkillsState, SuggestedQuestionsForPageContext, } from './view/aiCfoView/aiCfoViewState';
924
- export { FetchSuggestedQuestionsResponse, SuggestedQuestionsDataPayload, FetchSkillsResponse, SkillSummaryPayload, SkillListDataPayload, } from './view/aiCfoView/aiCfoViewPayload';
922
+ export { fetchChatSessionsForUser, createSession, submitQuestion, updateAiCfoViewScrollPosition, updateCurrentInput, updateCotCollapsedState, clearInput, setSession, clearAiCfoView, clearCurrentSessionId, clearDeleteChatSessionStatus, clearLastContextMessage, createSessionAndSubmit, stopSubmit, stopSubmitQuestion, fetchChatHistory, acceptMasterTOS, deleteChatSession, updateResponseState, fetchSuggestedQuestions, fetchSuggestedQuestionsSuccess, fetchSuggestedQuestionsFailure, applyAiCfoSidePanelHostPageTransition, clearAiCfoSidePanelHostPageContext, } from './view/aiCfoView/aiCfoViewReducer';
923
+ export { AiCfoViewState, AiCfoViewUIState, SuggestedQuestionsForPageContext, } from './view/aiCfoView/aiCfoViewState';
924
+ export { FetchSuggestedQuestionsResponse, SuggestedQuestionsDataPayload, } from './view/aiCfoView/aiCfoViewPayload';
925
925
  export type { AiCfoSuggestedQuestionsPageContext } from './common/aiCfo/aiCfoSuggestedQuestionsPageContext';
926
- export { AiCfoViewSelector, getAiCfoView, getSuggestedQuestionsForPageContext, getSkills, } from './view/aiCfoView/aiCfoViewSelector';
926
+ export { AiCfoViewSelector, getAiCfoView, getSuggestedQuestionsForPageContext, } from './view/aiCfoView/aiCfoViewSelector';
927
927
  export { MessagePayload, ChatSessionPayload, AiCfoAnswerPayload, } from './entity/aiCfo/aiCfoPayload';
928
928
  export { setNewSession, setSessions, updateAiCfoAnswerCardPolicyWizardPlan, upsertAnswerPayload, upsertOrAddQuestionAnswerPayload, addQuestionPayload, clearSession, clearAiCfo, toAiCfoVisualization, appendSyntheticAiCfoAnswer, updateSyntheticAiCfoAnswer, removeSyntheticAiCfoAnswer, clearSyntheticAiCfoAnswers, } from './entity/aiCfo/aiCfoReducer';
929
929
  export { AiCfoSelectorView, getAllQuestionAnswersForChatSession, getQuestionAnswerByIdForChatSession, getAllQuestionsForChatSession, getAiCfoSelectorView, getSyntheticAiCfoAnswersForChatSession, getSyntheticAiCfoAnswerByQuestionAnswerId, ChatSessionWithOrderedQuestionAnswers, } from './entity/aiCfo/aiCfoSelector';
package/lib/index.js CHANGED
@@ -71,11 +71,11 @@ exports.getAllTasks = exports.getTaskGroupById = exports.toRecurringBillFrequenc
71
71
  exports.confirmCardSetupIntent = exports.createCardSetupIntent = exports.getAllCardsAndBankPaymentMethods = exports.deleteTag = exports.createTag = exports.fetchTagList = exports.getAllTags = exports.ALL_TASK_LIST_TABS = exports.initialTaskDetailLocalData = exports.convertHHMMStrToMinutes = exports.unsnoozeTask = exports.snoozeTask = exports.removeTaskFromList = exports.updateTaskListTab = 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 = exports.allTaskPriority = exports.allTaskStatus = exports.updateTaskListUIState = exports.updateTaskListSearchText = exports.getCannedResponsesView = exports.deleteCannedResponse = exports.saveCannedResponse = exports.fetchCannedResponses = exports.archiveTask = exports.saveTaskDetail = exports.saveTaskUpdatesToLocalStore = exports.fetchTaskDetailPage = exports.getTaskDetail = exports.fetchTaskListPage = void 0;
72
72
  exports.getNotifications = exports.getLastNotificationTime = exports.pushToastNotification = exports.isFeatureInterestRegistered = exports.getRegisteredInterestsByFeature = exports.getRegisteredInterests = exports.getFeatureNotificationView = exports.notifyMeForFeature = exports.fetchRegisteredInterests = exports.clearFeatureNotificationView = 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 = exports.toNotificationSubTabTypeStrict = exports.updateCommentsNotificationsStatuses = exports.updateCommentsNotifications = exports.toNotificationModeStrict = exports.parseOAuthParams = exports.getZeniOAuthApproveRedirectUrl = exports.getZeniOAuthApproveFetchState = exports.getZeniOAuthApproveError = exports.clearZeniOAuthView = exports.approveOAuthConsentSuccess = exports.approveOAuthConsentFailure = exports.approveOAuthConsent = 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 = void 0;
73
73
  exports.toAiAccountantJobStatus = exports.toAiAccountantEnrollmentStatus = exports.getAllowedOperationsForStatus = exports.getTreasuryFundsMaximumYield = exports.getTreasurySetupViewDetails = exports.updateTreasuryVideoViewed = exports.updateTreasuryPromoRemindMeLaterClicked = exports.updateTreasuryPromoIntroClosedByOutsideClick = exports.updateFundAllocationLocalData = exports.fetchPortfolioAllocation = 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.fetchTaskManagerMetrics = exports.fetchCompanyTaskManagerView = exports.fetchCockpitContext = exports.toRecurringFrequency = exports.toDayOfWeek = exports.getRecurringEndDateFromCount = exports.getMinAllowedEndDate = exports.SEMI_WEEKLY_REQUIRED_DAYS_COUNT = exports.ALL_WEEK_DAYS = exports.updateReferViewed = exports.getRewardsPlanCard = exports.fetchRewardsPlan = exports.resendReferralInvite = exports.updateReferralListSortUiState = exports.saveReferralFormDataInLocalStore = exports.clearReferrals = exports.sendReferralInvite = exports.fetchReferrals = exports.DEFAULT_REFERRER_AMOUNT = exports.AmountStatusTypes = exports.StatusTypes = exports.toReferralListViewSortKeyType = exports.getInviteFormView = exports.getReferralListView = void 0;
74
- exports.setSessions = exports.setNewSession = exports.getSkills = exports.getSuggestedQuestionsForPageContext = exports.getAiCfoView = exports.clearAiCfoSidePanelHostPageContext = exports.applyAiCfoSidePanelHostPageTransition = exports.fetchSkillsFailure = exports.fetchSkillsSuccess = exports.fetchSkills = exports.fetchSuggestedQuestionsFailure = exports.fetchSuggestedQuestionsSuccess = exports.fetchSuggestedQuestions = 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.getAiAccountantCockpitView = exports.updateAiAccountantUIState = exports.triggerAiAccountantJob = exports.setSelectedTenantIdsForJobTrigger = exports.fetchAiAccountantJobs = exports.fetchAiAccountantCustomers = exports.clearAiAccountantView = exports.cancelAiAccountantOnboarding = exports.getAiAccountantJobsByTenantId = exports.getAiAccountantCustomers = exports.updateAiAccountantJobs = exports.updateAiAccountantCustomer = exports.updateAiAccountantCustomers = exports.clearAllAiAccountantCustomers = exports.toAiAccountantJob = exports.toAiAccountantEnrollment = exports.toAiAccountantCustomer = exports.toAiAccountantOperationType = void 0;
75
- exports.updatePolicyDocumentExtractionSuccess = exports.updatePolicyDocumentExtractionFailure = exports.updateCreatedCardPolicyTemplate = exports.updateCardPolicyVendorOptionsFailure = exports.updateCardPolicyVendorOptions = exports.updateCardPolicyTemplates = exports.updateCardPolicyStats = exports.updateCardPolicyMccCategoriesFailure = exports.updateCardPolicyMccCategories = exports.removeCardPolicyTemplate = exports.fetchCardPolicyVendorOptions = exports.fetchCardPolicyRecommendationFromUpload = exports.fetchCardPolicyMccCategories = exports.extractPolicyDocument = exports.clearPolicyDocumentExtraction = exports.toMessageType = exports.toMessageSender = exports.ALL_SYNTHETIC_AI_CFO_ANSWER_KINDS = exports.toInteractiveFormTypeStrict = exports.toInteractiveFormType = exports.toAiCfoAnswerResponseTypeStrict = exports.toAiCfoAnswerResponseType = exports.toAiCfoAnswerStateTypeStrict = exports.toAiCfoAnswerStateType = exports.toAiCfoChartTypeStrict = exports.toAiCfoChartType = exports.toAiCfoVisualizationTypeStrict = exports.toAiCfoVisualizationType = exports.ALL_INTERACTIVE_FORM_TYPES = 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.getSyntheticAiCfoAnswerByQuestionAnswerId = exports.getSyntheticAiCfoAnswersForChatSession = exports.getAiCfoSelectorView = exports.getAllQuestionsForChatSession = exports.getQuestionAnswerByIdForChatSession = exports.getAllQuestionAnswersForChatSession = exports.clearSyntheticAiCfoAnswers = exports.removeSyntheticAiCfoAnswer = exports.updateSyntheticAiCfoAnswer = exports.appendSyntheticAiCfoAnswer = exports.toAiCfoVisualization = exports.clearAiCfo = exports.clearSession = exports.addQuestionPayload = exports.upsertOrAddQuestionAnswerPayload = exports.upsertAnswerPayload = exports.updateAiCfoAnswerCardPolicyWizardPlan = void 0;
76
- exports.updateCreateCardPolicyTemplateRequestState = exports.updateAiCardPolicyFormDraftFromUploadPlan = exports.updateAiCardPolicyFormDraft = exports.seedManualCardPolicyFormDraft = exports.seedAiCardPolicyFormDraft = exports.createCardPolicyTemplates = exports.clearManualCardPolicyFormDraft = exports.clearCreateCardPolicy = exports.clearAiCardPolicyFormDraft = exports.applyExtractedPolicyToManualCardPolicyDraft = exports.applyExtractedPolicyToAiCardPolicyDraft = exports.toUpdateCardPolicyTemplateRequestBody = exports.toExtractedCardPolicyRules = exports.toCreateCardPolicyTemplatesRequestBody = exports.toCreateCardPolicyTemplateRequestBody = exports.toCardPolicyVendorSearchOption = exports.toCardPolicyTemplateList = exports.toCardPolicyTemplate = exports.toCardPolicyStats = exports.toCardPolicyEditFormDraft = exports.toBulkCreateCardPolicyTemplateError = exports.toCardPolicyTemplateStatus = exports.toCardPolicyTemplateMode = exports.ALL_CARD_POLICY_TEMPLATE_STATUSES = exports.ALL_CARD_POLICY_TEMPLATE_MODES = exports.getUploadedPolicyDocumentFileName = exports.getPolicyRecommendationFromUploadFetchState = exports.getPolicyRecommendationFromUploadError = exports.getPolicyRecommendationFromUploadChatSessionId = exports.getPolicyRecommendationFromUploadAnswerId = exports.getPolicyDocumentExtractionFetchState = exports.getPolicyDocumentExtractionError = exports.getExtractedCardPolicyRules = exports.getCardPolicyVendorSearchString = exports.getCardPolicyVendorSearchOptions = exports.getCardPolicyVendorSearchFetchState = exports.getCardPolicyTemplatesByIds = exports.getCardPolicyTemplateById = exports.getCardPolicySuggestedBlockMerchants = exports.getCardPolicySuggestedBlockCategories = exports.getCardPolicySuggestedAllowMerchants = exports.getCardPolicySuggestedAllowCategories = exports.getCardPolicyStats = exports.getCardPolicyMccCategoriesFetchState = exports.getCardPolicyMccCategoriesError = exports.getCardPolicyMccCategories = exports.getAllCardPolicyTemplates = exports.clearCardPolicy = exports.updatePolicyRecommendationFromUploadSuccess = exports.updatePolicyRecommendationFromUploadFailure = void 0;
77
- exports.getTreasuryDetail = exports.updateTreasuryTransactionListUIState = exports.fetchTreasuryTransactionList = exports.fetchTreasuryOverviewDetail = exports.getUpdateCardPolicyFetchState = exports.getCardPolicyFormDraft = exports.getCardPolicyDetailView = exports.getCardPolicyDetailFetchState = exports.updateCardPolicyFormDraft = exports.updateCardPolicyFetchStatus = exports.updateCardPolicyDetailFetchStatus = exports.updateCardPolicy = exports.fetchCardPolicyDetail = exports.clearCardPolicyDetail = exports.getCardPolicyTemplateIds = exports.getCardPolicyListView = exports.getCardPolicyListFetchState = exports.getArchiveCardPolicyFetchState = exports.updateCardPolicyListFetchStatus = exports.updateArchiveCardPolicyFetchStatus = exports.prependCardPolicyTemplateIds = exports.fetchCardPolicyList = exports.clearCardPolicyList = exports.archiveCardPolicy = exports.toManualCardPolicyTemplateRequestFromDraft = exports.toBulkCardPolicyTemplateRequestsFromDraft = exports.toCardPolicyTemplateRequestFromDraft = exports.applyAiCardPolicyFormDraftUpdate = exports.deriveAiPolicyReviewRowsFromInputs = exports.buildManualCardPolicyFormDraftSeed = exports.buildUploadReviewRows = exports.buildEmptyLimitRows = exports.buildAiCardPolicyFormDraftSeed = exports.toVendorChipFieldValue = exports.toMccCategoryChipFieldValue = exports.buildVendorChipId = exports.buildMccCategoryChipId = exports.VENDOR_CHIP_ID_PREFIX = exports.MCC_CHIP_ID_PREFIX = exports.toMccCategoryLike = exports.CARD_POLICY_LIMIT_ROW_ID_TRANSACTION = exports.CARD_POLICY_LIMIT_ROW_ID_REQUIRE_RECEIPT = exports.getManualCardPolicyFormDraft = exports.getLastCreatedCardPolicyTemplateIds = exports.getLastCreatedCardPolicyTemplateId = exports.getLastCreateCardPolicyTemplateErrors = exports.getLastCreateCardPolicySourceChatSessionId = exports.getCreateCardPolicyTemplateRequestState = exports.getAiCardPolicyFormDraft = exports.updateManualCardPolicyFormDraft = void 0;
78
- exports.getCashManagementOverviewBanner = exports.getCashManagementOverview = exports.bufferAmountToRisk = exports.RISK_BUFFER_AMOUNT = exports.getAutoSweepFlow = exports.updateCashManagementSettingsFetchStatus = exports.updateCashManagementSettings = exports.updateAutoSweepSettingsFetchStatus = exports.updateAutoSweepRisk = exports.updateAutoSweepDraft = exports.saveAutoSweepSettings = exports.clearAutoSweepFlow = exports.fetchCashManagementOverviewPage = exports.fetchCashManagementBanner = exports.toKycProvidedDocumentTypeFromAllowed = exports.toKycProvidedDocumentType = exports.DEFAULT_SESSION_CONFIG = exports.SessionManager = exports.getTransactionActivityLogView = exports.fetchTransactionActivityLog = exports.BULK_UPLOAD_BAR_COMPLETE_HOLD_MS = exports.BULK_UPLOAD_AUTOMATCHING_TIMEOUT_MS = exports.getAutoTransferRuleHistory = exports.getAutoTransferRuleById = exports.getAutoTransferRules = exports.clearRuleUpdateLocalData = exports.updateRuleLocalData = exports.fetchAutoTransferReviewDetail = exports.fetchAutoTransferRuleHistory = exports.deleteAutoTransferRule = exports.updateAutoTransferRule = exports.createAutoTransferRule = exports.fetchAutoTransferRules = exports.getTreasuryTaxLetters = exports.fetchTreasuryTaxLetterList = exports.getTreasuryStatements = exports.fetchTreasuryStatementList = exports.getTreasuryTransferMoney = exports.clearTreasuryTransferMoney = exports.updateTreasuryTransferMoneyLocalData = exports.executeTreasuryTransferMoney = void 0;
74
+ exports.addQuestionPayload = exports.upsertOrAddQuestionAnswerPayload = exports.upsertAnswerPayload = exports.updateAiCfoAnswerCardPolicyWizardPlan = exports.setSessions = exports.setNewSession = exports.getSuggestedQuestionsForPageContext = exports.getAiCfoView = exports.clearAiCfoSidePanelHostPageContext = exports.applyAiCfoSidePanelHostPageTransition = exports.fetchSuggestedQuestionsFailure = exports.fetchSuggestedQuestionsSuccess = exports.fetchSuggestedQuestions = 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.getAiAccountantCockpitView = exports.updateAiAccountantUIState = exports.triggerAiAccountantJob = exports.setSelectedTenantIdsForJobTrigger = exports.fetchAiAccountantJobs = exports.fetchAiAccountantCustomers = exports.clearAiAccountantView = exports.cancelAiAccountantOnboarding = exports.getAiAccountantJobsByTenantId = exports.getAiAccountantCustomers = exports.updateAiAccountantJobs = exports.updateAiAccountantCustomer = exports.updateAiAccountantCustomers = exports.clearAllAiAccountantCustomers = exports.toAiAccountantJob = exports.toAiAccountantEnrollment = exports.toAiAccountantCustomer = exports.toAiAccountantOperationType = void 0;
75
+ exports.getAllCardPolicyTemplates = exports.clearCardPolicy = exports.updatePolicyRecommendationFromUploadSuccess = exports.updatePolicyRecommendationFromUploadFailure = exports.updatePolicyDocumentExtractionSuccess = exports.updatePolicyDocumentExtractionFailure = exports.updateCreatedCardPolicyTemplate = exports.updateCardPolicyVendorOptionsFailure = exports.updateCardPolicyVendorOptions = exports.updateCardPolicyTemplates = exports.updateCardPolicyStats = exports.updateCardPolicyMccCategoriesFailure = exports.updateCardPolicyMccCategories = exports.removeCardPolicyTemplate = exports.fetchCardPolicyVendorOptions = exports.fetchCardPolicyRecommendationFromUpload = exports.fetchCardPolicyMccCategories = exports.extractPolicyDocument = exports.clearPolicyDocumentExtraction = exports.toMessageType = exports.toMessageSender = exports.ALL_SYNTHETIC_AI_CFO_ANSWER_KINDS = exports.toInteractiveFormTypeStrict = exports.toInteractiveFormType = exports.toAiCfoAnswerResponseTypeStrict = exports.toAiCfoAnswerResponseType = exports.toAiCfoAnswerStateTypeStrict = exports.toAiCfoAnswerStateType = exports.toAiCfoChartTypeStrict = exports.toAiCfoChartType = exports.toAiCfoVisualizationTypeStrict = exports.toAiCfoVisualizationType = exports.ALL_INTERACTIVE_FORM_TYPES = 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.getSyntheticAiCfoAnswerByQuestionAnswerId = exports.getSyntheticAiCfoAnswersForChatSession = exports.getAiCfoSelectorView = exports.getAllQuestionsForChatSession = exports.getQuestionAnswerByIdForChatSession = exports.getAllQuestionAnswersForChatSession = exports.clearSyntheticAiCfoAnswers = exports.removeSyntheticAiCfoAnswer = exports.updateSyntheticAiCfoAnswer = exports.appendSyntheticAiCfoAnswer = exports.toAiCfoVisualization = exports.clearAiCfo = exports.clearSession = void 0;
76
+ exports.getLastCreateCardPolicySourceChatSessionId = exports.getCreateCardPolicyTemplateRequestState = exports.getAiCardPolicyFormDraft = exports.updateManualCardPolicyFormDraft = exports.updateCreateCardPolicyTemplateRequestState = exports.updateAiCardPolicyFormDraftFromUploadPlan = exports.updateAiCardPolicyFormDraft = exports.seedManualCardPolicyFormDraft = exports.seedAiCardPolicyFormDraft = exports.createCardPolicyTemplates = exports.clearManualCardPolicyFormDraft = exports.clearCreateCardPolicy = exports.clearAiCardPolicyFormDraft = exports.applyExtractedPolicyToManualCardPolicyDraft = exports.applyExtractedPolicyToAiCardPolicyDraft = exports.toUpdateCardPolicyTemplateRequestBody = exports.toExtractedCardPolicyRules = exports.toCreateCardPolicyTemplatesRequestBody = exports.toCreateCardPolicyTemplateRequestBody = exports.toCardPolicyVendorSearchOption = exports.toCardPolicyTemplateList = exports.toCardPolicyTemplate = exports.toCardPolicyStats = exports.toCardPolicyEditFormDraft = exports.toBulkCreateCardPolicyTemplateError = exports.toCardPolicyTemplateStatus = exports.toCardPolicyTemplateMode = exports.ALL_CARD_POLICY_TEMPLATE_STATUSES = exports.ALL_CARD_POLICY_TEMPLATE_MODES = exports.getUploadedPolicyDocumentFileName = exports.getPolicyRecommendationFromUploadFetchState = exports.getPolicyRecommendationFromUploadError = exports.getPolicyRecommendationFromUploadChatSessionId = exports.getPolicyRecommendationFromUploadAnswerId = exports.getPolicyDocumentExtractionFetchState = exports.getPolicyDocumentExtractionError = exports.getExtractedCardPolicyRules = exports.getCardPolicyVendorSearchString = exports.getCardPolicyVendorSearchOptions = exports.getCardPolicyVendorSearchFetchState = exports.getCardPolicyTemplatesByIds = exports.getCardPolicyTemplateById = exports.getCardPolicySuggestedBlockMerchants = exports.getCardPolicySuggestedBlockCategories = exports.getCardPolicySuggestedAllowMerchants = exports.getCardPolicySuggestedAllowCategories = exports.getCardPolicyStats = exports.getCardPolicyMccCategoriesFetchState = exports.getCardPolicyMccCategoriesError = exports.getCardPolicyMccCategories = void 0;
77
+ exports.getTreasuryTransferMoney = exports.clearTreasuryTransferMoney = exports.updateTreasuryTransferMoneyLocalData = exports.executeTreasuryTransferMoney = exports.getTreasuryDetail = exports.updateTreasuryTransactionListUIState = exports.fetchTreasuryTransactionList = exports.fetchTreasuryOverviewDetail = exports.getUpdateCardPolicyFetchState = exports.getCardPolicyFormDraft = exports.getCardPolicyDetailView = exports.getCardPolicyDetailFetchState = exports.updateCardPolicyFormDraft = exports.updateCardPolicyFetchStatus = exports.updateCardPolicyDetailFetchStatus = exports.updateCardPolicy = exports.fetchCardPolicyDetail = exports.clearCardPolicyDetail = exports.getCardPolicyTemplateIds = exports.getCardPolicyListView = exports.getCardPolicyListFetchState = exports.getArchiveCardPolicyFetchState = exports.updateCardPolicyListFetchStatus = exports.updateArchiveCardPolicyFetchStatus = exports.prependCardPolicyTemplateIds = exports.fetchCardPolicyList = exports.clearCardPolicyList = exports.archiveCardPolicy = exports.toManualCardPolicyTemplateRequestFromDraft = exports.toBulkCardPolicyTemplateRequestsFromDraft = exports.toCardPolicyTemplateRequestFromDraft = exports.applyAiCardPolicyFormDraftUpdate = exports.deriveAiPolicyReviewRowsFromInputs = exports.buildManualCardPolicyFormDraftSeed = exports.buildUploadReviewRows = exports.buildEmptyLimitRows = exports.buildAiCardPolicyFormDraftSeed = exports.toVendorChipFieldValue = exports.toMccCategoryChipFieldValue = exports.buildVendorChipId = exports.buildMccCategoryChipId = exports.VENDOR_CHIP_ID_PREFIX = exports.MCC_CHIP_ID_PREFIX = exports.toMccCategoryLike = exports.CARD_POLICY_LIMIT_ROW_ID_TRANSACTION = exports.CARD_POLICY_LIMIT_ROW_ID_REQUIRE_RECEIPT = exports.getManualCardPolicyFormDraft = exports.getLastCreatedCardPolicyTemplateIds = exports.getLastCreatedCardPolicyTemplateId = exports.getLastCreateCardPolicyTemplateErrors = void 0;
78
+ exports.getCashManagementOverviewBanner = exports.getCashManagementOverview = exports.bufferAmountToRisk = exports.RISK_BUFFER_AMOUNT = exports.getAutoSweepFlow = exports.updateCashManagementSettingsFetchStatus = exports.updateCashManagementSettings = exports.updateAutoSweepSettingsFetchStatus = exports.updateAutoSweepRisk = exports.updateAutoSweepDraft = exports.saveAutoSweepSettings = exports.clearAutoSweepFlow = exports.fetchCashManagementOverviewPage = exports.fetchCashManagementBanner = exports.toKycProvidedDocumentTypeFromAllowed = exports.toKycProvidedDocumentType = exports.DEFAULT_SESSION_CONFIG = exports.SessionManager = exports.getTransactionActivityLogView = exports.fetchTransactionActivityLog = exports.BULK_UPLOAD_BAR_COMPLETE_HOLD_MS = exports.BULK_UPLOAD_AUTOMATCHING_TIMEOUT_MS = exports.getAutoTransferRuleHistory = exports.getAutoTransferRuleById = exports.getAutoTransferRules = exports.clearRuleUpdateLocalData = exports.updateRuleLocalData = exports.fetchAutoTransferReviewDetail = exports.fetchAutoTransferRuleHistory = exports.deleteAutoTransferRule = exports.updateAutoTransferRule = exports.createAutoTransferRule = exports.fetchAutoTransferRules = exports.getTreasuryTaxLetters = exports.fetchTreasuryTaxLetterList = exports.getTreasuryStatements = exports.fetchTreasuryStatementList = void 0;
79
79
  const allowedValue_1 = require("./commonStateTypes/allowedValue");
80
80
  Object.defineProperty(exports, "isAllowedValueWithCode", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithCode; } });
81
81
  Object.defineProperty(exports, "isAllowedValueWithID", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithID; } });
@@ -2332,15 +2332,11 @@ Object.defineProperty(exports, "updateResponseState", { enumerable: true, get: f
2332
2332
  Object.defineProperty(exports, "fetchSuggestedQuestions", { enumerable: true, get: function () { return aiCfoViewReducer_1.fetchSuggestedQuestions; } });
2333
2333
  Object.defineProperty(exports, "fetchSuggestedQuestionsSuccess", { enumerable: true, get: function () { return aiCfoViewReducer_1.fetchSuggestedQuestionsSuccess; } });
2334
2334
  Object.defineProperty(exports, "fetchSuggestedQuestionsFailure", { enumerable: true, get: function () { return aiCfoViewReducer_1.fetchSuggestedQuestionsFailure; } });
2335
- Object.defineProperty(exports, "fetchSkills", { enumerable: true, get: function () { return aiCfoViewReducer_1.fetchSkills; } });
2336
- Object.defineProperty(exports, "fetchSkillsSuccess", { enumerable: true, get: function () { return aiCfoViewReducer_1.fetchSkillsSuccess; } });
2337
- Object.defineProperty(exports, "fetchSkillsFailure", { enumerable: true, get: function () { return aiCfoViewReducer_1.fetchSkillsFailure; } });
2338
2335
  Object.defineProperty(exports, "applyAiCfoSidePanelHostPageTransition", { enumerable: true, get: function () { return aiCfoViewReducer_1.applyAiCfoSidePanelHostPageTransition; } });
2339
2336
  Object.defineProperty(exports, "clearAiCfoSidePanelHostPageContext", { enumerable: true, get: function () { return aiCfoViewReducer_1.clearAiCfoSidePanelHostPageContext; } });
2340
2337
  var aiCfoViewSelector_1 = require("./view/aiCfoView/aiCfoViewSelector");
2341
2338
  Object.defineProperty(exports, "getAiCfoView", { enumerable: true, get: function () { return aiCfoViewSelector_1.getAiCfoView; } });
2342
2339
  Object.defineProperty(exports, "getSuggestedQuestionsForPageContext", { enumerable: true, get: function () { return aiCfoViewSelector_1.getSuggestedQuestionsForPageContext; } });
2343
- Object.defineProperty(exports, "getSkills", { enumerable: true, get: function () { return aiCfoViewSelector_1.getSkills; } });
2344
2340
  var aiCfoReducer_1 = require("./entity/aiCfo/aiCfoReducer");
2345
2341
  Object.defineProperty(exports, "setNewSession", { enumerable: true, get: function () { return aiCfoReducer_1.setNewSession; } });
2346
2342
  Object.defineProperty(exports, "setSessions", { enumerable: true, get: function () { return aiCfoReducer_1.setSessions; } });
@@ -30,18 +30,4 @@ export interface SuggestedQuestionsDataPayload {
30
30
  suggested_questions: string[];
31
31
  }
32
32
  export type FetchSuggestedQuestionsResponse = ZeniAPIResponse<SuggestedQuestionsDataPayload>;
33
- /** One entry in the `/` skill menu — from GET {chat}/1.0/skills (SkillSummary). */
34
- export interface SkillSummaryPayload {
35
- description: string | null;
36
- display_name: string | null;
37
- has_scripts: boolean;
38
- macro_id: string;
39
- name: string;
40
- parameter_hints: Record<string, unknown> | null;
41
- semver: string | null;
42
- }
43
- export interface SkillListDataPayload {
44
- skills: SkillSummaryPayload[];
45
- }
46
- export type FetchSkillsResponse = ZeniAPIResponse<SkillListDataPayload>;
47
33
  export {};
@@ -5,9 +5,9 @@ import { ChatSessionPayload } from '../../entity/aiCfo/aiCfoPayload';
5
5
  import { AiCfoAnswerResponseType } from '../../entity/aiCfo/aiCfoState';
6
6
  import { ZeniAPIStatus } from '../../responsePayload';
7
7
  import { ContextStatus } from './aiCfoViewPayload';
8
- import { AiCfoViewState, Skill } from './aiCfoViewState';
8
+ import { AiCfoViewState } from './aiCfoViewState';
9
9
  export declare const initialAiCfoViewState: AiCfoViewState;
10
- export declare const submitQuestion: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[sessionId: string, questionAnswerId: string, userId: string, questionId: string, createdAt: import("dayjs").Dayjs, question: string, files?: File[] | undefined, macroId?: string | undefined], {
10
+ export declare const submitQuestion: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[sessionId: string, questionAnswerId: string, userId: string, questionId: string, createdAt: import("dayjs").Dayjs, question: string, files?: File[] | undefined], {
11
11
  sessionId: string;
12
12
  questionAnswerId: string;
13
13
  userId: string;
@@ -15,7 +15,6 @@ export declare const submitQuestion: import("@reduxjs/toolkit").ActionCreatorWit
15
15
  createdAt: import("dayjs").Dayjs;
16
16
  question: string;
17
17
  files: File[] | undefined;
18
- macroId: string | undefined;
19
18
  }, "aiCfoView/submitQuestion", never, never>, submitQuestionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "aiCfoView/submitQuestionSuccess">, submitQuestionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
20
19
  error: ZeniAPIStatus;
21
20
  sessionId: ID;
@@ -37,7 +36,7 @@ export declare const submitQuestion: import("@reduxjs/toolkit").ActionCreatorWit
37
36
  sessionId: ID;
38
37
  contextMessage?: string;
39
38
  contextStatus?: ContextStatus;
40
- }, "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, files?: File[] | undefined, pageContext?: string | undefined, macroId?: string | undefined], {
39
+ }, "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, files?: File[] | undefined, pageContext?: string | undefined], {
41
40
  agentId: string;
42
41
  userId: string;
43
42
  questionAnswerId: string;
@@ -46,7 +45,6 @@ export declare const submitQuestion: import("@reduxjs/toolkit").ActionCreatorWit
46
45
  question: string;
47
46
  files: File[] | undefined;
48
47
  pageContext: string | undefined;
49
- macroId: string | undefined;
50
48
  }, "aiCfoView/createSessionAndSubmit", never, never>, initializeNewSessionState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
51
49
  agentId: string;
52
50
  sessionId: ID;
@@ -110,9 +108,7 @@ export declare const submitQuestion: import("@reduxjs/toolkit").ActionCreatorWit
110
108
  }, "aiCfoView/fetchSuggestedQuestionsSuccess">, fetchSuggestedQuestionsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
111
109
  error: ZeniAPIStatus;
112
110
  pageContext: AiCfoSuggestedQuestionsPageContext;
113
- }, "aiCfoView/fetchSuggestedQuestionsFailure">, fetchSkills: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/fetchSkills">, fetchSkillsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
114
- skills: Skill[];
115
- }, "aiCfoView/fetchSkillsSuccess">, fetchSkillsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/fetchSkillsFailure">, applyAiCfoSidePanelHostPageTransition: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
111
+ }, "aiCfoView/fetchSuggestedQuestionsFailure">, applyAiCfoSidePanelHostPageTransition: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
116
112
  newAiCfoSidePanelHostPageKey: string;
117
113
  /** When omitted or null, clears the active session (empty / suggested questions). */
118
114
  nextCurrentChatSessionId?: ID | null;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.clearAiCfoSidePanelHostPageContext = exports.applyAiCfoSidePanelHostPageTransition = exports.fetchSkillsFailure = exports.fetchSkillsSuccess = exports.fetchSkills = exports.fetchSuggestedQuestionsFailure = exports.fetchSuggestedQuestionsSuccess = exports.fetchSuggestedQuestions = 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;
4
+ exports.clearAiCfoSidePanelHostPageContext = exports.applyAiCfoSidePanelHostPageTransition = exports.fetchSuggestedQuestionsFailure = exports.fetchSuggestedQuestionsSuccess = exports.fetchSuggestedQuestions = 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
  function removeSessionIdFromPageKeyMap(draft, sessionId) {
7
7
  const map = draft.uiState.chatSessionIdByPageKey;
@@ -51,7 +51,6 @@ exports.initialAiCfoViewState = {
51
51
  responseStateByChatSessionId: {},
52
52
  stopSubmitStateByChatSessionId: {},
53
53
  suggestedQuestionsByPageContext: {},
54
- skills: { fetchState: 'Not-Started', error: undefined, skills: [] },
55
54
  };
56
55
  const aiCfoView = (0, toolkit_1.createSlice)({
57
56
  name: 'aiCfoView',
@@ -67,7 +66,7 @@ const aiCfoView = (0, toolkit_1.createSlice)({
67
66
  answer: { fetchState: 'In-Progress', error: undefined },
68
67
  };
69
68
  },
70
- prepare(sessionId, questionAnswerId, userId, questionId, createdAt, question, files, macroId) {
69
+ prepare(sessionId, questionAnswerId, userId, questionId, createdAt, question, files) {
71
70
  return {
72
71
  payload: {
73
72
  sessionId,
@@ -77,7 +76,6 @@ const aiCfoView = (0, toolkit_1.createSlice)({
77
76
  createdAt,
78
77
  question,
79
78
  files,
80
- macroId,
81
79
  },
82
80
  };
83
81
  },
@@ -228,7 +226,7 @@ const aiCfoView = (0, toolkit_1.createSlice)({
228
226
  draft.createSessionAndSubmitState.fetchState = 'In-Progress';
229
227
  draft.createSessionAndSubmitState.error = undefined;
230
228
  },
231
- prepare(agentId, userId, questionAnswerId, questionId, createdAt, question, files, pageContext, macroId) {
229
+ prepare(agentId, userId, questionAnswerId, questionId, createdAt, question, files, pageContext) {
232
230
  return {
233
231
  payload: {
234
232
  agentId,
@@ -239,7 +237,6 @@ const aiCfoView = (0, toolkit_1.createSlice)({
239
237
  question,
240
238
  files,
241
239
  pageContext,
242
- macroId,
243
240
  },
244
241
  };
245
242
  },
@@ -452,29 +449,6 @@ const aiCfoView = (0, toolkit_1.createSlice)({
452
449
  error,
453
450
  };
454
451
  },
455
- fetchSkills(draft) {
456
- // Optional-chain: persisted/rehydrated state from before this slice existed
457
- // may have no `skills`, so don't assume draft.skills is set.
458
- draft.skills = {
459
- fetchState: 'In-Progress',
460
- error: undefined,
461
- skills: draft.skills?.skills ?? [],
462
- };
463
- },
464
- fetchSkillsSuccess(draft, action) {
465
- draft.skills = {
466
- fetchState: 'Completed',
467
- error: undefined,
468
- skills: action.payload.skills,
469
- };
470
- },
471
- fetchSkillsFailure(draft, action) {
472
- draft.skills = {
473
- fetchState: 'Error',
474
- error: action.payload,
475
- skills: draft.skills?.skills ?? [],
476
- };
477
- },
478
452
  clearAiCfoView(draft) {
479
453
  Object.assign(draft, exports.initialAiCfoViewState);
480
454
  },
@@ -485,5 +459,5 @@ const aiCfoView = (0, toolkit_1.createSlice)({
485
459
  },
486
460
  },
487
461
  });
488
- _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, exports.fetchSuggestedQuestions = _a.fetchSuggestedQuestions, exports.fetchSuggestedQuestionsSuccess = _a.fetchSuggestedQuestionsSuccess, exports.fetchSuggestedQuestionsFailure = _a.fetchSuggestedQuestionsFailure, exports.fetchSkills = _a.fetchSkills, exports.fetchSkillsSuccess = _a.fetchSkillsSuccess, exports.fetchSkillsFailure = _a.fetchSkillsFailure, exports.applyAiCfoSidePanelHostPageTransition = _a.applyAiCfoSidePanelHostPageTransition, exports.clearAiCfoSidePanelHostPageContext = _a.clearAiCfoSidePanelHostPageContext;
462
+ _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, exports.fetchSuggestedQuestions = _a.fetchSuggestedQuestions, exports.fetchSuggestedQuestionsSuccess = _a.fetchSuggestedQuestionsSuccess, exports.fetchSuggestedQuestionsFailure = _a.fetchSuggestedQuestionsFailure, exports.applyAiCfoSidePanelHostPageTransition = _a.applyAiCfoSidePanelHostPageTransition, exports.clearAiCfoSidePanelHostPageContext = _a.clearAiCfoSidePanelHostPageContext;
489
463
  exports.default = aiCfoView.reducer;
@@ -4,7 +4,7 @@ import { FetchStateAndError } from '../../commonStateTypes/common';
4
4
  import { SelectorView } from '../../commonStateTypes/viewAndReport/viewAndReport';
5
5
  import { AiCfoSelectorView } from '../../entity/aiCfo/aiCfoSelector';
6
6
  import { RootState } from '../../reducer';
7
- import { AiCfoViewUIState, SkillsState, SuggestedQuestionsForPageContext } from './aiCfoViewState';
7
+ import { AiCfoViewUIState, SuggestedQuestionsForPageContext } from './aiCfoViewState';
8
8
  export interface AiCfoViewSelector extends SelectorView, AiCfoSelectorView {
9
9
  createSessionAndSubmitState: FetchStateAndError;
10
10
  createSessionState: FetchStateAndError;
@@ -23,4 +23,3 @@ export interface AiCfoViewSelector extends SelectorView, AiCfoSelectorView {
23
23
  }
24
24
  export declare const getAiCfoView: (state: RootState) => AiCfoViewSelector;
25
25
  export declare function getSuggestedQuestionsForPageContext(state: RootState, pageContext: AiCfoSuggestedQuestionsPageContext): SuggestedQuestionsForPageContext | undefined;
26
- export declare function getSkills(state: RootState): SkillsState;
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getAiCfoView = void 0;
4
4
  exports.getSuggestedQuestionsForPageContext = getSuggestedQuestionsForPageContext;
5
- exports.getSkills = getSkills;
6
5
  const aiCfoReducer_1 = require("../../entity/aiCfo/aiCfoReducer");
7
6
  const aiCfoSelector_1 = require("../../entity/aiCfo/aiCfoSelector");
8
7
  const aiCfoViewReducer_1 = require("./aiCfoViewReducer");
@@ -28,14 +27,3 @@ exports.getAiCfoView = getAiCfoView;
28
27
  function getSuggestedQuestionsForPageContext(state, pageContext) {
29
28
  return state.aiCfoViewState?.suggestedQuestionsByPageContext?.[pageContext];
30
29
  }
31
- // Stable fallback so getSkills returns a referentially-stable object when skills
32
- // state is absent — a fresh literal each call would defeat useSelector identity
33
- // checks and cause needless re-renders.
34
- const EMPTY_SKILLS_STATE = {
35
- fetchState: 'Not-Started',
36
- error: undefined,
37
- skills: [],
38
- };
39
- function getSkills(state) {
40
- return state.aiCfoViewState?.skills ?? EMPTY_SKILLS_STATE;
41
- }
@@ -37,19 +37,6 @@ export interface SuggestedQuestionsForPageContext extends FetchStateAndError {
37
37
  suggestedQuestions: string[];
38
38
  generatedAt?: string;
39
39
  }
40
- /** A chat-visible skill shown in the `/` menu. */
41
- export interface Skill {
42
- description: string | null;
43
- displayName: string | null;
44
- hasScripts: boolean;
45
- macroId: string;
46
- name: string;
47
- parameterHints: Record<string, unknown> | null;
48
- semver: string | null;
49
- }
50
- export interface SkillsState extends FetchStateAndError {
51
- skills: Skill[];
52
- }
53
40
  export interface AiCfoViewState extends FetchStateAndError {
54
41
  allChatSessionIds: ID[];
55
42
  createSessionAndSubmitState: FetchStateAndError;
@@ -63,8 +50,6 @@ export interface AiCfoViewState extends FetchStateAndError {
63
50
  reasoning: FetchStateAndError;
64
51
  thought: FetchStateAndError;
65
52
  }>;
66
- /** Chat-visible skills for the `/` menu. */
67
- skills: SkillsState;
68
53
  stopSubmitStateByChatSessionId: Record<ID, FetchStateAndError>;
69
54
  /** Keyed by `page_context` query value (e.g. balance_sheet). */
70
55
  suggestedQuestionsByPageContext: Partial<Record<AiCfoSuggestedQuestionsPageContext, SuggestedQuestionsForPageContext>>;