@zeniai/client-epic-state 5.0.31-betaAR3 → 5.0.31-betaAR5
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/entity/account/accountSelector.d.ts +2 -7
- package/lib/entity/account/accountSelector.js +3 -0
- package/lib/esm/entity/account/accountSelector.js +3 -0
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.js +1 -1
- package/lib/tsconfig.typecheck.tsbuildinfo +1 -1
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.js +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AccountsViewParentID } from '../../commonStateTypes/accountView/nestedAccountID';
|
|
2
2
|
import { ClassesViewParentID } from '../../commonStateTypes/classesView/nestedClassID';
|
|
3
|
-
import { ProjectsViewParentID } from '../../commonStateTypes/projectView/projectViewParentID';
|
|
4
3
|
import { AdditionalBalancesOptions } from '../../commonStateTypes/coaBalance/additionalBalances/getAdditionalBalances';
|
|
5
4
|
import { COABalancesFilter } from '../../commonStateTypes/coaBalance/coaBalancesFilter';
|
|
6
5
|
import { ID } from '../../commonStateTypes/common';
|
|
6
|
+
import { ProjectsViewParentID } from '../../commonStateTypes/projectView/projectViewParentID';
|
|
7
7
|
import { EntityOrder } from '../../commonStateTypes/selectorTypes/selectorTypes';
|
|
8
8
|
import { ReportIDPlusForecastID } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
9
9
|
import { Account, AccountBase, AccountState, AccountType } from './accountState';
|
|
@@ -132,12 +132,7 @@ export declare const getAllAccounts: (accountState: AccountState) => Account[];
|
|
|
132
132
|
export interface AccountFilterOption {
|
|
133
133
|
accountId: ID;
|
|
134
134
|
accountName: string;
|
|
135
|
-
|
|
136
|
-
* Account type for the underlying account (e.g. 'bank', 'credit_card', 'expenses').
|
|
137
|
-
* Required by the Payment Account Type filter dropdown so it can show only the
|
|
138
|
-
* types actually present on the tenant rather than the full ALL_ACCOUNT_TYPES list.
|
|
139
|
-
*/
|
|
140
|
-
accountType: AccountType | undefined;
|
|
135
|
+
accountType: AccountType;
|
|
141
136
|
}
|
|
142
137
|
/**
|
|
143
138
|
* Partitions accounts for transaction filter dropdowns: bank/credit_card → paymentAccountNames,
|
|
@@ -208,6 +208,9 @@ const getTransactionFilterAccountOptions = (accountState) => {
|
|
|
208
208
|
const paymentAccountNames = [];
|
|
209
209
|
const categoryOptions = [];
|
|
210
210
|
for (const account of accounts) {
|
|
211
|
+
if (account.accountType == null) {
|
|
212
|
+
continue;
|
|
213
|
+
}
|
|
211
214
|
const option = {
|
|
212
215
|
accountId: account.accountId,
|
|
213
216
|
accountName: account.accountName,
|
|
@@ -194,6 +194,9 @@ export const getTransactionFilterAccountOptions = (accountState) => {
|
|
|
194
194
|
const paymentAccountNames = [];
|
|
195
195
|
const categoryOptions = [];
|
|
196
196
|
for (const account of accounts) {
|
|
197
|
+
if (account.accountType == null) {
|
|
198
|
+
continue;
|
|
199
|
+
}
|
|
197
200
|
const option = {
|
|
198
201
|
accountId: account.accountId,
|
|
199
202
|
accountName: account.accountName,
|
|
@@ -25,7 +25,7 @@ export const fetchTransactionCategorizationEpic = (actions$, state$, zeniAPI) =>
|
|
|
25
25
|
search_text: uiState.searchString,
|
|
26
26
|
};
|
|
27
27
|
return zeniAPI
|
|
28
|
-
.getJSON(
|
|
28
|
+
.getJSON(`https://qa.api.zeni.ai/version/accounting/amitesh/1.0/expense-automation/transactions?query=${encodeURIComponent(JSON.stringify(queryParam))}`)
|
|
29
29
|
.pipe(mergeMap((response) => {
|
|
30
30
|
if (isSuccessResponse(response) && response.data != null) {
|
|
31
31
|
const updateActions = [];
|