@zeniai/client-epic-state 4.20.11 → 5.0.0-betaRD1

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 (350) hide show
  1. package/lib/common/aiCfo/aiCfoSuggestedQuestionsPageContext.d.ts +19 -0
  2. package/lib/common/aiCfo/aiCfoSuggestedQuestionsPageContext.js +2 -0
  3. package/lib/commonPayloadTypes/subAccountView/reportBySubAccountPayload.d.ts +2 -0
  4. package/lib/commonStateTypes/animations.d.ts +1 -1
  5. package/lib/commonStateTypes/animations.js +3 -0
  6. package/lib/commonStateTypes/coaBalance/coaBalancesFilterProjectView.d.ts +13 -0
  7. package/lib/commonStateTypes/coaBalance/coaBalancesFilterProjectView.js +9 -0
  8. package/lib/commonStateTypes/common.d.ts +1 -1
  9. package/lib/commonStateTypes/projectView/projectViewParentID.d.ts +5 -0
  10. package/lib/commonStateTypes/projectView/projectViewParentID.js +2 -0
  11. package/lib/commonStateTypes/viewAndReport/reportIDHelper.d.ts +1 -0
  12. package/lib/commonStateTypes/viewAndReport/reportIDHelper.js +3 -1
  13. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
  14. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +2 -0
  15. package/lib/entity/account/accountPayload.d.ts +2 -0
  16. package/lib/entity/account/accountReducer.d.ts +5 -2
  17. package/lib/entity/account/accountReducer.js +12 -5
  18. package/lib/entity/account/accountSelector.d.ts +7 -0
  19. package/lib/entity/account/accountSelector.js +4 -2
  20. package/lib/entity/account/accountState.d.ts +3 -1
  21. package/lib/entity/account/accountState.js +4 -1
  22. package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +1 -0
  23. package/lib/entity/account/subAccountSelector.d.ts +2 -0
  24. package/lib/entity/account/subAccountSelector.js +2 -0
  25. package/lib/entity/accountGroup/accountGroupSelector.d.ts +22 -0
  26. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  27. package/lib/entity/accountRecon/accountReconPayload.d.ts +1 -1
  28. package/lib/entity/accountRecon/accountReconPayload.js +4 -2
  29. package/lib/entity/aiCfo/aiCfoSelector.d.ts +1 -2
  30. package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +2 -2
  31. package/lib/entity/class/classReducer.d.ts +4 -4
  32. package/lib/entity/class/classState.d.ts +1 -1
  33. package/lib/entity/forecast/forecastState.d.ts +1 -1
  34. package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +38 -0
  35. package/lib/entity/jeSchedules/jeSchedulesPayload.js +78 -0
  36. package/lib/entity/jeSchedules/jeSchedulesSelector.d.ts +4 -1
  37. package/lib/entity/jeSchedules/jeSchedulesSelector.js +5 -1
  38. package/lib/entity/jeSchedules/jeSchedulesState.d.ts +37 -0
  39. package/lib/entity/project/projectPayload.d.ts +13 -0
  40. package/lib/entity/project/projectPayload.js +30 -0
  41. package/lib/entity/project/projectReducer.d.ts +10 -0
  42. package/lib/entity/project/projectReducer.js +31 -0
  43. package/lib/entity/project/projectSelector.d.ts +5 -0
  44. package/lib/entity/project/projectSelector.js +12 -0
  45. package/lib/entity/project/projectState.d.ts +13 -0
  46. package/lib/entity/project/projectState.js +2 -0
  47. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  48. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  49. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  50. package/lib/entity/sectionProjectView/sectionProjectView.d.ts +11 -0
  51. package/lib/entity/sectionProjectView/sectionProjectView.js +6 -0
  52. package/lib/entity/sectionProjectView/sectionProjectViewEpic.d.ts +6 -0
  53. package/lib/entity/sectionProjectView/sectionProjectViewEpic.js +56 -0
  54. package/lib/entity/sectionProjectView/sectionProjectViewHelper.d.ts +10 -0
  55. package/lib/entity/sectionProjectView/sectionProjectViewHelper.js +14 -0
  56. package/lib/entity/sectionProjectView/sectionProjectViewReducer.d.ts +15 -0
  57. package/lib/entity/sectionProjectView/sectionProjectViewReducer.js +56 -0
  58. package/lib/entity/sectionProjectView/sectionProjectViewSelector.d.ts +11 -0
  59. package/lib/entity/sectionProjectView/sectionProjectViewSelector.js +94 -0
  60. package/lib/entity/sectionProjectView/sectionProjectViewSelectorTypes.d.ts +16 -0
  61. package/lib/entity/sectionProjectView/sectionProjectViewSelectorTypes.js +2 -0
  62. package/lib/entity/sectionProjectView/sectionProjectViewState.d.ts +4 -0
  63. package/lib/entity/sectionProjectView/sectionProjectViewState.js +2 -0
  64. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  65. package/lib/entity/snackbar/snackbarTypes.js +7 -0
  66. package/lib/entity/tenant/clearAllEpic.d.ts +5 -2
  67. package/lib/entity/tenant/clearAllEpic.js +6 -0
  68. package/lib/entity/tenant/tenantPayload.d.ts +2 -0
  69. package/lib/entity/tenant/tenantReducer.d.ts +5 -2
  70. package/lib/entity/tenant/tenantReducer.js +10 -2
  71. package/lib/entity/tenant/tenantSelector.d.ts +2 -0
  72. package/lib/entity/tenant/tenantSelector.js +17 -1
  73. package/lib/entity/tenant/tenantState.d.ts +2 -0
  74. package/lib/entity/transaction/payloadTypes/scheduleTransactionPayload.d.ts +4 -1
  75. package/lib/entity/transaction/payloadTypes/scheduleTransactionPayload.js +1 -0
  76. package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +9 -0
  77. package/lib/entity/transaction/payloadTypes/transactionPayload.js +79 -1
  78. package/lib/entity/transaction/stateTypes/scheduleTransaction.d.ts +1 -0
  79. package/lib/entity/transaction/stateTypes/transaction.d.ts +11 -0
  80. package/lib/entity/transaction/stateTypes/transactionLine.d.ts +1 -1
  81. package/lib/epic.d.ts +18 -1
  82. package/lib/epic.js +18 -1
  83. package/lib/esm/common/aiCfo/aiCfoSuggestedQuestionsPageContext.js +1 -0
  84. package/lib/esm/commonStateTypes/animations.js +3 -0
  85. package/lib/esm/commonStateTypes/coaBalance/coaBalancesFilterProjectView.js +5 -0
  86. package/lib/esm/commonStateTypes/projectView/projectViewParentID.js +1 -0
  87. package/lib/esm/commonStateTypes/viewAndReport/reportIDHelper.js +1 -0
  88. package/lib/esm/commonStateTypes/viewAndReport/viewAndReport.js +2 -0
  89. package/lib/esm/entity/account/accountReducer.js +11 -4
  90. package/lib/esm/entity/account/accountSelector.js +4 -2
  91. package/lib/esm/entity/account/accountState.js +4 -1
  92. package/lib/esm/entity/account/subAccountSelector.js +2 -0
  93. package/lib/esm/entity/accountRecon/accountReconPayload.js +4 -2
  94. package/lib/esm/entity/jeSchedules/jeSchedulesPayload.js +78 -0
  95. package/lib/esm/entity/jeSchedules/jeSchedulesSelector.js +5 -1
  96. package/lib/esm/entity/project/projectPayload.js +26 -0
  97. package/lib/esm/entity/project/projectReducer.js +27 -0
  98. package/lib/esm/entity/project/projectSelector.js +8 -0
  99. package/lib/esm/entity/project/projectState.js +1 -0
  100. package/lib/esm/entity/sectionProjectView/sectionProjectView.js +3 -0
  101. package/lib/esm/entity/sectionProjectView/sectionProjectViewEpic.js +52 -0
  102. package/lib/esm/entity/sectionProjectView/sectionProjectViewHelper.js +10 -0
  103. package/lib/esm/entity/sectionProjectView/sectionProjectViewReducer.js +52 -0
  104. package/lib/esm/entity/sectionProjectView/sectionProjectViewSelector.js +87 -0
  105. package/lib/esm/entity/sectionProjectView/sectionProjectViewSelectorTypes.js +1 -0
  106. package/lib/esm/entity/sectionProjectView/sectionProjectViewState.js +1 -0
  107. package/lib/esm/entity/snackbar/snackbarTypes.js +7 -0
  108. package/lib/esm/entity/tenant/clearAllEpic.js +6 -0
  109. package/lib/esm/entity/tenant/tenantReducer.js +9 -1
  110. package/lib/esm/entity/tenant/tenantSelector.js +14 -0
  111. package/lib/esm/entity/transaction/payloadTypes/scheduleTransactionPayload.js +1 -0
  112. package/lib/esm/entity/transaction/payloadTypes/transactionPayload.js +79 -1
  113. package/lib/esm/epic.js +18 -1
  114. package/lib/esm/index.js +23 -17
  115. package/lib/esm/reducer.js +12 -0
  116. package/lib/esm/view/aiCfoView/aiCfoViewReducer.js +82 -1
  117. package/lib/esm/view/aiCfoView/aiCfoViewSelector.js +8 -2
  118. package/lib/esm/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.js +29 -0
  119. package/lib/esm/view/classList/fetchClassListEpic.js +9 -2
  120. package/lib/esm/view/commonVendorView/vendorView/vendorViewSelector.js +18 -5
  121. package/lib/esm/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.js +6 -2
  122. package/lib/esm/view/companyTaskManagerView/companyTaskManagerViewReducer.js +19 -1
  123. package/lib/esm/view/companyTaskManagerView/companyTaskManagerViewSelector.js +3 -1
  124. package/lib/esm/view/companyTaskManagerView/epics/fetchTaskManagerMetricsEpic.js +17 -0
  125. package/lib/esm/view/companyView/companyViewReducer.js +26 -1
  126. package/lib/esm/view/companyView/epic/companyPassport/updateAccountingClassesEnabledEpic.js +61 -0
  127. package/lib/esm/view/companyView/types/companyPassport/companyPassportViewState.js +4 -0
  128. package/lib/esm/view/expenseAutomationView/epics/accountRecon/excludeAccountFromReconciliationEpic.js +44 -0
  129. package/lib/esm/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +4 -9
  130. package/lib/esm/view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic.js +44 -0
  131. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +2 -2
  132. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/bulkUploadMatchResultToastEpic.js +33 -0
  133. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/bulkUploadReceiptsEpic.js +3 -3
  134. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchesEpic.js +6 -4
  135. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/refetchCompletedTransactionsOnBulkUploadSortEpic.js +12 -0
  136. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/restoreBulkUploadAutomatchingOnMountEpic.js +98 -0
  137. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js +7 -13
  138. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/watchBulkUploadBatchStatusEpic.js +13 -5
  139. package/lib/esm/view/expenseAutomationView/expenseAutomationViewSelector.js +0 -1
  140. package/lib/esm/view/expenseAutomationView/{bulkUploadTiming.js → helpers/bulkUploadTiming.js} +6 -0
  141. package/lib/esm/view/expenseAutomationView/helpers/rollingCalendarDateRangeInclusive.js +13 -0
  142. package/lib/esm/view/expenseAutomationView/helpers/saveTransactionHelper.js +2 -2
  143. package/lib/esm/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +2 -2
  144. package/lib/esm/view/expenseAutomationView/payload/missingReceiptsPayload.js +9 -0
  145. package/lib/esm/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +21 -1
  146. package/lib/esm/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +26 -3
  147. package/lib/esm/view/expenseAutomationView/reducers/reconciliationViewReducer.js +167 -3
  148. package/lib/esm/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +1 -2
  149. package/lib/esm/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.js +10 -2
  150. package/lib/esm/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +63 -6
  151. package/lib/esm/view/expenseAutomationView/selectors/missingReceiptsSelector.js +14 -4
  152. package/lib/esm/view/expenseAutomationView/selectors/reconciliationViewSelector.js +136 -9
  153. package/lib/esm/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +15 -5
  154. package/lib/esm/view/expenseAutomationView/types/jeSchedulesViewState.js +24 -1
  155. package/lib/esm/view/financeStatement/financeStatementSelector.js +12 -1
  156. package/lib/esm/view/profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelector.js +3 -0
  157. package/lib/esm/view/profitAndLossProjectView/profitAndLossForTimeframeProjectViewEpic.js +47 -0
  158. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewEpic.js +30 -0
  159. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewPayload.js +1 -0
  160. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewReducer.js +113 -0
  161. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewSelector.js +67 -0
  162. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewSelectorTypes.js +1 -0
  163. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewState.js +1 -0
  164. package/lib/esm/view/reportsResync/reportsClassViewRefetchingEpic.js +4 -0
  165. package/lib/esm/view/spendManagement/autotransferRules/autoTransferRulesPayload.js +26 -0
  166. package/lib/esm/view/spendManagement/autotransferRules/autoTransferRulesReducer.js +199 -0
  167. package/lib/esm/view/spendManagement/autotransferRules/autoTransferRulesSelector.js +52 -0
  168. package/lib/esm/view/spendManagement/autotransferRules/autoTransferRulesState.js +1 -0
  169. package/lib/esm/view/spendManagement/autotransferRules/epics/createAutoTransferRuleEpic.js +100 -0
  170. package/lib/esm/view/spendManagement/autotransferRules/epics/deleteAutoTransferRuleEpic.js +48 -0
  171. package/lib/esm/view/spendManagement/autotransferRules/epics/fetchAutoTransferReviewDetailEpic.js +36 -0
  172. package/lib/esm/view/spendManagement/autotransferRules/epics/fetchAutoTransferRuleHistory.js +45 -0
  173. package/lib/esm/view/spendManagement/autotransferRules/epics/fetchAutoTransferRulesEpic.js +50 -0
  174. package/lib/esm/view/spendManagement/autotransferRules/epics/updateAutoTransferRuleEpic.js +69 -0
  175. package/lib/esm/view/spendManagement/billPay/billList/billListSelector.js +10 -0
  176. package/lib/esm/view/spendManagement/billPay/billList/billListState.js +1 -0
  177. package/lib/esm/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +7 -3
  178. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewSelector.js +5 -5
  179. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPayApproversDetailsEpic.js +7 -2
  180. package/lib/esm/view/spendManagement/billPay/editBillView/editBillViewSelector.js +13 -6
  181. package/lib/esm/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +1 -0
  182. package/lib/esm/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +2 -0
  183. package/lib/esm/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.js +7 -4
  184. package/lib/esm/view/spendManagement/reimbursement/remiListView/remiListSelector.js +12 -0
  185. package/lib/esm/view/spendManagement/reimbursement/remiListView/remiListState.js +1 -0
  186. package/lib/esm/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryDetailEpic.js +2 -2
  187. package/lib/esm/view/spendManagement/treasury/treasuryList/treasuryDetailReducer.js +2 -1
  188. package/lib/esm/view/taskManager/taskDetailView/taskDetailSelector.js +2 -2
  189. package/lib/esm/view/transactionDetail/epics/saveTransactionHelper.js +2 -2
  190. package/lib/esm/view/transactionDetail/transactionDetailLocalDataHelper.js +16 -14
  191. package/lib/esm/view/transactionDetail/transactionDetailSelector.js +9 -2
  192. package/lib/index.d.ts +37 -23
  193. package/lib/index.js +78 -34
  194. package/lib/reducer.d.ts +12 -0
  195. package/lib/reducer.js +12 -0
  196. package/lib/tsconfig.typecheck.tsbuildinfo +1 -0
  197. package/lib/view/aiCfoView/aiCfoViewPayload.d.ts +7 -0
  198. package/lib/view/aiCfoView/aiCfoViewReducer.d.ts +15 -1
  199. package/lib/view/aiCfoView/aiCfoViewReducer.js +83 -2
  200. package/lib/view/aiCfoView/aiCfoViewSelector.d.ts +4 -1
  201. package/lib/view/aiCfoView/aiCfoViewSelector.js +9 -2
  202. package/lib/view/aiCfoView/aiCfoViewState.d.ts +15 -1
  203. package/lib/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.d.ts +8 -0
  204. package/lib/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.js +33 -0
  205. package/lib/view/auditReportView/auditReportViewState.d.ts +2 -2
  206. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  207. package/lib/view/cardBalance/cardBalanceSelector.d.ts +2 -1
  208. package/lib/view/cashBalance/cashBalanceSelector.d.ts +2 -1
  209. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  210. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  211. package/lib/view/classList/fetchClassListEpic.d.ts +1 -1
  212. package/lib/view/classList/fetchClassListEpic.js +8 -1
  213. package/lib/view/commonVendorView/vendorView/vendorViewSelector.d.ts +1 -0
  214. package/lib/view/commonVendorView/vendorView/vendorViewSelector.js +18 -5
  215. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.d.ts +1 -0
  216. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.js +6 -2
  217. package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.d.ts +2 -2
  218. package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.js +20 -2
  219. package/lib/view/companyTaskManagerView/companyTaskManagerViewSelector.d.ts +4 -1
  220. package/lib/view/companyTaskManagerView/companyTaskManagerViewSelector.js +3 -1
  221. package/lib/view/companyTaskManagerView/companyTaskManagerViewState.d.ts +9 -1
  222. package/lib/view/companyTaskManagerView/epics/fetchTaskManagerMetricsEpic.d.ts +7 -0
  223. package/lib/view/companyTaskManagerView/epics/fetchTaskManagerMetricsEpic.js +21 -0
  224. package/lib/view/companyView/companyViewReducer.d.ts +6 -1
  225. package/lib/view/companyView/companyViewReducer.js +28 -2
  226. package/lib/view/companyView/epic/companyPassport/updateAccountingClassesEnabledEpic.d.ts +10 -0
  227. package/lib/view/companyView/epic/companyPassport/updateAccountingClassesEnabledEpic.js +65 -0
  228. package/lib/view/companyView/types/companyPassport/companyPassportViewState.d.ts +1 -0
  229. package/lib/view/companyView/types/companyPassport/companyPassportViewState.js +4 -0
  230. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  231. package/lib/view/expenseAutomationView/epics/accountRecon/excludeAccountFromReconciliationEpic.d.ts +8 -0
  232. package/lib/view/expenseAutomationView/epics/accountRecon/excludeAccountFromReconciliationEpic.js +48 -0
  233. package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +4 -9
  234. package/lib/view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic.d.ts +9 -0
  235. package/lib/view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic.js +48 -0
  236. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +2 -2
  237. package/lib/view/expenseAutomationView/epics/missingReceipts/bulkUploadMatchResultToastEpic.d.ts +13 -0
  238. package/lib/view/expenseAutomationView/epics/missingReceipts/bulkUploadMatchResultToastEpic.js +37 -0
  239. package/lib/view/expenseAutomationView/epics/missingReceipts/bulkUploadReceiptsEpic.js +2 -2
  240. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchesEpic.js +5 -3
  241. package/lib/view/expenseAutomationView/epics/missingReceipts/refetchCompletedTransactionsOnBulkUploadSortEpic.d.ts +10 -0
  242. package/lib/view/expenseAutomationView/epics/missingReceipts/refetchCompletedTransactionsOnBulkUploadSortEpic.js +16 -0
  243. package/lib/view/expenseAutomationView/epics/missingReceipts/restoreBulkUploadAutomatchingOnMountEpic.d.ts +18 -0
  244. package/lib/view/expenseAutomationView/epics/missingReceipts/restoreBulkUploadAutomatchingOnMountEpic.js +102 -0
  245. package/lib/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js +7 -13
  246. package/lib/view/expenseAutomationView/epics/missingReceipts/watchBulkUploadBatchStatusEpic.d.ts +2 -2
  247. package/lib/view/expenseAutomationView/epics/missingReceipts/watchBulkUploadBatchStatusEpic.js +12 -4
  248. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +0 -1
  249. package/lib/view/expenseAutomationView/{bulkUploadTiming.d.ts → helpers/bulkUploadTiming.d.ts} +6 -0
  250. package/lib/view/expenseAutomationView/{bulkUploadTiming.js → helpers/bulkUploadTiming.js} +7 -1
  251. package/lib/view/expenseAutomationView/helpers/rollingCalendarDateRangeInclusive.d.ts +7 -0
  252. package/lib/view/expenseAutomationView/helpers/rollingCalendarDateRangeInclusive.js +16 -0
  253. package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.js +2 -2
  254. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
  255. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +2 -2
  256. package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.d.ts +1 -1
  257. package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.d.ts +5 -0
  258. package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.js +10 -0
  259. package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +45 -0
  260. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +2 -2
  261. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +22 -2
  262. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.d.ts +12 -2
  263. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +27 -4
  264. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +18 -4
  265. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +168 -4
  266. package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.d.ts +2 -0
  267. package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.d.ts +2 -0
  268. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +7 -2
  269. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +2 -2
  270. package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.js +10 -2
  271. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +63 -6
  272. package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.js +14 -4
  273. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +136 -9
  274. package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +13 -3
  275. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +8 -0
  276. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.js +27 -0
  277. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +4 -0
  278. package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +14 -0
  279. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  280. package/lib/view/financeStatement/financeStatementSelector.d.ts +2 -0
  281. package/lib/view/financeStatement/financeStatementSelector.js +12 -1
  282. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  283. package/lib/view/onboardingView/cockpitView/types/onboardingCockpitViewTypes.d.ts +1 -1
  284. package/lib/view/profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelector.js +3 -0
  285. package/lib/view/profitAndLossProjectView/profitAndLossForTimeframeProjectViewEpic.d.ts +9 -0
  286. package/lib/view/profitAndLossProjectView/profitAndLossForTimeframeProjectViewEpic.js +51 -0
  287. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewEpic.d.ts +6 -0
  288. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewEpic.js +34 -0
  289. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewPayload.d.ts +33 -0
  290. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewPayload.js +2 -0
  291. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewReducer.d.ts +33 -0
  292. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewReducer.js +117 -0
  293. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewSelector.d.ts +9 -0
  294. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewSelector.js +71 -0
  295. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewSelectorTypes.d.ts +19 -0
  296. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewSelectorTypes.js +2 -0
  297. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewState.d.ts +22 -0
  298. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewState.js +2 -0
  299. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  300. package/lib/view/reportsResync/reportsClassViewRefetchingEpic.d.ts +2 -1
  301. package/lib/view/reportsResync/reportsClassViewRefetchingEpic.js +4 -0
  302. package/lib/view/reportsResync/reportsResyncReducer.d.ts +2 -2
  303. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  304. package/lib/view/spendManagement/autotransferRules/autoTransferRulesPayload.d.ts +75 -0
  305. package/lib/view/spendManagement/autotransferRules/autoTransferRulesPayload.js +30 -0
  306. package/lib/view/spendManagement/autotransferRules/autoTransferRulesReducer.d.ts +50 -0
  307. package/lib/view/spendManagement/autotransferRules/autoTransferRulesReducer.js +206 -0
  308. package/lib/view/spendManagement/autotransferRules/autoTransferRulesSelector.d.ts +24 -0
  309. package/lib/view/spendManagement/autotransferRules/autoTransferRulesSelector.js +61 -0
  310. package/lib/view/spendManagement/autotransferRules/autoTransferRulesState.d.ts +38 -0
  311. package/lib/view/spendManagement/autotransferRules/autoTransferRulesState.js +2 -0
  312. package/lib/view/spendManagement/autotransferRules/epics/createAutoTransferRuleEpic.d.ts +12 -0
  313. package/lib/view/spendManagement/autotransferRules/epics/createAutoTransferRuleEpic.js +106 -0
  314. package/lib/view/spendManagement/autotransferRules/epics/deleteAutoTransferRuleEpic.d.ts +8 -0
  315. package/lib/view/spendManagement/autotransferRules/epics/deleteAutoTransferRuleEpic.js +52 -0
  316. package/lib/view/spendManagement/autotransferRules/epics/fetchAutoTransferReviewDetailEpic.d.ts +7 -0
  317. package/lib/view/spendManagement/autotransferRules/epics/fetchAutoTransferReviewDetailEpic.js +40 -0
  318. package/lib/view/spendManagement/autotransferRules/epics/fetchAutoTransferRuleHistory.d.ts +7 -0
  319. package/lib/view/spendManagement/autotransferRules/epics/fetchAutoTransferRuleHistory.js +52 -0
  320. package/lib/view/spendManagement/autotransferRules/epics/fetchAutoTransferRulesEpic.d.ts +10 -0
  321. package/lib/view/spendManagement/autotransferRules/epics/fetchAutoTransferRulesEpic.js +54 -0
  322. package/lib/view/spendManagement/autotransferRules/epics/updateAutoTransferRuleEpic.d.ts +8 -0
  323. package/lib/view/spendManagement/autotransferRules/epics/updateAutoTransferRuleEpic.js +73 -0
  324. package/lib/view/spendManagement/billPay/billList/billListSelector.js +10 -0
  325. package/lib/view/spendManagement/billPay/billList/billListState.d.ts +1 -1
  326. package/lib/view/spendManagement/billPay/billList/billListState.js +1 -0
  327. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +7 -3
  328. package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewSelector.js +5 -5
  329. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPayApproversDetailsEpic.js +7 -2
  330. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +13 -6
  331. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +1 -1
  332. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +1 -1
  333. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +1 -0
  334. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +2 -0
  335. package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.js +6 -3
  336. package/lib/view/spendManagement/reimbursement/remiListView/remiListSelector.d.ts +1 -0
  337. package/lib/view/spendManagement/reimbursement/remiListView/remiListSelector.js +12 -0
  338. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +1 -1
  339. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.js +1 -0
  340. package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryDetailEpic.js +2 -2
  341. package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailReducer.d.ts +2 -1
  342. package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailReducer.js +2 -1
  343. package/lib/view/taskManager/taskDetailView/taskDetailSelector.js +2 -2
  344. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  345. package/lib/view/topEx/topExSelector.d.ts +1 -1
  346. package/lib/view/transactionDetail/epics/saveTransactionHelper.js +2 -2
  347. package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +16 -14
  348. package/lib/view/transactionDetail/transactionDetailSelector.d.ts +1 -0
  349. package/lib/view/transactionDetail/transactionDetailSelector.js +9 -2
  350. package/package.json +1 -1
