@zeniai/client-epic-state 4.15.94-betaVR11 → 4.15.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.
- package/lib/view/cashBalance/cashBalancePayload.d.ts +1 -1
- package/lib/view/cashBalance/cashBalanceReducer.js +1 -1
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewSelector.d.ts +0 -1
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewSelector.js +0 -2
- package/package.json +2 -2
|
@@ -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 | null;
|
|
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 // Handle potential null balance from API (e.g., if no accounts exist)
|
|
39
39
|
? (0, balanceChangePayload_1.mapBalancePayloadToBalance)(reportDataPayload.report.balance)
|
|
40
40
|
: undefined;
|
|
41
41
|
const report = (0, viewAndReportPayload_1.mapReportPayloadToReport)(reportDataPayload.report);
|
|
@@ -59,7 +59,6 @@ export interface OnboardingCockpitView extends SelectorView {
|
|
|
59
59
|
};
|
|
60
60
|
sendInviteFetchStateByCompanyId: Record<ID, FetchStateAndError>;
|
|
61
61
|
retryBankAccountConnectionFetchStateByCompanyId: Record<ID, FetchStateAndError>;
|
|
62
|
-
downloadFetchState: FetchStateAndError;
|
|
63
62
|
}
|
|
64
63
|
export declare const getNewOnboardingCustomerView: (state: RootState) => NewOnboardingCustomerView;
|
|
65
64
|
export declare const getOnboardingCockpitView: (state: RootState) => OnboardingCockpitView;
|
|
@@ -99,11 +99,9 @@ exports.getOnboardingCockpitView = (0, toolkit_1.createSelector)((state) => stat
|
|
|
99
99
|
error: qboConnectionPool.error,
|
|
100
100
|
},
|
|
101
101
|
]);
|
|
102
|
-
const downloadFetchState = { fetchState: fetchState, error: error };
|
|
103
102
|
return {
|
|
104
103
|
version: 1,
|
|
105
104
|
fetchState: combinedFetchState.fetchState,
|
|
106
|
-
downloadFetchState,
|
|
107
105
|
sendInviteFetchStateByCompanyId,
|
|
108
106
|
saveFetchState,
|
|
109
107
|
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.95",
|
|
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",
|
|
@@ -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\" \"vitest run\" && rimraf \"lib/**/__mocks__\" \"lib/**/__testHelpers__\"",
|
|
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",
|