@zeniai/client-epic-state 5.2.16 → 5.2.17
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/entity/accountRecon/accountReconReducer.js +8 -1
- package/lib/esm/entity/accountRecon/accountReconReducer.js +8 -1
- package/lib/esm/view/expenseAutomationView/reducers/reconciliationViewReducer.js +3 -0
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +3 -0
- package/package.json +1 -1
|
@@ -104,8 +104,15 @@ const accountRecon = (0, toolkit_1.createSlice)({
|
|
|
104
104
|
},
|
|
105
105
|
reducer(draft, action) {
|
|
106
106
|
const { accountReconKey, statementDataPayload } = action.payload;
|
|
107
|
+
const existing = draft.accountReconByAccountReconKey[accountReconKey];
|
|
108
|
+
if (existing == null) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
107
111
|
draft.accountReconByAccountReconKey[accountReconKey] = {
|
|
108
|
-
...
|
|
112
|
+
...existing,
|
|
113
|
+
// Statement delete removes the reconciliation server-side; drop the
|
|
114
|
+
// stale id so follow-up fetches use account_id instead of recon-id.
|
|
115
|
+
reconciliationId: undefined,
|
|
109
116
|
statementStatus: {
|
|
110
117
|
code: (0, accountReconState_1.toStatementStatusCodeType)(statementDataPayload.statement_upload.statement_status?.code),
|
|
111
118
|
label: statementDataPayload.statement_upload.statement_status?.label,
|
|
@@ -100,8 +100,15 @@ const accountRecon = createSlice({
|
|
|
100
100
|
},
|
|
101
101
|
reducer(draft, action) {
|
|
102
102
|
const { accountReconKey, statementDataPayload } = action.payload;
|
|
103
|
+
const existing = draft.accountReconByAccountReconKey[accountReconKey];
|
|
104
|
+
if (existing == null) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
103
107
|
draft.accountReconByAccountReconKey[accountReconKey] = {
|
|
104
|
-
...
|
|
108
|
+
...existing,
|
|
109
|
+
// Statement delete removes the reconciliation server-side; drop the
|
|
110
|
+
// stale id so follow-up fetches use account_id instead of recon-id.
|
|
111
|
+
reconciliationId: undefined,
|
|
105
112
|
statementStatus: {
|
|
106
113
|
code: toStatementStatusCodeType(statementDataPayload.statement_upload.statement_status?.code),
|
|
107
114
|
label: statementDataPayload.statement_upload.statement_status?.label,
|
|
@@ -548,6 +548,9 @@ const expenseAutomationReconciliationView = createSlice({
|
|
|
548
548
|
};
|
|
549
549
|
accountRecon.combinedStatementGroupId = undefined;
|
|
550
550
|
accountRecon.confirmedCombinedStatementUploads = undefined;
|
|
551
|
+
// Statement delete removes the reconciliation server-side; drop the
|
|
552
|
+
// stale id so Pusher/follow-up fetches use account_id, not recon-id.
|
|
553
|
+
accountRecon.reconciliationId = undefined;
|
|
551
554
|
accountRecon.confirmStatementMappingStatus = {
|
|
552
555
|
fetchState: 'Not-Started',
|
|
553
556
|
error: undefined,
|
|
@@ -553,6 +553,9 @@ const expenseAutomationReconciliationView = (0, toolkit_1.createSlice)({
|
|
|
553
553
|
};
|
|
554
554
|
accountRecon.combinedStatementGroupId = undefined;
|
|
555
555
|
accountRecon.confirmedCombinedStatementUploads = undefined;
|
|
556
|
+
// Statement delete removes the reconciliation server-side; drop the
|
|
557
|
+
// stale id so Pusher/follow-up fetches use account_id, not recon-id.
|
|
558
|
+
accountRecon.reconciliationId = undefined;
|
|
556
559
|
accountRecon.confirmStatementMappingStatus = {
|
|
557
560
|
fetchState: 'Not-Started',
|
|
558
561
|
error: undefined,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.17",
|
|
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",
|