@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,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateSectionProjectViewEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const getNestedAccountIDHierarchyForReport_1 = require("../../commonStateTypes/accountView/getNestedAccountIDHierarchyForReport");
7
+ const accountReducer_1 = require("../account/accountReducer");
8
+ const sectionProjectViewReducer_1 = require("./sectionProjectViewReducer");
9
+ const updateSectionProjectViewEpic = (actions$) => actions$.pipe((0, operators_1.filter)(sectionProjectViewReducer_1.updateSectionProjectView.match), (0, operators_1.mergeMap)((action) => {
10
+ const actions = [];
11
+ const sectionPayload = action.payload.sectionPayload;
12
+ const sectionId = action.payload.sectionId;
13
+ const timeframe = action.payload.timeframe;
14
+ const reportId = action.payload.reportId;
15
+ const currencyPayload = action.payload.currencyPayload;
16
+ const accountsMetadataPayload = action.payload.accountsMetadataPayload;
17
+ const accountMetadataRecordsByID = (0, getNestedAccountIDHierarchyForReport_1.getAllAccountMetadataRecordsByID)(accountsMetadataPayload);
18
+ const accountMetadataWithBalancesPayloads = [];
19
+ if (sectionPayload.projects != null) {
20
+ Object.keys(sectionPayload.projects).forEach((projectId) => {
21
+ const projectAccounts = sectionPayload.projects[projectId].accounts;
22
+ const projectsViewParentID = {
23
+ projectId,
24
+ sectionId,
25
+ };
26
+ getSubAccountsMetadataForProjectAccountList(projectAccounts, accountMetadataRecordsByID, sectionId, projectsViewParentID, accountMetadataWithBalancesPayloads);
27
+ });
28
+ }
29
+ if (accountMetadataWithBalancesPayloads.length > 0) {
30
+ actions.push((0, accountReducer_1.updateMultipleSubAccountsWithBalances)(accountMetadataWithBalancesPayloads, currencyPayload, reportId, timeframe));
31
+ }
32
+ return (0, rxjs_1.from)(actions);
33
+ }));
34
+ exports.updateSectionProjectViewEpic = updateSectionProjectViewEpic;
35
+ const getSubAccountsMetadataForProjectAccountList = (accountListWithBalances, accountMetadataRecordsByID, sectionId, projectsViewParentID, result) => {
36
+ if (accountListWithBalances != null) {
37
+ Object.keys(accountListWithBalances).forEach((eachAccountId) => {
38
+ const accountMetadataRecord = accountMetadataRecordsByID[eachAccountId];
39
+ if (accountMetadataRecord != null) {
40
+ const accountId = accountMetadataRecord.nestedAccountId;
41
+ result.push({
42
+ accountsViewParentID: {
43
+ parentAccountId: (0, getNestedAccountIDHierarchyForReport_1.getParentAccountId)(accountId),
44
+ sectionId,
45
+ },
46
+ accountMetadataPayload: accountMetadataRecord.accountMetadataPayload,
47
+ accountBalancesPayload: accountListWithBalances[eachAccountId],
48
+ projectsViewParentID,
49
+ });
50
+ }
51
+ else {
52
+ console.warn(`Account ${eachAccountId} in Section ${sectionId} Project ${projectsViewParentID.projectId} is missing metadata.`);
53
+ }
54
+ });
55
+ }
56
+ };
@@ -0,0 +1,10 @@
1
+ import { COABalanceGroupedByPeriodPayloadV2 } from '../../commonPayloadTypes/v2/coaBalancePayload';
2
+ import { CurrencyPayload } from '../../commonPayloadTypes/v2/viewAndReportPayloadv2';
3
+ import { ID } from '../../commonStateTypes/common';
4
+ import { ReportID } from '../../commonStateTypes/viewAndReport/viewAndReport';
5
+ import { SectionProjectView } from './sectionProjectView';
6
+ export declare const mapProjectCOABalanceGroupedPayloadToSectionProjectView: (timeframe: "month" | "quarter" | "year", projectBalancesPayload: COABalanceGroupedByPeriodPayloadV2, currencyPayload: CurrencyPayload, id: {
7
+ projectId: ID;
8
+ reportId: ReportID;
9
+ sectionId: ID;
10
+ }) => SectionProjectView;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mapProjectCOABalanceGroupedPayloadToSectionProjectView = void 0;
4
+ const coaBalancePayload_1 = require("../../commonPayloadTypes/v2/coaBalancePayload");
5
+ const sectionProjectView_1 = require("./sectionProjectView");
6
+ const mapProjectCOABalanceGroupedPayloadToSectionProjectView = (timeframe, projectBalancesPayload, currencyPayload, id) => {
7
+ return {
8
+ key: (0, sectionProjectView_1.getSectionProjectViewKey)(id.sectionId, id.projectId, id.reportId),
9
+ projectId: id.projectId,
10
+ sectionId: id.sectionId,
11
+ balancesByPeriod: (0, coaBalancePayload_1.mapCOABalanceGroupedByPeriodPayloadV2ToCOABalanceGroupedByPeriod)(projectBalancesPayload, currencyPayload, timeframe),
12
+ };
13
+ };
14
+ exports.mapProjectCOABalanceGroupedPayloadToSectionProjectView = mapProjectCOABalanceGroupedPayloadToSectionProjectView;
@@ -0,0 +1,15 @@
1
+ import { CurrencyPayload } from '../../commonPayloadTypes/v2/viewAndReportPayloadv2';
2
+ import { AccountMetadataPayload } from '../account/accountPayload';
3
+ import { SectionByProjectCOABalanceGroupedPayloadV2 } from '../../view/profitAndLossProjectView/profitAndLossProjectViewPayload';
4
+ import { SectionProjectViewState } from './sectionProjectViewState';
5
+ export declare const initialState: SectionProjectViewState;
6
+ export declare const updateSectionProjectView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[timeframe: "month" | "year" | "quarter", sectionId: string, reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation", sectionPayload: SectionByProjectCOABalanceGroupedPayloadV2, accountsMetadataPayload: AccountMetadataPayload[], currencyPayload: CurrencyPayload], {
7
+ timeframe: "month" | "year" | "quarter";
8
+ reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation";
9
+ sectionId: string;
10
+ sectionPayload: SectionByProjectCOABalanceGroupedPayloadV2;
11
+ accountsMetadataPayload: AccountMetadataPayload[];
12
+ currencyPayload: CurrencyPayload;
13
+ }, "sectionProjectView/updateSectionProjectView", never, never>, clearAllSectionsProjectView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"sectionProjectView/clearAllSectionsProjectView">;
14
+ declare const _default: import("redux").Reducer<SectionProjectViewState>;
15
+ export default _default;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.clearAllSectionsProjectView = exports.updateSectionProjectView = exports.initialState = void 0;
5
+ const toolkit_1 = require("@reduxjs/toolkit");
6
+ const coaBalancePayload_1 = require("../../commonPayloadTypes/v2/coaBalancePayload");
7
+ const sectionProjectView_1 = require("./sectionProjectView");
8
+ const sectionProjectViewHelper_1 = require("./sectionProjectViewHelper");
9
+ exports.initialState = {
10
+ sectionsByKey: {},
11
+ };
12
+ const sectionProjectView = (0, toolkit_1.createSlice)({
13
+ name: 'sectionProjectView',
14
+ initialState: exports.initialState,
15
+ reducers: {
16
+ updateSectionProjectView: {
17
+ prepare(timeframe, sectionId, reportId, sectionPayload, accountsMetadataPayload, currencyPayload) {
18
+ return {
19
+ payload: {
20
+ timeframe,
21
+ reportId,
22
+ sectionId,
23
+ sectionPayload,
24
+ accountsMetadataPayload,
25
+ currencyPayload,
26
+ },
27
+ };
28
+ },
29
+ reducer(draft, action) {
30
+ const { timeframe, sectionPayload, sectionId, reportId, currencyPayload } = action.payload;
31
+ if (sectionPayload.projects != null) {
32
+ Object.keys(sectionPayload.projects).forEach((projectId) => {
33
+ const projectPayload = sectionPayload.projects[projectId];
34
+ updateSectionProject(draft, timeframe, projectPayload, sectionId, projectId, reportId, currencyPayload);
35
+ });
36
+ }
37
+ },
38
+ },
39
+ clearAllSectionsProjectView(draft) {
40
+ Object.assign(draft, exports.initialState);
41
+ },
42
+ },
43
+ });
44
+ _a = sectionProjectView.actions, exports.updateSectionProjectView = _a.updateSectionProjectView, exports.clearAllSectionsProjectView = _a.clearAllSectionsProjectView;
45
+ exports.default = sectionProjectView.reducer;
46
+ const updateSectionProject = (draft, timeframe, projectPayload, sectionId, projectId, reportId, currencyPayload) => {
47
+ const sectionKey = (0, sectionProjectView_1.getSectionProjectViewKey)(sectionId, projectId, reportId);
48
+ const section = draft.sectionsByKey[sectionKey];
49
+ if (section != null) {
50
+ draft.sectionsByKey[sectionKey].balancesByPeriod = Object.assign({}, draft.sectionsByKey[sectionKey].balancesByPeriod, (0, coaBalancePayload_1.mapCOABalanceGroupedByPeriodPayloadV2ToCOABalanceGroupedByPeriod)(projectPayload, currencyPayload, timeframe));
51
+ }
52
+ else {
53
+ draft.sectionsByKey[sectionKey] =
54
+ (0, sectionProjectViewHelper_1.mapProjectCOABalanceGroupedPayloadToSectionProjectView)(timeframe, projectPayload, currencyPayload, { sectionId, projectId, reportId });
55
+ }
56
+ };
@@ -0,0 +1,11 @@
1
+ import { COABalancesFilterProjectView } from '../../commonStateTypes/coaBalance/coaBalancesFilterProjectView';
2
+ import { ID } from '../../commonStateTypes/common';
3
+ import { ReportID } from '../../commonStateTypes/viewAndReport/viewAndReport';
4
+ import { AccountState } from '../account/accountState';
5
+ import { ProjectState } from '../project/projectReducer';
6
+ import { SectionProjectViewReport } from './sectionProjectViewSelectorTypes';
7
+ import { SectionProjectViewState } from './sectionProjectViewState';
8
+ export declare const getSectionProjectViewReport: (accountState: AccountState, projectState: ProjectState, sectionState: SectionProjectViewState, projectIds: ID[], id: {
9
+ reportId: ReportID;
10
+ sectionId: ID;
11
+ }, filter: COABalancesFilterProjectView) => SectionProjectViewReport;
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.getSectionProjectViewReport = void 0;
7
+ const get_1 = __importDefault(require("lodash/get"));
8
+ const coaBalance_1 = require("../../commonStateTypes/coaBalance/coaBalance");
9
+ const getSumOfBalancesGroupedByPeriod_1 = require("../../commonStateTypes/coaBalance/classBalances/getSumOfBalancesGroupedByPeriod");
10
+ const accountPayload_1 = require("../account/accountPayload");
11
+ const accountState_1 = require("../account/accountState");
12
+ const subAccountSelector_1 = require("../account/subAccountSelector");
13
+ const projectSelector_1 = require("../project/projectSelector");
14
+ const getNestedAccountIDHierarchyForSection_1 = require("../sectionAccountsView/getNestedAccountIDHierarchyForSection");
15
+ const sectionProjectView_1 = require("./sectionProjectView");
16
+ const getSectionProjectViewReport = (accountState, projectState, sectionState, projectIds, id, filter) => {
17
+ const projectIdsToShow = projectIds.filter((projectId) => !filter.projectsToFilterOut.includes(projectId));
18
+ const projectReports = [];
19
+ const sectionBalancesTotalByPeriodArray = [];
20
+ const accountsByProject = getAccountsByProject(accountState, id.sectionId, id.reportId);
21
+ projectIdsToShow.forEach((projectId) => {
22
+ const project = (0, projectSelector_1.getProjectById)(projectState, projectId);
23
+ if (project == null) {
24
+ return;
25
+ }
26
+ const projectAccountIds = accountsByProject[projectId] ?? [];
27
+ const accountsMetadata = projectAccountIds
28
+ .map((accountId) => {
29
+ const key = (0, accountState_1.getAccountKey)(id.reportId, accountId, undefined, undefined, { projectId, sectionId: id.sectionId });
30
+ const account = accountState.accountsByKey[key];
31
+ if (account == null) {
32
+ return undefined;
33
+ }
34
+ return (0, accountPayload_1.mapAccountMetadataPayloadToAccountMetadata)({
35
+ account_id: account.accountId,
36
+ account_name: account.accountName,
37
+ account_description: account.accountDescription,
38
+ labels: account.labels,
39
+ is_sub_account: account.accountsViewParentId != null,
40
+ parent_account_id: account.accountsViewParentId?.parentAccountId?.[0] ?? null,
41
+ });
42
+ })
43
+ .filter((metadata) => metadata != null);
44
+ const nestedAccountHierarchy = (0, getNestedAccountIDHierarchyForSection_1.getNestedAccountIDHierarchyForAccounts)(projectAccountIds, accountsMetadata);
45
+ const nestedAccountReports = [];
46
+ nestedAccountHierarchy.forEach((accountIdHierarchy) => {
47
+ const report = (0, subAccountSelector_1.getNestedAccountReportForAccount)(accountState, {
48
+ accountIdHierarchy,
49
+ reportId: id.reportId,
50
+ projectsViewParentId: {
51
+ projectId,
52
+ sectionId: id.sectionId,
53
+ },
54
+ }, filter, nestedAccountHierarchy.length > 1);
55
+ if (report != null) {
56
+ nestedAccountReports.push(report);
57
+ }
58
+ });
59
+ const projectSectionKey = (0, sectionProjectView_1.getSectionProjectViewKey)(id.sectionId, projectId, id.reportId);
60
+ const projectSectionView = (0, get_1.default)(sectionState.sectionsByKey, projectSectionKey, undefined);
61
+ const projectBalancesTotalByPeriod = projectSectionView?.balancesByPeriod ?? {};
62
+ const projectReport = {
63
+ projectId,
64
+ projectName: project.projectName,
65
+ accounts: nestedAccountReports,
66
+ ...(0, coaBalance_1.getCOABalances)(projectBalancesTotalByPeriod, filter),
67
+ projectBalancesTotalByPeriod,
68
+ };
69
+ projectReports.push(projectReport);
70
+ sectionBalancesTotalByPeriodArray.push(projectBalancesTotalByPeriod);
71
+ });
72
+ const sectionBalancesTotalByPeriod = (0, getSumOfBalancesGroupedByPeriod_1.getSumOfBalancesByGroupedByPeriod)(sectionBalancesTotalByPeriodArray) ?? {};
73
+ return {
74
+ projects: projectReports,
75
+ ...(0, coaBalance_1.getCOABalances)(sectionBalancesTotalByPeriod, filter),
76
+ sectionBalancesTotalByPeriod,
77
+ };
78
+ };
79
+ exports.getSectionProjectViewReport = getSectionProjectViewReport;
80
+ const getAccountsByProject = (accountState, sectionId, reportId) => {
81
+ const result = {};
82
+ Object.values(accountState.accountsByKey).forEach((account) => {
83
+ if (account.projectsViewParentId != null &&
84
+ account.projectsViewParentId.sectionId === sectionId &&
85
+ account.key.endsWith(reportId)) {
86
+ const projectId = account.projectsViewParentId.projectId;
87
+ if (result[projectId] == null) {
88
+ result[projectId] = [];
89
+ }
90
+ result[projectId].push(account.accountId);
91
+ }
92
+ });
93
+ return result;
94
+ };
@@ -0,0 +1,16 @@
1
+ import { COABalanceGroupedByPeriod } from '../../commonStateTypes/coaBalance/coaBalance';
2
+ import { COABalancesSlice } from '../../commonStateTypes/coaBalance/coaBalancesFilter';
3
+ import { ID } from '../../commonStateTypes/common';
4
+ import { NestedAccountReport } from '../account/subAccountSelector';
5
+ export interface ProjectReportV2 {
6
+ accounts: NestedAccountReport[];
7
+ projectId: ID;
8
+ projectName: string;
9
+ }
10
+ export interface ProjectReportWithBalances extends ProjectReportV2, COABalancesSlice {
11
+ projectBalancesTotalByPeriod: COABalanceGroupedByPeriod;
12
+ }
13
+ export interface SectionProjectViewReport extends COABalancesSlice {
14
+ projects: ProjectReportWithBalances[];
15
+ sectionBalancesTotalByPeriod: COABalanceGroupedByPeriod;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { SectionProjectKey, SectionProjectView } from './sectionProjectView';
2
+ export interface SectionProjectViewState {
3
+ sectionsByKey: Record<SectionProjectKey, SectionProjectView>;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- export declare const toSnackbarMessageSection: (v: string) => "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "bill_pay_marked_as_paid" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_setup" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "charge_card_update_limit" | "charge_cards_update_limit" | "close_charge_card" | "lock_charge_card" | "lock_charge_card_card_user" | "lock_charge_cards" | "unlock_charge_card" | "unlock_charge_card_card_user" | "unlock_charge_cards" | "close_charge_cards" | "revoke_invite_charge_cards" | "charge_card_express_interest" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "update_charge_card_name" | "update_charge_card_name_card_user" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipt_match" | "receipts_upload" | "billing_address_view" | "express_pay_submit" | "exclude_transaction" | "reconcile" | "save_reconcile_for_later" | "recon_transaction_categorize" | "recon_transaction_match" | "update_debit_card_pin_attempt" | "set_debit_card_pin" | "ai_cfo_create_session_and_submit" | "ai_cfo_chat_session_deleted" | "charge_card_auto_pay_enable" | "charge_card_auto_pay_disable" | "treasury_setup" | "treasury_accept_term" | "treasury_transfer_money" | "treasury_transfer_money_failed" | "treasury_update_portfolio_allocation" | "send_email_magic_link_to_user" | "complete_profile_done" | "reports_resync" | "invalid_phone_number" | "transactions_categorized_updated_failed" | "transaction_categorized_updated_failed" | "transactionsCategorized_transactionsUpdated" | "transactionsCategorized_transactionUpdated" | "transactionCategorized_transactionsUpdated" | "transactionCategorized_transactionUpdated" | "transactionsCategorized_transactionsFailed" | "transactionsCategorized_transactionFailed" | "transactionCategorized_transactionsFailed" | "transactionCategorized_transactionFailed" | "transactionsUpdated_transactionsFailed" | "transactionsUpdated_transactionFailed" | "transactionUpdated_transactionsFailed" | "transactionUpdated_transactionFailed" | "transactionsCategorized_transactionsUpdated_transactionsFailed" | "transactionsCategorized_transactionsUpdated_transactionFailed" | "transactionsCategorized_transactionUpdated_transactionsFailed" | "transactionCategorized_transactionsUpdated_transactionsFailed" | "transactionsCategorized_transactionUpdated_transactionFailed" | "transactionCategorized_transactionsUpdated_transactionFailed" | "transactionCategorized_transactionUpdated_transactionsFailed" | "transactionCategorized_transactionUpdated_transactionFailed";
1
+ export declare const toSnackbarMessageSection: (v: string) => "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "bill_pay_marked_as_paid" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_setup" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "charge_card_update_limit" | "charge_cards_update_limit" | "close_charge_card" | "lock_charge_card" | "lock_charge_card_card_user" | "lock_charge_cards" | "unlock_charge_card" | "unlock_charge_card_card_user" | "unlock_charge_cards" | "close_charge_cards" | "revoke_invite_charge_cards" | "charge_card_express_interest" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "update_charge_card_name" | "update_charge_card_name_card_user" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipt_match" | "receipts_upload" | "receipts_bulk_match" | "billing_address_view" | "express_pay_submit" | "exclude_transaction" | "reconcile" | "save_reconcile_for_later" | "recon_transaction_categorize" | "recon_transaction_match" | "update_debit_card_pin_attempt" | "set_debit_card_pin" | "ai_cfo_create_session_and_submit" | "ai_cfo_chat_session_deleted" | "charge_card_auto_pay_enable" | "charge_card_auto_pay_disable" | "treasury_setup" | "treasury_accept_term" | "treasury_transfer_money" | "treasury_transfer_money_failed" | "auto_transfer_rule_create" | "auto_transfer_rule_update" | "auto_transfer_rule_delete" | "auto_transfer_rule_pause" | "auto_transfer_rule_resume" | "treasury_update_portfolio_allocation" | "send_email_magic_link_to_user" | "complete_profile_done" | "reports_resync" | "invalid_phone_number" | "transactions_categorized_updated_failed" | "transaction_categorized_updated_failed" | "transactionsCategorized_transactionsUpdated" | "transactionsCategorized_transactionUpdated" | "transactionCategorized_transactionsUpdated" | "transactionCategorized_transactionUpdated" | "transactionsCategorized_transactionsFailed" | "transactionsCategorized_transactionFailed" | "transactionCategorized_transactionsFailed" | "transactionCategorized_transactionFailed" | "transactionsUpdated_transactionsFailed" | "transactionsUpdated_transactionFailed" | "transactionUpdated_transactionsFailed" | "transactionUpdated_transactionFailed" | "transactionsCategorized_transactionsUpdated_transactionsFailed" | "transactionsCategorized_transactionsUpdated_transactionFailed" | "transactionsCategorized_transactionUpdated_transactionsFailed" | "transactionCategorized_transactionsUpdated_transactionsFailed" | "transactionsCategorized_transactionUpdated_transactionFailed" | "transactionCategorized_transactionsUpdated_transactionFailed" | "transactionCategorized_transactionUpdated_transactionsFailed" | "transactionCategorized_transactionUpdated_transactionFailed" | "accounting_classes_enabled_update";
2
2
  export type SnackbarMessageSections = ReturnType<typeof toSnackbarMessageSection>;
3
3
  export declare const toSnackbarMessageSectionTexts: (v: string) => "notification" | "success" | "failed";
4
4
  export type SnackbarMessageSectionTexts = ReturnType<typeof toSnackbarMessageSectionTexts>;
@@ -154,6 +154,7 @@ const ALL_SNACKBAR_MESSAGE_SECTIONS = [
154
154
  'flux_analysis_reviewed',
155
155
  'receipt_match',
156
156
  'receipts_upload',
157
+ 'receipts_bulk_match',
157
158
  'billing_address_view',
158
159
  'express_pay_submit',
159
160
  'exclude_transaction',
@@ -171,6 +172,11 @@ const ALL_SNACKBAR_MESSAGE_SECTIONS = [
171
172
  'treasury_accept_term',
172
173
  'treasury_transfer_money',
173
174
  'treasury_transfer_money_failed',
175
+ 'auto_transfer_rule_create',
176
+ 'auto_transfer_rule_update',
177
+ 'auto_transfer_rule_delete',
178
+ 'auto_transfer_rule_pause',
179
+ 'auto_transfer_rule_resume',
174
180
  'treasury_update_portfolio_allocation',
175
181
  'send_email_magic_link_to_user',
176
182
  'complete_profile_done',
@@ -198,6 +204,7 @@ const ALL_SNACKBAR_MESSAGE_SECTIONS = [
198
204
  'transactionCategorized_transactionsUpdated_transactionFailed',
199
205
  'transactionCategorized_transactionUpdated_transactionsFailed',
200
206
  'transactionCategorized_transactionUpdated_transactionFailed',
207
+ 'accounting_classes_enabled_update',
201
208
  ];
202
209
  const toSnackbarMessageSection = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_SNACKBAR_MESSAGE_SECTIONS);
203
210
  exports.toSnackbarMessageSection = toSnackbarMessageSection;
@@ -5,6 +5,7 @@ import { clearAllEntityApprovalStatus } from '../../entity/entityApprovalStatus/
5
5
  import { clearAllMonthEndCloseChecks } from '../../entity/monthEndCloseChecks/monthEndCloseChecksReducer';
6
6
  import { clearAllNotifications } from '../../entity/notification/notificationReducer';
7
7
  import { clearAllSectionsClassesViewV2 } from '../../entity/sectionClassesViewV2/sectionClassesViewReducer';
8
+ import { clearAllSectionsProjectView } from '../../entity/sectionProjectView/sectionProjectViewReducer';
8
9
  import { clearAllTaskGroups } from '../../entity/taskGroup/taskGroupReducer';
9
10
  import { clearAllToastNotifications } from '../../entity/toastNotification/toastNotificationReducer';
10
11
  import { clearAccountList } from '../../view/accountList/accountListReducer';
@@ -63,6 +64,7 @@ import { clearOwnerList } from '../../view/ownerList/ownerListReducer';
63
64
  import { clearPeople } from '../../view/people/peopleReducer';
64
65
  import { clearProfitAndLoss } from '../../view/profitAndLoss/profitAndLossReducer';
65
66
  import { clearProfitAndLossClassesView } from '../../view/profitAndLossClassesView/profitAndLossClassesViewReducer';
67
+ import { clearProfitAndLossProjectView } from '../../view/profitAndLossProjectView/profitAndLossProjectViewReducer';
66
68
  import { clearRecommendation } from '../../view/recommendation/recommendationReducer';
67
69
  import { clearReferrals } from '../../view/referralView/referralReducer';
68
70
  import { clearReimbursementCard } from '../../view/reimbursementCard/reimbursementCardReducer';
@@ -160,6 +162,7 @@ import { clearAllChargeCardRepayments } from '../chargeCardRepayment/chargeCardR
160
162
  import { clearAllChargeCardTransactions } from '../chargeCardTransaction/chargeCardTransactionReducer';
161
163
  import { clearAllClasses } from '../class/classReducer';
162
164
  import { clearAllCompanies } from '../company/companyReducer';
165
+ import { clearAllProjects } from '../project/projectReducer';
163
166
  import { clearCompanyHealthMetric } from '../companyHealthMetric/companyHealthMetricReducer';
164
167
  import { clearAllConnectedAccounts } from '../connectedAccount/connectedAccountReducer';
165
168
  import { clearCountryList } from '../countryList/countryListReducer';
@@ -197,8 +200,8 @@ import { clearAllUserRoles } from '../userRole/userRoleReducer';
197
200
  import { clearAllVendors } from '../vendor/vendorReducer';
198
201
  import { clearAllVendorExpenseTrends } from '../vendorExpense/vendorExpenseReducer';
199
202
  import { clearAll } from './tenantReducer';
200
- type clearActionTypeForViews = ReturnType<typeof clearAccountList> | ReturnType<typeof clearAccountMappingView> | ReturnType<typeof clearActivityHistory> | ReturnType<typeof clearActivityRealTimeApproval> | ReturnType<typeof clearAddressView> | ReturnType<typeof clearAiCfoView> | ReturnType<typeof clearAllClasses> | ReturnType<typeof clearAllMonthEndCloseChecksView> | ReturnType<typeof clearApAging> | ReturnType<typeof clearApAgingDetail> | ReturnType<typeof clearArAging> | ReturnType<typeof clearArAgingDetail> | ReturnType<typeof clearAuthenticationView> | ReturnType<typeof clearBalanceSheet> | ReturnType<typeof clearBankAccountView> | ReturnType<typeof clearBillDetailView> | ReturnType<typeof clearBillList> | ReturnType<typeof clearBillPayBulkActionView> | ReturnType<typeof clearBillPayCard> | ReturnType<typeof clearBillPayConfig> | ReturnType<typeof clearBillPayReview> | ReturnType<typeof clearBillPaySetupApproverView> | ReturnType<typeof clearBillPaySetupView> | ReturnType<typeof clearCardBalance> | ReturnType<typeof clearCardPaymentView> | ReturnType<typeof clearCardUserOnboarding> | ReturnType<typeof clearCashbackDetail> | ReturnType<typeof clearCashBalance> | ReturnType<typeof clearCashFlow> | ReturnType<typeof clearCashInCashOut> | ReturnType<typeof clearCashPosition> | ReturnType<typeof clearChargeCardConfig> | ReturnType<typeof clearChargeCardDetail> | ReturnType<typeof clearChargeCardList> | ReturnType<typeof clearChargeCardRepaymentDetail> | ReturnType<typeof clearChargeCardSetupView> | ReturnType<typeof clearChargeCardStatementList> | ReturnType<typeof clearCheckDeposit> | ReturnType<typeof clearCompanyConfigView> | ReturnType<typeof clearCompanyHealthMetric> | ReturnType<typeof clearCompanyHealthMetricView> | ReturnType<typeof clearCompanyMonthEndReportView> | ReturnType<typeof clearCompanyTaskManagerView> | ReturnType<typeof clearCompanyView> | ReturnType<typeof clearDashboard> | ReturnType<typeof clearDashboardLayout> | ReturnType<typeof clearDepositAccountDetail> | ReturnType<typeof clearDepositAccountList> | ReturnType<typeof clearDepositAccountTransactionList> | ReturnType<typeof clearEditBillViewDetail> | ReturnType<typeof clearEditRemiViewDetail> | ReturnType<typeof clearAllEntityAutoCompleteResults> | ReturnType<typeof clearExpenseAutomationFluxAnalysisView> | ReturnType<typeof clearExpenseAutomationJESchedulesView> | ReturnType<typeof clearExpenseAutomationMissingReceiptsView> | ReturnType<typeof clearExpenseAutomationReconciliationView> | ReturnType<typeof clearExpenseAutomationTransactionsView> | ReturnType<typeof clearExpenseAutomationView> | ReturnType<typeof clearExpressPayView> | ReturnType<typeof clearFileViewList> | ReturnType<typeof clearFinanceStatement> | ReturnType<typeof clearForecastList> | ReturnType<typeof clearGlobalMerchantAutoCompleteResults> | ReturnType<typeof clearGlobalMerchantView> | ReturnType<typeof clearInsightsCard> | ReturnType<typeof clearInternationalWire> | ReturnType<typeof clearInternationalVerificationView> | ReturnType<typeof clearIssueChargeCard> | ReturnType<typeof clearMerchantList> | ReturnType<typeof clearNetBurnOrIncome> | ReturnType<typeof clearNetBurnOrIncomeClassesView> | ReturnType<typeof clearNetBurnOrIncomeStoryCard> | ReturnType<typeof clearNotificationView> | ReturnType<typeof clearOnboardingCockpitView> | ReturnType<typeof clearOnboardingCustomerView> | ReturnType<typeof clearOpEx> | ReturnType<typeof clearOpExByVendor> | ReturnType<typeof clearOpExClassesView> | ReturnType<typeof clearOwnerList> | ReturnType<typeof clearPaymentAccountList> | ReturnType<typeof clearPeople> | ReturnType<typeof clearAggregatedReport> | ReturnType<typeof clearPreviousBills> | ReturnType<typeof clearProfitAndLoss> | ReturnType<typeof clearProfitAndLossClassesView> | ReturnType<typeof clearRecommendation> | ReturnType<typeof clearReferrals> | ReturnType<typeof clearReimbursementCard> | ReturnType<typeof clearReimbursementConfig> | ReturnType<typeof clearRemiBulkActionView> | ReturnType<typeof clearRemiDetailView> | ReturnType<typeof clearRemiList> | ReturnType<typeof clearRemiSetupApproverView> | ReturnType<typeof clearRemiSetupView> | ReturnType<typeof clearReportUIOption> | ReturnType<typeof clearRevenue> | ReturnType<typeof clearRevenueClassesView> | ReturnType<typeof clearReviewCompany> | ReturnType<typeof clearScheduleDetailView> | ReturnType<typeof clearScheduleAccruedDetailView> | ReturnType<typeof clearScheduleList> | ReturnType<typeof clearSettingsView> | ReturnType<typeof clearSetupView> | ReturnType<typeof clearPlaidAccountView> | ReturnType<typeof clearSubscriptionView> | ReturnType<typeof clearTagView> | ReturnType<typeof clearTaskDetail> | ReturnType<typeof clearTaskGroupTemplatesView> | ReturnType<typeof clearTaskGroupView> | ReturnType<typeof clearTaskList> | ReturnType<typeof clearTasksCard> | ReturnType<typeof clearTopEx> | ReturnType<typeof clearTransactionDetail> | ReturnType<typeof clearTransactionList> | ReturnType<typeof clearTransferDetail> | ReturnType<typeof clearTreasuryOverviewDetail> | ReturnType<typeof clearTreasurySetupView> | ReturnType<typeof clearTreasuryStatementList> | ReturnType<typeof clearTreasuryTaxLetterList> | ReturnType<typeof clearTreasuryTransferMoney> | ReturnType<typeof clearTrendData> | ReturnType<typeof clearTrendWithTransactions> | ReturnType<typeof clearTwoFactorAuthentication> | ReturnType<typeof clearUserFinancialAccount> | ReturnType<typeof clearUserListView> | ReturnType<typeof clearUserRoleConfigView> | ReturnType<typeof clearVendorGlobalReviewView> | ReturnType<typeof clearVendorReviewView> | ReturnType<typeof clearVendorTypeList> | ReturnType<typeof clearVendor1099TypeList> | ReturnType<typeof clearVendorView> | ReturnType<typeof clearVendorsFiling1099List> | ReturnType<typeof clearVendorsList> | ReturnType<typeof clearVendorsTabVendorView> | ReturnType<typeof clearWiseRedirectStatus> | ReturnType<typeof clearZeniAccStatementList> | ReturnType<typeof clearZeniAccountList> | ReturnType<typeof clearZeniAccountSetupView> | ReturnType<typeof clearZeniAccountsConfig> | ReturnType<typeof clearZeniAccountsPromoCard>;
201
- type clearActionTypeForEntities = ReturnType<typeof clearAiCfo> | ReturnType<typeof clearAllAccountGroups> | ReturnType<typeof clearAllAccountRecon> | ReturnType<typeof clearAllAccountingSummary> | ReturnType<typeof clearAllAccounts> | ReturnType<typeof clearAllAddresses> | ReturnType<typeof clearAllApprovalRules> | ReturnType<typeof clearAllBankAccounts> | ReturnType<typeof clearAllBillTransactions> | ReturnType<typeof clearAllCardPayments> | ReturnType<typeof clearAllChargeCardRepayments> | ReturnType<typeof clearAllChargeCardTransactions> | ReturnType<typeof clearAllChargeCards> | ReturnType<typeof clearAllCompanies> | ReturnType<typeof clearAllConnectedAccounts> | ReturnType<typeof clearAllCurrencies> | ReturnType<typeof clearAllCustomerIncomeTrend> | ReturnType<typeof clearAllCustomers> | ReturnType<typeof clearAllDepositAccounts> | ReturnType<typeof clearAllEntities> | ReturnType<typeof clearAllEntityApprovalStatus> | ReturnType<typeof clearAllFiles> | ReturnType<typeof clearAllForecasts> | ReturnType<typeof clearAllGlobalMerchants> | ReturnType<typeof clearAllInsights> | ReturnType<typeof clearAllAccruedJESchedules> | ReturnType<typeof clearAllJEScheduleTransactions> | ReturnType<typeof clearAllMerchants> | ReturnType<typeof clearAllMonthEndCloseChecks> | ReturnType<typeof clearAllNotifications> | ReturnType<typeof clearAllOnboardingCustomersInfo> | ReturnType<typeof clearAllPaymentAccounts> | ReturnType<typeof clearAllPaymentInstruments> | ReturnType<typeof clearAllRecurringBills> | ReturnType<typeof clearAllReimbursements> | ReturnType<typeof clearAllSectionsAccountsView> | ReturnType<typeof clearAllSectionsClassesViewV2> | ReturnType<typeof clearAllSubscriptionAddOns> | ReturnType<typeof clearAllSubscriptionCoupons> | ReturnType<typeof clearAllSubscriptionPlans> | ReturnType<typeof clearAllSubscriptionSummary> | ReturnType<typeof clearAllSubscriptions> | ReturnType<typeof clearAllTags> | ReturnType<typeof clearAllTaskGroups> | ReturnType<typeof clearAllTaskGroupTemplates> | ReturnType<typeof clearAllTaskSummary> | ReturnType<typeof clearAllTasks> | ReturnType<typeof clearAllToastNotifications> | ReturnType<typeof clearAllTransactions> | ReturnType<typeof clearAllUserRoles> | ReturnType<typeof clearAllUsers> | ReturnType<typeof clearAllVendorExpenseTrends> | ReturnType<typeof clearAllVendors> | ReturnType<typeof clearClassList> | ReturnType<typeof clearContacts> | ReturnType<typeof clearCountryList> | ReturnType<typeof clearDepositAccountTransaction> | ReturnType<typeof clearSnackbar>;
203
+ type clearActionTypeForViews = ReturnType<typeof clearAccountList> | ReturnType<typeof clearAccountMappingView> | ReturnType<typeof clearActivityHistory> | ReturnType<typeof clearActivityRealTimeApproval> | ReturnType<typeof clearAddressView> | ReturnType<typeof clearAiCfoView> | ReturnType<typeof clearAllClasses> | ReturnType<typeof clearAllProjects> | ReturnType<typeof clearAllMonthEndCloseChecksView> | ReturnType<typeof clearApAging> | ReturnType<typeof clearApAgingDetail> | ReturnType<typeof clearArAging> | ReturnType<typeof clearArAgingDetail> | ReturnType<typeof clearAuthenticationView> | ReturnType<typeof clearBalanceSheet> | ReturnType<typeof clearBankAccountView> | ReturnType<typeof clearBillDetailView> | ReturnType<typeof clearBillList> | ReturnType<typeof clearBillPayBulkActionView> | ReturnType<typeof clearBillPayCard> | ReturnType<typeof clearBillPayConfig> | ReturnType<typeof clearBillPayReview> | ReturnType<typeof clearBillPaySetupApproverView> | ReturnType<typeof clearBillPaySetupView> | ReturnType<typeof clearCardBalance> | ReturnType<typeof clearCardPaymentView> | ReturnType<typeof clearCardUserOnboarding> | ReturnType<typeof clearCashbackDetail> | ReturnType<typeof clearCashBalance> | ReturnType<typeof clearCashFlow> | ReturnType<typeof clearCashInCashOut> | ReturnType<typeof clearCashPosition> | ReturnType<typeof clearChargeCardConfig> | ReturnType<typeof clearChargeCardDetail> | ReturnType<typeof clearChargeCardList> | ReturnType<typeof clearChargeCardRepaymentDetail> | ReturnType<typeof clearChargeCardSetupView> | ReturnType<typeof clearChargeCardStatementList> | ReturnType<typeof clearCheckDeposit> | ReturnType<typeof clearCompanyConfigView> | ReturnType<typeof clearCompanyHealthMetric> | ReturnType<typeof clearCompanyHealthMetricView> | ReturnType<typeof clearCompanyMonthEndReportView> | ReturnType<typeof clearCompanyTaskManagerView> | ReturnType<typeof clearCompanyView> | ReturnType<typeof clearDashboard> | ReturnType<typeof clearDashboardLayout> | ReturnType<typeof clearDepositAccountDetail> | ReturnType<typeof clearDepositAccountList> | ReturnType<typeof clearDepositAccountTransactionList> | ReturnType<typeof clearEditBillViewDetail> | ReturnType<typeof clearEditRemiViewDetail> | ReturnType<typeof clearAllEntityAutoCompleteResults> | ReturnType<typeof clearExpenseAutomationFluxAnalysisView> | ReturnType<typeof clearExpenseAutomationJESchedulesView> | ReturnType<typeof clearExpenseAutomationMissingReceiptsView> | ReturnType<typeof clearExpenseAutomationReconciliationView> | ReturnType<typeof clearExpenseAutomationTransactionsView> | ReturnType<typeof clearExpenseAutomationView> | ReturnType<typeof clearExpressPayView> | ReturnType<typeof clearFileViewList> | ReturnType<typeof clearFinanceStatement> | ReturnType<typeof clearForecastList> | ReturnType<typeof clearGlobalMerchantAutoCompleteResults> | ReturnType<typeof clearGlobalMerchantView> | ReturnType<typeof clearInsightsCard> | ReturnType<typeof clearInternationalWire> | ReturnType<typeof clearInternationalVerificationView> | ReturnType<typeof clearIssueChargeCard> | ReturnType<typeof clearMerchantList> | ReturnType<typeof clearNetBurnOrIncome> | ReturnType<typeof clearNetBurnOrIncomeClassesView> | ReturnType<typeof clearNetBurnOrIncomeStoryCard> | ReturnType<typeof clearNotificationView> | ReturnType<typeof clearOnboardingCockpitView> | ReturnType<typeof clearOnboardingCustomerView> | ReturnType<typeof clearOpEx> | ReturnType<typeof clearOpExByVendor> | ReturnType<typeof clearOpExClassesView> | ReturnType<typeof clearOwnerList> | ReturnType<typeof clearPaymentAccountList> | ReturnType<typeof clearPeople> | ReturnType<typeof clearAggregatedReport> | ReturnType<typeof clearPreviousBills> | ReturnType<typeof clearProfitAndLoss> | ReturnType<typeof clearProfitAndLossClassesView> | ReturnType<typeof clearProfitAndLossProjectView> | ReturnType<typeof clearRecommendation> | ReturnType<typeof clearReferrals> | ReturnType<typeof clearReimbursementCard> | ReturnType<typeof clearReimbursementConfig> | ReturnType<typeof clearRemiBulkActionView> | ReturnType<typeof clearRemiDetailView> | ReturnType<typeof clearRemiList> | ReturnType<typeof clearRemiSetupApproverView> | ReturnType<typeof clearRemiSetupView> | ReturnType<typeof clearReportUIOption> | ReturnType<typeof clearRevenue> | ReturnType<typeof clearRevenueClassesView> | ReturnType<typeof clearReviewCompany> | ReturnType<typeof clearScheduleDetailView> | ReturnType<typeof clearScheduleAccruedDetailView> | ReturnType<typeof clearScheduleList> | ReturnType<typeof clearSettingsView> | ReturnType<typeof clearSetupView> | ReturnType<typeof clearPlaidAccountView> | ReturnType<typeof clearSubscriptionView> | ReturnType<typeof clearTagView> | ReturnType<typeof clearTaskDetail> | ReturnType<typeof clearTaskGroupTemplatesView> | ReturnType<typeof clearTaskGroupView> | ReturnType<typeof clearTaskList> | ReturnType<typeof clearTasksCard> | ReturnType<typeof clearTopEx> | ReturnType<typeof clearTransactionDetail> | ReturnType<typeof clearTransactionList> | ReturnType<typeof clearTransferDetail> | ReturnType<typeof clearTreasuryOverviewDetail> | ReturnType<typeof clearTreasurySetupView> | ReturnType<typeof clearTreasuryStatementList> | ReturnType<typeof clearTreasuryTaxLetterList> | ReturnType<typeof clearTreasuryTransferMoney> | ReturnType<typeof clearTrendData> | ReturnType<typeof clearTrendWithTransactions> | ReturnType<typeof clearTwoFactorAuthentication> | ReturnType<typeof clearUserFinancialAccount> | ReturnType<typeof clearUserListView> | ReturnType<typeof clearUserRoleConfigView> | ReturnType<typeof clearVendorGlobalReviewView> | ReturnType<typeof clearVendorReviewView> | ReturnType<typeof clearVendorTypeList> | ReturnType<typeof clearVendor1099TypeList> | ReturnType<typeof clearVendorView> | ReturnType<typeof clearVendorsFiling1099List> | ReturnType<typeof clearVendorsList> | ReturnType<typeof clearVendorsTabVendorView> | ReturnType<typeof clearWiseRedirectStatus> | ReturnType<typeof clearZeniAccStatementList> | ReturnType<typeof clearZeniAccountList> | ReturnType<typeof clearZeniAccountSetupView> | ReturnType<typeof clearZeniAccountsConfig> | ReturnType<typeof clearZeniAccountsPromoCard>;
204
+ type clearActionTypeForEntities = ReturnType<typeof clearAiCfo> | ReturnType<typeof clearAllAccountGroups> | ReturnType<typeof clearAllAccountRecon> | ReturnType<typeof clearAllAccountingSummary> | ReturnType<typeof clearAllAccounts> | ReturnType<typeof clearAllAddresses> | ReturnType<typeof clearAllApprovalRules> | ReturnType<typeof clearAllBankAccounts> | ReturnType<typeof clearAllBillTransactions> | ReturnType<typeof clearAllCardPayments> | ReturnType<typeof clearAllChargeCardRepayments> | ReturnType<typeof clearAllChargeCardTransactions> | ReturnType<typeof clearAllChargeCards> | ReturnType<typeof clearAllCompanies> | ReturnType<typeof clearAllConnectedAccounts> | ReturnType<typeof clearAllCurrencies> | ReturnType<typeof clearAllCustomerIncomeTrend> | ReturnType<typeof clearAllCustomers> | ReturnType<typeof clearAllDepositAccounts> | ReturnType<typeof clearAllEntities> | ReturnType<typeof clearAllEntityApprovalStatus> | ReturnType<typeof clearAllFiles> | ReturnType<typeof clearAllForecasts> | ReturnType<typeof clearAllGlobalMerchants> | ReturnType<typeof clearAllInsights> | ReturnType<typeof clearAllAccruedJESchedules> | ReturnType<typeof clearAllJEScheduleTransactions> | ReturnType<typeof clearAllMerchants> | ReturnType<typeof clearAllMonthEndCloseChecks> | ReturnType<typeof clearAllNotifications> | ReturnType<typeof clearAllOnboardingCustomersInfo> | ReturnType<typeof clearAllPaymentAccounts> | ReturnType<typeof clearAllPaymentInstruments> | ReturnType<typeof clearAllRecurringBills> | ReturnType<typeof clearAllReimbursements> | ReturnType<typeof clearAllSectionsAccountsView> | ReturnType<typeof clearAllSectionsClassesViewV2> | ReturnType<typeof clearAllSectionsProjectView> | ReturnType<typeof clearAllSubscriptionAddOns> | ReturnType<typeof clearAllSubscriptionCoupons> | ReturnType<typeof clearAllSubscriptionPlans> | ReturnType<typeof clearAllSubscriptionSummary> | ReturnType<typeof clearAllSubscriptions> | ReturnType<typeof clearAllTags> | ReturnType<typeof clearAllTaskGroups> | ReturnType<typeof clearAllTaskGroupTemplates> | ReturnType<typeof clearAllTaskSummary> | ReturnType<typeof clearAllTasks> | ReturnType<typeof clearAllToastNotifications> | ReturnType<typeof clearAllTransactions> | ReturnType<typeof clearAllUserRoles> | ReturnType<typeof clearAllUsers> | ReturnType<typeof clearAllVendorExpenseTrends> | ReturnType<typeof clearAllVendors> | ReturnType<typeof clearClassList> | ReturnType<typeof clearContacts> | ReturnType<typeof clearCountryList> | ReturnType<typeof clearDepositAccountTransaction> | ReturnType<typeof clearSnackbar>;
202
205
  export type ActionType = clearActionTypeForViews | clearActionTypeForEntities | ReturnType<typeof clearAll>;
203
206
  export declare const clearAllEpic: (actions$: ActionsObservable<ActionType>) => import("rxjs").Observable<ActionType>;
204
207
  export {};
@@ -9,6 +9,7 @@ const entityApprovalStatusReducer_1 = require("../../entity/entityApprovalStatus
9
9
  const monthEndCloseChecksReducer_1 = require("../../entity/monthEndCloseChecks/monthEndCloseChecksReducer");
10
10
  const notificationReducer_1 = require("../../entity/notification/notificationReducer");
11
11
  const sectionClassesViewReducer_1 = require("../../entity/sectionClassesViewV2/sectionClassesViewReducer");
12
+ const sectionProjectViewReducer_1 = require("../../entity/sectionProjectView/sectionProjectViewReducer");
12
13
  const taskGroupReducer_1 = require("../../entity/taskGroup/taskGroupReducer");
13
14
  const toastNotificationReducer_1 = require("../../entity/toastNotification/toastNotificationReducer");
14
15
  const accountListReducer_1 = require("../../view/accountList/accountListReducer");
@@ -67,6 +68,7 @@ const ownerListReducer_1 = require("../../view/ownerList/ownerListReducer");
67
68
  const peopleReducer_1 = require("../../view/people/peopleReducer");
68
69
  const profitAndLossReducer_1 = require("../../view/profitAndLoss/profitAndLossReducer");
69
70
  const profitAndLossClassesViewReducer_1 = require("../../view/profitAndLossClassesView/profitAndLossClassesViewReducer");
71
+ const profitAndLossProjectViewReducer_1 = require("../../view/profitAndLossProjectView/profitAndLossProjectViewReducer");
70
72
  const recommendationReducer_1 = require("../../view/recommendation/recommendationReducer");
71
73
  const referralReducer_1 = require("../../view/referralView/referralReducer");
72
74
  const reimbursementCardReducer_1 = require("../../view/reimbursementCard/reimbursementCardReducer");
@@ -164,6 +166,7 @@ const chargeCardRepaymentReducer_1 = require("../chargeCardRepayment/chargeCardR
164
166
  const chargeCardTransactionReducer_1 = require("../chargeCardTransaction/chargeCardTransactionReducer");
165
167
  const classReducer_1 = require("../class/classReducer");
166
168
  const companyReducer_1 = require("../company/companyReducer");
169
+ const projectReducer_1 = require("../project/projectReducer");
167
170
  const companyHealthMetricReducer_1 = require("../companyHealthMetric/companyHealthMetricReducer");
168
171
  const connectedAccountReducer_1 = require("../connectedAccount/connectedAccountReducer");
169
172
  const countryListReducer_1 = require("../countryList/countryListReducer");
@@ -212,6 +215,7 @@ const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantR
212
215
  (0, addressViewReducer_1.clearAddressView)(),
213
216
  (0, aiCfoViewReducer_1.clearAiCfoView)(),
214
217
  (0, classReducer_1.clearAllClasses)(),
218
+ (0, projectReducer_1.clearAllProjects)(),
215
219
  (0, monthEndCloseChecksViewReducer_1.clearAllMonthEndCloseChecksView)(),
216
220
  (0, apAgingReducer_1.clearApAging)(),
217
221
  (0, apAgingDetailReducer_1.clearApAgingDetail)(),
@@ -291,6 +295,7 @@ const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantR
291
295
  (0, previousBillsReducer_1.clearPreviousBills)(),
292
296
  (0, profitAndLossReducer_1.clearProfitAndLoss)(),
293
297
  (0, profitAndLossClassesViewReducer_1.clearProfitAndLossClassesView)(),
298
+ (0, profitAndLossProjectViewReducer_1.clearProfitAndLossProjectView)(),
294
299
  (0, recommendationReducer_1.clearRecommendation)(),
295
300
  (0, referralReducer_1.clearReferrals)(),
296
301
  (0, reimbursementCardReducer_1.clearReimbursementCard)(),
@@ -385,6 +390,7 @@ const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantR
385
390
  (0, reimbursementReducer_1.clearAllReimbursements)(),
386
391
  (0, sectionAccountsViewReducer_1.clearAllSectionsAccountsView)(),
387
392
  (0, sectionClassesViewReducer_1.clearAllSectionsClassesViewV2)(),
393
+ (0, sectionProjectViewReducer_1.clearAllSectionsProjectView)(),
388
394
  (0, subscriptionAddOnReducer_1.clearAllSubscriptionAddOns)(),
389
395
  (0, subscriptionCouponReducer_1.clearAllSubscriptionCoupons)(),
390
396
  (0, subscriptionPlanReducer_1.clearAllSubscriptionPlans)(),
@@ -33,6 +33,8 @@ interface TenantPayload {
33
33
  invite_create_time: string;
34
34
  inviter_email: string;
35
35
  inviter_id: ID;
36
+ is_accounting_classes_enabled: boolean;
37
+ is_accounting_projects_enabled: boolean;
36
38
  is_admin: boolean;
37
39
  is_ap_analyst: boolean;
38
40
  is_banker: boolean;
@@ -1,4 +1,4 @@
1
- import { FetchState } from '../../commonStateTypes/common';
1
+ import { FetchState, ID } from '../../commonStateTypes/common';
2
2
  import { ZeniAPIStatus } from '../../responsePayload';
3
3
  import ZeniUrl from '../../zeniUrl';
4
4
  import { SubscriptionSummaryPayload } from '../subscription/subscriptionSummary/subscriptionSummaryPayload';
@@ -93,7 +93,10 @@ export declare const updateTenants: import("@reduxjs/toolkit").ActionCreatorWith
93
93
  otpChallenge: string;
94
94
  userEmail: string;
95
95
  twoFAPhoneNumber: string;
96
- }, "tenant/trigger2FA", never, never>, updateTenantMasterTOSInfo: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserRolePayload, "tenant/updateTenantMasterTOSInfo">, verifyDeviceWithTwoFA: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[otp: any, deviceId: any, userEmail: any, otpChallenge: any], {
96
+ }, "tenant/trigger2FA", never, never>, updateTenantAccountingClassesEnabled: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
97
+ enabled: boolean;
98
+ tenantId: ID;
99
+ }, "tenant/updateTenantAccountingClassesEnabled">, updateTenantMasterTOSInfo: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserRolePayload, "tenant/updateTenantMasterTOSInfo">, verifyDeviceWithTwoFA: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[otp: any, deviceId: any, userEmail: any, otpChallenge: any], {
97
100
  otp: any;
98
101
  deviceId: any;
99
102
  userEmail: any;
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  var _a;
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.toConnection = exports.toRoleResource = exports.resendVerifyDeviceOTPFailure = exports.resendVerifyDeviceOTPSuccess = exports.resendVerifyDeviceOTP = exports.verifyDeviceWithTwoFAFailure = exports.verifyDeviceWithTwoFASuccess = exports.verifyDeviceWithTwoFA = exports.updateTenantMasterTOSInfo = exports.trigger2FA = exports.resetSignInState = exports.updateTreasuryVideoViewedForLoggedInUser = exports.updateReferViewedForLoggedInUser = exports.updateTenantReimbursementInfo = exports.removeOnboardingTenant = exports.updateOnboardingTenants = exports.updateSubscriptionSummaryForTenantFailure = exports.updateSubscriptionSummaryForTenantSuccess = exports.fetchSubscriptionSummaryForTenant = exports.clearAll = exports.fetchExternalConnectionsSuccess = exports.fetchExternalConnectionsFailure = exports.saveExternalConnectionFailure = exports.saveExternalConnectionSuccess = exports.saveExternalConnection = exports.fetchExternalConnections = exports.updateLoggedInUser = exports.signOutSuccess = exports.doSignOut = exports.updateSignInState = exports.sendEmailMagicLinkToUserFailure = exports.sendEmailMagicLinkToUserSuccess = exports.sendEmailMagicLinkToUser = exports.magicLinkSignInFailure = exports.magicLinkSignInSuccess = exports.doMagicLinkSignIn = exports.doSignIn = exports.updateExcludedResourcesFailure = exports.updateExcludedResourcesSuccess = exports.fetchExcludedResources = exports.updateCurrentTenant = exports.updateTenantFailure = exports.updateTenantSuccess = exports.fetchActiveTenant = exports.updateTenantsFailure = exports.updateTenantsSuccess = exports.fetchAllTenants = exports.updateTenants = exports.initialState = void 0;
7
+ exports.toConnection = exports.toRoleResource = exports.resendVerifyDeviceOTPFailure = exports.resendVerifyDeviceOTPSuccess = exports.resendVerifyDeviceOTP = exports.verifyDeviceWithTwoFAFailure = exports.verifyDeviceWithTwoFASuccess = exports.verifyDeviceWithTwoFA = exports.updateTenantMasterTOSInfo = exports.updateTenantAccountingClassesEnabled = exports.trigger2FA = exports.resetSignInState = exports.updateTreasuryVideoViewedForLoggedInUser = exports.updateReferViewedForLoggedInUser = exports.updateTenantReimbursementInfo = exports.removeOnboardingTenant = exports.updateOnboardingTenants = exports.updateSubscriptionSummaryForTenantFailure = exports.updateSubscriptionSummaryForTenantSuccess = exports.fetchSubscriptionSummaryForTenant = exports.clearAll = exports.fetchExternalConnectionsSuccess = exports.fetchExternalConnectionsFailure = exports.saveExternalConnectionFailure = exports.saveExternalConnectionSuccess = exports.saveExternalConnection = exports.fetchExternalConnections = exports.updateLoggedInUser = exports.signOutSuccess = exports.doSignOut = exports.updateSignInState = exports.sendEmailMagicLinkToUserFailure = exports.sendEmailMagicLinkToUserSuccess = exports.sendEmailMagicLinkToUser = exports.magicLinkSignInFailure = exports.magicLinkSignInSuccess = exports.doMagicLinkSignIn = exports.doSignIn = exports.updateExcludedResourcesFailure = exports.updateExcludedResourcesSuccess = exports.fetchExcludedResources = exports.updateCurrentTenant = exports.updateTenantFailure = exports.updateTenantSuccess = exports.fetchActiveTenant = exports.updateTenantsFailure = exports.updateTenantsSuccess = exports.fetchAllTenants = exports.updateTenants = exports.initialState = void 0;
8
8
  exports.mapConnectionsPayloadToState = mapConnectionsPayloadToState;
9
9
  const toolkit_1 = require("@reduxjs/toolkit");
10
10
  const js_base64_1 = require("js-base64");
@@ -133,6 +133,12 @@ const tenant = (0, toolkit_1.createSlice)({
133
133
  draft.tenantIds = [...new Set([...draft.tenantIds, ...tenantIds])];
134
134
  draft.loggedInUser = (0, assignWith_1.default)(draft.loggedInUser ?? {}, firstUser, (objValue, srcValue) => srcValue ?? objValue);
135
135
  },
136
+ updateTenantAccountingClassesEnabled(draft, action) {
137
+ const { tenantId, enabled } = action.payload;
138
+ if (draft.tenantsById[tenantId] != null) {
139
+ draft.tenantsById[tenantId].isAccountingClassesEnabled = enabled;
140
+ }
141
+ },
136
142
  updateTenantMasterTOSInfo(draft, action) {
137
143
  const { tenant_id, user_role_id, master_tos_info } = action.payload;
138
144
  if (draft.tenantsById[tenant_id] != null &&
@@ -537,7 +543,7 @@ const tenant = (0, toolkit_1.createSlice)({
537
543
  },
538
544
  },
539
545
  });
540
- _a = tenant.actions, exports.updateTenants = _a.updateTenants, exports.fetchAllTenants = _a.fetchAllTenants, exports.updateTenantsSuccess = _a.updateTenantsSuccess, exports.updateTenantsFailure = _a.updateTenantsFailure, exports.fetchActiveTenant = _a.fetchActiveTenant, exports.updateTenantSuccess = _a.updateTenantSuccess, exports.updateTenantFailure = _a.updateTenantFailure, exports.updateCurrentTenant = _a.updateCurrentTenant, exports.fetchExcludedResources = _a.fetchExcludedResources, exports.updateExcludedResourcesSuccess = _a.updateExcludedResourcesSuccess, exports.updateExcludedResourcesFailure = _a.updateExcludedResourcesFailure, exports.doSignIn = _a.doSignIn, exports.doMagicLinkSignIn = _a.doMagicLinkSignIn, exports.magicLinkSignInSuccess = _a.magicLinkSignInSuccess, exports.magicLinkSignInFailure = _a.magicLinkSignInFailure, exports.sendEmailMagicLinkToUser = _a.sendEmailMagicLinkToUser, exports.sendEmailMagicLinkToUserSuccess = _a.sendEmailMagicLinkToUserSuccess, exports.sendEmailMagicLinkToUserFailure = _a.sendEmailMagicLinkToUserFailure, exports.updateSignInState = _a.updateSignInState, exports.doSignOut = _a.doSignOut, exports.signOutSuccess = _a.signOutSuccess, exports.updateLoggedInUser = _a.updateLoggedInUser, exports.fetchExternalConnections = _a.fetchExternalConnections, exports.saveExternalConnection = _a.saveExternalConnection, exports.saveExternalConnectionSuccess = _a.saveExternalConnectionSuccess, exports.saveExternalConnectionFailure = _a.saveExternalConnectionFailure, exports.fetchExternalConnectionsFailure = _a.fetchExternalConnectionsFailure, exports.fetchExternalConnectionsSuccess = _a.fetchExternalConnectionsSuccess, exports.clearAll = _a.clearAll, exports.fetchSubscriptionSummaryForTenant = _a.fetchSubscriptionSummaryForTenant, exports.updateSubscriptionSummaryForTenantSuccess = _a.updateSubscriptionSummaryForTenantSuccess, exports.updateSubscriptionSummaryForTenantFailure = _a.updateSubscriptionSummaryForTenantFailure, exports.updateOnboardingTenants = _a.updateOnboardingTenants, exports.removeOnboardingTenant = _a.removeOnboardingTenant, exports.updateTenantReimbursementInfo = _a.updateTenantReimbursementInfo, exports.updateReferViewedForLoggedInUser = _a.updateReferViewedForLoggedInUser, exports.updateTreasuryVideoViewedForLoggedInUser = _a.updateTreasuryVideoViewedForLoggedInUser, exports.resetSignInState = _a.resetSignInState, exports.trigger2FA = _a.trigger2FA, exports.updateTenantMasterTOSInfo = _a.updateTenantMasterTOSInfo, exports.verifyDeviceWithTwoFA = _a.verifyDeviceWithTwoFA, exports.verifyDeviceWithTwoFASuccess = _a.verifyDeviceWithTwoFASuccess, exports.verifyDeviceWithTwoFAFailure = _a.verifyDeviceWithTwoFAFailure, exports.resendVerifyDeviceOTP = _a.resendVerifyDeviceOTP, exports.resendVerifyDeviceOTPSuccess = _a.resendVerifyDeviceOTPSuccess, exports.resendVerifyDeviceOTPFailure = _a.resendVerifyDeviceOTPFailure;
546
+ _a = tenant.actions, exports.updateTenants = _a.updateTenants, exports.fetchAllTenants = _a.fetchAllTenants, exports.updateTenantsSuccess = _a.updateTenantsSuccess, exports.updateTenantsFailure = _a.updateTenantsFailure, exports.fetchActiveTenant = _a.fetchActiveTenant, exports.updateTenantSuccess = _a.updateTenantSuccess, exports.updateTenantFailure = _a.updateTenantFailure, exports.updateCurrentTenant = _a.updateCurrentTenant, exports.fetchExcludedResources = _a.fetchExcludedResources, exports.updateExcludedResourcesSuccess = _a.updateExcludedResourcesSuccess, exports.updateExcludedResourcesFailure = _a.updateExcludedResourcesFailure, exports.doSignIn = _a.doSignIn, exports.doMagicLinkSignIn = _a.doMagicLinkSignIn, exports.magicLinkSignInSuccess = _a.magicLinkSignInSuccess, exports.magicLinkSignInFailure = _a.magicLinkSignInFailure, exports.sendEmailMagicLinkToUser = _a.sendEmailMagicLinkToUser, exports.sendEmailMagicLinkToUserSuccess = _a.sendEmailMagicLinkToUserSuccess, exports.sendEmailMagicLinkToUserFailure = _a.sendEmailMagicLinkToUserFailure, exports.updateSignInState = _a.updateSignInState, exports.doSignOut = _a.doSignOut, exports.signOutSuccess = _a.signOutSuccess, exports.updateLoggedInUser = _a.updateLoggedInUser, exports.fetchExternalConnections = _a.fetchExternalConnections, exports.saveExternalConnection = _a.saveExternalConnection, exports.saveExternalConnectionSuccess = _a.saveExternalConnectionSuccess, exports.saveExternalConnectionFailure = _a.saveExternalConnectionFailure, exports.fetchExternalConnectionsFailure = _a.fetchExternalConnectionsFailure, exports.fetchExternalConnectionsSuccess = _a.fetchExternalConnectionsSuccess, exports.clearAll = _a.clearAll, exports.fetchSubscriptionSummaryForTenant = _a.fetchSubscriptionSummaryForTenant, exports.updateSubscriptionSummaryForTenantSuccess = _a.updateSubscriptionSummaryForTenantSuccess, exports.updateSubscriptionSummaryForTenantFailure = _a.updateSubscriptionSummaryForTenantFailure, exports.updateOnboardingTenants = _a.updateOnboardingTenants, exports.removeOnboardingTenant = _a.removeOnboardingTenant, exports.updateTenantReimbursementInfo = _a.updateTenantReimbursementInfo, exports.updateReferViewedForLoggedInUser = _a.updateReferViewedForLoggedInUser, exports.updateTreasuryVideoViewedForLoggedInUser = _a.updateTreasuryVideoViewedForLoggedInUser, exports.resetSignInState = _a.resetSignInState, exports.trigger2FA = _a.trigger2FA, exports.updateTenantAccountingClassesEnabled = _a.updateTenantAccountingClassesEnabled, exports.updateTenantMasterTOSInfo = _a.updateTenantMasterTOSInfo, exports.verifyDeviceWithTwoFA = _a.verifyDeviceWithTwoFA, exports.verifyDeviceWithTwoFASuccess = _a.verifyDeviceWithTwoFASuccess, exports.verifyDeviceWithTwoFAFailure = _a.verifyDeviceWithTwoFAFailure, exports.resendVerifyDeviceOTP = _a.resendVerifyDeviceOTP, exports.resendVerifyDeviceOTPSuccess = _a.resendVerifyDeviceOTPSuccess, exports.resendVerifyDeviceOTPFailure = _a.resendVerifyDeviceOTPFailure;
541
547
  exports.default = tenant.reducer;
542
548
  /**
543
549
  * Converts tenants payload to Tenant and User State
@@ -561,6 +567,8 @@ function mapTenantsPayloadToState(tenantsPayload, userTenantPayload) {
561
567
  function mapTenantPayloadToTenant(payload, userTenantPayload) {
562
568
  const tenant = {
563
569
  accountingClassIDs: payload.accounting_class_ids,
570
+ isAccountingClassesEnabled: payload.is_accounting_classes_enabled ?? true,
571
+ isAccountingProjectsEnabled: payload.is_accounting_projects_enabled ?? false,
564
572
  bookCloseDate: payload.book_close_date != null
565
573
  ? (0, zeniDayJS_1.date)(payload.book_close_date)
566
574
  : undefined,
@@ -85,6 +85,8 @@ export declare const getCurrentTenantExternalConnections: (tenantState: TenantSt
85
85
  export declare const toTenantCoreDetailsView: (tenantsBaseView: TenantBaseView[]) => TenantCoreDetailsView[];
86
86
  export declare const isTenantBankingOnly: (isDebitCardFlagEnabled: boolean, tenant: Tenant | undefined) => boolean;
87
87
  export declare const isTenantCardsOnly: (tenant: Tenant | undefined) => boolean;
88
+ export declare const getIsAccountingClassesEnabled: (state: RootState) => boolean;
89
+ export declare const getIsAccountingProjectsEnabled: (state: RootState) => boolean;
88
90
  export declare const isTenantBookkeepingEnabled: (tenant: Tenant | undefined) => boolean;
89
91
  export declare const isOtherProductsEnabledForTenant: (tenant: Tenant | undefined) => boolean;
90
92
  export declare const isTenantTreasuryEnabled: (tenant: Tenant | undefined) => boolean;