@zeniai/client-epic-state 5.1.93 → 5.1.95-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 (245) hide show
  1. package/lib/commonStateTypes/viewAndReport/reportIDHelper.d.ts +16 -0
  2. package/lib/commonStateTypes/viewAndReport/reportIDHelper.js +22 -1
  3. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
  4. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +2 -0
  5. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  6. package/lib/entity/aiCfo/aiCfoPayload.d.ts +7 -0
  7. package/lib/entity/aiCfo/aiCfoReducer.d.ts +3 -2
  8. package/lib/entity/aiCfo/aiCfoReducer.js +25 -2
  9. package/lib/entity/aiCfo/aiCfoState.d.ts +7 -0
  10. package/lib/entity/class/classReducer.d.ts +4 -4
  11. package/lib/entity/class/classSelectorV2.d.ts +2 -1
  12. package/lib/entity/class/classSelectorV2.js +7 -7
  13. package/lib/entity/class/classState.d.ts +1 -1
  14. package/lib/entity/company/companyPayload.d.ts +4 -0
  15. package/lib/entity/company/companyPayload.js +18 -8
  16. package/lib/entity/company/companyStateTypes.d.ts +4 -0
  17. package/lib/entity/customerSatisfaction/customerSatisfactionReducer.d.ts +1 -1
  18. package/lib/entity/customerSatisfaction/customerSatisfactionReducer.js +6 -2
  19. package/lib/entity/forecast/forecastState.d.ts +1 -1
  20. package/lib/entity/invoicing/invoicingCommonPayload.d.ts +9 -0
  21. package/lib/entity/invoicing/invoicingCommonPayload.js +7 -0
  22. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  23. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  24. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  25. package/lib/entity/sectionClassesViewV2/sectionClassesViewSelector.d.ts +2 -1
  26. package/lib/entity/sectionClassesViewV2/sectionClassesViewSelector.js +3 -3
  27. package/lib/entity/sectionProjectView/sectionProjectView.d.ts +1 -1
  28. package/lib/entity/sectionProjectView/sectionProjectViewReducer.d.ts +2 -2
  29. package/lib/entity/sectionProjectView/sectionProjectViewSelector.d.ts +2 -1
  30. package/lib/entity/sectionProjectView/sectionProjectViewSelector.js +4 -4
  31. package/lib/entity/snackbar/snackbarApiError.d.ts +8 -0
  32. package/lib/entity/snackbar/snackbarApiError.js +15 -0
  33. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  34. package/lib/entity/snackbar/snackbarTypes.js +31 -0
  35. package/lib/entity/tenant/tenantReducer.d.ts +5 -1
  36. package/lib/entity/tenant/tenantReducer.js +21 -2
  37. package/lib/epic.d.ts +7 -1
  38. package/lib/epic.js +9 -1
  39. package/lib/esm/commonStateTypes/viewAndReport/reportIDHelper.js +17 -0
  40. package/lib/esm/commonStateTypes/viewAndReport/viewAndReport.js +2 -0
  41. package/lib/esm/entity/aiCfo/aiCfoReducer.js +23 -1
  42. package/lib/esm/entity/class/classSelectorV2.js +7 -7
  43. package/lib/esm/entity/company/companyPayload.js +18 -8
  44. package/lib/esm/entity/customerSatisfaction/customerSatisfactionReducer.js +4 -1
  45. package/lib/esm/entity/invoicing/invoicingCommonPayload.js +6 -0
  46. package/lib/esm/entity/sectionClassesViewV2/sectionClassesViewSelector.js +3 -3
  47. package/lib/esm/entity/sectionProjectView/sectionProjectViewSelector.js +4 -4
  48. package/lib/esm/entity/snackbar/snackbarApiError.js +11 -0
  49. package/lib/esm/entity/snackbar/snackbarTypes.js +31 -0
  50. package/lib/esm/entity/tenant/tenantReducer.js +20 -1
  51. package/lib/esm/epic.js +9 -1
  52. package/lib/esm/index.js +19 -12
  53. package/lib/esm/reducer.js +6 -0
  54. package/lib/esm/view/balanceSheetClassesView/balanceSheetClassesViewEpic.js +30 -0
  55. package/lib/esm/view/balanceSheetClassesView/balanceSheetClassesViewPayload.js +1 -0
  56. package/lib/esm/view/balanceSheetClassesView/balanceSheetClassesViewReducer.js +132 -0
  57. package/lib/esm/view/balanceSheetClassesView/balanceSheetClassesViewSelector.js +90 -0
  58. package/lib/esm/view/balanceSheetClassesView/balanceSheetClassesViewSelectorTypes.js +1 -0
  59. package/lib/esm/view/balanceSheetClassesView/balanceSheetClassesViewState.js +1 -0
  60. package/lib/esm/view/balanceSheetClassesView/balanceSheetForTimeframeClassesViewEpic.js +61 -0
  61. package/lib/esm/view/balanceSheetProjectView/balanceSheetForTimeframeProjectViewEpic.js +63 -0
  62. package/lib/esm/view/balanceSheetProjectView/balanceSheetProjectViewEpic.js +30 -0
  63. package/lib/esm/view/balanceSheetProjectView/balanceSheetProjectViewPayload.js +1 -0
  64. package/lib/esm/view/balanceSheetProjectView/balanceSheetProjectViewReducer.js +128 -0
  65. package/lib/esm/view/balanceSheetProjectView/balanceSheetProjectViewSelector.js +90 -0
  66. package/lib/esm/view/balanceSheetProjectView/balanceSheetProjectViewSelectorTypes.js +1 -0
  67. package/lib/esm/view/balanceSheetProjectView/balanceSheetProjectViewState.js +1 -0
  68. package/lib/esm/view/companyHealthMetricView/companyHealthMetricConfigReducer.js +4 -1
  69. package/lib/esm/view/companyView/companyViewReducer.js +58 -1
  70. package/lib/esm/view/companyView/epic/updateCompanyProductServicesEpic.js +91 -0
  71. package/lib/esm/view/companyView/epic/updateCompanyQboRealmIdEpic.js +58 -0
  72. package/lib/esm/view/companyView/selector/companyManagementViewSelector.js +52 -0
  73. package/lib/esm/view/companyView/types/cockpitTypes.js +13 -1
  74. package/lib/esm/view/companyView/types/companyManagementViewState.js +2 -0
  75. package/lib/esm/view/financeStatement/financeStatementSelector.js +21 -1
  76. package/lib/esm/view/invoicing/createCreditNote/createCreditNoteEpic.js +26 -4
  77. package/lib/esm/view/invoicing/createInvoice/createInvoiceEpic.js +26 -4
  78. package/lib/esm/view/invoicing/createInvoice/createInvoiceSelector.js +37 -10
  79. package/lib/esm/view/invoicing/discountAction/discountActionEpic.js +37 -10
  80. package/lib/esm/view/invoicing/dunningAction/dunningActionEpic.js +39 -10
  81. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/catalogDetailEditPayload.js +5 -1
  82. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewPayload.js +5 -4
  83. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/saveInvoicingCatalogItemEpic.js +35 -5
  84. package/lib/esm/view/invoicing/editInvoicingCouponDetailView/saveInvoicingCouponEpic.js +25 -3
  85. package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/saveInvoicingCustomerEpic.js +26 -4
  86. package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewPayload.js +16 -4
  87. package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/invoicingSubscriptionFormConfig.js +34 -1
  88. package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/saveInvoicingSubscriptionEpic.js +26 -4
  89. package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/syncInvoicingSubscriptionCouponsEpic.js +20 -3
  90. package/lib/esm/view/invoicing/invoiceAction/invoiceActionEpic.js +65 -18
  91. package/lib/esm/view/invoicing/invoicingConfigView/invoicingConfigViewReducer.js +35 -1
  92. package/lib/esm/view/invoicing/invoicingConfigView/invoicingConfigViewSelector.js +4 -29
  93. package/lib/esm/view/invoicing/invoicingDunningCaseDetailView/fetchInvoicingDunningEmailPreviewEpic.js +26 -0
  94. package/lib/esm/view/invoicing/invoicingDunningCaseDetailView/fetchInvoicingDunningEmailPreviewPageEpic.js +16 -0
  95. package/lib/esm/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewPayload.js +9 -1
  96. package/lib/esm/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewReducer.js +50 -1
  97. package/lib/esm/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewSelector.js +14 -1
  98. package/lib/esm/view/invoicing/invoicingQboView/epics/retryInvoicingQboSyncTaskEpic.js +31 -10
  99. package/lib/esm/view/invoicing/invoicingQboView/epics/startInvoicingQboBackfillEpic.js +30 -5
  100. package/lib/esm/view/invoicing/issueCreditNote/issueCreditNoteEpic.js +26 -4
  101. package/lib/esm/view/invoicing/issueCreditNote/issueCreditNoteSelector.js +22 -14
  102. package/lib/esm/view/invoicing/recordPayment/recordPaymentEpic.js +49 -7
  103. package/lib/esm/view/invoicing/settingsView/settingsViewEpics.js +30 -9
  104. package/lib/esm/view/invoicing/settingsView/settingsViewReducer.js +1 -1
  105. package/lib/esm/view/invoicing/settingsView/settingsViewSelector.js +56 -1
  106. package/lib/esm/view/invoicing/subscriptionAction/subscriptionActionEpic.js +45 -10
  107. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewReducer.js +7 -2
  108. package/lib/esm/view/spendManagement/spendManagementFilterHelpers.js +1 -1
  109. package/lib/esm/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsReducer.js +4 -1
  110. package/lib/esm/view/vendorTabView/vendorTabViewReducer.js +4 -1
  111. package/lib/index.d.ts +32 -18
  112. package/lib/index.js +90 -50
  113. package/lib/reducer.d.ts +6 -0
  114. package/lib/reducer.js +6 -0
  115. package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
  116. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewEpic.d.ts +6 -0
  117. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewEpic.js +34 -0
  118. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewPayload.d.ts +20 -0
  119. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewPayload.js +2 -0
  120. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewReducer.d.ts +34 -0
  121. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewReducer.js +136 -0
  122. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewSelector.d.ts +7 -0
  123. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewSelector.js +94 -0
  124. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewSelectorTypes.d.ts +7 -0
  125. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewSelectorTypes.js +2 -0
  126. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewState.d.ts +23 -0
  127. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewState.js +2 -0
  128. package/lib/view/balanceSheetClassesView/balanceSheetForTimeframeClassesViewEpic.d.ts +9 -0
  129. package/lib/view/balanceSheetClassesView/balanceSheetForTimeframeClassesViewEpic.js +66 -0
  130. package/lib/view/balanceSheetProjectView/balanceSheetForTimeframeProjectViewEpic.d.ts +10 -0
  131. package/lib/view/balanceSheetProjectView/balanceSheetForTimeframeProjectViewEpic.js +68 -0
  132. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewEpic.d.ts +6 -0
  133. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewEpic.js +34 -0
  134. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewPayload.d.ts +20 -0
  135. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewPayload.js +2 -0
  136. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewReducer.d.ts +33 -0
  137. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewReducer.js +132 -0
  138. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewSelector.d.ts +7 -0
  139. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewSelector.js +94 -0
  140. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewSelectorTypes.d.ts +18 -0
  141. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewSelectorTypes.js +2 -0
  142. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewState.d.ts +22 -0
  143. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewState.js +2 -0
  144. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  145. package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
  146. package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
  147. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  148. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  149. package/lib/view/companyHealthMetricView/companyHealthMetricConfigReducer.d.ts +1 -1
  150. package/lib/view/companyHealthMetricView/companyHealthMetricConfigReducer.js +5 -2
  151. package/lib/view/companyView/companyViewReducer.d.ts +22 -1
  152. package/lib/view/companyView/companyViewReducer.js +60 -3
  153. package/lib/view/companyView/epic/updateCompanyProductServicesEpic.d.ts +10 -0
  154. package/lib/view/companyView/epic/updateCompanyProductServicesEpic.js +95 -0
  155. package/lib/view/companyView/epic/updateCompanyQboRealmIdEpic.d.ts +8 -0
  156. package/lib/view/companyView/epic/updateCompanyQboRealmIdEpic.js +62 -0
  157. package/lib/view/companyView/selector/companyManagementViewSelector.d.ts +3 -0
  158. package/lib/view/companyView/selector/companyManagementViewSelector.js +55 -0
  159. package/lib/view/companyView/types/cockpitTypes.d.ts +7 -3
  160. package/lib/view/companyView/types/cockpitTypes.js +15 -1
  161. package/lib/view/companyView/types/companyManagementViewState.d.ts +2 -0
  162. package/lib/view/companyView/types/companyManagementViewState.js +2 -0
  163. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  164. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
  165. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  166. package/lib/view/financeStatement/financeStatementSelector.d.ts +4 -0
  167. package/lib/view/financeStatement/financeStatementSelector.js +21 -1
  168. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  169. package/lib/view/invoicing/createCreditNote/createCreditNoteEpic.d.ts +2 -1
  170. package/lib/view/invoicing/createCreditNote/createCreditNoteEpic.js +25 -3
  171. package/lib/view/invoicing/createInvoice/createInvoiceEpic.d.ts +2 -1
  172. package/lib/view/invoicing/createInvoice/createInvoiceEpic.js +25 -3
  173. package/lib/view/invoicing/createInvoice/createInvoiceSelector.d.ts +22 -8
  174. package/lib/view/invoicing/createInvoice/createInvoiceSelector.js +37 -10
  175. package/lib/view/invoicing/discountAction/discountActionEpic.d.ts +2 -1
  176. package/lib/view/invoicing/discountAction/discountActionEpic.js +35 -8
  177. package/lib/view/invoicing/dunningAction/dunningActionEpic.d.ts +2 -1
  178. package/lib/view/invoicing/dunningAction/dunningActionEpic.js +37 -8
  179. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/catalogDetailEditPayload.d.ts +3 -1
  180. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/catalogDetailEditPayload.js +5 -1
  181. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewPayload.js +5 -4
  182. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/saveInvoicingCatalogItemEpic.d.ts +2 -1
  183. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/saveInvoicingCatalogItemEpic.js +34 -4
  184. package/lib/view/invoicing/editInvoicingCouponDetailView/saveInvoicingCouponEpic.d.ts +2 -1
  185. package/lib/view/invoicing/editInvoicingCouponDetailView/saveInvoicingCouponEpic.js +24 -2
  186. package/lib/view/invoicing/editInvoicingCustomerDetailView/saveInvoicingCustomerEpic.d.ts +2 -1
  187. package/lib/view/invoicing/editInvoicingCustomerDetailView/saveInvoicingCustomerEpic.js +25 -3
  188. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewPayload.d.ts +4 -0
  189. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewPayload.js +15 -3
  190. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewState.d.ts +17 -0
  191. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/invoicingSubscriptionFormConfig.d.ts +7 -0
  192. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/invoicingSubscriptionFormConfig.js +37 -2
  193. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/saveInvoicingSubscriptionEpic.d.ts +2 -1
  194. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/saveInvoicingSubscriptionEpic.js +25 -3
  195. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/syncInvoicingSubscriptionCouponsEpic.d.ts +2 -1
  196. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/syncInvoicingSubscriptionCouponsEpic.js +19 -2
  197. package/lib/view/invoicing/invoiceAction/invoiceActionEpic.d.ts +2 -1
  198. package/lib/view/invoicing/invoiceAction/invoiceActionEpic.js +63 -16
  199. package/lib/view/invoicing/invoicingConfigView/invoicingConfigViewPayload.d.ts +15 -1
  200. package/lib/view/invoicing/invoicingConfigView/invoicingConfigViewReducer.d.ts +1 -1
  201. package/lib/view/invoicing/invoicingConfigView/invoicingConfigViewReducer.js +34 -0
  202. package/lib/view/invoicing/invoicingConfigView/invoicingConfigViewSelector.d.ts +11 -31
  203. package/lib/view/invoicing/invoicingConfigView/invoicingConfigViewSelector.js +4 -29
  204. package/lib/view/invoicing/invoicingConfigView/invoicingConfigViewState.d.ts +22 -1
  205. package/lib/view/invoicing/invoicingDunningCaseDetailView/fetchInvoicingDunningEmailPreviewEpic.d.ts +7 -0
  206. package/lib/view/invoicing/invoicingDunningCaseDetailView/fetchInvoicingDunningEmailPreviewEpic.js +30 -0
  207. package/lib/view/invoicing/invoicingDunningCaseDetailView/fetchInvoicingDunningEmailPreviewPageEpic.d.ts +6 -0
  208. package/lib/view/invoicing/invoicingDunningCaseDetailView/fetchInvoicingDunningEmailPreviewPageEpic.js +20 -0
  209. package/lib/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewEpics.d.ts +2 -2
  210. package/lib/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewPayload.d.ts +12 -0
  211. package/lib/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewPayload.js +11 -0
  212. package/lib/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewReducer.d.ts +21 -4
  213. package/lib/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewReducer.js +51 -2
  214. package/lib/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewSelector.d.ts +3 -0
  215. package/lib/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewSelector.js +16 -2
  216. package/lib/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewState.d.ts +13 -0
  217. package/lib/view/invoicing/invoicingQboView/epics/invoicingQboViewActionType.d.ts +2 -1
  218. package/lib/view/invoicing/invoicingQboView/epics/retryInvoicingQboSyncTaskEpic.js +30 -9
  219. package/lib/view/invoicing/invoicingQboView/epics/startInvoicingQboBackfillEpic.js +29 -4
  220. package/lib/view/invoicing/issueCreditNote/issueCreditNoteEpic.d.ts +2 -1
  221. package/lib/view/invoicing/issueCreditNote/issueCreditNoteEpic.js +25 -3
  222. package/lib/view/invoicing/issueCreditNote/issueCreditNoteSelector.d.ts +24 -7
  223. package/lib/view/invoicing/issueCreditNote/issueCreditNoteSelector.js +23 -16
  224. package/lib/view/invoicing/recordPayment/recordPaymentEpic.d.ts +2 -1
  225. package/lib/view/invoicing/recordPayment/recordPaymentEpic.js +48 -6
  226. package/lib/view/invoicing/settingsView/settingsViewEpics.d.ts +2 -1
  227. package/lib/view/invoicing/settingsView/settingsViewEpics.js +28 -7
  228. package/lib/view/invoicing/settingsView/settingsViewReducer.d.ts +10 -1
  229. package/lib/view/invoicing/settingsView/settingsViewReducer.js +1 -1
  230. package/lib/view/invoicing/settingsView/settingsViewSelector.d.ts +44 -2
  231. package/lib/view/invoicing/settingsView/settingsViewSelector.js +59 -2
  232. package/lib/view/invoicing/subscriptionAction/subscriptionActionEpic.d.ts +2 -1
  233. package/lib/view/invoicing/subscriptionAction/subscriptionActionEpic.js +43 -8
  234. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewReducer.d.ts +1 -0
  235. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewReducer.js +7 -2
  236. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  237. package/lib/view/reportsResync/reportsResyncReducer.d.ts +2 -2
  238. package/lib/view/spendManagement/spendManagementFilterHelpers.js +1 -1
  239. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  240. package/lib/view/topEx/topExSelector.d.ts +1 -1
  241. package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsReducer.d.ts +1 -1
  242. package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsReducer.js +5 -2
  243. package/lib/view/vendorTabView/vendorTabViewReducer.d.ts +1 -1
  244. package/lib/view/vendorTabView/vendorTabViewReducer.js +5 -2
  245. package/package.json +2 -2
