@zeniai/client-epic-state 4.8.86 → 4.8.87
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.
- package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -1
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +4 -3
- package/lib/entity/account/accountSelector.d.ts +6 -6
- package/lib/entity/account/accountState.d.ts +3 -3
- package/lib/entity/account/accountState.js +1 -0
- package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +2 -2
- package/lib/entity/accountGroup/accountGroupSelector.d.ts +44 -44
- package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
- package/lib/entity/class/classReducer.d.ts +4 -4
- package/lib/entity/class/classState.d.ts +1 -1
- package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +1 -1
- package/lib/entity/forecast/forecastState.d.ts +1 -1
- package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +6 -1
- package/lib/entity/jeSchedules/jeSchedulesPayload.js +11 -1
- package/lib/entity/jeSchedules/jeSchedulesSelector.d.ts +2 -1
- package/lib/entity/jeSchedules/jeSchedulesSelector.js +2 -1
- package/lib/entity/jeSchedules/jeSchedulesState.d.ts +5 -1
- package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +4 -4
- package/lib/entity/jeSchedules/jeSchedulesTypes.js +1 -1
- package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +1 -0
- package/lib/entity/tenant/clearAllEpic.d.ts +2 -1
- package/lib/entity/tenant/clearAllEpic.js +2 -0
- package/lib/entity/tenant/tenantSelector.d.ts +12 -4
- package/lib/entity/tenant/tenantSelector.js +95 -31
- package/lib/entity/transaction/payloadTypes/scheduleTransactionPayload.d.ts +1 -0
- package/lib/entity/transaction/payloadTypes/scheduleTransactionPayload.js +1 -0
- package/lib/entity/transaction/stateTypes/scheduleTransaction.d.ts +1 -0
- package/lib/epic.d.ts +7 -1
- package/lib/epic.js +7 -1
- package/lib/index.d.ts +21 -13
- package/lib/index.js +48 -20
- package/lib/init.js +1 -1
- package/lib/reducer.d.ts +6 -0
- package/lib/reducer.js +6 -0
- package/lib/view/accountList/accountListReducer.d.ts +2 -2
- package/lib/view/accountList/accountListReducer.js +2 -1
- package/lib/view/accountList/accountListState.d.ts +1 -1
- package/lib/view/accountMappingView/accountTypeRecommendation/accountTypeRecommendationPayload.d.ts +1 -1
- package/lib/view/auditReportView/auditReportViewHelper.d.ts +12 -0
- package/lib/view/auditReportView/auditReportViewHelper.js +79 -0
- package/lib/view/auditReportView/auditReportViewPayload.d.ts +53 -0
- package/lib/view/auditReportView/auditReportViewPayload.js +2 -0
- package/lib/view/auditReportView/auditReportViewReducer.d.ts +27 -0
- package/lib/view/auditReportView/auditReportViewReducer.js +121 -0
- package/lib/view/auditReportView/auditReportViewSelector.d.ts +22 -0
- package/lib/view/auditReportView/auditReportViewSelector.js +34 -0
- package/lib/view/auditReportView/auditReportViewState.d.ts +71 -0
- package/lib/view/auditReportView/auditReportViewState.js +22 -0
- package/lib/view/auditReportView/epics/fetchAuditReportGroupViewEpic.d.ts +7 -0
- package/lib/view/auditReportView/epics/fetchAuditReportGroupViewEpic.js +54 -0
- package/lib/view/auditReportView/epics/fetchAuditRuleGroupViewEpic.d.ts +7 -0
- package/lib/view/auditReportView/epics/fetchAuditRuleGroupViewEpic.js +39 -0
- package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
- package/lib/view/cardBalance/cardBalanceSelector.d.ts +3 -3
- package/lib/view/cashBalance/cashBalanceSelector.d.ts +3 -3
- package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
- package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
- package/lib/view/companyView/types/cockpitTypes.d.ts +4 -2
- package/lib/view/companyView/types/cockpitTypes.js +10 -1
- package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
- package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
- package/lib/view/people/deletePersonEpic.d.ts +1 -1
- package/lib/view/people/invitePeopleEpic.d.ts +1 -1
- package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
- package/lib/view/people/resendInviteEpic.d.ts +1 -1
- package/lib/view/referralView/epics/fetchReferralsEpic.d.ts +7 -0
- package/lib/view/referralView/epics/fetchReferralsEpic.js +36 -0
- package/lib/view/referralView/epics/fetchRewardsPlanEpic.d.ts +7 -0
- package/lib/view/referralView/epics/fetchRewardsPlanEpic.js +41 -0
- package/lib/view/referralView/epics/resendReferralInviteEpic.d.ts +8 -0
- package/lib/view/referralView/epics/resendReferralInviteEpic.js +39 -0
- package/lib/view/referralView/epics/sendReferralInviteEpic.d.ts +8 -0
- package/lib/view/referralView/epics/sendReferralInviteEpic.js +44 -0
- package/lib/view/referralView/referralPayload.d.ts +43 -0
- package/lib/view/referralView/referralPayload.js +33 -0
- package/lib/view/referralView/referralReducer.d.ts +23 -0
- package/lib/view/referralView/referralReducer.js +167 -0
- package/lib/view/referralView/referralSelector.d.ts +23 -0
- package/lib/view/referralView/referralSelector.js +88 -0
- package/lib/view/referralView/referralState.d.ts +55 -0
- package/lib/view/referralView/referralState.js +40 -0
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
- package/lib/view/reviewCompanyView/fetchReviewCompanyViewEpic.js +1 -1
- package/lib/view/reviewCompanyView/reviewCompanyPayload.d.ts +25 -1
- package/lib/view/reviewCompanyView/reviewCompanyViewSelector.d.ts +1 -0
- package/lib/view/reviewCompanyView/reviewCompanyViewSelector.js +31 -8
- package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +12 -4
- package/lib/view/reviewCompanyView/reviewCompanyViewState.js +15 -5
- package/lib/view/scheduleView/scheduleDetailView/epics/createNewSchedulesEpic.js +9 -2
- package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsEpic.js +6 -6
- package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsPageEpic.d.ts +3 -2
- package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsPageEpic.js +13 -5
- package/lib/view/scheduleView/scheduleDetailView/epics/initializeScheduleDetailLocalDataEpic.js +11 -8
- package/lib/view/scheduleView/scheduleDetailView/epics/saveScheduleDetailsEpic.js +4 -4
- package/lib/view/scheduleView/scheduleDetailView/epics/updateAmountsInScheduleDetailEpic.js +8 -6
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.d.ts +7 -5
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.js +37 -6
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.d.ts +8 -4
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.js +53 -4
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +21 -11
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.js +66 -35
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.d.ts +12 -3
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.js +31 -14
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailState.d.ts +19 -5
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailState.js +0 -3
- package/lib/view/scheduleView/scheduleListView/epics/fetchDownloadSchedulesEpic.js +4 -3
- package/lib/view/scheduleView/scheduleListView/epics/fetchScheduleListEpic.d.ts +0 -10
- package/lib/view/scheduleView/scheduleListView/epics/fetchScheduleListEpic.js +7 -24
- package/lib/view/scheduleView/scheduleListView/epics/fetchSchedulesAccountEpic.js +2 -5
- package/lib/view/scheduleView/scheduleListView/scheduleListHelper.d.ts +7 -5
- package/lib/view/scheduleView/scheduleListView/scheduleListHelper.js +37 -28
- package/lib/view/scheduleView/scheduleListView/scheduleListReducer.d.ts +27 -18
- package/lib/view/scheduleView/scheduleListView/scheduleListReducer.js +109 -76
- package/lib/view/scheduleView/scheduleListView/scheduleListSelector.d.ts +4 -8
- package/lib/view/scheduleView/scheduleListView/scheduleListSelector.js +42 -40
- package/lib/view/scheduleView/scheduleListView/scheduleListState.d.ts +16 -13
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +5 -5
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.js +3 -1
- package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
- package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
- package/lib/view/topEx/topExSelector.d.ts +2 -2
- package/lib/view/transactionList/transactionListReducer.d.ts +12 -12
- package/lib/view/vendorList/vendorListSelector.d.ts +2 -2
- package/lib/view/vendorList/vendorListSelector.js +1 -0
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardSelector.d.ts +1 -1
- package/package.json +2 -2
|
@@ -26,6 +26,10 @@ const sortedJETransactionsView = (jeTransactions, sortKey, sortOrder) => {
|
|
|
26
26
|
return jeTransaction.jeDebit.account != null
|
|
27
27
|
? jeTransaction.jeDebit.account.accountName.toLowerCase()
|
|
28
28
|
: null;
|
|
29
|
+
case 'accumulatedDepreciationCategory':
|
|
30
|
+
return jeTransaction.jeCredit.account != null
|
|
31
|
+
? jeTransaction.jeCredit.account.accountName.toLowerCase()
|
|
32
|
+
: null;
|
|
29
33
|
case 'class':
|
|
30
34
|
return jeTransaction.jeDebit.accountingClass != null
|
|
31
35
|
? jeTransaction.jeDebit.accountingClass.className.toLowerCase()
|
|
@@ -54,6 +58,10 @@ const sortedJETransactionsView = (jeTransactions, sortKey, sortOrder) => {
|
|
|
54
58
|
return jeTransaction.baseTransaction.type.toLowerCase();
|
|
55
59
|
case 'status':
|
|
56
60
|
return jeTransaction.status.code.toLowerCase();
|
|
61
|
+
case 'assetId':
|
|
62
|
+
return jeTransaction.otherAttributes.assetId != null
|
|
63
|
+
? jeTransaction.otherAttributes.assetId.toLowerCase()
|
|
64
|
+
: null;
|
|
57
65
|
default:
|
|
58
66
|
return jeTransaction.updatedByUser != null
|
|
59
67
|
? jeTransaction.updatedByUser.firstName.toLowerCase()
|
|
@@ -63,11 +71,10 @@ const sortedJETransactionsView = (jeTransactions, sortKey, sortOrder) => {
|
|
|
63
71
|
};
|
|
64
72
|
const getScheduleListReport = (state) => {
|
|
65
73
|
const { scheduleListState, accountListState, accountState } = state;
|
|
66
|
-
const
|
|
67
|
-
const
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
let allNestedAccounts = (0, accountListSelector_1.getNestedAccountListHeirarchy)(accountListState, (0, scheduleListHelper_1.getAccountListKeyForSchedulesTab)(scheduleListState.currentTab));
|
|
74
|
+
const scheduleState = (0, scheduleListReducer_1.getState)(scheduleListState, scheduleListState.currentTab);
|
|
75
|
+
const downloadState = scheduleState.downloadState;
|
|
76
|
+
const allScheduleAccounts = (0, accountListSelector_1.getAccountList)(accountState, accountListState, (0, scheduleListHelper_1.getAccountListKeyForSchedules)());
|
|
77
|
+
let allNestedAccounts = (0, accountListSelector_1.getNestedAccountListHeirarchy)(accountListState, (0, scheduleListHelper_1.getAccountListKeyForSchedules)());
|
|
71
78
|
let allAccounts = allScheduleAccounts.accounts;
|
|
72
79
|
const accountTypes = (0, scheduleListHelper_1.getAccountsTypesForScheduleList)(scheduleListState.currentTab);
|
|
73
80
|
const accountLabel = (0, scheduleListHelper_1.getAccountLabelForScheduleType)(scheduleListState.currentTab);
|
|
@@ -75,7 +82,7 @@ const getScheduleListReport = (state) => {
|
|
|
75
82
|
? (0, accountListSelector_1.getAccountIdsForLabel)(accountListState, accountTypes.accountListKey, accountLabel)
|
|
76
83
|
: [];
|
|
77
84
|
if (accountLabel != null) {
|
|
78
|
-
const filteredList = (0, accountListSelector_1.getFilteredNestedAndAccountListsForLabel)(accountState, accountListState, (0, scheduleListHelper_1.
|
|
85
|
+
const filteredList = (0, accountListSelector_1.getFilteredNestedAndAccountListsForLabel)(accountState, accountListState, (0, scheduleListHelper_1.getAccountListKeyForSchedules)(), accountLabel);
|
|
79
86
|
// Use this list only if there is some account in it.
|
|
80
87
|
if (filteredList.accountList.length > 0) {
|
|
81
88
|
allAccounts = filteredList.accountList.filter((account) => scheduleListCurrentTabAccountIds.includes(account.accountId));
|
|
@@ -83,7 +90,9 @@ const getScheduleListReport = (state) => {
|
|
|
83
90
|
scheduleListCurrentTabAccountIds.includes(account.accountId[0]));
|
|
84
91
|
}
|
|
85
92
|
}
|
|
86
|
-
|
|
93
|
+
const key = (0, scheduleListTypes_1.getScheduleListKey)(scheduleState.selectedCategoryId, scheduleState.selectedTimeframe);
|
|
94
|
+
const scheduleJETransactions = (0, get_1.default)(scheduleState.jeScheduleKeysByListKey, key, undefined);
|
|
95
|
+
if (scheduleJETransactions == null) {
|
|
87
96
|
return {
|
|
88
97
|
reportTitle: 'Schedule List',
|
|
89
98
|
version: 1,
|
|
@@ -91,14 +100,11 @@ const getScheduleListReport = (state) => {
|
|
|
91
100
|
jeScheduleOrder: 'descending_transaction_date',
|
|
92
101
|
jeScheduledTransactions: [],
|
|
93
102
|
currentTab: scheduleListState.currentTab,
|
|
94
|
-
currentSubTab: scheduleListState.currentSubTab,
|
|
95
103
|
selectedScheduledId: undefined,
|
|
96
104
|
downloadUIState: downloadState,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
allSubTabs: scheduleListTypes_1.ALL_SCHEDULES_SUB_TABS.map((subTab) => subTab),
|
|
101
|
-
uiState: scheduleListReducer_1.scheduleListInitialState.uiState,
|
|
105
|
+
selectedCategoryId: scheduleState.selectedCategoryId,
|
|
106
|
+
selectedTimeframe: scheduleState.selectedTimeframe,
|
|
107
|
+
uiState: scheduleState.uiState,
|
|
102
108
|
scheduleListAccounts: [(0, scheduleListHelper_1.getAllAccountBase)(), ...allAccounts],
|
|
103
109
|
scheduleListNestedAccountHierarchy: [
|
|
104
110
|
(0, scheduleListHelper_1.getAllAccountNested)(),
|
|
@@ -106,7 +112,7 @@ const getScheduleListReport = (state) => {
|
|
|
106
112
|
],
|
|
107
113
|
fetchState: 'Not-Started',
|
|
108
114
|
error: undefined,
|
|
109
|
-
scheduleListLocalData:
|
|
115
|
+
scheduleListLocalData: scheduleState.scheduleListLocalData,
|
|
110
116
|
allTimeframeTicks: [],
|
|
111
117
|
totalBalanceTimeframeTicks: {
|
|
112
118
|
months: [],
|
|
@@ -116,8 +122,9 @@ const getScheduleListReport = (state) => {
|
|
|
116
122
|
};
|
|
117
123
|
}
|
|
118
124
|
else {
|
|
119
|
-
const jeScheduleIds =
|
|
120
|
-
const { uiState, selectedScheduleId
|
|
125
|
+
const jeScheduleIds = scheduleJETransactions.jeScheduleTransactionKeys;
|
|
126
|
+
const { uiState, selectedScheduleId } = scheduleState;
|
|
127
|
+
const { fetchState, error } = scheduleJETransactions;
|
|
121
128
|
const { sortKey, sortOrder } = uiState;
|
|
122
129
|
const scheduleTransactionsUnsorted = jeScheduleIds
|
|
123
130
|
.map((jeScheduleId) => (0, jeSchedulesSelector_1.getJEScheduledTransactionByJEScheduleKey)(jeScheduleId, state))
|
|
@@ -129,24 +136,22 @@ const getScheduleListReport = (state) => {
|
|
|
129
136
|
});
|
|
130
137
|
const currentTabTransactions = (0, orderBy_1.default)(scheduleTransactionsUnsorted, (value) => value.baseTransaction.date.valueOf(), 'desc');
|
|
131
138
|
let jeTransactionsView = [];
|
|
132
|
-
switch (
|
|
133
|
-
case '
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
case 'ongoing':
|
|
139
|
-
jeTransactionsView = currentTabTransactions.filter((tran) => tran.status.code === 'ongoing');
|
|
140
|
-
break;
|
|
141
|
-
case 'completed':
|
|
142
|
-
jeTransactionsView = currentTabTransactions.filter((tran) => tran.status.code === 'completed');
|
|
143
|
-
break;
|
|
144
|
-
default:
|
|
145
|
-
jeTransactionsView = currentTabTransactions;
|
|
146
|
-
}
|
|
139
|
+
switch (uiState.currentSubTab) {
|
|
140
|
+
case 'new':
|
|
141
|
+
jeTransactionsView = currentTabTransactions.filter((tran) => tran.status.code === 'new');
|
|
142
|
+
break;
|
|
143
|
+
case 'ongoing':
|
|
144
|
+
jeTransactionsView = currentTabTransactions.filter((tran) => tran.status.code === 'ongoing');
|
|
147
145
|
break;
|
|
146
|
+
case 'completed':
|
|
147
|
+
jeTransactionsView = currentTabTransactions.filter((tran) => tran.status.code === 'completed');
|
|
148
|
+
break;
|
|
149
|
+
default:
|
|
150
|
+
jeTransactionsView = currentTabTransactions;
|
|
148
151
|
}
|
|
149
|
-
const loweredSearchText =
|
|
152
|
+
const loweredSearchText = scheduleState.uiState.searchText
|
|
153
|
+
.trim()
|
|
154
|
+
.toLowerCase();
|
|
150
155
|
const sortedJETransactionView = sortedJETransactionsView(jeTransactionsView.filter((jeTransaction) => {
|
|
151
156
|
return (jeTransaction.vendor.name
|
|
152
157
|
.toLowerCase()
|
|
@@ -169,13 +174,10 @@ const getScheduleListReport = (state) => {
|
|
|
169
174
|
jeScheduleOrder: 'descending_transaction_date',
|
|
170
175
|
jeScheduledTransactions: jeScheduledTransactionWithBalance,
|
|
171
176
|
currentTab: scheduleListState.currentTab,
|
|
172
|
-
currentSubTab: scheduleListState.currentSubTab,
|
|
173
177
|
selectedScheduledId: selectedScheduleId,
|
|
174
178
|
downloadUIState: downloadState,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
selectedTimeframe: scheduleListState.selectedTimeframe,
|
|
178
|
-
allSubTabs: scheduleListTypes_1.ALL_SCHEDULES_SUB_TABS.map((subTab) => subTab),
|
|
179
|
+
selectedCategoryId: scheduleState.selectedCategoryId,
|
|
180
|
+
selectedTimeframe: scheduleState.selectedTimeframe,
|
|
179
181
|
uiState,
|
|
180
182
|
scheduleListAccounts: [(0, scheduleListHelper_1.getAllAccountBase)(), ...allAccounts],
|
|
181
183
|
scheduleListNestedAccountHierarchy: [
|
|
@@ -184,7 +186,7 @@ const getScheduleListReport = (state) => {
|
|
|
184
186
|
],
|
|
185
187
|
fetchState,
|
|
186
188
|
error,
|
|
187
|
-
scheduleListLocalData:
|
|
189
|
+
scheduleListLocalData: scheduleState.scheduleListLocalData,
|
|
188
190
|
totalAmount: totalBalances.totalAmount,
|
|
189
191
|
totalRunningBalances: totalBalances.totalRunningBalances,
|
|
190
192
|
allTimeframeTicks,
|
|
@@ -193,7 +195,7 @@ const getScheduleListReport = (state) => {
|
|
|
193
195
|
}
|
|
194
196
|
};
|
|
195
197
|
exports.getScheduleListReport = getScheduleListReport;
|
|
196
|
-
const getFetchStateForScheduleAccountList = (state
|
|
197
|
-
return (0, accountListSelector_1.getAccountListFetchState)(state.accountListState, (0, scheduleListHelper_1.
|
|
198
|
+
const getFetchStateForScheduleAccountList = (state) => {
|
|
199
|
+
return (0, accountListSelector_1.getAccountListFetchState)(state.accountListState, (0, scheduleListHelper_1.getAccountListKeyForSchedules)());
|
|
198
200
|
};
|
|
199
201
|
exports.getFetchStateForScheduleAccountList = getFetchStateForScheduleAccountList;
|
|
@@ -1,29 +1,32 @@
|
|
|
1
1
|
import { FetchedState, FetchStateAndError, ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { SortOrder } from '../../../commonStateTypes/selectorTypes/sortOrderTypes';
|
|
3
3
|
import { TimeframeTick } from '../../../commonStateTypes/timeframeTick';
|
|
4
|
-
import { JEScheduleKey,
|
|
4
|
+
import { JEScheduleKey, ScheduleTypes } from '../../../entity/jeSchedules/jeSchedulesTypes';
|
|
5
5
|
import { ScheduleListKey, ScheduleSubTabType, ScheduleListSortKey } from './scheduleListTypes';
|
|
6
6
|
export interface ScheduleListUIState {
|
|
7
7
|
sortKey: ScheduleListSortKey;
|
|
8
8
|
sortOrder: SortOrder;
|
|
9
|
-
scrollYOffset: number
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
jeScheduleTransactionKeys: JEScheduleKey[];
|
|
13
|
-
uiState: ScheduleListUIState;
|
|
14
|
-
selectedScheduleId?: ID;
|
|
9
|
+
scrollYOffset: Record<ScheduleSubTabType, number>;
|
|
10
|
+
searchText: string;
|
|
11
|
+
currentSubTab: ScheduleSubTabType;
|
|
15
12
|
}
|
|
16
13
|
export interface ScheduleListLocalData {
|
|
17
|
-
|
|
14
|
+
selectedCategoryId: ID;
|
|
18
15
|
selectedTimeframe: TimeframeTick;
|
|
19
16
|
}
|
|
20
|
-
export interface
|
|
21
|
-
|
|
17
|
+
export interface JESchedulesForTypeState extends FetchedState {
|
|
18
|
+
jeScheduleTransactionKeys: JEScheduleKey[];
|
|
19
|
+
}
|
|
20
|
+
export interface ScheduleListForTypeState {
|
|
21
|
+
jeScheduleKeysByListKey: Record<ScheduleListKey, JESchedulesForTypeState>;
|
|
22
|
+
selectedScheduleId?: ID;
|
|
22
23
|
downloadState: FetchStateAndError;
|
|
23
|
-
|
|
24
|
-
currentTab: SchedulesTypes;
|
|
25
|
-
currentSubTab: ScheduleSubTabType;
|
|
24
|
+
uiState: ScheduleListUIState;
|
|
26
25
|
selectedCategoryId: ID;
|
|
27
26
|
selectedTimeframe: TimeframeTick;
|
|
28
27
|
scheduleListLocalData: ScheduleListLocalData;
|
|
29
28
|
}
|
|
29
|
+
export interface ScheduleListViewState {
|
|
30
|
+
listByScheduleType: Record<ScheduleTypes, ScheduleListForTypeState>;
|
|
31
|
+
currentTab: ScheduleTypes;
|
|
32
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { TimeframeTick } from '../../../commonStateTypes/timeframeTick';
|
|
3
|
-
import {
|
|
3
|
+
import { ScheduleTypes } from '../../../entity/jeSchedules/jeSchedulesTypes';
|
|
4
4
|
export declare const ALL_SCHEDULE_LIST_TABS_FILE_TYPES: readonly ["excel"];
|
|
5
5
|
export declare const toScheduleListTabsFileTypeStrict: (v?: string | undefined) => "excel" | undefined;
|
|
6
6
|
export declare type ScheduleListTabsFileType = NonNullable<ReturnType<typeof toScheduleListTabsFileTypeStrict>>;
|
|
7
|
-
export declare const getScheduleListKey: (
|
|
7
|
+
export declare const getScheduleListKey: (selectedCategory: ID, selectedTimeframe: TimeframeTick) => `${string}-${string}--${string}`;
|
|
8
8
|
export declare type ScheduleListKey = ReturnType<typeof getScheduleListKey>;
|
|
9
9
|
export declare const ALL_SCHEDULES_SUB_TABS: readonly ["all", "new", "ongoing", "completed"];
|
|
10
10
|
export declare const toScheduleSubTabType: (v: string) => "all" | "new" | "completed" | "ongoing";
|
|
11
11
|
export declare type ScheduleSubTabType = ReturnType<typeof toScheduleSubTabType>;
|
|
12
|
-
export declare const ALL_SCHEDULES_PAY_SORT_KEYS: readonly ["transactionDate", "vendor", "scheduleCategory", "expenseCategory", "class", "amount", "balanceAsOfToday", "memo", "startMonth", "endMonth", "months", "transactionType", "status", "user"];
|
|
13
|
-
export declare const toScheduleSortKeyType: (v: string) => "status" | "user" | "months" | "amount" | "vendor" | "class" | "memo" | "transactionDate" | "scheduleCategory" | "expenseCategory" | "balanceAsOfToday" | "startMonth" | "endMonth" | "transactionType";
|
|
12
|
+
export declare const ALL_SCHEDULES_PAY_SORT_KEYS: readonly ["transactionDate", "vendor", "scheduleCategory", "expenseCategory", "accumulatedDepreciationCategory", "class", "amount", "balanceAsOfToday", "memo", "startMonth", "endMonth", "months", "transactionType", "status", "assetId", "user"];
|
|
13
|
+
export declare const toScheduleSortKeyType: (v: string) => "status" | "user" | "months" | "amount" | "vendor" | "class" | "memo" | "transactionDate" | "scheduleCategory" | "expenseCategory" | "accumulatedDepreciationCategory" | "balanceAsOfToday" | "startMonth" | "endMonth" | "transactionType" | "assetId";
|
|
14
14
|
export declare type ScheduleListSortKey = ReturnType<typeof toScheduleSortKeyType>;
|
|
15
15
|
export interface DownloadJEScheduleTabOptions {
|
|
16
16
|
timezone: string;
|
|
17
17
|
tabsFileType: ScheduleListTabsFileType;
|
|
18
|
-
tabs:
|
|
18
|
+
tabs: ScheduleTypes[];
|
|
19
19
|
categoryId: ID;
|
|
20
20
|
timeframe: TimeframeTick;
|
|
21
21
|
searchText?: string;
|
|
@@ -9,7 +9,7 @@ const toScheduleListTabsFileTypeStrict = (v) => {
|
|
|
9
9
|
return (0, stringToUnion_1.stringToUnionStrict)((_a = v === null || v === void 0 ? void 0 : v.toLocaleLowerCase()) !== null && _a !== void 0 ? _a : '', exports.ALL_SCHEDULE_LIST_TABS_FILE_TYPES);
|
|
10
10
|
};
|
|
11
11
|
exports.toScheduleListTabsFileTypeStrict = toScheduleListTabsFileTypeStrict;
|
|
12
|
-
const getScheduleListKey = (
|
|
12
|
+
const getScheduleListKey = (selectedCategory, selectedTimeframe) => `${selectedCategory}-${selectedTimeframe.startDate.format(formatZeniDateFY_1.DAY_MONTH_YEAR_FORMAT)}--${selectedTimeframe.endDate.format(formatZeniDateFY_1.DAY_MONTH_YEAR_FORMAT)}`;
|
|
13
13
|
exports.getScheduleListKey = getScheduleListKey;
|
|
14
14
|
exports.ALL_SCHEDULES_SUB_TABS = [
|
|
15
15
|
'all',
|
|
@@ -24,6 +24,7 @@ exports.ALL_SCHEDULES_PAY_SORT_KEYS = [
|
|
|
24
24
|
'vendor',
|
|
25
25
|
'scheduleCategory',
|
|
26
26
|
'expenseCategory',
|
|
27
|
+
'accumulatedDepreciationCategory',
|
|
27
28
|
'class',
|
|
28
29
|
'amount',
|
|
29
30
|
'balanceAsOfToday',
|
|
@@ -33,6 +34,7 @@ exports.ALL_SCHEDULES_PAY_SORT_KEYS = [
|
|
|
33
34
|
'months',
|
|
34
35
|
'transactionType',
|
|
35
36
|
'status',
|
|
37
|
+
'assetId',
|
|
36
38
|
'user',
|
|
37
39
|
];
|
|
38
40
|
const toScheduleSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_SCHEDULES_PAY_SORT_KEYS);
|
|
@@ -18,7 +18,7 @@ export declare const saveNotificationSettingsEpic: (actions$: ActionsObservable<
|
|
|
18
18
|
type: string;
|
|
19
19
|
} | {
|
|
20
20
|
payload: {
|
|
21
|
-
messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "notification_settings_saved";
|
|
21
|
+
messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "notification_settings_saved" | "referral_invite_sent";
|
|
22
22
|
messageText: "failed" | "success";
|
|
23
23
|
type: import("../../..").SnackbarMessageType;
|
|
24
24
|
showStatusIcon?: boolean | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RootState } from '../../reducer';
|
|
2
2
|
export declare const getTasksCardReport: (state: RootState) => {
|
|
3
|
-
reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "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";
|
|
3
|
+
reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "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";
|
|
4
4
|
reportTitle: string;
|
|
5
5
|
version: string | number | undefined;
|
|
6
6
|
status: import("../..").Status | undefined;
|
|
@@ -5,7 +5,7 @@ import { AccountState } from '../../entity/account/accountState';
|
|
|
5
5
|
import { EntityOrder } from '../../commonStateTypes/selectorTypes/selectorTypes';
|
|
6
6
|
import { TopExReport, TopExTimePeriodWithMetaData } from './topExSelectorTypes';
|
|
7
7
|
export declare const getTopExpenses: (accountState: AccountState, topExState: TopExState, numberOfExpenses?: number | undefined) => {
|
|
8
|
-
reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "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";
|
|
8
|
+
reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "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";
|
|
9
9
|
reportTitle: string;
|
|
10
10
|
version: string | number | undefined;
|
|
11
11
|
status: import("../..").Status | undefined;
|
|
@@ -22,7 +22,7 @@ export declare const getTopExpenses: (accountState: AccountState, topExState: To
|
|
|
22
22
|
accountsOrdered: {
|
|
23
23
|
accountId: string;
|
|
24
24
|
accountName: string;
|
|
25
|
-
accountType: "cash_position" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "
|
|
25
|
+
accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets" | undefined;
|
|
26
26
|
accountSubType: string | undefined;
|
|
27
27
|
accountDescription: string;
|
|
28
28
|
logo: import("url-parse")<string> | import("url-parse")<Record<string, string | undefined>> | undefined;
|
|
@@ -9,23 +9,23 @@ import { ZeniAPIStatus } from '../../responsePayload';
|
|
|
9
9
|
import { TransactionListByAccountPayload, TransactionListByClassPayload, TransactionListByEntityPayload } from './transactionListPayload';
|
|
10
10
|
import { TransactionListState, TransactionListUIState, TransactionCategoryType } from './transactionListState';
|
|
11
11
|
export declare const initialState: TransactionListState;
|
|
12
|
-
export declare const parallelFetchAccountTransactionList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "
|
|
12
|
+
export declare const parallelFetchAccountTransactionList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets", period: TimePeriod, accountName?: string | undefined, cacheOverride?: any, includeSubAccountTransactions?: any], {
|
|
13
13
|
accountId: string;
|
|
14
|
-
accountType: "cash_position" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "
|
|
14
|
+
accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets";
|
|
15
15
|
period: TimePeriod;
|
|
16
16
|
accountName: string | undefined;
|
|
17
17
|
cacheOverride: any;
|
|
18
18
|
includeSubAccountTransactions: any;
|
|
19
|
-
}, string, never, never>, fetchAccountTransactionList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "
|
|
19
|
+
}, string, never, never>, fetchAccountTransactionList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets", period: TimePeriod, includeSubAccountTransactions: boolean, accountName?: string | undefined, cacheOverride?: any], {
|
|
20
20
|
accountId: string;
|
|
21
|
-
accountType: "cash_position" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "
|
|
21
|
+
accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets";
|
|
22
22
|
period: TimePeriod;
|
|
23
23
|
accountName: string | undefined;
|
|
24
24
|
includeSubAccountTransactions: boolean;
|
|
25
25
|
cacheOverride: any;
|
|
26
|
-
}, string, never, never>, updateTransactionListByAccount: import("@reduxjs/toolkit").ActionCreatorWithPayload<TransactionListByAccountPayload, string>, updateTransactionListByAccountFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "
|
|
26
|
+
}, string, never, never>, updateTransactionListByAccount: import("@reduxjs/toolkit").ActionCreatorWithPayload<TransactionListByAccountPayload, string>, updateTransactionListByAccountFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets", period: TimePeriod, error: ZeniAPIStatus<Record<string, unknown>>], {
|
|
27
27
|
accountId: string;
|
|
28
|
-
accountType: "cash_position" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "
|
|
28
|
+
accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets";
|
|
29
29
|
period: TimePeriod;
|
|
30
30
|
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
31
31
|
}, string, never, never>, parallelFetchEntityTransactionList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[entity: Entity, period: TimePeriod, cacheOverride?: any], {
|
|
@@ -45,15 +45,15 @@ export declare const parallelFetchAccountTransactionList: import("@reduxjs/toolk
|
|
|
45
45
|
accountId: ID;
|
|
46
46
|
accountType: AccountType;
|
|
47
47
|
uiState: TransactionListUIState;
|
|
48
|
-
}, string>, parallelFetchClassTransactionList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "
|
|
48
|
+
}, string>, parallelFetchClassTransactionList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets", classId: string, period: TimePeriod, cacheOverride?: any], {
|
|
49
49
|
accountId: string;
|
|
50
|
-
accountType: "cash_position" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "
|
|
50
|
+
accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets";
|
|
51
51
|
classId: string;
|
|
52
52
|
period: TimePeriod;
|
|
53
53
|
cacheOverride: any;
|
|
54
|
-
}, string, never, never>, fetchClassTransactionList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "
|
|
54
|
+
}, string, never, never>, fetchClassTransactionList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets", classId: string, period: TimePeriod, cacheOverride?: any], {
|
|
55
55
|
accountId: string;
|
|
56
|
-
accountType: "cash_position" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "
|
|
56
|
+
accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets";
|
|
57
57
|
classId: string;
|
|
58
58
|
period: TimePeriod;
|
|
59
59
|
cacheOverride: any;
|
|
@@ -62,9 +62,9 @@ export declare const parallelFetchAccountTransactionList: import("@reduxjs/toolk
|
|
|
62
62
|
accountType: AccountType;
|
|
63
63
|
classId: ID;
|
|
64
64
|
uiState: TransactionListUIState;
|
|
65
|
-
}, string>, updateTransactionListByClassFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "
|
|
65
|
+
}, string>, updateTransactionListByClassFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets", classId: string, period: TimePeriod, error: ZeniAPIStatus<Record<string, unknown>>], {
|
|
66
66
|
accountId: string;
|
|
67
|
-
accountType: "cash_position" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "
|
|
67
|
+
accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets";
|
|
68
68
|
classId: string;
|
|
69
69
|
period: TimePeriod;
|
|
70
70
|
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
@@ -8,8 +8,8 @@ import { Vendor } from '../../entity/vendor/vendorState';
|
|
|
8
8
|
import { RootState } from '../../reducer';
|
|
9
9
|
import { ZeniDate } from '../../zeniDayJS';
|
|
10
10
|
import { VendorListViewSortKey, VendorListViewYTDSpendSortKey, VendorViewUIState } from './vendorListState';
|
|
11
|
-
export declare const toVendorReportIDType: (v: string) => "operating_expenses_by_vendor" | "vendors_tab" | "prepaid_expenses";
|
|
12
|
-
export declare const toVendorReportIDTypeStrict: (v?: string | undefined) => "operating_expenses_by_vendor" | "vendors_tab" | "prepaid_expenses" | undefined;
|
|
11
|
+
export declare const toVendorReportIDType: (v: string) => "operating_expenses_by_vendor" | "vendors_tab" | "prepaid_expenses" | "fixed_assets";
|
|
12
|
+
export declare const toVendorReportIDTypeStrict: (v?: string | undefined) => "operating_expenses_by_vendor" | "vendors_tab" | "prepaid_expenses" | "fixed_assets" | undefined;
|
|
13
13
|
export declare type VendorReportIDType = ReturnType<typeof toVendorReportIDType>;
|
|
14
14
|
export interface VendorListSelectorView extends SelectorView {
|
|
15
15
|
vendors: VendorListView[];
|
|
@@ -10,6 +10,7 @@ const ALL_VENDOR_REPORT_ID_TYPES = [
|
|
|
10
10
|
'operating_expenses_by_vendor',
|
|
11
11
|
'vendors_tab',
|
|
12
12
|
'prepaid_expenses',
|
|
13
|
+
'fixed_assets',
|
|
13
14
|
];
|
|
14
15
|
const toVendorReportIDType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_VENDOR_REPORT_ID_TYPES);
|
|
15
16
|
exports.toVendorReportIDType = toVendorReportIDType;
|
|
@@ -5,7 +5,7 @@ export declare const getZeniAccountsPromoCard: (state: RootState) => {
|
|
|
5
5
|
maxPossibleInterest: number | undefined;
|
|
6
6
|
maxInsuredAmount: number;
|
|
7
7
|
depositAccountId: string | undefined;
|
|
8
|
-
reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "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";
|
|
8
|
+
reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "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";
|
|
9
9
|
reportTitle: string;
|
|
10
10
|
firstMonthOfFY: 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
11
11
|
fetchState: import("../..").FetchState;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.87",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|
|
77
77
|
"clean": "rimraf lib",
|
|
78
|
-
"test": "jest --config jest.config.json",
|
|
78
|
+
"test": "jest --config jest.config.json --runInBand --detectOpenHandles",
|
|
79
79
|
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
|
|
80
80
|
"find-dead-code": "ts-prune | grep -v '(used in module)'",
|
|
81
81
|
"find-unused-exports": "ts-unused-exports ./tsconfig.json",
|