@zeniai/client-epic-state 4.15.31 → 4.15.33

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 (137) 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/transaction/payloadTypes/customerTransactionPayload.d.ts +1 -1
  22. package/lib/entity/transaction/payloadTypes/customerTransactionPayload.js +2 -1
  23. package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +0 -2
  24. package/lib/entity/transaction/payloadTypes/transactionPayload.js +3 -7
  25. package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.d.ts +1 -9
  26. package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.js +2 -23
  27. package/lib/entity/transaction/stateTypes/transaction.d.ts +1 -3
  28. package/lib/entity/transaction/stateTypes/transactionType.d.ts +1 -1
  29. package/lib/entity/transaction/stateTypes/transactionType.js +0 -1
  30. package/lib/entity/transaction/stateTypes/vendorTransaction.d.ts +0 -5
  31. package/lib/entity/transaction/stateTypes/vendorTransaction.js +1 -5
  32. package/lib/entity/transaction/toSupportedTransaction.js +1 -6
  33. package/lib/entity/transaction/transactionReducer.d.ts +0 -17
  34. package/lib/entity/transaction/transactionReducer.js +2 -47
  35. package/lib/entity/transaction/transactionSelector.d.ts +0 -2
  36. package/lib/entity/transaction/transactionSelector.js +0 -5
  37. package/lib/entity/transaction/transactionState.d.ts +4 -6
  38. package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
  39. package/lib/epic.d.ts +1 -6
  40. package/lib/epic.js +1 -6
  41. package/lib/index.d.ts +7 -16
  42. package/lib/index.js +27 -52
  43. package/lib/init.d.ts +1 -2
  44. package/lib/init.js +2 -9
  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/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  75. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  76. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +1 -5
  77. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/validateBillsBulkActionEpic.ts.js +3 -4
  78. package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +1 -2
  79. package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js +3 -11
  80. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +1 -2
  81. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +1 -3
  82. package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +1 -1
  83. package/lib/view/spendManagement/zeniAccounts/expressPay/epics/fetchExpressPayInitialDetailsEpic.d.ts +2 -2
  84. package/lib/view/spendManagement/zeniAccounts/expressPay/epics/fetchExpressPayInitialDetailsEpic.js +7 -7
  85. package/lib/view/spendManagement/zeniAccounts/expressPay/expressPaySelector.d.ts +2 -2
  86. package/lib/view/spendManagement/zeniAccounts/expressPay/expressPaySelector.js +4 -5
  87. package/lib/view/spendManagement/zeniAccounts/expressPay/expressPayState.d.ts +2 -2
  88. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.d.ts +0 -14
  89. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.js +1 -78
  90. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer.js +1 -3
  91. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.d.ts +1 -2
  92. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.js +1 -2
  93. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigState.d.ts +0 -9
  94. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  95. package/lib/view/topEx/topExSelector.d.ts +1 -1
  96. package/lib/view/transactionDetail/epics/saveTransactionHelper.js +4 -13
  97. package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +3 -16
  98. package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +5 -22
  99. package/lib/view/transactionDetail/transactionDetailState.d.ts +0 -1
  100. package/lib/view/transactionDetail/transactionDetailTypes.d.ts +0 -6
  101. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +1 -1
  102. package/lib/zeniAPI.d.ts +0 -1
  103. package/package.json +1 -2
  104. package/lib/entity/accountRecon/accountReconPayload.d.ts +0 -70
  105. package/lib/entity/accountRecon/accountReconPayload.js +0 -125
  106. package/lib/entity/accountRecon/accountReconReducer.d.ts +0 -16
  107. package/lib/entity/accountRecon/accountReconReducer.js +0 -71
  108. package/lib/entity/accountRecon/accountReconSelector.d.ts +0 -28
  109. package/lib/entity/accountRecon/accountReconSelector.js +0 -44
  110. package/lib/entity/accountRecon/accountReconState.d.ts +0 -70
  111. package/lib/entity/accountRecon/accountReconState.js +0 -28
  112. package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.d.ts +0 -35
  113. package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.js +0 -53
  114. package/lib/entity/transaction/stateTypes/reconciliationTransaction.d.ts +0 -32
  115. package/lib/entity/transaction/stateTypes/reconciliationTransaction.js +0 -10
  116. package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.d.ts +0 -15
  117. package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +0 -118
  118. package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.d.ts +0 -10
  119. package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.js +0 -49
  120. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.d.ts +0 -14
  121. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.js +0 -169
  122. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.d.ts +0 -9
  123. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +0 -154
  124. package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.d.ts +0 -6
  125. package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.js +0 -110
  126. package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.d.ts +0 -7
  127. package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.js +0 -18
  128. package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +0 -28
  129. package/lib/view/expenseAutomationView/payload/reconciliationPayload.js +0 -51
  130. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +0 -66
  131. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +0 -384
  132. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +0 -51
  133. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +0 -7
  134. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.d.ts +0 -5
  135. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +0 -250
  136. package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +0 -103
  137. 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<{
@@ -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;
@@ -3,7 +3,7 @@ import { Currency } from '../../../../commonStateTypes/amount';
3
3
  import { AccountBasePayload } from '../../../../entity/account/accountPayload';
4
4
  import { ClassBasePayload } from '../../../../entity/class/classPayload';
5
5
  import { ZeniAPIResponse } from '../../../../responsePayload';
6
- import { AccType, AccountTypeSubConfigCodeKeyType, BillPayConfig, BillPaymentConfigCodeType, BillPaymentOutsideZeniSubConfigCodeType, BillPaymentSubConfigCodeKeyType, BillPaymentSubConfigCodeType, BillPaymentWireSubConfigCodeKeyType, BillPaymentWireSubConfigCodeType, ConfigPeriod, InternationalSubConfigCodeKeyType, InternationalSubConfigCodeType, InternationalWireMethodCodeKeyType, InternationalWireMethodCodeType, PaymentAchSubConfigCodeKeyType, PaymentAchSubConfigCodeType, VendorCurrency } from './billPayConfigState';
6
+ import { AccType, AccountTypeSubConfigCodeKeyType, BillPayConfig, BillPaymentConfigCodeType, BillPaymentOutsideZeniSubConfigCodeType, BillPaymentSubConfigCodeKeyType, BillPaymentSubConfigCodeType, BillPaymentWireSubConfigCodeKeyType, BillPaymentWireSubConfigCodeType, InternationalSubConfigCodeKeyType, InternationalSubConfigCodeType, InternationalWireMethodCodeKeyType, InternationalWireMethodCodeType, PaymentAchSubConfigCodeKeyType, PaymentAchSubConfigCodeType, VendorCurrency } from './billPayConfigState';
7
7
  export interface BillPayConfigPayload {
8
8
  bill_pay_bot_email: string;
9
9
  is_us_domestic_wire_enabled: boolean;
@@ -106,10 +106,6 @@ export declare const getBillPaymentWireSubConfigCodeKey: (subCode: BillPaymentWi
106
106
  export declare const getInternationalSubConfigCodeKey: (subCode: InternationalSubConfigCodeType) => InternationalSubConfigCodeKeyType;
107
107
  export declare const getInternationalWireMethodCodeKey: (subCode: InternationalWireMethodCodeType) => InternationalWireMethodCodeKeyType;
108
108
  export declare const getAccountTypeSubConfigCodeKey: (subCode: AccType) => AccountTypeSubConfigCodeKeyType;
109
- export interface TimelineDetail {
110
- minPeriod: ConfigPeriod;
111
- maxPeriod: ConfigPeriod;
112
- }
113
109
  export declare const mapBillPayConfigPayloadToBillPayConfig: (paymentProcessor: BillPayConfigPaymentProcessorPayload, isEnabled: boolean, isVerified: boolean, code: BillPaymentConfigCodeType, subCode: BillPaymentSubConfigCodeType, accType?: AccType, internationalMethod?: InternationalWireMethodCodeType, internationalSubMethod?: InternationalSubConfigCodeType) => BillPayConfig;
114
110
  export declare const mapBillPayVendorConfigPayloadToBillPayVendorConfig: (payload: BillPayConfigPayload, code: BillPaymentConfigCodeType, subCode: BillPaymentSubConfigCodeType) => Currency[];
115
111
  export declare const toVendorCurrency: (payload: VendorCurrencyPayload) => VendorCurrency;
@@ -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))}`)
@@ -10,14 +10,13 @@ import { openSnackbar } from '../../../../../entity/snackbar/snackbarReducer';
10
10
  import { TransactionWithAccountAndClassLinePayload } from '../../../../../entity/transaction/payloadTypes/transactionLinePayload';
11
11
  import { RootState } from '../../../../../reducer';
12
12
  import { ZeniAPI } from '../../../../../zeniAPI';
13
- import { ZeniAccountPaymentMethod } from '../../../zeniAccounts/zeniAccountsConfig/zeniAccountsConfigState';
14
13
  import { BillPayConfig, BillPaymentConfigCodeType, BillPaymentSubConfigCodeType } from '../../billPayConfig/billPayConfigState';
15
14
  import { saveBillDetail, saveBillSuccessOrFailure } from '../editBillViewReducer';
16
15
  import { EditBillDetail } from '../editBillViewState';
17
16
  export type ActionType = ReturnType<typeof saveBillDetail> | ReturnType<typeof updateBillTransaction> | ReturnType<typeof openSnackbar> | ReturnType<typeof saveBillSuccessOrFailure> | ReturnType<typeof updateRecurringBillConfigs> | ReturnType<typeof updateRecurringBills>;
18
17
  export declare const saveBillDetailEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<ActionType>;
19
18
  export declare function prepareSaveBillPayload(accountState: AccountState, billTransactionState: BillTransactionState, paymentAccountState: PaymentAccountState, recurringBillState: RecurringBillState, billDetail: EditBillDetail, billStageCode: BillStageCodeType, isForMarkAsPaid: boolean, isApproverMarkingAsPaid: boolean): Partial<SaveBillPayload>;
20
- export declare const getBillPaymentMethodTypePayload: (paymentType?: BillPayConfig | ZeniAccountPaymentMethod) => BillPaymentMethodTypePayload;
19
+ export declare const getBillPaymentMethodTypePayload: (paymentType?: BillPayConfig) => BillPaymentMethodTypePayload;
21
20
  interface BillPaymentMethodTypePayload {
22
21
  code: BillPaymentConfigCodeType | null;
23
22
  name: string;
@@ -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;
@@ -2,8 +2,8 @@ import { ActionsObservable, StateObservable } from 'redux-observable';
2
2
  import { Observable } from 'rxjs';
3
3
  import { RootState } from '../../../../../reducer';
4
4
  import { fetchVendorTypeList } from '../../../../vendorTypeList/vendorTypeListReducer';
5
+ import { fetchBillPayConfig } from '../../../billPay/billPayConfig/billPayConfigReducer';
5
6
  import { fetchDepositAccountList } from '../../depositAccountList/depositAccountListReducer';
6
- import { fetchZeniAccountsConfig } from '../../zeniAccountsConfig/zeniAccountsConfigReducer';
7
7
  import { fetchExpressPayInitialDetails, updateExpressPayFetchState } from '../expressPayReducer';
8
- export type ActionType = ReturnType<typeof fetchExpressPayInitialDetails> | ReturnType<typeof fetchZeniAccountsConfig> | ReturnType<typeof fetchVendorTypeList> | ReturnType<typeof fetchDepositAccountList> | ReturnType<typeof updateExpressPayFetchState>;
8
+ export type ActionType = ReturnType<typeof fetchExpressPayInitialDetails> | ReturnType<typeof fetchBillPayConfig> | ReturnType<typeof fetchVendorTypeList> | ReturnType<typeof fetchDepositAccountList> | ReturnType<typeof updateExpressPayFetchState>;
9
9
  export declare const fetchExpressPayInitialDetailsEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
@@ -4,16 +4,16 @@ exports.fetchExpressPayInitialDetailsEpic = void 0;
4
4
  const rxjs_1 = require("rxjs");
5
5
  const operators_1 = require("rxjs/operators");
6
6
  const vendorTypeListReducer_1 = require("../../../../vendorTypeList/vendorTypeListReducer");
7
+ const billPayConfigReducer_1 = require("../../../billPay/billPayConfig/billPayConfigReducer");
7
8
  const depositAccountListReducer_1 = require("../../depositAccountList/depositAccountListReducer");
8
- const zeniAccountsConfigReducer_1 = require("../../zeniAccountsConfig/zeniAccountsConfigReducer");
9
9
  const expressPayReducer_1 = require("../expressPayReducer");
10
10
  const fetchExpressPayInitialDetailsEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(expressPayReducer_1.fetchExpressPayInitialDetails.match), (0, operators_1.mergeMap)((action) => {
11
- const { cacheOverride } = action.payload;
11
+ const { cacheOverride, isInternationalWireEnabled } = action.payload;
12
12
  const state = state$.value;
13
13
  const fetchActions = [];
14
14
  if (cacheOverride === true) {
15
15
  fetchActions.push((0, vendorTypeListReducer_1.fetchVendorTypeList)());
16
- fetchActions.push((0, zeniAccountsConfigReducer_1.fetchZeniAccountsConfig)());
16
+ fetchActions.push((0, billPayConfigReducer_1.fetchBillPayConfig)(isInternationalWireEnabled));
17
17
  fetchActions.push((0, depositAccountListReducer_1.fetchDepositAccountList)());
18
18
  fetchActions.push((0, expressPayReducer_1.updateExpressPayFetchState)());
19
19
  }
@@ -22,10 +22,10 @@ const fetchExpressPayInitialDetailsEpic = (actions$, state$) => actions$.pipe((0
22
22
  state.vendorTypeListState.fetchState !== 'In-Progress') {
23
23
  fetchActions.push((0, vendorTypeListReducer_1.fetchVendorTypeList)());
24
24
  }
25
- const zeniAccountsConfig = state.zeniAccountsConfigState;
26
- if (zeniAccountsConfig.hasValidState() === false &&
27
- zeniAccountsConfig.fetchState !== 'In-Progress') {
28
- fetchActions.push((0, zeniAccountsConfigReducer_1.fetchZeniAccountsConfig)());
25
+ const billPayConfigFetchState = state.billPayConfigState.fetchState;
26
+ if (billPayConfigFetchState !== 'Completed' &&
27
+ billPayConfigFetchState !== 'In-Progress') {
28
+ fetchActions.push((0, billPayConfigReducer_1.fetchBillPayConfig)(isInternationalWireEnabled));
29
29
  }
30
30
  const depositAccounts = state.depositAccountListState;
31
31
  if (depositAccounts.fetchState !== 'In-Progress' &&
@@ -5,9 +5,9 @@ import { File } from '../../../../entity/file/fileState';
5
5
  import { RootState } from '../../../../reducer';
6
6
  import { VendorViewSelectorView } from '../../../commonVendorView/vendorView/vendorViewSelector';
7
7
  import { VendorType } from '../../../vendorTypeList/vendorTypeListPayload';
8
+ import { BillPayConfig } from '../../billPay/billPayConfig/billPayConfigState';
8
9
  import { PaymentDetailsSectionView, PaymentToOption } from '../../billPay/editBillView/editBillViewSelector';
9
10
  import { FundingAccount } from '../../commonSetup/setupViewSelector';
10
- import { ZeniAccountPaymentMethod } from '../zeniAccountsConfig/zeniAccountsConfigState';
11
11
  import { ExpressPayFormLocalData } from './expressPayState';
12
12
  export interface ExpressPayView extends SelectorView {
13
13
  vendorViewDetails: VendorViewSelectorView;
@@ -15,7 +15,7 @@ export interface ExpressPayView extends SelectorView {
15
15
  expressPayLocalData?: ExpressPayFormLocalData;
16
16
  paymentDetails?: PaymentDetailsSectionView;
17
17
  paymentToOptions: PaymentToOption[];
18
- allPaymentMethods: ZeniAccountPaymentMethod[];
18
+ allPaymentMethods: BillPayConfig[];
19
19
  withdrawFromList: FundingAccount[];
20
20
  receiptFile?: File;
21
21
  internationalWireOnboardingStatus?: AllowedValueWithCode;
@@ -11,19 +11,18 @@ const fileViewSelector_1 = require("../../../fileView/fileViewSelector");
11
11
  const editBillViewSelector_1 = require("../../billPay/editBillView/editBillViewSelector");
12
12
  const setupViewSelector_1 = require("../../commonSetup/setupViewSelector");
13
13
  const depositAccountListSelector_1 = require("../depositAccountList/depositAccountListSelector");
14
- const zeniAccountsConfigSelector_1 = require("../zeniAccountsConfig/zeniAccountsConfigSelector");
15
14
  const getExpressPayView = (state) => {
16
15
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
17
16
  const deleteFileStatusById = {};
18
17
  const updateFileStatusById = {};
19
- const { tenantState, expressPayState, vendorTypeListState, bankAccountState, paymentInstrumentState, vendorViewState, depositAccountState, depositAccountListState, paymentAccountListState, zeniAccountsConfigState, } = state;
18
+ const { tenantState, expressPayState, vendorTypeListState, bankAccountState, paymentInstrumentState, billPayConfigState, vendorViewState, depositAccountState, depositAccountListState, paymentAccountListState, } = state;
20
19
  const { currentTenantId } = tenantState;
21
20
  const companyId = currentTenantId != null
22
21
  ? (_b = (_a = tenantState.tenantsById) === null || _a === void 0 ? void 0 : _a[currentTenantId]) === null || _b === void 0 ? void 0 : _b.companyId
23
22
  : undefined;
24
23
  const companyView = (0, getCompanyView_1.getCompanyView)(state, companyId !== null && companyId !== void 0 ? companyId : '', []);
25
24
  const vendorTypeList = vendorTypeListState.vendorTypes;
26
- const allPaymentMethods = (0, zeniAccountsConfigSelector_1.getZeniAccountsConfigDetail)(state).zeniAccountsConfigDetail.paymentMethods;
25
+ const allPaymentMethods = (0, editBillViewSelector_1.getBillPayConfigList)(billPayConfigState);
27
26
  const vendorId = (_c = expressPayState.formLocalData) === null || _c === void 0 ? void 0 : _c.vendorId;
28
27
  const vendorViewDetails = (0, vendorViewSelector_1.getVendorView)(state, vendorId);
29
28
  const vendorLocalData = vendorId != null
@@ -54,8 +53,8 @@ const getExpressPayView = (state) => {
54
53
  error: vendorTypeListState.error,
55
54
  },
56
55
  {
57
- fetchState: zeniAccountsConfigState.fetchState,
58
- error: zeniAccountsConfigState.error,
56
+ fetchState: billPayConfigState.fetchState,
57
+ error: billPayConfigState.error,
59
58
  },
60
59
  {
61
60
  fetchState: depositAccountListState.fetchState,
@@ -1,8 +1,8 @@
1
1
  import { Amount } from '../../../../commonStateTypes/amount';
2
2
  import { FetchStateAndError, ID } from '../../../../commonStateTypes/common';
3
3
  import { ZeniDate } from '../../../../zeniDayJS';
4
+ import { BillPayConfig } from '../../billPay/billPayConfig/billPayConfigState';
4
5
  import { FundingAccount } from '../../commonSetup/setupViewSelector';
5
- import { ZeniAccountPaymentMethod } from '../zeniAccountsConfig/zeniAccountsConfigState';
6
6
  export interface ExpressPayState extends FetchStateAndError {
7
7
  expressPayId?: ID;
8
8
  formLocalData?: ExpressPayFormLocalData;
@@ -12,7 +12,7 @@ export interface ExpressPayFormLocalData {
12
12
  vendorId?: ID;
13
13
  withdrawFrom?: FundingAccount;
14
14
  paymentToAccountId?: ID;
15
- paymentType?: ZeniAccountPaymentMethod;
15
+ paymentType?: BillPayConfig;
16
16
  amount: Amount;
17
17
  paymentDate: ZeniDate;
18
18
  receiptFileId?: ID;