@zeniai/client-epic-state 5.1.92-betaRD10 → 5.1.92-betaRD11
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/expenseAutomationView/epics/jeSchedule/newSchedule/searchTransactionsForNewScheduleEpic.js +8 -2
- package/lib/esm/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +2 -1
- package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/searchTransactionsForNewScheduleEpic.js +8 -2
- package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.d.ts +1 -0
- package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +2 -1
- package/package.json +1 -1
|
@@ -6,8 +6,14 @@ import { updateScheduleTransactions } from '../../../../../entity/transaction/tr
|
|
|
6
6
|
import { createZeniAPIStatus, isSuccessResponse, } from '../../../../../responsePayload';
|
|
7
7
|
import { searchTransactionsForNewSchedule, searchTransactionsForNewScheduleFailure, searchTransactionsForNewScheduleSuccess, } from '../../../reducers/jeSchedulesViewReducer';
|
|
8
8
|
import { MIN_NEW_SCHEDULE_SEARCH_LENGTH } from '../../../types/jeSchedulesViewState';
|
|
9
|
-
/**
|
|
10
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Dropdown-sized result set. The endpoint is paginated — it takes a `page_token` $skip offset and
|
|
11
|
+
* returns `next_page_token` — but nothing here reads or sends those, so this is the whole result
|
|
12
|
+
* set the form ever sees. 20 rather than the backend's default of 10 because a text search for one
|
|
13
|
+
* known transaction was running out of room; the cap server-side is 100 if this needs raising again
|
|
14
|
+
* before infinite scroll is wired up.
|
|
15
|
+
*/
|
|
16
|
+
const NEW_SCHEDULE_SEARCH_PAGE_SIZE = 20;
|
|
11
17
|
/** Fallback when the backend sends a null currency for a search result. */
|
|
12
18
|
const DEFAULT_CURRENCY_CODE = 'USD';
|
|
13
19
|
const DEFAULT_CURRENCY_SYMBOL = '$';
|
|
@@ -194,7 +194,7 @@ export function getExpenseAutomationJESchedulesView(state) {
|
|
|
194
194
|
const accruedSchedules = [];
|
|
195
195
|
const oneTimeAccruals = [];
|
|
196
196
|
const { accountState, accountListState, classState, classListState, expenseAutomationJESchedulesViewState, expenseAutomationViewState, monthEndCloseChecksState, monthEndCloseChecksViewState, } = state;
|
|
197
|
-
const { jeScheduleTransactionKeysByPeriodAndTab, jeScheduleAccruedKeysByPeriodAndTab, jeScheduleOneTimeAccrualKeysByPeriodAndTab, failedJeScheduleTransactionKeysByPeriodAndTab, jeScheduleLocalDataById, postStatusById, ignoreStatusById, revertStatusById, uiState, error, fetchState, refreshStatus, newSchedule, } = expenseAutomationJESchedulesViewState;
|
|
197
|
+
const { jeScheduleTransactionKeysByPeriodAndTab, jeScheduleAccruedKeysByPeriodAndTab, jeScheduleOneTimeAccrualKeysByPeriodAndTab, failedJeScheduleTransactionKeysByPeriodAndTab, jeScheduleLocalDataById, postStatusById, ignoreStatusById, revertStatusById, oneTimeAccrualActionStatusById, uiState, error, fetchState, refreshStatus, newSchedule, } = expenseAutomationJESchedulesViewState;
|
|
198
198
|
const accountSettingsView = getJEAccountSettingsView(state);
|
|
199
199
|
const newScheduleView = newSchedule.selectedDetailScheduleType === 'fixed_assets' ||
|
|
200
200
|
newSchedule.selectedDetailScheduleType === 'prepaid_expenses'
|
|
@@ -409,6 +409,7 @@ export function getExpenseAutomationJESchedulesView(state) {
|
|
|
409
409
|
postStatusById: postStatusById,
|
|
410
410
|
ignoreStatusById: ignoreStatusById,
|
|
411
411
|
revertStatusById: revertStatusById,
|
|
412
|
+
oneTimeAccrualActionStatusById: oneTimeAccrualActionStatusById,
|
|
412
413
|
fetchState: reducedFetchStatus.fetchState,
|
|
413
414
|
jeScheduleLocalDataById: jeScheduleLocalDataById,
|
|
414
415
|
uiState: uiState,
|
|
@@ -9,8 +9,14 @@ const transactionReducer_1 = require("../../../../../entity/transaction/transact
|
|
|
9
9
|
const responsePayload_1 = require("../../../../../responsePayload");
|
|
10
10
|
const jeSchedulesViewReducer_1 = require("../../../reducers/jeSchedulesViewReducer");
|
|
11
11
|
const jeSchedulesViewState_1 = require("../../../types/jeSchedulesViewState");
|
|
12
|
-
/**
|
|
13
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Dropdown-sized result set. The endpoint is paginated — it takes a `page_token` $skip offset and
|
|
14
|
+
* returns `next_page_token` — but nothing here reads or sends those, so this is the whole result
|
|
15
|
+
* set the form ever sees. 20 rather than the backend's default of 10 because a text search for one
|
|
16
|
+
* known transaction was running out of room; the cap server-side is 100 if this needs raising again
|
|
17
|
+
* before infinite scroll is wired up.
|
|
18
|
+
*/
|
|
19
|
+
const NEW_SCHEDULE_SEARCH_PAGE_SIZE = 20;
|
|
14
20
|
/** Fallback when the backend sends a null currency for a search result. */
|
|
15
21
|
const DEFAULT_CURRENCY_CODE = 'USD';
|
|
16
22
|
const DEFAULT_CURRENCY_SYMBOL = '$';
|
|
@@ -48,6 +48,7 @@ export interface ExpenseAutomationJESchedulesViewSelector extends SelectorView {
|
|
|
48
48
|
};
|
|
49
49
|
kpiSummary: JEKpiSummary;
|
|
50
50
|
newScheduleView: NewScheduleView | undefined;
|
|
51
|
+
oneTimeAccrualActionStatusById: Record<ID, FetchStateAndError>;
|
|
51
52
|
pendingReviewSchedules: JEScheduleRow[];
|
|
52
53
|
pendingReviewTotal: number;
|
|
53
54
|
postStatusById: Record<ID, FetchStateAndError>;
|
|
@@ -209,7 +209,7 @@ function getExpenseAutomationJESchedulesView(state) {
|
|
|
209
209
|
const accruedSchedules = [];
|
|
210
210
|
const oneTimeAccruals = [];
|
|
211
211
|
const { accountState, accountListState, classState, classListState, expenseAutomationJESchedulesViewState, expenseAutomationViewState, monthEndCloseChecksState, monthEndCloseChecksViewState, } = state;
|
|
212
|
-
const { jeScheduleTransactionKeysByPeriodAndTab, jeScheduleAccruedKeysByPeriodAndTab, jeScheduleOneTimeAccrualKeysByPeriodAndTab, failedJeScheduleTransactionKeysByPeriodAndTab, jeScheduleLocalDataById, postStatusById, ignoreStatusById, revertStatusById, uiState, error, fetchState, refreshStatus, newSchedule, } = expenseAutomationJESchedulesViewState;
|
|
212
|
+
const { jeScheduleTransactionKeysByPeriodAndTab, jeScheduleAccruedKeysByPeriodAndTab, jeScheduleOneTimeAccrualKeysByPeriodAndTab, failedJeScheduleTransactionKeysByPeriodAndTab, jeScheduleLocalDataById, postStatusById, ignoreStatusById, revertStatusById, oneTimeAccrualActionStatusById, uiState, error, fetchState, refreshStatus, newSchedule, } = expenseAutomationJESchedulesViewState;
|
|
213
213
|
const accountSettingsView = (0, jeAccountSettingsViewSelector_1.getJEAccountSettingsView)(state);
|
|
214
214
|
const newScheduleView = newSchedule.selectedDetailScheduleType === 'fixed_assets' ||
|
|
215
215
|
newSchedule.selectedDetailScheduleType === 'prepaid_expenses'
|
|
@@ -424,6 +424,7 @@ function getExpenseAutomationJESchedulesView(state) {
|
|
|
424
424
|
postStatusById: postStatusById,
|
|
425
425
|
ignoreStatusById: ignoreStatusById,
|
|
426
426
|
revertStatusById: revertStatusById,
|
|
427
|
+
oneTimeAccrualActionStatusById: oneTimeAccrualActionStatusById,
|
|
427
428
|
fetchState: reducedFetchStatus.fetchState,
|
|
428
429
|
jeScheduleLocalDataById: jeScheduleLocalDataById,
|
|
429
430
|
uiState: uiState,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.1.92-
|
|
3
|
+
"version": "5.1.92-betaRD11",
|
|
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",
|