@zeniai/client-epic-state 5.1.79 → 5.1.81

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 (116) hide show
  1. package/lib/commonStateTypes/viewAndReport/reportIDHelper.d.ts +1 -0
  2. package/lib/commonStateTypes/viewAndReport/reportIDHelper.js +13 -1
  3. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
  4. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +3 -0
  5. package/lib/entity/account/accountState.d.ts +1 -1
  6. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  7. package/lib/entity/class/classReducer.d.ts +4 -4
  8. package/lib/entity/class/classState.d.ts +1 -1
  9. package/lib/entity/forecast/forecastState.d.ts +1 -1
  10. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  11. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  12. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  13. package/lib/entity/sectionProjectView/sectionProjectView.d.ts +1 -1
  14. package/lib/entity/sectionProjectView/sectionProjectViewReducer.d.ts +2 -2
  15. package/lib/entity/tenant/clearAllEpic.d.ts +4 -1
  16. package/lib/entity/tenant/clearAllEpic.js +6 -0
  17. package/lib/epic.d.ts +8 -1
  18. package/lib/epic.js +8 -1
  19. package/lib/esm/commonStateTypes/viewAndReport/reportIDHelper.js +11 -0
  20. package/lib/esm/commonStateTypes/viewAndReport/viewAndReport.js +3 -0
  21. package/lib/esm/entity/tenant/clearAllEpic.js +6 -0
  22. package/lib/esm/epic.js +8 -1
  23. package/lib/esm/index.js +13 -2
  24. package/lib/esm/reducer.js +9 -0
  25. package/lib/esm/view/netBurnOrIncomeProjectView/netBurnOrIncomeForTimeframeProjectViewEpic.js +45 -0
  26. package/lib/esm/view/netBurnOrIncomeProjectView/netBurnOrIncomeProjectViewEpic.js +30 -0
  27. package/lib/esm/view/netBurnOrIncomeProjectView/netBurnOrIncomeProjectViewPayload.js +1 -0
  28. package/lib/esm/view/netBurnOrIncomeProjectView/netBurnOrIncomeProjectViewReducer.js +111 -0
  29. package/lib/esm/view/netBurnOrIncomeProjectView/netBurnOrIncomeProjectViewSelector.js +65 -0
  30. package/lib/esm/view/netBurnOrIncomeProjectView/netBurnOrIncomeProjectViewSelectorTypes.js +1 -0
  31. package/lib/esm/view/netBurnOrIncomeProjectView/netBurnOrIncomeProjectViewState.js +1 -0
  32. package/lib/esm/view/opExProjectView/opExForTimeframeProjectViewEpic.js +43 -0
  33. package/lib/esm/view/opExProjectView/opExProjectViewEpic.js +30 -0
  34. package/lib/esm/view/opExProjectView/opExProjectViewPayload.js +1 -0
  35. package/lib/esm/view/opExProjectView/opExProjectViewReducer.js +111 -0
  36. package/lib/esm/view/opExProjectView/opExProjectViewSelector.js +52 -0
  37. package/lib/esm/view/opExProjectView/opExProjectViewSelectorTypes.js +1 -0
  38. package/lib/esm/view/opExProjectView/opExProjectViewState.js +1 -0
  39. package/lib/esm/view/reportsResync/reportsClassViewRefetchingEpic.js +0 -4
  40. package/lib/esm/view/reportsResync/reportsProjectViewRefetchingEpic.js +30 -0
  41. package/lib/esm/view/reportsResync/reportsResyncEpic.js +11 -3
  42. package/lib/esm/view/reportsResync/reportsResyncReducer.js +9 -1
  43. package/lib/esm/view/revenueProjectView/revenueForTimeframeProjectViewEpic.js +35 -0
  44. package/lib/esm/view/revenueProjectView/revenueProjectViewEpic.js +30 -0
  45. package/lib/esm/view/revenueProjectView/revenueProjectViewPayload.js +1 -0
  46. package/lib/esm/view/revenueProjectView/revenueProjectViewReducer.js +111 -0
  47. package/lib/esm/view/revenueProjectView/revenueProjectViewSelector.js +58 -0
  48. package/lib/esm/view/revenueProjectView/revenueProjectViewSelectorTypes.js +1 -0
  49. package/lib/esm/view/revenueProjectView/revenueProjectViewState.js +1 -0
  50. package/lib/index.d.ts +19 -2
  51. package/lib/index.js +87 -47
  52. package/lib/reducer.d.ts +9 -0
  53. package/lib/reducer.js +9 -0
  54. package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
  55. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  56. package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
  57. package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
  58. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  59. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  60. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  61. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  62. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  63. package/lib/view/netBurnOrIncomeProjectView/netBurnOrIncomeForTimeframeProjectViewEpic.d.ts +9 -0
  64. package/lib/view/netBurnOrIncomeProjectView/netBurnOrIncomeForTimeframeProjectViewEpic.js +49 -0
  65. package/lib/view/netBurnOrIncomeProjectView/netBurnOrIncomeProjectViewEpic.d.ts +6 -0
  66. package/lib/view/netBurnOrIncomeProjectView/netBurnOrIncomeProjectViewEpic.js +34 -0
  67. package/lib/view/netBurnOrIncomeProjectView/netBurnOrIncomeProjectViewPayload.d.ts +11 -0
  68. package/lib/view/netBurnOrIncomeProjectView/netBurnOrIncomeProjectViewPayload.js +2 -0
  69. package/lib/view/netBurnOrIncomeProjectView/netBurnOrIncomeProjectViewReducer.d.ts +33 -0
  70. package/lib/view/netBurnOrIncomeProjectView/netBurnOrIncomeProjectViewReducer.js +115 -0
  71. package/lib/view/netBurnOrIncomeProjectView/netBurnOrIncomeProjectViewSelector.d.ts +13 -0
  72. package/lib/view/netBurnOrIncomeProjectView/netBurnOrIncomeProjectViewSelector.js +69 -0
  73. package/lib/view/netBurnOrIncomeProjectView/netBurnOrIncomeProjectViewSelectorTypes.d.ts +21 -0
  74. package/lib/view/netBurnOrIncomeProjectView/netBurnOrIncomeProjectViewSelectorTypes.js +2 -0
  75. package/lib/view/netBurnOrIncomeProjectView/netBurnOrIncomeProjectViewState.d.ts +20 -0
  76. package/lib/view/netBurnOrIncomeProjectView/netBurnOrIncomeProjectViewState.js +2 -0
  77. package/lib/view/opExProjectView/opExForTimeframeProjectViewEpic.d.ts +9 -0
  78. package/lib/view/opExProjectView/opExForTimeframeProjectViewEpic.js +47 -0
  79. package/lib/view/opExProjectView/opExProjectViewEpic.d.ts +6 -0
  80. package/lib/view/opExProjectView/opExProjectViewEpic.js +34 -0
  81. package/lib/view/opExProjectView/opExProjectViewPayload.d.ts +6 -0
  82. package/lib/view/opExProjectView/opExProjectViewPayload.js +2 -0
  83. package/lib/view/opExProjectView/opExProjectViewReducer.d.ts +33 -0
  84. package/lib/view/opExProjectView/opExProjectViewReducer.js +115 -0
  85. package/lib/view/opExProjectView/opExProjectViewSelector.d.ts +12 -0
  86. package/lib/view/opExProjectView/opExProjectViewSelector.js +56 -0
  87. package/lib/view/opExProjectView/opExProjectViewSelectorTypes.d.ts +19 -0
  88. package/lib/view/opExProjectView/opExProjectViewSelectorTypes.js +2 -0
  89. package/lib/view/opExProjectView/opExProjectViewState.d.ts +20 -0
  90. package/lib/view/opExProjectView/opExProjectViewState.js +2 -0
  91. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  92. package/lib/view/reportsResync/reportsClassViewRefetchingEpic.d.ts +1 -2
  93. package/lib/view/reportsResync/reportsClassViewRefetchingEpic.js +0 -4
  94. package/lib/view/reportsResync/reportsProjectViewRefetchingEpic.d.ts +10 -0
  95. package/lib/view/reportsResync/reportsProjectViewRefetchingEpic.js +34 -0
  96. package/lib/view/reportsResync/reportsResyncEpic.d.ts +2 -2
  97. package/lib/view/reportsResync/reportsResyncEpic.js +10 -2
  98. package/lib/view/reportsResync/reportsResyncReducer.d.ts +5 -3
  99. package/lib/view/reportsResync/reportsResyncReducer.js +10 -2
  100. package/lib/view/revenueProjectView/revenueForTimeframeProjectViewEpic.d.ts +9 -0
  101. package/lib/view/revenueProjectView/revenueForTimeframeProjectViewEpic.js +39 -0
  102. package/lib/view/revenueProjectView/revenueProjectViewEpic.d.ts +6 -0
  103. package/lib/view/revenueProjectView/revenueProjectViewEpic.js +34 -0
  104. package/lib/view/revenueProjectView/revenueProjectViewPayload.d.ts +9 -0
  105. package/lib/view/revenueProjectView/revenueProjectViewPayload.js +2 -0
  106. package/lib/view/revenueProjectView/revenueProjectViewReducer.d.ts +33 -0
  107. package/lib/view/revenueProjectView/revenueProjectViewReducer.js +115 -0
  108. package/lib/view/revenueProjectView/revenueProjectViewSelector.d.ts +12 -0
  109. package/lib/view/revenueProjectView/revenueProjectViewSelector.js +62 -0
  110. package/lib/view/revenueProjectView/revenueProjectViewSelectorTypes.d.ts +19 -0
  111. package/lib/view/revenueProjectView/revenueProjectViewSelectorTypes.js +2 -0
  112. package/lib/view/revenueProjectView/revenueProjectViewState.d.ts +20 -0
  113. package/lib/view/revenueProjectView/revenueProjectViewState.js +2 -0
  114. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  115. package/lib/view/topEx/topExSelector.d.ts +1 -1
  116. package/package.json +1 -1
