@zeniai/client-epic-state 5.2.62-beta1MM → 5.2.62-beta2MM
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.
|
@@ -318,16 +318,21 @@ export function getExpenseAutomationActualMatchingMatchView(state, matchId) {
|
|
|
318
318
|
let selector = matchViewSelectorById.get(matchId);
|
|
319
319
|
if (selector == null) {
|
|
320
320
|
selector = createSelector([
|
|
321
|
-
(root) => root.expenseAutomationActualMatchingViewState,
|
|
321
|
+
(root) => root.expenseAutomationActualMatchingViewState.detailFetchStateByMatchId[matchId] ?? NOT_STARTED,
|
|
322
|
+
(root) => root.expenseAutomationActualMatchingViewState.ignoreStatusByMatchId[matchId] ?? NOT_STARTED,
|
|
323
|
+
(root) => root.expenseAutomationActualMatchingViewState.lastMatchResultsByMatchId?.[matchId],
|
|
324
|
+
(root) => root.expenseAutomationActualMatchingViewState.lastUndoResultsByMatchId?.[matchId],
|
|
325
|
+
(root) => root.expenseAutomationActualMatchingViewState.detailRefreshStatusByMatchId[matchId] ?? NOT_STARTED,
|
|
326
|
+
(root) => root.expenseAutomationActualMatchingViewState.undoReversalStatusByMatchId[matchId] ?? NOT_STARTED,
|
|
322
327
|
(root) => getActualMatchingMatchById(root.actualMatchingState, matchId),
|
|
323
|
-
], (
|
|
324
|
-
detailFetchState
|
|
325
|
-
ignoreStatus
|
|
326
|
-
lastMatchResults
|
|
327
|
-
lastUndoResults
|
|
328
|
+
], (detailFetchState, ignoreStatus, lastMatchResults, lastUndoResults, refreshStatus, undoReversalStatus, match) => ({
|
|
329
|
+
detailFetchState,
|
|
330
|
+
ignoreStatus,
|
|
331
|
+
lastMatchResults,
|
|
332
|
+
lastUndoResults,
|
|
328
333
|
match: match == null ? undefined : toActualMatchingMatchView(match),
|
|
329
|
-
refreshStatus
|
|
330
|
-
undoReversalStatus
|
|
334
|
+
refreshStatus,
|
|
335
|
+
undoReversalStatus,
|
|
331
336
|
}));
|
|
332
337
|
matchViewSelectorById.set(matchId, selector);
|
|
333
338
|
}
|
|
@@ -340,16 +340,21 @@ function getExpenseAutomationActualMatchingMatchView(state, matchId) {
|
|
|
340
340
|
let selector = matchViewSelectorById.get(matchId);
|
|
341
341
|
if (selector == null) {
|
|
342
342
|
selector = (0, toolkit_1.createSelector)([
|
|
343
|
-
(root) => root.expenseAutomationActualMatchingViewState,
|
|
343
|
+
(root) => root.expenseAutomationActualMatchingViewState.detailFetchStateByMatchId[matchId] ?? NOT_STARTED,
|
|
344
|
+
(root) => root.expenseAutomationActualMatchingViewState.ignoreStatusByMatchId[matchId] ?? NOT_STARTED,
|
|
345
|
+
(root) => root.expenseAutomationActualMatchingViewState.lastMatchResultsByMatchId?.[matchId],
|
|
346
|
+
(root) => root.expenseAutomationActualMatchingViewState.lastUndoResultsByMatchId?.[matchId],
|
|
347
|
+
(root) => root.expenseAutomationActualMatchingViewState.detailRefreshStatusByMatchId[matchId] ?? NOT_STARTED,
|
|
348
|
+
(root) => root.expenseAutomationActualMatchingViewState.undoReversalStatusByMatchId[matchId] ?? NOT_STARTED,
|
|
344
349
|
(root) => (0, actualMatchingSelector_1.getActualMatchingMatchById)(root.actualMatchingState, matchId),
|
|
345
|
-
], (
|
|
346
|
-
detailFetchState
|
|
347
|
-
ignoreStatus
|
|
348
|
-
lastMatchResults
|
|
349
|
-
lastUndoResults
|
|
350
|
+
], (detailFetchState, ignoreStatus, lastMatchResults, lastUndoResults, refreshStatus, undoReversalStatus, match) => ({
|
|
351
|
+
detailFetchState,
|
|
352
|
+
ignoreStatus,
|
|
353
|
+
lastMatchResults,
|
|
354
|
+
lastUndoResults,
|
|
350
355
|
match: match == null ? undefined : toActualMatchingMatchView(match),
|
|
351
|
-
refreshStatus
|
|
352
|
-
undoReversalStatus
|
|
356
|
+
refreshStatus,
|
|
357
|
+
undoReversalStatus,
|
|
353
358
|
}));
|
|
354
359
|
matchViewSelectorById.set(matchId, selector);
|
|
355
360
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.2.62-
|
|
3
|
+
"version": "5.2.62-beta2MM",
|
|
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",
|