@zeniai/client-epic-state 4.15.22 → 4.15.24

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 (127) hide show
  1. package/lib/commonStateTypes/timePeriod.d.ts +1 -1
  2. package/lib/commonStateTypes/timePeriod.js +2 -2
  3. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
  4. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +0 -1
  5. package/lib/configureStore.js +1 -2
  6. package/lib/entity/account/accountState.d.ts +1 -1
  7. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  8. package/lib/entity/class/classReducer.d.ts +4 -4
  9. package/lib/entity/class/classState.d.ts +1 -1
  10. package/lib/entity/customer/customerPayload.d.ts +1 -1
  11. package/lib/entity/customer/customerPayload.js +6 -16
  12. package/lib/entity/forecast/forecastState.d.ts +1 -1
  13. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  14. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  15. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  16. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  17. package/lib/entity/snackbar/snackbarTypes.js +0 -4
  18. package/lib/entity/task/taskState.d.ts +1 -1
  19. package/lib/entity/tenant/clearAllEpic.d.ts +2 -4
  20. package/lib/entity/tenant/clearAllEpic.js +0 -4
  21. package/lib/entity/tenant/tenantReducer.d.ts +1 -1
  22. package/lib/entity/tenant/tenantReducer.js +2 -7
  23. package/lib/entity/transaction/payloadTypes/customerTransactionPayload.d.ts +1 -1
  24. package/lib/entity/transaction/payloadTypes/customerTransactionPayload.js +2 -1
  25. package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +0 -2
  26. package/lib/entity/transaction/payloadTypes/transactionPayload.js +3 -7
  27. package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.d.ts +1 -9
  28. package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.js +2 -23
  29. package/lib/entity/transaction/stateTypes/transaction.d.ts +1 -3
  30. package/lib/entity/transaction/stateTypes/transactionType.d.ts +1 -1
  31. package/lib/entity/transaction/stateTypes/transactionType.js +0 -1
  32. package/lib/entity/transaction/stateTypes/vendorTransaction.d.ts +0 -5
  33. package/lib/entity/transaction/stateTypes/vendorTransaction.js +1 -5
  34. package/lib/entity/transaction/toSupportedTransaction.js +1 -6
  35. package/lib/entity/transaction/transactionReducer.d.ts +0 -17
  36. package/lib/entity/transaction/transactionReducer.js +2 -47
  37. package/lib/entity/transaction/transactionSelector.d.ts +0 -2
  38. package/lib/entity/transaction/transactionSelector.js +0 -5
  39. package/lib/entity/transaction/transactionState.d.ts +4 -6
  40. package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
  41. package/lib/epic.d.ts +1 -6
  42. package/lib/epic.js +1 -6
  43. package/lib/index.d.ts +8 -16
  44. package/lib/index.js +28 -52
  45. package/lib/reducer.d.ts +1 -7
  46. package/lib/reducer.js +0 -6
  47. package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
  48. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  49. package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
  50. package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
  51. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  52. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  53. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
  54. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  55. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +1 -2
  56. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +10 -24
  57. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +1 -2
  58. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +0 -14
  59. package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +4 -20
  60. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +2 -2
  61. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +2 -17
  62. package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +2 -2
  63. package/lib/view/expenseAutomationView/expenseAutomationViewState.js +1 -1
  64. package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.js +30 -81
  65. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
  66. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +10 -54
  67. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +1 -2
  68. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +4 -5
  69. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +0 -2
  70. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +1 -1
  71. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +0 -8
  72. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  73. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  74. package/lib/view/opExByVendor/fetchOpExByVendorReportForTimeframeEpic.js +4 -3
  75. package/lib/view/opExByVendor/opExByVendorReducer.d.ts +4 -1
  76. package/lib/view/opExByVendor/opExByVendorReducer.js +11 -3
  77. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  78. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  79. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/validateBillsBulkActionEpic.ts.js +3 -4
  80. package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js +3 -11
  81. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +1 -2
  82. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +1 -3
  83. package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +1 -1
  84. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  85. package/lib/view/topEx/topExSelector.d.ts +1 -1
  86. package/lib/view/transactionDetail/epics/saveTransactionHelper.js +4 -13
  87. package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +3 -16
  88. package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +5 -22
  89. package/lib/view/transactionDetail/transactionDetailState.d.ts +0 -1
  90. package/lib/view/transactionDetail/transactionDetailTypes.d.ts +0 -6
  91. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +1 -1
  92. package/lib/zeniAPI.d.ts +0 -1
  93. package/package.json +1 -2
  94. package/lib/entity/accountRecon/accountReconPayload.d.ts +0 -70
  95. package/lib/entity/accountRecon/accountReconPayload.js +0 -125
  96. package/lib/entity/accountRecon/accountReconReducer.d.ts +0 -16
  97. package/lib/entity/accountRecon/accountReconReducer.js +0 -71
  98. package/lib/entity/accountRecon/accountReconSelector.d.ts +0 -28
  99. package/lib/entity/accountRecon/accountReconSelector.js +0 -44
  100. package/lib/entity/accountRecon/accountReconState.d.ts +0 -70
  101. package/lib/entity/accountRecon/accountReconState.js +0 -28
  102. package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.d.ts +0 -35
  103. package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.js +0 -53
  104. package/lib/entity/transaction/stateTypes/reconciliationTransaction.d.ts +0 -32
  105. package/lib/entity/transaction/stateTypes/reconciliationTransaction.js +0 -10
  106. package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.d.ts +0 -15
  107. package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +0 -118
  108. package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.d.ts +0 -10
  109. package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.js +0 -49
  110. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.d.ts +0 -14
  111. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.js +0 -169
  112. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.d.ts +0 -9
  113. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +0 -154
  114. package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.d.ts +0 -6
  115. package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.js +0 -110
  116. package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.d.ts +0 -7
  117. package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.js +0 -18
  118. package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +0 -25
  119. package/lib/view/expenseAutomationView/payload/reconciliationPayload.js +0 -51
  120. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +0 -66
  121. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +0 -375
  122. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +0 -50
  123. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +0 -7
  124. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.d.ts +0 -5
  125. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +0 -249
  126. package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +0 -102
  127. package/lib/view/expenseAutomationView/types/reconciliationViewState.js +0 -38
