@zeniai/client-epic-state 5.1.94 → 5.1.95

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 (97) hide show
  1. package/lib/commonStateTypes/viewAndReport/reportIDHelper.d.ts +16 -0
  2. package/lib/commonStateTypes/viewAndReport/reportIDHelper.js +22 -1
  3. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
  4. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +2 -0
  5. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  6. package/lib/entity/class/classReducer.d.ts +4 -4
  7. package/lib/entity/class/classSelectorV2.d.ts +2 -1
  8. package/lib/entity/class/classSelectorV2.js +7 -7
  9. package/lib/entity/class/classState.d.ts +1 -1
  10. package/lib/entity/forecast/forecastState.d.ts +1 -1
  11. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  12. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  13. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  14. package/lib/entity/sectionClassesViewV2/sectionClassesViewSelector.d.ts +2 -1
  15. package/lib/entity/sectionClassesViewV2/sectionClassesViewSelector.js +3 -3
  16. package/lib/entity/sectionProjectView/sectionProjectView.d.ts +1 -1
  17. package/lib/entity/sectionProjectView/sectionProjectViewReducer.d.ts +2 -2
  18. package/lib/entity/sectionProjectView/sectionProjectViewSelector.d.ts +2 -1
  19. package/lib/entity/sectionProjectView/sectionProjectViewSelector.js +4 -4
  20. package/lib/epic.d.ts +5 -1
  21. package/lib/epic.js +5 -1
  22. package/lib/esm/commonStateTypes/viewAndReport/reportIDHelper.js +17 -0
  23. package/lib/esm/commonStateTypes/viewAndReport/viewAndReport.js +2 -0
  24. package/lib/esm/entity/class/classSelectorV2.js +7 -7
  25. package/lib/esm/entity/sectionClassesViewV2/sectionClassesViewSelector.js +3 -3
  26. package/lib/esm/entity/sectionProjectView/sectionProjectViewSelector.js +4 -4
  27. package/lib/esm/epic.js +5 -1
  28. package/lib/esm/index.js +8 -2
  29. package/lib/esm/reducer.js +6 -0
  30. package/lib/esm/view/balanceSheetClassesView/balanceSheetClassesViewEpic.js +30 -0
  31. package/lib/esm/view/balanceSheetClassesView/balanceSheetClassesViewPayload.js +1 -0
  32. package/lib/esm/view/balanceSheetClassesView/balanceSheetClassesViewReducer.js +132 -0
  33. package/lib/esm/view/balanceSheetClassesView/balanceSheetClassesViewSelector.js +90 -0
  34. package/lib/esm/view/balanceSheetClassesView/balanceSheetClassesViewSelectorTypes.js +1 -0
  35. package/lib/esm/view/balanceSheetClassesView/balanceSheetClassesViewState.js +1 -0
  36. package/lib/esm/view/balanceSheetClassesView/balanceSheetForTimeframeClassesViewEpic.js +61 -0
  37. package/lib/esm/view/balanceSheetProjectView/balanceSheetForTimeframeProjectViewEpic.js +63 -0
  38. package/lib/esm/view/balanceSheetProjectView/balanceSheetProjectViewEpic.js +30 -0
  39. package/lib/esm/view/balanceSheetProjectView/balanceSheetProjectViewPayload.js +1 -0
  40. package/lib/esm/view/balanceSheetProjectView/balanceSheetProjectViewReducer.js +128 -0
  41. package/lib/esm/view/balanceSheetProjectView/balanceSheetProjectViewSelector.js +90 -0
  42. package/lib/esm/view/balanceSheetProjectView/balanceSheetProjectViewSelectorTypes.js +1 -0
  43. package/lib/esm/view/balanceSheetProjectView/balanceSheetProjectViewState.js +1 -0
  44. package/lib/esm/view/financeStatement/financeStatementSelector.js +21 -1
  45. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewReducer.js +7 -2
  46. package/lib/esm/view/spendManagement/spendManagementFilterHelpers.js +1 -1
  47. package/lib/index.d.ts +12 -2
  48. package/lib/index.js +73 -48
  49. package/lib/reducer.d.ts +6 -0
  50. package/lib/reducer.js +6 -0
  51. package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
  52. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewEpic.d.ts +6 -0
  53. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewEpic.js +34 -0
  54. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewPayload.d.ts +20 -0
  55. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewPayload.js +2 -0
  56. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewReducer.d.ts +34 -0
  57. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewReducer.js +136 -0
  58. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewSelector.d.ts +7 -0
  59. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewSelector.js +94 -0
  60. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewSelectorTypes.d.ts +7 -0
  61. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewSelectorTypes.js +2 -0
  62. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewState.d.ts +23 -0
  63. package/lib/view/balanceSheetClassesView/balanceSheetClassesViewState.js +2 -0
  64. package/lib/view/balanceSheetClassesView/balanceSheetForTimeframeClassesViewEpic.d.ts +9 -0
  65. package/lib/view/balanceSheetClassesView/balanceSheetForTimeframeClassesViewEpic.js +66 -0
  66. package/lib/view/balanceSheetProjectView/balanceSheetForTimeframeProjectViewEpic.d.ts +10 -0
  67. package/lib/view/balanceSheetProjectView/balanceSheetForTimeframeProjectViewEpic.js +68 -0
  68. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewEpic.d.ts +6 -0
  69. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewEpic.js +34 -0
  70. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewPayload.d.ts +20 -0
  71. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewPayload.js +2 -0
  72. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewReducer.d.ts +33 -0
  73. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewReducer.js +132 -0
  74. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewSelector.d.ts +7 -0
  75. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewSelector.js +94 -0
  76. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewSelectorTypes.d.ts +18 -0
  77. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewSelectorTypes.js +2 -0
  78. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewState.d.ts +22 -0
  79. package/lib/view/balanceSheetProjectView/balanceSheetProjectViewState.js +2 -0
  80. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  81. package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
  82. package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
  83. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  84. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  85. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  86. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  87. package/lib/view/financeStatement/financeStatementSelector.d.ts +4 -0
  88. package/lib/view/financeStatement/financeStatementSelector.js +21 -1
  89. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  90. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewReducer.d.ts +1 -0
  91. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewReducer.js +7 -2
  92. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  93. package/lib/view/reportsResync/reportsResyncReducer.d.ts +2 -2
  94. package/lib/view/spendManagement/spendManagementFilterHelpers.js +1 -1
  95. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  96. package/lib/view/topEx/topExSelector.d.ts +1 -1
  97. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { Observable } from 'rxjs';
