@zeniai/client-epic-state 4.15.36 → 4.15.37

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 (178) hide show
  1. package/lib/commonPayloadTypes/recommendationPayload.d.ts +0 -1
  2. package/lib/commonStateTypes/timePeriod.d.ts +1 -1
  3. package/lib/commonStateTypes/timePeriod.js +2 -2
  4. package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.js +1 -1
  5. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
  6. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +0 -1
  7. package/lib/configureStore.js +1 -2
  8. package/lib/entity/account/accountState.d.ts +1 -1
  9. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  10. package/lib/entity/class/classReducer.d.ts +4 -4
  11. package/lib/entity/class/classState.d.ts +1 -1
  12. package/lib/entity/company/companyReducer.js +1 -0
  13. package/lib/entity/customer/customerPayload.d.ts +1 -1
  14. package/lib/entity/customer/customerPayload.js +6 -16
  15. package/lib/entity/forecast/forecastState.d.ts +1 -1
  16. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  17. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  18. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  19. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  20. package/lib/entity/snackbar/snackbarTypes.js +0 -4
  21. package/lib/entity/task/taskState.d.ts +1 -1
  22. package/lib/entity/tenant/clearAllEpic.d.ts +2 -4
  23. package/lib/entity/tenant/clearAllEpic.js +0 -4
  24. package/lib/entity/tenant/tenantReducer.js +1 -0
  25. package/lib/entity/transaction/payloadTypes/customerTransactionPayload.d.ts +1 -1
  26. package/lib/entity/transaction/payloadTypes/customerTransactionPayload.js +2 -1
  27. package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +0 -2
  28. package/lib/entity/transaction/payloadTypes/transactionPayload.js +6 -9
  29. package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.d.ts +1 -9
  30. package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.js +2 -23
  31. package/lib/entity/transaction/stateTypes/transaction.d.ts +1 -3
  32. package/lib/entity/transaction/stateTypes/transactionType.d.ts +1 -1
  33. package/lib/entity/transaction/stateTypes/transactionType.js +1 -1
  34. package/lib/entity/transaction/stateTypes/vendorTransaction.d.ts +0 -5
  35. package/lib/entity/transaction/stateTypes/vendorTransaction.js +1 -5
  36. package/lib/entity/transaction/toSupportedTransaction.js +1 -6
  37. package/lib/entity/transaction/transactionReducer.d.ts +0 -17
  38. package/lib/entity/transaction/transactionReducer.js +2 -47
  39. package/lib/entity/transaction/transactionSelector.d.ts +0 -2
  40. package/lib/entity/transaction/transactionSelector.js +0 -5
  41. package/lib/entity/transaction/transactionState.d.ts +4 -6
  42. package/lib/entity/vendorExpense/vendorExpenseReducer.js +1 -0
  43. package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
  44. package/lib/epic.d.ts +1 -6
  45. package/lib/epic.js +1 -6
  46. package/lib/index.d.ts +12 -20
  47. package/lib/index.js +27 -56
  48. package/lib/init.d.ts +1 -2
  49. package/lib/init.js +2 -9
  50. package/lib/reducer.d.ts +1 -7
  51. package/lib/reducer.js +0 -6
  52. package/lib/view/accountList/accountListReducer.js +3 -1
  53. package/lib/view/accountMappingView/accountMappingReducer.js +1 -0
  54. package/lib/view/apAgingView/apAgingDetail/apAgingDetailReducer.js +2 -1
  55. package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
  56. package/lib/view/balanceSheet/balanceSheetReducer.js +6 -1
  57. package/lib/view/bankAccountView/bankAccountViewReducer.js +1 -0
  58. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  59. package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
  60. package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
  61. package/lib/view/cashFlow/cashFlowReducer.js +4 -1
  62. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  63. package/lib/view/cashPosition/cashPositionReducer.js +1 -0
  64. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  65. package/lib/view/commonVendorView/vendorView/epics/fetchAndUpdateVendorRecommendationsEpic.js +3 -1
  66. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
  67. package/lib/view/companyView/companyViewReducer.js +10 -1
  68. package/lib/view/dashboard/dashboardEpic.js +2 -0
  69. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  70. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +1 -2
  71. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +10 -24
  72. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +1 -2
  73. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +0 -14
  74. package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +5 -32
  75. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +2 -2
  76. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +5 -1
  77. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +2 -17
  78. package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +2 -2
  79. package/lib/view/expenseAutomationView/expenseAutomationViewState.js +1 -1
  80. package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.js +35 -111
  81. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
  82. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +10 -84
  83. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +1 -12
  84. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +7 -66
  85. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +0 -2
  86. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +1 -1
  87. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +0 -10
  88. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  89. package/lib/view/financeStatement/financeStatementReducer.js +4 -1
  90. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  91. package/lib/view/netBurnOrIncome/netBurnOrIncomeReducer.js +10 -3
  92. package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewReducer.js +6 -1
  93. package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardReducer.js +1 -0
  94. package/lib/view/onboardingView/cockpitView/onboardingCockpitViewReducer.js +3 -0
  95. package/lib/view/opEx/opExForTimeFrameEpic.js +1 -1
  96. package/lib/view/opEx/opExReducer.js +14 -4
  97. package/lib/view/opExByVendor/opExByVendorReducer.js +3 -1
  98. package/lib/view/opExClassesView/opExClassesViewReducer.js +6 -1
  99. package/lib/view/people/fetchPeopleEpic.js +3 -1
  100. package/lib/view/people/invitePeopleEpic.js +3 -1
  101. package/lib/view/people/inviteZeniPeopleEpic.js +3 -1
  102. package/lib/view/people/peopleReducer.js +1 -0
  103. package/lib/view/people/peopleSaveUpdatesEpic.js +1 -1
  104. package/lib/view/profitAndLoss/profitAndLossReducer.js +6 -1
  105. package/lib/view/profitAndLossClassesView/profitAndLossClassesViewReducer.js +6 -1
  106. package/lib/view/recommendation/recommendationReducer.js +4 -1
  107. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  108. package/lib/view/reportUIOptions/updateReportUIOptionThisPeriodEpic.js +3 -1
  109. package/lib/view/revenue/revenueReducer.js +10 -3
  110. package/lib/view/revenueClassesView/revenueClassesViewReducer.js +6 -1
  111. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  112. package/lib/view/settingsView/settingsViewReducer.js +1 -0
  113. package/lib/view/spendManagement/billPay/billList/billListReducer.js +1 -0
  114. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.js +6 -0
  115. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/validateBillsBulkActionEpic.ts.js +3 -4
  116. package/lib/view/spendManagement/billPay/editBillView/epics/fetchBillAndInitializeLocalStoreEpic.js +3 -1
  117. package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js +3 -11
  118. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +1 -2
  119. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +1 -3
  120. package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +1 -1
  121. package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRecommendationsAndUpdateMerchantRecommendationsEpic.js +6 -2
  122. package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.js +3 -1
  123. package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.js +1 -0
  124. package/lib/view/subscriptionView/subscriptionViewReducer.js +1 -0
  125. package/lib/view/subscriptionView/types/subscriptionTypes.js +1 -0
  126. package/lib/view/taskManager/taskListView/epics/dragNDropTasksEpic.js +3 -1
  127. package/lib/view/tasksCard/fetchTasksCardEpic.js +2 -1
  128. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  129. package/lib/view/tasksCard/tasksCardSelector.js +1 -1
  130. package/lib/view/topEx/topExSelector.d.ts +1 -1
  131. package/lib/view/transactionDetail/epics/saveTransactionHelper.js +15 -45
  132. package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +4 -22
  133. package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +13 -69
  134. package/lib/view/transactionDetail/transactionDetailReducer.d.ts +2 -11
  135. package/lib/view/transactionDetail/transactionDetailReducer.js +21 -51
  136. package/lib/view/transactionDetail/transactionDetailState.d.ts +0 -1
  137. package/lib/view/transactionDetail/transactionDetailTypes.d.ts +0 -8
  138. package/lib/view/transactionList/transactionListByEntitySelector.js +2 -0
  139. package/lib/view/transactionList/transactionListReducer.js +6 -4
  140. package/lib/view/trendWithTransactions/trendWithTransactionsReducer.js +1 -0
  141. package/lib/view/userFinancialAccount/userFinancialAccountReducer.js +3 -1
  142. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +1 -1
  143. package/lib/zeniAPI.d.ts +0 -1
  144. package/package.json +3 -8
  145. package/lib/entity/accountRecon/accountReconPayload.d.ts +0 -70
  146. package/lib/entity/accountRecon/accountReconPayload.js +0 -125
  147. package/lib/entity/accountRecon/accountReconReducer.d.ts +0 -16
  148. package/lib/entity/accountRecon/accountReconReducer.js +0 -71
  149. package/lib/entity/accountRecon/accountReconSelector.d.ts +0 -28
  150. package/lib/entity/accountRecon/accountReconSelector.js +0 -44
  151. package/lib/entity/accountRecon/accountReconState.d.ts +0 -70
  152. package/lib/entity/accountRecon/accountReconState.js +0 -28
  153. package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.d.ts +0 -35
  154. package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.js +0 -53
  155. package/lib/entity/transaction/stateTypes/reconciliationTransaction.d.ts +0 -32
  156. package/lib/entity/transaction/stateTypes/reconciliationTransaction.js +0 -10
  157. package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.d.ts +0 -15
  158. package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +0 -118
  159. package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.d.ts +0 -10
  160. package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.js +0 -49
  161. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.d.ts +0 -14
  162. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.js +0 -169
  163. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.d.ts +0 -9
  164. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +0 -154
  165. package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.d.ts +0 -6
  166. package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.js +0 -110
  167. package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.d.ts +0 -7
  168. package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.js +0 -18
  169. package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +0 -28
  170. package/lib/view/expenseAutomationView/payload/reconciliationPayload.js +0 -51
  171. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +0 -66
  172. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +0 -384
  173. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +0 -51
  174. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +0 -7
  175. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.d.ts +0 -5
  176. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +0 -250
  177. package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +0 -103
  178. package/lib/view/expenseAutomationView/types/reconciliationViewState.js +0 -38
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  var _a;
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.updateSelectedTransactionId = exports.setEntityRecommendationForLineIdsForCategorization = exports.clearExpenseAutomationTransactionsView = exports.clearExpenseAutomationTransactionsViewPerTabView = exports.updateSelectedCheckboxTransactionIds = exports.fetchTransactionCategorizationView = exports.fetchTransactionCategorizationSuccess = exports.updateTotalCountForTransactionCategorization = exports.setAllItemsToCategoryClassInLocalDataForCategorization = exports.updateSelectedCustomerForTransaction = exports.updateSelectedVendorForTransaction = exports.updateStatusForTransactionNotMiscategorizedUpdate = exports.markTransactionAsNotMiscategorized = exports.updateTransactionCategorizationSaveStatus = exports.updateCurrentSelectedTransactionCategorizationTab = exports.updateTransactionCategorization = exports.saveTransactionCategorization = exports.fetchTransactionCategorizationFailure = exports.saveTransactionCategorizationLocalData = exports.initializeTransactionCategorizationViewLocalData = exports.updateTransactionCategorizationUIState = exports.fetchTransactionCategorization = exports.initialState = exports.initialTransactionTabViewState = void 0;
7
+ exports.updateSelectedTransactionId = exports.setEntityRecommendationForLineIdsForCategorization = exports.clearExpenseAutomationTransactionsView = exports.clearExpenseAutomationTransactionsViewPerTabView = exports.updateSelectedCheckboxTransactionIds = exports.fetchTransactionCategorizationView = exports.fetchTransactionCategorizationSuccess = exports.updateTotalCountForTransactionCategorization = exports.setAllItemsToCategoryClassInLocalDataForCategorization = exports.updateSelectedVendorForTransaction = exports.updateStatusForTransactionNotMiscategorizedUpdate = exports.markTransactionAsNotMiscategorized = exports.updateTransactionCategorizationSaveStatus = exports.updateCurrentSelectedTransactionCategorizationTab = exports.updateTransactionCategorization = exports.saveTransactionCategorization = exports.fetchTransactionCategorizationFailure = exports.saveTransactionCategorizationLocalData = exports.initializeTransactionCategorizationViewLocalData = exports.updateTransactionCategorizationUIState = exports.fetchTransactionCategorization = exports.initialState = exports.initialTransactionTabViewState = void 0;
8
8
  const toolkit_1 = require("@reduxjs/toolkit");
