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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (350) hide show
  1. package/lib/common/aiCfo/aiCfoSuggestedQuestionsPageContext.d.ts +19 -0
  2. package/lib/common/aiCfo/aiCfoSuggestedQuestionsPageContext.js +2 -0
  3. package/lib/commonPayloadTypes/subAccountView/reportBySubAccountPayload.d.ts +2 -0
  4. package/lib/commonStateTypes/animations.d.ts +1 -1
  5. package/lib/commonStateTypes/animations.js +3 -0
  6. package/lib/commonStateTypes/coaBalance/coaBalancesFilterProjectView.d.ts +13 -0
  7. package/lib/commonStateTypes/coaBalance/coaBalancesFilterProjectView.js +9 -0
  8. package/lib/commonStateTypes/common.d.ts +1 -1
  9. package/lib/commonStateTypes/projectView/projectViewParentID.d.ts +5 -0
  10. package/lib/commonStateTypes/projectView/projectViewParentID.js +2 -0
  11. package/lib/commonStateTypes/viewAndReport/reportIDHelper.d.ts +1 -0
  12. package/lib/commonStateTypes/viewAndReport/reportIDHelper.js +3 -1
  13. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
  14. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +2 -0
  15. package/lib/entity/account/accountPayload.d.ts +2 -0
  16. package/lib/entity/account/accountReducer.d.ts +5 -2
  17. package/lib/entity/account/accountReducer.js +12 -5
  18. package/lib/entity/account/accountSelector.d.ts +7 -0
  19. package/lib/entity/account/accountSelector.js +4 -2
  20. package/lib/entity/account/accountState.d.ts +3 -1
  21. package/lib/entity/account/accountState.js +4 -1
  22. package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +1 -0
  23. package/lib/entity/account/subAccountSelector.d.ts +2 -0
  24. package/lib/entity/account/subAccountSelector.js +2 -0
  25. package/lib/entity/accountGroup/accountGroupSelector.d.ts +22 -0
  26. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  27. package/lib/entity/accountRecon/accountReconPayload.d.ts +1 -1
  28. package/lib/entity/accountRecon/accountReconPayload.js +4 -2
  29. package/lib/entity/aiCfo/aiCfoSelector.d.ts +1 -2
  30. package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +2 -2
  31. package/lib/entity/class/classReducer.d.ts +4 -4
  32. package/lib/entity/class/classState.d.ts +1 -1
  33. package/lib/entity/forecast/forecastState.d.ts +1 -1
  34. package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +38 -0
  35. package/lib/entity/jeSchedules/jeSchedulesPayload.js +78 -0
  36. package/lib/entity/jeSchedules/jeSchedulesSelector.d.ts +4 -1
  37. package/lib/entity/jeSchedules/jeSchedulesSelector.js +5 -1
  38. package/lib/entity/jeSchedules/jeSchedulesState.d.ts +37 -0
  39. package/lib/entity/project/projectPayload.d.ts +13 -0
  40. package/lib/entity/project/projectPayload.js +30 -0
  41. package/lib/entity/project/projectReducer.d.ts +10 -0
  42. package/lib/entity/project/projectReducer.js +31 -0
  43. package/lib/entity/project/projectSelector.d.ts +5 -0
  44. package/lib/entity/project/projectSelector.js +12 -0
  45. package/lib/entity/project/projectState.d.ts +13 -0
  46. package/lib/entity/project/projectState.js +2 -0
  47. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  48. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  49. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  50. package/lib/entity/sectionProjectView/sectionProjectView.d.ts +11 -0
  51. package/lib/entity/sectionProjectView/sectionProjectView.js +6 -0
  52. package/lib/entity/sectionProjectView/sectionProjectViewEpic.d.ts +6 -0
  53. package/lib/entity/sectionProjectView/sectionProjectViewEpic.js +56 -0
  54. package/lib/entity/sectionProjectView/sectionProjectViewHelper.d.ts +10 -0
  55. package/lib/entity/sectionProjectView/sectionProjectViewHelper.js +14 -0
  56. package/lib/entity/sectionProjectView/sectionProjectViewReducer.d.ts +15 -0
  57. package/lib/entity/sectionProjectView/sectionProjectViewReducer.js +56 -0
  58. package/lib/entity/sectionProjectView/sectionProjectViewSelector.d.ts +11 -0
  59. package/lib/entity/sectionProjectView/sectionProjectViewSelector.js +94 -0
  60. package/lib/entity/sectionProjectView/sectionProjectViewSelectorTypes.d.ts +16 -0
  61. package/lib/entity/sectionProjectView/sectionProjectViewSelectorTypes.js +2 -0
  62. package/lib/entity/sectionProjectView/sectionProjectViewState.d.ts +4 -0
  63. package/lib/entity/sectionProjectView/sectionProjectViewState.js +2 -0
  64. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  65. package/lib/entity/snackbar/snackbarTypes.js +7 -0
  66. package/lib/entity/tenant/clearAllEpic.d.ts +5 -2
  67. package/lib/entity/tenant/clearAllEpic.js +6 -0
  68. package/lib/entity/tenant/tenantPayload.d.ts +2 -0
  69. package/lib/entity/tenant/tenantReducer.d.ts +5 -2
  70. package/lib/entity/tenant/tenantReducer.js +10 -2
  71. package/lib/entity/tenant/tenantSelector.d.ts +2 -0
  72. package/lib/entity/tenant/tenantSelector.js +17 -1
  73. package/lib/entity/tenant/tenantState.d.ts +2 -0
  74. package/lib/entity/transaction/payloadTypes/scheduleTransactionPayload.d.ts +4 -1
  75. package/lib/entity/transaction/payloadTypes/scheduleTransactionPayload.js +1 -0
  76. package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +9 -0
  77. package/lib/entity/transaction/payloadTypes/transactionPayload.js +79 -1
  78. package/lib/entity/transaction/stateTypes/scheduleTransaction.d.ts +1 -0
  79. package/lib/entity/transaction/stateTypes/transaction.d.ts +11 -0
  80. package/lib/entity/transaction/stateTypes/transactionLine.d.ts +1 -1
  81. package/lib/epic.d.ts +18 -1
  82. package/lib/epic.js +18 -1
  83. package/lib/esm/common/aiCfo/aiCfoSuggestedQuestionsPageContext.js +1 -0
  84. package/lib/esm/commonStateTypes/animations.js +3 -0
  85. package/lib/esm/commonStateTypes/coaBalance/coaBalancesFilterProjectView.js +5 -0
  86. package/lib/esm/commonStateTypes/projectView/projectViewParentID.js +1 -0
  87. package/lib/esm/commonStateTypes/viewAndReport/reportIDHelper.js +1 -0
  88. package/lib/esm/commonStateTypes/viewAndReport/viewAndReport.js +2 -0
  89. package/lib/esm/entity/account/accountReducer.js +11 -4
  90. package/lib/esm/entity/account/accountSelector.js +4 -2
  91. package/lib/esm/entity/account/accountState.js +4 -1
  92. package/lib/esm/entity/account/subAccountSelector.js +2 -0
  93. package/lib/esm/entity/accountRecon/accountReconPayload.js +4 -2
  94. package/lib/esm/entity/jeSchedules/jeSchedulesPayload.js +78 -0
  95. package/lib/esm/entity/jeSchedules/jeSchedulesSelector.js +5 -1
  96. package/lib/esm/entity/project/projectPayload.js +26 -0
  97. package/lib/esm/entity/project/projectReducer.js +27 -0
  98. package/lib/esm/entity/project/projectSelector.js +8 -0
  99. package/lib/esm/entity/project/projectState.js +1 -0
  100. package/lib/esm/entity/sectionProjectView/sectionProjectView.js +3 -0
  101. package/lib/esm/entity/sectionProjectView/sectionProjectViewEpic.js +52 -0
  102. package/lib/esm/entity/sectionProjectView/sectionProjectViewHelper.js +10 -0
  103. package/lib/esm/entity/sectionProjectView/sectionProjectViewReducer.js +52 -0
  104. package/lib/esm/entity/sectionProjectView/sectionProjectViewSelector.js +87 -0
  105. package/lib/esm/entity/sectionProjectView/sectionProjectViewSelectorTypes.js +1 -0
  106. package/lib/esm/entity/sectionProjectView/sectionProjectViewState.js +1 -0
  107. package/lib/esm/entity/snackbar/snackbarTypes.js +7 -0
  108. package/lib/esm/entity/tenant/clearAllEpic.js +6 -0
  109. package/lib/esm/entity/tenant/tenantReducer.js +9 -1
  110. package/lib/esm/entity/tenant/tenantSelector.js +14 -0
  111. package/lib/esm/entity/transaction/payloadTypes/scheduleTransactionPayload.js +1 -0
  112. package/lib/esm/entity/transaction/payloadTypes/transactionPayload.js +79 -1
  113. package/lib/esm/epic.js +18 -1
  114. package/lib/esm/index.js +23 -17
  115. package/lib/esm/reducer.js +12 -0
  116. package/lib/esm/view/aiCfoView/aiCfoViewReducer.js +82 -1
  117. package/lib/esm/view/aiCfoView/aiCfoViewSelector.js +8 -2
  118. package/lib/esm/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.js +29 -0
  119. package/lib/esm/view/classList/fetchClassListEpic.js +9 -2
  120. package/lib/esm/view/commonVendorView/vendorView/vendorViewSelector.js +18 -5
  121. package/lib/esm/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.js +6 -2
  122. package/lib/esm/view/companyTaskManagerView/companyTaskManagerViewReducer.js +19 -1
  123. package/lib/esm/view/companyTaskManagerView/companyTaskManagerViewSelector.js +3 -1
  124. package/lib/esm/view/companyTaskManagerView/epics/fetchTaskManagerMetricsEpic.js +17 -0
  125. package/lib/esm/view/companyView/companyViewReducer.js +26 -1
  126. package/lib/esm/view/companyView/epic/companyPassport/updateAccountingClassesEnabledEpic.js +61 -0
  127. package/lib/esm/view/companyView/types/companyPassport/companyPassportViewState.js +4 -0
  128. package/lib/esm/view/expenseAutomationView/epics/accountRecon/excludeAccountFromReconciliationEpic.js +44 -0
  129. package/lib/esm/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +4 -9
  130. package/lib/esm/view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic.js +44 -0
  131. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +2 -2
  132. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/bulkUploadMatchResultToastEpic.js +33 -0
  133. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/bulkUploadReceiptsEpic.js +3 -3
  134. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchesEpic.js +6 -4
  135. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/refetchCompletedTransactionsOnBulkUploadSortEpic.js +12 -0
  136. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/restoreBulkUploadAutomatchingOnMountEpic.js +98 -0
  137. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js +7 -13
  138. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/watchBulkUploadBatchStatusEpic.js +13 -5
  139. package/lib/esm/view/expenseAutomationView/expenseAutomationViewSelector.js +0 -1
  140. package/lib/esm/view/expenseAutomationView/{bulkUploadTiming.js → helpers/bulkUploadTiming.js} +6 -0
  141. package/lib/esm/view/expenseAutomationView/helpers/rollingCalendarDateRangeInclusive.js +13 -0
  142. package/lib/esm/view/expenseAutomationView/helpers/saveTransactionHelper.js +2 -2
  143. package/lib/esm/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +2 -2
  144. package/lib/esm/view/expenseAutomationView/payload/missingReceiptsPayload.js +9 -0
  145. package/lib/esm/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +21 -1
  146. package/lib/esm/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +26 -3
  147. package/lib/esm/view/expenseAutomationView/reducers/reconciliationViewReducer.js +167 -3
  148. package/lib/esm/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +1 -2
  149. package/lib/esm/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.js +10 -2
  150. package/lib/esm/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +63 -6
  151. package/lib/esm/view/expenseAutomationView/selectors/missingReceiptsSelector.js +14 -4
  152. package/lib/esm/view/expenseAutomationView/selectors/reconciliationViewSelector.js +136 -9
  153. package/lib/esm/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +15 -5
  154. package/lib/esm/view/expenseAutomationView/types/jeSchedulesViewState.js +24 -1
  155. package/lib/esm/view/financeStatement/financeStatementSelector.js +12 -1
  156. package/lib/esm/view/profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelector.js +3 -0
  157. package/lib/esm/view/profitAndLossProjectView/profitAndLossForTimeframeProjectViewEpic.js +47 -0
  158. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewEpic.js +30 -0
  159. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewPayload.js +1 -0
  160. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewReducer.js +113 -0
  161. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewSelector.js +67 -0
  162. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewSelectorTypes.js +1 -0
  163. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewState.js +1 -0
  164. package/lib/esm/view/reportsResync/reportsClassViewRefetchingEpic.js +4 -0
  165. package/lib/esm/view/spendManagement/autotransferRules/autoTransferRulesPayload.js +26 -0
  166. package/lib/esm/view/spendManagement/autotransferRules/autoTransferRulesReducer.js +199 -0
  167. package/lib/esm/view/spendManagement/autotransferRules/autoTransferRulesSelector.js +52 -0
  168. package/lib/esm/view/spendManagement/autotransferRules/autoTransferRulesState.js +1 -0
  169. package/lib/esm/view/spendManagement/autotransferRules/epics/createAutoTransferRuleEpic.js +100 -0
  170. package/lib/esm/view/spendManagement/autotransferRules/epics/deleteAutoTransferRuleEpic.js +48 -0
  171. package/lib/esm/view/spendManagement/autotransferRules/epics/fetchAutoTransferReviewDetailEpic.js +36 -0
  172. package/lib/esm/view/spendManagement/autotransferRules/epics/fetchAutoTransferRuleHistory.js +45 -0
  173. package/lib/esm/view/spendManagement/autotransferRules/epics/fetchAutoTransferRulesEpic.js +50 -0
  174. package/lib/esm/view/spendManagement/autotransferRules/epics/updateAutoTransferRuleEpic.js +69 -0
  175. package/lib/esm/view/spendManagement/billPay/billList/billListSelector.js +10 -0
  176. package/lib/esm/view/spendManagement/billPay/billList/billListState.js +1 -0
  177. package/lib/esm/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +7 -3
  178. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewSelector.js +5 -5
  179. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPayApproversDetailsEpic.js +7 -2
  180. package/lib/esm/view/spendManagement/billPay/editBillView/editBillViewSelector.js +13 -6
  181. package/lib/esm/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +1 -0
  182. package/lib/esm/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +2 -0
  183. package/lib/esm/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.js +7 -4
  184. package/lib/esm/view/spendManagement/reimbursement/remiListView/remiListSelector.js +12 -0
  185. package/lib/esm/view/spendManagement/reimbursement/remiListView/remiListState.js +1 -0
  186. package/lib/esm/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryDetailEpic.js +2 -2
  187. package/lib/esm/view/spendManagement/treasury/treasuryList/treasuryDetailReducer.js +2 -1
  188. package/lib/esm/view/taskManager/taskDetailView/taskDetailSelector.js +2 -2
  189. package/lib/esm/view/transactionDetail/epics/saveTransactionHelper.js +2 -2
  190. package/lib/esm/view/transactionDetail/transactionDetailLocalDataHelper.js +16 -14
  191. package/lib/esm/view/transactionDetail/transactionDetailSelector.js +9 -2
  192. package/lib/index.d.ts +37 -23
  193. package/lib/index.js +78 -34
  194. package/lib/reducer.d.ts +12 -0
  195. package/lib/reducer.js +12 -0
  196. package/lib/tsconfig.typecheck.tsbuildinfo +1 -0
  197. package/lib/view/aiCfoView/aiCfoViewPayload.d.ts +7 -0
  198. package/lib/view/aiCfoView/aiCfoViewReducer.d.ts +15 -1
  199. package/lib/view/aiCfoView/aiCfoViewReducer.js +83 -2
  200. package/lib/view/aiCfoView/aiCfoViewSelector.d.ts +4 -1
  201. package/lib/view/aiCfoView/aiCfoViewSelector.js +9 -2
  202. package/lib/view/aiCfoView/aiCfoViewState.d.ts +15 -1
  203. package/lib/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.d.ts +8 -0
  204. package/lib/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.js +33 -0
  205. package/lib/view/auditReportView/auditReportViewState.d.ts +2 -2
  206. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  207. package/lib/view/cardBalance/cardBalanceSelector.d.ts +2 -1
  208. package/lib/view/cashBalance/cashBalanceSelector.d.ts +2 -1
  209. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  210. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  211. package/lib/view/classList/fetchClassListEpic.d.ts +1 -1
  212. package/lib/view/classList/fetchClassListEpic.js +8 -1
  213. package/lib/view/commonVendorView/vendorView/vendorViewSelector.d.ts +1 -0
  214. package/lib/view/commonVendorView/vendorView/vendorViewSelector.js +18 -5
  215. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.d.ts +1 -0
  216. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.js +6 -2
  217. package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.d.ts +2 -2
  218. package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.js +20 -2
  219. package/lib/view/companyTaskManagerView/companyTaskManagerViewSelector.d.ts +4 -1
  220. package/lib/view/companyTaskManagerView/companyTaskManagerViewSelector.js +3 -1
  221. package/lib/view/companyTaskManagerView/companyTaskManagerViewState.d.ts +9 -1
  222. package/lib/view/companyTaskManagerView/epics/fetchTaskManagerMetricsEpic.d.ts +7 -0
  223. package/lib/view/companyTaskManagerView/epics/fetchTaskManagerMetricsEpic.js +21 -0
  224. package/lib/view/companyView/companyViewReducer.d.ts +6 -1
  225. package/lib/view/companyView/companyViewReducer.js +28 -2
  226. package/lib/view/companyView/epic/companyPassport/updateAccountingClassesEnabledEpic.d.ts +10 -0
  227. package/lib/view/companyView/epic/companyPassport/updateAccountingClassesEnabledEpic.js +65 -0
  228. package/lib/view/companyView/types/companyPassport/companyPassportViewState.d.ts +1 -0
  229. package/lib/view/companyView/types/companyPassport/companyPassportViewState.js +4 -0
  230. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  231. package/lib/view/expenseAutomationView/epics/accountRecon/excludeAccountFromReconciliationEpic.d.ts +8 -0
  232. package/lib/view/expenseAutomationView/epics/accountRecon/excludeAccountFromReconciliationEpic.js +48 -0
  233. package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +4 -9
  234. package/lib/view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic.d.ts +9 -0
  235. package/lib/view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic.js +48 -0
  236. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +2 -2
  237. package/lib/view/expenseAutomationView/epics/missingReceipts/bulkUploadMatchResultToastEpic.d.ts +13 -0
  238. package/lib/view/expenseAutomationView/epics/missingReceipts/bulkUploadMatchResultToastEpic.js +37 -0
  239. package/lib/view/expenseAutomationView/epics/missingReceipts/bulkUploadReceiptsEpic.js +2 -2
  240. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchesEpic.js +5 -3
  241. package/lib/view/expenseAutomationView/epics/missingReceipts/refetchCompletedTransactionsOnBulkUploadSortEpic.d.ts +10 -0
  242. package/lib/view/expenseAutomationView/epics/missingReceipts/refetchCompletedTransactionsOnBulkUploadSortEpic.js +16 -0
  243. package/lib/view/expenseAutomationView/epics/missingReceipts/restoreBulkUploadAutomatchingOnMountEpic.d.ts +18 -0
  244. package/lib/view/expenseAutomationView/epics/missingReceipts/restoreBulkUploadAutomatchingOnMountEpic.js +102 -0
  245. package/lib/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js +7 -13
  246. package/lib/view/expenseAutomationView/epics/missingReceipts/watchBulkUploadBatchStatusEpic.d.ts +2 -2
  247. package/lib/view/expenseAutomationView/epics/missingReceipts/watchBulkUploadBatchStatusEpic.js +12 -4
  248. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +0 -1
  249. package/lib/view/expenseAutomationView/{bulkUploadTiming.d.ts → helpers/bulkUploadTiming.d.ts} +6 -0
  250. package/lib/view/expenseAutomationView/{bulkUploadTiming.js → helpers/bulkUploadTiming.js} +7 -1
  251. package/lib/view/expenseAutomationView/helpers/rollingCalendarDateRangeInclusive.d.ts +7 -0
  252. package/lib/view/expenseAutomationView/helpers/rollingCalendarDateRangeInclusive.js +16 -0
  253. package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.js +2 -2
  254. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
  255. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +2 -2
  256. package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.d.ts +1 -1
  257. package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.d.ts +5 -0
  258. package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.js +10 -0
  259. package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +45 -0
  260. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +2 -2
  261. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +22 -2
  262. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.d.ts +12 -2
  263. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +27 -4
  264. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +18 -4
  265. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +168 -4
  266. package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.d.ts +2 -0
  267. package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.d.ts +2 -0
  268. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +7 -2
  269. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +2 -2
  270. package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.js +10 -2
  271. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +63 -6
  272. package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.js +14 -4
  273. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +136 -9
  274. package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +13 -3
  275. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +8 -0
  276. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.js +27 -0
  277. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +4 -0
  278. package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +14 -0
  279. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  280. package/lib/view/financeStatement/financeStatementSelector.d.ts +2 -0
  281. package/lib/view/financeStatement/financeStatementSelector.js +12 -1
  282. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  283. package/lib/view/onboardingView/cockpitView/types/onboardingCockpitViewTypes.d.ts +1 -1
  284. package/lib/view/profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelector.js +3 -0
  285. package/lib/view/profitAndLossProjectView/profitAndLossForTimeframeProjectViewEpic.d.ts +9 -0
  286. package/lib/view/profitAndLossProjectView/profitAndLossForTimeframeProjectViewEpic.js +51 -0
  287. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewEpic.d.ts +6 -0
  288. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewEpic.js +34 -0
  289. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewPayload.d.ts +33 -0
  290. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewPayload.js +2 -0
  291. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewReducer.d.ts +33 -0
  292. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewReducer.js +117 -0
  293. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewSelector.d.ts +9 -0
  294. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewSelector.js +71 -0
  295. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewSelectorTypes.d.ts +19 -0
  296. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewSelectorTypes.js +2 -0
  297. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewState.d.ts +22 -0
  298. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewState.js +2 -0
  299. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  300. package/lib/view/reportsResync/reportsClassViewRefetchingEpic.d.ts +2 -1
  301. package/lib/view/reportsResync/reportsClassViewRefetchingEpic.js +4 -0
  302. package/lib/view/reportsResync/reportsResyncReducer.d.ts +2 -2
  303. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  304. package/lib/view/spendManagement/autotransferRules/autoTransferRulesPayload.d.ts +75 -0
  305. package/lib/view/spendManagement/autotransferRules/autoTransferRulesPayload.js +30 -0
  306. package/lib/view/spendManagement/autotransferRules/autoTransferRulesReducer.d.ts +50 -0
  307. package/lib/view/spendManagement/autotransferRules/autoTransferRulesReducer.js +206 -0
  308. package/lib/view/spendManagement/autotransferRules/autoTransferRulesSelector.d.ts +24 -0
  309. package/lib/view/spendManagement/autotransferRules/autoTransferRulesSelector.js +61 -0
  310. package/lib/view/spendManagement/autotransferRules/autoTransferRulesState.d.ts +38 -0
  311. package/lib/view/spendManagement/autotransferRules/autoTransferRulesState.js +2 -0
  312. package/lib/view/spendManagement/autotransferRules/epics/createAutoTransferRuleEpic.d.ts +12 -0
  313. package/lib/view/spendManagement/autotransferRules/epics/createAutoTransferRuleEpic.js +106 -0
  314. package/lib/view/spendManagement/autotransferRules/epics/deleteAutoTransferRuleEpic.d.ts +8 -0
  315. package/lib/view/spendManagement/autotransferRules/epics/deleteAutoTransferRuleEpic.js +52 -0
  316. package/lib/view/spendManagement/autotransferRules/epics/fetchAutoTransferReviewDetailEpic.d.ts +7 -0
  317. package/lib/view/spendManagement/autotransferRules/epics/fetchAutoTransferReviewDetailEpic.js +40 -0
  318. package/lib/view/spendManagement/autotransferRules/epics/fetchAutoTransferRuleHistory.d.ts +7 -0
  319. package/lib/view/spendManagement/autotransferRules/epics/fetchAutoTransferRuleHistory.js +52 -0
  320. package/lib/view/spendManagement/autotransferRules/epics/fetchAutoTransferRulesEpic.d.ts +10 -0
  321. package/lib/view/spendManagement/autotransferRules/epics/fetchAutoTransferRulesEpic.js +54 -0
  322. package/lib/view/spendManagement/autotransferRules/epics/updateAutoTransferRuleEpic.d.ts +8 -0
  323. package/lib/view/spendManagement/autotransferRules/epics/updateAutoTransferRuleEpic.js +73 -0
  324. package/lib/view/spendManagement/billPay/billList/billListSelector.js +10 -0
  325. package/lib/view/spendManagement/billPay/billList/billListState.d.ts +1 -1
  326. package/lib/view/spendManagement/billPay/billList/billListState.js +1 -0
  327. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +7 -3
  328. package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewSelector.js +5 -5
  329. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPayApproversDetailsEpic.js +7 -2
  330. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +13 -6
  331. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +1 -1
  332. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +1 -1
  333. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +1 -0
  334. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +2 -0
  335. package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.js +6 -3
  336. package/lib/view/spendManagement/reimbursement/remiListView/remiListSelector.d.ts +1 -0
  337. package/lib/view/spendManagement/reimbursement/remiListView/remiListSelector.js +12 -0
  338. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +1 -1
  339. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.js +1 -0
  340. package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryDetailEpic.js +2 -2
  341. package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailReducer.d.ts +2 -1
  342. package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailReducer.js +2 -1
  343. package/lib/view/taskManager/taskDetailView/taskDetailSelector.js +2 -2
  344. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  345. package/lib/view/topEx/topExSelector.d.ts +1 -1
  346. package/lib/view/transactionDetail/epics/saveTransactionHelper.js +2 -2
  347. package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +16 -14
  348. package/lib/view/transactionDetail/transactionDetailSelector.d.ts +1 -0
  349. package/lib/view/transactionDetail/transactionDetailSelector.js +9 -2
  350. package/package.json +1 -1
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Canonical union of `page_context` values for GET …/suggested-questions (and related Redux
3
+ * `suggestedQuestionsByPageContext` on `AiCfoViewState`).
4
+ *
5
+ * ## Report IDs vs `page_context`
6
+ *
7
+ * **These strings are not all finance `report_id` values.** They are the **API’s** `page_context`
8
+ * slugs. Only the **reports tab** subset is *derived* from `ReportID` (e.g. `profit_and_loss` →
9
+ * `profit_loss`). That mapping lives in the web app:
10
+ * `zeni-web-app-ui/src/aiCfo/aiCfoSuggestedQuestionsPageContext.ts`
11
+ * (`reportIdToAiCfoSuggestedQuestionsPageContext`).
12
+ *
13
+ * Other members (e.g. `dashboard`, `bills_list`, `task_checklist`) come from **product routes /
14
+ * screens**, not from report IDs. Adding a new host screen usually means extending this union and
15
+ * wiring route resolution in the UI; coordinate with the backend for suggested-questions support.
16
+ *
17
+ * @see README.md in this directory for maintenance expectations.
18
+ */
19
+ export type AiCfoSuggestedQuestionsPageContext = 'balance_sheet' | 'profit_loss' | 'vendors' | 'transactions' | 'cash_flow' | 'accounts_receivable' | 'accounts_payable' | 'transaction_details' | 'dashboard' | 'cash_balance' | 'card_balance' | 'command_centre' | 'je_schedules' | 'reconciliation' | 'flux_analysis' | 'receipts' | 'mei' | 'task_checklist' | 'performance' | 'bills_list' | 'bills_details' | 'reimbursement_list' | 'reimbursement_details' | 'vendors_summary' | 'opex_by_vendor' | 'prepaid_expenses' | 'fixed_assets' | 'form_1099' | 'accrued_expenses' | 'forecast' | 'checking' | 'checking_details' | 'treasury' | 'cards' | 'cards_detail' | 'people' | 'rewards' | 'notifications';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,6 @@
1
1
  import { AccountsViewParentID, NestedAccountIDHierarchy } from '../../commonStateTypes/accountView/nestedAccountID';