@@ -19,29 +19,7 @@ const toTransactionDetailLocalData = (transaction) => {
19
19
  logo: transaction.logo,
20
20
  }
21
21
  : undefined;
22
- transactionLocal.customer =
23
- transaction.customerId != null &&
24
- transaction.customerName != null &&
25
- Boolean(transaction.customerId) === true &&
26
- Boolean(transaction.customerName) === true
27
- ? {
28
- id: transaction.customerId,
29
- name: transaction.customerName,
30
- logo: transaction.logo,
31
- }
32
- : undefined;
33
22
  transactionLocal.vendorUpdates = undefined;
34
- if ((0, vendorTransaction_1.isVendorTransactionWithCustomer)(transaction) &&
35
- transaction.customerName != null) {
36
- transactionLocal.customerUpdates = {
37
- id: transaction.customerId,
38
- name: transaction.customerName,
39
- qboId: transaction.customerId,
40
- };
41
- }
42
- else {
43
- transactionLocal.customerUpdates = undefined;
44
- }
45
23
  transactionLocal.lineItemById =
46
24
  transaction.lines != null && transaction.lines.length > 0
47
25
  ? buildLineItemById(transaction, transaction.recommendations)
@@ -75,16 +53,7 @@ const buildLineItemById = (transaction, recommendations) => {
75
53
  logo: accountLine.vendor.logo,
76
54
  }
77
55
  : undefined;
78
- record.customer =
79
- accountLine.customer != null &&
80
- Boolean(accountLine.customer.id) === true &&
81
- Boolean(accountLine.customer.name) === true
82
- ? {
83
- id: accountLine.customer.id,
84
- name: accountLine.customer.name,
85
- logo: accountLine.customer.logo,
86
- }
87
- : undefined;
56
+ record.customer = accountLine.customer;
88
57
  record.billable = accountLine.billable;
89
58
  record.categorizationStatus = accountLine.categorizationStatus;
90
59
  record.reviewPendingReasons = accountLine.reviewPendingReasons;
@@ -120,7 +89,7 @@ const buildLineItemById = (transaction, recommendations) => {
120
89
  });
121
90
  return lineItemData;
122
91
  };