@@ -0,0 +1,6 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { Observable } from 'rxjs';
3
+ import { RootState } from '../../reducer';
4
+ import { fetchBalanceSheetForTimeframeProjectView, fetchBalanceSheetProjectView } from './balanceSheetProjectViewReducer';
5
+ export type ActionType = ReturnType<typeof fetchBalanceSheetProjectView> | ReturnType<typeof fetchBalanceSheetForTimeframeProjectView>;
6
+ export declare const fetchBalanceSheetProjectViewEpic: (actions$: ActionsObservable<ActionType>, state: StateObservable<RootState>) => Observable<ActionType>;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fetchBalanceSheetProjectViewEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const balanceSheetProjectViewReducer_1 = require("./balanceSheetProjectViewReducer");
7
+ const fetchBalanceSheetProjectViewEpic = (actions$, state) => actions$.pipe((0, operators_1.filter)(balanceSheetProjectViewReducer_1.fetchBalanceSheetProjectView.match), (0, operators_1.switchMap)((action) => {
8
+ const { cacheOverride } = action.payload;
9
+ if (cacheOverride === true) {
10
+ return (0, rxjs_1.from)([
11
+ (0, balanceSheetProjectViewReducer_1.fetchBalanceSheetForTimeframeProjectView)('month', true),
12
+ (0, balanceSheetProjectViewReducer_1.fetchBalanceSheetForTimeframeProjectView)('quarter', true),
13
+ (0, balanceSheetProjectViewReducer_1.fetchBalanceSheetForTimeframeProjectView)('year', true),
14
+ ]);
15
+ }
16
+ else {
17
+ const fetchActions = [];
18
+ const projectFetchState = state.value.balanceSheetProjectViewState.fetchState;
19
+ if (projectFetchState['month'].fetchState !== 'In-Progress' &&
20
+ projectFetchState['month'].fetchState !== 'Completed') {
21
+ fetchActions.push((0, balanceSheetProjectViewReducer_1.fetchBalanceSheetForTimeframeProjectView)('month'));
22
+ }
23
+ if (projectFetchState['quarter'].fetchState !== 'In-Progress' &&
24
+ projectFetchState['quarter'].fetchState !== 'Completed') {
25
+ fetchActions.push((0, balanceSheetProjectViewReducer_1.fetchBalanceSheetForTimeframeProjectView)('quarter'));
26
+ }
27
+ if (projectFetchState['year'].fetchState !== 'In-Progress' &&
28
+ projectFetchState['year'].fetchState !== 'Completed') {
29
+ fetchActions.push((0, balanceSheetProjectViewReducer_1.fetchBalanceSheetForTimeframeProjectView)('year'));
30
+ }
31
+ return (0, rxjs_1.from)(fetchActions);
32
+ }
33
+ }));
34
+ exports.fetchBalanceSheetProjectViewEpic = fetchBalanceSheetProjectViewEpic;
@@ -0,0 +1,20 @@
1
+ import { COABalanceGroupedByPeriodPayloadV2 } from '../../commonPayloadTypes/v2/coaBalancePayload';
2
+ import { ZeniReportResponse } from '../../responsePayload';
3
+ import { ReportByProjectMetadataPayloadV2, SectionByProjectCOABalanceGroupedPayloadV2 } from '../profitAndLossProjectView/profitAndLossProjectViewPayload';
4
+ interface AssetSubSectionsProjectView {
5
+ current_assets: Record<'cash_and_equivalents' | 'accounts_receivable' | 'other_current_assets', SectionByProjectCOABalanceGroupedPayloadV2> & COABalanceGroupedByPeriodPayloadV2;
6
+ fixed_assets: SectionByProjectCOABalanceGroupedPayloadV2;
7
+ other_assets: SectionByProjectCOABalanceGroupedPayloadV2;
8
+ }
9
+ interface LiabilitySubSectionsProjectView {
10
+ current_liabilities: Record<'accounts_payable' | 'credit_cards' | 'other_current_liabilities', SectionByProjectCOABalanceGroupedPayloadV2> & COABalanceGroupedByPeriodPayloadV2;
11
+ long_term_liabilities: SectionByProjectCOABalanceGroupedPayloadV2;
12
+ }
13
+ export interface BalanceSheetProjectViewPayload extends ReportByProjectMetadataPayloadV2 {
14
+ assets: COABalanceGroupedByPeriodPayloadV2 & AssetSubSectionsProjectView;
15
+ equity: SectionByProjectCOABalanceGroupedPayloadV2;
16
+ liabilities: COABalanceGroupedByPeriodPayloadV2 & LiabilitySubSectionsProjectView;
17
+ liabilities_and_equity: COABalanceGroupedByPeriodPayloadV2;
18
+ }
19
+ export type BalanceSheetReportProjectViewResponse = ZeniReportResponse<BalanceSheetProjectViewPayload>;
20
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,33 @@
1
+ import { AccountViewMode, ID } from '../../commonStateTypes/common';
2
+ import { ZeniAPIStatus, ZeniReportData } from '../../responsePayload';
3
+ import { BalanceSheetProjectViewPayload } from './balanceSheetProjectViewPayload';
4
+ import { BalanceSheetProjectViewState } from './balanceSheetProjectViewState';
5
+ export declare const initialState: BalanceSheetProjectViewState;
6
+ export declare const fetchBalanceSheetProjectView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride?: boolean | undefined], {
7
+ cacheOverride: boolean;
8
+ }, "balanceSheetProjectView/fetchBalanceSheetProjectView", never, never>, fetchBalanceSheetForTimeframeProjectView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[timeframe: "month" | "year" | "quarter", cacheOverride?: boolean | undefined], {
9
+ timeframe: "month" | "year" | "quarter";
10
+ cacheOverride: boolean;
11
+ }, "balanceSheetProjectView/fetchBalanceSheetForTimeframeProjectView", never, never>, updateBalanceSheetForTimeframeProjectView: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
12
+ report: ZeniReportData<BalanceSheetProjectViewPayload>;
13
+ timeframe: "month" | "quarter" | "year";
14
+ }, "balanceSheetProjectView/updateBalanceSheetForTimeframeProjectView">, updateBalanceSheetForTimeframeProjectViewFailure: 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
+ }, "balanceSheetProjectView/updateBalanceSheetForTimeframeProjectViewFailure", never, never>, updateBalanceSheetProjectsToFilterOut: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
18
+ projectsToFilterOut: ID[];
19
+ }, "balanceSheetProjectView/updateBalanceSheetProjectsToFilterOut">, updateBalanceSheetProjectViewUIState: 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
+ }, "balanceSheetProjectView/updateBalanceSheetProjectViewUIState">, updateBalanceSheetProjectViewAccountViewMode: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
30
+ viewMode: AccountViewMode;
31
+ }, "balanceSheetProjectView/updateBalanceSheetProjectViewAccountViewMode">, resetBalanceSheetProjectNodeCollapseState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"balanceSheetProjectView/resetBalanceSheetProjectNodeCollapseState">, clearBalanceSheetProjectView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"balanceSheetProjectView/clearBalanceSheetProjectView">;
32
+ declare const _default: import("redux").Reducer<BalanceSheetProjectViewState>;
33
+ export default _default;
@@ -0,0 +1,132 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.clearBalanceSheetProjectView = exports.resetBalanceSheetProjectNodeCollapseState = exports.updateBalanceSheetProjectViewAccountViewMode = exports.updateBalanceSheetProjectViewUIState = exports.updateBalanceSheetProjectsToFilterOut = exports.updateBalanceSheetForTimeframeProjectViewFailure = exports.updateBalanceSheetForTimeframeProjectView = exports.fetchBalanceSheetForTimeframeProjectView = exports.fetchBalanceSheetProjectView = 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: 'balance_sheet_by_projects',
27
+ reportTitle: 'balance_sheet_by_projects',
28
+ uiState: {
29
+ accountViewMode: 'account_group',
30
+ nodeCollapseState: {},
31
+ projectsToFilterOut: [],
32
+ scrollPosition: undefined,
33
+ },
34
+ };
35
+ const balanceSheetProjectView = (0, toolkit_1.createSlice)({
36
+ name: 'balanceSheetProjectView',
37
+ initialState: exports.initialState,
38
+ reducers: {
39
+ fetchBalanceSheetProjectView: {
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
+ fetchBalanceSheetForTimeframeProjectView: {
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
+ updateBalanceSheetForTimeframeProjectView(draft, action) {
62
+ doUpdateBalanceSheetProjectView(draft, action.payload.timeframe, action.payload.report);
63
+ },
64
+ updateBalanceSheetForTimeframeProjectViewFailure: {
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
+ updateBalanceSheetProjectsToFilterOut(draft, action) {
81
+ draft.uiState.projectsToFilterOut = action.payload.projectsToFilterOut;
82
+ },
83
+ updateBalanceSheetProjectViewUIState(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
+ updateBalanceSheetProjectViewAccountViewMode(draft, action) {
100
+ draft.uiState.accountViewMode = action.payload.viewMode;
101
+ },
102
+ resetBalanceSheetProjectNodeCollapseState(draft) {
103
+ draft.uiState.nodeCollapseState = {};
104
+ },
105
+ clearBalanceSheetProjectView(draft) {
106
+ Object.assign(draft, exports.initialState);
107
+ },
108
+ },
109
+ extraReducers: (builder) => {
110
+ builder.addCase(rootActions_1.clearAll, (draft) => {
111
+ Object.assign(draft, exports.initialState);
112
+ });
113
+ },
114
+ });
115
+ _a = balanceSheetProjectView.actions, exports.fetchBalanceSheetProjectView = _a.fetchBalanceSheetProjectView, exports.fetchBalanceSheetForTimeframeProjectView = _a.fetchBalanceSheetForTimeframeProjectView, exports.updateBalanceSheetForTimeframeProjectView = _a.updateBalanceSheetForTimeframeProjectView, exports.updateBalanceSheetForTimeframeProjectViewFailure = _a.updateBalanceSheetForTimeframeProjectViewFailure, exports.updateBalanceSheetProjectsToFilterOut = _a.updateBalanceSheetProjectsToFilterOut, exports.updateBalanceSheetProjectViewUIState = _a.updateBalanceSheetProjectViewUIState, exports.updateBalanceSheetProjectViewAccountViewMode = _a.updateBalanceSheetProjectViewAccountViewMode, exports.resetBalanceSheetProjectNodeCollapseState = _a.resetBalanceSheetProjectNodeCollapseState, exports.clearBalanceSheetProjectView = _a.clearBalanceSheetProjectView;
116
+ exports.default = balanceSheetProjectView.reducer;
117
+ const doUpdateBalanceSheetProjectView = (draft, timeframe, balanceSheetReport) => {
118
+ const report = (0, viewAndReportPayloadv2_1.mapReportPayloadV2ToReportV2)(balanceSheetReport.report);
119
+ draft.currency = report.currency;
120
+ draft.dataAvailable = report.dataAvailable;
121
+ draft.firstMonthOfFY = report.firstMonthOfFY;
122
+ draft.bookCloseDate = report.bookCloseDate;
123
+ draft.status = report.status;
124
+ draft.fetchState[timeframe].fetchState = 'Completed';
125
+ draft.fetchState[timeframe].error = undefined;
126
+ // Populated once, as with classHierarchy in the classes view: a project added
127
+ // mid-session is not picked up until the store is cleared, even by a hard
128
+ // refresh. Matches profitAndLossProjectViewReducer.
129
+ if (draft.projectIds.length <= 0) {
130
+ draft.projectIds = balanceSheetReport.report.projects.map((project) => project.accounting_project_id);
131
+ }
132
+ };
@@ -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 { BalanceSheetProjectViewReport } from './balanceSheetProjectViewSelectorTypes';
6
+ import { BalanceSheetProjectViewState } from './balanceSheetProjectViewState';
7
+ export declare const getBalanceSheetProjectView: (filter: COABalancesFilterProjectView, accountState: AccountState, projectState: ProjectState, sectionsState: SectionProjectViewState, balanceSheetProjectViewState: BalanceSheetProjectViewState) => BalanceSheetProjectViewReport;
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getBalanceSheetProjectView = void 0;
4
+ const getAdditionalBalances_1 = require("../../commonStateTypes/coaBalance/additionalBalances/getAdditionalBalances");
5
+ const getSumOfBalancesGroupedByPeriod_1 = require("../../commonStateTypes/coaBalance/classBalances/getSumOfBalancesGroupedByPeriod");
6
+ const coaBalance_1 = require("../../commonStateTypes/coaBalance/coaBalance");
7
+ const reduceFetchState_1 = require("../../commonStateTypes/reduceFetchState");
8
+ const projectSelector_1 = require("../../entity/project/projectSelector");
9
+ const sectionProjectViewSelector_1 = require("../../entity/sectionProjectView/sectionProjectViewSelector");
10
+ const balanceSheetSelectorTypes_1 = require("../balanceSheet/balanceSheetSelectorTypes");
11
+ // The section-id constants and the display order are both module-level, so the
12
+ // sorted groupings are computed once instead of on every selector call.
13
+ const byDisplayOrder = (a, b) => balanceSheetSelectorTypes_1.balanceSheetSectionIdsInOrder.indexOf(a) -
14
+ balanceSheetSelectorTypes_1.balanceSheetSectionIdsInOrder.indexOf(b);
15
+ const ASSET_IDS_IN_ORDER = [...balanceSheetSelectorTypes_1.ALL_BALANCE_SHEET_REPORT_VIEW_ASSET_IDS].sort(byDisplayOrder);
16
+ const LIABILITY_IDS_IN_ORDER = [
17
+ ...balanceSheetSelectorTypes_1.ALL_BALANCE_SHEET_REPORT_VIEW_LIABILITY_IDS,
18
+ ].sort(byDisplayOrder);
19
+ const EQUITY_IDS_IN_ORDER = [...balanceSheetSelectorTypes_1.ALL_BALANCE_SHEET_REPORT_VIEW_EQUITY_IDS].sort(byDisplayOrder);
20
+ const getBalanceSheetProjectView = (filter, accountState, projectState, sectionsState, balanceSheetProjectViewState) => {
21
+ const fetchState = (0, reduceFetchState_1.reduceFetchStateParallelTimeframes)([
22
+ balanceSheetProjectViewState.fetchState.month,
23
+ balanceSheetProjectViewState.fetchState.quarter,
24
+ balanceSheetProjectViewState.fetchState.year,
25
+ ]);
26
+ const reportId = 'balance_sheet_by_projects';
27
+ const sections = {};
28
+ const calculatedSections = {};
29
+ if (fetchState.fetchState === 'Completed') {
30
+ // Balance Sheet balances are point-in-time, so the extra columns must be
31
+ // read as snapshots rather than period sums.
32
+ const additionalBalancesOptions = (0, getAdditionalBalances_1.newAdditionalBalancesOptions)(true);
33
+ balanceSheetSelectorTypes_1.ALL_BALANCE_SHEET_REPORT_VIEW_SECTION_IDS.forEach((sectionId) => {
34
+ sections[`${sectionId}`] = (0, sectionProjectViewSelector_1.getSectionProjectViewReport)(accountState, projectState, sectionsState, balanceSheetProjectViewState.projectIds, {
35
+ reportId,
36
+ sectionId,
37
+ }, filter, additionalBalancesOptions);
38
+ });
39
+ const totalCurrentAssetsBalancesByPeriod = (0, getSumOfBalancesGroupedByPeriod_1.getSumOfBalancesByGroupedByPeriod)([
40
+ sections['cashAndEquivalents'].sectionBalancesTotalByPeriod,
41
+ sections['accountsReceiable'].sectionBalancesTotalByPeriod,
42
+ sections['otherCurrentAssets'].sectionBalancesTotalByPeriod,
43
+ ]);
44
+ calculatedSections['totalCurrentAssets'] = (0, coaBalance_1.getCOABalances)(totalCurrentAssetsBalancesByPeriod, filter, additionalBalancesOptions);
45
+ const totalAssetsBalancesByPeriod = (0, getSumOfBalancesGroupedByPeriod_1.getSumOfBalancesByGroupedByPeriod)([
46
+ totalCurrentAssetsBalancesByPeriod ?? {},
47
+ sections['fixedAssets'].sectionBalancesTotalByPeriod,
48
+ sections['otherAssets'].sectionBalancesTotalByPeriod,
49
+ ]);
50
+ calculatedSections['totalAssets'] = (0, coaBalance_1.getCOABalances)(totalAssetsBalancesByPeriod, filter, additionalBalancesOptions);
51
+ const totalCurrentLiabilitiesBalancesByPeriod = (0, getSumOfBalancesGroupedByPeriod_1.getSumOfBalancesByGroupedByPeriod)([
52
+ sections['accountsPayable'].sectionBalancesTotalByPeriod,
53
+ sections['creditCards'].sectionBalancesTotalByPeriod,
54
+ sections['otherCurrentLiabilities'].sectionBalancesTotalByPeriod,
55
+ ]);
56
+ calculatedSections['totalCurrentLiabilities'] = (0, coaBalance_1.getCOABalances)(totalCurrentLiabilitiesBalancesByPeriod, filter, additionalBalancesOptions);
57
+ calculatedSections['totalNonCurrentLiabilities'] = (0, coaBalance_1.getCOABalances)(sections['longTermLiabilities'].sectionBalancesTotalByPeriod, filter, additionalBalancesOptions);
58
+ const totalLiabilitiesBalancesByPeriod = (0, getSumOfBalancesGroupedByPeriod_1.getSumOfBalancesByGroupedByPeriod)([
59
+ totalCurrentLiabilitiesBalancesByPeriod ?? {},
60
+ sections['longTermLiabilities'].sectionBalancesTotalByPeriod,
61
+ ]);
62
+ calculatedSections['totalLiabilities'] = (0, coaBalance_1.getCOABalances)(totalLiabilitiesBalancesByPeriod, filter, additionalBalancesOptions);
63
+ calculatedSections['totalEquity'] = (0, coaBalance_1.getCOABalances)(sections['equity'].sectionBalancesTotalByPeriod, filter, additionalBalancesOptions);
64
+ const liabilitiesAndEquityBalancesByPeriod = (0, getSumOfBalancesGroupedByPeriod_1.getSumOfBalancesByGroupedByPeriod)([
65
+ totalLiabilitiesBalancesByPeriod ?? {},
66
+ sections['equity'].sectionBalancesTotalByPeriod,
67
+ ]);
68
+ calculatedSections['liabilitiesAndEquity'] = (0, coaBalance_1.getCOABalances)(liabilitiesAndEquityBalancesByPeriod, filter, additionalBalancesOptions);
69
+ }
70
+ return {
71
+ sections,
72
+ calculatedSections,
73
+ reportId: balanceSheetProjectViewState.reportId,
74
+ reportTitle: balanceSheetProjectViewState.reportTitle,
75
+ firstMonthOfFY: balanceSheetProjectViewState.firstMonthOfFY,
76
+ dataAvailable: balanceSheetProjectViewState.dataAvailable,
77
+ bookCloseDate: balanceSheetProjectViewState.bookCloseDate,
78
+ version: balanceSheetProjectViewState.version,
79
+ status: balanceSheetProjectViewState.status,
80
+ fetchState: fetchState.fetchState,
81
+ error: fetchState.error,
82
+ filter,
83
+ uiState: balanceSheetProjectViewState.uiState,
84
+ projects: (0, projectSelector_1.getProjectsByIds)(projectState, balanceSheetProjectViewState.projectIds),
85
+ projectsToFilterOut: balanceSheetProjectViewState.uiState.projectsToFilterOut,
86
+ idsInOrder: balanceSheetSelectorTypes_1.balanceSheetSectionIdsInOrder,
87
+ rootSectionsWithSubSectionIds: {
88
+ assets: ASSET_IDS_IN_ORDER,
89
+ liabilities: LIABILITY_IDS_IN_ORDER,
90
+ equity: EQUITY_IDS_IN_ORDER,
91
+ },
92
+ };
93
+ };
94
+ exports.getBalanceSheetProjectView = getBalanceSheetProjectView;
@@ -0,0 +1,18 @@
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 { BalanceSheetReportViewCalculatedSectionID, BalanceSheetReportViewSectionID, SectionIdsWithSubSectionIds } from '../balanceSheet/balanceSheetSelectorTypes';
8
+ import { BalanceSheetProjectViewUIState } from './balanceSheetProjectViewState';
9
+ export interface BalanceSheetProjectViewReport extends SelectorReport {
10
+ calculatedSections: Record<BalanceSheetReportViewCalculatedSectionID, CalculatedSection>;
11
+ filter: COABalancesFilterProjectView;
12
+ idsInOrder: (BalanceSheetReportViewSectionID | BalanceSheetReportViewCalculatedSectionID)[];
13
+ projects: Project[];
14
+ projectsToFilterOut: ID[];
15
+ rootSectionsWithSubSectionIds: SectionIdsWithSubSectionIds;
16
+ sections: Record<BalanceSheetReportViewSectionID, SectionProjectViewReport>;
17
+ uiState: BalanceSheetProjectViewUIState;
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 BalanceSheetProjectViewUIState {
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 BalanceSheetProjectViewState extends Report {
14
+ fetchState: {
15
+ month: FetchStateAndError;
16
+ quarter: FetchStateAndError;
17
+ year: FetchStateAndError;
18
+ };
19
+ projectIds: ID[];
20
+ uiState: BalanceSheetProjectViewUIState;
21
+ currency?: Currency;
22
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,6 @@
1
1
  import { RootState } from '../../reducer';
2
2
  export declare const getBillPayCardReport: (state: RootState) => {
3
- reportId: "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" | "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" | "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" | "transfer_accounts" | "credit_card_transfer_accounts";
3
+ reportId: "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" | "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" | "transfer_accounts" | "credit_card_transfer_accounts";
4
4
  reportTitle: string;
5
5
  version: string | number | undefined;
6
6
  fetchState: import("../..").FetchState;
@@ -1,6 +1,6 @@
1
1
  import { RootState } from '../../reducer';
2
2
  export declare const getCardBalance: (state: RootState) => {
3
- reportId: "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" | "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" | "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" | "transfer_accounts" | "credit_card_transfer_accounts";
3
+ reportId: "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" | "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" | "transfer_accounts" | "credit_card_transfer_accounts";
4
4
  reportTitle: string;
5
5
  version: string | number | undefined;
6
6
  status: import("../..").Status | undefined;
@@ -1,6 +1,6 @@
1
1
  import { RootState } from '../../reducer';
2
2
  export declare const getCashBalance: (state: RootState) => {
3
- reportId: "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" | "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" | "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" | "transfer_accounts" | "credit_card_transfer_accounts";
3
+ reportId: "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" | "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" | "transfer_accounts" | "credit_card_transfer_accounts";
4
4
  reportTitle: string;
5
5
  version: string | number | undefined;
6
6
  status: import("../..").Status | undefined;
@@ -15,7 +15,7 @@ export declare const getCashInCashOut: (accountState: AccountState, accountGroup
15
15
  firstMonthOfFY: 1 | 3 | 12 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
16
16
  dataAvailable: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
17
17
  availableNumberOfPeriods: number | undefined;
18
- reportId: "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" | "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" | "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" | "transfer_accounts" | "credit_card_transfer_accounts";
18
+ reportId: "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" | "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" | "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 | 3 | 12 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
13
13
  dataAvailable: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
14
14
  availableNumberOfPeriods: number | undefined;
15
- reportId: "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" | "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" | "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" | "transfer_accounts" | "credit_card_transfer_accounts";
15
+ reportId: "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" | "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" | "transfer_accounts" | "credit_card_transfer_accounts";
16
16
  reportTitle: string;
17
17
  version: string | number | undefined;
18
18
  status: import("../..").Status | undefined;
@@ -2,6 +2,6 @@ import { AdditionalChurnFactors } from '../../entity/companyHealthMetric/company
2
2
  import { ZeniAPIStatus } from '../../responsePayload';
3
3
  import { CompanyHealthMetricConfigView } from './companyHealthMetricView';
4
4
  export declare const initialState: CompanyHealthMetricConfigView;
5
- export declare const fetchCompanyHealthMetricConfig: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"companyHealthMetricConfig/fetchCompanyHealthMetricConfig">, updateCompanyHealthMetricConfig: import("@reduxjs/toolkit").ActionCreatorWithPayload<AdditionalChurnFactors, "companyHealthMetricConfig/updateCompanyHealthMetricConfig">, updateCompanyHealthMetricConfigFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "companyHealthMetricConfig/updateCompanyHealthMetricConfigFailure">;
5
+ export declare const clearCompanyHealthMetricConfigView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"companyHealthMetricConfig/clearCompanyHealthMetricConfigView">, fetchCompanyHealthMetricConfig: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"companyHealthMetricConfig/fetchCompanyHealthMetricConfig">, updateCompanyHealthMetricConfig: import("@reduxjs/toolkit").ActionCreatorWithPayload<AdditionalChurnFactors, "companyHealthMetricConfig/updateCompanyHealthMetricConfig">, updateCompanyHealthMetricConfigFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "companyHealthMetricConfig/updateCompanyHealthMetricConfigFailure">;
6
6
  declare const _default: import("redux").Reducer<CompanyHealthMetricConfigView>;
7
7
  export default _default;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.updateCompanyHealthMetricConfigFailure = exports.updateCompanyHealthMetricConfig = exports.fetchCompanyHealthMetricConfig = exports.initialState = void 0;
4
+ exports.updateCompanyHealthMetricConfigFailure = exports.updateCompanyHealthMetricConfig = exports.fetchCompanyHealthMetricConfig = exports.clearCompanyHealthMetricConfigView = exports.initialState = void 0;
5
5
  const toolkit_1 = require("@reduxjs/toolkit");
6
6
  const rootActions_1 = require("../../rootActions");
7
7
  exports.initialState = {
@@ -35,10 +35,13 @@ const companyHealthMetricConfigView = (0, toolkit_1.createSlice)({
35
35
  draft.fetchState = 'Error';
36
36
  draft.error = action.payload;
37
37
  },
38
+ clearCompanyHealthMetricConfigView() {
39
+ return exports.initialState;
40
+ },
38
41
  },
39
42
  extraReducers: (builder) => {
40
43
  builder.addCase(rootActions_1.clearAll, () => exports.initialState);
41
44
  },
42
45
  });
43
- _a = companyHealthMetricConfigView.actions, exports.fetchCompanyHealthMetricConfig = _a.fetchCompanyHealthMetricConfig, exports.updateCompanyHealthMetricConfig = _a.updateCompanyHealthMetricConfig, exports.updateCompanyHealthMetricConfigFailure = _a.updateCompanyHealthMetricConfigFailure;
46
+ _a = companyHealthMetricConfigView.actions, exports.clearCompanyHealthMetricConfigView = _a.clearCompanyHealthMetricConfigView, exports.fetchCompanyHealthMetricConfig = _a.fetchCompanyHealthMetricConfig, exports.updateCompanyHealthMetricConfig = _a.updateCompanyHealthMetricConfig, exports.updateCompanyHealthMetricConfigFailure = _a.updateCompanyHealthMetricConfigFailure;
44
47
  exports.default = companyHealthMetricConfigView.reducer;
@@ -10,6 +10,11 @@ import { CompanyDetailsLocalData } from './types/companyPassport/companyDetailsL
10
10
  import { CompanyPassportLocalData } from './types/companyPassport/companyPassportLocalData';
11
11
  import { CompanyOfficerLocalData, CompanyOfficerType, PrimaryContactLocalData } from './types/companyPassport/companyUsersLocalData';
12
12
  import { PortfolioUIState } from './types/companyPortfolioViewState';
13
+ export interface CompanyProductServicesInput {
14
+ isBillPayEnabled?: boolean;
15
+ isBookkeepingEnabled?: boolean;
16
+ isReimbursementEnabled?: boolean;
17
+ }
13
18
  export declare const initialState: CompanyViewState;
14
19
  export declare const fetchCompanyPassportView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string], {
15
20
  companyId: string;
@@ -68,7 +73,23 @@ export declare const fetchCompanyPassportView: import("@reduxjs/toolkit").Action
68
73
  enabled: boolean;
69
74
  }, "companyView/updateAccountingClassesEnabled", never, never>, updateAccountingClassesEnabledSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"companyView/updateAccountingClassesEnabledSuccess">, updateAccountingClassesEnabledFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
70
75
  status: ZeniAPIStatus;
71
- }, "companyView/updateAccountingClassesEnabledFailure">, enableAccountingProjects: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string], {
76
+ }, "companyView/updateAccountingClassesEnabledFailure">, updateCompanyProductServices: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, services: CompanyProductServicesInput], {
77
+ companyId: string;
78
+ services: CompanyProductServicesInput;
79
+ }, "companyView/updateCompanyProductServices", never, never>, updateCompanyProductServicesSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
80
+ companyId: ID;
81
+ }, "companyView/updateCompanyProductServicesSuccess">, updateCompanyProductServicesFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, status: ZeniAPIStatus<Record<string, unknown>>], {
82
+ companyId: string;
83
+ status: ZeniAPIStatus<Record<string, unknown>>;
84
+ }, "companyView/updateCompanyProductServicesFailure", never, never>, updateCompanyQboRealmId: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, qboRealmId?: string | undefined], {
85
+ companyId: string;
86
+ qboRealmId: string | undefined;
87
+ }, "companyView/updateCompanyQboRealmId", never, never>, updateCompanyQboRealmIdSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
88
+ companyId: ID;
89
+ }, "companyView/updateCompanyQboRealmIdSuccess">, updateCompanyQboRealmIdFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, status: ZeniAPIStatus<Record<string, unknown>>], {
90
+ companyId: string;
91
+ status: ZeniAPIStatus<Record<string, unknown>>;
92
+ }, "companyView/updateCompanyQboRealmIdFailure", never, never>, enableAccountingProjects: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string], {
72
93
  companyId: string;
73
94
  }, "companyView/enableAccountingProjects", never, never>, resumeEnableAccountingProjects: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string], {
74
95
  companyId: string;