@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.
- package/lib/entity/account/accountPayload.d.ts +0 -2
- package/lib/entity/account/accountPayload.js +0 -2
- package/lib/entity/account/accountState.d.ts +0 -2
- package/lib/entity/company/companyPayload.d.ts +0 -13
- package/lib/entity/company/companyPayload.js +0 -21
- package/lib/entity/company/companyStateTypes.d.ts +0 -13
- package/lib/epic.d.ts +1 -3
- package/lib/epic.js +1 -3
- package/lib/esm/entity/account/accountPayload.js +0 -2
- package/lib/esm/entity/chargeCardTransaction/chargeCardTransactionPayload.js +2 -2
- package/lib/esm/entity/company/companyPayload.js +0 -21
- package/lib/esm/epic.js +1 -3
- package/lib/esm/index.js +7 -9
- package/lib/esm/view/companyView/epic/companyPassport/updateCompanyDetailsEpic.js +0 -6
- package/lib/esm/view/companyView/types/companyPassport/companyPassportLocalData.js +0 -13
- package/lib/esm/view/companyView/types/companyPassportViewPayload.js +12 -55
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/triggerReviewTabRefetchEpic.js +3 -2
- package/lib/esm/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +2 -2
- package/lib/esm/view/expenseAutomationView/reducers/transactionsViewReducer.js +1 -20
- package/lib/esm/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +1 -2
- package/lib/esm/view/expenseAutomationView/types/transactionsViewState.js +1 -2
- package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewSelector.js +4 -22
- package/lib/esm/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryDownloadSelector.js +2 -2
- package/lib/esm/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistorySelector.js +2 -2
- package/lib/esm/view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailSelector.js +1 -4
- package/lib/esm/view/spendManagement/chargeCards/chargeCardRepaymentDetail/fetchChargeCardRepaymentDetailEpic.js +1 -2
- package/lib/esm/view/spendManagement/chargeCards/chargeCardRepaymentDetail/initiateChargeCardRepaymentEpic.js +1 -1
- package/lib/esm/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +1 -67
- package/lib/esm/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +2 -16
- package/lib/esm/view/spendManagement/commonSetup/setupViewSelector.js +1 -15
- package/lib/esm/view/spendManagement/commonSetup/types/businessVerification.js +1 -148
- package/lib/esm/view/taskManager/taskDetailView/taskDetailSelector.js +1 -1
- package/lib/index.d.ts +7 -10
- package/lib/index.js +44 -54
- package/lib/view/companyView/epic/companyPassport/updateCompanyDetailsEpic.js +0 -6
- package/lib/view/companyView/types/companyPassport/companyDetailsLocalData.d.ts +0 -13
- package/lib/view/companyView/types/companyPassport/companyPassportLocalData.js +0 -13
- package/lib/view/companyView/types/companyPassportViewPayload.d.ts +1 -1
- package/lib/view/companyView/types/companyPassportViewPayload.js +12 -55
- package/lib/view/expenseAutomationView/epics/transactionCategorization/triggerReviewTabRefetchEpic.js +3 -2
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +2 -2
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +3 -11
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +2 -21
- package/lib/view/expenseAutomationView/selectorTypes/transactionsViewSelectorTypes.d.ts +0 -1
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +1 -2
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +1 -2
- package/lib/view/expenseAutomationView/types/transactionsViewState.js +1 -2
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +0 -1
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +3 -22
- package/lib/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryDownloadSelector.js +2 -2
- package/lib/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistorySelector.js +2 -2
- package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailSelector.js +1 -4
- package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/fetchChargeCardRepaymentDetailEpic.js +1 -2
- package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/initiateChargeCardRepaymentEpic.d.ts +1 -1
- package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/initiateChargeCardRepaymentEpic.js +1 -1
- package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +1 -67
- package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +2 -16
- package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +0 -14
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +1 -15
- package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +0 -14
- package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +0 -43
- package/lib/view/spendManagement/commonSetup/types/businessVerification.js +0 -150
- package/lib/view/taskManager/taskDetailView/taskDetailSelector.js +1 -1
- package/package.json +1 -1
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/uploadTransactionReceiptSuccessEpic.js +0 -22
- package/lib/tsconfig.typecheck.tsbuildinfo +0 -1
- package/lib/view/expenseAutomationView/epics/transactionCategorization/uploadTransactionReceiptSuccessEpic.d.ts +0 -7
- 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;
|