package/lib/reducer.d.ts CHANGED
@@ -167,6 +167,7 @@ import { InvoicingSubscriptionActionState } from './view/invoicing/subscriptionA
167
167
  import { MonthEndCloseChecksViewState } from './view/monthEndCloseChecksView/monthEndCloseChecksViewState';
168
168
  import { NetBurnOrIncomeWithForecastState } from './view/netBurnOrIncome/netBurnOrIncomeState';
169
169
  import { NetBurnOrIncomeClassesViewState } from './view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewState';
170
+ import { NetBurnOrIncomeProjectViewState } from './view/netBurnOrIncomeProjectView/netBurnOrIncomeProjectViewState';
170
171
  import { NetBurnOrIncomeStoryCardState } from './view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardState';
171
172
  import { NotificationPreferencesViewState } from './view/notificationPreferencesView/notificationPreferencesViewState';
172
173
  import { NotificationViewState } from './view/notificationView/notificationViewState';
@@ -175,6 +176,7 @@ import { OnboardingCustomerViewState } from './view/onboardingView/customerView/
175
176
  import { OpExWithForecastState } from './view/opEx/opExState';
176
177
  import { OpExByVendorState } from './view/opExByVendor/opExByVendorState';
177
178
  import { OpExClassesViewState } from './view/opExClassesView/opExClassesViewState';