2
2
  import { ClassesViewParentID } from '../../commonStateTypes/classesView/nestedClassID';
3
+ import { ProjectsViewParentID } from '../../commonStateTypes/projectView/projectViewParentID';
3
4
  import { AccountMetadataPayload } from '../../entity/account/accountPayload';
4
5
  import { AccountGroupMetadataPayload } from '../../entity/accountGroup/accountGroupPayload';
5
6
  import { COABalanceGroupedByPeriodPayloadV2, COABalanceGroupedPayloadV2 } from '../v2/coaBalancePayload';
@@ -26,6 +27,7 @@ export interface AccountMetadataWithBalancesPayload {
26
27
  accountMetadataPayload: AccountMetadataPayload;
27
28
  accountsViewParentID?: AccountsViewParentID;
28
29
  classesViewParentID?: ClassesViewParentID;
30
+ projectsViewParentID?: ProjectsViewParentID;
29
31
  }
30
32
  export interface AccountGroupMetadataWithBalancesPayload {
31
33
  accountGroupBalances: COABalanceGroupedByPeriodPayloadV2;
@@ -1,2 +1,2 @@
1
- export declare const toAnimationsFileName: (v: string) => "AiAgent" | "AiIconEntry" | "AiIconExit" | "AiIconLoop" | "AiStar" | "AiStarIcon" | "AiStarPlain" | "AIPoweredInvoiceDark" | "AIPoweredInvoiceLight" | "Angry" | "AutoTransfer" | "CloseCard" | "Confetti" | "ConfettiSuccess" | "DashboardChristmasSnow" | "DashboardNewYearShow" | "DashboardSidebarBottomChristmas" | "DashboardSidebarBottomHalloween" | "DashboardSidebarBottomNewYear" | "DashboardSidebarBottomThanksgiving" | "DashboardSidebarTopChristmas" | "DashboardSidebarTopHalloween" | "DashboardSidebarTopNewYear" | "DashboardSidebarTopThanksgiving" | "EarnYield" | "FastestWayDark" | "FastestWayLight" | "FinanceTeamDark" | "FinanceTeamLight" | "Happy" | "Liquidity" | "LockCard" | "MoneyTransferSuccess" | "MultiLevelApprovalDark" | "MultiLevelApprovalLight" | "NotHappy" | "Protection" | "ReceiptDark" | "ReceiptLight" | "ReimburseDark" | "ReimburseLight" | "RewardsDark" | "RewardsDarkHover" | "RewardsLight" | "RewardsLightHover" | "Secure" | "Success" | "UnlockCard" | "VeryHappy" | "ZeniAssist";
1
+ export declare const toAnimationsFileName: (v: string) => "Success" | "AiAgent" | "AiIconEntry" | "AiIconExit" | "AiIconLoop" | "AiStar" | "AiStarIcon" | "AiStarPlain" | "AIPoweredInvoiceDark" | "AIPoweredInvoiceLight" | "Angry" | "AutoTransfer" | "CloseCard" | "Confetti" | "ConfettiSuccess" | "DashboardChristmasSnow" | "DashboardNewYearShow" | "DashboardSidebarBottomChristmas" | "DashboardSidebarBottomHalloween" | "DashboardSidebarBottomNewYear" | "DashboardSidebarBottomThanksgiving" | "DashboardSidebarTopChristmas" | "DashboardSidebarTopHalloween" | "DashboardSidebarTopNewYear" | "DashboardSidebarTopThanksgiving" | "Distribution" | "EarnYield" | "FastestWayDark" | "FastestWayLight" | "FinanceTeamDark" | "FinanceTeamLight" | "Happy" | "Liquidity" | "LockCard" | "MoneyTransferSuccess" | "MultiLevelApprovalDark" | "MultiLevelApprovalLight" | "NotHappy" | "Protection" | "ReceiptDark" | "ReceiptLight" | "Recurring" | "ReimburseDark" | "ReimburseLight" | "RewardsDark" | "RewardsDarkHover" | "RewardsLight" | "RewardsLightHover" | "Secure" | "Target" | "UnlockCard" | "VeryHappy" | "ZeniAssist";
2
2
  export type AnimationFileName = ReturnType<typeof toAnimationsFileName>;
@@ -27,6 +27,7 @@ const ALL_ANIMATIONS_FILE_NAMES = [
27
27
  'DashboardSidebarTopHalloween',
28
28
  'DashboardSidebarTopNewYear',
29
29
  'DashboardSidebarTopThanksgiving',
30
+ 'Distribution',
30
31
  'EarnYield',
31
32
  'FastestWayDark',
32
33
  'FastestWayLight',
@@ -42,6 +43,7 @@ const ALL_ANIMATIONS_FILE_NAMES = [
42
43
  'Protection',
43
44
  'ReceiptDark',
44
45
  'ReceiptLight',
46
+ 'Recurring',
45
47
  'ReimburseDark',
46
48
  'ReimburseLight',
47
49
  'RewardsDark',
@@ -50,6 +52,7 @@ const ALL_ANIMATIONS_FILE_NAMES = [
50
52
  'RewardsLightHover',
51
53
  'Secure',
52
54
  'Success',
55
+ 'Target',
53
56
  'UnlockCard',
54
57
  'VeryHappy',
55
58
  'ZeniAssist',
@@ -0,0 +1,13 @@
1
+ import { ZeniDate } from '../../zeniDayJS';
2
+ import { ID } from '../common';
3
+ import { Month } from '../timePeriod';
4
+ import { COABalanceTimeFrame } from './coaBalance';
5
+ import { COABalanceType } from './coaBalanceType';
6
+ import { COABalancesFilter } from './coaBalancesFilter';
7
+ export interface COABalancesFilterProjectView extends COABalancesFilter {
8
+ projectsToFilterOut: ID[];
9
+ }
10
+ export declare const newBalancesFilterProjectView: (firstMonthOfFY: Month, timeframe: COABalanceTimeFrame, numberOfPeriods?: number, thisPeriod?: {
11
+ endDate: ZeniDate;
12
+ startDate: ZeniDate;
13
+ }, orderBy?: "ascending_date" | "descending_date", additionalBalances?: COABalanceType[], projectsToFilterOut?: ID[]) => COABalancesFilterProjectView;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.newBalancesFilterProjectView = void 0;
4
+ const coaBalancesFilter_1 = require("../../commonStateTypes/coaBalance/coaBalancesFilter");
5
+ const newBalancesFilterProjectView = (firstMonthOfFY, timeframe, numberOfPeriods = 8, thisPeriod, orderBy = 'ascending_date', additionalBalances = [], projectsToFilterOut = []) => ({
6
+ ...(0, coaBalancesFilter_1.newBalancesFilter)(firstMonthOfFY, timeframe, numberOfPeriods, thisPeriod, orderBy, additionalBalances),
7
+ projectsToFilterOut,
8
+ });
9
+ exports.newBalancesFilterProjectView = newBalancesFilterProjectView;
@@ -23,7 +23,7 @@ export interface FetchedState extends FetchStateAndError {
23
23
  hasValidState(): boolean;
24
24
  }
25
25
  export type Mode = 'forecast_mode' | 'compare_mode' | 'off';
26
- export type AccountViewMode = 'classes' | 'account_group';
26
+ export type AccountViewMode = 'classes' | 'account_group' | 'project';
27
27
  export interface FullName {
28
28
  firstName: string;
29
29
  lastName: string;
@@ -0,0 +1,5 @@
1
+ import { ID } from '../common';
2
+ export interface ProjectsViewParentID {
3
+ projectId: ID;
4
+ sectionId: ID;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,7 @@
1
1
  import { ReportIDPlusForecastID } from './viewAndReport';
2
2
  export declare const isPAndLReport: (reportId: ReportIDPlusForecastID) => boolean;
3
3
  export declare const isPAndLClassesViewReport: (reportId: ReportIDPlusForecastID) => boolean;
4
+ export declare const isPAndLProjectViewReport: (reportId: ReportIDPlusForecastID) => boolean;
4
5
  export declare const isDashboardReport: (reportId: ReportIDPlusForecastID) => boolean;
5
6
  export declare const isDashboardClassesViewReport: (reportId: ReportIDPlusForecastID) => boolean;
6
7
  export declare const isCashFlowOrBalanceSheetReport: (reportId: ReportIDPlusForecastID) => boolean;
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isFluxAnalysisOpExReport = exports.isOpExByVendorReport = exports.isAgingReport = exports.isCashFlowOrBalanceSheetReport = exports.isDashboardClassesViewReport = exports.isDashboardReport = exports.isPAndLClassesViewReport = exports.isPAndLReport = void 0;
3
+ exports.isFluxAnalysisOpExReport = exports.isOpExByVendorReport = exports.isAgingReport = exports.isCashFlowOrBalanceSheetReport = exports.isDashboardClassesViewReport = exports.isDashboardReport = exports.isPAndLProjectViewReport = exports.isPAndLClassesViewReport = exports.isPAndLReport = void 0;
4
4
  const isPAndLReport = (reportId) => reportId.startsWith('profit_and_loss');
5
5
  exports.isPAndLReport = isPAndLReport;
6
6
  const isPAndLClassesViewReport = (reportId) => reportId.startsWith('profit_and_loss_by_classes');
7
7
  exports.isPAndLClassesViewReport = isPAndLClassesViewReport;
8
+ const isPAndLProjectViewReport = (reportId) => reportId.startsWith('profit_and_loss_by_projects');
9
+ exports.isPAndLProjectViewReport = isPAndLProjectViewReport;
8
10
  const isDashboardReport = (reportId) => {
9
11
  const ids = reportId.split('+');
10
12
  const report = ids[0];
@@ -3,8 +3,8 @@ import { FetchStateAndError, ID } from '../common';
3
3
  import { DataAvailable } from '../dataAvailable';
4
4
  import { Status } from '../status';
5
5
  import { Month } from '../timePeriod';
6
- export declare const ALL_REPORT_IDS: readonly ["cash_balance", "card_balance", "expense_automation_card", "operating_expenses", "operating_expenses_by_classes", "revenue", "revenue_by_classes", "net_burn_or_income", "net_burn_or_income_story_card", "net_burn_or_income_by_classes", "cash_position", "top_expenses", "profit_and_loss", "profit_and_loss_by_classes", "balance_sheet", "cash_flow", "dashboard", "finance_statement", "transaction_list_of_account", "transaction_list_missing_receipt", "transaction_list_of_account_by_class", "transaction_detail", "cash_in_cash_out", "insights_dashboard", "company_details", "class_list", "account_list", "account_list_by_type", "vendor", "task_card", "bill_pay", "reimbursement", "bill_pay_card", "reimbursement_card", "bill_pay_promo_card", "zeni_accounts", "zeni_accounts_promo_card", "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"];
7
- export declare const toReportID: (v: string) => "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "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";
6
+ export declare const ALL_REPORT_IDS: readonly ["cash_balance", "card_balance", "expense_automation_card", "operating_expenses", "operating_expenses_by_classes", "revenue", "revenue_by_classes", "net_burn_or_income", "net_burn_or_income_story_card", "net_burn_or_income_by_classes", "cash_position", "top_expenses", "profit_and_loss", "profit_and_loss_by_classes", "profit_and_loss_by_projects", "balance_sheet", "cash_flow", "dashboard", "finance_statement", "transaction_list_of_account", "transaction_list_missing_receipt", "transaction_list_of_account_by_class", "transaction_detail", "cash_in_cash_out", "insights_dashboard", "company_details", "class_list", "account_list", "account_list_by_type", "vendor", "task_card", "bill_pay", "reimbursement", "bill_pay_card", "reimbursement_card", "bill_pay_promo_card", "zeni_accounts", "zeni_accounts_promo_card", "zeni_treasury", "charge_cards", "other_connection", "reimbursement_promo_card", "onboarding", "operating_expenses_by_vendor", "operating_expenses_by_vendor_summary", "vendors_tab", "accounts_payable_aging", "accounts_receivable_aging", "vendor_global_review", "prepaid_expenses", "fixed_assets", "notification", "rewards_card", "billing", "flux_analysis_operating_expense", "account_reconciliation", "zeni_credit_promo_card", "treasury_promo_card", "excluded_account_reconciliation"];
7
+ export declare const toReportID: (v: string) => "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation";
8
8
  export type ReportID = ReturnType<typeof toReportID>;
9
9
  export type ReportIDPlusForecastID = ReportID | `${ReportID}+${ID}`;
10
10
  /** Any view state should extend this interface */
@@ -17,6 +17,7 @@ exports.ALL_REPORT_IDS = [
17
17
  'top_expenses',
18
18
  'profit_and_loss',
19
19
  'profit_and_loss_by_classes',
20
+ 'profit_and_loss_by_projects',
20
21
  'balance_sheet',
21
22
  'cash_flow',
22
23
  'dashboard',
@@ -60,6 +61,7 @@ exports.ALL_REPORT_IDS = [
60
61
  'account_reconciliation',
61
62
  'zeni_credit_promo_card',
62
63
  'treasury_promo_card',
64
+ 'excluded_account_reconciliation',
63
65
  ];
64
66
  const toReportID = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_REPORT_IDS);
65
67
  exports.toReportID = toReportID;
@@ -12,6 +12,8 @@ export interface AccountBasePayload {
12
12
  account_sub_type?: string | null;
13
13
  account_type?: string | null;
14
14
  coa_id?: string | null;
15
+ currency_code?: string | null;
16
+ currency_symbol?: string | null;
15
17
  is_bill_editable_coa_account_type?: boolean | null;
16
18
  is_deleted?: boolean | null;
17
19
  last_4_digits?: string | null;
@@ -4,7 +4,7 @@ import { ClassesViewParentID } from '../../commonStateTypes/classesView/nestedCl
4
4
  import { ID, UpdateType } from '../../commonStateTypes/common';
5
5
  import { ReportIDPlusForecastID } from '../../commonStateTypes/viewAndReport/viewAndReport';
6
6
  import { AccountPayload } from './accountPayload';
7
- import { AccountBase, AccountState, StatementCloseDay } from './accountState';
7
+ import { AccountBase, AccountKey, AccountState, StatementCloseDay } from './accountState';
8
8
  export declare const initialState: AccountState;
9
9
  export declare const updateAccounts: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: AccountPayload[], reportId: ReportIDPlusForecastID, classesViewParentId?: ClassesViewParentID | undefined, updateType?: UpdateType | undefined], AccountPayload[], "account/updateAccounts", never, {
10
10
  reportId: ReportIDPlusForecastID;
@@ -20,7 +20,10 @@ export declare const updateAccounts: import("@reduxjs/toolkit").ActionCreatorWit
20
20
  accountId: ID;
21
21
  reportId: ReportIDPlusForecastID;
22
22
  statementCloseDay: StatementCloseDay;
23
- }, "account/updateAccountStatementCloseDay">, clearAllAccounts: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"account/clearAllAccounts">;
23
+ }, "account/updateAccountStatementCloseDay">, changeAccountKey: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
24
+ newKey: AccountKey;
25
+ oldKey: AccountKey;
26
+ }, "account/changeAccountKey">, clearAllAccounts: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"account/clearAllAccounts">;
24
27
  declare const _default: import("redux").Reducer<AccountState>;
25
28
  export default _default;
26
29
  export declare const emptyAccount: AccountBase;
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  var _a;
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.emptyAccount = exports.clearAllAccounts = exports.updateAccountStatementCloseDay = exports.updateMultipleSubAccountsWithBalances = exports.updateAccounts = exports.initialState = void 0;
7
+ exports.emptyAccount = exports.clearAllAccounts = exports.changeAccountKey = exports.updateAccountStatementCloseDay = exports.updateMultipleSubAccountsWithBalances = exports.updateAccounts = exports.initialState = void 0;
8
8
  const toolkit_1 = require("@reduxjs/toolkit");
9
9
  const assignWith_1 = __importDefault(require("lodash/assignWith"));
10
10
  const balanceChangePayload_1 = require("../../commonPayloadTypes/balanceChangePayload");
@@ -52,12 +52,17 @@ const account = (0, toolkit_1.createSlice)({
52
52
  draft.accountsByKey[key].statementCloseDay =
53
53
  action.payload.statementCloseDay;
54
54
  },
55
+ changeAccountKey(draft, action) {
56
+ const { oldKey, newKey } = action.payload;
57
+ draft.accountsByKey[newKey] = draft.accountsByKey[oldKey];
58
+ delete draft.accountsByKey[oldKey];
59
+ },
55
60
  clearAllAccounts(draft) {
56
61
  draft.accountsByKey = {};
57
62
  },
58
63
  },
59
64
  });
60
- _a = account.actions, exports.updateAccounts = _a.updateAccounts, exports.updateMultipleSubAccountsWithBalances = _a.updateMultipleSubAccountsWithBalances, exports.updateAccountStatementCloseDay = _a.updateAccountStatementCloseDay, exports.clearAllAccounts = _a.clearAllAccounts;
65
+ _a = account.actions, exports.updateAccounts = _a.updateAccounts, exports.updateMultipleSubAccountsWithBalances = _a.updateMultipleSubAccountsWithBalances, exports.updateAccountStatementCloseDay = _a.updateAccountStatementCloseDay, exports.changeAccountKey = _a.changeAccountKey, exports.clearAllAccounts = _a.clearAllAccounts;
61
66
  exports.default = account.reducer;
62
67
  /**
63
68
  * Helper functions.
@@ -85,11 +90,12 @@ function doUpdateSubAccountsWithBalances(draft, subAccountWithBalancesListPayloa
85
90
  const accountBalancesPayload = subAccountWithBalancesListPayload[index].accountBalancesPayload;
86
91
  const accountViewParentId = subAccountWithBalancesListPayload[index].accountsViewParentID;
87
92
  const classesViewParentId = subAccountWithBalancesListPayload[index].classesViewParentID;
88
- doUpdateAccountWithBalancesV2(draft, accountBasePayload, accountBalancesPayload, currencyPayload, reportId, timeframe, classesViewParentId, accountViewParentId, updateType);
93
+ const projectsViewParentId = subAccountWithBalancesListPayload[index].projectsViewParentID;
94
+ doUpdateAccountWithBalancesV2(draft, accountBasePayload, accountBalancesPayload, currencyPayload, reportId, timeframe, classesViewParentId, accountViewParentId, projectsViewParentId, updateType);
89
95
  }
90
96
  }
91
- function doUpdateAccountWithBalancesV2(draft, accountBasePayload, accountBalancesPayload, currencyPayload, reportId, timeframe, classesViewParentId, accountsViewParentId, updateType) {
92
- const key = (0, accountState_1.getAccountKey)(reportId, accountBasePayload.account_id, classesViewParentId, accountsViewParentId);
97
+ function doUpdateAccountWithBalancesV2(draft, accountBasePayload, accountBalancesPayload, currencyPayload, reportId, timeframe, classesViewParentId, accountsViewParentId, projectsViewParentId, updateType) {
98
+ const key = (0, accountState_1.getAccountKey)(reportId, accountBasePayload.account_id, classesViewParentId, accountsViewParentId, projectsViewParentId);
93
99
  const balancesByPeriod = (0, coaBalancePayload_2.mapCOABalanceGroupedByPeriodPayloadV2ToCOABalanceGroupedByPeriod)(accountBalancesPayload, currencyPayload, timeframe);
94
100
  if (key in draft && updateType === 'merge') {
95
101
  // only add balances
@@ -100,6 +106,7 @@ function doUpdateAccountWithBalancesV2(draft, accountBasePayload, accountBalance
100
106
  ...(0, accountPayload_1.mapAccountBasePayloadToAccountBase)(accountBasePayload),
101
107
  key,
102
108
  classesViewParentId,
109
+ projectsViewParentId,
103
110
  };
104
111
  latestAccount.balancesByPeriod = balancesByPeriod;
105
112
  draft[latestAccount.key] = latestAccount;
@@ -1,5 +1,6 @@
1
1
  import { AccountsViewParentID } from '../../commonStateTypes/accountView/nestedAccountID';
2
2
  import { ClassesViewParentID } from '../../commonStateTypes/classesView/nestedClassID';
3
+ import { ProjectsViewParentID } from '../../commonStateTypes/projectView/projectViewParentID';
3
4
  import { AdditionalBalancesOptions } from '../../commonStateTypes/coaBalance/additionalBalances/getAdditionalBalances';
4
5
  import { COABalancesFilter } from '../../commonStateTypes/coaBalance/coaBalancesFilter';
5
6
  import { ID } from '../../commonStateTypes/common';
@@ -12,6 +13,7 @@ export declare function getAccount(accountState: AccountState, id: {
12
13
  reportId: ReportIDPlusForecastID;
13
14
  accountsViewParentId?: AccountsViewParentID;
14
15
  classesViewParentId?: ClassesViewParentID;
16
+ projectsViewParentId?: ProjectsViewParentID;
15
17
  }, filter: COABalancesFilter, additionalBalancesOptions?: AdditionalBalancesOptions): {
16
18
  filter: COABalancesFilter;
17
19
  balancesInTimeframe: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesSlice;
@@ -42,6 +44,7 @@ export declare function getAccount(accountState: AccountState, id: {
42
44
  qboId: string | undefined;
43
45
  coaId: string | undefined;
44
46
  classesViewParentId: ClassesViewParentID | undefined;
47
+ projectsViewParentId: ProjectsViewParentID | undefined;
45
48
  accountsViewParentId: AccountsViewParentID | undefined;
46
49
  labels: ("prepaid_expenses" | "fixed_assets" | "uncategorized_income" | "uncategorized_expense" | "bank_charges_and_fees" | "travel_transportation" | "accrued_expenses")[];
47
50
  isBillEditableCoaAccountType: boolean;
@@ -52,6 +55,7 @@ export declare function getAccountWithBalance(accountState: AccountState, id: {
52
55
  reportId: ReportIDPlusForecastID;
53
56
  accountsViewParentId?: AccountsViewParentID;
54
57
  classesViewParentId?: ClassesViewParentID;
58
+ projectsViewParentId?: ProjectsViewParentID;
55
59
  }): {
56
60
  accountId: string;
57
61
  accountName: string;
@@ -66,6 +70,7 @@ export declare function getAccountWithBalance(accountState: AccountState, id: {
66
70
  qboId: string | undefined;
67
71
  coaId: string | undefined;
68
72
  classesViewParentId: ClassesViewParentID | undefined;
73
+ projectsViewParentId: ProjectsViewParentID | undefined;
69
74
  accountsViewParentId: AccountsViewParentID | undefined;
70
75
  labels: ("prepaid_expenses" | "fixed_assets" | "uncategorized_income" | "uncategorized_expense" | "bank_charges_and_fees" | "travel_transportation" | "accrued_expenses")[];
71
76
  isBillEditableCoaAccountType: boolean;
@@ -78,6 +83,7 @@ export declare const getAccountsOrdered: (filter: COABalancesFilter, accountStat
78
83
  reportId: ReportIDPlusForecastID;
79
84
  accountsViewParentId?: AccountsViewParentID;
80
85
  classesViewParentId?: ClassesViewParentID;
86
+ projectsViewParentId?: ProjectsViewParentID;
81
87
  }, orderBy: "balance" | "expenses" | "income" | "cogs" | "cashPosition" | "cashIn" | "cashOut" | "otherIncome" | "otherExpenses" | "equity" | "assets" | "liabilities" | "operating_activities" | "investing_activities" | "financing_activities", order?: EntityOrder) => {
82
88
  filter: COABalancesFilter;
83
89
  balancesInTimeframe: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesSlice;
@@ -108,6 +114,7 @@ export declare const getAccountsOrdered: (filter: COABalancesFilter, accountStat
108
114
  qboId: string | undefined;
109
115
  coaId: string | undefined;
110
116
  classesViewParentId: ClassesViewParentID | undefined;
117
+ projectsViewParentId: ProjectsViewParentID | undefined;
111
118
  accountsViewParentId: AccountsViewParentID | undefined;
112
119
  labels: ("prepaid_expenses" | "fixed_assets" | "uncategorized_income" | "uncategorized_expense" | "bank_charges_and_fees" | "travel_transportation" | "accrued_expenses")[];
113
120
  isBillEditableCoaAccountType: boolean;
@@ -11,7 +11,7 @@ const coaBalance_1 = require("../../commonStateTypes/coaBalance/coaBalance");
11
11
  const sortBalancesByFreeRangeTotal_1 = require("../../commonStateTypes/coaBalance/sortBalancesByFreeRangeTotal");
12
12
  const accountState_1 = require("./accountState");
13
13
  function getCommonAccountFields(accountState, id) {
14
- const key = (0, accountState_1.getAccountKey)(id.reportId, id.accountId, id.classesViewParentId, id.accountsViewParentId);
14
+ const key = (0, accountState_1.getAccountKey)(id.reportId, id.accountId, id.classesViewParentId, id.accountsViewParentId, id.projectsViewParentId);
15
15
  const account = accountState.accountsByKey[key];
16
16
  if (account == null) {
17
17
  throw new Error(`Account with ${key} doesn't exists`);
@@ -30,6 +30,7 @@ function getCommonAccountFields(accountState, id) {
30
30
  qboId: account.qboId,
31
31
  coaId: account.coaId,
32
32
  classesViewParentId: account.classesViewParentId,
33
+ projectsViewParentId: account.projectsViewParentId,
33
34
  accountsViewParentId: account.accountsViewParentId,
34
35
  labels: account.labels,
35
36
  isBillEditableCoaAccountType: account.isBillEditableCoaAccountType ?? false,
@@ -59,7 +60,7 @@ const getAccountBase = (accountState, accountId, reportId) => {
59
60
  };
60
61
  exports.getAccountBase = getAccountBase;
61
62
  function getAccount(accountState, id, filter, additionalBalancesOptions) {
62
- const key = (0, accountState_1.getAccountKey)(id.reportId, id.accountId, id.classesViewParentId, id.accountsViewParentId);
63
+ const key = (0, accountState_1.getAccountKey)(id.reportId, id.accountId, id.classesViewParentId, id.accountsViewParentId, id.projectsViewParentId);
63
64
  const account = accountState.accountsByKey[key];
64
65
  if (account == null) {
65
66
  throw new Error(`Account with ${key} doesn't exists`);
@@ -110,6 +111,7 @@ const getAccountsOrdered = (filter, accountState, id, orderBy, order = 'last_bal
110
111
  reportId: id.reportId,
111
112
  classesViewParentId: id.classesViewParentId,
112
113
  accountsViewParentId: id.accountsViewParentId,
114
+ projectsViewParentId: id.projectsViewParentId,
113
115
  }, filter))
114
116
  .sort((a, b) => {
115
117
  switch (orderBy) {
@@ -1,6 +1,7 @@
1
1
  import { AccountsViewParentID } from '../../commonStateTypes/accountView/nestedAccountID';
2
2
  import { Balance } from '../../commonStateTypes/balance';
3
3
  import { ClassesViewParentID } from '../../commonStateTypes/classesView/nestedClassID';
4
+ import { ProjectsViewParentID } from '../../commonStateTypes/projectView/projectViewParentID';
4
5
  import { COABalanceGrouped, COABalanceGroupedByPeriod } from '../../commonStateTypes/coaBalance/coaBalance';
5
6
  import { ID } from '../../commonStateTypes/common';
6
7
  import { RecommendationBase } from '../../commonStateTypes/recommendationBase';
@@ -14,7 +15,7 @@ export type UncategorizedAccountTypes = 'expense' | 'income';
14
15
  declare const toAccountLabel: (v: string) => "prepaid_expenses" | "fixed_assets" | "uncategorized_income" | "uncategorized_expense" | "bank_charges_and_fees" | "travel_transportation" | "accrued_expenses";
15
16
  export type AccountLabel = ReturnType<typeof toAccountLabel>;
16
17
  export declare const toAccountLabelStrict: (v: string | null | undefined) => AccountLabel | undefined;
17
- export declare function getAccountKey(reportIdUniqueKey: ReportIDPlusForecastID, accountId: ID, classesViewParentId?: ClassesViewParentID, accountsViewParentId?: AccountsViewParentID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-zeni_treasury` | `${string}-charge_cards` | `${string}-other_connection` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-billing` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation` | `${string}-zeni_credit_promo_card` | `${string}-treasury_promo_card` | `${string}-cash_balance+${string}` | `${string}-card_balance+${string}` | `${string}-expense_automation_card+${string}` | `${string}-operating_expenses+${string}` | `${string}-operating_expenses_by_classes+${string}` | `${string}-revenue+${string}` | `${string}-revenue_by_classes+${string}` | `${string}-net_burn_or_income+${string}` | `${string}-net_burn_or_income_story_card+${string}` | `${string}-net_burn_or_income_by_classes+${string}` | `${string}-cash_position+${string}` | `${string}-top_expenses+${string}` | `${string}-profit_and_loss+${string}` | `${string}-profit_and_loss_by_classes+${string}` | `${string}-balance_sheet+${string}` | `${string}-cash_flow+${string}` | `${string}-dashboard+${string}` | `${string}-finance_statement+${string}` | `${string}-transaction_list_of_account+${string}` | `${string}-transaction_list_missing_receipt+${string}` | `${string}-transaction_list_of_account_by_class+${string}` | `${string}-transaction_detail+${string}` | `${string}-cash_in_cash_out+${string}` | `${string}-insights_dashboard+${string}` | `${string}-company_details+${string}` | `${string}-class_list+${string}` | `${string}-account_list+${string}` | `${string}-account_list_by_type+${string}` | `${string}-vendor+${string}` | `${string}-task_card+${string}` | `${string}-bill_pay+${string}` | `${string}-reimbursement+${string}` | `${string}-bill_pay_card+${string}` | `${string}-reimbursement_card+${string}` | `${string}-bill_pay_promo_card+${string}` | `${string}-zeni_accounts+${string}` | `${string}-zeni_accounts_promo_card+${string}` | `${string}-zeni_treasury+${string}` | `${string}-charge_cards+${string}` | `${string}-other_connection+${string}` | `${string}-reimbursement_promo_card+${string}` | `${string}-onboarding+${string}` | `${string}-operating_expenses_by_vendor+${string}` | `${string}-operating_expenses_by_vendor_summary+${string}` | `${string}-vendors_tab+${string}` | `${string}-accounts_payable_aging+${string}` | `${string}-accounts_receivable_aging+${string}` | `${string}-vendor_global_review+${string}` | `${string}-prepaid_expenses+${string}` | `${string}-fixed_assets+${string}` | `${string}-notification+${string}` | `${string}-rewards_card+${string}` | `${string}-billing+${string}` | `${string}-flux_analysis_operating_expense+${string}` | `${string}-account_reconciliation+${string}` | `${string}-zeni_credit_promo_card+${string}` | `${string}-treasury_promo_card+${string}`;
18
+ export declare function getAccountKey(reportIdUniqueKey: ReportIDPlusForecastID, accountId: ID, classesViewParentId?: ClassesViewParentID, accountsViewParentId?: AccountsViewParentID, projectsViewParentId?: ProjectsViewParentID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-profit_and_loss_by_projects` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-zeni_treasury` | `${string}-charge_cards` | `${string}-other_connection` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-billing` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation` | `${string}-zeni_credit_promo_card` | `${string}-treasury_promo_card` | `${string}-excluded_account_reconciliation` | `${string}-cash_balance+${string}` | `${string}-card_balance+${string}` | `${string}-expense_automation_card+${string}` | `${string}-operating_expenses+${string}` | `${string}-operating_expenses_by_classes+${string}` | `${string}-revenue+${string}` | `${string}-revenue_by_classes+${string}` | `${string}-net_burn_or_income+${string}` | `${string}-net_burn_or_income_story_card+${string}` | `${string}-net_burn_or_income_by_classes+${string}` | `${string}-cash_position+${string}` | `${string}-top_expenses+${string}` | `${string}-profit_and_loss+${string}` | `${string}-profit_and_loss_by_classes+${string}` | `${string}-profit_and_loss_by_projects+${string}` | `${string}-balance_sheet+${string}` | `${string}-cash_flow+${string}` | `${string}-dashboard+${string}` | `${string}-finance_statement+${string}` | `${string}-transaction_list_of_account+${string}` | `${string}-transaction_list_missing_receipt+${string}` | `${string}-transaction_list_of_account_by_class+${string}` | `${string}-transaction_detail+${string}` | `${string}-cash_in_cash_out+${string}` | `${string}-insights_dashboard+${string}` | `${string}-company_details+${string}` | `${string}-class_list+${string}` | `${string}-account_list+${string}` | `${string}-account_list_by_type+${string}` | `${string}-vendor+${string}` | `${string}-task_card+${string}` | `${string}-bill_pay+${string}` | `${string}-reimbursement+${string}` | `${string}-bill_pay_card+${string}` | `${string}-reimbursement_card+${string}` | `${string}-bill_pay_promo_card+${string}` | `${string}-zeni_accounts+${string}` | `${string}-zeni_accounts_promo_card+${string}` | `${string}-zeni_treasury+${string}` | `${string}-charge_cards+${string}` | `${string}-other_connection+${string}` | `${string}-reimbursement_promo_card+${string}` | `${string}-onboarding+${string}` | `${string}-operating_expenses_by_vendor+${string}` | `${string}-operating_expenses_by_vendor_summary+${string}` | `${string}-vendors_tab+${string}` | `${string}-accounts_payable_aging+${string}` | `${string}-accounts_receivable_aging+${string}` | `${string}-vendor_global_review+${string}` | `${string}-prepaid_expenses+${string}` | `${string}-fixed_assets+${string}` | `${string}-notification+${string}` | `${string}-rewards_card+${string}` | `${string}-billing+${string}` | `${string}-flux_analysis_operating_expense+${string}` | `${string}-account_reconciliation+${string}` | `${string}-zeni_credit_promo_card+${string}` | `${string}-treasury_promo_card+${string}` | `${string}-excluded_account_reconciliation+${string}`;
18
19
  export type AccountKey = ReturnType<typeof getAccountKey>;
19
20
  export declare const toReconciliationAccountSource: (v: string) => "plaid" | "bank_statement";
20
21
  export type ReconciliationAccountSourceType = ReturnType<typeof toReconciliationAccountSource>;
@@ -76,6 +77,7 @@ export interface Account extends AccountBase {
76
77
  operatingActivities?: COABalanceGrouped;
77
78
  otherExpenses?: COABalanceGrouped;
78
79
  otherIncome?: COABalanceGrouped;
80
+ projectsViewParentId?: ProjectsViewParentID;
79
81
  statementCloseDay?: StatementCloseDay;
80
82
  status?: Status;
81
83
  }
@@ -44,7 +44,10 @@ const ALL_ACCOUNT_LABELS = [
44
44
  const toAccountLabel = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_ACCOUNT_LABELS);
45
45
  const toAccountLabelStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v ?? '', ALL_ACCOUNT_LABELS);
46
46
  exports.toAccountLabelStrict = toAccountLabelStrict;
47
- function getAccountKey(reportIdUniqueKey, accountId, classesViewParentId, accountsViewParentId) {
47
+ function getAccountKey(reportIdUniqueKey, accountId, classesViewParentId, accountsViewParentId, projectsViewParentId) {
48
+ if (projectsViewParentId != null) {
49
+ return `${projectsViewParentId.sectionId}-${projectsViewParentId.projectId}-${accountId}-${reportIdUniqueKey}`;
50
+ }
48
51
  if (classesViewParentId != null && accountsViewParentId == null) {
49
52
  return `${classesViewParentId.sectionId}-${classesViewParentId.parentClassId != null
50
53
  ? (0, nestedClassID_1.getNestedClassIDStr)(classesViewParentId.parentClassId)
@@ -34,6 +34,7 @@ export declare const cloneAccountsWithZeroBalance: (accounts: AccountReport[]) =
34
34
  qboId: string | undefined;
35
35
  coaId: string | undefined;
36
36
  classesViewParentId: import("../../commonStateTypes/classesView/nestedClassID").ClassesViewParentID | undefined;
37
+ projectsViewParentId: import("../../commonStateTypes/projectView/projectViewParentID").ProjectsViewParentID | undefined;
37
38
  accountsViewParentId: import("../../commonStateTypes/accountView/nestedAccountID").AccountsViewParentID | undefined;
38
39
  labels: ("prepaid_expenses" | "fixed_assets" | "uncategorized_income" | "uncategorized_expense" | "bank_charges_and_fees" | "travel_transportation" | "accrued_expenses")[];
39
40
  isBillEditableCoaAccountType: boolean;
@@ -1,5 +1,6 @@
1
1
  import { AccountsViewParentID, NestedAccountID, NestedAccountIDHierarchy } from '../../commonStateTypes/accountView/nestedAccountID';
2
2
  import { ClassesViewParentID } from '../../commonStateTypes/classesView/nestedClassID';
3
+ import { ProjectsViewParentID } from '../../commonStateTypes/projectView/projectViewParentID';
3
4
  import { AdditionalBalancesOptions } from '../../commonStateTypes/coaBalance/additionalBalances/getAdditionalBalances';
4
5
  import { COABalancesFilter } from '../../commonStateTypes/coaBalance/coaBalancesFilter';
5
6
  import { EntityOrder } from '../../commonStateTypes/selectorTypes/selectorTypes';
@@ -22,5 +23,6 @@ export declare const getNestedAccountReportForAccount: (accountState: AccountSta
22
23
  reportId: ReportIDPlusForecastID;
23
24
  accountsViewParentId?: AccountsViewParentID;
24
25
  classesViewParentId?: ClassesViewParentID;
26
+ projectsViewParentId?: ProjectsViewParentID;
25
27
  }, filter: COABalancesFilter, accountHasSiblings: boolean, additionalBalancesOptions?: AdditionalBalancesOptions) => NestedAccountReport | undefined;
26
28
  export declare const sortNestedAccounts: (accounts: NestedAccountReport[], filter: COABalancesFilter, order?: EntityOrder) => NestedAccountReport[];
@@ -19,6 +19,7 @@ const getNestedAccountReportForAccount = (accountState, id, filter, accountHasSi
19
19
  reportId: id.reportId,
20
20
  classesViewParentId: id.classesViewParentId,
21
21
  accountsViewParentId: id.accountsViewParentId,
22
+ projectsViewParentId: id.projectsViewParentId,
22
23
  }, newFilter, additionalBalancesOptions);
23
24
  if (accountReport == null) {
24
25
  return undefined;
@@ -29,6 +30,7 @@ const getNestedAccountReportForAccount = (accountState, id, filter, accountHasSi
29
30
  reportId: id.reportId,
30
31
  accountIdHierarchy: childAccount,
31
32
  classesViewParentId: id.classesViewParentId,
33
+ projectsViewParentId: id.projectsViewParentId,
32
34
  accountsViewParentId: id.accountsViewParentId != null
33
35
  ? {
34
36
  parentAccountId: id.accountIdHierarchy.id,