3
+ import { RootState } from '../../reducer';
4
+ import { fetchBalanceSheetForTimeframeProjectView, fetchBalanceSheetProjectView } from './balanceSheetProjectViewReducer';
5
+ export type ActionType = ReturnType<typeof fetchBalanceSheetProjectView> | ReturnType<typeof fetchBalanceSheetForTimeframeProjectView>;
6
+ export declare const fetchBalanceSheetProjectViewEpic: (actions$: ActionsObservable<ActionType>, state: StateObservable<RootState>) => Observable<ActionType>;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fetchBalanceSheetProjectViewEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const balanceSheetProjectViewReducer_1 = require("./balanceSheetProjectViewReducer");
7
+ const fetchBalanceSheetProjectViewEpic = (actions$, state) => actions$.pipe((0, operators_1.filter)(balanceSheetProjectViewReducer_1.fetchBalanceSheetProjectView.match), (0, operators_1.switchMap)((action) => {
8
+ const { cacheOverride } = action.payload;
9
+ if (cacheOverride === true) {
10
+ return (0, rxjs_1.from)([
11
+ (0, balanceSheetProjectViewReducer_1.fetchBalanceSheetForTimeframeProjectView)('month', true),
12
+ (0, balanceSheetProjectViewReducer_1.fetchBalanceSheetForTimeframeProjectView)('quarter', true),
13
+ (0, balanceSheetProjectViewReducer_1.fetchBalanceSheetForTimeframeProjectView)('year', true),
14
+ ]);
15
+ }
16
+ else {
17
+ const fetchActions = [];
18
+ const projectFetchState = state.value.balanceSheetProjectViewState.fetchState;
19
+ if (projectFetchState['month'].fetchState !== 'In-Progress' &&
20
+ projectFetchState['month'].fetchState !== 'Completed') {
21
+ fetchActions.push((0, balanceSheetProjectViewReducer_1.fetchBalanceSheetForTimeframeProjectView)('month'));
22
+ }
23
+ if (projectFetchState['quarter'].fetchState !== 'In-Progress' &&
24
+ projectFetchState['quarter'].fetchState !== 'Completed') {
25
+ fetchActions.push((0, balanceSheetProjectViewReducer_1.fetchBalanceSheetForTimeframeProjectView)('quarter'));
26
+ }
27
+ if (projectFetchState['year'].fetchState !== 'In-Progress' &&
28
+ projectFetchState['year'].fetchState !== 'Completed') {
29
+ fetchActions.push((0, balanceSheetProjectViewReducer_1.fetchBalanceSheetForTimeframeProjectView)('year'));
30
+ }
31
+ return (0, rxjs_1.from)(fetchActions);
32
+ }
33
+ }));
34
+ exports.fetchBalanceSheetProjectViewEpic = fetchBalanceSheetProjectViewEpic;
@@ -0,0 +1,20 @@
1
+ import { COABalanceGroupedByPeriodPayloadV2 } from '../../commonPayloadTypes/v2/coaBalancePayload';
2
+ import { ZeniReportResponse } from '../../responsePayload';
3
+ import { ReportByProjectMetadataPayloadV2, SectionByProjectCOABalanceGroupedPayloadV2 } from '../profitAndLossProjectView/profitAndLossProjectViewPayload';
4
+ interface AssetSubSectionsProjectView {
5
+ current_assets: Record<'cash_and_equivalents' | 'accounts_receivable' | 'other_current_assets', SectionByProjectCOABalanceGroupedPayloadV2> & COABalanceGroupedByPeriodPayloadV2;
6
+ fixed_assets: SectionByProjectCOABalanceGroupedPayloadV2;
7
+ other_assets: SectionByProjectCOABalanceGroupedPayloadV2;
8
+ }
9
+ interface LiabilitySubSectionsProjectView {
10
+ current_liabilities: Record<'accounts_payable' | 'credit_cards' | 'other_current_liabilities', SectionByProjectCOABalanceGroupedPayloadV2> & COABalanceGroupedByPeriodPayloadV2;
11
+ long_term_liabilities: SectionByProjectCOABalanceGroupedPayloadV2;
12
+ }
13
+ export interface BalanceSheetProjectViewPayload extends ReportByProjectMetadataPayloadV2 {
14
+ assets: COABalanceGroupedByPeriodPayloadV2 & AssetSubSectionsProjectView;
15
+ equity: SectionByProjectCOABalanceGroupedPayloadV2;
16
+ liabilities: COABalanceGroupedByPeriodPayloadV2 & LiabilitySubSectionsProjectView;
17
+ liabilities_and_equity: COABalanceGroupedByPeriodPayloadV2;
18
+ }
19
+ export type BalanceSheetReportProjectViewResponse = ZeniReportResponse<BalanceSheetProjectViewPayload>;
20
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,33 @@
1
+ import { AccountViewMode, ID } from '../../commonStateTypes/common';
2
+ import { ZeniAPIStatus, ZeniReportData } from '../../responsePayload';
3
+ import { BalanceSheetProjectViewPayload } from './balanceSheetProjectViewPayload';
4
+ import { BalanceSheetProjectViewState } from './balanceSheetProjectViewState';
5
+ export declare const initialState: BalanceSheetProjectViewState;
6
+ export declare const fetchBalanceSheetProjectView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride?: boolean | undefined], {
7
+ cacheOverride: boolean;
8
+ }, "balanceSheetProjectView/fetchBalanceSheetProjectView", never, never>, fetchBalanceSheetForTimeframeProjectView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[timeframe: "month" | "year" | "quarter", cacheOverride?: boolean | undefined], {
9
+ timeframe: "month" | "year" | "quarter";
10
+ cacheOverride: boolean;
11
+ }, "balanceSheetProjectView/fetchBalanceSheetForTimeframeProjectView", never, never>, updateBalanceSheetForTimeframeProjectView: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
12
+ report: ZeniReportData<BalanceSheetProjectViewPayload>;
13
+ timeframe: "month" | "quarter" | "year";
14
+ }, "balanceSheetProjectView/updateBalanceSheetForTimeframeProjectView">, updateBalanceSheetForTimeframeProjectViewFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>, timeframe: "month" | "year" | "quarter"], {
15
+ error: ZeniAPIStatus<Record<string, unknown>>;
16
+ timeframe: "month" | "year" | "quarter";
17
+ }, "balanceSheetProjectView/updateBalanceSheetForTimeframeProjectViewFailure", never, never>, updateBalanceSheetProjectsToFilterOut: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
18
+ projectsToFilterOut: ID[];
19
+ }, "balanceSheetProjectView/updateBalanceSheetProjectsToFilterOut">, updateBalanceSheetProjectViewUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
20
+ nodeCollapseState?: {
21
+ isCollapsed: boolean;
22
+ nodeId: ID;
23
+ };
24
+ resetLeftScroll?: boolean;
25
+ scrollPosition?: {
26
+ scrollTop: number;
27
+ scrollLeft?: number;
28
+ };
29
+ }, "balanceSheetProjectView/updateBalanceSheetProjectViewUIState">, updateBalanceSheetProjectViewAccountViewMode: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
30
+ viewMode: AccountViewMode;
31
+ }, "balanceSheetProjectView/updateBalanceSheetProjectViewAccountViewMode">, resetBalanceSheetProjectNodeCollapseState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"balanceSheetProjectView/resetBalanceSheetProjectNodeCollapseState">, clearBalanceSheetProjectView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"balanceSheetProjectView/clearBalanceSheetProjectView">;
32
+ declare const _default: import("redux").Reducer<BalanceSheetProjectViewState>;
33
+ export default _default;
@@ -0,0 +1,132 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.clearBalanceSheetProjectView = exports.resetBalanceSheetProjectNodeCollapseState = exports.updateBalanceSheetProjectViewAccountViewMode = exports.updateBalanceSheetProjectViewUIState = exports.updateBalanceSheetProjectsToFilterOut = exports.updateBalanceSheetForTimeframeProjectViewFailure = exports.updateBalanceSheetForTimeframeProjectView = exports.fetchBalanceSheetForTimeframeProjectView = exports.fetchBalanceSheetProjectView = exports.initialState = void 0;
5
+ const toolkit_1 = require("@reduxjs/toolkit");
6
+ const viewAndReportPayloadv2_1 = require("../../commonPayloadTypes/v2/viewAndReportPayloadv2");
7
+ const rootActions_1 = require("../../rootActions");
8
+ exports.initialState = {
9
+ bookCloseDate: undefined,
10
+ fetchState: {
11
+ month: {
12
+ fetchState: 'Not-Started',
13
+ error: undefined,
14
+ },
15
+ quarter: {
16
+ fetchState: 'Not-Started',
17
+ error: undefined,
18
+ },
19
+ year: {
20
+ fetchState: 'Not-Started',
21
+ error: undefined,
22
+ },
23
+ },
24
+ firstMonthOfFY: 1,
25
+ projectIds: [],
26
+ reportId: 'balance_sheet_by_projects',
27
+ reportTitle: 'balance_sheet_by_projects',
28
+ uiState: {
29
+ accountViewMode: 'account_group',
30
+ nodeCollapseState: {},
31
+ projectsToFilterOut: [],
32
+ scrollPosition: undefined,
33
+ },
34
+ };
35
+ const balanceSheetProjectView = (0, toolkit_1.createSlice)({
36
+ name: 'balanceSheetProjectView',
37
+ initialState: exports.initialState,
38
+ reducers: {
39
+ fetchBalanceSheetProjectView: {
40
+ prepare(cacheOverride = false) {
41
+ return { payload: { cacheOverride } };
42
+ },
43
+ reducer(
44
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
45
+ _draft,
46
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
47
+ _action) {
48
+ // nothing to do here
49
+ },
50
+ },
51
+ fetchBalanceSheetForTimeframeProjectView: {
52
+ prepare(timeframe, cacheOverride = false) {
53
+ return { payload: { timeframe, cacheOverride } };
54
+ },
55
+ reducer(draft, action) {
56
+ const timeframe = action.payload.timeframe;
57
+ draft.fetchState[timeframe].fetchState = 'In-Progress';
58
+ draft.fetchState[timeframe].error = undefined;
59
+ },
60
+ },
61
+ updateBalanceSheetForTimeframeProjectView(draft, action) {
62
+ doUpdateBalanceSheetProjectView(draft, action.payload.timeframe, action.payload.report);
63
+ },
64
+ updateBalanceSheetForTimeframeProjectViewFailure: {
65
+ prepare(error, timeframe) {
66
+ return {
67
+ payload: {
68
+ error,
69
+ timeframe,
70
+ },
71
+ };
72
+ },
73
+ reducer(draft, action) {
74
+ draft.fetchState[action.payload.timeframe] = {
75
+ fetchState: 'Error',
76
+ error: action.payload.error,
77
+ };
78
+ },
79
+ },
80
+ updateBalanceSheetProjectsToFilterOut(draft, action) {
81
+ draft.uiState.projectsToFilterOut = action.payload.projectsToFilterOut;
82
+ },
83
+ updateBalanceSheetProjectViewUIState(draft, action) {
84
+ const { nodeCollapseState, scrollPosition, resetLeftScroll } = action.payload;
85
+ if (nodeCollapseState != null) {
86
+ draft.uiState.nodeCollapseState = Object.assign({}, draft.uiState.nodeCollapseState, {
87
+ [nodeCollapseState.nodeId]: nodeCollapseState.isCollapsed,
88
+ });
89
+ }
90
+ // Mutually exclusive: resetLeftScroll clears only scrollLeft from the
91
+ // recorded position, scrollPosition replaces the whole record.
92
+ if (resetLeftScroll === true && draft.uiState.scrollPosition != null) {
93
+ draft.uiState.scrollPosition.scrollLeft = undefined;
94
+ }
95
+ else if (scrollPosition != null) {
96
+ draft.uiState.scrollPosition = scrollPosition;
97
+ }
98
+ },
99
+ updateBalanceSheetProjectViewAccountViewMode(draft, action) {
100
+ draft.uiState.accountViewMode = action.payload.viewMode;
101
+ },
102
+ resetBalanceSheetProjectNodeCollapseState(draft) {
103
+ draft.uiState.nodeCollapseState = {};
104
+ },
105
+ clearBalanceSheetProjectView(draft) {
106
+ Object.assign(draft, exports.initialState);
107
+ },
108
+ },
109
+ extraReducers: (builder) => {
110
+ builder.addCase(rootActions_1.clearAll, (draft) => {
111
+ Object.assign(draft, exports.initialState);
112
+ });
113
+ },
114
+ });
115
+ _a = balanceSheetProjectView.actions, exports.fetchBalanceSheetProjectView = _a.fetchBalanceSheetProjectView, exports.fetchBalanceSheetForTimeframeProjectView = _a.fetchBalanceSheetForTimeframeProjectView, exports.updateBalanceSheetForTimeframeProjectView = _a.updateBalanceSheetForTimeframeProjectView, exports.updateBalanceSheetForTimeframeProjectViewFailure = _a.updateBalanceSheetForTimeframeProjectViewFailure, exports.updateBalanceSheetProjectsToFilterOut = _a.updateBalanceSheetProjectsToFilterOut, exports.updateBalanceSheetProjectViewUIState = _a.updateBalanceSheetProjectViewUIState, exports.updateBalanceSheetProjectViewAccountViewMode = _a.updateBalanceSheetProjectViewAccountViewMode, exports.resetBalanceSheetProjectNodeCollapseState = _a.resetBalanceSheetProjectNodeCollapseState, exports.clearBalanceSheetProjectView = _a.clearBalanceSheetProjectView;
116
+ exports.default = balanceSheetProjectView.reducer;
117
+ const doUpdateBalanceSheetProjectView = (draft, timeframe, balanceSheetReport) => {
118
+ const report = (0, viewAndReportPayloadv2_1.mapReportPayloadV2ToReportV2)(balanceSheetReport.report);
119
+ draft.currency = report.currency;
120
+ draft.dataAvailable = report.dataAvailable;
121
+ draft.firstMonthOfFY = report.firstMonthOfFY;
122
+ draft.bookCloseDate = report.bookCloseDate;
123
+ draft.status = report.status;
124
+ draft.fetchState[timeframe].fetchState = 'Completed';
125
+ draft.fetchState[timeframe].error = undefined;
126
+ // Populated once, as with classHierarchy in the classes view: a project added
127
+ // mid-session is not picked up until the store is cleared, even by a hard
128
+ // refresh. Matches profitAndLossProjectViewReducer.
129
+ if (draft.projectIds.length <= 0) {
130
+ draft.projectIds = balanceSheetReport.report.projects.map((project) => project.accounting_project_id);
131
+ }
132
+ };
@@ -0,0 +1,7 @@
1
+ import { COABalancesFilterProjectView } from '../../commonStateTypes/coaBalance/coaBalancesFilterProjectView';
2
+ import { AccountState } from '../../entity/account/accountState';
3
+ import { ProjectState } from '../../entity/project/projectReducer';
4
+ import { SectionProjectViewState } from '../../entity/sectionProjectView/sectionProjectViewState';
5
+ import { BalanceSheetProjectViewReport } from './balanceSheetProjectViewSelectorTypes';
6
+ import { BalanceSheetProjectViewState } from './balanceSheetProjectViewState';
7
+ export declare const getBalanceSheetProjectView: (filter: COABalancesFilterProjectView, accountState: AccountState, projectState: ProjectState, sectionsState: SectionProjectViewState, balanceSheetProjectViewState: BalanceSheetProjectViewState) => BalanceSheetProjectViewReport;
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getBalanceSheetProjectView = void 0;
4
+ const getAdditionalBalances_1 = require("../../commonStateTypes/coaBalance/additionalBalances/getAdditionalBalances");
5
+ const getSumOfBalancesGroupedByPeriod_1 = require("../../commonStateTypes/coaBalance/classBalances/getSumOfBalancesGroupedByPeriod");
6
+ const coaBalance_1 = require("../../commonStateTypes/coaBalance/coaBalance");
7
+ const reduceFetchState_1 = require("../../commonStateTypes/reduceFetchState");
8
+ const projectSelector_1 = require("../../entity/project/projectSelector");
9
+ const sectionProjectViewSelector_1 = require("../../entity/sectionProjectView/sectionProjectViewSelector");
10
+ const balanceSheetSelectorTypes_1 = require("../balanceSheet/balanceSheetSelectorTypes");
11
+ // The section-id constants and the display order are both module-level, so the
12
+ // sorted groupings are computed once instead of on every selector call.
13
+ const byDisplayOrder = (a, b) => balanceSheetSelectorTypes_1.balanceSheetSectionIdsInOrder.indexOf(a) -
14
+ balanceSheetSelectorTypes_1.balanceSheetSectionIdsInOrder.indexOf(b);
15
+ const ASSET_IDS_IN_ORDER = [...balanceSheetSelectorTypes_1.ALL_BALANCE_SHEET_REPORT_VIEW_ASSET_IDS].sort(byDisplayOrder);
16
+ const LIABILITY_IDS_IN_ORDER = [
17
+ ...balanceSheetSelectorTypes_1.ALL_BALANCE_SHEET_REPORT_VIEW_LIABILITY_IDS,
18
+ ].sort(byDisplayOrder);
19
+ const EQUITY_IDS_IN_ORDER = [...balanceSheetSelectorTypes_1.ALL_BALANCE_SHEET_REPORT_VIEW_EQUITY_IDS].sort(byDisplayOrder);
20
+ const getBalanceSheetProjectView = (filter, accountState, projectState, sectionsState, balanceSheetProjectViewState) => {
21
+ const fetchState = (0, reduceFetchState_1.reduceFetchStateParallelTimeframes)([
22
+ balanceSheetProjectViewState.fetchState.month,
23
+ balanceSheetProjectViewState.fetchState.quarter,
24
+ balanceSheetProjectViewState.fetchState.year,
25
+ ]);
26
+ const reportId = 'balance_sheet_by_projects';
27
+ const sections = {};
28
+ const calculatedSections = {};
29
+ if (fetchState.fetchState === 'Completed') {
30
+ // Balance Sheet balances are point-in-time, so the extra columns must be
31
+ // read as snapshots rather than period sums.
32
+ const additionalBalancesOptions = (0, getAdditionalBalances_1.newAdditionalBalancesOptions)(true);
33
+ balanceSheetSelectorTypes_1.ALL_BALANCE_SHEET_REPORT_VIEW_SECTION_IDS.forEach((sectionId) => {
34
+ sections[`${sectionId}`] = (0, sectionProjectViewSelector_1.getSectionProjectViewReport)(accountState, projectState, sectionsState, balanceSheetProjectViewState.projectIds, {
35
+ reportId,
36
+ sectionId,
37
+ }, filter, additionalBalancesOptions);
38
+ });
39
+ const totalCurrentAssetsBalancesByPeriod = (0, getSumOfBalancesGroupedByPeriod_1.getSumOfBalancesByGroupedByPeriod)([
40
+ sections['cashAndEquivalents'].sectionBalancesTotalByPeriod,
41
+ sections['accountsReceiable'].sectionBalancesTotalByPeriod,
42
+ sections['otherCurrentAssets'].sectionBalancesTotalByPeriod,
43
+ ]);
44
+ calculatedSections['totalCurrentAssets'] = (0, coaBalance_1.getCOABalances)(totalCurrentAssetsBalancesByPeriod, filter, additionalBalancesOptions);
45
+ const totalAssetsBalancesByPeriod = (0, getSumOfBalancesGroupedByPeriod_1.getSumOfBalancesByGroupedByPeriod)([
46
+ totalCurrentAssetsBalancesByPeriod ?? {},
47
+ sections['fixedAssets'].sectionBalancesTotalByPeriod,
48
+ sections['otherAssets'].sectionBalancesTotalByPeriod,
49
+ ]);
50
+ calculatedSections['totalAssets'] = (0, coaBalance_1.getCOABalances)(totalAssetsBalancesByPeriod, filter, additionalBalancesOptions);
51
+ const totalCurrentLiabilitiesBalancesByPeriod = (0, getSumOfBalancesGroupedByPeriod_1.getSumOfBalancesByGroupedByPeriod)([
52
+ sections['accountsPayable'].sectionBalancesTotalByPeriod,
53
+ sections['creditCards'].sectionBalancesTotalByPeriod,
54
+ sections['otherCurrentLiabilities'].sectionBalancesTotalByPeriod,
55
+ ]);
56
+ calculatedSections['totalCurrentLiabilities'] = (0, coaBalance_1.getCOABalances)(totalCurrentLiabilitiesBalancesByPeriod, filter, additionalBalancesOptions);
57
+ calculatedSections['totalNonCurrentLiabilities'] = (0, coaBalance_1.getCOABalances)(sections['longTermLiabilities'].sectionBalancesTotalByPeriod, filter, additionalBalancesOptions);
58
+ const totalLiabilitiesBalancesByPeriod = (0, getSumOfBalancesGroupedByPeriod_1.getSumOfBalancesByGroupedByPeriod)([
59
+ totalCurrentLiabilitiesBalancesByPeriod ?? {},
60
+ sections['longTermLiabilities'].sectionBalancesTotalByPeriod,
61
+ ]);
62
+ calculatedSections['totalLiabilities'] = (0, coaBalance_1.getCOABalances)(totalLiabilitiesBalancesByPeriod, filter, additionalBalancesOptions);
63
+ calculatedSections['totalEquity'] = (0, coaBalance_1.getCOABalances)(sections['equity'].sectionBalancesTotalByPeriod, filter, additionalBalancesOptions);
64
+ const liabilitiesAndEquityBalancesByPeriod = (0, getSumOfBalancesGroupedByPeriod_1.getSumOfBalancesByGroupedByPeriod)([
65
+ totalLiabilitiesBalancesByPeriod ?? {},
66
+ sections['equity'].sectionBalancesTotalByPeriod,
67
+ ]);
68
+ calculatedSections['liabilitiesAndEquity'] = (0, coaBalance_1.getCOABalances)(liabilitiesAndEquityBalancesByPeriod, filter, additionalBalancesOptions);
69
+ }
70
+ return {
71
+ sections,
72
+ calculatedSections,
73
+ reportId: balanceSheetProjectViewState.reportId,
74
+ reportTitle: balanceSheetProjectViewState.reportTitle,
75
+ firstMonthOfFY: balanceSheetProjectViewState.firstMonthOfFY,
76
+ dataAvailable: balanceSheetProjectViewState.dataAvailable,
77
+ bookCloseDate: balanceSheetProjectViewState.bookCloseDate,
78
+ version: balanceSheetProjectViewState.version,
79
+ status: balanceSheetProjectViewState.status,
80
+ fetchState: fetchState.fetchState,
81
+ error: fetchState.error,
82
+ filter,
83
+ uiState: balanceSheetProjectViewState.uiState,
84
+ projects: (0, projectSelector_1.getProjectsByIds)(projectState, balanceSheetProjectViewState.projectIds),
85
+ projectsToFilterOut: balanceSheetProjectViewState.uiState.projectsToFilterOut,
86
+ idsInOrder: balanceSheetSelectorTypes_1.balanceSheetSectionIdsInOrder,
87
+ rootSectionsWithSubSectionIds: {
88
+ assets: ASSET_IDS_IN_ORDER,
89
+ liabilities: LIABILITY_IDS_IN_ORDER,
90
+ equity: EQUITY_IDS_IN_ORDER,
91
+ },
92
+ };
93
+ };
94
+ exports.getBalanceSheetProjectView = getBalanceSheetProjectView;
@@ -0,0 +1,18 @@
1
+ import { COABalancesFilterProjectView } from '../../commonStateTypes/coaBalance/coaBalancesFilterProjectView';
2
+ import { ID } from '../../commonStateTypes/common';
3
+ import { CalculatedSection } from '../../commonStateTypes/selectorTypes/selectorTypes';
4
+ import { SelectorReport } from '../../commonStateTypes/viewAndReport/viewAndReport';
5
+ import { Project } from '../../entity/project/projectState';
6
+ import { SectionProjectViewReport } from '../../entity/sectionProjectView/sectionProjectViewSelectorTypes';
7
+ import { BalanceSheetReportViewCalculatedSectionID, BalanceSheetReportViewSectionID, SectionIdsWithSubSectionIds } from '../balanceSheet/balanceSheetSelectorTypes';
8
+ import { BalanceSheetProjectViewUIState } from './balanceSheetProjectViewState';
9
+ export interface BalanceSheetProjectViewReport extends SelectorReport {
10
+ calculatedSections: Record<BalanceSheetReportViewCalculatedSectionID, CalculatedSection>;
11
+ filter: COABalancesFilterProjectView;
12
+ idsInOrder: (BalanceSheetReportViewSectionID | BalanceSheetReportViewCalculatedSectionID)[];
13
+ projects: Project[];
14
+ projectsToFilterOut: ID[];
15
+ rootSectionsWithSubSectionIds: SectionIdsWithSubSectionIds;
16
+ sections: Record<BalanceSheetReportViewSectionID, SectionProjectViewReport>;
17
+ uiState: BalanceSheetProjectViewUIState;
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ import { Currency } from '../../commonStateTypes/amount';
2
+ import { AccountViewMode, FetchStateAndError, ID } from '../../commonStateTypes/common';
3
+ import { Report } from '../../commonStateTypes/viewAndReport/viewAndReport';
4
+ export interface BalanceSheetProjectViewUIState {
5
+ accountViewMode: AccountViewMode;
6
+ nodeCollapseState: Record<ID, boolean>;
7
+ projectsToFilterOut: ID[];
8
+ scrollPosition: {
9
+ scrollTop: number;
10
+ scrollLeft?: number;
11
+ } | undefined;
12
+ }
13
+ export interface BalanceSheetProjectViewState extends Report {
14
+ fetchState: {
15
+ month: FetchStateAndError;
16
+ quarter: FetchStateAndError;
17
+ year: FetchStateAndError;
18
+ };
19
+ projectIds: ID[];
20
+ uiState: BalanceSheetProjectViewUIState;
21
+ currency?: Currency;
22
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,6 @@
1
1
  import { RootState } from '../../reducer';
2
2
  export declare const getBillPayCardReport: (state: RootState) => {
3
- reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts";
3
+ reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts";
4
4
  reportTitle: string;
5
5
  version: string | number | undefined;
6
6
  fetchState: import("../..").FetchState;
@@ -1,6 +1,6 @@
1
1
  import { RootState } from '../../reducer';
2
2
  export declare const getCardBalance: (state: RootState) => {
3
- reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts";
3
+ reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts";
4
4
  reportTitle: string;
5
5
  version: string | number | undefined;
6
6
  status: import("../..").Status | undefined;
@@ -1,6 +1,6 @@
1
1
  import { RootState } from '../../reducer';
2
2
  export declare const getCashBalance: (state: RootState) => {
3
- reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts";
3
+ reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts";
4
4
  reportTitle: string;
5
5
  version: string | number | undefined;
6
6
  status: import("../..").Status | undefined;
@@ -15,7 +15,7 @@ export declare const getCashInCashOut: (accountState: AccountState, accountGroup
15
15
  firstMonthOfFY: 1 | 3 | 12 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
16
16
  dataAvailable: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
17
17
  availableNumberOfPeriods: number | undefined;
18
- reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts";
18
+ reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts";
19
19
  reportTitle: string;
20
20
  version: string | number | undefined;
21
21
  status: import("../..").Status | undefined;
@@ -12,7 +12,7 @@ export declare const getCashPosition: (accountState: AccountState, cashPositionS
12
12
  firstMonthOfFY: 1 | 3 | 12 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
13
13
  dataAvailable: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
14
14
  availableNumberOfPeriods: number | undefined;
15
- reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts";
15
+ reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts";
16
16
  reportTitle: string;
17
17
  version: string | number | undefined;
18
18
  status: import("../..").Status | undefined;
@@ -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" | "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], {
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" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts")[] | 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" | "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")[];
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" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts")[];
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" | "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<{
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" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts", "financeStatement/updateSelectedReportId">, updateFinanceStatementAdditionalBalancesSelection: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
21
21
  additionalBalances: COABalanceType[];
22
22
  coaBalances: COABalance[];
23
23
  firstMonthOfFY: Month;
@@ -6,6 +6,8 @@ import { TimeframeTickWithMetaData } from '../../commonStateTypes/timeframeTick'
6
6
  import { ReportFormat, ReportID, SelectorReport } from '../../commonStateTypes/viewAndReport/viewAndReport';
7
7
  import { RootState } from '../../reducer';
8
8
  import { BalanceSheetReport } from '../balanceSheet/balanceSheetSelectorTypes';
9
+ import { BalanceSheetClassesViewReport } from '../balanceSheetClassesView/balanceSheetClassesViewSelectorTypes';
10
+ import { BalanceSheetProjectViewReport } from '../balanceSheetProjectView/balanceSheetProjectViewSelectorTypes';
9
11
  import { CashFlowReport } from '../cashFlow/cashFlowSelectorTypes';
10
12
  import { ProfitAndLossReport } from '../profitAndLoss/profitAndLossSelector';
11
13
  import { ProfitAndLossByClassHorizontalReport } from '../profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelectorTypes';
@@ -13,6 +15,8 @@ import { ProfitAndLossClassesViewReport } from '../profitAndLossClassesView/prof
13
15
  import { ProfitAndLossProjectViewReport } from '../profitAndLossProjectView/profitAndLossProjectViewSelectorTypes';
14
16
  export interface FinanceStatementReport extends SelectorReport {
15
17
  allTimeframeTicks: TimeframeTickWithMetaData[];
18
+ balanceSheetByClassReport: BalanceSheetClassesViewReport;
19
+ balanceSheetByProjectReport: BalanceSheetProjectViewReport;
16
20
  balanceSheetReport: BalanceSheetReport;
17
21
  balancesInTimeframe: COABalance[];
18
22
  cashFlowReport: CashFlowReport;