123
- const toSetAllLineItemsToCategoryClass = (draft, transaction, transactionId, transactionLineId, transactionDetailLocalData, updatedItem, uncategorizedAccounts, vendorId, customerId, selectedAccount, selectedClassBase) => {
92
+ const toSetAllLineItemsToCategoryClass = (draft, transaction, transactionId, transactionLineId, transactionDetailLocalData, updatedItem, uncategorizedAccounts, vendorId, selectedAccount, selectedClassBase) => {
124
93
  const newLineItems = {};
125
94
  let selectedCheckBoxTransactionIds = draft.selectedCheckBoxTransactionIds;
126
95
  if (transaction.lines != null) {
@@ -155,11 +124,8 @@ const toSetAllLineItemsToCategoryClass = (draft, transaction, transactionId, tra
155
124
  }
156
125
  }
157
126
  else {
158
- if ((transactionDetailLocalData.customer != null &&
159
- transactionDetailLocalData.customer.id === customerId) ||
160
- (record.customer != null && record.customer.id === customerId) ||
161
- (transactionDetailLocalData.vendor != null &&
162
- transactionDetailLocalData.vendor.id === vendorId) ||
127
+ if ((transactionDetailLocalData.vendor != null &&
128
+ transactionDetailLocalData.vendor.id === vendorId) ||
163
129
  (record.vendor != null && record.vendor.id === vendorId)) {
164
130
  // if the vendor is same, then set the account and class with the selected ones and add the transaction to the selected list
165
131
  if (selectedAccount != null &&
@@ -208,7 +174,7 @@ const toSetAllLineItemsToCategoryClass = (draft, transaction, transactionId, tra
208
174
  }
209
175
  });
210
176
  }
211
- const newLocalData = Object.assign(Object.assign({}, transactionsViewState_1.initialSupportedTransactionCategorization.transactionReviewLocalData), { sortedLineItems: transactionDetailLocalData.sortedLineItems, memo: transactionDetailLocalData.memo, lineItemById: newLineItems, transactionDate: transactionDetailLocalData.transactionDate, transactionType: transactionDetailLocalData.transactionType, transactionTypeName: transactionDetailLocalData.transactionTypeName, vendor: transactionDetailLocalData.vendor, customer: transactionDetailLocalData.customer, vendorUpdates: transactionDetailLocalData.vendorUpdates, customerUpdates: transactionDetailLocalData.customerUpdates, vendorDetails: transactionDetailLocalData.vendorDetails, customerDetails: transactionDetailLocalData.customerDetails });
177
+ const newLocalData = Object.assign(Object.assign({}, transactionsViewState_1.initialSupportedTransactionCategorization.transactionReviewLocalData), { sortedLineItems: transactionDetailLocalData.sortedLineItems, memo: transactionDetailLocalData.memo, lineItemById: newLineItems, transactionDate: transactionDetailLocalData.transactionDate, transactionType: transactionDetailLocalData.transactionType, transactionTypeName: transactionDetailLocalData.transactionTypeName, vendor: transactionDetailLocalData.vendor, vendorUpdates: transactionDetailLocalData.vendorUpdates, vendorDetails: transactionDetailLocalData.vendorDetails });
212
178
  if (!(0, exports.checkIfAllLineItemsAreCategoryClassFilled)(transaction, newLocalData, uncategorizedAccounts)) {
213
179
  selectedCheckBoxTransactionIds = selectedCheckBoxTransactionIds.filter((id) => id !== transaction.id);
214
180
  }
@@ -272,7 +238,7 @@ const setEntityRecommendationForLineIdInLocalData = (draft, transaction, transac
272
238
  const newLineItem = newLineItems[matchingEntityLineId];
273
239
  newLineItems[matchingEntityLineId] = Object.assign(Object.assign({}, newLineItem), { class: matchingRecord.class, account: matchingRecord.account, lineEntity: matchingRecord.lineEntity });
274
240
  }
275
- const newLocalData = Object.assign(Object.assign({}, transactionsViewState_1.initialSupportedTransactionCategorization.transactionReviewLocalData), { sortedLineItems: transactionDetailLocalData.sortedLineItems, memo: transactionDetailLocalData.memo, lineItemById: newLineItems, transactionDate: transactionDetailLocalData.transactionDate, transactionType: transactionDetailLocalData.transactionType, transactionTypeName: transactionDetailLocalData.transactionTypeName, vendorUpdates: transactionDetailLocalData.vendorUpdates, customerUpdates: transactionDetailLocalData.customerUpdates, vendorDetails: transactionDetailLocalData.vendorDetails, customerDetails: transactionDetailLocalData.customerDetails, vendor: transactionDetailLocalData.vendor, customer: transactionDetailLocalData.customer });
241
+ const newLocalData = Object.assign(Object.assign({}, transactionsViewState_1.initialSupportedTransactionCategorization.transactionReviewLocalData), { sortedLineItems: transactionDetailLocalData.sortedLineItems, memo: transactionDetailLocalData.memo, lineItemById: newLineItems, transactionDate: transactionDetailLocalData.transactionDate, transactionType: transactionDetailLocalData.transactionType, transactionTypeName: transactionDetailLocalData.transactionTypeName, vendorUpdates: transactionDetailLocalData.vendorUpdates, vendorDetails: transactionDetailLocalData.vendorDetails, vendor: transactionDetailLocalData.vendor });
276
242
  if (!(0, exports.checkIfAllLineItemsAreCategoryClassFilled)(transaction, newLocalData, uncategorizedAccounts)) {
277
243
  selectedCheckBoxTransactionIds = selectedCheckBoxTransactionIds.filter((id) => id !== transaction.id);
278
244
  }
@@ -284,7 +250,7 @@ const checkIfAllLineItemsAreCategoryClassFilled = (transaction, transactionDetai
284
250
  const lineItems = Object.values(transactionDetailLocalData.lineItemById);
285
251
  const isVendorTransactionAvailable = (0, vendorTransaction_1.isVendorTransaction)(transaction);
286
252
  return lineItems.every((lineItem) => {
287
- var _a, _b, _c;
253
+ var _a, _b, _c, _d, _e;
288
254
  return lineItem.account != null &&
289
255
  Boolean(lineItem.account.qboId) === true &&
290
256
  lineItem.class != null &&
@@ -294,20 +260,10 @@ const checkIfAllLineItemsAreCategoryClassFilled = (transaction, transactionDetai
294
260
  (_b = uncategorizedAccounts.expense) === null || _b === void 0 ? void 0 : _b.qboId,
295
261
  (_c = uncategorizedAccounts.income) === null || _c === void 0 ? void 0 : _c.qboId,
296
262
  ].includes(lineItem.account.qboId)) &&
297
- ((isVendorTransactionAvailable
298
- ? transactionDetailLocalData.vendor != null &&
299
- transactionDetailLocalData.vendor.id != null &&
263
+ (isVendorTransactionAvailable
264
+ ? ((_d = transactionDetailLocalData.vendor) === null || _d === void 0 ? void 0 : _d.id) != null &&
300
265
  Boolean(transactionDetailLocalData.vendor.id) === true
301
- : lineItem.vendor != null &&
302
- lineItem.vendor.id != null &&
303
- Boolean(lineItem.vendor.id) === true) ||
304
- (isVendorTransactionAvailable
305
- ? transactionDetailLocalData.customer != null &&
306
- transactionDetailLocalData.customer.id != null &&
307
- Boolean(transactionDetailLocalData.customer.id) === true
308
- : lineItem.customer != null &&
309
- lineItem.customer.id != null &&
310
- Boolean(lineItem.customer.id) === true));
266
+ : ((_e = lineItem.vendor) === null || _e === void 0 ? void 0 : _e.id) != null && Boolean(lineItem.vendor.id) === true);
311
267
  });
312
268
  };
313
269
  exports.checkIfAllLineItemsAreCategoryClassFilled = checkIfAllLineItemsAreCategoryClassFilled;
@@ -76,13 +76,12 @@ export declare const fetchTransactionCategorization: import("@reduxjs/toolkit").
76
76
  selectedTransaction: SupportedTransaction;
77
77
  uncategorizedAccounts: UncategorizedAccounts;
78
78
  updatedVendor?: VendorBase;
79
- }, "expenseAutomationTransactionsView/updateSelectedVendorForTransaction">, setAllItemsToCategoryClassInLocalDataForCategorization: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[selectedTab: "review" | "autoCategorized", transactionId: string, lineId: string, transactions: SupportedTransaction[], uncategorizedAccounts: UncategorizedAccounts, vendorId?: string | undefined, customerId?: string | undefined, selectedAccount?: AccountBase | undefined, selectedClassBase?: ClassBase | undefined, lineEntity?: Entity | undefined, recommendations?: Recommendation[] | undefined], {
79
+ }, "expenseAutomationTransactionsView/updateSelectedVendorForTransaction">, setAllItemsToCategoryClassInLocalDataForCategorization: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[selectedTab: "review" | "autoCategorized", transactionId: string, lineId: string, transactions: SupportedTransaction[], uncategorizedAccounts: UncategorizedAccounts, vendorId?: string | undefined, selectedAccount?: AccountBase | undefined, selectedClassBase?: ClassBase | undefined, lineEntity?: Entity | undefined, recommendations?: Recommendation[] | undefined], {
80
80
  selectedTab: "review" | "autoCategorized";
81
81
  transactionId: string;
82
82
  lineId: string;
83
83
  transactions: SupportedTransaction[];
84
84
  vendorId: string | undefined;
85
- customerId: string | undefined;
86
85
  lineEntity: Entity | undefined;
87
86
  selectedAccount: AccountBase | undefined;
88
87
  selectedClassBase: ClassBase | undefined;
@@ -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,
@@ -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':
@@ -60,23 +60,16 @@ export interface TransactionReviewLocalData {
60
60
  lineItemById: Record<ID, TransactionCategorizationLineItemData>;
61
61
  sortedLineItems: ID[];
62
62
  vendor?: VendorBase;
63
- customer?: CustomerBase;
64
63
  memo?: string;
65
64
  vendorDetails?: {
66
65
  id: ID;
67
66
  qboId: string;
68
67
  name: string;
69
68
  };
70
- customerDetails?: {
71
- id: ID;
72
- qboId: string;
73
- name: string;
74
- };
75
69
  transactionDate?: ZeniDate;
76
70
  transactionType?: TransactionType;
77
71
  transactionTypeName?: string;
78
72
  vendorUpdates?: TransactionVendorUpdates;
79
- customerUpdates?: TransactionVendorUpdates;
80
73
  }
81
74
  export interface SupportedTransactionCategorization {
82
75
  transactionReviewLocalData: TransactionReviewLocalData;
@@ -110,7 +103,6 @@ export interface TransactionUpdates {
110
103
  memo?: string;
111
104
  updatesByLineId: Record<ID, TransactionLineUpdates>;
112
105
  vendorId?: ID;
113
- customerId?: ID;
114
106
  }
115
107
  export interface EntityRelatedRecommendationUpdates {
116
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[];
@@ -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<{
@@ -9,7 +9,6 @@ const vendorReducer_1 = require("../../entity/vendor/vendorReducer");
9
9
  const responsePayload_1 = require("../../responsePayload");
10
10
  const opExByVendorReducer_1 = require("./opExByVendorReducer");
11
11
  const fetchOpExByVendorReportForTimeframeEpic = (actions$, state, zeniAPI) => actions$.pipe((0, operators_1.filter)(opExByVendorReducer_1.fetchOpExByVendorReportForTimeframe.match), (0, operators_1.mergeMap)((action) => {
12
- var _a;
13
12
  const getTimeSeriesGroup = (timeframe) => {
14
13
  switch (timeframe) {
15
14
  case 'month':
@@ -27,7 +26,7 @@ const fetchOpExByVendorReportForTimeframeEpic = (actions$, state, zeniAPI) => ac
27
26
  const query = {
28
27
  sortKey: uiState.sortKey[uiState.timeframe],
29
28
  sortOrder: uiState.sortOrder[uiState.timeframe],
30
- searchString: (_a = action.payload.searchText) !== null && _a !== void 0 ? _a : '',
29
+ searchString: uiState.searchString[uiState.timeframe],
31
30
  fetchNextPage: action.payload.fetchNextPage,
32
31
  pageLimit: pageLimit,
33
32
  };
@@ -35,13 +34,15 @@ const fetchOpExByVendorReportForTimeframeEpic = (actions$, state, zeniAPI) => ac
35
34
  time_series_groups: [getTimeSeriesGroup(action.payload.timeframe)],
36
35
  sort_by: uiState.sortKey[uiState.timeframe],
37
36
  sort_order: sortOrder,
37
+ search_text: uiState.searchString[uiState.timeframe],
38
38
  page_token: pageToken,
39
39
  };
40
40
  if (pageLimit != null) {
41
41
  queryValue.page_limit = pageLimit;
42
42
  }
43
- if (action.payload.searchText != null) {
43
+ if (action.payload.searchText) {
44
44
  queryValue.search_text = action.payload.searchText;
45
+ query.searchString = action.payload.searchText;
45
46
  }
46
47
  return zeniAPI
47
48
  .getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/2.0/reports/operating_expenses_by_vendor?query=${encodeURIComponent(JSON.stringify(queryValue))}`)
@@ -49,6 +49,9 @@ export declare const fetchOpExByVendor: import("@reduxjs/toolkit").ActionCreator
49
49
  timeframe: COABalanceMonthQuarterTimeframe;
50
50
  }, "opExByVendor/updateOpExByVendorSort">, updateOpExByVendorSortOrSearchInProgress: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "opExByVendor/updateOpExByVendorSortOrSearchInProgress">, updateOpExByVendorPageFetchInProgress: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "opExByVendor/updateOpExByVendorPageFetchInProgress">, updateOpExByVendorDownloadState: import("@reduxjs/toolkit").ActionCreatorWithPayload<FetchState, "opExByVendor/updateOpExByVendorDownloadState">, clearOpExByVendorSearch: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
51
51
  timeframe: COABalanceMonthQuarterTimeframe;
52
- }, "opExByVendor/clearOpExByVendorSearch">, updateOpExByVendorPageLimit: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number | undefined, "opExByVendor/updateOpExByVendorPageLimit">;
52
+ }, "opExByVendor/clearOpExByVendorSearch">, updateOpExByVendorPageLimit: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number | undefined, "opExByVendor/updateOpExByVendorPageLimit">, updateOpExByVendorSearchString: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
53
+ timeframe: COABalanceMonthQuarterTimeframe;
54
+ searchText: string;
55
+ }, "opExByVendor/updateOpExByVendorSearchString">;
53
56
  declare const _default: import("redux").Reducer<OpExByVendorState>;
54
57
  export default _default;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.updateOpExByVendorPageLimit = exports.clearOpExByVendorSearch = exports.updateOpExByVendorDownloadState = exports.updateOpExByVendorPageFetchInProgress = exports.updateOpExByVendorSortOrSearchInProgress = exports.updateOpExByVendorSort = exports.updateOpExByVendorAdditionalBalancesSelection = exports.clearOpExByVendor = exports.updateOpExByVendorUIState = exports.updateOpExByVendorTimeFrame = exports.updateOpExByVendorReportSummarySuccess = exports.updateOpExByVendorReportSummaryFailure = exports.fetchOpExByVendorReportSummary = exports.updateOpExByVendorReportSuccessForTimeframe = exports.updateOpExByVendorReportFailureForTimeframe = exports.fetchOpExByVendorReportForTimeframe = exports.updateOpExByVendorReportGenerated = exports.fetchOpExByVendor = exports.initialState = exports.initialSearchStringState = exports.defaultTimeframePeriodsOpExByVendor = void 0;
4
+ exports.updateOpExByVendorSearchString = exports.updateOpExByVendorPageLimit = exports.clearOpExByVendorSearch = exports.updateOpExByVendorDownloadState = exports.updateOpExByVendorPageFetchInProgress = exports.updateOpExByVendorSortOrSearchInProgress = exports.updateOpExByVendorSort = exports.updateOpExByVendorAdditionalBalancesSelection = exports.clearOpExByVendor = exports.updateOpExByVendorUIState = exports.updateOpExByVendorTimeFrame = exports.updateOpExByVendorReportSummarySuccess = exports.updateOpExByVendorReportSummaryFailure = exports.fetchOpExByVendorReportSummary = exports.updateOpExByVendorReportSuccessForTimeframe = exports.updateOpExByVendorReportFailureForTimeframe = exports.fetchOpExByVendorReportForTimeframe = exports.updateOpExByVendorReportGenerated = exports.fetchOpExByVendor = exports.initialState = exports.initialSearchStringState = exports.defaultTimeframePeriodsOpExByVendor = void 0;
5
5
  const toolkit_1 = require("@reduxjs/toolkit");
6
6
  const coaBalancePayload_1 = require("../../commonPayloadTypes/v2/coaBalancePayload");
7
7
  const viewAndReportPayload_1 = require("../../commonPayloadTypes/viewAndReportPayload");
@@ -118,9 +118,17 @@ const opexByVendor = (0, toolkit_1.createSlice)({
118
118
  draft.reportFetchState[action.payload.timeframe].fetchState =
119
119
  'In-Progress';
120
120
  draft.reportFetchState[action.payload.timeframe].error = undefined;
121
+ if (action.payload.searchText) {
122
+ draft.uiState.searchString[action.payload.timeframe] =
123
+ action.payload.searchText;
124
+ }
125
+ },
126
+ },
127
+ updateOpExByVendorSearchString(draft, action) {
128
+ if (action.payload.searchText) {
121
129
  draft.uiState.searchString[action.payload.timeframe] =
122
130
  action.payload.searchText;
123
- },
131
+ }
124
132
  },
125
133
  updateOpExByVendorReportSuccessForTimeframe: {
126
134
  prepare(timeframe, report, queryProps) {
@@ -246,7 +254,7 @@ const opexByVendor = (0, toolkit_1.createSlice)({
246
254
  },
247
255
  },
248
256
  });
249
- _a = opexByVendor.actions, exports.fetchOpExByVendor = _a.fetchOpExByVendor, exports.updateOpExByVendorReportGenerated = _a.updateOpExByVendorReportGenerated, exports.fetchOpExByVendorReportForTimeframe = _a.fetchOpExByVendorReportForTimeframe, exports.updateOpExByVendorReportFailureForTimeframe = _a.updateOpExByVendorReportFailureForTimeframe, exports.updateOpExByVendorReportSuccessForTimeframe = _a.updateOpExByVendorReportSuccessForTimeframe, exports.fetchOpExByVendorReportSummary = _a.fetchOpExByVendorReportSummary, exports.updateOpExByVendorReportSummaryFailure = _a.updateOpExByVendorReportSummaryFailure, exports.updateOpExByVendorReportSummarySuccess = _a.updateOpExByVendorReportSummarySuccess, exports.updateOpExByVendorTimeFrame = _a.updateOpExByVendorTimeFrame, exports.updateOpExByVendorUIState = _a.updateOpExByVendorUIState, exports.clearOpExByVendor = _a.clearOpExByVendor, exports.updateOpExByVendorAdditionalBalancesSelection = _a.updateOpExByVendorAdditionalBalancesSelection, exports.updateOpExByVendorSort = _a.updateOpExByVendorSort, exports.updateOpExByVendorSortOrSearchInProgress = _a.updateOpExByVendorSortOrSearchInProgress, exports.updateOpExByVendorPageFetchInProgress = _a.updateOpExByVendorPageFetchInProgress, exports.updateOpExByVendorDownloadState = _a.updateOpExByVendorDownloadState, exports.clearOpExByVendorSearch = _a.clearOpExByVendorSearch, exports.updateOpExByVendorPageLimit = _a.updateOpExByVendorPageLimit;
257
+ _a = opexByVendor.actions, exports.fetchOpExByVendor = _a.fetchOpExByVendor, exports.updateOpExByVendorReportGenerated = _a.updateOpExByVendorReportGenerated, exports.fetchOpExByVendorReportForTimeframe = _a.fetchOpExByVendorReportForTimeframe, exports.updateOpExByVendorReportFailureForTimeframe = _a.updateOpExByVendorReportFailureForTimeframe, exports.updateOpExByVendorReportSuccessForTimeframe = _a.updateOpExByVendorReportSuccessForTimeframe, exports.fetchOpExByVendorReportSummary = _a.fetchOpExByVendorReportSummary, exports.updateOpExByVendorReportSummaryFailure = _a.updateOpExByVendorReportSummaryFailure, exports.updateOpExByVendorReportSummarySuccess = _a.updateOpExByVendorReportSummarySuccess, exports.updateOpExByVendorTimeFrame = _a.updateOpExByVendorTimeFrame, exports.updateOpExByVendorUIState = _a.updateOpExByVendorUIState, exports.clearOpExByVendor = _a.clearOpExByVendor, exports.updateOpExByVendorAdditionalBalancesSelection = _a.updateOpExByVendorAdditionalBalancesSelection, exports.updateOpExByVendorSort = _a.updateOpExByVendorSort, exports.updateOpExByVendorSortOrSearchInProgress = _a.updateOpExByVendorSortOrSearchInProgress, exports.updateOpExByVendorPageFetchInProgress = _a.updateOpExByVendorPageFetchInProgress, exports.updateOpExByVendorDownloadState = _a.updateOpExByVendorDownloadState, exports.clearOpExByVendorSearch = _a.clearOpExByVendorSearch, exports.updateOpExByVendorPageLimit = _a.updateOpExByVendorPageLimit, exports.updateOpExByVendorSearchString = _a.updateOpExByVendorSearchString;
250
258
  exports.default = opexByVendor.reducer;
251
259
  const doUpdateOpexByVendorReport = (draft, timeframe, reportPayload, queryProps) => {
252
260
  var _a, _b, _c;
@@ -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;
@@ -7,7 +7,7 @@ export declare const getScheduleListKey: (selectedCategory: ID, selectedTimefram
7
7
  export type ScheduleListKey = ReturnType<typeof getScheduleListKey>;
8
8
  export declare const toScheduleSubTabType: (v: string) => "all" | "new" | "completed" | "ongoing";
9
9
  export type ScheduleSubTabType = ReturnType<typeof toScheduleSubTabType>;
10
- declare const toScheduleSortKeyType: (v: string) => "status" | "user" | "months" | "class" | "vendor" | "amount" | "createTime" | "balanceAsOfToday" | "memo" | "assetId" | "transactionDate" | "transactionType" | "accruedExpenseCategory" | "scheduleCategory" | "expenseCategory" | "accumulatedDepreciationCategory" | "startMonth" | "endMonth";
10
+ declare const toScheduleSortKeyType: (v: string) => "status" | "user" | "months" | "class" | "vendor" | "amount" | "createTime" | "balanceAsOfToday" | "memo" | "assetId" | "transactionType" | "transactionDate" | "accruedExpenseCategory" | "scheduleCategory" | "expenseCategory" | "accumulatedDepreciationCategory" | "startMonth" | "endMonth";
11
11
  export declare type ScheduleListSortKey = ReturnType<typeof toScheduleSortKeyType>;
12
12
  export interface DownloadJEScheduleTabOptions {
13
13
  timezone: string;
@@ -8,12 +8,11 @@ const billsBulkActionViewReducer_1 = require("../billsBulkActionViewReducer");
8
8
  const validateBillsBulkActionEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(billsBulkActionViewReducer_1.validateBillsBulkAction.match), (0, operators_1.mergeMap)(() => {
9
9
  const { billsBulkActionViewState } = state$.value;
10
10
  const { billsSelectedForBulkAction: transactionIds, bulkOperationTypeSelected, } = billsBulkActionViewState;
11
- const validationValue = bulkOperationTypeSelected === 'send_for_approval'
12
- ? 'all'
13
- : 'sufficient_funds';
14
11
  const queryParam = {
15
12
  entity_ids: transactionIds,
16
- validations: [validationValue],
13
+ validations: bulkOperationTypeSelected === 'send_for_approval'
14
+ ? 'all'
15
+ : 'sufficient_funds',
17
16
  };
18
17
  return zeniAPI
19
18
  .getJSON(`${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/bulk/bills/transactions/validate?query=${encodeURIComponent(JSON.stringify(queryParam))}`)
@@ -14,16 +14,14 @@ const paymentAccountListReducer_1 = require("../../../zeniAccounts/paymentAccoun
14
14
  const plaidAccountViewReducer_1 = require("../../plaidAccountViewReducer");
15
15
  const establishPlaidConnectionEpic = (actions$, state, zeniAPI) => actions$.pipe((0, operators_1.filter)(plaidAccountViewReducer_1.establishPlaidConnection.match), (0, operators_1.mergeMap)((action) => {
16
16
  var _a, _b;
17
- const { publicToken, companyId, setupViewType, linkTokenType, plaidAccountKeyType, zeniMappedAccountId, } = action.payload;
17
+ const { publicToken, companyId, setupViewType, linkTokenType, plaidAccountKeyType, } = action.payload;
18
18
  const requestPayload = {
19
19
  public_token: publicToken,
20
20
  };
21
- const queryPayload = {};
22
21
  const userId = (_b = (_a = state.value.tenantState.loggedInUser) === null || _a === void 0 ? void 0 : _a.userId) !== null && _b !== void 0 ? _b : '';
23
22
  //setupViewType not passed means this is a user account
24
23
  if (linkTokenType !== 'link_external_account') {
25
- if (setupViewType == null &&
26
- plaidAccountKeyType !== 'expense_automation_reconcile') {
24
+ if (setupViewType == null) {
27
25
  requestPayload.is_user_account = true;
28
26
  }
29
27
  else if (plaidAccountKeyType === 'bill_pay_setup') {
@@ -41,15 +39,9 @@ const establishPlaidConnectionEpic = (actions$, state, zeniAPI) => actions$.pipe
41
39
  else if (plaidAccountKeyType === 'billing_setup') {
42
40
  requestPayload.is_primary_for_onboarding = true;
43
41
  }
44
- else if (plaidAccountKeyType === 'expense_automation_reconcile') {
45
- queryPayload.zeni_mapped_account_id = zeniMappedAccountId !== null && zeniMappedAccountId !== void 0 ? zeniMappedAccountId : '';
46
- }
47
42
  }
48
- const queryString = Object.entries(queryPayload).length > 0
49
- ? `?query=${JSON.stringify(queryPayload)}`
50
- : '';
51
43
  return zeniAPI
52
- .postAndGetJSON(`${zeniAPI.apiEndPoints.payMicroServiceBaseUrl}/1.0/plaid/public-token${queryString}`, requestPayload)
44
+ .postAndGetJSON(`${zeniAPI.apiEndPoints.payMicroServiceBaseUrl}/1.0/plaid/public-token`, requestPayload)
53
45
  .pipe((0, operators_1.mergeMap)((response) => {
54
46
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
55
47
  const paymentAccount = response.data.payment_accounts[0];
@@ -61,13 +61,12 @@ export declare const getPaymentAccounts: import("@reduxjs/toolkit").ActionCreato
61
61
  error: ZeniAPIStatus<Record<string, unknown>>;
62
62
  linkTokenType: PlaidLinkTokenType;
63
63
  plaidAccountKeyType: PlaidAccountKeyType;
64
- }, "plaidAccountView/getPlaidLinkTokenFailure", never, never>, establishPlaidConnection: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[publicToken: string, companyId: string, plaidAccountKeyType: PlaidAccountKeyType, setupViewType?: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | undefined, linkTokenType?: PlaidLinkTokenType | undefined, zeniMappedAccountId?: string | undefined], {
64
+ }, "plaidAccountView/getPlaidLinkTokenFailure", never, never>, establishPlaidConnection: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[publicToken: string, companyId: string, plaidAccountKeyType: PlaidAccountKeyType, setupViewType?: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | undefined, linkTokenType?: PlaidLinkTokenType | undefined], {
65
65
  publicToken: string;
66
66
  companyId: string;
67
67
  setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | undefined;
68
68
  linkTokenType: PlaidLinkTokenType;
69
69
  plaidAccountKeyType: PlaidAccountKeyType;
70
- zeniMappedAccountId: string | undefined;
71
70
  }, "plaidAccountView/establishPlaidConnection", never, never>, establishPlaidConnectionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[linkTokenType: PlaidLinkTokenType, plaidAccountKeyType: PlaidAccountKeyType], {
72
71
  linkTokenType: PlaidLinkTokenType;
73
72
  plaidAccountKeyType: PlaidAccountKeyType;
@@ -14,7 +14,6 @@ exports.initialState = {
14
14
  user_reimbursement_account: plaidAccountViewState_1.initialPlaidAccountState,
15
15
  external_account: plaidAccountViewState_1.initialPlaidAccountState,
16
16
  billing_setup: plaidAccountViewState_1.initialPlaidAccountState,
17
- expense_automation_reconcile: plaidAccountViewState_1.initialPlaidAccountState,
18
17
  };
19
18
  const plaidAccountView = (0, toolkit_1.createSlice)({
20
19
  name: 'plaidAccountView',
@@ -265,7 +264,7 @@ const plaidAccountView = (0, toolkit_1.createSlice)({
265
264
  error: undefined,
266
265
  } });
267
266
  },
268
- prepare(publicToken, companyId, plaidAccountKeyType, setupViewType, linkTokenType, zeniMappedAccountId) {
267
+ prepare(publicToken, companyId, plaidAccountKeyType, setupViewType, linkTokenType) {
269
268
  return {
270
269
  payload: {
271
270
  publicToken,
@@ -273,7 +272,6 @@ const plaidAccountView = (0, toolkit_1.createSlice)({
273
272
  setupViewType,
274
273
  linkTokenType: linkTokenType !== null && linkTokenType !== void 0 ? linkTokenType : 'link_account',
275
274
  plaidAccountKeyType,
276
- zeniMappedAccountId,
277
275
  },
278
276
  };
279
277
  },
@@ -1,7 +1,7 @@
1
1
  import { FetchStateAndError, ID } from '../../../commonStateTypes/common';
2
2
  import { ZeniDate } from '../../../zeniDayJS';
3
3
  export type PlaidLinkTokenType = 'link_account' | 'update_account' | 'link_account_no_microdeposit' | 'link_external_account';
4
- export type PlaidAccountKeyType = 'spend_management_setup' | 'bill_pay_setup' | 'reimbursement_setup' | 'account_setup' | 'charge_card_setup' | 'user_reimbursement_account' | 'external_account' | 'billing_setup' | 'expense_automation_reconcile';
4
+ export type PlaidAccountKeyType = 'spend_management_setup' | 'bill_pay_setup' | 'reimbursement_setup' | 'account_setup' | 'charge_card_setup' | 'user_reimbursement_account' | 'external_account' | 'billing_setup';
5
5
  export type PlaidConnectionDetails = Record<PlaidLinkTokenType, {
6
6
  linkToken?: string;
7
7
  expiration?: ZeniDate;
@@ -1,6 +1,6 @@
1
1
  import { RootState } from '../../reducer';
2
2
  export declare const getTasksCardReport: (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
  status: import("../..").Status | undefined;
@@ -4,7 +4,7 @@ import { RootState } from '../../reducer';
4
4
  import { TopExReport, TopExTimePeriodWithMetaData } from './topExSelectorTypes';
5
5
  import { TopExState } from './topExState';
6
6
  export declare const getTopExpenses: (accountState: AccountState, topExState: TopExState, numberOfExpenses?: number) => {
7
- 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";
7
+ 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";
8
8
  reportTitle: string;
9
9
  version: string | number | undefined;
10
10
  status: import("../..").Status | undefined;
@@ -25,7 +25,7 @@ const recommendationState_1 = require("../../recommendation/recommendationState"
25
25
  * additionally fire “Mark as not miscat” for every point above.
26
26
  */
27
27
  const toTransactionUpdatesFromTransactionDetailLocalData = (transactionDetailLocalData, transaction, isExpenseAutomationEnabled) => {
28
- var _a, _b, _c, _d;
28
+ var _a, _b, _c;
29
29
  const updates = {
30
30
  updatesByLineId: {},
31
31
  };
@@ -39,16 +39,15 @@ const toTransactionUpdatesFromTransactionDetailLocalData = (transactionDetailLoc
39
39
  : undefined;
40
40
  if ((0, vendorTransaction_1.isVendorTransaction)(transaction)) {
41
41
  updates.vendorId = (_b = transactionDetailLocalData.vendorUpdates) === null || _b === void 0 ? void 0 : _b.id;
42
- updates.customerId = (_c = transactionDetailLocalData.customerUpdates) === null || _c === void 0 ? void 0 : _c.id;
43
42
  }
44
43
  let isBulkUpdate = false;
45
44
  const entity = getEntityFromTransaction(transaction);
46
45
  let lastUpdatedCategory;
47
46
  let lastUpdatedClass;
48
47
  // single recommendation to just pick the last recommendation in the list of lines
49
- (_d = transaction.lines) === null || _d === void 0 ? void 0 : _d.forEach((line) => {
48
+ (_c = transaction.lines) === null || _c === void 0 ? void 0 : _c.forEach((line) => {
50
49
  var _a, _b, _c, _d, _e, _f;
51
- const entityDetails = getEntityDetails(entity, transactionDetailLocalData.lineItemById[line.id], transactionDetailLocalData.vendorUpdates, transactionDetailLocalData.customerUpdates);
50
+ const entityDetails = getEntityDetails(entity, transactionDetailLocalData.lineItemById[line.id], transactionDetailLocalData.vendorUpdates);
52
51
  if (line.type === 'transaction_with_account_and_class_line' ||
53
52
  line.type === 'transaction_with_product_or_service_line' ||
54
53
  line.type === 'journal_entry_transaction_line') {
@@ -230,7 +229,7 @@ const getEntityFromTransaction = (transaction) => {
230
229
  }
231
230
  return entity;
232
231
  };
233
- const getEntityDetails = (entity, lineItemLocalData, vendorUpdates, customerUpdates) => {
232
+ const getEntityDetails = (entity, lineItemLocalData, vendorUpdates) => {
234
233
  var _a, _b, _c, _d;
235
234
  if (entity != null) {
236
235
  return {
@@ -244,14 +243,6 @@ const getEntityDetails = (entity, lineItemLocalData, vendorUpdates, customerUpda
244
243
  entityType: lineItemLocalData.vendor != null ? 'vendor' : 'customer',
245
244
  };
246
245
  }
247
- if (customerUpdates != null &&
248
- Boolean(customerUpdates.id) === true &&
249
- customerUpdates.id != null) {
250
- return {
251
- entityId: customerUpdates.id,
252
- entityType: 'customer',
253
- };
254
- }
255
246
  if (vendorUpdates != null && vendorUpdates.id != null) {
256
247
  return {
257
248
  entityId: vendorUpdates.id,