@zeniai/client-epic-state 5.2.30 → 5.2.32-betaAK0

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 (200) hide show
  1. package/lib/commonStateTypes/coaBalance/classBalances/getSumOfBalancesGroupedByPeriod.js +16 -3
  2. package/lib/commonStateTypes/viewAndReport/reportIDHelper.d.ts +6 -0
  3. package/lib/commonStateTypes/viewAndReport/reportIDHelper.js +12 -1
  4. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
  5. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +2 -0
  6. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  7. package/lib/entity/class/classReducer.d.ts +4 -4
  8. package/lib/entity/class/classState.d.ts +1 -1
  9. package/lib/entity/forecast/forecastState.d.ts +1 -1
  10. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  11. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  12. package/lib/entity/sectionClassesViewV2/sectionClassesViewEpic.js +2 -1
  13. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  14. package/lib/entity/sectionProjectView/sectionProjectView.d.ts +1 -1
  15. package/lib/entity/sectionProjectView/sectionProjectViewReducer.d.ts +2 -2
  16. package/lib/epic.d.ts +10 -6
  17. package/lib/epic.js +15 -8
  18. package/lib/esm/commonStateTypes/coaBalance/classBalances/getSumOfBalancesGroupedByPeriod.js +16 -3
  19. package/lib/esm/commonStateTypes/viewAndReport/reportIDHelper.js +7 -0
  20. package/lib/esm/commonStateTypes/viewAndReport/viewAndReport.js +2 -0
  21. package/lib/esm/entity/sectionClassesViewV2/sectionClassesViewEpic.js +2 -1
  22. package/lib/esm/epic.js +14 -7
  23. package/lib/esm/index.js +16 -13
  24. package/lib/esm/reducer.js +18 -12
  25. package/lib/esm/view/cashFlow/cashFlowGroupedSectionOrder.js +47 -0
  26. package/lib/esm/view/cashFlowClassesView/cashFlowClassesViewEpic.js +30 -0
  27. package/lib/esm/view/cashFlowClassesView/cashFlowClassesViewReducer.js +129 -0
  28. package/lib/esm/view/cashFlowClassesView/cashFlowClassesViewSelector.js +53 -0
  29. package/lib/esm/view/cashFlowClassesView/cashFlowForTimeframeClassesViewEpic.js +55 -0
  30. package/lib/esm/view/cashFlowProjectView/cashFlowForTimeframeProjectViewEpic.js +57 -0
  31. package/lib/esm/view/cashFlowProjectView/cashFlowProjectViewEpic.js +30 -0
  32. package/lib/esm/view/cashFlowProjectView/cashFlowProjectViewReducer.js +125 -0
  33. package/lib/esm/view/cashFlowProjectView/cashFlowProjectViewSelector.js +54 -0
  34. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +29 -11
  35. package/lib/esm/view/financeStatement/financeStatementSelector.js +21 -1
  36. package/lib/esm/view/invoicing/customerPaymentMethod/customerPaymentMethodEpic.js +1 -1
  37. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewPayload.js +1 -1
  38. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewReducer.js +1 -24
  39. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector.js +10 -36
  40. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/invoicingCatalogSubFamilyEpics.js +2 -21
  41. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/saveInvoicingCatalogItemEpic.js +11 -33
  42. package/lib/esm/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewSelector.js +9 -1
  43. package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.js +2 -0
  44. package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/initializeInvoicingCustomerAddressEpic.js +1 -1
  45. package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.js +15 -0
  46. package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/fetchInvoicingSubscriptionFormPageEpic.js +1 -1
  47. package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/initializeInvoicingSubscriptionAddressEpic.js +1 -1
  48. package/lib/esm/view/invoicing/{invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewEpics.js → invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewEpics.js} +1 -1
  49. package/lib/esm/view/invoicing/{invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewReducer.js → invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewReducer.js} +4 -4
  50. package/lib/esm/view/invoicing/{invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewSelector.js → invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewSelector.js} +2 -4
  51. package/lib/esm/view/invoicing/{invoicingCouponDetailView → invoicingCouponRecordView}/fetchInvoicingCouponDetailEpic.js +1 -1
  52. package/lib/esm/view/invoicing/invoicingCouponRecordView/invoicingCouponRecordViewPayload.js +1 -0
  53. package/lib/esm/view/invoicing/{invoicingCouponDetailView/invoicingCouponDetailViewReducer.js → invoicingCouponRecordView/invoicingCouponRecordViewReducer.js} +4 -4
  54. package/lib/esm/view/invoicing/{invoicingCouponDetailView/invoicingCouponDetailViewSelector.js → invoicingCouponRecordView/invoicingCouponRecordViewSelector.js} +2 -2
  55. package/lib/esm/view/invoicing/invoicingCouponRecordView/invoicingCouponRecordViewState.js +1 -0
  56. package/lib/esm/view/invoicing/{invoicingCustomerDetailView → invoicingCustomerRecordView}/fetchInvoicingCustomerDetailEpic.js +1 -1
  57. package/lib/esm/view/invoicing/{invoicingCustomerDetailView → invoicingCustomerRecordView}/fetchInvoicingCustomerDetailPageEpic.js +2 -2
  58. package/lib/esm/view/invoicing/invoicingCustomerRecordView/invoicingCustomerRecordViewPayload.js +1 -0
  59. package/lib/esm/view/invoicing/{invoicingCustomerDetailView/invoicingCustomerDetailViewReducer.js → invoicingCustomerRecordView/invoicingCustomerRecordViewReducer.js} +4 -4
  60. package/lib/esm/view/invoicing/{invoicingCustomerDetailView/invoicingCustomerDetailViewSelector.js → invoicingCustomerRecordView/invoicingCustomerRecordViewSelector.js} +3 -3
  61. package/lib/esm/view/invoicing/invoicingCustomerRecordView/invoicingCustomerRecordViewState.js +1 -0
  62. package/lib/esm/view/invoicing/{invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewEpics.js → invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewEpics.js} +1 -1
  63. package/lib/esm/view/invoicing/invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewPayload.js +1 -0
  64. package/lib/esm/view/invoicing/{invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewReducer.js → invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewReducer.js} +4 -4
  65. package/lib/esm/view/invoicing/{invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewSelector.js → invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewSelector.js} +2 -2
  66. package/lib/esm/view/invoicing/invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewState.js +1 -0
  67. package/lib/esm/view/invoicing/promotionalCreditAction/promotionalCreditActionEpic.js +1 -1
  68. package/lib/index.d.ts +26 -20
  69. package/lib/index.js +88 -74
  70. package/lib/reducer.d.ts +6 -4
  71. package/lib/reducer.js +18 -12
  72. package/lib/rootStateTypes.d.ts +12 -8
  73. package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
  74. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  75. package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
  76. package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
  77. package/lib/view/cashFlow/cashFlowGroupedSectionOrder.d.ts +15 -0
  78. package/lib/view/cashFlow/cashFlowGroupedSectionOrder.js +50 -0
  79. package/lib/view/cashFlowClassesView/cashFlowClassesViewEpic.d.ts +6 -0
  80. package/lib/view/cashFlowClassesView/cashFlowClassesViewEpic.js +34 -0
  81. package/lib/view/cashFlowClassesView/cashFlowClassesViewPayload.d.ts +14 -0
  82. package/lib/view/cashFlowClassesView/cashFlowClassesViewReducer.d.ts +34 -0
  83. package/lib/view/cashFlowClassesView/cashFlowClassesViewReducer.js +133 -0
  84. package/lib/view/cashFlowClassesView/cashFlowClassesViewSelector.d.ts +7 -0
  85. package/lib/view/cashFlowClassesView/cashFlowClassesViewSelector.js +57 -0
  86. package/lib/view/cashFlowClassesView/cashFlowClassesViewSelectorTypes.d.ts +15 -0
  87. package/lib/view/cashFlowClassesView/cashFlowClassesViewState.d.ts +23 -0
  88. package/lib/view/cashFlowClassesView/cashFlowForTimeframeClassesViewEpic.d.ts +9 -0
  89. package/lib/view/cashFlowClassesView/cashFlowForTimeframeClassesViewEpic.js +60 -0
  90. package/lib/view/cashFlowProjectView/cashFlowForTimeframeProjectViewEpic.d.ts +10 -0
  91. package/lib/view/cashFlowProjectView/cashFlowForTimeframeProjectViewEpic.js +62 -0
  92. package/lib/view/cashFlowProjectView/cashFlowProjectViewEpic.d.ts +6 -0
  93. package/lib/view/cashFlowProjectView/cashFlowProjectViewEpic.js +34 -0
  94. package/lib/view/cashFlowProjectView/cashFlowProjectViewPayload.d.ts +14 -0
  95. package/lib/view/cashFlowProjectView/cashFlowProjectViewReducer.d.ts +33 -0
  96. package/lib/view/cashFlowProjectView/cashFlowProjectViewReducer.js +129 -0
  97. package/lib/view/cashFlowProjectView/cashFlowProjectViewSelector.d.ts +7 -0
  98. package/lib/view/cashFlowProjectView/cashFlowProjectViewSelector.js +58 -0
  99. package/lib/view/cashFlowProjectView/cashFlowProjectViewSelectorTypes.d.ts +19 -0
  100. package/lib/view/cashFlowProjectView/cashFlowProjectViewState.d.ts +22 -0
  101. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  102. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  103. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  104. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +29 -11
  105. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  106. package/lib/view/financeStatement/financeStatementSelector.d.ts +4 -0
  107. package/lib/view/financeStatement/financeStatementSelector.js +21 -1
  108. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  109. package/lib/view/invoicing/createInvoice/createInvoiceSelector.d.ts +2 -2
  110. package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodEpic.d.ts +1 -1
  111. package/lib/view/invoicing/customerPaymentMethod/customerPaymentMethodEpic.js +2 -2
  112. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewPayload.d.ts +1 -1
  113. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewPayload.js +1 -1
  114. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewReducer.d.ts +3 -19
  115. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewReducer.js +2 -25
  116. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector.d.ts +11 -11
  117. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector.js +11 -38
  118. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewState.d.ts +4 -27
  119. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/invoicingCatalogSubFamilyEpics.d.ts +2 -3
  120. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/invoicingCatalogSubFamilyEpics.js +2 -22
  121. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/saveInvoicingCatalogItemEpic.d.ts +2 -2
  122. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/saveInvoicingCatalogItemEpic.js +9 -31
  123. package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewSelector.d.ts +12 -1
  124. package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewSelector.js +9 -1
  125. package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.d.ts +8 -0
  126. package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.js +2 -0
  127. package/lib/view/invoicing/editInvoicingCustomerDetailView/initializeInvoicingCustomerAddressEpic.d.ts +1 -1
  128. package/lib/view/invoicing/editInvoicingCustomerDetailView/initializeInvoicingCustomerAddressEpic.js +2 -2
  129. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.d.ts +11 -2
  130. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.js +15 -0
  131. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/fetchInvoicingSubscriptionFormPageEpic.d.ts +1 -1
  132. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/fetchInvoicingSubscriptionFormPageEpic.js +2 -2
  133. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/initializeInvoicingSubscriptionAddressEpic.d.ts +1 -1
  134. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/initializeInvoicingSubscriptionAddressEpic.js +2 -2
  135. package/lib/view/invoicing/{invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewEpics.d.ts → invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewEpics.d.ts} +1 -1
  136. package/lib/view/invoicing/{invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewEpics.js → invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewEpics.js} +5 -5
  137. package/lib/view/invoicing/{invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewReducer.d.ts → invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewReducer.d.ts} +5 -5
  138. package/lib/view/invoicing/{invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewReducer.js → invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewReducer.js} +4 -4
  139. package/lib/view/invoicing/{invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewSelector.d.ts → invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewSelector.d.ts} +3 -5
  140. package/lib/view/invoicing/{invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewSelector.js → invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewSelector.js} +4 -6
  141. package/lib/view/invoicing/{invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewState.d.ts → invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewState.d.ts} +1 -1
  142. package/lib/view/invoicing/{invoicingCouponDetailView → invoicingCouponRecordView}/fetchInvoicingCouponDetailEpic.d.ts +1 -1
  143. package/lib/view/invoicing/{invoicingCouponDetailView → invoicingCouponRecordView}/fetchInvoicingCouponDetailEpic.js +5 -5
  144. package/lib/view/invoicing/invoicingCouponRecordView/invoicingCouponRecordViewPayload.js +2 -0
  145. package/lib/view/invoicing/{invoicingCouponDetailView/invoicingCouponDetailViewReducer.d.ts → invoicingCouponRecordView/invoicingCouponRecordViewReducer.d.ts} +6 -6
  146. package/lib/view/invoicing/{invoicingCouponDetailView/invoicingCouponDetailViewReducer.js → invoicingCouponRecordView/invoicingCouponRecordViewReducer.js} +4 -4
  147. package/lib/view/invoicing/{invoicingCouponDetailView/invoicingCouponDetailViewSelector.d.ts → invoicingCouponRecordView/invoicingCouponRecordViewSelector.d.ts} +2 -2
  148. package/lib/view/invoicing/{invoicingCouponDetailView/invoicingCouponDetailViewSelector.js → invoicingCouponRecordView/invoicingCouponRecordViewSelector.js} +4 -4
  149. package/lib/view/invoicing/{invoicingCouponDetailView/invoicingCouponDetailViewState.d.ts → invoicingCouponRecordView/invoicingCouponRecordViewState.d.ts} +1 -1
  150. package/lib/view/invoicing/invoicingCouponRecordView/invoicingCouponRecordViewState.js +2 -0
  151. package/lib/view/invoicing/{invoicingCustomerDetailView → invoicingCustomerRecordView}/fetchInvoicingCustomerDetailEpic.d.ts +1 -1
  152. package/lib/view/invoicing/{invoicingCustomerDetailView → invoicingCustomerRecordView}/fetchInvoicingCustomerDetailEpic.js +5 -5
  153. package/lib/view/invoicing/{invoicingCustomerDetailView → invoicingCustomerRecordView}/fetchInvoicingCustomerDetailPageEpic.d.ts +1 -1
  154. package/lib/view/invoicing/{invoicingCustomerDetailView → invoicingCustomerRecordView}/fetchInvoicingCustomerDetailPageEpic.js +4 -4
  155. package/lib/view/invoicing/invoicingCustomerRecordView/invoicingCustomerRecordViewPayload.js +2 -0
  156. package/lib/view/invoicing/{invoicingCustomerDetailView/invoicingCustomerDetailViewReducer.d.ts → invoicingCustomerRecordView/invoicingCustomerRecordViewReducer.d.ts} +7 -7
  157. package/lib/view/invoicing/{invoicingCustomerDetailView/invoicingCustomerDetailViewReducer.js → invoicingCustomerRecordView/invoicingCustomerRecordViewReducer.js} +4 -4
  158. package/lib/view/invoicing/{invoicingCustomerDetailView/invoicingCustomerDetailViewSelector.d.ts → invoicingCustomerRecordView/invoicingCustomerRecordViewSelector.d.ts} +2 -2
  159. package/lib/view/invoicing/{invoicingCustomerDetailView/invoicingCustomerDetailViewSelector.js → invoicingCustomerRecordView/invoicingCustomerRecordViewSelector.js} +5 -5
  160. package/lib/view/invoicing/{invoicingCustomerDetailView/invoicingCustomerDetailViewState.d.ts → invoicingCustomerRecordView/invoicingCustomerRecordViewState.d.ts} +1 -1
  161. package/lib/view/invoicing/invoicingCustomerRecordView/invoicingCustomerRecordViewState.js +2 -0
  162. package/lib/view/invoicing/{invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewEpics.d.ts → invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewEpics.d.ts} +1 -1
  163. package/lib/view/invoicing/{invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewEpics.js → invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewEpics.js} +5 -5
  164. package/lib/view/invoicing/invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewPayload.js +2 -0
  165. package/lib/view/invoicing/{invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewReducer.d.ts → invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewReducer.d.ts} +5 -5
  166. package/lib/view/invoicing/{invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewReducer.js → invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewReducer.js} +4 -4
  167. package/lib/view/invoicing/{invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewSelector.d.ts → invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewSelector.d.ts} +2 -2
  168. package/lib/view/invoicing/{invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewSelector.js → invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewSelector.js} +4 -4
  169. package/lib/view/invoicing/{invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewState.d.ts → invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewState.d.ts} +1 -1
  170. package/lib/view/invoicing/invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewState.js +2 -0
  171. package/lib/view/invoicing/promotionalCreditAction/promotionalCreditActionEpic.d.ts +1 -1
  172. package/lib/view/invoicing/promotionalCreditAction/promotionalCreditActionEpic.js +2 -2
  173. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  174. package/lib/view/reportsResync/reportsResyncReducer.d.ts +2 -2
  175. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  176. package/lib/view/topEx/topExSelector.d.ts +1 -1
  177. package/package.json +71 -38
  178. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/catalogDetailEditPayload.js +0 -191
  179. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/catalogDetailEditPayload.d.ts +0 -46
  180. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/catalogDetailEditPayload.js +0 -198
  181. /package/lib/esm/view/{invoicing/invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewPayload.js → cashFlowClassesView/cashFlowClassesViewPayload.js} +0 -0
  182. /package/lib/esm/view/{invoicing/invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewState.js → cashFlowClassesView/cashFlowClassesViewSelectorTypes.js} +0 -0
  183. /package/lib/esm/view/{invoicing/invoicingCouponDetailView/invoicingCouponDetailViewPayload.js → cashFlowClassesView/cashFlowClassesViewState.js} +0 -0
  184. /package/lib/esm/view/{invoicing/invoicingCouponDetailView/invoicingCouponDetailViewState.js → cashFlowProjectView/cashFlowProjectViewPayload.js} +0 -0
  185. /package/lib/esm/view/{invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewPayload.js → cashFlowProjectView/cashFlowProjectViewSelectorTypes.js} +0 -0
  186. /package/lib/esm/view/{invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewState.js → cashFlowProjectView/cashFlowProjectViewState.js} +0 -0
  187. /package/lib/esm/view/invoicing/{invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewPayload.js → invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewPayload.js} +0 -0
  188. /package/lib/esm/view/invoicing/{invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewState.js → invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewState.js} +0 -0
  189. /package/lib/view/{invoicing/invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewPayload.js → cashFlowClassesView/cashFlowClassesViewPayload.js} +0 -0
  190. /package/lib/view/{invoicing/invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewState.js → cashFlowClassesView/cashFlowClassesViewSelectorTypes.js} +0 -0
  191. /package/lib/view/{invoicing/invoicingCouponDetailView/invoicingCouponDetailViewPayload.js → cashFlowClassesView/cashFlowClassesViewState.js} +0 -0
  192. /package/lib/view/{invoicing/invoicingCouponDetailView/invoicingCouponDetailViewState.js → cashFlowProjectView/cashFlowProjectViewPayload.js} +0 -0
  193. /package/lib/view/{invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewPayload.js → cashFlowProjectView/cashFlowProjectViewSelectorTypes.js} +0 -0
  194. /package/lib/view/{invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewState.js → cashFlowProjectView/cashFlowProjectViewState.js} +0 -0
  195. /package/lib/view/invoicing/{invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewPayload.d.ts → invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewPayload.d.ts} +0 -0
  196. /package/lib/view/invoicing/{invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewPayload.js → invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewPayload.js} +0 -0
  197. /package/lib/view/invoicing/{invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewState.js → invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewState.js} +0 -0
  198. /package/lib/view/invoicing/{invoicingCouponDetailView/invoicingCouponDetailViewPayload.d.ts → invoicingCouponRecordView/invoicingCouponRecordViewPayload.d.ts} +0 -0
  199. /package/lib/view/invoicing/{invoicingCustomerDetailView/invoicingCustomerDetailViewPayload.d.ts → invoicingCustomerRecordView/invoicingCustomerRecordViewPayload.d.ts} +0 -0
  200. /package/lib/view/invoicing/{invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewPayload.d.ts → invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewPayload.d.ts} +0 -0
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCashFlowClassesView = void 0;
4
+ const getCOABalancesSlice_1 = require("../../commonStateTypes/coaBalance/getCOABalancesSlice");
5
+ const reduceFetchState_1 = require("../../commonStateTypes/reduceFetchState");
6
+ const sectionClassesViewSelector_1 = require("../../entity/sectionClassesViewV2/sectionClassesViewSelector");
7
+ const cashFlowGroupedSectionOrder_1 = require("../cashFlow/cashFlowGroupedSectionOrder");
8
+ const getCashFlowClassesView = (filter, accountState, classState, sectionsState, cashFlowClassesViewState) => {
9
+ const fetchState = (0, reduceFetchState_1.reduceFetchStateParallelTimeframes)([
10
+ cashFlowClassesViewState.fetchState.month,
11
+ cashFlowClassesViewState.fetchState.quarter,
12
+ cashFlowClassesViewState.fetchState.year,
13
+ ]);
14
+ const reportId = 'cash_flow_by_classes';
15
+ const sections = {};
16
+ const calculatedSections = {};
17
+ if (fetchState.fetchState === 'Completed') {
18
+ cashFlowGroupedSectionOrder_1.CASH_FLOW_GROUPED_BREAKDOWN_IDS.forEach((sectionId) => {
19
+ sections[sectionId] = (0, sectionClassesViewSelector_1.getSectionClassesViewReport)(accountState, classState, sectionsState, { reportId, sectionId }, filter);
20
+ });
21
+ // These come back grouped, so each figure is read through the section layer
22
+ // and arrives already pruned by the class/project picker — the same source
23
+ // the breakdown rows above render from, so the two can never disagree.
24
+ cashFlowGroupedSectionOrder_1.CASH_FLOW_GROUPED_CALCULATED_IDS.forEach((calculatedSectionId) => {
25
+ calculatedSections[calculatedSectionId] = (0, getCOABalancesSlice_1.getCOABalances)(
26
+ // Already built by the breakdown loop above; rebuilding it would repeat
27
+ // the whole section walk on every recompute.
28
+ sections[calculatedSectionId].sectionBalancesTotalByPeriod, filter);
29
+ });
30
+ calculatedSections['investingActivitiesTotal'] = (0, getCOABalancesSlice_1.getCOABalances)(sections['investingActivities'].sectionBalancesTotalByPeriod, filter);
31
+ calculatedSections['financingActivitiesTotal'] = (0, getCOABalancesSlice_1.getCOABalances)(sections['financingActivities'].sectionBalancesTotalByPeriod, filter);
32
+ }
33
+ return {
34
+ sections,
35
+ calculatedSections,
36
+ fetchState: fetchState.fetchState,
37
+ error: fetchState.error,
38
+ filter,
39
+ uiState: cashFlowClassesViewState.uiState,
40
+ classHierarchy: cashFlowClassesViewState.classHierarchy,
41
+ classesToFilterOut: cashFlowClassesViewState.uiState.classesToFilterOut,
42
+ reportId: cashFlowClassesViewState.reportId,
43
+ reportTitle: cashFlowClassesViewState.reportTitle,
44
+ firstMonthOfFY: cashFlowClassesViewState.firstMonthOfFY,
45
+ dataAvailable: cashFlowClassesViewState.dataAvailable,
46
+ bookCloseDate: cashFlowClassesViewState.bookCloseDate,
47
+ version: cashFlowClassesViewState.version,
48
+ status: cashFlowClassesViewState.status,
49
+ idsInOrder: cashFlowGroupedSectionOrder_1.CASH_FLOW_GROUPED_IDS_IN_ORDER,
50
+ rootSectionsWithSubSectionIds: {
51
+ operatingActivities: cashFlowGroupedSectionOrder_1.CASH_FLOW_GROUPED_OPERATING_IDS_IN_ORDER,
52
+ investingActivities: cashFlowGroupedSectionOrder_1.CASH_FLOW_GROUPED_INVESTING_IDS_IN_ORDER,
53
+ financingActivities: cashFlowGroupedSectionOrder_1.CASH_FLOW_GROUPED_FINANCING_IDS_IN_ORDER,
54
+ },
55
+ };
56
+ };
57
+ exports.getCashFlowClassesView = getCashFlowClassesView;
@@ -0,0 +1,15 @@
1
+ import { ClassesViewSelectorReportV2 } from '../../commonStateTypes/selectorTypes/classesViewSelectorReport';
2
+ import { SectionClassesViewReportV2 } from '../../entity/sectionClassesViewV2/sectionClassesViewSelectorTypes';
3
+ import { CashFlowReportViewCalculatedSectionID, CashFlowReportViewSectionID } from '../cashFlow/cashFlowPayload';
4
+ import { SectionIdsWithSubSectionIds } from '../cashFlow/cashFlowSelectorTypes';
5
+ import { CashFlowClassesViewUIState } from './cashFlowClassesViewState';
6
+ export interface CashFlowClassesViewReport extends ClassesViewSelectorReportV2<CashFlowReportViewSectionID, CashFlowReportViewCalculatedSectionID> {
7
+ rootSectionsWithSubSectionIds: SectionIdsWithSubSectionIds;
8
+ /**
9
+ * Widened over the base: the response groups net income, the operating total
10
+ * and change in cash too, so those calculated ids also arrive as sections and
11
+ * their rows render with a per-class breakdown.
12
+ */
13
+ sections: Record<CashFlowReportViewSectionID, SectionClassesViewReportV2> & Partial<Record<CashFlowReportViewCalculatedSectionID, SectionClassesViewReportV2>>;
14
+ uiState: CashFlowClassesViewUIState;
15
+ }
@@ -0,0 +1,23 @@
1
+ import { Currency } from '../../commonStateTypes/amount';
2
+ import { NestedClassHierarchyForReport, NestedClassID } from '../../commonStateTypes/classesView/nestedClassID';
3
+ import { AccountViewMode, FetchStateAndError, ID } from '../../commonStateTypes/common';
4
+ import { Report } from '../../commonStateTypes/viewAndReport/viewAndReport';
5
+ export interface CashFlowClassesViewUIState {
6
+ accountViewMode: AccountViewMode;
7
+ classesToFilterOut: NestedClassID[];
8
+ nodeCollapseState: Record<ID, boolean>;
9
+ scrollPosition: {
10
+ scrollTop: number;
11
+ scrollLeft?: number;
12
+ } | undefined;
13
+ }
14
+ export interface CashFlowClassesViewState extends Report {
15
+ classHierarchy: NestedClassHierarchyForReport[];
16
+ fetchState: {
17
+ month: FetchStateAndError;
18
+ quarter: FetchStateAndError;
19
+ year: FetchStateAndError;
20
+ };
21
+ uiState: CashFlowClassesViewUIState;
22
+ currency?: Currency;
23
+ }
@@ -0,0 +1,9 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { Observable } from 'rxjs';
3
+ import { updateSectionClassesView } from '../../entity/sectionClassesViewV2/sectionClassesViewReducer';
4
+ import { RootState } from '../../reducer';
5
+ import { ZeniAPI } from '../../zeniAPI';
6
+ import { fetchCashFlowForTimeframeClassesView, updateCashFlowForTimeframeClassesView, updateCashFlowForTimeframeClassesViewFailure } from './cashFlowClassesViewReducer';
7
+ export type ActionType = ReturnType<typeof fetchCashFlowForTimeframeClassesView> | ReturnType<typeof updateCashFlowForTimeframeClassesView> | ReturnType<typeof updateCashFlowForTimeframeClassesViewFailure> | ReturnType<typeof updateSectionClassesView>;
8
+ export declare const reportIdUniqueKey: () => "cash_flow_by_classes";
9
+ export declare const fetchCashFlowForTimeframeClassesViewEpic: (actions$: ActionsObservable<ActionType>, _: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fetchCashFlowForTimeframeClassesViewEpic = exports.reportIdUniqueKey = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const sectionClassesViewReducer_1 = require("../../entity/sectionClassesViewV2/sectionClassesViewReducer");
7
+ const responsePayload_1 = require("../../responsePayload");
8
+ const cashFlowPayload_1 = require("../cashFlow/cashFlowPayload");
9
+ const cashFlowClassesViewReducer_1 = require("./cashFlowClassesViewReducer");
10
+ const getTimeSeriesGroup = (timeframe) => {
11
+ switch (timeframe) {
12
+ case 'month':
13
+ return 'months';
14
+ case 'quarter':
15
+ return 'quarters';
16
+ case 'year':
17
+ return 'years';
18
+ }
19
+ };
20
+ const reportIdUniqueKey = () => 'cash_flow_by_classes';
21
+ exports.reportIdUniqueKey = reportIdUniqueKey;
22
+ const fetchCashFlowForTimeframeClassesViewEpic = (actions$, _, zeniAPI) => actions$.pipe((0, operators_1.filter)(cashFlowClassesViewReducer_1.fetchCashFlowForTimeframeClassesView.match), (0, operators_1.mergeMap)((action) => {
23
+ const queryValue = {
24
+ is_full_response: true,
25
+ time_series_groups: [getTimeSeriesGroup(action.payload.timeframe)],
26
+ is_group_by_class: true,
27
+ // Only sent when refreshing: the flag makes the backend bypass its saved
28
+ // report and regenerate, so a normal lookup must not carry it.
29
+ ...(action.payload.cacheOverride === true
30
+ ? { is_hard_refresh: true }
31
+ : {}),
32
+ };
33
+ return zeniAPI
34
+ .getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/2.0/reports/cash_flow?query=${encodeURIComponent(JSON.stringify(queryValue))}`)
35
+ .pipe((0, operators_1.mergeMap)((response) => {
36
+ if (response.data != null && (0, responsePayload_1.isSuccessResponse)(response)) {
37
+ const actions = [];
38
+ const { report } = response.data;
39
+ const currency = report.currency;
40
+ actions.push((0, sectionClassesViewReducer_1.updateSectionClassesView)(action.payload.timeframe, (0, cashFlowPayload_1.toCashFlowReportViewID)('adjustments'), (0, exports.reportIdUniqueKey)(), report.operating_activities.adjustments, report.classes, report.accounts, currency));
41
+ actions.push((0, sectionClassesViewReducer_1.updateSectionClassesView)(action.payload.timeframe, (0, cashFlowPayload_1.toCashFlowReportViewID)('investing_activities'), (0, exports.reportIdUniqueKey)(), report.investing_activities, report.classes, report.accounts, currency));
42
+ actions.push((0, sectionClassesViewReducer_1.updateSectionClassesView)(action.payload.timeframe, (0, cashFlowPayload_1.toCashFlowReportViewID)('financing_activities'), (0, exports.reportIdUniqueKey)(), report.financing_activities, report.classes, report.accounts, currency));
43
+ actions.push((0, sectionClassesViewReducer_1.updateSectionClassesView)(action.payload.timeframe, (0, cashFlowPayload_1.toCashFlowReportViewID)('net_income'), (0, exports.reportIdUniqueKey)(), report.operating_activities.net_income, report.classes, report.accounts, currency));
44
+ actions.push((0, sectionClassesViewReducer_1.updateSectionClassesView)(action.payload.timeframe, (0, cashFlowPayload_1.toCashFlowReportViewID)('operating_activities'), (0, exports.reportIdUniqueKey)(), report.operating_activities, report.classes, report.accounts, currency));
45
+ actions.push((0, sectionClassesViewReducer_1.updateSectionClassesView)(action.payload.timeframe, (0, cashFlowPayload_1.toCashFlowReportViewID)('change_in_cash_and_equivalents'), (0, exports.reportIdUniqueKey)(), report.change_in_cash_and_equivalents, report.classes, report.accounts, currency));
46
+ actions.push((0, cashFlowClassesViewReducer_1.updateCashFlowForTimeframeClassesView)({
47
+ timeframe: action.payload.timeframe,
48
+ report: response.data,
49
+ }));
50
+ return (0, rxjs_1.from)(actions);
51
+ }
52
+ else {
53
+ return (0, rxjs_1.of)((0, cashFlowClassesViewReducer_1.updateCashFlowForTimeframeClassesViewFailure)(response.status, action.payload.timeframe));
54
+ }
55
+ }), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, cashFlowClassesViewReducer_1.updateCashFlowForTimeframeClassesViewFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Cash Flow by Class REST API call errored out: ' +
56
+ (error instanceof Error
57
+ ? error.message
58
+ : JSON.stringify(error))), action.payload.timeframe))));
59
+ }));
60
+ exports.fetchCashFlowForTimeframeClassesViewEpic = fetchCashFlowForTimeframeClassesViewEpic;
@@ -0,0 +1,10 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { Observable } from 'rxjs';
3
+ import { updateProjects } from '../../entity/project/projectReducer';
4
+ import { updateSectionProjectView } from '../../entity/sectionProjectView/sectionProjectViewReducer';
5
+ import { RootState } from '../../reducer';
6
+ import { ZeniAPI } from '../../zeniAPI';
7
+ import { fetchCashFlowForTimeframeProjectView, updateCashFlowForTimeframeProjectView, updateCashFlowForTimeframeProjectViewFailure } from './cashFlowProjectViewReducer';
8
+ export type ActionType = ReturnType<typeof fetchCashFlowForTimeframeProjectView> | ReturnType<typeof updateCashFlowForTimeframeProjectView> | ReturnType<typeof updateCashFlowForTimeframeProjectViewFailure> | ReturnType<typeof updateProjects> | ReturnType<typeof updateSectionProjectView>;
9
+ export declare const reportIdUniqueKey: () => "cash_flow_by_projects";
10
+ export declare const fetchCashFlowForTimeframeProjectViewEpic: (actions$: ActionsObservable<ActionType>, _: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fetchCashFlowForTimeframeProjectViewEpic = exports.reportIdUniqueKey = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const projectReducer_1 = require("../../entity/project/projectReducer");
7
+ const sectionProjectViewReducer_1 = require("../../entity/sectionProjectView/sectionProjectViewReducer");
8
+ const responsePayload_1 = require("../../responsePayload");
9
+ const cashFlowPayload_1 = require("../cashFlow/cashFlowPayload");
10
+ const cashFlowProjectViewReducer_1 = require("./cashFlowProjectViewReducer");
11
+ const getTimeSeriesGroup = (timeframe) => {
12
+ switch (timeframe) {
13
+ case 'month':
14
+ return 'months';
15
+ case 'quarter':
16
+ return 'quarters';
17
+ case 'year':
18
+ return 'years';
19
+ }
20
+ };
21
+ const reportIdUniqueKey = () => 'cash_flow_by_projects';
22
+ exports.reportIdUniqueKey = reportIdUniqueKey;
23
+ const fetchCashFlowForTimeframeProjectViewEpic = (actions$, _, zeniAPI) => actions$.pipe((0, operators_1.filter)(cashFlowProjectViewReducer_1.fetchCashFlowForTimeframeProjectView.match), (0, operators_1.mergeMap)((action) => {
24
+ const queryValue = {
25
+ is_full_response: true,
26
+ time_series_groups: [getTimeSeriesGroup(action.payload.timeframe)],
27
+ is_group_by_project: true,
28
+ // Only sent when refreshing: the flag makes the backend bypass its saved
29
+ // report and regenerate, so a normal lookup must not carry it.
30
+ ...(action.payload.cacheOverride === true
31
+ ? { is_hard_refresh: true }
32
+ : {}),
33
+ };
34
+ return zeniAPI
35
+ .getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/2.0/reports/cash_flow?query=${encodeURIComponent(JSON.stringify(queryValue))}`)
36
+ .pipe((0, operators_1.mergeMap)((response) => {
37
+ if (response.data != null && (0, responsePayload_1.isSuccessResponse)(response)) {
38
+ const actions = [];
39
+ const { report } = response.data;
40
+ const currency = report.currency;
41
+ actions.push((0, projectReducer_1.updateProjects)(report.projects));
42
+ actions.push((0, sectionProjectViewReducer_1.updateSectionProjectView)(action.payload.timeframe, (0, cashFlowPayload_1.toCashFlowReportViewID)('adjustments'), (0, exports.reportIdUniqueKey)(), report.operating_activities.adjustments, report.accounts, currency));
43
+ actions.push((0, sectionProjectViewReducer_1.updateSectionProjectView)(action.payload.timeframe, (0, cashFlowPayload_1.toCashFlowReportViewID)('investing_activities'), (0, exports.reportIdUniqueKey)(), report.investing_activities, report.accounts, currency));
44
+ actions.push((0, sectionProjectViewReducer_1.updateSectionProjectView)(action.payload.timeframe, (0, cashFlowPayload_1.toCashFlowReportViewID)('financing_activities'), (0, exports.reportIdUniqueKey)(), report.financing_activities, report.accounts, currency));
45
+ actions.push((0, sectionProjectViewReducer_1.updateSectionProjectView)(action.payload.timeframe, (0, cashFlowPayload_1.toCashFlowReportViewID)('net_income'), (0, exports.reportIdUniqueKey)(), report.operating_activities.net_income, report.accounts, currency));
46
+ actions.push((0, sectionProjectViewReducer_1.updateSectionProjectView)(action.payload.timeframe, (0, cashFlowPayload_1.toCashFlowReportViewID)('operating_activities'), (0, exports.reportIdUniqueKey)(), report.operating_activities, report.accounts, currency));
47
+ actions.push((0, sectionProjectViewReducer_1.updateSectionProjectView)(action.payload.timeframe, (0, cashFlowPayload_1.toCashFlowReportViewID)('change_in_cash_and_equivalents'), (0, exports.reportIdUniqueKey)(), report.change_in_cash_and_equivalents, report.accounts, currency));
48
+ actions.push((0, cashFlowProjectViewReducer_1.updateCashFlowForTimeframeProjectView)({
49
+ timeframe: action.payload.timeframe,
50
+ report: response.data,
51
+ }));
52
+ return (0, rxjs_1.from)(actions);
53
+ }
54
+ else {
55
+ return (0, rxjs_1.of)((0, cashFlowProjectViewReducer_1.updateCashFlowForTimeframeProjectViewFailure)(response.status, action.payload.timeframe));
56
+ }
57
+ }), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, cashFlowProjectViewReducer_1.updateCashFlowForTimeframeProjectViewFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Cash Flow by Project REST API call errored out: ' +
58
+ (error instanceof Error
59
+ ? error.message
60
+ : JSON.stringify(error))), action.payload.timeframe))));
61
+ }));
62
+ exports.fetchCashFlowForTimeframeProjectViewEpic = fetchCashFlowForTimeframeProjectViewEpic;
@@ -0,0 +1,6 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { Observable } from 'rxjs';
3
+ import { RootState } from '../../reducer';
4
+ import { fetchCashFlowForTimeframeProjectView, fetchCashFlowProjectView } from './cashFlowProjectViewReducer';
5
+ export type ActionType = ReturnType<typeof fetchCashFlowProjectView> | ReturnType<typeof fetchCashFlowForTimeframeProjectView>;
6
+ export declare const fetchCashFlowProjectViewEpic: (actions$: ActionsObservable<ActionType>, state: StateObservable<RootState>) => Observable<ActionType>;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fetchCashFlowProjectViewEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const cashFlowProjectViewReducer_1 = require("./cashFlowProjectViewReducer");
7
+ const fetchCashFlowProjectViewEpic = (actions$, state) => actions$.pipe((0, operators_1.filter)(cashFlowProjectViewReducer_1.fetchCashFlowProjectView.match), (0, operators_1.switchMap)((action) => {
8
+ const { cacheOverride } = action.payload;
9
+ if (cacheOverride === true) {
10
+ return (0, rxjs_1.from)([
11
+ (0, cashFlowProjectViewReducer_1.fetchCashFlowForTimeframeProjectView)('month', true),
12
+ (0, cashFlowProjectViewReducer_1.fetchCashFlowForTimeframeProjectView)('quarter', true),
13
+ (0, cashFlowProjectViewReducer_1.fetchCashFlowForTimeframeProjectView)('year', true),
14
+ ]);
15
+ }
16
+ else {
17
+ const fetchActions = [];
18
+ const projectFetchState = state.value.cashFlowProjectViewState.fetchState;
19
+ if (projectFetchState['month'].fetchState !== 'In-Progress' &&
20
+ projectFetchState['month'].fetchState !== 'Completed') {
21
+ fetchActions.push((0, cashFlowProjectViewReducer_1.fetchCashFlowForTimeframeProjectView)('month'));
22
+ }
23
+ if (projectFetchState['quarter'].fetchState !== 'In-Progress' &&
24
+ projectFetchState['quarter'].fetchState !== 'Completed') {
25
+ fetchActions.push((0, cashFlowProjectViewReducer_1.fetchCashFlowForTimeframeProjectView)('quarter'));
26
+ }
27
+ if (projectFetchState['year'].fetchState !== 'In-Progress' &&
28
+ projectFetchState['year'].fetchState !== 'Completed') {
29
+ fetchActions.push((0, cashFlowProjectViewReducer_1.fetchCashFlowForTimeframeProjectView)('year'));
30
+ }
31
+ return (0, rxjs_1.from)(fetchActions);
32
+ }
33
+ }));
34
+ exports.fetchCashFlowProjectViewEpic = fetchCashFlowProjectViewEpic;
@@ -0,0 +1,14 @@
1
+ import { ZeniReportResponse } from '../../responsePayload';
2
+ import { ReportByProjectMetadataPayloadV2, SectionByProjectCOABalanceGroupedPayloadV2 } from '../profitAndLossProjectView/profitAndLossProjectViewPayload';
3
+ interface OperatingActivitiesProjectView {
4
+ adjustments: SectionByProjectCOABalanceGroupedPayloadV2;
5
+ net_income: SectionByProjectCOABalanceGroupedPayloadV2;
6
+ }
7
+ export interface CashFlowProjectViewPayload extends ReportByProjectMetadataPayloadV2 {
8
+ change_in_cash_and_equivalents: SectionByProjectCOABalanceGroupedPayloadV2;
9
+ financing_activities: SectionByProjectCOABalanceGroupedPayloadV2;
10
+ investing_activities: SectionByProjectCOABalanceGroupedPayloadV2;
11
+ operating_activities: SectionByProjectCOABalanceGroupedPayloadV2 & OperatingActivitiesProjectView;
12
+ }
13
+ export type CashFlowReportProjectViewResponse = ZeniReportResponse<CashFlowProjectViewPayload>;
14
+ export {};
@@ -0,0 +1,33 @@
1
+ import { AccountViewMode, ID } from '../../commonStateTypes/common';
2
+ import { ZeniAPIStatus, ZeniReportData } from '../../responsePayload';
3
+ import { CashFlowProjectViewPayload } from './cashFlowProjectViewPayload';
4
+ import { CashFlowProjectViewState } from './cashFlowProjectViewState';
5
+ export declare const initialState: CashFlowProjectViewState;
6
+ export declare const fetchCashFlowProjectView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride?: boolean | undefined], {
7
+ cacheOverride: boolean;
8
+ }, "cashFlowProjectView/fetchCashFlowProjectView", never, never>, fetchCashFlowForTimeframeProjectView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[timeframe: "month" | "year" | "quarter", cacheOverride?: boolean | undefined], {
9
+ timeframe: "month" | "year" | "quarter";
10
+ cacheOverride: boolean;
11
+ }, "cashFlowProjectView/fetchCashFlowForTimeframeProjectView", never, never>, updateCashFlowForTimeframeProjectView: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
12
+ report: ZeniReportData<CashFlowProjectViewPayload>;
13
+ timeframe: "month" | "quarter" | "year";
14
+ }, "cashFlowProjectView/updateCashFlowForTimeframeProjectView">, updateCashFlowForTimeframeProjectViewFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>, timeframe: "month" | "year" | "quarter"], {
15
+ error: ZeniAPIStatus<Record<string, unknown>>;
16
+ timeframe: "month" | "year" | "quarter";
17
+ }, "cashFlowProjectView/updateCashFlowForTimeframeProjectViewFailure", never, never>, updateCashFlowProjectsToFilterOut: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
18
+ projectsToFilterOut: ID[];
19
+ }, "cashFlowProjectView/updateCashFlowProjectsToFilterOut">, updateCashFlowProjectViewUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
20
+ nodeCollapseState?: {
21
+ isCollapsed: boolean;
22
+ nodeId: ID;
23
+ };
24
+ resetLeftScroll?: boolean;
25
+ scrollPosition?: {
26
+ scrollTop: number;
27
+ scrollLeft?: number;
28
+ };
29
+ }, "cashFlowProjectView/updateCashFlowProjectViewUIState">, updateCashFlowProjectViewAccountViewMode: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
30
+ viewMode: AccountViewMode;
31
+ }, "cashFlowProjectView/updateCashFlowProjectViewAccountViewMode">, resetCashFlowProjectNodeCollapseState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"cashFlowProjectView/resetCashFlowProjectNodeCollapseState">;
32
+ declare const _default: import("redux").Reducer<CashFlowProjectViewState>;
33
+ export default _default;
@@ -0,0 +1,129 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.resetCashFlowProjectNodeCollapseState = exports.updateCashFlowProjectViewAccountViewMode = exports.updateCashFlowProjectViewUIState = exports.updateCashFlowProjectsToFilterOut = exports.updateCashFlowForTimeframeProjectViewFailure = exports.updateCashFlowForTimeframeProjectView = exports.fetchCashFlowForTimeframeProjectView = exports.fetchCashFlowProjectView = exports.initialState = void 0;
5
+ const toolkit_1 = require("@reduxjs/toolkit");
6
+ const viewAndReportPayloadv2_1 = require("../../commonPayloadTypes/v2/viewAndReportPayloadv2");
7
+ const rootActions_1 = require("../../rootActions");
8
+ exports.initialState = {
9
+ bookCloseDate: undefined,
10
+ fetchState: {
11
+ month: {
12
+ fetchState: 'Not-Started',
13
+ error: undefined,
14
+ },
15
+ quarter: {
16
+ fetchState: 'Not-Started',
17
+ error: undefined,
18
+ },
19
+ year: {
20
+ fetchState: 'Not-Started',
21
+ error: undefined,
22
+ },
23
+ },
24
+ firstMonthOfFY: 1,
25
+ projectIds: [],
26
+ reportId: 'cash_flow_by_projects',
27
+ reportTitle: 'cash_flow_by_projects',
28
+ uiState: {
29
+ accountViewMode: 'account_group',
30
+ nodeCollapseState: {},
31
+ projectsToFilterOut: [],
32
+ scrollPosition: undefined,
33
+ },
34
+ };
35
+ const cashFlowProjectView = (0, toolkit_1.createSlice)({
36
+ name: 'cashFlowProjectView',
37
+ initialState: exports.initialState,
38
+ reducers: {
39
+ fetchCashFlowProjectView: {
40
+ prepare(cacheOverride = false) {
41
+ return { payload: { cacheOverride } };
42
+ },
43
+ reducer(
44
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
45
+ _draft,
46
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
47
+ _action) {
48
+ // nothing to do here
49
+ },
50
+ },
51
+ fetchCashFlowForTimeframeProjectView: {
52
+ prepare(timeframe, cacheOverride = false) {
53
+ return { payload: { timeframe, cacheOverride } };
54
+ },
55
+ reducer(draft, action) {
56
+ const timeframe = action.payload.timeframe;
57
+ draft.fetchState[timeframe].fetchState = 'In-Progress';
58
+ draft.fetchState[timeframe].error = undefined;
59
+ },
60
+ },
61
+ updateCashFlowForTimeframeProjectView(draft, action) {
62
+ doUpdateCashFlowProjectView(draft, action.payload.timeframe, action.payload.report);
63
+ },
64
+ updateCashFlowForTimeframeProjectViewFailure: {
65
+ prepare(error, timeframe) {
66
+ return {
67
+ payload: {
68
+ error,
69
+ timeframe,
70
+ },
71
+ };
72
+ },
73
+ reducer(draft, action) {
74
+ draft.fetchState[action.payload.timeframe] = {
75
+ fetchState: 'Error',
76
+ error: action.payload.error,
77
+ };
78
+ },
79
+ },
80
+ updateCashFlowProjectsToFilterOut(draft, action) {
81
+ draft.uiState.projectsToFilterOut = action.payload.projectsToFilterOut;
82
+ },
83
+ updateCashFlowProjectViewUIState(draft, action) {
84
+ const { nodeCollapseState, scrollPosition, resetLeftScroll } = action.payload;
85
+ if (nodeCollapseState != null) {
86
+ draft.uiState.nodeCollapseState = Object.assign({}, draft.uiState.nodeCollapseState, {
87
+ [nodeCollapseState.nodeId]: nodeCollapseState.isCollapsed,
88
+ });
89
+ }
90
+ // Mutually exclusive: resetLeftScroll clears only scrollLeft from the
91
+ // recorded position, scrollPosition replaces the whole record.
92
+ if (resetLeftScroll === true && draft.uiState.scrollPosition != null) {
93
+ draft.uiState.scrollPosition.scrollLeft = undefined;
94
+ }
95
+ else if (scrollPosition != null) {
96
+ draft.uiState.scrollPosition = scrollPosition;
97
+ }
98
+ },
99
+ updateCashFlowProjectViewAccountViewMode(draft, action) {
100
+ draft.uiState.accountViewMode = action.payload.viewMode;
101
+ },
102
+ resetCashFlowProjectNodeCollapseState(draft) {
103
+ draft.uiState.nodeCollapseState = {};
104
+ },
105
+ },
106
+ extraReducers: (builder) => {
107
+ builder.addCase(rootActions_1.clearAll, (draft) => {
108
+ Object.assign(draft, exports.initialState);
109
+ });
110
+ },
111
+ });
112
+ _a = cashFlowProjectView.actions, exports.fetchCashFlowProjectView = _a.fetchCashFlowProjectView, exports.fetchCashFlowForTimeframeProjectView = _a.fetchCashFlowForTimeframeProjectView, exports.updateCashFlowForTimeframeProjectView = _a.updateCashFlowForTimeframeProjectView, exports.updateCashFlowForTimeframeProjectViewFailure = _a.updateCashFlowForTimeframeProjectViewFailure, exports.updateCashFlowProjectsToFilterOut = _a.updateCashFlowProjectsToFilterOut, exports.updateCashFlowProjectViewUIState = _a.updateCashFlowProjectViewUIState, exports.updateCashFlowProjectViewAccountViewMode = _a.updateCashFlowProjectViewAccountViewMode, exports.resetCashFlowProjectNodeCollapseState = _a.resetCashFlowProjectNodeCollapseState;
113
+ exports.default = cashFlowProjectView.reducer;
114
+ const doUpdateCashFlowProjectView = (draft, timeframe, cashFlowReport) => {
115
+ const report = (0, viewAndReportPayloadv2_1.mapReportPayloadV2ToReportV2)(cashFlowReport.report);
116
+ draft.currency = report.currency;
117
+ draft.dataAvailable = report.dataAvailable;
118
+ draft.firstMonthOfFY = report.firstMonthOfFY;
119
+ draft.bookCloseDate = report.bookCloseDate;
120
+ draft.status = report.status;
121
+ draft.fetchState[timeframe].fetchState = 'Completed';
122
+ draft.fetchState[timeframe].error = undefined;
123
+ // Populated once, as with classHierarchy in the classes view: a project added
124
+ // mid-session is not picked up until the store is cleared, even by a hard
125
+ // refresh. Matches profitAndLossProjectViewReducer.
126
+ if (draft.projectIds.length <= 0) {
127
+ draft.projectIds = cashFlowReport.report.projects.map((project) => project.accounting_project_id);
128
+ }
129
+ };
@@ -0,0 +1,7 @@
1
+ import { COABalancesFilterProjectView } from '../../commonStateTypes/coaBalance/coaBalancesFilterProjectView';
2
+ import { AccountState } from '../../entity/account/accountState';
3
+ import { ProjectState } from '../../entity/project/projectReducer';
4
+ import { SectionProjectViewState } from '../../entity/sectionProjectView/sectionProjectViewState';
5
+ import { CashFlowProjectViewReport } from './cashFlowProjectViewSelectorTypes';
6
+ import { CashFlowProjectViewState } from './cashFlowProjectViewState';
7
+ export declare const getCashFlowProjectView: (filter: COABalancesFilterProjectView, accountState: AccountState, projectState: ProjectState, sectionsState: SectionProjectViewState, cashFlowProjectViewState: CashFlowProjectViewState) => CashFlowProjectViewReport;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCashFlowProjectView = void 0;
4
+ const getCOABalancesSlice_1 = require("../../commonStateTypes/coaBalance/getCOABalancesSlice");
5
+ const reduceFetchState_1 = require("../../commonStateTypes/reduceFetchState");
6
+ const projectSelector_1 = require("../../entity/project/projectSelector");
7
+ const sectionProjectViewSelector_1 = require("../../entity/sectionProjectView/sectionProjectViewSelector");
8
+ const cashFlowGroupedSectionOrder_1 = require("../cashFlow/cashFlowGroupedSectionOrder");
9
+ const getCashFlowProjectView = (filter, accountState, projectState, sectionsState, cashFlowProjectViewState) => {
10
+ const fetchState = (0, reduceFetchState_1.reduceFetchStateParallelTimeframes)([
11
+ cashFlowProjectViewState.fetchState.month,
12
+ cashFlowProjectViewState.fetchState.quarter,
13
+ cashFlowProjectViewState.fetchState.year,
14
+ ]);
15
+ const reportId = 'cash_flow_by_projects';
16
+ const sections = {};
17
+ const calculatedSections = {};
18
+ if (fetchState.fetchState === 'Completed') {
19
+ cashFlowGroupedSectionOrder_1.CASH_FLOW_GROUPED_BREAKDOWN_IDS.forEach((sectionId) => {
20
+ sections[sectionId] = (0, sectionProjectViewSelector_1.getSectionProjectViewReport)(accountState, projectState, sectionsState, cashFlowProjectViewState.projectIds, { reportId, sectionId }, filter);
21
+ });
22
+ // These come back grouped, so each figure is read through the section layer
23
+ // and arrives already pruned by the class/project picker — the same source
24
+ // the breakdown rows above render from, so the two can never disagree.
25
+ cashFlowGroupedSectionOrder_1.CASH_FLOW_GROUPED_CALCULATED_IDS.forEach((calculatedSectionId) => {
26
+ calculatedSections[calculatedSectionId] = (0, getCOABalancesSlice_1.getCOABalances)(
27
+ // Already built by the breakdown loop above; rebuilding it would repeat
28
+ // the whole section walk on every recompute.
29
+ sections[calculatedSectionId].sectionBalancesTotalByPeriod, filter);
30
+ });
31
+ calculatedSections['investingActivitiesTotal'] = (0, getCOABalancesSlice_1.getCOABalances)(sections['investingActivities'].sectionBalancesTotalByPeriod, filter);
32
+ calculatedSections['financingActivitiesTotal'] = (0, getCOABalancesSlice_1.getCOABalances)(sections['financingActivities'].sectionBalancesTotalByPeriod, filter);
33
+ }
34
+ return {
35
+ sections,
36
+ calculatedSections,
37
+ fetchState: fetchState.fetchState,
38
+ error: fetchState.error,
39
+ filter,
40
+ uiState: cashFlowProjectViewState.uiState,
41
+ projects: (0, projectSelector_1.getProjectsByIds)(projectState, cashFlowProjectViewState.projectIds),
42
+ projectsToFilterOut: cashFlowProjectViewState.uiState.projectsToFilterOut,
43
+ reportId: cashFlowProjectViewState.reportId,
44
+ reportTitle: cashFlowProjectViewState.reportTitle,
45
+ firstMonthOfFY: cashFlowProjectViewState.firstMonthOfFY,
46
+ dataAvailable: cashFlowProjectViewState.dataAvailable,
47
+ bookCloseDate: cashFlowProjectViewState.bookCloseDate,
48
+ version: cashFlowProjectViewState.version,
49
+ status: cashFlowProjectViewState.status,
50
+ idsInOrder: cashFlowGroupedSectionOrder_1.CASH_FLOW_GROUPED_IDS_IN_ORDER,
51
+ rootSectionsWithSubSectionIds: {
52
+ operatingActivities: cashFlowGroupedSectionOrder_1.CASH_FLOW_GROUPED_OPERATING_IDS_IN_ORDER,
53
+ investingActivities: cashFlowGroupedSectionOrder_1.CASH_FLOW_GROUPED_INVESTING_IDS_IN_ORDER,
54
+ financingActivities: cashFlowGroupedSectionOrder_1.CASH_FLOW_GROUPED_FINANCING_IDS_IN_ORDER,
55
+ },
56
+ };
57
+ };
58
+ exports.getCashFlowProjectView = getCashFlowProjectView;
@@ -0,0 +1,19 @@
1
+ import { COABalancesFilterProjectView } from '../../commonStateTypes/coaBalance/coaBalancesFilterProjectView';
2
+ import { ID } from '../../commonStateTypes/common';
3
+ import { CalculatedSection } from '../../commonStateTypes/selectorTypes/selectorTypes';
4
+ import { SelectorReport } from '../../commonStateTypes/viewAndReport/viewAndReport';
5
+ import { Project } from '../../entity/project/projectState';
6
+ import { SectionProjectViewReport } from '../../entity/sectionProjectView/sectionProjectViewSelectorTypes';
7
+ import { CashFlowReportViewCalculatedSectionID, CashFlowReportViewSectionID } from '../cashFlow/cashFlowPayload';
8
+ import { SectionIdsWithSubSectionIds } from '../cashFlow/cashFlowSelectorTypes';
9
+ import { CashFlowProjectViewUIState } from './cashFlowProjectViewState';
10
+ export interface CashFlowProjectViewReport extends SelectorReport {
11
+ calculatedSections: Record<CashFlowReportViewCalculatedSectionID, CalculatedSection>;
12
+ filter: COABalancesFilterProjectView;
13
+ idsInOrder: (CashFlowReportViewSectionID | CashFlowReportViewCalculatedSectionID)[];
14
+ projects: Project[];
15
+ projectsToFilterOut: ID[];
16
+ rootSectionsWithSubSectionIds: SectionIdsWithSubSectionIds;
17
+ sections: Record<CashFlowReportViewSectionID, SectionProjectViewReport> & Partial<Record<CashFlowReportViewCalculatedSectionID, SectionProjectViewReport>>;
18
+ uiState: CashFlowProjectViewUIState;
19
+ }
@@ -0,0 +1,22 @@
1
+ import { Currency } from '../../commonStateTypes/amount';
2
+ import { AccountViewMode, FetchStateAndError, ID } from '../../commonStateTypes/common';
3
+ import { Report } from '../../commonStateTypes/viewAndReport/viewAndReport';
4
+ export interface CashFlowProjectViewUIState {
5
+ accountViewMode: AccountViewMode;
6
+ nodeCollapseState: Record<ID, boolean>;
7
+ projectsToFilterOut: ID[];
8
+ scrollPosition: {
9
+ scrollTop: number;
10
+ scrollLeft?: number;
11
+ } | undefined;
12
+ }
13
+ export interface CashFlowProjectViewState extends Report {
14
+ fetchState: {
15
+ month: FetchStateAndError;
16
+ quarter: FetchStateAndError;
17
+ year: FetchStateAndError;
18
+ };
19
+ projectIds: ID[];
20
+ uiState: CashFlowProjectViewUIState;
21
+ currency?: Currency;
22
+ }
@@ -15,7 +15,7 @@ export declare const getCashInCashOut: (accountState: AccountState, accountGroup
15
15
  firstMonthOfFY: 1 | 2 | 3 | 4 | 5 | 11 | 6 | 7 | 8 | 9 | 10 | 12;
16
16
  dataAvailable: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
17
17
  availableNumberOfPeriods: number | undefined;
18
- reportId: "vendor" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "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" | "transfer_accounts" | "credit_card_transfer_accounts";
18
+ reportId: "vendor" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "cash_flow_by_classes" | "cash_flow_by_projects" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "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" | "transfer_accounts" | "credit_card_transfer_accounts";
19
19
  reportTitle: string;
20
20
  version: string | number | undefined;
21
21
  status: import("../..").Status | undefined;
@@ -12,7 +12,7 @@ export declare const getCashPosition: (accountState: AccountState, cashPositionS
12
12
  firstMonthOfFY: 1 | 2 | 3 | 4 | 5 | 11 | 6 | 7 | 8 | 9 | 10 | 12;
13
13
  dataAvailable: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
14
14
  availableNumberOfPeriods: number | undefined;
15
- reportId: "vendor" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "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" | "transfer_accounts" | "credit_card_transfer_accounts";
15
+ reportId: "vendor" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "cash_flow_by_classes" | "cash_flow_by_projects" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "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" | "transfer_accounts" | "credit_card_transfer_accounts";
16
16
  reportTitle: string;
17
17
  version: string | number | undefined;
18
18
  status: import("../..").Status | undefined;