@zeniai/client-epic-state 4.15.93-beta1N → 4.15.94-betaVR11
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/view/cashBalance/cashBalancePayload.d.ts +1 -1
- package/lib/view/cashBalance/cashBalanceReducer.js +1 -1
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +9 -7
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewSelector.d.ts +1 -0
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewSelector.js +2 -0
- package/package.json +3 -3
|
@@ -4,6 +4,6 @@ import { AccountPayload } from '../../entity/account/accountPayload';
|
|
|
4
4
|
import { ZeniReportResponse } from '../../responsePayload';
|
|
5
5
|
export interface CashBalancePayload extends ReportPayload {
|
|
6
6
|
accounts: AccountPayload[];
|
|
7
|
-
balance: BalancePayload
|
|
7
|
+
balance: BalancePayload;
|
|
8
8
|
}
|
|
9
9
|
export type CashBalanceResponse = ZeniReportResponse<CashBalancePayload>;
|
|
@@ -35,7 +35,7 @@ const cashBalance = (0, toolkit_1.createSlice)({
|
|
|
35
35
|
const reportDataPayload = action.payload;
|
|
36
36
|
draft.accountIDs = reportDataPayload.report.accounts.map((payload) => payload.account_id);
|
|
37
37
|
draft.balance =
|
|
38
|
-
reportDataPayload.report.balance != null
|
|
38
|
+
reportDataPayload.report.balance != null
|
|
39
39
|
? (0, balanceChangePayload_1.mapBalancePayloadToBalance)(reportDataPayload.report.balance)
|
|
40
40
|
: undefined;
|
|
41
41
|
const report = (0, viewAndReportPayload_1.mapReportPayloadToReport)(reportDataPayload.report);
|
|
@@ -338,18 +338,20 @@ const expenseAutomationTransactionsView = (0, toolkit_1.createSlice)({
|
|
|
338
338
|
},
|
|
339
339
|
},
|
|
340
340
|
fetchTransactionCategorizationSuccess(draft, action) {
|
|
341
|
-
const { selectedTab } = action.payload;
|
|
342
|
-
if (
|
|
341
|
+
const { selectedTab, refreshViewInBackground } = action.payload;
|
|
342
|
+
if (draft.transactionCategorizationView[selectedTab].fetchState ===
|
|
343
|
+
'In-Progress' ||
|
|
344
|
+
refreshViewInBackground !== true) {
|
|
345
|
+
draft.transactionCategorizationView[selectedTab].fetchState =
|
|
346
|
+
'Completed';
|
|
347
|
+
draft.transactionCategorizationView[selectedTab].error = undefined;
|
|
348
|
+
}
|
|
349
|
+
else {
|
|
343
350
|
draft.transactionCategorizationView[selectedTab].refreshStatus = {
|
|
344
351
|
fetchState: 'Completed',
|
|
345
352
|
error: undefined,
|
|
346
353
|
};
|
|
347
354
|
}
|
|
348
|
-
else {
|
|
349
|
-
draft.transactionCategorizationView[selectedTab].fetchState =
|
|
350
|
-
'Completed';
|
|
351
|
-
draft.transactionCategorizationView[selectedTab].error = undefined;
|
|
352
|
-
}
|
|
353
355
|
},
|
|
354
356
|
fetchTransactionCategorizationFailure(draft, action) {
|
|
355
357
|
const { selectedTab, selectedPeriod } = action.payload;
|
|
@@ -59,6 +59,7 @@ export interface OnboardingCockpitView extends SelectorView {
|
|
|
59
59
|
};
|
|
60
60
|
sendInviteFetchStateByCompanyId: Record<ID, FetchStateAndError>;
|
|
61
61
|
retryBankAccountConnectionFetchStateByCompanyId: Record<ID, FetchStateAndError>;
|
|
62
|
+
downloadFetchState: FetchStateAndError;
|
|
62
63
|
}
|
|
63
64
|
export declare const getNewOnboardingCustomerView: (state: RootState) => NewOnboardingCustomerView;
|
|
64
65
|
export declare const getOnboardingCockpitView: (state: RootState) => OnboardingCockpitView;
|
|
@@ -99,9 +99,11 @@ exports.getOnboardingCockpitView = (0, toolkit_1.createSelector)((state) => stat
|
|
|
99
99
|
error: qboConnectionPool.error,
|
|
100
100
|
},
|
|
101
101
|
]);
|
|
102
|
+
const downloadFetchState = { fetchState: fetchState, error: error };
|
|
102
103
|
return {
|
|
103
104
|
version: 1,
|
|
104
105
|
fetchState: combinedFetchState.fetchState,
|
|
106
|
+
downloadFetchState,
|
|
105
107
|
sendInviteFetchStateByCompanyId,
|
|
106
108
|
saveFetchState,
|
|
107
109
|
error: error,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.94-betaVR11",
|
|
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",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"cross-spawn": ">=7.0.5",
|
|
80
80
|
"@babel/runtime": ">=7.26.10",
|
|
81
81
|
"@babel/helpers": ">=7.26.10",
|
|
82
|
-
"minimatch": "
|
|
82
|
+
"minimatch": "^7.4.6",
|
|
83
83
|
"brace-expansion": "^2.0.2"
|
|
84
84
|
},
|
|
85
85
|
"scripts": {
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"find-dead-code": "ts-prune | grep -v '(used in module)'",
|
|
90
90
|
"find-unused-exports": "ts-unused-exports ./tsconfig.json",
|
|
91
91
|
"circular-dependency": "npx madge --circular --extensions ts ./src",
|
|
92
|
-
"build": "concurrently --kill-others-on-fail --handle-input \"eslint . --ext .js,.jsx,.ts,.tsx\" \"tsc\"
|
|
92
|
+
"build": "concurrently --kill-others-on-fail --handle-input \"eslint . --ext .js,.jsx,.ts,.tsx\" \"tsc\"",
|
|
93
93
|
"only-build": "concurrently --kill-others-on-fail --handle-input \"eslint . --ext .js,.jsx,.ts,.tsx\" \"tsc\" && rimraf \"lib/**/__mocks__\" \"lib/**/__testHelpers__\"",
|
|
94
94
|
"format": "prettier --write --ignore-unknown \"src/**/*\"",
|
|
95
95
|
"format-watch": "(git diff --name-only --diff-filter=ACM && git ls-files --others --exclude-standard) | grep -E '\\.(ts|tsx)$' | xargs prettier --write",
|