@@ -0,0 +1,52 @@
1
+ import { from } from 'rxjs';
2
+ import { filter, mergeMap } from 'rxjs/operators';
3
+ import { getAllAccountMetadataRecordsByID, getParentAccountId, } from '../../commonStateTypes/accountView/getNestedAccountIDHierarchyForReport';
4
+ import { updateMultipleSubAccountsWithBalances } from '../account/accountReducer';
5
+ import { updateSectionProjectView } from './sectionProjectViewReducer';
6
+ export const updateSectionProjectViewEpic = (actions$) => actions$.pipe(filter(updateSectionProjectView.match), mergeMap((action) => {
7
+ const actions = [];
8
+ const sectionPayload = action.payload.sectionPayload;
9
+ const sectionId = action.payload.sectionId;
10
+ const timeframe = action.payload.timeframe;
11
+ const reportId = action.payload.reportId;
12
+ const currencyPayload = action.payload.currencyPayload;
13
+ const accountsMetadataPayload = action.payload.accountsMetadataPayload;
14
+ const accountMetadataRecordsByID = getAllAccountMetadataRecordsByID(accountsMetadataPayload);
15
+ const accountMetadataWithBalancesPayloads = [];
16
+ if (sectionPayload.projects != null) {
17
+ Object.keys(sectionPayload.projects).forEach((projectId) => {
18
+ const projectAccounts = sectionPayload.projects[projectId].accounts;
19
+ const projectsViewParentID = {
20
+ projectId,
21
+ sectionId,
22
+ };
23
+ getSubAccountsMetadataForProjectAccountList(projectAccounts, accountMetadataRecordsByID, sectionId, projectsViewParentID, accountMetadataWithBalancesPayloads);
24
+ });
25
+ }
26
+ if (accountMetadataWithBalancesPayloads.length > 0) {
27
+ actions.push(updateMultipleSubAccountsWithBalances(accountMetadataWithBalancesPayloads, currencyPayload, reportId, timeframe));
28
+ }
29
+ return from(actions);
30
+ }));
31
+ const getSubAccountsMetadataForProjectAccountList = (accountListWithBalances, accountMetadataRecordsByID, sectionId, projectsViewParentID, result) => {
32
+ if (accountListWithBalances != null) {
33
+ Object.keys(accountListWithBalances).forEach((eachAccountId) => {
34
+ const accountMetadataRecord = accountMetadataRecordsByID[eachAccountId];
35
+ if (accountMetadataRecord != null) {
36
+ const accountId = accountMetadataRecord.nestedAccountId;
37
+ result.push({
38
+ accountsViewParentID: {
39
+ parentAccountId: getParentAccountId(accountId),
40
+ sectionId,
41
+ },
42
+ accountMetadataPayload: accountMetadataRecord.accountMetadataPayload,
43
+ accountBalancesPayload: accountListWithBalances[eachAccountId],
44
+ projectsViewParentID,
45
+ });
46
+ }
47
+ else {
48
+ console.warn(`Account ${eachAccountId} in Section ${sectionId} Project ${projectsViewParentID.projectId} is missing metadata.`);
49
+ }
50
+ });
51
+ }
52
+ };
@@ -0,0 +1,10 @@
1
+ import { mapCOABalanceGroupedByPeriodPayloadV2ToCOABalanceGroupedByPeriod, } from '../../commonPayloadTypes/v2/coaBalancePayload';
2
+ import { getSectionProjectViewKey, } from './sectionProjectView';
3
+ export const mapProjectCOABalanceGroupedPayloadToSectionProjectView = (timeframe, projectBalancesPayload, currencyPayload, id) => {
4
+ return {
5
+ key: getSectionProjectViewKey(id.sectionId, id.projectId, id.reportId),
6
+ projectId: id.projectId,
7
+ sectionId: id.sectionId,
8
+ balancesByPeriod: mapCOABalanceGroupedByPeriodPayloadV2ToCOABalanceGroupedByPeriod(projectBalancesPayload, currencyPayload, timeframe),
9
+ };
10
+ };
@@ -0,0 +1,52 @@
1
+ import { createSlice } from '@reduxjs/toolkit';
2
+ import { mapCOABalanceGroupedByPeriodPayloadV2ToCOABalanceGroupedByPeriod } from '../../commonPayloadTypes/v2/coaBalancePayload';
3
+ import { getSectionProjectViewKey } from './sectionProjectView';
4
+ import { mapProjectCOABalanceGroupedPayloadToSectionProjectView } from './sectionProjectViewHelper';
5
+ export const initialState = {
6
+ sectionsByKey: {},
7
+ };
8
+ const sectionProjectView = createSlice({
9
+ name: 'sectionProjectView',
10
+ initialState,
11
+ reducers: {
12
+ updateSectionProjectView: {
13
+ prepare(timeframe, sectionId, reportId, sectionPayload, accountsMetadataPayload, currencyPayload) {
14
+ return {
15
+ payload: {
16
+ timeframe,
17
+ reportId,
18
+ sectionId,
19
+ sectionPayload,
20
+ accountsMetadataPayload,
21
+ currencyPayload,
22
+ },
23
+ };
24
+ },
25
+ reducer(draft, action) {
26
+ const { timeframe, sectionPayload, sectionId, reportId, currencyPayload } = action.payload;
27
+ if (sectionPayload.projects != null) {
28
+ Object.keys(sectionPayload.projects).forEach((projectId) => {
29
+ const projectPayload = sectionPayload.projects[projectId];
30
+ updateSectionProject(draft, timeframe, projectPayload, sectionId, projectId, reportId, currencyPayload);
31
+ });
32
+ }
33
+ },
34
+ },
35
+ clearAllSectionsProjectView(draft) {
36
+ Object.assign(draft, initialState);
37
+ },
38
+ },
39
+ });
40
+ export const { updateSectionProjectView, clearAllSectionsProjectView } = sectionProjectView.actions;
41
+ export default sectionProjectView.reducer;
42
+ const updateSectionProject = (draft, timeframe, projectPayload, sectionId, projectId, reportId, currencyPayload) => {
43
+ const sectionKey = getSectionProjectViewKey(sectionId, projectId, reportId);
44
+ const section = draft.sectionsByKey[sectionKey];
45
+ if (section != null) {
46
+ draft.sectionsByKey[sectionKey].balancesByPeriod = Object.assign({}, draft.sectionsByKey[sectionKey].balancesByPeriod, mapCOABalanceGroupedByPeriodPayloadV2ToCOABalanceGroupedByPeriod(projectPayload, currencyPayload, timeframe));
47
+ }
48
+ else {
49
+ draft.sectionsByKey[sectionKey] =
50
+ mapProjectCOABalanceGroupedPayloadToSectionProjectView(timeframe, projectPayload, currencyPayload, { sectionId, projectId, reportId });
51
+ }
52
+ };
@@ -0,0 +1,87 @@
1
+ import recordGet from 'lodash/get';
2
+ import { getCOABalances, } from '../../commonStateTypes/coaBalance/coaBalance';
3
+ import { getSumOfBalancesByGroupedByPeriod } from '../../commonStateTypes/coaBalance/classBalances/getSumOfBalancesGroupedByPeriod';
4
+ import { mapAccountMetadataPayloadToAccountMetadata } from '../account/accountPayload';
5
+ import { getAccountKey } from '../account/accountState';
6
+ import { getNestedAccountReportForAccount, } from '../account/subAccountSelector';
7
+ import { getProjectById } from '../project/projectSelector';
8
+ import { getNestedAccountIDHierarchyForAccounts } from '../sectionAccountsView/getNestedAccountIDHierarchyForSection';
9
+ import { getSectionProjectViewKey } from './sectionProjectView';
10
+ export const getSectionProjectViewReport = (accountState, projectState, sectionState, projectIds, id, filter) => {
11
+ const projectIdsToShow = projectIds.filter((projectId) => !filter.projectsToFilterOut.includes(projectId));
12
+ const projectReports = [];
13
+ const sectionBalancesTotalByPeriodArray = [];
14
+ const accountsByProject = getAccountsByProject(accountState, id.sectionId, id.reportId);
15
+ projectIdsToShow.forEach((projectId) => {
16
+ const project = getProjectById(projectState, projectId);
17
+ if (project == null) {
18
+ return;
19
+ }
20
+ const projectAccountIds = accountsByProject[projectId] ?? [];
21
+ const accountsMetadata = projectAccountIds
22
+ .map((accountId) => {
23
+ const key = getAccountKey(id.reportId, accountId, undefined, undefined, { projectId, sectionId: id.sectionId });
24
+ const account = accountState.accountsByKey[key];
25
+ if (account == null) {
26
+ return undefined;
27
+ }
28
+ return mapAccountMetadataPayloadToAccountMetadata({
29
+ account_id: account.accountId,
30
+ account_name: account.accountName,
31
+ account_description: account.accountDescription,
32
+ labels: account.labels,
33
+ is_sub_account: account.accountsViewParentId != null,
34
+ parent_account_id: account.accountsViewParentId?.parentAccountId?.[0] ?? null,
35
+ });
36
+ })
37
+ .filter((metadata) => metadata != null);
38
+ const nestedAccountHierarchy = getNestedAccountIDHierarchyForAccounts(projectAccountIds, accountsMetadata);
39
+ const nestedAccountReports = [];
40
+ nestedAccountHierarchy.forEach((accountIdHierarchy) => {
41
+ const report = getNestedAccountReportForAccount(accountState, {
42
+ accountIdHierarchy,
43
+ reportId: id.reportId,
44
+ projectsViewParentId: {
45
+ projectId,
46
+ sectionId: id.sectionId,
47
+ },
48
+ }, filter, nestedAccountHierarchy.length > 1);
49
+ if (report != null) {
50
+ nestedAccountReports.push(report);
51
+ }
52
+ });
53
+ const projectSectionKey = getSectionProjectViewKey(id.sectionId, projectId, id.reportId);
54
+ const projectSectionView = recordGet(sectionState.sectionsByKey, projectSectionKey, undefined);
55
+ const projectBalancesTotalByPeriod = projectSectionView?.balancesByPeriod ?? {};
56
+ const projectReport = {
57
+ projectId,
58
+ projectName: project.projectName,
59
+ accounts: nestedAccountReports,
60
+ ...getCOABalances(projectBalancesTotalByPeriod, filter),
61
+ projectBalancesTotalByPeriod,
62
+ };
63
+ projectReports.push(projectReport);
64
+ sectionBalancesTotalByPeriodArray.push(projectBalancesTotalByPeriod);
65
+ });
66
+ const sectionBalancesTotalByPeriod = getSumOfBalancesByGroupedByPeriod(sectionBalancesTotalByPeriodArray) ?? {};
67
+ return {
68
+ projects: projectReports,
69
+ ...getCOABalances(sectionBalancesTotalByPeriod, filter),
70
+ sectionBalancesTotalByPeriod,
71
+ };
72
+ };
73
+ const getAccountsByProject = (accountState, sectionId, reportId) => {
74
+ const result = {};
75
+ Object.values(accountState.accountsByKey).forEach((account) => {
76
+ if (account.projectsViewParentId != null &&
77
+ account.projectsViewParentId.sectionId === sectionId &&
78
+ account.key.endsWith(reportId)) {
79
+ const projectId = account.projectsViewParentId.projectId;
80
+ if (result[projectId] == null) {
81
+ result[projectId] = [];
82
+ }
83
+ result[projectId].push(account.accountId);
84
+ }
85
+ });
86
+ return result;
87
+ };
@@ -151,6 +151,7 @@ const ALL_SNACKBAR_MESSAGE_SECTIONS = [
151
151
  'flux_analysis_reviewed',
152
152
  'receipt_match',
153
153
  'receipts_upload',
154
+ 'receipts_bulk_match',
154
155
  'billing_address_view',
155
156
  'express_pay_submit',
156
157
  'exclude_transaction',
@@ -168,6 +169,11 @@ const ALL_SNACKBAR_MESSAGE_SECTIONS = [
168
169
  'treasury_accept_term',
169
170
  'treasury_transfer_money',
170
171
  'treasury_transfer_money_failed',
172
+ 'auto_transfer_rule_create',
173
+ 'auto_transfer_rule_update',
174
+ 'auto_transfer_rule_delete',
175
+ 'auto_transfer_rule_pause',
176
+ 'auto_transfer_rule_resume',
171
177
  'treasury_update_portfolio_allocation',
172
178
  'send_email_magic_link_to_user',
173
179
  'complete_profile_done',
@@ -195,6 +201,7 @@ const ALL_SNACKBAR_MESSAGE_SECTIONS = [
195
201
  'transactionCategorized_transactionsUpdated_transactionFailed',
196
202
  'transactionCategorized_transactionUpdated_transactionsFailed',
197
203
  'transactionCategorized_transactionUpdated_transactionFailed',
204
+ 'accounting_classes_enabled_update',
198
205
  ];
199
206
  export const toSnackbarMessageSection = (v) => stringToUnion(v, ALL_SNACKBAR_MESSAGE_SECTIONS);
200
207
  // Keeping this different from the message type, since we may not have messages in all instances
@@ -6,6 +6,7 @@ import { clearAllEntityApprovalStatus } from '../../entity/entityApprovalStatus/
6
6
  import { clearAllMonthEndCloseChecks } from '../../entity/monthEndCloseChecks/monthEndCloseChecksReducer';
7
7
  import { clearAllNotifications } from '../../entity/notification/notificationReducer';
8
8
  import { clearAllSectionsClassesViewV2 } from '../../entity/sectionClassesViewV2/sectionClassesViewReducer';
9
+ import { clearAllSectionsProjectView } from '../../entity/sectionProjectView/sectionProjectViewReducer';
9
10
  import { clearAllTaskGroups } from '../../entity/taskGroup/taskGroupReducer';
10
11
  import { clearAllToastNotifications } from '../../entity/toastNotification/toastNotificationReducer';
11
12
  import { clearAccountList } from '../../view/accountList/accountListReducer';
@@ -64,6 +65,7 @@ import { clearOwnerList } from '../../view/ownerList/ownerListReducer';
64
65
  import { clearPeople } from '../../view/people/peopleReducer';
65
66
  import { clearProfitAndLoss } from '../../view/profitAndLoss/profitAndLossReducer';
66
67
  import { clearProfitAndLossClassesView } from '../../view/profitAndLossClassesView/profitAndLossClassesViewReducer';
68
+ import { clearProfitAndLossProjectView } from '../../view/profitAndLossProjectView/profitAndLossProjectViewReducer';
67
69
  import { clearRecommendation } from '../../view/recommendation/recommendationReducer';
68
70
  import { clearReferrals } from '../../view/referralView/referralReducer';
69
71
  import { clearReimbursementCard } from '../../view/reimbursementCard/reimbursementCardReducer';
@@ -161,6 +163,7 @@ import { clearAllChargeCardRepayments } from '../chargeCardRepayment/chargeCardR
161
163
  import { clearAllChargeCardTransactions } from '../chargeCardTransaction/chargeCardTransactionReducer';
162
164
  import { clearAllClasses } from '../class/classReducer';
163
165
  import { clearAllCompanies } from '../company/companyReducer';
166
+ import { clearAllProjects } from '../project/projectReducer';
164
167
  import { clearCompanyHealthMetric } from '../companyHealthMetric/companyHealthMetricReducer';
165
168
  import { clearAllConnectedAccounts } from '../connectedAccount/connectedAccountReducer';
166
169
  import { clearCountryList } from '../countryList/countryListReducer';
@@ -209,6 +212,7 @@ export const clearAllEpic = (actions$) => actions$.pipe(filter(clearAll.match),
209
212
  clearAddressView(),
210
213
  clearAiCfoView(),
211
214
  clearAllClasses(),
215
+ clearAllProjects(),
212
216
  clearAllMonthEndCloseChecksView(),
213
217
  clearApAging(),
214
218
  clearApAgingDetail(),
@@ -288,6 +292,7 @@ export const clearAllEpic = (actions$) => actions$.pipe(filter(clearAll.match),
288
292
  clearPreviousBills(),
289
293
  clearProfitAndLoss(),
290
294
  clearProfitAndLossClassesView(),
295
+ clearProfitAndLossProjectView(),
291
296
  clearRecommendation(),
292
297
  clearReferrals(),
293
298
  clearReimbursementCard(),
@@ -382,6 +387,7 @@ export const clearAllEpic = (actions$) => actions$.pipe(filter(clearAll.match),
382
387
  clearAllReimbursements(),
383
388
  clearAllSectionsAccountsView(),
384
389
  clearAllSectionsClassesViewV2(),
390
+ clearAllSectionsProjectView(),
385
391
  clearAllSubscriptionAddOns(),
386
392
  clearAllSubscriptionCoupons(),
387
393
  clearAllSubscriptionPlans(),
@@ -125,6 +125,12 @@ const tenant = createSlice({
125
125
  draft.tenantIds = [...new Set([...draft.tenantIds, ...tenantIds])];
126
126
  draft.loggedInUser = assignWith(draft.loggedInUser ?? {}, firstUser, (objValue, srcValue) => srcValue ?? objValue);
127
127
  },
128
+ updateTenantAccountingClassesEnabled(draft, action) {
129
+ const { tenantId, enabled } = action.payload;
130
+ if (draft.tenantsById[tenantId] != null) {
131
+ draft.tenantsById[tenantId].isAccountingClassesEnabled = enabled;
132
+ }
133
+ },
128
134
  updateTenantMasterTOSInfo(draft, action) {
129
135
  const { tenant_id, user_role_id, master_tos_info } = action.payload;
130
136
  if (draft.tenantsById[tenant_id] != null &&
@@ -529,7 +535,7 @@ const tenant = createSlice({
529
535
  },
530
536
  },
531
537
  });
532
- export const { updateTenants, fetchAllTenants, updateTenantsSuccess, updateTenantsFailure, fetchActiveTenant, updateTenantSuccess, updateTenantFailure, updateCurrentTenant, fetchExcludedResources, updateExcludedResourcesSuccess, updateExcludedResourcesFailure, doSignIn, doMagicLinkSignIn, magicLinkSignInSuccess, magicLinkSignInFailure, sendEmailMagicLinkToUser, sendEmailMagicLinkToUserSuccess, sendEmailMagicLinkToUserFailure, updateSignInState, doSignOut, signOutSuccess, updateLoggedInUser, fetchExternalConnections, saveExternalConnection, saveExternalConnectionSuccess, saveExternalConnectionFailure, fetchExternalConnectionsFailure, fetchExternalConnectionsSuccess, clearAll, fetchSubscriptionSummaryForTenant, updateSubscriptionSummaryForTenantSuccess, updateSubscriptionSummaryForTenantFailure, updateOnboardingTenants, removeOnboardingTenant, updateTenantReimbursementInfo, updateReferViewedForLoggedInUser, updateTreasuryVideoViewedForLoggedInUser, resetSignInState, trigger2FA, updateTenantMasterTOSInfo, verifyDeviceWithTwoFA, verifyDeviceWithTwoFASuccess, verifyDeviceWithTwoFAFailure, resendVerifyDeviceOTP, resendVerifyDeviceOTPSuccess, resendVerifyDeviceOTPFailure, } = tenant.actions;
538
+ export const { updateTenants, fetchAllTenants, updateTenantsSuccess, updateTenantsFailure, fetchActiveTenant, updateTenantSuccess, updateTenantFailure, updateCurrentTenant, fetchExcludedResources, updateExcludedResourcesSuccess, updateExcludedResourcesFailure, doSignIn, doMagicLinkSignIn, magicLinkSignInSuccess, magicLinkSignInFailure, sendEmailMagicLinkToUser, sendEmailMagicLinkToUserSuccess, sendEmailMagicLinkToUserFailure, updateSignInState, doSignOut, signOutSuccess, updateLoggedInUser, fetchExternalConnections, saveExternalConnection, saveExternalConnectionSuccess, saveExternalConnectionFailure, fetchExternalConnectionsFailure, fetchExternalConnectionsSuccess, clearAll, fetchSubscriptionSummaryForTenant, updateSubscriptionSummaryForTenantSuccess, updateSubscriptionSummaryForTenantFailure, updateOnboardingTenants, removeOnboardingTenant, updateTenantReimbursementInfo, updateReferViewedForLoggedInUser, updateTreasuryVideoViewedForLoggedInUser, resetSignInState, trigger2FA, updateTenantAccountingClassesEnabled, updateTenantMasterTOSInfo, verifyDeviceWithTwoFA, verifyDeviceWithTwoFASuccess, verifyDeviceWithTwoFAFailure, resendVerifyDeviceOTP, resendVerifyDeviceOTPSuccess, resendVerifyDeviceOTPFailure, } = tenant.actions;
533
539
  export default tenant.reducer;
534
540
  /**
535
541
  * Converts tenants payload to Tenant and User State
@@ -553,6 +559,8 @@ function mapTenantsPayloadToState(tenantsPayload, userTenantPayload) {
553
559
  function mapTenantPayloadToTenant(payload, userTenantPayload) {
554
560
  const tenant = {
555
561
  accountingClassIDs: payload.accounting_class_ids,
562
+ isAccountingClassesEnabled: payload.is_accounting_classes_enabled ?? true,
563
+ isAccountingProjectsEnabled: payload.is_accounting_projects_enabled ?? false,
556
564
  bookCloseDate: payload.book_close_date != null
557
565
  ? date(payload.book_close_date)
558
566
  : undefined,
@@ -265,6 +265,20 @@ export const isTenantCardsOnly = (tenant) => {
265
265
  tenant.productSettings.isSpendManagementEnabled === false
266
266
  : false;
267
267
  };
268
+ export const getIsAccountingClassesEnabled = (state) => {
269
+ const { currentTenantId, tenantsById } = state.tenantState;
270
+ if (currentTenantId == null) {
271
+ return true;
272
+ }
273
+ return tenantsById[currentTenantId]?.isAccountingClassesEnabled ?? true;
274
+ };
275
+ export const getIsAccountingProjectsEnabled = (state) => {
276
+ const { currentTenantId, tenantsById } = state.tenantState;
277
+ if (currentTenantId == null) {
278
+ return false;
279
+ }
280
+ return tenantsById[currentTenantId]?.isAccountingProjectsEnabled ?? false;
281
+ };
268
282
  export const isTenantBookkeepingEnabled = (tenant) => {
269
283
  // if the tenants API takes time, tenant can be non null with productSettings as null
270
284
  return tenant != null && tenant.productSettings != null
@@ -29,5 +29,6 @@ export const toScheduleTransaction = (payload, currency_code, currency_symbol) =
29
29
  currencyCode: currency_code,
30
30
  currencySymbol: currency_symbol,
31
31
  },
32
+ description: payload.transaction_description ?? undefined,
32
33
  };
33
34
  };
@@ -33,6 +33,9 @@ const getTransactionPayloadRecipientAmount = (payload) => {
33
33
  export const toTransaction = (payload) => {
34
34
  const amount = getTransactionPayloadAmount(payload);
35
35
  const recipientAmount = getTransactionPayloadRecipientAmount(payload);
36
+ const lines = payload?.lines?.map((linePayload) => toLine(linePayload, amount, recipientAmount));
37
+ const firstLineWithClass = lines?.find((line) => 'class' in line &&
38
+ line.class?.classId != null);
36
39
  return {
37
40
  ...toTransactionID(payload),
38
41
  typeOfTransaction: 'supported',
@@ -61,11 +64,45 @@ export const toTransaction = (payload) => {
61
64
  ...(payload.customer_name !== null && payload.customer_name !== ''
62
65
  ? { customerName: payload.customer_name }
63
66
  : {}),
67
+ ...(payload.target_account_id !== null && payload.target_account_id !== ''
68
+ ? { targetAccountId: payload.target_account_id }
69
+ : {}),
70
+ ...(payload.target_account_integration_id !== null &&
71
+ payload.target_account_integration_id !== ''
72
+ ? { targetAccountIntegrationId: payload.target_account_integration_id }
73
+ : {}),
74
+ ...(payload.target_account_name !== null &&
75
+ payload.target_account_name !== ''
76
+ ? { targetAccountName: payload.target_account_name }
77
+ : {}),
78
+ ...(payload.to_from_account_id != null && payload.to_from_account_id !== ''
79
+ ? { toFromAccountId: payload.to_from_account_id }
80
+ : {}),
81
+ ...(payload.to_from_account_integration_id != null &&
82
+ payload.to_from_account_integration_id !== ''
83
+ ? { toFromAccountIntegrationId: payload.to_from_account_integration_id }
84
+ : {}),
85
+ ...(payload.to_from_account_name != null &&
86
+ payload.to_from_account_name !== ''
87
+ ? { toFromAccountName: payload.to_from_account_name }
88
+ : {}),
89
+ ...(payload.category_id != null && payload.category_id !== ''
90
+ ? { categoryId: payload.category_id }
91
+ : {}),
92
+ ...(payload.category_integration_id != null &&
93
+ payload.category_integration_id !== ''
94
+ ? { categoryIntegrationId: payload.category_integration_id }
95
+ : {}),
96
+ ...(payload.category_name != null && payload.category_name !== ''
97
+ ? { categoryName: payload.category_name }
98
+ : {}),
64
99
  linkedTransactions: payload.linked_transactions?.map((transactionIDPayload) => toTransactionID(transactionIDPayload)),
65
- lines: payload?.lines?.map((linePayload) => toLine(linePayload, amount, recipientAmount)),
100
+ lines,
66
101
  account: payloadHasAccountInfo(payload)
67
102
  ? mapAccountBasePayloadToAccountBase(payload)
68
103
  : undefined,
104
+ classId: firstLineWithClass?.class?.classId,
105
+ className: firstLineWithClass?.class?.className,
69
106
  syncToken: payload.sync_token?.toString(),
70
107
  paymentType: payload.payment_type ?? undefined,
71
108
  paymentTypeName: payload.payment_type_name ?? undefined,
@@ -101,6 +138,7 @@ export const toTransactionPayload = (transaction) => {
101
138
  transactionPayload = {
102
139
  ...transactionPayload,
103
140
  ...toAccountPayload(transaction.account),
141
+ currency_code: transaction.amount.currencyCode,
104
142
  };
105
143
  }
106
144
  if (transaction.paymentType != null && transaction.type === 'bill_payment') {
@@ -112,6 +150,46 @@ export const toTransactionPayload = (transaction) => {
112
150
  },
113
151
  };
114
152
  }
153
+ if (transaction.toFromAccountId != null &&
154
+ transaction.toFromAccountId !== '') {
155
+ transactionPayload = {
156
+ ...transactionPayload,
157
+ to_from_account_id: transaction.toFromAccountId,
158
+ };
159
+ }
160
+ if (transaction.toFromAccountIntegrationId != null &&
161
+ transaction.toFromAccountIntegrationId !== '') {
162
+ transactionPayload = {
163
+ ...transactionPayload,
164
+ to_from_account_integration_id: transaction.toFromAccountIntegrationId,
165
+ };
166
+ }
167
+ if (transaction.toFromAccountName != null &&
168
+ transaction.toFromAccountName !== '') {
169
+ transactionPayload = {
170
+ ...transactionPayload,
171
+ to_from_account_name: transaction.toFromAccountName,
172
+ };
173
+ }
174
+ if (transaction.categoryId != null && transaction.categoryId !== '') {
175
+ transactionPayload = {
176
+ ...transactionPayload,
177
+ category_id: transaction.categoryId,
178
+ };
179
+ }
180
+ if (transaction.categoryIntegrationId != null &&
181
+ transaction.categoryIntegrationId !== '') {
182
+ transactionPayload = {
183
+ ...transactionPayload,
184
+ category_integration_id: transaction.categoryIntegrationId,
185
+ };
186
+ }
187
+ if (transaction.categoryName != null && transaction.categoryName !== '') {
188
+ transactionPayload = {
189
+ ...transactionPayload,
190
+ category_name: transaction.categoryName,
191
+ };
192
+ }
115
193
  return transactionPayload;
116
194
  };
117
195
  export const injectCOTFlagsIntoTransactionPayload = (payload, transaction) => {
package/lib/esm/epic.js CHANGED
@@ -5,6 +5,7 @@ import { updateAccruedJESchedulesEpic, } from './entity/jeSchedules/updateAccrue
5
5
  import { updateJESchedulesEpic, } from './entity/jeSchedules/updateJESchedulesEpic';
6
6
  import { updateSectionAccountsViewEpic, } from './entity/sectionAccountsView/sectionAccountsViewEpic';
7
7
  import { updateSectionClassesViewEpic as updateSectionClassesViewEpicV2, } from './entity/sectionClassesViewV2/sectionClassesViewEpic';
8
+ import { updateSectionProjectViewEpic, } from './entity/sectionProjectView/sectionProjectViewEpic';
8
9
  import { clearAllEpic, } from './entity/tenant/clearAllEpic';
9
10
  import { doMagicLinkSignInEpic, } from './entity/tenant/epic/doMagicLinkSignInEpic';
10
11
  import { fetchActiveTenantEpic, } from './entity/tenant/epic/fetchActiveTenantEpic';
@@ -37,6 +38,7 @@ import { createSessionEpic, } from './view/aiCfoView/epics/createSessionEpic';
37
38
  import { deleteChatSessionEpic, } from './view/aiCfoView/epics/deleteChatSessionEpic';
38
39
  import { fetchChatHistoryEpic, } from './view/aiCfoView/epics/fetchChatHistoryEpic';
39
40
  import { fetchChatSessionsForUserEpic, } from './view/aiCfoView/epics/fetchChatSessionsForUserEpic';
41
+ import { fetchSuggestedQuestionsEpic, } from './view/aiCfoView/epics/fetchSuggestedQuestionsEpic';
40
42
  import { stopSubmitEpic, } from './view/aiCfoView/epics/stopSubmitEpic';
41
43
  import { stopSubmitQuestionEpic, } from './view/aiCfoView/epics/stopSubmitQuestionEpic';
42
44
  import { submitQuestionEpic, } from './view/aiCfoView/epics/submitQuestionEpic';
@@ -102,11 +104,13 @@ import { improveUsingZeniGPTEpic, } from './view/companyMonthEndReportView/epics
102
104
  import { saveCompanyMonthEndReportEpic, } from './view/companyMonthEndReportView/epics/saveCompanyMonthEndReportEpic';
103
105
  import { sendCompanyMonthEndReportEpic, } from './view/companyMonthEndReportView/epics/sendCompanyMonthEndReportEpic';
104
106
  import { fetchCompanyTaskManagerViewEpic, } from './view/companyTaskManagerView/epics/fetchCompanyTaskManagerViewEpic';
107
+ import { fetchTaskManagerMetricsEpic, } from './view/companyTaskManagerView/epics/fetchTaskManagerMetricsEpic';
105
108
  import { companyManagementSavePendingUpdatesEpic, } from './view/companyView/epic/companyManagementSavePendingUpdates';
106
109
  import { companyManagementSaveUpdatesEpic, } from './view/companyView/epic/companyManagementSaveUpdatesEpic';
107
110
  import { createCompanyOfficersEpic, } from './view/companyView/epic/companyPassport/createCompanyOfficersEpic';
108
111
  import { fetchCompanyPassportViewEpic, } from './view/companyView/epic/companyPassport/fetchCompanyPassportViewEpic';
109
112
  import { saveCompanyPassportDetailsEpic, } from './view/companyView/epic/companyPassport/saveCompanyPassportDetailsEpic';
113
+ import { updateAccountingClassesEnabledEpic, } from './view/companyView/epic/companyPassport/updateAccountingClassesEnabledEpic';
110
114
  import { updateCompanyDetailsEpic, } from './view/companyView/epic/companyPassport/updateCompanyDetailsEpic';
111
115
  import { updateCompanyOfficerEpic, } from './view/companyView/epic/companyPassport/updateCompanyOfficerEpic';
112
116
  import { updateCompanyPassportLocalStoreDataEpic, } from './view/companyView/epic/companyPassport/updateCompanyPassportLocalStoreDataEpic';
@@ -125,6 +129,8 @@ import { fetchDashboardEpic, } from './view/dashboard/dashboardEpic';
125
129
  import { fetchDashboardLayoutEpic, } from './view/dashboardLayout/fetchDashboardLayoutEpic';
126
130
  import { updateDashboardLayoutEpic, } from './view/dashboardLayout/updateDashboardLayoutEpic';
127
131
  import { deleteAccountStatementEpic, } from './view/expenseAutomationView/epics/accountRecon/deleteAccountStatementEpic';
132
+ import { excludeAccountFromReconciliationEpic, } from './view/expenseAutomationView/epics/accountRecon/excludeAccountFromReconciliationEpic';
133
+ import { includeAccountInReconciliationEpic, } from './view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic';
128
134
  import { fetchReconciliationViewEpic as fetchExpenseAutomationReconciliationsViewEpic, } from './view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic';
129
135
  import { initialiseDataForSelectedAccountIdEpic as initialiseExpenseAutomationReconciliationLocalDataForSelectedAccountIdEpic, } from './view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic';
130
136
  import { saveReconciliationDetailsEpic as saveExpenseAutomationReconciliationDetailsEpic, } from './view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic';
@@ -149,12 +155,15 @@ import { confirmBulkUploadMatchEpic, } from './view/expenseAutomationView/epics/
149
155
  import { fetchBulkUploadBatchDetailsEpic, } from './view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchDetailsEpic';
150
156
  import { fetchBulkUploadBatchesEpic, } from './view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchesEpic';
151
157
  import { fetchCompletedTransactionsEpic, } from './view/expenseAutomationView/epics/missingReceipts/fetchCompletedTransactionsEpic';
158
+ import { refetchCompletedTransactionsOnBulkUploadSortEpic, } from './view/expenseAutomationView/epics/missingReceipts/refetchCompletedTransactionsOnBulkUploadSortEpic';
152
159
  import { fetchMissingReceiptsEpic as fetchExpenseAutomationMissingReceiptsEpic, } from './view/expenseAutomationView/epics/missingReceipts/fetchMissingReceiptsEpic';
153
160
  import { fetchMoreBatchDetailsEpic, } from './view/expenseAutomationView/epics/missingReceipts/fetchMoreBatchDetailsEpic';
154
161
  import { fetchMultipleBatchDetailsEpic, } from './view/expenseAutomationView/epics/missingReceipts/fetchMultipleBatchDetailsEpic';
155
162
  import { searchTransactionsForManualMatchEpic, } from './view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic';
156
163
  import { uploadMissingReceiptSuccessEpic, } from './view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic';
157
164
  import { bulkUploadAutomatchingTimeoutEpic, pollBulkUploadBatchStatusEpic, pusherBatchStatusCompletionEpic, } from './view/expenseAutomationView/epics/missingReceipts/watchBulkUploadBatchStatusEpic';
165
+ import { bulkUploadMatchResultToastEpic, } from './view/expenseAutomationView/epics/missingReceipts/bulkUploadMatchResultToastEpic';
166
+ import { restoreBulkUploadAutomatchingOnMountEpic, } from './view/expenseAutomationView/epics/missingReceipts/restoreBulkUploadAutomatchingOnMountEpic';
158
167
  import { backgroundRefetchReviewTabEpic, } from './view/expenseAutomationView/epics/transactionCategorization/backgroundRefetchReviewTabEpic';
159
168
  import { fetchTransactionCategorizationEpic as fetchExpenseAutomationTransactionCategorizationEpic, } from './view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic';
160
169
  import { fetchTransactionCategorizationViewEpic as fetchExpenseAutomationTransactionCategorizationViewEpic, } from './view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic';
@@ -233,6 +242,8 @@ import { fetchProfitAndLossEpic, } from './view/profitAndLoss/profitAndLossEpic'
233
242
  import { fetchProfitAndLossForTimeframeEpic, } from './view/profitAndLoss/profitAndLossForTimeframeEpic';
234
243
  import { fetchProfitAndLossClassesViewEpic, } from './view/profitAndLossClassesView/profitAndLossClassesViewEpic';
235
244
  import { fetchProfitAndLossForTimeframeClassesViewEpic, } from './view/profitAndLossClassesView/profitAndLossForTimeframeClassesViewEpic';
245
+ import { fetchProfitAndLossProjectViewEpic, } from './view/profitAndLossProjectView/profitAndLossProjectViewEpic';
246
+ import { fetchProfitAndLossForTimeframeProjectViewEpic, } from './view/profitAndLossProjectView/profitAndLossForTimeframeProjectViewEpic';
236
247
  import { fetchEntityRecommendationsByTransactionIdEpic, } from './view/recommendation/fetchEntityRecommendationsByTransactionIdEpic';
237
248
  import { fetchRecommendationByEntityIdEpic, } from './view/recommendation/fetchRecommendationByEntityIdEpic';
238
249
  import { fetchRecommendationByEntityNameEpic, } from './view/recommendation/fetchRecommendationByEntityNameEpic';
@@ -291,6 +302,12 @@ import { refreshIntegrationsDataEpic, } from './view/settingsView/epic/refreshIn
291
302
  import { saveCompanyBillingAddressEpic, } from './view/settingsView/epic/saveCompanyBillingAddressEpic';
292
303
  import { saveNotificationSettingsEpic, } from './view/settingsView/epic/saveNotificationSettingsEpic';
293
304
  import { updateMyProfileEpic, } from './view/settingsView/epic/updateMyProfileEpic';
305
+ import { createAutoTransferRuleEpic, } from './view/spendManagement/autotransferRules/epics/createAutoTransferRuleEpic';
306
+ import { deleteAutoTransferRuleEpic, } from './view/spendManagement/autotransferRules/epics/deleteAutoTransferRuleEpic';
307
+ import { fetchAutoTransferReviewDetailEpic, } from './view/spendManagement/autotransferRules/epics/fetchAutoTransferReviewDetailEpic';
308
+ import { fetchAutoTransferRuleHistoryEpic, } from './view/spendManagement/autotransferRules/epics/fetchAutoTransferRuleHistory';
309
+ import { fetchAutoTransferRulesEpic, } from './view/spendManagement/autotransferRules/epics/fetchAutoTransferRulesEpic';
310
+ import { updateAutoTransferRuleEpic, } from './view/spendManagement/autotransferRules/epics/updateAutoTransferRuleEpic';
294
311
  import { approveOrRejectBillEpic, } from './view/spendManagement/billPay/billDetailView/epics/approveOrRejectBillEpic';
295
312
  import { cancelAndDeleteBillEpic, } from './view/spendManagement/billPay/billDetailView/epics/cancelAndDeleteBillEpic';
296
313
  import { deleteBillEpic, } from './view/spendManagement/billPay/billDetailView/epics/deleteBillEpic';
@@ -535,7 +552,7 @@ import { fetchZeniAccStatementListEpic, } from './view/zeniAccStatementList/fetc
535
552
  import { fetchZeniAccStatementPageEpic, } from './view/zeniAccStatementList/fetchZeniAccStatementPageEpic';
536
553
  import { fetchZeniAccountsPromoCardEpic, } from './view/zeniAccountsPromoCard/zeniAccountsPromoCardEpic';
537
554
  // Note: Please maintain strict alphabetical order
538
- const combinedEpics = combineEpics(acceptBillPayTermsEpic, acceptBillPayUpdatedTermsEpic, acceptChargeCardTermsEpic, acceptEmployeeRemiTermsEpic, acceptMasterTOSEpic, acceptRemiTermsEpic, acceptTreasuryTermsEpic, acceptZeniAccountTermsEpic, addCardPaymentSourceEpic, approveOrRejectBillEpic, approveOrRejectBillsBulkActionEpic, approveOrRejectRemiEpic, approveOrRejectRemisBulkActionEpic, approveVendorGlobalReviewEpic, archiveTaskEpic, backgroundRefetchReviewTabEpic, bulkUpdateTaskListEpic, cancelAndDeleteBillEpic, cancelAndDeleteRemiEpic, cancelOrDeleteBillsBulkActionEpic, cancelOrDeleteRemisBulkActionEpic, cancelScheduleAccruedJournalEntryEpic, changeZeniPersonRolesEpic, checkDepositEpic, clearAllEpic, closeChargeCardEpic, closeChargeCardsEpic, companyManagementSavePendingUpdatesEpic, companyManagementSaveUpdatesEpic, confirmCardSetupIntentEpic, convertAmountToHomeCurrencyEpic, createAddressEpic, createBankAccountEpic, createCardSetupIntentEpic, createCheckingAccountEpic, createCompanyAddressEpic, createCompanyOfficersEpic, createCompanyUserAddressEpic, createGlobalMerchantEpic, createInternationalBankAccountEpic, createNewSchedulesAccruedEpic, createNewSchedulesEpic, createNewTaskGroupEpic, createPaymentInstrumentEpic, createSessionAndSubmitEpic, createSessionEpic, createTagEpic, createTaskFromTaskGroupTemplateEpic, createUserBankAccountEpic, deleteAccountStatementEpic, deleteBankAccountEpic, deleteBillEpic, deleteChatSessionEpic, deleteBillPayApprovalRuleEpic, deleteFileEpic, deleteFileListEpic, deleteInternationalBankAccountEpic, deletePaymentInstrumentEpic, deletePersonEpic, deleteRemiApprovalRuleEpic, deleteRemiEpic, deleteScheduleAccruedDetailEpic, deleteScheduleDetailEpic, deleteTagEpic, deleteTaskEpic, deleteTaskGroupEpic, deleteTransactionAttachmentEpic, deleteUserBankAccountEpic, doMagicLinkSignInEpic, doSignInEpic, doSignOutEpic, sendEmailMagicLinkToUserEpic, verifyDeviceWithTwoFAEpic, downloadAccountingProviderAttachmentEpic, dragNDropTasksEpic, enableChargeCardAutoPayEpic, enableSetupEpic, establishOnboardingPlaidConnectionEpic, establishPlaidConnectionEpic, expressInterestChargeCardEpic, fetchAccountListEpic, fetchAccountListForAccountTypesEpic, fetchAccountSettingsListForAccountTypesEpic, fetchAccruedScheduleListEpic, fetchActiveTenantEpic, fetchAddressEpic, fetchAllCockpitViewsEpic, fetchAllExpenseAutomationTabsEpic, fetchAllPeopleRequiredViewsEpic, fetchAllTagsEpic, fetchAllTaskGroupsEpic, fetchAllTenantsEpic, fetchAndUpdateVendorRecommendationsEpic, fetchAggregatedReportEpic, fetchApAgingDetailEpic, fetchApAgingEpic, fetchArAgingDetailEpic, fetchArAgingEpic, fetchAuditReportGroupViewEpic, fetchAuditRuleGroupViewEpic, fetchBalanceSheetEpic, fetchBalanceSheetForTimeframeEpic, fetchBankAccountsListEpic, fetchBankConnectionsViewEpic, fetchBankCountryNameByIbanEpic, fetchBankNameByRoutingEpic, fetchBankNameBySwiftEpic, fetchBillAndInitializeLocalStoreEpic, fetchBillDetailEpic, fetchBillingAccountsListEpic, fetchBillListEpic, fetchBillListPerTabEpic, fetchBillPayApproversDetailsEpic, fetchBillPayApproversListEpic, fetchBillPayCardEpic, fetchBillPayConfigEpic, fetchBillPaySetupApproverViewEpic, fetchBillPaySetupViewEpic, fetchCardBalanceEpic, fetchCashbackDetailEpic, fetchCashBalanceEpic, fetchCashFlowEpic, fetchCashFlowForTimeframeEpic, fetchCashInCashOutEpic, fetchCashPositionEpic, fetchChargeCardConfigEpic, fetchChargeCardDetailEpic, fetchChargeCardDetailPageEpic, fetchChargeCardListEpic, fetchChargeCardListPageEpic, fetchChargeCardPaymentPageEpic, fetchChargeCardRepaymentDetailEpic, fetchChargeCardPaymentHistoryEpic, fetchChargeCardSetupViewEpic, fetchChargeCardStatementListEpic, fetchChargeCardTransactionAttachmentsEpic, fetchChargeCardTransactionListEpic, fetchChargeCardTransactionStatisticsEpic, fetchChargeCardsRecurringExpensesEpic, fetchChatHistoryEpic, fetchChatSessionsForUserEpic, fetchClassListEpic, fetchCollaborationAuthTokenEpic, fetchCompanyBillingAddressEpic, fetchCompanyConfigEpic, fetchCompanyHealthMetricConfigEpic, fetchCompanyHealthMetricViewEpic, fetchCompanyManagementViewEpic, fetchCompanyMetaDataEpic, fetchCompanyMonthEndReportHistoricDataEpic, fetchCompanyMonthEndReportHistoricDatesEpic, fetchCompanyMonthEndReportTemplatesEpic, fetchCompanyMonthEndReportViewEpic, fetchCompanyOnboardingViewEpic, fetchCompanyPassportViewEpic, fetchCompanyPortfolioViewEpic, fetchCompanyTaskManagerViewEpic, fetchCreditAccountEpic, fetchCreditAccountRepaymentEpic, fetchCurrencyConversionValueEpic, fetchDashboardEpic, fetchDashboardLayoutEpic, fetchDebitCardSummaryEpic, fetchDepositAccountDetailEpic, fetchDepositAccountEpic, fetchDepositAccountHistoryEpic, fetchDepositAccountLimitEpic, fetchDepositAccountListEpic, fetchDepositAccountListForCardsEpic, fetchDepositAccountTransactionListEpic, fetchDownloadSchedulesEpic, fetchDuplicateBillPayReviewEpic, fetchDuplicateReimbursementEpic, fetchEditBillDetailPageEpic, fetchEditRemiDetailPageEpic, fetchEligibleActionsForBillEpic, fetchEntityAutoCompleteEpic, fetchEntityHistoryEpic, fetchEntityRecommendationsByTransactionIdEpic, fetchExcludedResourcesEpic, fetchExpenseAutomationFluxAnalysisViewEpic, fetchExpenseAutomationInitializeTransactionCategorizationViewLocalDataEpic, fetchExpenseAutomationJeSchedulesEpic, fetchExpenseAutomationJESchedulesPageEpic, fetchExpenseAutomationMarkTransactionAsNotMiscategorizedEpic, fetchExpenseAutomationMissingReceiptsEpic, bulkUploadReceiptsEpic, confirmBulkUploadMatchEpic, fetchBulkUploadBatchDetailsEpic, fetchMultipleBatchDetailsEpic, fetchMoreBatchDetailsEpic, fetchBulkUploadBatchesEpic, fetchCompletedTransactionsEpic, bulkUploadAutomatchingTimeoutEpic, pollBulkUploadBatchStatusEpic, pusherBatchStatusCompletionEpic, searchTransactionsForManualMatchEpic, fetchExpenseAutomationReconciliationsViewEpic, fetchExpenseAutomationSaveTransactionCategorizationEpic, fetchExpenseAutomationTransactionCategorizationEpic, fetchExpenseAutomationTransactionCategorizationViewEpic, fetchExpenseAutomationUpdateTransactionCategorizationEpic, fetchExpenseTrendEpic, fetchExpressPayInitialDetailsEpic, fetchExternalConnectionsEpic, fetchFileEpic, fetchFileListEpic, fetchFinanceStatementEpic, fetchForecastListEpic, initiateReportsClassViewRefetchingEpic, reportsResyncEpic, fetchGlobalMerchantAutoCompleteViewEpic, fetchGlobalMerchantRecommendationEpic, fetchIncomeTrendEpic, fetchInsightsCardEpic, fetchInternationalWireDynamicFormEpic, fetchIntlVerificationFormEpic, fetchIssueCardPageEpic, fetchMagicLinkBankNameByRoutingEpic, fetchMagicLinkBankNameBySwiftEpic, fetchMagicLinkBillEpic, fetchMagicLinkTenantEpic, fetchManagementViewEpic, fetchMerchantListEpic, fetchMonthClosePerformanceTrendEpic, fetchMonthEndCloseChecksEpic, fetchMyProfileEpic, fetchMyProfileViewEpic, fetchNetBurnOrIncomeClassesViewEpic, fetchNetBurnOrIncomeEpic, fetchNetBurnOrIncomeForTimeframeClassesViewEpic, fetchNetBurnOrIncomeForTimeframeEpic, fetchNetBurnOrIncomeStoryCardEpic, fetchNetBurnOrIncomeWithForecastEpic, fetchNotificationSettingsEpic, fetchNotificationSettingsViewEpic, fetchNotificationUnreadCountEpic, fetchNotificationViewEpic, fetchOnboardingCompletedCompaniesEpic, fetchOnboardingCustomerSetupViewEpic, fetchOnboardingCustomerViewEpic, fetchOnboardingViewEpic, fetchOpExByVendorEpic, fetchOpExByVendorReportForTimeframeEpic, fetchOpExByVendorReportSummaryEpic, fetchOpExClassesViewEpic, fetchOpExEpic, fetchOpExForTimeframeClassesViewEpic, fetchOpExReportForTimeframeEpic, fetchOpExWithForecastEpic, fetchOwnerListEpic, fetchParentSubsidiaryManagementViewEpic, fetchPaymentAccountBalanceEpic, fetchPaymentAccountListEpic, fetchPaymentSourcesEpic, fetchPeopleEpic, fetchPeoplePageEpic, fetchPortfolioViewEpic, fetchPreviousBillsEpic, fetchProfitAndLossClassesViewEpic, fetchProfitAndLossEpic, fetchProfitAndLossForTimeframeClassesViewEpic, fetchProfitAndLossForTimeframeEpic, fetchQBOConnectionPoolEpic, fetchRecommendationByEntityIdEpic, fetchRecommendationByEntityNameEpic, fetchRecommendationForAccountSettingsEpic, fetchRecommendationForAccountTypeEpic, fetchRecommendationsAndUpdateMerchantRecommendationsEpic, fetchRecommendedTransactionRowIndexEpic, fetchReferralsEpic, fetchReimbursementCardEpic, fetchReimbursementConfigEpic, fetchRemiAndInitializeLocalStoreEpic, fetchRemiApproversDetailsEpic, fetchRemiApproversListEpic, fetchRemiDetailEpic, fetchRemiListEpic, fetchRemiListPerTabEpic, fetchRemiSetupApproverViewEpic, fetchRemiSetupViewEpic, fetchRevenueClassesViewEpic, fetchRevenueEpic, fetchRevenueForTimeframeClassesViewEpic, fetchRevenueForTimeframeEpic, fetchRevenueWithForecastEpic, fetchReviewCompanyViewEpic, fetchReviewTransferDetailEpic, fetchRewardsPlanEpic, fetchScheduleAccruedDetailsEpic, fetchScheduleAccruedDetailsPageEpic, fetchScheduleDetailsEpic, fetchScheduleDetailsPageEpic, fetchScheduleListEpic, fetchSchedulesAccountEpic, fetchSubscriptionAddOnsEpic, fetchSubscriptionCouponsEpic, fetchSubscriptionCreateEstimateEpic, fetchSubscriptionDetailsEpic, fetchSubscriptionListEpic, fetchSubscriptionPlansEpic, fetchSubscriptionSummaryForTenantEpic, fetchSubscriptionUpdateEstimateEpic, fetchSubscriptionViewEpic, fetchTaskDetailEpic, fetchTaskDetailPageEpic, fetchTaskGroupTemplatesEpic, fetchTaskHistoryEpic, fetchTaskListEpic, fetchTaskListPageEpic, fetchTasksCardEpic, fetchTopExEpic, fetchTransactionActivityLogEpic, fetchTransactionDetailEpic, fetchTransactionListByAccountEpic, fetchTransactionListByClassEpic, fetchTransactionListByEntityEpic, fetchTransactionsForEntityEpic, fetchTransactionsListByCategoryTypeEpic, fetchTreasuryDetailEpic, fetchTreasuryFundsEpic, fetchTreasuryHistoryEpic, fetchTreasurySetupViewEpic, fetchTreasuryStatementListEpic, fetchTreasuryTaxLetterListEpic, fetchTreasuryTransactionListEpic, updatePortfolioAllocationEpic, fetchPortfolioAllocationEpic, fetchTrendForEntityEpic, fetchUserDetailEpic, fetchUserFinancialAccountEpic, fetchUserListByTypeEpic, fetchUserRoleConfigEpic, fetchVendor1099TypeListEpic, fetchVendorAndUpdateBillLocalDataEpic, fetchVendorByNameAndParseInvoiceEpic, fetchVendorDetailsEpic, fetchVendorEpic, fetchVendorFirstReviewAttachmentsEpic, fetchVendorFirstReviewViewEpic, fetchVendorGlobalReviewViewEpic, fetchVendorsFiling1099AllEpic, fetchVendorsFiling1099DownloadEpic, fetchVendorsFiling1099ListEpic, fetchVendorsListEpic, fetchVendorsTabVendorDetailPageViewEpic, fetchVendorsTabVendorDetailsEpic, fetchVendorsTabVendorEpic, fetchVendorTabViewEpic, fetchVendorTypeListEpic, fetchZeniAccountListEpic, fetchZeniAccountsConfigEpic, fetchZeniAccountSetupViewEpic, fetchZeniAccountsPromoCardEpic, fetchZeniAccStatementListEpic, fetchZeniAccStatementPageEpic, fetchZeniUsersEpic, getOnboardingEmailGroupEpic, getOnboardingPlaidLinkTokenEpic, getPaymentAccountsEpic, getPlaidLinkTokenEpic, ignoreExpenseAutomationJEScheduleEpic, improveUsingZeniGPTEpic, initialiseExpenseAutomationReconciliationLocalDataForSelectedAccountIdEpic, initializeAccountMappingViewEpic, initializeAccountSettingsViewEpic, initializeBillPaySetupApproverViewUpdateDataEpic, initializeBillToLocalStoreEpic, initializeCardUserOnboardingLocalDataEpic, initializeCompanyHealthMetricViewLocalDataEpic, initializeDynamicFormEpic, initializeEditPersonEpic, initializeExpenseAutomationJeScheduleLocalDataEpic, initializeInternationalWireLocalDataEpic, initializeIntlVerificationFormEpic, initializeMyProfileLocalDataEpic, initializeOnboardingCustomerViewUpdateDataEpic, initializeRemiSetupApproverViewUpdateDataEpic, initializeRemiToLocalStoreEpic, initializeScheduleAccruedDetailLocalDataEpic, initializeScheduleDetailLocalDataEpic, initializeSubscriptionLocalDataEpic, initializeTaskToLocalStoreEpic, initializeTransactionDetailLocalDataEpic, initializeVendorAddressEpic, initiateChargeCardRepaymentEpic, invitePeopleEpic, inviteZeniPeopleEpic, issueChargeCardEpic, lockChargeCardEpic, lockChargeCardsEpic, markAsCompleteScheduleDetailEpic, markTransactionAsNotMiscategorizedEpic, parallelFetchAccountTransactionListEpic, parallelFetchClassTransactionListEpic, parallelFetchEntityTransactionListEpic, parallelFetchTransactionListByCategoryTypeEpic, parseInvoiceToBillEpic, parseReceiptsToRemiEpic, peopleSaveUpdatesEpic, pushToastNotificationEpic, refreshExpenseAutomationCurrentTabEpic, refreshIntegrationsDataEpic, rejectVendorGlobalReviewEpic, resendCardInviteEpic, resendInviteEpic, resendOtpEpic, resendVerifyDeviceOTPEpic, resendReferralInviteEpic, resetTransactionVendorLocalDataEpic, resetVendorDetailLocalDataEpic, resetVendorsTabVendorDetailLocalDataEpic, retryBankAccountConnectionEpic, retryBankAccountConnectionForOnboardingEpic, retryExpenseAutomationJEScheduleEpic, retryOrRefundBillEpic, validateBillsBulkActionEpic, reviewDraftRemisBulkActionEpic, reviewExpenseAutomationFluxAnalysisViewEpic, revokeCardInviteEpic, revokeChargeCardsInviteEpic, saveAccountMappingViewEpic, saveAccountSettingsViewEpic, saveBillDetailEpic, saveBillPaySetupApproverViewUpdatesEpic, saveCardOnboardingUserDetailsEpic, saveCompanyBillingAddressEpic, saveCompanyHealthMetricByIdEpic, saveCompanyMonthEndReportEpic, saveCompanyPassportDetailsEpic, saveExpenseAutomationReconciliationDetailsEpic, saveExpenseAutomationReconciliationReviewEpic, saveExternalConnectionEpic, saveMagicLinkBankAccountEpic, saveNewAddressEpic, saveNotificationSettingsEpic, saveOnboardingCustomerCompletedStatusEpic, saveOnboardingCustomerNotesEpic, saveOnboardingCustomerViewUpdatesEpic, saveRealTimeApprovalEpic, saveReasonForAuditRuleEpic, saveRemiDetailEpic, saveRemiSetupApproverViewUpdatesEpic, saveScheduleAccruedDetailsEpic, saveScheduleDetailsEpic, saveSubscriptionNotesUpdatesEpic, saveSubscriptionUpdatesEpic, saveTaskDetailEpic, saveTransactionDetailEpic, saveTransactionVendorEpic, saveVendorDetailsViewEpic, saveVendorEpic, saveVendorFirstReviewViewEpic, saveVendorsTabVendorEpic, sendCompanyMonthEndReportEpic, sendOnboardingCustomerViewInviteEpic, sendOtpEpic, sendReferralInviteEpic, statementCloseDayEpic, stopSubmitEpic, stopSubmitQuestionEpic, submitDraftBillsBulkActionEpic, submitDraftRemisBulkActionEpic, submitExpressPayEpic, submitIntlVerificationEpic, submitQuestionEpic, toggleReportUIOptionForecastModeEpic, transferMoneyEpic, treasuryTransferMoneyEpic, triggerReviewTabRefetchEpic, unlinkPaymentAccountEpic, unlockChargeCardEpic, unlockChargeCardsEpic, updateAccruedJESchedulesEpic, updateAddressEpic, updateAmountsInScheduleAccruedDetailEpic, updateAmountsInScheduleDetailEpic, updateBusinessVerificationDetailsEpic, updateChargeCardDetailEpic, updateChargeCardLimitEpic, updateChargeCardNameEpic, updateChargeCardsLimitEpic, updateCompanyDetailsEpic, updateCompanyOfficerEpic, updateCompanyPassportLocalStoreDataEpic, updateDashboardLayoutEpic, updateDebitCardPinAttemptEpic, updateDepositAccountEpic, updateExpenseAutomationReconciliationBalanceLocalDataEpic, updateFileNameEpic, updateFilesMetadataEpic, updateJESchedulesEpic, updateMappedCashAccountEpic, updateMileageDetailsEpic, updateMyProfileEpic, updateNetBurnOrIncomeStoryCardSettingsEpic, updateNotificationViewAllNotificationsStatusEpic, updateNotificationViewNotificationStatusEpic, updateOnboardingCustomerViewCompleteStatusEpic, updateOnboardingCustomerViewDashboardLoadedEpic, updateOnboardingCustomerViewEpic, updateOnboardingCustomerViewLocalStoreDataEpic, updateOnboardingPaymentAccountLoginStatusEpic, updateOnboardingPaymentAccountStatusEpic, updatePaymentAccountEpic, updatePaymentAccountLoginStatusEpic, updatePaymentAccountStatusEpic, updatePhysicalChargeCardAttemptEpic, updatePrimaryContactEpic, updatePrimaryFundingAccountEpic, updateQBOConnectionPoolExternalConnectionEpic, updateReferViewedEpic, updateRemiSetupViewLocalStoreDataEpic, updateReportUIOptionCOABalancesRangeEpic, updateReportUIOptionIsCompareModeEpic, updateReportUIOptionIsCompareModeOnEpic, updateReportUIOptionThisPeriodEpic, updateReportUIOptionTimeFrameEpic, updateSectionAccountsViewEpic, updateSectionClassesViewEpicV2, updateSelectedVendorForCreateFlowEpic, updateSetupViewLocalStoreDataEpic, updateTaskFromListViewEpic, updateTaskGroupNameEpic, updateTransactionDetailEpic, updateTreasuryVideoViewedEpic, updateVendorContactEpic, uploadAccountStatementEpic, uploadMissingAttachmentSuccessEpic, uploadMissingReceiptSuccessEpic, uploadTransactionReceiptSuccessEpic, vendorFiling1099UploadDetailsSaveEpic, verifyOtpEpic, verifyUserEpic, waitForBillDetailThenInitializeLocalStoreEpic, waitForForecastListThenFetchNetBurnOrIncomeWithForecastEpic, waitForForecastListThenFetchOpExWithForecastEpic, waitForForecastListThenFetchRevenueWithForecastEpic, waitForMerchantRecommendationFetchThenUpdateRecommendationInMerchantEpic, waitForVendorByIdThenSaveBillUpdatetoLocalStoreEpic, waitForVendorByNameThenParsetoLocalStoreEpic, waitForVendorByNameThenUpdateBillDetailEpic, waitForVendorRecommendationFetchThenUpdateRecommendationInBillEpic, wiseRedirectEpic);
555
+ const combinedEpics = combineEpics(acceptBillPayTermsEpic, acceptBillPayUpdatedTermsEpic, acceptChargeCardTermsEpic, acceptEmployeeRemiTermsEpic, acceptMasterTOSEpic, acceptRemiTermsEpic, acceptTreasuryTermsEpic, acceptZeniAccountTermsEpic, addCardPaymentSourceEpic, approveOrRejectBillEpic, approveOrRejectBillsBulkActionEpic, approveOrRejectRemiEpic, approveOrRejectRemisBulkActionEpic, approveVendorGlobalReviewEpic, archiveTaskEpic, backgroundRefetchReviewTabEpic, bulkUpdateTaskListEpic, cancelAndDeleteBillEpic, cancelAndDeleteRemiEpic, cancelOrDeleteBillsBulkActionEpic, cancelOrDeleteRemisBulkActionEpic, cancelScheduleAccruedJournalEntryEpic, changeZeniPersonRolesEpic, checkDepositEpic, clearAllEpic, closeChargeCardEpic, closeChargeCardsEpic, companyManagementSavePendingUpdatesEpic, companyManagementSaveUpdatesEpic, confirmCardSetupIntentEpic, convertAmountToHomeCurrencyEpic, createAddressEpic, createAutoTransferRuleEpic, createBankAccountEpic, createCardSetupIntentEpic, createCheckingAccountEpic, createCompanyAddressEpic, createCompanyOfficersEpic, createCompanyUserAddressEpic, createGlobalMerchantEpic, createInternationalBankAccountEpic, createNewSchedulesAccruedEpic, createNewSchedulesEpic, createNewTaskGroupEpic, createPaymentInstrumentEpic, createSessionAndSubmitEpic, createSessionEpic, createTagEpic, createTaskFromTaskGroupTemplateEpic, createUserBankAccountEpic, deleteAccountStatementEpic, deleteAutoTransferRuleEpic, excludeAccountFromReconciliationEpic, includeAccountInReconciliationEpic, deleteBankAccountEpic, deleteBillEpic, deleteChatSessionEpic, deleteBillPayApprovalRuleEpic, deleteFileEpic, deleteFileListEpic, deleteInternationalBankAccountEpic, deletePaymentInstrumentEpic, deletePersonEpic, deleteRemiApprovalRuleEpic, deleteRemiEpic, deleteScheduleAccruedDetailEpic, deleteScheduleDetailEpic, deleteTagEpic, deleteTaskEpic, deleteTaskGroupEpic, deleteTransactionAttachmentEpic, deleteUserBankAccountEpic, doMagicLinkSignInEpic, doSignInEpic, doSignOutEpic, sendEmailMagicLinkToUserEpic, verifyDeviceWithTwoFAEpic, downloadAccountingProviderAttachmentEpic, dragNDropTasksEpic, enableChargeCardAutoPayEpic, enableSetupEpic, establishOnboardingPlaidConnectionEpic, establishPlaidConnectionEpic, expressInterestChargeCardEpic, fetchAccountListEpic, fetchAccountListForAccountTypesEpic, fetchAccountSettingsListForAccountTypesEpic, fetchAccruedScheduleListEpic, fetchActiveTenantEpic, fetchAddressEpic, fetchAllCockpitViewsEpic, fetchAllExpenseAutomationTabsEpic, fetchAllPeopleRequiredViewsEpic, fetchAllTagsEpic, fetchAllTaskGroupsEpic, fetchAllTenantsEpic, fetchAndUpdateVendorRecommendationsEpic, fetchAggregatedReportEpic, fetchApAgingDetailEpic, fetchApAgingEpic, fetchArAgingDetailEpic, fetchArAgingEpic, fetchAuditReportGroupViewEpic, fetchAuditRuleGroupViewEpic, fetchAutoTransferReviewDetailEpic, fetchAutoTransferRuleHistoryEpic, fetchAutoTransferRulesEpic, fetchBalanceSheetEpic, fetchBalanceSheetForTimeframeEpic, fetchBankAccountsListEpic, fetchBankConnectionsViewEpic, fetchBankCountryNameByIbanEpic, fetchBankNameByRoutingEpic, fetchBankNameBySwiftEpic, fetchBillAndInitializeLocalStoreEpic, fetchBillDetailEpic, fetchBillingAccountsListEpic, fetchBillListEpic, fetchBillListPerTabEpic, fetchBillPayApproversDetailsEpic, fetchBillPayApproversListEpic, fetchBillPayCardEpic, fetchBillPayConfigEpic, fetchBillPaySetupApproverViewEpic, fetchBillPaySetupViewEpic, fetchCardBalanceEpic, fetchCashbackDetailEpic, fetchCashBalanceEpic, fetchCashFlowEpic, fetchCashFlowForTimeframeEpic, fetchCashInCashOutEpic, fetchCashPositionEpic, fetchChargeCardConfigEpic, fetchChargeCardDetailEpic, fetchChargeCardDetailPageEpic, fetchChargeCardListEpic, fetchChargeCardListPageEpic, fetchChargeCardPaymentPageEpic, fetchChargeCardRepaymentDetailEpic, fetchChargeCardPaymentHistoryEpic, fetchChargeCardSetupViewEpic, fetchChargeCardStatementListEpic, fetchChargeCardTransactionAttachmentsEpic, fetchChargeCardTransactionListEpic, fetchChargeCardTransactionStatisticsEpic, fetchChargeCardsRecurringExpensesEpic, fetchChatHistoryEpic, fetchChatSessionsForUserEpic, fetchClassListEpic, fetchCollaborationAuthTokenEpic, fetchCompanyBillingAddressEpic, fetchCompanyConfigEpic, fetchCompanyHealthMetricConfigEpic, fetchCompanyHealthMetricViewEpic, fetchCompanyManagementViewEpic, fetchCompanyMetaDataEpic, fetchCompanyMonthEndReportHistoricDataEpic, fetchCompanyMonthEndReportHistoricDatesEpic, fetchCompanyMonthEndReportTemplatesEpic, fetchCompanyMonthEndReportViewEpic, fetchCompanyOnboardingViewEpic, fetchCompanyPassportViewEpic, fetchCompanyPortfolioViewEpic, fetchCompanyTaskManagerViewEpic, fetchTaskManagerMetricsEpic, fetchCreditAccountEpic, fetchCreditAccountRepaymentEpic, fetchCurrencyConversionValueEpic, fetchDashboardEpic, fetchDashboardLayoutEpic, fetchDebitCardSummaryEpic, fetchDepositAccountDetailEpic, fetchDepositAccountEpic, fetchDepositAccountHistoryEpic, fetchDepositAccountLimitEpic, fetchDepositAccountListEpic, fetchDepositAccountListForCardsEpic, fetchDepositAccountTransactionListEpic, fetchDownloadSchedulesEpic, fetchDuplicateBillPayReviewEpic, fetchDuplicateReimbursementEpic, fetchEditBillDetailPageEpic, fetchEditRemiDetailPageEpic, fetchEligibleActionsForBillEpic, fetchEntityAutoCompleteEpic, fetchEntityHistoryEpic, fetchEntityRecommendationsByTransactionIdEpic, fetchExcludedResourcesEpic, fetchExpenseAutomationFluxAnalysisViewEpic, fetchExpenseAutomationInitializeTransactionCategorizationViewLocalDataEpic, fetchExpenseAutomationJeSchedulesEpic, fetchExpenseAutomationJESchedulesPageEpic, fetchExpenseAutomationMarkTransactionAsNotMiscategorizedEpic, fetchExpenseAutomationMissingReceiptsEpic, bulkUploadReceiptsEpic, confirmBulkUploadMatchEpic, fetchBulkUploadBatchDetailsEpic, fetchMultipleBatchDetailsEpic, fetchMoreBatchDetailsEpic, fetchBulkUploadBatchesEpic, fetchCompletedTransactionsEpic, refetchCompletedTransactionsOnBulkUploadSortEpic, bulkUploadAutomatchingTimeoutEpic, bulkUploadMatchResultToastEpic, pollBulkUploadBatchStatusEpic, pusherBatchStatusCompletionEpic, restoreBulkUploadAutomatchingOnMountEpic, searchTransactionsForManualMatchEpic, fetchExpenseAutomationReconciliationsViewEpic, fetchExpenseAutomationSaveTransactionCategorizationEpic, fetchExpenseAutomationTransactionCategorizationEpic, fetchExpenseAutomationTransactionCategorizationViewEpic, fetchExpenseAutomationUpdateTransactionCategorizationEpic, fetchExpenseTrendEpic, fetchExpressPayInitialDetailsEpic, fetchExternalConnectionsEpic, fetchFileEpic, fetchFileListEpic, fetchFinanceStatementEpic, fetchForecastListEpic, initiateReportsClassViewRefetchingEpic, reportsResyncEpic, fetchGlobalMerchantAutoCompleteViewEpic, fetchGlobalMerchantRecommendationEpic, fetchIncomeTrendEpic, fetchInsightsCardEpic, fetchInternationalWireDynamicFormEpic, fetchIntlVerificationFormEpic, fetchIssueCardPageEpic, fetchMagicLinkBankNameByRoutingEpic, fetchMagicLinkBankNameBySwiftEpic, fetchMagicLinkBillEpic, fetchMagicLinkTenantEpic, fetchManagementViewEpic, fetchMerchantListEpic, fetchMonthClosePerformanceTrendEpic, fetchMonthEndCloseChecksEpic, fetchMyProfileEpic, fetchMyProfileViewEpic, fetchNetBurnOrIncomeClassesViewEpic, fetchNetBurnOrIncomeEpic, fetchNetBurnOrIncomeForTimeframeClassesViewEpic, fetchNetBurnOrIncomeForTimeframeEpic, fetchNetBurnOrIncomeStoryCardEpic, fetchNetBurnOrIncomeWithForecastEpic, fetchNotificationSettingsEpic, fetchNotificationSettingsViewEpic, fetchNotificationUnreadCountEpic, fetchNotificationViewEpic, fetchOnboardingCompletedCompaniesEpic, fetchOnboardingCustomerSetupViewEpic, fetchOnboardingCustomerViewEpic, fetchOnboardingViewEpic, fetchOpExByVendorEpic, fetchOpExByVendorReportForTimeframeEpic, fetchOpExByVendorReportSummaryEpic, fetchOpExClassesViewEpic, fetchOpExEpic, fetchOpExForTimeframeClassesViewEpic, fetchOpExReportForTimeframeEpic, fetchOpExWithForecastEpic, fetchOwnerListEpic, fetchParentSubsidiaryManagementViewEpic, fetchPaymentAccountBalanceEpic, fetchPaymentAccountListEpic, fetchPaymentSourcesEpic, fetchPeopleEpic, fetchPeoplePageEpic, fetchPortfolioViewEpic, fetchPreviousBillsEpic, fetchProfitAndLossClassesViewEpic, fetchProfitAndLossEpic, fetchProfitAndLossForTimeframeClassesViewEpic, fetchProfitAndLossForTimeframeProjectViewEpic, fetchProfitAndLossForTimeframeEpic, fetchProfitAndLossProjectViewEpic, fetchQBOConnectionPoolEpic, fetchRecommendationByEntityIdEpic, fetchRecommendationByEntityNameEpic, fetchRecommendationForAccountSettingsEpic, fetchRecommendationForAccountTypeEpic, fetchRecommendationsAndUpdateMerchantRecommendationsEpic, fetchRecommendedTransactionRowIndexEpic, fetchReferralsEpic, fetchReimbursementCardEpic, fetchReimbursementConfigEpic, fetchRemiAndInitializeLocalStoreEpic, fetchRemiApproversDetailsEpic, fetchRemiApproversListEpic, fetchRemiDetailEpic, fetchRemiListEpic, fetchRemiListPerTabEpic, fetchRemiSetupApproverViewEpic, fetchRemiSetupViewEpic, fetchRevenueClassesViewEpic, fetchRevenueEpic, fetchRevenueForTimeframeClassesViewEpic, fetchRevenueForTimeframeEpic, fetchRevenueWithForecastEpic, fetchReviewCompanyViewEpic, fetchReviewTransferDetailEpic, fetchRewardsPlanEpic, fetchScheduleAccruedDetailsEpic, fetchScheduleAccruedDetailsPageEpic, fetchScheduleDetailsEpic, fetchScheduleDetailsPageEpic, fetchScheduleListEpic, fetchSchedulesAccountEpic, fetchSubscriptionAddOnsEpic, fetchSubscriptionCouponsEpic, fetchSubscriptionCreateEstimateEpic, fetchSubscriptionDetailsEpic, fetchSubscriptionListEpic, fetchSubscriptionPlansEpic, fetchSubscriptionSummaryForTenantEpic, fetchSubscriptionUpdateEstimateEpic, fetchSubscriptionViewEpic, fetchSuggestedQuestionsEpic, fetchTaskDetailEpic, fetchTaskDetailPageEpic, fetchTaskGroupTemplatesEpic, fetchTaskHistoryEpic, fetchTaskListEpic, fetchTaskListPageEpic, fetchTasksCardEpic, fetchTopExEpic, fetchTransactionActivityLogEpic, fetchTransactionDetailEpic, fetchTransactionListByAccountEpic, fetchTransactionListByClassEpic, fetchTransactionListByEntityEpic, fetchTransactionsForEntityEpic, fetchTransactionsListByCategoryTypeEpic, fetchTreasuryDetailEpic, fetchTreasuryFundsEpic, fetchTreasuryHistoryEpic, fetchTreasurySetupViewEpic, fetchTreasuryStatementListEpic, fetchTreasuryTaxLetterListEpic, fetchTreasuryTransactionListEpic, updatePortfolioAllocationEpic, fetchPortfolioAllocationEpic, fetchTrendForEntityEpic, fetchUserDetailEpic, fetchUserFinancialAccountEpic, fetchUserListByTypeEpic, fetchUserRoleConfigEpic, fetchVendor1099TypeListEpic, fetchVendorAndUpdateBillLocalDataEpic, fetchVendorByNameAndParseInvoiceEpic, fetchVendorDetailsEpic, fetchVendorEpic, fetchVendorFirstReviewAttachmentsEpic, fetchVendorFirstReviewViewEpic, fetchVendorGlobalReviewViewEpic, fetchVendorsFiling1099AllEpic, fetchVendorsFiling1099DownloadEpic, fetchVendorsFiling1099ListEpic, fetchVendorsListEpic, fetchVendorsTabVendorDetailPageViewEpic, fetchVendorsTabVendorDetailsEpic, fetchVendorsTabVendorEpic, fetchVendorTabViewEpic, fetchVendorTypeListEpic, fetchZeniAccountListEpic, fetchZeniAccountsConfigEpic, fetchZeniAccountSetupViewEpic, fetchZeniAccountsPromoCardEpic, fetchZeniAccStatementListEpic, fetchZeniAccStatementPageEpic, fetchZeniUsersEpic, getOnboardingEmailGroupEpic, getOnboardingPlaidLinkTokenEpic, getPaymentAccountsEpic, getPlaidLinkTokenEpic, ignoreExpenseAutomationJEScheduleEpic, improveUsingZeniGPTEpic, initialiseExpenseAutomationReconciliationLocalDataForSelectedAccountIdEpic, initializeAccountMappingViewEpic, initializeAccountSettingsViewEpic, initializeBillPaySetupApproverViewUpdateDataEpic, initializeBillToLocalStoreEpic, initializeCardUserOnboardingLocalDataEpic, initializeCompanyHealthMetricViewLocalDataEpic, initializeDynamicFormEpic, initializeEditPersonEpic, initializeExpenseAutomationJeScheduleLocalDataEpic, initializeInternationalWireLocalDataEpic, initializeIntlVerificationFormEpic, initializeMyProfileLocalDataEpic, initializeOnboardingCustomerViewUpdateDataEpic, initializeRemiSetupApproverViewUpdateDataEpic, initializeRemiToLocalStoreEpic, initializeScheduleAccruedDetailLocalDataEpic, initializeScheduleDetailLocalDataEpic, initializeSubscriptionLocalDataEpic, initializeTaskToLocalStoreEpic, initializeTransactionDetailLocalDataEpic, initializeVendorAddressEpic, initiateChargeCardRepaymentEpic, invitePeopleEpic, inviteZeniPeopleEpic, issueChargeCardEpic, lockChargeCardEpic, lockChargeCardsEpic, markAsCompleteScheduleDetailEpic, markTransactionAsNotMiscategorizedEpic, parallelFetchAccountTransactionListEpic, parallelFetchClassTransactionListEpic, parallelFetchEntityTransactionListEpic, parallelFetchTransactionListByCategoryTypeEpic, parseInvoiceToBillEpic, parseReceiptsToRemiEpic, peopleSaveUpdatesEpic, pushToastNotificationEpic, refreshExpenseAutomationCurrentTabEpic, refreshIntegrationsDataEpic, rejectVendorGlobalReviewEpic, resendCardInviteEpic, resendInviteEpic, resendOtpEpic, resendVerifyDeviceOTPEpic, resendReferralInviteEpic, resetTransactionVendorLocalDataEpic, resetVendorDetailLocalDataEpic, resetVendorsTabVendorDetailLocalDataEpic, retryBankAccountConnectionEpic, retryBankAccountConnectionForOnboardingEpic, retryExpenseAutomationJEScheduleEpic, retryOrRefundBillEpic, validateBillsBulkActionEpic, reviewDraftRemisBulkActionEpic, reviewExpenseAutomationFluxAnalysisViewEpic, revokeCardInviteEpic, revokeChargeCardsInviteEpic, saveAccountMappingViewEpic, saveAccountSettingsViewEpic, saveBillDetailEpic, saveBillPaySetupApproverViewUpdatesEpic, saveCardOnboardingUserDetailsEpic, saveCompanyBillingAddressEpic, saveCompanyHealthMetricByIdEpic, saveCompanyMonthEndReportEpic, saveCompanyPassportDetailsEpic, saveExpenseAutomationReconciliationDetailsEpic, saveExpenseAutomationReconciliationReviewEpic, saveExternalConnectionEpic, saveMagicLinkBankAccountEpic, saveNewAddressEpic, saveNotificationSettingsEpic, saveOnboardingCustomerCompletedStatusEpic, saveOnboardingCustomerNotesEpic, saveOnboardingCustomerViewUpdatesEpic, saveRealTimeApprovalEpic, saveReasonForAuditRuleEpic, saveRemiDetailEpic, saveRemiSetupApproverViewUpdatesEpic, saveScheduleAccruedDetailsEpic, saveScheduleDetailsEpic, saveSubscriptionNotesUpdatesEpic, saveSubscriptionUpdatesEpic, saveTaskDetailEpic, saveTransactionDetailEpic, saveTransactionVendorEpic, saveVendorDetailsViewEpic, saveVendorEpic, saveVendorFirstReviewViewEpic, saveVendorsTabVendorEpic, sendCompanyMonthEndReportEpic, sendOnboardingCustomerViewInviteEpic, sendOtpEpic, sendReferralInviteEpic, statementCloseDayEpic, stopSubmitEpic, stopSubmitQuestionEpic, submitDraftBillsBulkActionEpic, submitDraftRemisBulkActionEpic, submitExpressPayEpic, submitIntlVerificationEpic, submitQuestionEpic, toggleReportUIOptionForecastModeEpic, transferMoneyEpic, treasuryTransferMoneyEpic, triggerReviewTabRefetchEpic, unlinkPaymentAccountEpic, unlockChargeCardEpic, unlockChargeCardsEpic, updateAccruedJESchedulesEpic, updateAddressEpic, updateAutoTransferRuleEpic, updateAmountsInScheduleAccruedDetailEpic, updateAmountsInScheduleDetailEpic, updateBusinessVerificationDetailsEpic, updateChargeCardDetailEpic, updateChargeCardLimitEpic, updateChargeCardNameEpic, updateChargeCardsLimitEpic, updateAccountingClassesEnabledEpic, updateCompanyDetailsEpic, updateCompanyOfficerEpic, updateCompanyPassportLocalStoreDataEpic, updateDashboardLayoutEpic, updateDebitCardPinAttemptEpic, updateDepositAccountEpic, updateExpenseAutomationReconciliationBalanceLocalDataEpic, updateFileNameEpic, updateFilesMetadataEpic, updateJESchedulesEpic, updateMappedCashAccountEpic, updateMileageDetailsEpic, updateMyProfileEpic, updateNetBurnOrIncomeStoryCardSettingsEpic, updateNotificationViewAllNotificationsStatusEpic, updateNotificationViewNotificationStatusEpic, updateOnboardingCustomerViewCompleteStatusEpic, updateOnboardingCustomerViewDashboardLoadedEpic, updateOnboardingCustomerViewEpic, updateOnboardingCustomerViewLocalStoreDataEpic, updateOnboardingPaymentAccountLoginStatusEpic, updateOnboardingPaymentAccountStatusEpic, updatePaymentAccountEpic, updatePaymentAccountLoginStatusEpic, updatePaymentAccountStatusEpic, updatePhysicalChargeCardAttemptEpic, updatePrimaryContactEpic, updatePrimaryFundingAccountEpic, updateQBOConnectionPoolExternalConnectionEpic, updateReferViewedEpic, updateRemiSetupViewLocalStoreDataEpic, updateReportUIOptionCOABalancesRangeEpic, updateReportUIOptionIsCompareModeEpic, updateReportUIOptionIsCompareModeOnEpic, updateReportUIOptionThisPeriodEpic, updateReportUIOptionTimeFrameEpic, updateSectionAccountsViewEpic, updateSectionClassesViewEpicV2, updateSectionProjectViewEpic, updateSelectedVendorForCreateFlowEpic, updateSetupViewLocalStoreDataEpic, updateTaskFromListViewEpic, updateTaskGroupNameEpic, updateTransactionDetailEpic, updateTreasuryVideoViewedEpic, updateVendorContactEpic, uploadAccountStatementEpic, uploadMissingAttachmentSuccessEpic, uploadMissingReceiptSuccessEpic, uploadTransactionReceiptSuccessEpic, vendorFiling1099UploadDetailsSaveEpic, verifyOtpEpic, verifyUserEpic, waitForBillDetailThenInitializeLocalStoreEpic, waitForForecastListThenFetchNetBurnOrIncomeWithForecastEpic, waitForForecastListThenFetchOpExWithForecastEpic, waitForForecastListThenFetchRevenueWithForecastEpic, waitForMerchantRecommendationFetchThenUpdateRecommendationInMerchantEpic, waitForVendorByIdThenSaveBillUpdatetoLocalStoreEpic, waitForVendorByNameThenParsetoLocalStoreEpic, waitForVendorByNameThenUpdateBillDetailEpic, waitForVendorRecommendationFetchThenUpdateRecommendationInBillEpic, wiseRedirectEpic);
539
556
  const rootEpic = (action$, store$, dependencies) => combinedEpics(action$, store$, dependencies).pipe(map(identity), catchError((error, source) => {
540
557
  console.error(error);
541
558
  return source;