@zeniai/client-epic-state 4.20.3-betaJK7 → 4.20.3-betaJK9

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.
Files changed (40) hide show
  1. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  2. package/lib/entity/snackbar/snackbarTypes.js +3 -0
  3. package/lib/entity/tenant/tenantReducer.d.ts +5 -2
  4. package/lib/entity/tenant/tenantReducer.js +8 -2
  5. package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +6 -0
  6. package/lib/entity/transaction/payloadTypes/transactionPayload.js +61 -0
  7. package/lib/entity/transaction/stateTypes/transaction.d.ts +6 -0
  8. package/lib/epic.d.ts +2 -1
  9. package/lib/epic.js +2 -1
  10. package/lib/esm/entity/snackbar/snackbarTypes.js +3 -0
  11. package/lib/esm/entity/tenant/tenantReducer.js +7 -1
  12. package/lib/esm/entity/transaction/payloadTypes/transactionPayload.js +61 -0
  13. package/lib/esm/epic.js +2 -1
  14. package/lib/esm/index.js +3 -3
  15. package/lib/esm/view/companyView/companyViewReducer.js +26 -1
  16. package/lib/esm/view/companyView/epic/companyPassport/updateAccountingClassesEnabledEpic.js +61 -0
  17. package/lib/esm/view/companyView/types/companyPassport/companyPassportViewState.js +4 -0
  18. package/lib/esm/view/expenseAutomationView/epics/accountRecon/excludeAccountFromReconciliationEpic.js +19 -0
  19. package/lib/esm/view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic.js +21 -0
  20. package/lib/esm/view/expenseAutomationView/selectors/reconciliationViewSelector.js +2 -0
  21. package/lib/esm/view/spendManagement/autotransferRules/epics/createAutoTransferRuleEpic.js +2 -1
  22. package/lib/esm/view/spendManagement/autotransferRules/epics/fetchAutoTransferReviewDetailEpic.js +1 -1
  23. package/lib/index.d.ts +3 -3
  24. package/lib/index.js +23 -20
  25. package/lib/view/companyView/companyViewReducer.d.ts +6 -1
  26. package/lib/view/companyView/companyViewReducer.js +28 -2
  27. package/lib/view/companyView/epic/companyPassport/updateAccountingClassesEnabledEpic.d.ts +10 -0
  28. package/lib/view/companyView/epic/companyPassport/updateAccountingClassesEnabledEpic.js +65 -0
  29. package/lib/view/companyView/types/companyPassport/companyPassportViewState.d.ts +1 -0
  30. package/lib/view/companyView/types/companyPassport/companyPassportViewState.js +4 -0
  31. package/lib/view/expenseAutomationView/epics/accountRecon/excludeAccountFromReconciliationEpic.d.ts +2 -1
  32. package/lib/view/expenseAutomationView/epics/accountRecon/excludeAccountFromReconciliationEpic.js +19 -0
  33. package/lib/view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic.d.ts +2 -1
  34. package/lib/view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic.js +21 -0
  35. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
  36. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +1 -0
  37. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +2 -0
  38. package/lib/view/spendManagement/autotransferRules/epics/createAutoTransferRuleEpic.js +2 -1
  39. package/lib/view/spendManagement/autotransferRules/epics/fetchAutoTransferReviewDetailEpic.js +1 -1
  40. package/package.json +1 -1
@@ -258,6 +258,8 @@ exports.getExpenseAutomationReconciliationView = (0, toolkit_1.createSelector)((
258
258
  .transactionFetchState,
259
259
  accountListState.byReportId.accountList,
260
260
  ]),
261
+ accountDetectionReason: accountReconForMonthYearPeriod.reconciliationByAccountID[accountID]
262
+ .accountDetectionReason,
261
263
  };
262
264
  });
263
265
  const accountReconciliationBySectionID = {
@@ -63,7 +63,8 @@ function mapAutoTransferRuleLocalDataToPayload(localData, pauseRule, resumeRule)
63
63
  };
64
64
  }
65
65
  const payload = {
66
- ...(localData.amount != null && {
66
+ ...(localData.amount != null &&
67
+ localData.ruleType !== 'percentage_of_balance' && {
67
68
  amount: localData.amount.amount,
68
69
  currency_code: localData.amount.currencyCode,
69
70
  }),
@@ -28,7 +28,7 @@ const fetchAutoTransferReviewDetailEpic = (actions$, state$, zeniAPI) => actions
28
28
  }),
29
29
  };
30
30
  return zeniAPI
31
- .postAndGetJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/rules/transfer/auto/review`, payload)
31
+ .postAndGetJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/transfers/review`, payload)
32
32
  .pipe((0, operators_1.mergeMap)((response) => {
33
33
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
34
34
  return (0, rxjs_1.of)((0, autoTransferRulesReducer_1.updateAutoTransferReviewDetail)(response.data));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.20.3-betaJK7",
3
+ "version": "4.20.3-betaJK9",
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",