179
+ import { OpExProjectViewState } from './view/opExProjectView/opExProjectViewState';
178
180
  import { OwnerListState } from './view/ownerList/ownerListState';
179
181
  import { PeopleState } from './view/people/peopleState';
180
182
  import { ProfitAndLossWithForecastState } from './view/profitAndLoss/profitAndLossState';
@@ -188,6 +190,7 @@ import { ReportUIOptionsState } from './view/reportUIOptions/reportUIOptionsStat
188
190
  import { ReportsResyncState } from './view/reportsResync/reportsResyncState';
189
191
  import { RevenueWithForecastState } from './view/revenue/revenueState';
190
192
  import { RevenueClassesViewState } from './view/revenueClassesView/revenueClassesViewState';
193
+ import { RevenueProjectViewState } from './view/revenueProjectView/revenueProjectViewState';
191
194
  import { ReviewCompanyViewState } from './view/reviewCompanyView/reviewCompanyViewState';
192
195
  import { ScheduleAccruedDetailViewState } from './view/scheduleView/scheduleAccruedDetailView/scheduleAccruedDetailState';
193
196
  import { ScheduleDetailViewState } from './view/scheduleView/scheduleDetailView/scheduleDetailState';
@@ -480,6 +483,7 @@ type ViewsState = {
480
483
  merchantListState: MerchantListState;
481
484
  monthEndCloseChecksViewState: MonthEndCloseChecksViewState;
482
485
  netBurnOrIncomeClassesViewState: NetBurnOrIncomeClassesViewState;
486
+ netBurnOrIncomeProjectViewState: NetBurnOrIncomeProjectViewState;
483
487
  netBurnOrIncomeState: NetBurnOrIncomeWithForecastState;
484
488
  netBurnOrIncomeStoryCardState: NetBurnOrIncomeStoryCardState;
485
489
  notificationPreferencesViewState: NotificationPreferencesViewState;
@@ -489,6 +493,7 @@ type ViewsState = {
489
493
  onboardingCustomerViewState: OnboardingCustomerViewState;
490
494
  opExByVendorState: OpExByVendorState;
491
495
  opExClassesViewState: OpExClassesViewState;
496
+ opExProjectViewState: OpExProjectViewState;
492
497
  opExState: OpExWithForecastState;
493
498
  ownerListState: OwnerListState;
494
499
  paymentAccountListState: PaymentAccountListState;
@@ -511,6 +516,7 @@ type ViewsState = {
511
516
  reportsResyncState: ReportsResyncState;
512
517
  reportUIOptionsState: ReportUIOptionsState;
513
518
  revenueClassesViewState: RevenueClassesViewState;
519
+ revenueProjectViewState: RevenueProjectViewState;
514
520
  revenueState: RevenueWithForecastState;
515
521
  reviewCompanyViewState: ReviewCompanyViewState;
516
522
  scheduleAccruedDetailState: ScheduleAccruedDetailViewState;
@@ -685,6 +691,7 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
685
691
  merchantListState: MerchantListState;
686
692
  monthEndCloseChecksViewState: MonthEndCloseChecksViewState;
687
693
  netBurnOrIncomeClassesViewState: NetBurnOrIncomeClassesViewState;
694
+ netBurnOrIncomeProjectViewState: NetBurnOrIncomeProjectViewState;
688
695
  netBurnOrIncomeState: NetBurnOrIncomeWithForecastState;
689
696
  netBurnOrIncomeStoryCardState: NetBurnOrIncomeStoryCardState;
690
697
  notificationPreferencesViewState: NotificationPreferencesViewState;
@@ -694,6 +701,7 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
694
701
  onboardingCustomerViewState: OnboardingCustomerViewState;
695
702
  opExByVendorState: OpExByVendorState;
696
703
  opExClassesViewState: OpExClassesViewState;
704
+ opExProjectViewState: OpExProjectViewState;
697
705
  opExState: OpExWithForecastState;
698
706
  ownerListState: OwnerListState;
699
707
  paymentAccountListState: PaymentAccountListState;
@@ -717,6 +725,7 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
717
725
  reportsResyncState: ReportsResyncState;
718
726
  reportUIOptionsState: ReportUIOptionsState;
719
727
  revenueClassesViewState: RevenueClassesViewState;
728
+ revenueProjectViewState: RevenueProjectViewState;
720
729
  revenueState: RevenueWithForecastState;
721
730
  reviewCompanyViewState: ReviewCompanyViewState;
722
731
  scheduleAccruedDetailState: ScheduleAccruedDetailViewState;
package/lib/reducer.js CHANGED
@@ -208,6 +208,7 @@ const subscriptionActionReducer_1 = __importStar(require("./view/invoicing/subsc
208
208
  const monthEndCloseChecksViewReducer_1 = __importStar(require("./view/monthEndCloseChecksView/monthEndCloseChecksViewReducer"));
209
209
  const netBurnOrIncomeReducer_1 = __importStar(require("./view/netBurnOrIncome/netBurnOrIncomeReducer"));
210
210
  const netBurnOrIncomeClassesViewReducer_1 = __importStar(require("./view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewReducer"));
211
+ const netBurnOrIncomeProjectViewReducer_1 = __importStar(require("./view/netBurnOrIncomeProjectView/netBurnOrIncomeProjectViewReducer"));
211
212
  const netBurnOrIncomeStoryCardReducer_1 = __importStar(require("./view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardReducer"));
212
213
  const notificationPreferencesViewReducer_1 = __importStar(require("./view/notificationPreferencesView/notificationPreferencesViewReducer"));
213
214
  const notificationViewReducer_1 = __importStar(require("./view/notificationView/notificationViewReducer"));
@@ -216,6 +217,7 @@ const onboardingCustomerViewReducer_1 = __importStar(require("./view/onboardingV
216
217
  const opExReducer_1 = __importStar(require("./view/opEx/opExReducer"));
217
218
  const opExByVendorReducer_1 = __importStar(require("./view/opExByVendor/opExByVendorReducer"));
218
219
  const opExClassesViewReducer_1 = __importStar(require("./view/opExClassesView/opExClassesViewReducer"));
220
+ const opExProjectViewReducer_1 = __importStar(require("./view/opExProjectView/opExProjectViewReducer"));
219
221
  const ownerListReducer_1 = __importStar(require("./view/ownerList/ownerListReducer"));
220
222
  const peopleReducer_1 = __importStar(require("./view/people/peopleReducer"));
221
223
  const profitAndLossReducer_1 = __importStar(require("./view/profitAndLoss/profitAndLossReducer"));
@@ -229,6 +231,7 @@ const reportUIOptionsReducer_1 = __importStar(require("./view/reportUIOptions/re
229
231
  const reportsResyncReducer_1 = __importStar(require("./view/reportsResync/reportsResyncReducer"));
230
232
  const revenueReducer_1 = __importStar(require("./view/revenue/revenueReducer"));
231
233
  const revenueClassesViewReducer_1 = __importStar(require("./view/revenueClassesView/revenueClassesViewReducer"));
234
+ const revenueProjectViewReducer_1 = __importStar(require("./view/revenueProjectView/revenueProjectViewReducer"));
232
235
  const reviewCompanyViewReducer_1 = __importStar(require("./view/reviewCompanyView/reviewCompanyViewReducer"));
233
236
  const scheduleAccruedDetailReducer_1 = __importStar(require("./view/scheduleView/scheduleAccruedDetailView/scheduleAccruedDetailReducer"));
234
237
  const scheduleDetailReducer_1 = __importStar(require("./view/scheduleView/scheduleDetailView/scheduleDetailReducer"));
@@ -522,6 +525,7 @@ const initialViewsState = {
522
525
  merchantListState: merchantListReducer_1.initialState,
523
526
  monthEndCloseChecksViewState: monthEndCloseChecksViewReducer_1.initialState,
524
527
  netBurnOrIncomeClassesViewState: netBurnOrIncomeClassesViewReducer_1.initialState,
528
+ netBurnOrIncomeProjectViewState: netBurnOrIncomeProjectViewReducer_1.initialState,
525
529
  netBurnOrIncomeState: netBurnOrIncomeReducer_1.initialState,
526
530
  netBurnOrIncomeStoryCardState: netBurnOrIncomeStoryCardReducer_1.initialState,
527
531
  notificationPreferencesViewState: notificationPreferencesViewReducer_1.initialState,
@@ -531,6 +535,7 @@ const initialViewsState = {
531
535
  onboardingCustomerViewState: onboardingCustomerViewReducer_1.initialState,
532
536
  opExByVendorState: opExByVendorReducer_1.initialState,
533
537
  opExClassesViewState: opExClassesViewReducer_1.initialState,
538
+ opExProjectViewState: opExProjectViewReducer_1.initialState,
534
539
  opExState: opExReducer_1.initialState,
535
540
  ownerListState: ownerListReducer_1.initialState,
536
541
  paymentAccountListState: paymentAccountListReducer_1.initialState,
@@ -553,6 +558,7 @@ const initialViewsState = {
553
558
  reportsResyncState: reportsResyncReducer_1.initialReportsResyncState,
554
559
  reportUIOptionsState: reportUIOptionsReducer_1.initialState,
555
560
  revenueClassesViewState: revenueClassesViewReducer_1.initialState,
561
+ revenueProjectViewState: revenueProjectViewReducer_1.initialState,
556
562
  revenueState: revenueReducer_1.initialState,
557
563
  reviewCompanyViewState: reviewCompanyViewReducer_1.initialState,
558
564
  scheduleAccruedDetailState: scheduleAccruedDetailReducer_1.initialState,
@@ -812,6 +818,7 @@ const viewReducers = {
812
818
  merchantListState: merchantListReducer_1.default,
813
819
  monthEndCloseChecksViewState: monthEndCloseChecksViewReducer_1.default,
814
820
  netBurnOrIncomeClassesViewState: netBurnOrIncomeClassesViewReducer_1.default,
821
+ netBurnOrIncomeProjectViewState: netBurnOrIncomeProjectViewReducer_1.default,
815
822
  netBurnOrIncomeState: netBurnOrIncomeReducer_1.default,
816
823
  netBurnOrIncomeStoryCardState: netBurnOrIncomeStoryCardReducer_1.default,
817
824
  notificationPreferencesViewState: notificationPreferencesViewReducer_1.default,
@@ -821,6 +828,7 @@ const viewReducers = {
821
828
  onboardingCustomerViewState: onboardingCustomerViewReducer_1.default,
822
829
  opExByVendorState: opExByVendorReducer_1.default,
823
830
  opExClassesViewState: opExClassesViewReducer_1.default,
831
+ opExProjectViewState: opExProjectViewReducer_1.default,
824
832
  opExState: opExReducer_1.default,
825
833
  ownerListState: ownerListReducer_1.default,
826
834
  paymentAccountListState: paymentAccountListReducer_1.default,
@@ -844,6 +852,7 @@ const viewReducers = {
844
852
  reportsResyncState: reportsResyncReducer_1.default,
845
853
  reportUIOptionsState: reportUIOptionsReducer_1.default,
846
854
  revenueClassesViewState: revenueClassesViewReducer_1.default,
855
+ revenueProjectViewState: revenueProjectViewReducer_1.default,
847
856
  revenueState: revenueReducer_1.default,
848
857
  reviewCompanyViewState: reviewCompanyViewReducer_1.default,
849
858
  scheduleAccruedDetailState: scheduleAccruedDetailReducer_1.default,
@@ -5,7 +5,7 @@ import { ZeniDate } from '../../zeniDayJS';
5
5
  import { AuditSummary } from '../reviewCompanyView/reviewCompanyViewState';
6
6
  export declare const toAuditRuleEntityType: (v: string) => "dashboard" | "transactions" | "reports";
7
7
  export type AuditRuleEntityType = ReturnType<typeof toAuditRuleEntityType>;
8
- declare const toAuditRuleEntityIdType: (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_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" | "uncategorized-expense" | "uncategorized-income";
8
+ declare const toAuditRuleEntityIdType: (v: string) => "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" | "uncategorized-expense" | "uncategorized-income";
9
9
  export type AuditRuleEntityIdType = ReturnType<typeof toAuditRuleEntityIdType>;
10
10
  export declare const toAuditRuleTypeIdType: (v: string) => "accounting" | "business";
11
11
  type AuditRuleTypeIdType = ReturnType<typeof toAuditRuleTypeIdType>;
@@ -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" | "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_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" | "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" | "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_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" | "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" | "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_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" | "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" | "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_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" | "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" | "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_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" | "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;
@@ -1,12 +1,12 @@
1
1
  import { DashboardState } from './dashboardState';
2
2
  export declare const initialState: DashboardState;
3
- export declare const fetchDashboard: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userId: string, companyId: string, tenantId: string, fetchFullReport?: any, cacheOverride?: any, excludeResources?: ("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_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")[] | undefined], {
3
+ export declare const fetchDashboard: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userId: string, companyId: string, tenantId: string, fetchFullReport?: any, cacheOverride?: any, excludeResources?: ("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")[] | undefined], {
4
4
  userId: string;
5
5
  companyId: string;
6
6
  tenantId: string;
7
7
  fetchFullReport: any;
8
8
  cacheOverride: any;
9
- excludeResources: ("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_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")[];
9
+ excludeResources: ("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")[];
10
10
  }, "dashboard/fetchDashboard", never, never>, updateTreasuryVideoClosed: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"dashboard/updateTreasuryVideoClosed">, clearDashboard: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"dashboard/clearDashboard">;
11
11
  declare const _default: import("redux").Reducer<DashboardState>;
12
12
  export default _default;
@@ -17,7 +17,7 @@ export declare const fetchFinanceStatement: import("@reduxjs/toolkit").ActionCre
17
17
  firstMonthOfFY: Month;
18
18
  maxNumOfPeriodsToHighlight: number;
19
19
  thisPeriod: TimeframeTick;
20
- }, "financeStatement/updateFinanceStatementThisPeriod">, updateCOABalancesRange: import("@reduxjs/toolkit").ActionCreatorWithPayload<COABalancesRange, "financeStatement/updateCOABalancesRange">, updateSelectedReportId: import("@reduxjs/toolkit").ActionCreatorWithPayload<"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_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", "financeStatement/updateSelectedReportId">, updateFinanceStatementAdditionalBalancesSelection: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
20
+ }, "financeStatement/updateFinanceStatementThisPeriod">, updateCOABalancesRange: import("@reduxjs/toolkit").ActionCreatorWithPayload<COABalancesRange, "financeStatement/updateCOABalancesRange">, updateSelectedReportId: import("@reduxjs/toolkit").ActionCreatorWithPayload<"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", "financeStatement/updateSelectedReportId">, updateFinanceStatementAdditionalBalancesSelection: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
21
21
  additionalBalances: COABalanceType[];
22
22
  coaBalances: COABalance[];
23
23
  firstMonthOfFY: Month;
@@ -3,9 +3,9 @@ import { ZeniAPIStatus } from '../../responsePayload';
3
3
  import { VendorReviewViewAllRecommendationsPayload } from '../vendorReviewView/common/payload/commonTypes';
4
4
  import { GlobalMerchantViewState, GlobalRecommendationFetchSource, NewGlobalMerchantCurrentSelection } from './globalMerchantViewState';
5
5
  export declare const initialState: GlobalMerchantViewState;
6
- export declare const createGlobalMerchant: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[merchantId?: string | undefined, context?: "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_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" | undefined], {
6
+ export declare const createGlobalMerchant: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[merchantId?: string | undefined, context?: "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" | undefined], {
7
7
  merchantId: string | undefined;
8
- context: "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_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" | undefined;
8
+ context: "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" | undefined;
9
9
  }, "globalMerchantView/createGlobalMerchant", never, never>, createGlobalMerchantSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
10
10
  merchantId: ID;
11
11
  }, "globalMerchantView/createGlobalMerchantSuccess">, createGlobalMerchantFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
@@ -0,0 +1,9 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { Observable } from 'rxjs';
3
+ import { updateProjects } from '../../entity/project/projectReducer';
4
+ import { updateSectionProjectView } from '../../entity/sectionProjectView/sectionProjectViewReducer';
5
+ import { RootState } from '../../reducer';
6
+ import { ZeniAPI } from '../../zeniAPI';
7
+ import { fetchNetBurnOrIncomeForTimeframeProjectView, updateNetBurnOrIncomeForTimeframeProjectView, updateNetBurnOrIncomeForTimeframeProjectViewFailure } from './netBurnOrIncomeProjectViewReducer';
8
+ export type ActionType = ReturnType<typeof fetchNetBurnOrIncomeForTimeframeProjectView> | ReturnType<typeof updateNetBurnOrIncomeForTimeframeProjectView> | ReturnType<typeof updateNetBurnOrIncomeForTimeframeProjectViewFailure> | ReturnType<typeof updateProjects> | ReturnType<typeof updateSectionProjectView>;
9
+ export declare const fetchNetBurnOrIncomeForTimeframeProjectViewEpic: (actions$: ActionsObservable<ActionType>, _: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fetchNetBurnOrIncomeForTimeframeProjectViewEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const projectReducer_1 = require("../../entity/project/projectReducer");
7
+ const sectionProjectViewReducer_1 = require("../../entity/sectionProjectView/sectionProjectViewReducer");
8
+ const responsePayload_1 = require("../../responsePayload");
9
+ const netBurnOrIncomeProjectViewReducer_1 = require("./netBurnOrIncomeProjectViewReducer");
10
+ const fetchNetBurnOrIncomeForTimeframeProjectViewEpic = (actions$, _, zeniAPI) => actions$.pipe((0, operators_1.filter)(netBurnOrIncomeProjectViewReducer_1.fetchNetBurnOrIncomeForTimeframeProjectView.match), (0, operators_1.mergeMap)((action) => {
11
+ const getTimeSeriesGroup = (timeframe) => {
12
+ switch (timeframe) {
13
+ case 'month':
14
+ return 'months';
15
+ case 'quarter':
16
+ return 'quarters';
17
+ case 'year':
18
+ return 'years';
19
+ }
20
+ };
21
+ const queryValue = {
22
+ is_full_response: action.payload.fetchFullReport,
23
+ time_series_groups: [getTimeSeriesGroup(action.payload.timeframe)],
24
+ is_group_by_project: true,
25
+ };
26
+ return zeniAPI
27
+ .getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/2.0/reports/net_burn_or_income?query=${encodeURIComponent(JSON.stringify(queryValue))}`)
28
+ .pipe((0, operators_1.mergeMap)((response) => {
29
+ if (response.data != null && (0, responsePayload_1.isSuccessResponse)(response)) {
30
+ const actions = [];
31
+ const report = response.data.report;
32
+ const currency = report.currency;
33
+ actions.push((0, projectReducer_1.updateProjects)(report.projects));
34
+ actions.push((0, sectionProjectViewReducer_1.updateSectionProjectView)(action.payload.timeframe, 'cogs', 'net_burn_or_income_by_projects', report.cogs, report.accounts, currency));
35
+ actions.push((0, sectionProjectViewReducer_1.updateSectionProjectView)(action.payload.timeframe, 'expenses', 'net_burn_or_income_by_projects', report.expenses, report.accounts, currency));
36
+ actions.push((0, sectionProjectViewReducer_1.updateSectionProjectView)(action.payload.timeframe, 'income', 'net_burn_or_income_by_projects', report.income, report.accounts, currency));
37
+ actions.push((0, netBurnOrIncomeProjectViewReducer_1.updateNetBurnOrIncomeForTimeframeProjectView)({
38
+ timeframe: action.payload.timeframe,
39
+ report: response.data,
40
+ }));
41
+ return (0, rxjs_1.from)(actions);
42
+ }
43
+ else {
44
+ return (0, rxjs_1.of)((0, netBurnOrIncomeProjectViewReducer_1.updateNetBurnOrIncomeForTimeframeProjectViewFailure)(response.status, action.payload.timeframe));
45
+ }
46
+ }), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, netBurnOrIncomeProjectViewReducer_1.updateNetBurnOrIncomeForTimeframeProjectViewFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Net Burn by Projects REST API call errored out' +
47
+ (error instanceof Error ? error.message : String(error))), action.payload.timeframe))));
48
+ }));
49
+ exports.fetchNetBurnOrIncomeForTimeframeProjectViewEpic = fetchNetBurnOrIncomeForTimeframeProjectViewEpic;
@@ -0,0 +1,6 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { Observable } from 'rxjs';
3
+ import { RootState } from '../../reducer';
4
+ import { fetchNetBurnOrIncomeForTimeframeProjectView, fetchNetBurnOrIncomeProjectView } from './netBurnOrIncomeProjectViewReducer';
5
+ export type ActionType = ReturnType<typeof fetchNetBurnOrIncomeProjectView> | ReturnType<typeof fetchNetBurnOrIncomeForTimeframeProjectView>;
6
+ export declare const fetchNetBurnOrIncomeProjectViewEpic: (actions$: ActionsObservable<ActionType>, state: StateObservable<RootState>) => Observable<ActionType>;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fetchNetBurnOrIncomeProjectViewEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const netBurnOrIncomeProjectViewReducer_1 = require("./netBurnOrIncomeProjectViewReducer");
7
+ const fetchNetBurnOrIncomeProjectViewEpic = (actions$, state) => actions$.pipe((0, operators_1.filter)(netBurnOrIncomeProjectViewReducer_1.fetchNetBurnOrIncomeProjectView.match), (0, operators_1.switchMap)((action) => {
8
+ const { cacheOverride } = action.payload;
9
+ if (cacheOverride === true) {
10
+ return (0, rxjs_1.from)([
11
+ (0, netBurnOrIncomeProjectViewReducer_1.fetchNetBurnOrIncomeForTimeframeProjectView)('month'),
12
+ (0, netBurnOrIncomeProjectViewReducer_1.fetchNetBurnOrIncomeForTimeframeProjectView)('quarter'),
13
+ (0, netBurnOrIncomeProjectViewReducer_1.fetchNetBurnOrIncomeForTimeframeProjectView)('year'),
14
+ ]);
15
+ }
16
+ else {
17
+ const fetchActions = [];
18
+ const projectFetchState = state.value.netBurnOrIncomeProjectViewState.fetchState;
19
+ if (projectFetchState['month'].fetchState !== 'In-Progress' &&
20
+ projectFetchState['month'].fetchState !== 'Completed') {
21
+ fetchActions.push((0, netBurnOrIncomeProjectViewReducer_1.fetchNetBurnOrIncomeForTimeframeProjectView)('month'));
22
+ }
23
+ if (projectFetchState['quarter'].fetchState !== 'In-Progress' &&
24
+ projectFetchState['quarter'].fetchState !== 'Completed') {
25
+ fetchActions.push((0, netBurnOrIncomeProjectViewReducer_1.fetchNetBurnOrIncomeForTimeframeProjectView)('quarter'));
26
+ }
27
+ if (projectFetchState['year'].fetchState !== 'In-Progress' &&
28
+ projectFetchState['year'].fetchState !== 'Completed') {
29
+ fetchActions.push((0, netBurnOrIncomeProjectViewReducer_1.fetchNetBurnOrIncomeForTimeframeProjectView)('year'));
30
+ }
31
+ return (0, rxjs_1.from)(fetchActions);
32
+ }
33
+ }));
34
+ exports.fetchNetBurnOrIncomeProjectViewEpic = fetchNetBurnOrIncomeProjectViewEpic;
@@ -0,0 +1,11 @@
1
+ import { COABalanceGroupedPayloadV2 } from '../../commonPayloadTypes/v2/coaBalancePayload';
2
+ import { ZeniReportResponse } from '../../responsePayload';
3
+ import { ReportByProjectMetadataPayloadV2, SectionByProjectCOABalanceGroupedPayloadV2 } from '../profitAndLossProjectView/profitAndLossProjectViewPayload';
4
+ export interface NetBurnOrIncomeProjectViewPayload extends ReportByProjectMetadataPayloadV2 {
5
+ cogs: SectionByProjectCOABalanceGroupedPayloadV2;
6
+ expenses: SectionByProjectCOABalanceGroupedPayloadV2;
7
+ gross_burn: COABalanceGroupedPayloadV2;
8
+ income: SectionByProjectCOABalanceGroupedPayloadV2;
9
+ net_burn_or_income: COABalanceGroupedPayloadV2;
10
+ }
11
+ export type NetBurnOrIncomeReportProjectViewResponse = ZeniReportResponse<NetBurnOrIncomeProjectViewPayload>;
@@ -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 { NetBurnOrIncomeProjectViewPayload } from './netBurnOrIncomeProjectViewPayload';
4
+ import { NetBurnOrIncomeProjectViewState } from './netBurnOrIncomeProjectViewState';
5
+ export declare const initialState: NetBurnOrIncomeProjectViewState;
6
+ export declare const fetchNetBurnOrIncomeProjectView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride?: boolean | undefined], {
7
+ cacheOverride: boolean;
8
+ }, "netBurnOrIncomeProjectView/fetchNetBurnOrIncomeProjectView", never, never>, fetchNetBurnOrIncomeForTimeframeProjectView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[timeframe: "month" | "year" | "quarter", fetchFullReport?: boolean | undefined, cacheOverride?: boolean | undefined], {
9
+ timeframe: "month" | "year" | "quarter";
10
+ fetchFullReport: boolean;
11
+ cacheOverride: boolean;
12
+ }, "netBurnOrIncomeProjectView/fetchNetBurnOrIncomeForTimeframeProjectView", never, never>, updateNetBurnOrIncomeForTimeframeProjectView: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
13
+ report: ZeniReportData<NetBurnOrIncomeProjectViewPayload>;
14
+ timeframe: "month" | "quarter" | "year";
15
+ }, "netBurnOrIncomeProjectView/updateNetBurnOrIncomeForTimeframeProjectView">, updateNetBurnOrIncomeForTimeframeProjectViewFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>, timeframe: "month" | "year" | "quarter"], {
16
+ error: ZeniAPIStatus<Record<string, unknown>>;
17
+ timeframe: "month" | "year" | "quarter";
18
+ }, "netBurnOrIncomeProjectView/updateNetBurnOrIncomeForTimeframeProjectViewFailure", never, never>, updateProjectsToFilterOut: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
19
+ projectsToFilterOut: ID[];
20
+ }, "netBurnOrIncomeProjectView/updateProjectsToFilterOut">, updateNetBurnOrIncomeProjectViewUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
21
+ nodeCollapseState?: {
22
+ isCollapsed: boolean;
23
+ nodeId: ID;
24
+ };
25
+ scrollPosition?: {
26
+ scrollTop: number;
27
+ scrollLeft?: number;
28
+ };
29
+ }, "netBurnOrIncomeProjectView/updateNetBurnOrIncomeProjectViewUIState">, updateProjectViewAccountViewMode: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
30
+ viewMode: AccountViewMode;
31
+ }, "netBurnOrIncomeProjectView/updateProjectViewAccountViewMode">, resetProjectNodeCollapseState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"netBurnOrIncomeProjectView/resetProjectNodeCollapseState">, clearNetBurnOrIncomeProjectView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"netBurnOrIncomeProjectView/clearNetBurnOrIncomeProjectView">;
32
+ declare const _default: import("redux").Reducer<NetBurnOrIncomeProjectViewState>;
33
+ export default _default;
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.clearNetBurnOrIncomeProjectView = exports.resetProjectNodeCollapseState = exports.updateProjectViewAccountViewMode = exports.updateNetBurnOrIncomeProjectViewUIState = exports.updateProjectsToFilterOut = exports.updateNetBurnOrIncomeForTimeframeProjectViewFailure = exports.updateNetBurnOrIncomeForTimeframeProjectView = exports.fetchNetBurnOrIncomeForTimeframeProjectView = exports.fetchNetBurnOrIncomeProjectView = exports.initialState = void 0;
5
+ const toolkit_1 = require("@reduxjs/toolkit");
6
+ const viewAndReportPayloadv2_1 = require("../../commonPayloadTypes/v2/viewAndReportPayloadv2");
7
+ exports.initialState = {
8
+ fetchState: {
9
+ month: {
10
+ fetchState: 'Not-Started',
11
+ error: undefined,
12
+ },
13
+ quarter: {
14
+ fetchState: 'Not-Started',
15
+ error: undefined,
16
+ },
17
+ year: {
18
+ fetchState: 'Not-Started',
19
+ error: undefined,
20
+ },
21
+ },
22
+ firstMonthOfFY: 1,
23
+ projectIds: [],
24
+ reportId: 'net_burn_or_income_by_projects',
25
+ reportTitle: 'Net Income',
26
+ uiState: {
27
+ accountViewMode: 'account_group',
28
+ nodeCollapseState: {},
29
+ projectsToFilterOut: [],
30
+ scrollPosition: undefined,
31
+ },
32
+ };
33
+ const netBurnOrIncomeProjectView = (0, toolkit_1.createSlice)({
34
+ name: 'netBurnOrIncomeProjectView',
35
+ initialState: exports.initialState,
36
+ reducers: {
37
+ fetchNetBurnOrIncomeProjectView: {
38
+ prepare(cacheOverride = false) {
39
+ return { payload: { cacheOverride } };
40
+ },
41
+ reducer(
42
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
43
+ _draft,
44
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
45
+ _action) {
46
+ // nothing to do here
47
+ },
48
+ },
49
+ fetchNetBurnOrIncomeForTimeframeProjectView: {
50
+ prepare(timeframe, fetchFullReport = true, cacheOverride = false) {
51
+ return { payload: { timeframe, fetchFullReport, cacheOverride } };
52
+ },
53
+ reducer(draft, action) {
54
+ const timeframe = action.payload.timeframe;
55
+ draft.fetchState[timeframe].fetchState = 'In-Progress';
56
+ draft.fetchState[timeframe].error = undefined;
57
+ },
58
+ },
59
+ updateNetBurnOrIncomeForTimeframeProjectView(draft, action) {
60
+ doUpdateNetBurnOrIncomeProjectView(draft, action.payload.timeframe, action.payload.report);
61
+ },
62
+ updateNetBurnOrIncomeForTimeframeProjectViewFailure: {
63
+ prepare(error, timeframe) {
64
+ return {
65
+ payload: {
66
+ error,
67
+ timeframe,
68
+ },
69
+ };
70
+ },
71
+ reducer(draft, action) {
72
+ draft.fetchState[action.payload.timeframe] = {
73
+ fetchState: 'Error',
74
+ error: action.payload.error,
75
+ };
76
+ },
77
+ },
78
+ updateProjectsToFilterOut(draft, action) {
79
+ draft.uiState.projectsToFilterOut = action.payload.projectsToFilterOut;
80
+ },
81
+ updateNetBurnOrIncomeProjectViewUIState(draft, action) {
82
+ const { nodeCollapseState, scrollPosition } = action.payload;
83
+ if (nodeCollapseState != null) {
84
+ draft.uiState.nodeCollapseState = Object.assign({}, draft.uiState.nodeCollapseState, {
85
+ [nodeCollapseState.nodeId]: nodeCollapseState.isCollapsed,
86
+ });
87
+ }
88
+ if (scrollPosition != null) {
89
+ draft.uiState.scrollPosition = scrollPosition;
90
+ }
91
+ },
92
+ updateProjectViewAccountViewMode(draft, action) {
93
+ draft.uiState.accountViewMode = action.payload.viewMode;
94
+ },
95
+ resetProjectNodeCollapseState(draft) {
96
+ draft.uiState.nodeCollapseState = {};
97
+ },
98
+ clearNetBurnOrIncomeProjectView(draft) {
99
+ Object.assign(draft, exports.initialState);
100
+ },
101
+ },
102
+ });
103
+ _a = netBurnOrIncomeProjectView.actions, exports.fetchNetBurnOrIncomeProjectView = _a.fetchNetBurnOrIncomeProjectView, exports.fetchNetBurnOrIncomeForTimeframeProjectView = _a.fetchNetBurnOrIncomeForTimeframeProjectView, exports.updateNetBurnOrIncomeForTimeframeProjectView = _a.updateNetBurnOrIncomeForTimeframeProjectView, exports.updateNetBurnOrIncomeForTimeframeProjectViewFailure = _a.updateNetBurnOrIncomeForTimeframeProjectViewFailure, exports.updateProjectsToFilterOut = _a.updateProjectsToFilterOut, exports.updateNetBurnOrIncomeProjectViewUIState = _a.updateNetBurnOrIncomeProjectViewUIState, exports.updateProjectViewAccountViewMode = _a.updateProjectViewAccountViewMode, exports.resetProjectNodeCollapseState = _a.resetProjectNodeCollapseState, exports.clearNetBurnOrIncomeProjectView = _a.clearNetBurnOrIncomeProjectView;
104
+ exports.default = netBurnOrIncomeProjectView.reducer;
105
+ const doUpdateNetBurnOrIncomeProjectView = (draft, timeframe, netBurnReport) => {
106
+ const report = (0, viewAndReportPayloadv2_1.mapReportPayloadV2ToReportV2)(netBurnReport.report);
107
+ draft.dataAvailable = report.dataAvailable;
108
+ draft.firstMonthOfFY = report.firstMonthOfFY;
109
+ draft.bookCloseDate = report.bookCloseDate;
110
+ draft.status = report.status;
111
+ draft.fetchState[timeframe].fetchState = 'Completed';
112
+ if (draft.projectIds.length <= 0) {
113
+ draft.projectIds = netBurnReport.report.projects.map((project) => project.accounting_project_id);
114
+ }
115
+ };