@zeniai/client-epic-state 4.19.82-beta0ND → 4.19.83

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 (68) hide show
  1. package/lib/entity/account/accountPayload.d.ts +0 -2
  2. package/lib/entity/account/accountPayload.js +0 -2
  3. package/lib/entity/account/accountState.d.ts +0 -2
  4. package/lib/entity/company/companyPayload.d.ts +0 -13
  5. package/lib/entity/company/companyPayload.js +0 -21
  6. package/lib/entity/company/companyStateTypes.d.ts +0 -13
  7. package/lib/epic.d.ts +1 -3
  8. package/lib/epic.js +1 -3
  9. package/lib/esm/entity/account/accountPayload.js +0 -2
  10. package/lib/esm/entity/chargeCardTransaction/chargeCardTransactionPayload.js +2 -2
  11. package/lib/esm/entity/company/companyPayload.js +0 -21
  12. package/lib/esm/epic.js +1 -3
  13. package/lib/esm/index.js +7 -9
  14. package/lib/esm/view/companyView/epic/companyPassport/updateCompanyDetailsEpic.js +0 -6
  15. package/lib/esm/view/companyView/types/companyPassport/companyPassportLocalData.js +0 -13
  16. package/lib/esm/view/companyView/types/companyPassportViewPayload.js +12 -55
  17. package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/triggerReviewTabRefetchEpic.js +3 -2
  18. package/lib/esm/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +2 -2
  19. package/lib/esm/view/expenseAutomationView/reducers/transactionsViewReducer.js +1 -20
  20. package/lib/esm/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +1 -2
  21. package/lib/esm/view/expenseAutomationView/types/transactionsViewState.js +1 -2
  22. package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewSelector.js +4 -22
  23. package/lib/esm/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryDownloadSelector.js +2 -2
  24. package/lib/esm/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistorySelector.js +2 -2
  25. package/lib/esm/view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailSelector.js +1 -4
  26. package/lib/esm/view/spendManagement/chargeCards/chargeCardRepaymentDetail/fetchChargeCardRepaymentDetailEpic.js +1 -2
  27. package/lib/esm/view/spendManagement/chargeCards/chargeCardRepaymentDetail/initiateChargeCardRepaymentEpic.js +1 -1
  28. package/lib/esm/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +1 -67
  29. package/lib/esm/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +2 -16
  30. package/lib/esm/view/spendManagement/commonSetup/setupViewSelector.js +1 -15
  31. package/lib/esm/view/spendManagement/commonSetup/types/businessVerification.js +1 -148
  32. package/lib/esm/view/taskManager/taskDetailView/taskDetailSelector.js +1 -1
  33. package/lib/index.d.ts +7 -10
  34. package/lib/index.js +44 -54
  35. package/lib/view/companyView/epic/companyPassport/updateCompanyDetailsEpic.js +0 -6
  36. package/lib/view/companyView/types/companyPassport/companyDetailsLocalData.d.ts +0 -13
  37. package/lib/view/companyView/types/companyPassport/companyPassportLocalData.js +0 -13
  38. package/lib/view/companyView/types/companyPassportViewPayload.d.ts +1 -1
  39. package/lib/view/companyView/types/companyPassportViewPayload.js +12 -55
  40. package/lib/view/expenseAutomationView/epics/transactionCategorization/triggerReviewTabRefetchEpic.js +3 -2
  41. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +2 -2
  42. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +3 -11
  43. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +2 -21
  44. package/lib/view/expenseAutomationView/selectorTypes/transactionsViewSelectorTypes.d.ts +0 -1
  45. package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +1 -2
  46. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +1 -2
  47. package/lib/view/expenseAutomationView/types/transactionsViewState.js +1 -2
  48. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +0 -1
  49. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +3 -22
  50. package/lib/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryDownloadSelector.js +2 -2
  51. package/lib/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistorySelector.js +2 -2
  52. package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailSelector.js +1 -4
  53. package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/fetchChargeCardRepaymentDetailEpic.js +1 -2
  54. package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/initiateChargeCardRepaymentEpic.d.ts +1 -1
  55. package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/initiateChargeCardRepaymentEpic.js +1 -1
  56. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +1 -67
  57. package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +2 -16
  58. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +0 -14
  59. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +1 -15
  60. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +0 -14
  61. package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +0 -43
  62. package/lib/view/spendManagement/commonSetup/types/businessVerification.js +0 -150
  63. package/lib/view/taskManager/taskDetailView/taskDetailSelector.js +1 -1
  64. package/package.json +1 -1
  65. package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/uploadTransactionReceiptSuccessEpic.js +0 -22
  66. package/lib/tsconfig.typecheck.tsbuildinfo +0 -1
  67. package/lib/view/expenseAutomationView/epics/transactionCategorization/uploadTransactionReceiptSuccessEpic.d.ts +0 -7
  68. package/lib/view/expenseAutomationView/epics/transactionCategorization/uploadTransactionReceiptSuccessEpic.js +0 -26
@@ -1,7 +0,0 @@
1
- import { ActionsObservable, StateObservable } from 'redux-observable';
2
- import { updateTransaction } from '../../../../entity/transaction/transactionReducer';
3
- import { RootState } from '../../../../reducer';
4
- import { fetchMonthEndCloseChecks } from '../../../monthEndCloseChecksView/monthEndCloseChecksViewReducer';
5
- import { uploadTransactionCategorizationReceiptSuccess } from '../../reducers/transactionsViewReducer';
6
- export type ActionType = ReturnType<typeof uploadTransactionCategorizationReceiptSuccess> | ReturnType<typeof fetchMonthEndCloseChecks> | ReturnType<typeof updateTransaction>;
7
- export declare const uploadTransactionReceiptSuccessEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => import("rxjs").Observable<ActionType>;
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.uploadTransactionReceiptSuccessEpic = void 0;
4
- const rxjs_1 = require("rxjs");
5
- const operators_1 = require("rxjs/operators");
6
- const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
7
- const transactionReducer_1 = require("../../../../entity/transaction/transactionReducer");
8
- const monthEndCloseChecksViewReducer_1 = require("../../../monthEndCloseChecksView/monthEndCloseChecksViewReducer");
9
- const transactionsViewReducer_1 = require("../../reducers/transactionsViewReducer");
10
- const uploadTransactionReceiptSuccessEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(transactionsViewReducer_1.uploadTransactionCategorizationReceiptSuccess.match), (0, operators_1.mergeMap)((action) => {
11
- const { transactionPayload, updateType } = action.payload;
12
- const updateActions = [];
13
- const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state$.value);
14
- const selectedPeriodByTenantId = state$.value.expenseAutomationViewState.selectedPeriodByTenantId;
15
- updateActions.push((0, transactionReducer_1.updateTransaction)(transactionPayload.transaction_id, transactionPayload, updateType));
16
- if (currentTenant != null) {
17
- const monthEndChecksPeriod = selectedPeriodByTenantId[currentTenant.tenantId];
18
- updateActions.push((0, monthEndCloseChecksViewReducer_1.fetchMonthEndCloseChecks)({
19
- tenantId: currentTenant.tenantId,
20
- period: monthEndChecksPeriod,
21
- refreshViewInBackground: true,
22
- }));
23
- }
24
- return (0, rxjs_1.from)(updateActions);
25
- }));
26
- exports.uploadTransactionReceiptSuccessEpic = uploadTransactionReceiptSuccessEpic;