9
9
  const get_1 = __importDefault(require("lodash/get"));
10
10
  const uniq_1 = __importDefault(require("lodash/uniq"));
@@ -261,7 +261,7 @@ const expenseAutomationTransactionsView = (0, toolkit_1.createSlice)({
261
261
  },
262
262
  setAllItemsToCategoryClassInLocalDataForCategorization: {
263
263
  reducer(draft, action) {
264
- const { vendorId, customerId, selectedAccount, selectedClassBase, transactions, transactionId, lineId, selectedTab, uncategorizedAccounts, } = action.payload;
264
+ const { vendorId, selectedAccount, selectedClassBase, transactions, transactionId, lineId, selectedTab, uncategorizedAccounts, } = action.payload;
265
265
  const transactionLocalData = (0, get_1.default)(draft.transactionCategorizationView[selectedTab]
266
266
  .transactionReviewLocalDataById, transactionId, undefined);
267
267
  const existingAccount = transactionLocalData === null || transactionLocalData === void 0 ? void 0 : transactionLocalData.transactionReviewLocalData.lineItemById[lineId].account;
@@ -285,7 +285,7 @@ const expenseAutomationTransactionsView = (0, toolkit_1.createSlice)({
285
285
  ];
286
286
  }
287
287
  }
288
- if (vendorId != null || customerId != null) {
288
+ if (vendorId != null) {
289
289
  transactions.forEach((transaction) => {
290
290
  const transactionLocalData = (0, get_1.default)(draft.transactionCategorizationView[selectedTab]
291
291
  .transactionReviewLocalDataById, transaction.id, undefined);
@@ -294,13 +294,13 @@ const expenseAutomationTransactionsView = (0, toolkit_1.createSlice)({
294
294
  transactionId: transaction.id,
295
295
  transactionReviewLocalData: (0, transactionCategorizationLocalDataHelper_1.toSetAllLineItemsToCategoryClass)(draft.transactionCategorizationView[selectedTab], transaction, transactionId, lineId, transactionLocalData.transactionReviewLocalData, (existingAccount === null || existingAccount === void 0 ? void 0 : existingAccount.accountId) !== (selectedAccount === null || selectedAccount === void 0 ? void 0 : selectedAccount.accountId)
296
296
  ? 'category'
297
- : 'class', uncategorizedAccounts, vendorId, customerId, selectedAccount, selectedClassBase),
297
+ : 'class', uncategorizedAccounts, vendorId, selectedAccount, selectedClassBase),
298
298
  };
299
299
  }
300
300
  });
301
301
  }
302
302
  },
303
- prepare(selectedTab, transactionId, lineId, transactions, uncategorizedAccounts, vendorId, customerId, selectedAccount, selectedClassBase, lineEntity, recommendations) {
303
+ prepare(selectedTab, transactionId, lineId, transactions, uncategorizedAccounts, vendorId, selectedAccount, selectedClassBase, lineEntity, recommendations) {
304
304
  return {
305
305
  payload: {
306
306
  selectedTab,
@@ -308,7 +308,6 @@ const expenseAutomationTransactionsView = (0, toolkit_1.createSlice)({
308
308
  lineId,
309
309
  transactions,
310
310
  vendorId,
311
- customerId,
312
311
  lineEntity,
313
312
  selectedAccount,
314
313
  selectedClassBase,
@@ -367,58 +366,6 @@ const expenseAutomationTransactionsView = (0, toolkit_1.createSlice)({
367
366
  draft.transactionCategorizationView[selectedTab].error =
368
367
  action.payload.status;
369
368
  },
370
- updateSelectedCustomerForTransaction(draft, action) {
371
- const { transactionId, lineId, updatedCustomer, selectedTransaction, selectedTab, uncategorizedAccounts, } = action.payload;
372
- const transactionLocalData = (0, get_1.default)(draft.transactionCategorizationView[selectedTab]
373
- .transactionReviewLocalDataById, transactionId, undefined);
374
- if (transactionLocalData != null) {
375
- let newTransactionLocalData = Object.assign({}, transactionLocalData.transactionReviewLocalData);
376
- if (!(0, vendorTransaction_1.isVendorTransaction)(selectedTransaction) &&
377
- updatedCustomer != null) {
378
- newTransactionLocalData = Object.assign(Object.assign({}, newTransactionLocalData), { lineItemById: Object.assign(Object.assign({}, transactionLocalData.transactionReviewLocalData.lineItemById), { [lineId]: Object.assign(Object.assign({}, transactionLocalData.transactionReviewLocalData.lineItemById[lineId]), { customer: updatedCustomer, selectedEntityLine: action.payload.selectedEntity != null
379
- ? action.payload.selectedEntity
380
- : undefined }) }) });
381
- }
382
- else {
383
- if (action.payload.selectedEntity != null) {
384
- newTransactionLocalData.selectedEntity =
385
- action.payload.selectedEntity;
386
- }
387
- newTransactionLocalData.customerUpdates =
388
- updatedCustomer != null && updatedCustomer.id != null
389
- ? {
390
- id: updatedCustomer.id,
391
- name: updatedCustomer.name,
392
- qboId: updatedCustomer.id,
393
- }
394
- : undefined;
395
- newTransactionLocalData.customer =
396
- updatedCustomer != null && updatedCustomer.id != null
397
- ? {
398
- id: updatedCustomer.id,
399
- name: updatedCustomer.name,
400
- logo: updatedCustomer.logo,
401
- }
402
- : undefined;
403
- }
404
- draft.transactionCategorizationView[selectedTab].transactionReviewLocalDataById[transactionId] = {
405
- transactionReviewLocalData: newTransactionLocalData,
406
- transactionId,
407
- };
408
- const selectedCheckBoxTransactionIds = draft.transactionCategorizationView[selectedTab]
409
- .selectedCheckBoxTransactionIds;
410
- if (newTransactionLocalData.customer != null &&
411
- newTransactionLocalData.customer.id != null &&
412
- (0, transactionCategorizationLocalDataHelper_1.checkIfAllLineItemsAreCategoryClassFilled)(selectedTransaction, newTransactionLocalData, uncategorizedAccounts) === true && // check if all line items are filled
413
- selectedCheckBoxTransactionIds.length < transactionCategorizationLocalDataHelper_1.MAX_SELECTION_LIMIT &&
414
- selectedCheckBoxTransactionIds.includes(transactionId) === false) {
415
- draft.transactionCategorizationView[selectedTab].selectedCheckBoxTransactionIds = [
416
- ...selectedCheckBoxTransactionIds,
417
- transactionId,
418
- ];
419
- }
420
- }
421
- },
422
369
  updateSelectedVendorForTransaction(draft, action) {
423
370
  const { transactionId, lineId, updatedVendor, selectedTransaction, selectedTab, uncategorizedAccounts, } = action.payload;
424
371
  const transactionLocalData = (0, get_1.default)(draft.transactionCategorizationView[selectedTab]
@@ -427,15 +374,9 @@ const expenseAutomationTransactionsView = (0, toolkit_1.createSlice)({
427
374
  let newTransactionLocalData = Object.assign({}, transactionLocalData.transactionReviewLocalData);
428
375
  if (!(0, vendorTransaction_1.isVendorTransaction)(selectedTransaction) &&
429
376
  updatedVendor != null) {
430
- newTransactionLocalData = Object.assign(Object.assign({}, newTransactionLocalData), { lineItemById: Object.assign(Object.assign({}, transactionLocalData.transactionReviewLocalData.lineItemById), { [lineId]: Object.assign(Object.assign({}, transactionLocalData.transactionReviewLocalData.lineItemById[lineId]), { vendor: updatedVendor, selectedEntityLine: action.payload.selectedEntity != null
431
- ? action.payload.selectedEntity
432
- : undefined }) }) });
377
+ newTransactionLocalData = Object.assign(Object.assign({}, newTransactionLocalData), { lineItemById: Object.assign(Object.assign({}, transactionLocalData.transactionReviewLocalData.lineItemById), { [lineId]: Object.assign(Object.assign({}, transactionLocalData.transactionReviewLocalData.lineItemById[lineId]), { vendor: updatedVendor }) }) });
433
378
  }
434
379
  else {
435
- if (action.payload.selectedEntity != null) {
436
- newTransactionLocalData.selectedEntity =
437
- action.payload.selectedEntity;
438
- }
439
380
  newTransactionLocalData.vendorUpdates =
440
381
  updatedVendor != null && updatedVendor.id != null
441
382
  ? {
@@ -561,5 +502,5 @@ const expenseAutomationTransactionsView = (0, toolkit_1.createSlice)({
561
502
  },
562
503
  },
563
504
  });
564
- _a = expenseAutomationTransactionsView.actions, exports.fetchTransactionCategorization = _a.fetchTransactionCategorization, exports.updateTransactionCategorizationUIState = _a.updateTransactionCategorizationUIState, exports.initializeTransactionCategorizationViewLocalData = _a.initializeTransactionCategorizationViewLocalData, exports.saveTransactionCategorizationLocalData = _a.saveTransactionCategorizationLocalData, exports.fetchTransactionCategorizationFailure = _a.fetchTransactionCategorizationFailure, exports.saveTransactionCategorization = _a.saveTransactionCategorization, exports.updateTransactionCategorization = _a.updateTransactionCategorization, exports.updateCurrentSelectedTransactionCategorizationTab = _a.updateCurrentSelectedTransactionCategorizationTab, exports.updateTransactionCategorizationSaveStatus = _a.updateTransactionCategorizationSaveStatus, exports.markTransactionAsNotMiscategorized = _a.markTransactionAsNotMiscategorized, exports.updateStatusForTransactionNotMiscategorizedUpdate = _a.updateStatusForTransactionNotMiscategorizedUpdate, exports.updateSelectedVendorForTransaction = _a.updateSelectedVendorForTransaction, exports.updateSelectedCustomerForTransaction = _a.updateSelectedCustomerForTransaction, exports.setAllItemsToCategoryClassInLocalDataForCategorization = _a.setAllItemsToCategoryClassInLocalDataForCategorization, exports.updateTotalCountForTransactionCategorization = _a.updateTotalCountForTransactionCategorization, exports.fetchTransactionCategorizationSuccess = _a.fetchTransactionCategorizationSuccess, exports.fetchTransactionCategorizationView = _a.fetchTransactionCategorizationView, exports.updateSelectedCheckboxTransactionIds = _a.updateSelectedCheckboxTransactionIds, exports.clearExpenseAutomationTransactionsViewPerTabView = _a.clearExpenseAutomationTransactionsViewPerTabView, exports.clearExpenseAutomationTransactionsView = _a.clearExpenseAutomationTransactionsView, exports.setEntityRecommendationForLineIdsForCategorization = _a.setEntityRecommendationForLineIdsForCategorization, exports.updateSelectedTransactionId = _a.updateSelectedTransactionId;
505
+ _a = expenseAutomationTransactionsView.actions, exports.fetchTransactionCategorization = _a.fetchTransactionCategorization, exports.updateTransactionCategorizationUIState = _a.updateTransactionCategorizationUIState, exports.initializeTransactionCategorizationViewLocalData = _a.initializeTransactionCategorizationViewLocalData, exports.saveTransactionCategorizationLocalData = _a.saveTransactionCategorizationLocalData, exports.fetchTransactionCategorizationFailure = _a.fetchTransactionCategorizationFailure, exports.saveTransactionCategorization = _a.saveTransactionCategorization, exports.updateTransactionCategorization = _a.updateTransactionCategorization, exports.updateCurrentSelectedTransactionCategorizationTab = _a.updateCurrentSelectedTransactionCategorizationTab, exports.updateTransactionCategorizationSaveStatus = _a.updateTransactionCategorizationSaveStatus, exports.markTransactionAsNotMiscategorized = _a.markTransactionAsNotMiscategorized, exports.updateStatusForTransactionNotMiscategorizedUpdate = _a.updateStatusForTransactionNotMiscategorizedUpdate, exports.updateSelectedVendorForTransaction = _a.updateSelectedVendorForTransaction, exports.setAllItemsToCategoryClassInLocalDataForCategorization = _a.setAllItemsToCategoryClassInLocalDataForCategorization, exports.updateTotalCountForTransactionCategorization = _a.updateTotalCountForTransactionCategorization, exports.fetchTransactionCategorizationSuccess = _a.fetchTransactionCategorizationSuccess, exports.fetchTransactionCategorizationView = _a.fetchTransactionCategorizationView, exports.updateSelectedCheckboxTransactionIds = _a.updateSelectedCheckboxTransactionIds, exports.clearExpenseAutomationTransactionsViewPerTabView = _a.clearExpenseAutomationTransactionsViewPerTabView, exports.clearExpenseAutomationTransactionsView = _a.clearExpenseAutomationTransactionsView, exports.setEntityRecommendationForLineIdsForCategorization = _a.setEntityRecommendationForLineIdsForCategorization, exports.updateSelectedTransactionId = _a.updateSelectedTransactionId;
565
506
  exports.default = expenseAutomationTransactionsView.reducer;
@@ -9,7 +9,6 @@ import { TransactionsTab } from '../types/transactionsViewState';
9
9
  import { ExpenseAutomationFluxAnalysisViewSelector } from './fluxAnalysisViewSelectorTypes';
10
10
  import { ExpenseAutomationJESchedulesViewSelector } from './jeSchedulesSelectorTypes';
11
11
  import { ExpenseAutomationMissingReceiptsViewSelector } from './missingReceiptsSelectorTypes';
12
- import { ExpenseAutomationReconciliationViewSelector } from './reconciliationViewSelectorTypes';
13
12
  import { ExpenseAutomationTransactionViewSelector } from './transactionsViewSelectorTypes';
14
13
  export interface ExpenseAutomationStepDetails {
15
14
  step: ExpenseAutomationViewType;
@@ -30,7 +29,6 @@ export interface ExpenseAutomationViewSelector extends SelectorView {
30
29
  jeSchedules: ExpenseAutomationJESchedulesViewSelector;
31
30
  missingReceipts: ExpenseAutomationMissingReceiptsViewSelector;
32
31
  fluxAnalysis: ExpenseAutomationFluxAnalysisViewSelector;
33
- reconciliation: ExpenseAutomationReconciliationViewSelector;
34
32
  monthEndInsights?: CompanyMonthEndReportSelectorView;
35
33
  saveStatus: FetchStateAndError;
36
34
  updateStatus: FetchStateAndError;
@@ -19,7 +19,7 @@ const getAllSteps = (monthEndCloseChecksState, monthYearId, tenantId, auditSumma
19
19
  isPrevDisabled: false,
20
20
  isNextDisabled: false,
21
21
  };
22
- case 'reconciliation':
22
+ case 'account_recon':
23
23
  case 'je_schedules':
24
24
  case 'missing_receipts':
25
25
  case 'flux_analysis':
@@ -55,30 +55,21 @@ export interface TransactionCategorizationLineItemData extends TransactionLineBa
55
55
  lineEntity?: Entity;
56
56
  isCategoryMiscategorized: boolean;
57
57
  isClassMiscategorized: boolean;
58
- selectedEntityLine?: Entity;
59
58
  }
60
59
  export interface TransactionReviewLocalData {
61
60
  lineItemById: Record<ID, TransactionCategorizationLineItemData>;
62
61
  sortedLineItems: ID[];
63
62
  vendor?: VendorBase;
64
- customer?: CustomerBase;
65
63
  memo?: string;
66
64
  vendorDetails?: {
67
65
  id: ID;
68
66
  qboId: string;
69
67
  name: string;
70
68
  };
71
- customerDetails?: {
72
- id: ID;
73
- qboId: string;
74
- name: string;
75
- };
76
69
  transactionDate?: ZeniDate;
77
70
  transactionType?: TransactionType;
78
71
  transactionTypeName?: string;
79
72
  vendorUpdates?: TransactionVendorUpdates;
80
- customerUpdates?: TransactionVendorUpdates;
81
- selectedEntity?: Entity;
82
73
  }
83
74
  export interface SupportedTransactionCategorization {
84
75
  transactionReviewLocalData: TransactionReviewLocalData;
@@ -112,7 +103,6 @@ export interface TransactionUpdates {
112
103
  memo?: string;
113
104
  updatesByLineId: Record<ID, TransactionLineUpdates>;
114
105
  vendorId?: ID;
115
- customerId?: ID;
116
106
  }
117
107
  export interface EntityRelatedRecommendationUpdates {
118
108
  entityId: ID;
@@ -17,7 +17,7 @@ export declare const fetchFinanceStatement: import("@reduxjs/toolkit").ActionCre
17
17
  thisPeriod: TimeframeTick;
18
18
  coaBalances: COABalance[];
19
19
  maxNumOfPeriodsToHighlight: number;
20
- }, "financeStatement/updateFinanceStatementThisPeriod">, updateCOABalancesRange: import("@reduxjs/toolkit").ActionCreatorWithPayload<COABalancesRange, "financeStatement/updateCOABalancesRange">, updateSelectedReportId: import("@reduxjs/toolkit").ActionCreatorWithPayload<"billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense" | "account_reconciliation", "financeStatement/updateSelectedReportId">, updateFinanceStatementAdditionalBalancesSelection: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
20
+ }, "financeStatement/updateFinanceStatementThisPeriod">, updateCOABalancesRange: import("@reduxjs/toolkit").ActionCreatorWithPayload<COABalancesRange, "financeStatement/updateCOABalancesRange">, updateSelectedReportId: import("@reduxjs/toolkit").ActionCreatorWithPayload<"billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense", "financeStatement/updateSelectedReportId">, updateFinanceStatementAdditionalBalancesSelection: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
21
21
  firstMonthOfFY: Month;
22
22
  isCompareModeOn: boolean;
23
23
  additionalBalances: COABalanceType[];
@@ -29,7 +29,10 @@ const financeStatement = (0, toolkit_1.createSlice)({
29
29
  reducer(draft) {
30
30
  draft.lastFetchRequestTime = (0, zeniDayJS_1.dateNow)();
31
31
  },
32
- prepare(userId, fetchSelectedTab = true, fetchFullReport = false, cacheOverride = false) {
32
+ prepare(userId, fetchSelectedTab = true, // eslint-disable-line @typescript-eslint/no-inferrable-types,
33
+ fetchFullReport = false, // eslint-disable-line @typescript-eslint/no-inferrable-types,
34
+ cacheOverride = false // eslint-disable-line @typescript-eslint/no-inferrable-types
35
+ ) {
33
36
  return {
34
37
  payload: { userId, fetchSelectedTab, fetchFullReport, cacheOverride },
35
38
  };
@@ -3,9 +3,9 @@ import { ZeniAPIStatus } from '../../responsePayload';
3
3
  import { VendorReviewViewAllRecommendationsPayload } from '../vendorReviewView/common/payload/commonTypes';
4
4
  import { GlobalMerchantViewState, GlobalRecommendationFetchSource, NewGlobalMerchantCurrentSelection } from './globalMerchantViewState';
5
5
  export declare const initialState: GlobalMerchantViewState;
6
- export declare const createGlobalMerchant: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[merchantId?: string | undefined, context?: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense" | "account_reconciliation" | undefined], {
6
+ export declare const createGlobalMerchant: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[merchantId?: string | undefined, context?: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense" | undefined], {
7
7
  merchantId: string | undefined;
8
- context: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense" | "account_reconciliation" | undefined;
8
+ context: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense" | undefined;
9
9
  }, "globalMerchantView/createGlobalMerchant", never, never>, createGlobalMerchantSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
10
10
  merchantId: ID;
11
11
  }, "globalMerchantView/createGlobalMerchantSuccess">, createGlobalMerchantFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
@@ -72,7 +72,8 @@ const netBurnOrIncome = (0, toolkit_1.createSlice)({
72
72
  reducer(draft) {
73
73
  draft.lastFetchRequestTime = (0, zeniDayJS_1.dateNow)();
74
74
  },
75
- prepare(cacheOverride = false, forecastId) {
75
+ prepare(cacheOverride = false, // eslint-disable-line @typescript-eslint/no-inferrable-types
76
+ forecastId) {
76
77
  return {
77
78
  payload: {
78
79
  cacheOverride,
@@ -85,7 +86,8 @@ const netBurnOrIncome = (0, toolkit_1.createSlice)({
85
86
  reducer(draft) {
86
87
  draft.lastFetchRequestTime = (0, zeniDayJS_1.dateNow)();
87
88
  },
88
- prepare(cacheOverride = false, forecastId) {
89
+ prepare(cacheOverride = false, // eslint-disable-line @typescript-eslint/no-inferrable-types
90
+ forecastId) {
89
91
  return {
90
92
  payload: {
91
93
  cacheOverride,
@@ -95,6 +97,7 @@ const netBurnOrIncome = (0, toolkit_1.createSlice)({
95
97
  },
96
98
  },
97
99
  fetchNetBurnOrIncome: {
100
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
98
101
  prepare(fetchFullReport = false, forecastId, cacheOverride = false) {
99
102
  return { payload: { fetchFullReport, forecastId, cacheOverride } };
100
103
  },
@@ -107,7 +110,11 @@ const netBurnOrIncome = (0, toolkit_1.createSlice)({
107
110
  },
108
111
  },
109
112
  fetchNetBurnOrIncomeForTimeframe: {
110
- prepare(timeframe, forecastId, fetchFullReport = true, cacheOverride = false) {
113
+ prepare(timeframe, forecastId,
114
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
115
+ fetchFullReport = true,
116
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
117
+ cacheOverride = false) {
111
118
  return {
112
119
  payload: { forecastId, timeframe, fetchFullReport, cacheOverride },
113
120
  };
@@ -37,6 +37,7 @@ const netBurnOrIncomeClassesView = (0, toolkit_1.createSlice)({
37
37
  initialState: exports.initialState,
38
38
  reducers: {
39
39
  fetchNetBurnOrIncomeClassesView: {
40
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
40
41
  prepare(cacheOverride = false) {
41
42
  return { payload: { cacheOverride } };
42
43
  },
@@ -49,7 +50,11 @@ const netBurnOrIncomeClassesView = (0, toolkit_1.createSlice)({
49
50
  },
50
51
  },
51
52
  fetchNetBurnOrIncomeForTimeframeClassesView: {
52
- prepare(timeframe, fetchFullReport = true, cacheOverride = false) {
53
+ prepare(timeframe,
54
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
55
+ fetchFullReport = true,
56
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
57
+ cacheOverride = false) {
53
58
  return { payload: { timeframe, fetchFullReport, cacheOverride } };
54
59
  },
55
60
  reducer(draft, action) {
@@ -47,6 +47,7 @@ const netBurnOrIncomeStoryCardState = (0, toolkit_1.createSlice)({
47
47
  initialState: exports.initialState,
48
48
  reducers: {
49
49
  fetchNetBurnOrIncomeStoryCard: {
50
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
50
51
  prepare(fetchFullReport = false) {
51
52
  return { payload: { fetchFullReport } };
52
53
  },
@@ -167,6 +167,7 @@ const onboardingCockpitView = (0, toolkit_1.createSlice)({
167
167
  }
168
168
  },
169
169
  saveOnboardingCustomerViewUpdates: {
170
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
170
171
  reducer(draft, action) {
171
172
  if (draft.onboardingCustomerLocalData != null) {
172
173
  const { sendInvite } = action.payload;
@@ -182,6 +183,7 @@ const onboardingCockpitView = (0, toolkit_1.createSlice)({
182
183
  draft.emailGroupFetchState.error = undefined;
183
184
  }
184
185
  },
186
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
185
187
  prepare(sendInvite, skipSnackbarOnSuccess = false) {
186
188
  return {
187
189
  payload: { sendInvite, skipSnackbarOnSuccess },
@@ -272,6 +274,7 @@ const onboardingCockpitView = (0, toolkit_1.createSlice)({
272
274
  draft.customerCreationStatus = exports.initialState.customerCreationStatus;
273
275
  },
274
276
  fetchCompanyOnboardingView: {
277
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
275
278
  prepare(fetchFullResponse = false) {
276
279
  return { payload: { fetchFullResponse } };
277
280
  },
@@ -32,7 +32,7 @@ const fetchOpExReportForTimeframeEpic = (actions$, state, zeniAPI) => actions$.p
32
32
  actions.push((0, opExReducer_1.updateOpExForTimeframe)({
33
33
  timeframe: action.payload.timeframe,
34
34
  forecastId: action.payload.forecastId,
35
- report: response.data,
35
+ report: response.data, // eslint-disable-line @typescript-eslint/no-non-null-assertion
36
36
  }));
37
37
  if (action.payload.forecastId == null &&
38
38
  action.payload.timeframe === 'month') {
@@ -81,7 +81,11 @@ const operatingExpenses = (0, toolkit_1.createSlice)({
81
81
  },
82
82
  },
83
83
  fetchOpExReportForTimeframe: {
84
- prepare(timeframe, forecastId, fetchFullReport = true, cacheOverride = false) {
84
+ prepare(timeframe, forecastId,
85
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
86
+ fetchFullReport = true,
87
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
88
+ cacheOverride = false) {
85
89
  return {
86
90
  payload: { forecastId, timeframe, fetchFullReport, cacheOverride },
87
91
  };
@@ -101,7 +105,8 @@ const operatingExpenses = (0, toolkit_1.createSlice)({
101
105
  reducer(draft) {
102
106
  draft.lastFetchRequestTime = (0, zeniDayJS_1.dateNow)();
103
107
  },
104
- prepare(cacheOverride = false, forecastId) {
108
+ prepare(cacheOverride = false, // eslint-disable-line @typescript-eslint/no-inferrable-types
109
+ forecastId) {
105
110
  return {
106
111
  payload: {
107
112
  cacheOverride,
@@ -114,7 +119,8 @@ const operatingExpenses = (0, toolkit_1.createSlice)({
114
119
  reducer(draft) {
115
120
  draft.lastFetchRequestTime = (0, zeniDayJS_1.dateNow)();
116
121
  },
117
- prepare(cacheOverride = false, forecastId) {
122
+ prepare(cacheOverride = false, // eslint-disable-line @typescript-eslint/no-inferrable-types
123
+ forecastId) {
118
124
  return {
119
125
  payload: {
120
126
  cacheOverride,
@@ -150,7 +156,11 @@ const operatingExpenses = (0, toolkit_1.createSlice)({
150
156
  clearOpEx(draft) {
151
157
  Object.assign(draft, exports.initialState);
152
158
  },
153
- updateOpExAdditionalBalancesSelection(draft, action) {
159
+ updateOpExAdditionalBalancesSelection(
160
+ //eslint-disable-next-line @typescript-eslint/no-unused-vars
161
+ draft,
162
+ //eslint-disable-next-line @typescript-eslint/no-unused-vars
163
+ action) {
154
164
  var _a, _b, _c;
155
165
  const opExReport = getState(draft, draft.uiState.isForecastModeOn, (_a = draft.uiState.selectedForecast) === null || _a === void 0 ? void 0 : _a.id);
156
166
  const { opExBalancesByTimeframe, dataAvailable } = opExReport;
@@ -165,7 +165,9 @@ const opexByVendor = (0, toolkit_1.createSlice)({
165
165
  draft.opExByVendorReportGenerated = action.payload;
166
166
  },
167
167
  fetchOpExByVendorReportSummary: {
168
- prepare(cacheOverride = false) {
168
+ prepare(
169
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
170
+ cacheOverride = false) {
169
171
  return {
170
172
  payload: { cacheOverride },
171
173
  };
@@ -37,6 +37,7 @@ const opExClassesView = (0, toolkit_1.createSlice)({
37
37
  initialState: exports.initialState,
38
38
  reducers: {
39
39
  fetchOpExClassesView: {
40
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
40
41
  prepare(cacheOverride = false) {
41
42
  return { payload: { cacheOverride } };
42
43
  },
@@ -49,7 +50,11 @@ const opExClassesView = (0, toolkit_1.createSlice)({
49
50
  },
50
51
  },
51
52
  fetchOpExForTimeframeClassesView: {
52
- prepare(timeframe, fetchFullReport = true, cacheOverride = false) {
53
+ prepare(timeframe,
54
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
55
+ fetchFullReport = true,
56
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
57
+ cacheOverride = false) {
53
58
  return { payload: { timeframe, fetchFullReport, cacheOverride } };
54
59
  },
55
60
  reducer(draft, action) {
@@ -19,7 +19,9 @@ const fetchPeopleEpic = (actions$, state, zeniAPI) => actions$.pipe((0, operator
19
19
  return zeniAPI.getJSON(URL).pipe((0, operators_1.mergeMap)((response) => {
20
20
  var _a, _b, _c, _d;
21
21
  if ((0, responsePayload_1.isSuccessResponse)(response)) {
22
- return (0, rxjs_1.of)((0, userRoleReducer_1.updateUserRoles)((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.user_roles) !== null && _b !== void 0 ? _b : []), (0, userReducer_1.updateAllUsers)({ users: (_d = (_c = response.data) === null || _c === void 0 ? void 0 : _c.users) !== null && _d !== void 0 ? _d : [] }), (0, peopleReducer_1.updatePersonUserIds)(response.data) // eslint-disable-line @typescript-eslint/no-non-null-assertion
22
+ return (0, rxjs_1.of)((0, userRoleReducer_1.updateUserRoles)((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.user_roles) !== null && _b !== void 0 ? _b : []), // eslint-disable-line @typescript-eslint/no-non-null-assertion
23
+ (0, userReducer_1.updateAllUsers)({ users: (_d = (_c = response.data) === null || _c === void 0 ? void 0 : _c.users) !== null && _d !== void 0 ? _d : [] }), // eslint-disable-line @typescript-eslint/no-non-null-assertion
24
+ (0, peopleReducer_1.updatePersonUserIds)(response.data) // eslint-disable-line @typescript-eslint/no-non-null-assertion
23
25
  );
24
26
  }
25
27
  else {
@@ -21,7 +21,9 @@ const invitePeopleEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operat
21
21
  if (Boolean((_a = response.data) === null || _a === void 0 ? void 0 : _a.user_roles) === true) {
22
22
  (0, updateManagersListOnRoleChange_1.updateManagersListOnRoleChange)(actions, (_b = response.data) === null || _b === void 0 ? void 0 : _b.user_roles[0], false);
23
23
  }
24
- return (0, rxjs_1.of)((0, userRoleReducer_1.updateUserRoles)((_d = (_c = response.data) === null || _c === void 0 ? void 0 : _c.user_roles) !== null && _d !== void 0 ? _d : []), (0, userReducer_1.updateAllUsers)({ users: (_f = (_e = response.data) === null || _e === void 0 ? void 0 : _e.users) !== null && _f !== void 0 ? _f : [] }), (0, peopleReducer_1.invitePeopleSuccess)(response.data), // eslint-disable-line @typescript-eslint/no-non-null-assertion
24
+ return (0, rxjs_1.of)((0, userRoleReducer_1.updateUserRoles)((_d = (_c = response.data) === null || _c === void 0 ? void 0 : _c.user_roles) !== null && _d !== void 0 ? _d : []), // eslint-disable-line @typescript-eslint/no-non-null-assertion
25
+ (0, userReducer_1.updateAllUsers)({ users: (_f = (_e = response.data) === null || _e === void 0 ? void 0 : _e.users) !== null && _f !== void 0 ? _f : [] }), // eslint-disable-line @typescript-eslint/no-non-null-assertion
26
+ (0, peopleReducer_1.invitePeopleSuccess)(response.data), // eslint-disable-line @typescript-eslint/no-non-null-assertion
25
27
  (0, snackbarReducer_1.openSnackbar)({
26
28
  messageSection: invitePayload.invites.length > 1
27
29
  ? 'people_invite_multiple_people'
@@ -21,7 +21,9 @@ const inviteZeniPeopleEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, op
21
21
  if (Boolean((_a = response.data) === null || _a === void 0 ? void 0 : _a.user_roles) === true) {
22
22
  (0, updateManagersListOnRoleChange_1.updateManagersListOnRoleChange)(actions, (_b = response.data) === null || _b === void 0 ? void 0 : _b.user_roles[0], true);
23
23
  }
24
- return (0, rxjs_1.of)((0, userRoleReducer_1.updateUserRoles)((_d = (_c = response.data) === null || _c === void 0 ? void 0 : _c.user_roles) !== null && _d !== void 0 ? _d : []), (0, userReducer_1.updateAllUsers)({ users: (_f = (_e = response.data) === null || _e === void 0 ? void 0 : _e.users) !== null && _f !== void 0 ? _f : [] }), (0, peopleReducer_1.invitePeopleSuccess)(response.data), // eslint-disable-line @typescript-eslint/no-non-null-assertion
24
+ return (0, rxjs_1.of)((0, userRoleReducer_1.updateUserRoles)((_d = (_c = response.data) === null || _c === void 0 ? void 0 : _c.user_roles) !== null && _d !== void 0 ? _d : []), // eslint-disable-line @typescript-eslint/no-non-null-assertion
25
+ (0, userReducer_1.updateAllUsers)({ users: (_f = (_e = response.data) === null || _e === void 0 ? void 0 : _e.users) !== null && _f !== void 0 ? _f : [] }), // eslint-disable-line @typescript-eslint/no-non-null-assertion
26
+ (0, peopleReducer_1.invitePeopleSuccess)(response.data), // eslint-disable-line @typescript-eslint/no-non-null-assertion
25
27
  (0, snackbarReducer_1.openSnackbar)({
26
28
  messageSection: invitePayload.users.length > 1
27
29
  ? 'people_invite_multiple_people'
@@ -201,6 +201,7 @@ const people = (0, toolkit_1.createSlice)({
201
201
  reducer() {
202
202
  // Do nothing.
203
203
  },
204
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
204
205
  prepare(companyId, shouldFetchClassList) {
205
206
  return { payload: { companyId, shouldFetchClassList } };
206
207
  },
@@ -20,7 +20,7 @@ const peopleSaveUpdatesEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, o
20
20
  var _a, _b, _c, _d;
21
21
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
22
22
  const actions = [
23
- (0, userRoleReducer_1.updateUserRoles)((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.user_roles) !== null && _b !== void 0 ? _b : []),
23
+ (0, userRoleReducer_1.updateUserRoles)((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.user_roles) !== null && _b !== void 0 ? _b : []), // eslint-disable-line @typescript-eslint/no-non-null-assertion
24
24
  (0, peopleReducer_1.peopleSaveUpdatesSuccess)(),
25
25
  (0, snackbarReducer_1.openSnackbar)({
26
26
  messageSection: 'people_update_person',
@@ -41,6 +41,7 @@ const profitAndLoss = (0, toolkit_1.createSlice)({
41
41
  initialState: exports.initialState,
42
42
  reducers: {
43
43
  fetchProfitAndLoss: {
44
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
44
45
  prepare(forecastId, cacheOverride = false) {
45
46
  return { payload: { forecastId, cacheOverride } };
46
47
  },
@@ -53,7 +54,11 @@ const profitAndLoss = (0, toolkit_1.createSlice)({
53
54
  },
54
55
  },
55
56
  fetchProfitAndLossForTimeframe: {
56
- prepare(timeframe, forecastId, fetchFullReport = true, cacheOverride = false) {
57
+ prepare(timeframe, forecastId,
58
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
59
+ fetchFullReport = true,
60
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
61
+ cacheOverride = false) {
57
62
  return {
58
63
  payload: { forecastId, timeframe, fetchFullReport, cacheOverride },
59
64
  };
@@ -38,6 +38,7 @@ const profitAndLossClassesView = (0, toolkit_1.createSlice)({
38
38
  initialState: exports.initialState,
39
39
  reducers: {
40
40
  fetchProfitAndLossClassesView: {
41
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
41
42
  prepare(cacheOverride = false) {
42
43
  return { payload: { cacheOverride } };
43
44
  },
@@ -50,7 +51,11 @@ const profitAndLossClassesView = (0, toolkit_1.createSlice)({
50
51
  },
51
52
  },
52
53
  fetchProfitAndLossForTimeframeClassesView: {
53
- prepare(timeframe, fetchFullReport = true, cacheOverride = false) {
54
+ prepare(timeframe,
55
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
56
+ fetchFullReport = true,
57
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
58
+ cacheOverride = false) {
54
59
  return { payload: { timeframe, fetchFullReport, cacheOverride } };
55
60
  },
56
61
  reducer(draft, action) {
@@ -12,7 +12,9 @@ const recommendation = (0, toolkit_1.createSlice)({
12
12
  initialState: exports.initialState,
13
13
  reducers: {
14
14
  fetchEntityRecommendationsByTransactionId: {
15
- reducer(draft, action) {
15
+ reducer(draft,
16
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
17
+ action) {
16
18
  const { entity } = action.payload;
17
19
  const key = (0, recommendationState_1.getEntityRecommendationKey)(entity.type, entity.id);
18
20
  const existingRecommendation = draft.recommendationByEntity[key];
@@ -73,6 +75,7 @@ const recommendation = (0, toolkit_1.createSlice)({
73
75
  updateRecommendationForEntity(draft, action) {
74
76
  doUpdateRecommendationForEntity(draft.recommendationByEntity, action.payload.entityId, action.payload.entityType, action.payload.recommendations);
75
77
  },
78
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
76
79
  updateRecommendationForEntityFailure(draft, action) {
77
80
  const { entityId, entityType, status } = action.payload;
78
81
  const key = (0, recommendationState_1.getEntityRecommendationKey)(entityType, entityId);
@@ -1,6 +1,6 @@
1
1
  import { RootState } from '../../reducer';
2
2
  export declare const getReimbursementCardReport: (state: RootState) => {
3
- reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense" | "account_reconciliation";
3
+ reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense";
4
4
  reportTitle: string;
5
5
  version: string | number | undefined;
6
6
  fetchState: import("../..").FetchState;
@@ -24,7 +24,9 @@ const updateReportUIOptionThisPeriodEpic = (actions$, state) => actions$.pipe((0
24
24
  firstMonthOfFY: action.payload.firstMonthOfFY,
25
25
  thisPeriod: action.payload.thisPeriod,
26
26
  coaBalances: financeStatementState.balancesInTimeframe,
27
- maxNumOfPeriodsToHighlight: (_a = action.payload.maxNumOfPeriodsToSelect) !== null && _a !== void 0 ? _a : financeStatementReducer_1.initialFinanceStatementState.maxNumOfPeriodsToHighlight,
27
+ maxNumOfPeriodsToHighlight:
28
+ // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
29
+ (_a = action.payload.maxNumOfPeriodsToSelect) !== null && _a !== void 0 ? _a : financeStatementReducer_1.initialFinanceStatementState.maxNumOfPeriodsToHighlight,
28
30
  }));
29
31
  }));
30
32
  exports.updateReportUIOptionThisPeriodEpic = updateReportUIOptionThisPeriodEpic;