@zeniai/client-epic-state 5.0.7-betaRD1 → 5.0.7
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/esm/view/aiAccountantView/aiAccountantViewReducer.js +0 -3
- package/lib/esm/view/aiAccountantView/aiAccountantViewSelector.js +0 -5
- package/lib/tsconfig.typecheck.tsbuildinfo +1 -1
- package/lib/view/aiAccountantView/aiAccountantViewReducer.js +0 -3
- package/lib/view/aiAccountantView/aiAccountantViewSelector.d.ts +1 -3
- package/lib/view/aiAccountantView/aiAccountantViewSelector.js +0 -5
- package/package.json +1 -1
|
@@ -83,9 +83,6 @@ const aiAccountantView = (0, toolkit_1.createSlice)({
|
|
|
83
83
|
},
|
|
84
84
|
triggerAiAccountantJobSuccess(draft) {
|
|
85
85
|
draft.triggerJobStatus = { fetchState: 'Completed' };
|
|
86
|
-
// Bulk selection resets after a successful fire so checkboxes
|
|
87
|
-
// return to an empty state along with the customer-list refresh.
|
|
88
|
-
draft.selectedTenantIdsForJobTrigger = [];
|
|
89
86
|
},
|
|
90
87
|
triggerAiAccountantJobFailure(draft, action) {
|
|
91
88
|
draft.triggerJobStatus = { fetchState: 'Error', error: action.payload };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FetchStateAndError
|
|
1
|
+
import { FetchStateAndError } from '../../commonStateTypes/common';
|
|
2
2
|
import { SelectorView } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
3
3
|
import { AiAccountantCustomerView } from '../../entity/aiAccountantCustomer/aiAccountantCustomerSelector';
|
|
4
4
|
import { RootState } from '../../reducer';
|
|
@@ -8,9 +8,7 @@ export interface AiAccountantCockpitView extends SelectorView {
|
|
|
8
8
|
customers: AiAccountantCustomerView[];
|
|
9
9
|
customerViewStateByTenantId: Record<string, AiAccountantCustomerViewState>;
|
|
10
10
|
selectedCustomersForJobTrigger: AiAccountantCustomerView[];
|
|
11
|
-
selectedTenantIds: ID[];
|
|
12
11
|
triggerJobStatus: FetchStateAndError;
|
|
13
12
|
uiState: AiAccountantUIState;
|
|
14
|
-
unonboardedTenantIds: ID[];
|
|
15
13
|
}
|
|
16
14
|
export declare const getAiAccountantCockpitView: (state: RootState) => AiAccountantCockpitView;
|
|
@@ -33,9 +33,6 @@ exports.getAiAccountantCockpitView = (0, toolkit_1.createSelector)((state) => st
|
|
|
33
33
|
// Sorting
|
|
34
34
|
const sortedCustomers = getSortedCustomers(filteredCustomers, uiState.sortKey, uiState.sortOrder);
|
|
35
35
|
const selectedCustomersForJobTrigger = allCustomers.filter((customer) => selectedTenantIdsForJobTrigger.includes(customer.tenantId));
|
|
36
|
-
const unonboardedTenantIds = allCustomers
|
|
37
|
-
.filter((customer) => customer.enrollment == null)
|
|
38
|
-
.map((customer) => customer.tenantId);
|
|
39
36
|
return {
|
|
40
37
|
averageAccuracy: calcOverallAverageAccuracy(allCustomers),
|
|
41
38
|
fetchState: customersFetchStatus.fetchState,
|
|
@@ -43,10 +40,8 @@ exports.getAiAccountantCockpitView = (0, toolkit_1.createSelector)((state) => st
|
|
|
43
40
|
customers: sortedCustomers,
|
|
44
41
|
customerViewStateByTenantId: customersByTenantId,
|
|
45
42
|
selectedCustomersForJobTrigger,
|
|
46
|
-
selectedTenantIds: selectedTenantIdsForJobTrigger,
|
|
47
43
|
triggerJobStatus,
|
|
48
44
|
uiState,
|
|
49
|
-
unonboardedTenantIds,
|
|
50
45
|
};
|
|
51
46
|
});
|
|
52
47
|
// ── Helpers ──
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.0.7
|
|
3
|
+
"version": "5.0.7",
|
|
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",
|