@zeniai/client-epic-state 5.0.55-betaML3 → 5.0.55-betaML4
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 -2
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +1 -0
- package/lib/entity/account/accountSelector.d.ts +4 -0
- package/lib/entity/account/accountSelector.js +7 -1
- package/lib/entity/account/accountState.d.ts +1 -1
- 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/forecast/forecastState.d.ts +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/sectionProjectView/sectionProjectView.d.ts +1 -1
- package/lib/entity/sectionProjectView/sectionProjectViewReducer.d.ts +2 -2
- package/lib/esm/commonStateTypes/viewAndReport/viewAndReport.js +1 -0
- package/lib/esm/entity/account/accountSelector.js +5 -0
- package/lib/esm/index.js +2 -2
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.js +6 -3
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/fetchTransferAccountsEpic.js +17 -12
- package/lib/esm/view/expenseAutomationView/reducers/transactionsViewReducer.js +22 -9
- package/lib/esm/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +12 -1
- package/lib/esm/view/expenseAutomationView/types/transactionsViewState.js +5 -0
- package/lib/esm/view/transactionDetail/epics/transactionDetailEpic.js +7 -3
- package/lib/esm/view/transactionDetail/transactionDetailSelector.js +12 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -2
- package/lib/tsconfig.typecheck.tsbuildinfo +1 -1
- package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
- package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
- package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
- package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
- package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
- package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
- package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.d.ts +2 -2
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.js +5 -2
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransferAccountsEpic.d.ts +2 -2
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransferAccountsEpic.js +16 -11
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +8 -3
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +23 -10
- package/lib/view/expenseAutomationView/selectorTypes/transactionsViewSelectorTypes.d.ts +1 -0
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +11 -0
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +5 -0
- package/lib/view/expenseAutomationView/types/transactionsViewState.js +6 -1
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
- package/lib/view/reportsResync/reportsResyncReducer.d.ts +2 -2
- package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
- package/lib/view/topEx/topExSelector.d.ts +1 -1
- package/lib/view/transactionDetail/epics/transactionDetailEpic.d.ts +2 -2
- package/lib/view/transactionDetail/epics/transactionDetailEpic.js +6 -2
- package/lib/view/transactionDetail/transactionDetailSelector.d.ts +2 -0
- package/lib/view/transactionDetail/transactionDetailSelector.js +11 -0
- package/package.json +1 -1
|
@@ -19,6 +19,8 @@ export interface TransactionDetailReport extends SelectorView {
|
|
|
19
19
|
classHierarchyList: NestedClassHierarchyForReport[];
|
|
20
20
|
classList: ClassListSelectorView;
|
|
21
21
|
createTransferEntryStatus: FetchState;
|
|
22
|
+
/** Resolved credit-card pool for credit_card_payment transfer drawer. */
|
|
23
|
+
creditCardAccountsForTransferList: AccountBase[];
|
|
22
24
|
deleteStatusByAttachmentName: Record<string, FetchStateAndError>;
|
|
23
25
|
isAccountingClassesEnabled: boolean;
|
|
24
26
|
isAccountingProjectsEnabled: boolean;
|
|
@@ -88,6 +88,16 @@ const getTransactionDetail = (state, transactionId, fetchLinkedTransactions = tr
|
|
|
88
88
|
: accountsList.accounts
|
|
89
89
|
.map((a) => (0, accountSelector_1.getAccountBase)(accountState, a.accountId, 'account_list'))
|
|
90
90
|
.filter((account) => account != null);
|
|
91
|
+
const creditCardAccountsFromApi = expenseAutomationTransactionsViewState.creditCardAccountsForTransfer.accountIds
|
|
92
|
+
.map((id) => (0, accountSelector_1.getAccountBaseForCreditCardTransferAccounts)(accountState, id))
|
|
93
|
+
.filter((account) => account != null);
|
|
94
|
+
const coaCreditCardsFallback = accountsList.accounts
|
|
95
|
+
.map((a) => (0, accountSelector_1.getAccountBase)(accountState, a.accountId, 'account_list'))
|
|
96
|
+
.filter((account) => account != null)
|
|
97
|
+
.filter((a) => a.accountType === 'credit_card');
|
|
98
|
+
const creditCardAccountsForTransferList = creditCardAccountsFromApi.length > 0
|
|
99
|
+
? creditCardAccountsFromApi
|
|
100
|
+
: coaCreditCardsFallback;
|
|
91
101
|
return {
|
|
92
102
|
reportId: 'transaction_detail',
|
|
93
103
|
reportTitle: 'Transaction Detail',
|
|
@@ -105,6 +115,7 @@ const getTransactionDetail = (state, transactionId, fetchLinkedTransactions = tr
|
|
|
105
115
|
classList: classList,
|
|
106
116
|
isAccountingClassesEnabled,
|
|
107
117
|
createTransferEntryStatus: expenseAutomationTransactionsViewState.createTransferEntryStatus,
|
|
118
|
+
creditCardAccountsForTransferList,
|
|
108
119
|
transferAccounts: transferAccountsList,
|
|
109
120
|
isAccountingProjectsEnabled,
|
|
110
121
|
projectList,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.0.55-
|
|
3
|
+
"version": "5.0.55-betaML4",
|
|
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
|
"module": "lib/esm/index.js",
|