@zeniai/client-epic-state 5.0.92-betaNB1 → 5.0.92-betaNB2

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.
@@ -385,10 +385,16 @@ const expenseAutomationReconciliationView = createSlice({
385
385
  },
386
386
  uploadAccountStatement: (draft, action) => {
387
387
  const { accountId, selectedPeriod } = action.payload;
388
- draft.accountReconciliationRecordsBySelectedPeriod[toMonthYearPeriodId(selectedPeriod)].reconciliationByAccountID[accountId].statementUploadStatus = {
388
+ const accountRecon = draft.accountReconciliationRecordsBySelectedPeriod[toMonthYearPeriodId(selectedPeriod)].reconciliationByAccountID[accountId];
389
+ accountRecon.statementUploadStatus = {
389
390
  fetchState: 'In-Progress',
390
391
  error: undefined,
391
392
  };
393
+ accountRecon.parsedStatementData = undefined;
394
+ accountRecon.statementParseStatus = {
395
+ fetchState: 'Not-Started',
396
+ error: undefined,
397
+ };
392
398
  },
393
399
  uploadAccountStatementSuccess: (draft, action) => {
394
400
  const { accountId, selectedPeriod } = action.payload;
@@ -428,7 +434,9 @@ const expenseAutomationReconciliationView = createSlice({
428
434
  },
429
435
  parseStatement: (draft, action) => {
430
436
  const { accountId, selectedPeriod } = action.payload;
431
- draft.accountReconciliationRecordsBySelectedPeriod[toMonthYearPeriodId(selectedPeriod)].reconciliationByAccountID[accountId].statementParseStatus = {
437
+ const accountRecon = draft.accountReconciliationRecordsBySelectedPeriod[toMonthYearPeriodId(selectedPeriod)].reconciliationByAccountID[accountId];
438
+ accountRecon.parsedStatementData = undefined;
439
+ accountRecon.statementParseStatus = {
432
440
  fetchState: 'In-Progress',
433
441
  error: undefined,
434
442
  };
@@ -389,10 +389,16 @@ const expenseAutomationReconciliationView = (0, toolkit_1.createSlice)({
389
389
  },
390
390
  uploadAccountStatement: (draft, action) => {
391
391
  const { accountId, selectedPeriod } = action.payload;
392
- draft.accountReconciliationRecordsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)].reconciliationByAccountID[accountId].statementUploadStatus = {
392
+ const accountRecon = draft.accountReconciliationRecordsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)].reconciliationByAccountID[accountId];
393
+ accountRecon.statementUploadStatus = {
393
394
  fetchState: 'In-Progress',
394
395
  error: undefined,
395
396
  };
397
+ accountRecon.parsedStatementData = undefined;
398
+ accountRecon.statementParseStatus = {
399
+ fetchState: 'Not-Started',
400
+ error: undefined,
401
+ };
396
402
  },
397
403
  uploadAccountStatementSuccess: (draft, action) => {
398
404
  const { accountId, selectedPeriod } = action.payload;
@@ -432,7 +438,9 @@ const expenseAutomationReconciliationView = (0, toolkit_1.createSlice)({
432
438
  },
433
439
  parseStatement: (draft, action) => {
434
440
  const { accountId, selectedPeriod } = action.payload;
435
- draft.accountReconciliationRecordsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)].reconciliationByAccountID[accountId].statementParseStatus = {
441
+ const accountRecon = draft.accountReconciliationRecordsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)].reconciliationByAccountID[accountId];
442
+ accountRecon.parsedStatementData = undefined;
443
+ accountRecon.statementParseStatus = {
436
444
  fetchState: 'In-Progress',
437
445
  error: undefined,
438
446
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "5.0.92-betaNB1",
3
+ "version": "5.0.92-betaNB2",
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",