@zeniai/client-epic-state 4.10.48 → 4.10.49
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/paymentAccount/paymentAccountSelector.d.ts +0 -1
- package/lib/entity/paymentAccount/paymentAccountSelector.js +1 -5
- package/lib/entity/tenant/clearAllEpic.d.ts +2 -1
- package/lib/entity/tenant/clearAllEpic.js +2 -0
- package/lib/epic.d.ts +6 -6
- package/lib/epic.js +6 -6
- package/lib/index.d.ts +6 -3
- package/lib/index.js +18 -15
- package/lib/reducer.d.ts +3 -0
- package/lib/reducer.js +3 -0
- package/lib/view/onboardingView/customerView/epic/plaidConnection/getOnboardingPlaidLinkTokenEpic.js +1 -1
- package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.d.ts +2 -2
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +2 -1
- package/lib/view/onboardingView/customerView/onboardingCustomerViewState.d.ts +2 -1
- package/lib/view/settingsView/epic/fetchBankConnectionsViewEpic.d.ts +1 -1
- package/lib/view/settingsView/epic/fetchBankConnectionsViewEpic.js +2 -2
- package/lib/view/settingsView/settingsViewSelector.js +3 -3
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +3 -2
- package/lib/view/spendManagement/billPay/billPaySetupView/billPaySetupViewSelector.js +1 -1
- package/lib/view/spendManagement/billPay/billPaySetupView/epic/billPaySetup/fetchBillPaySetupViewEpic.d.ts +3 -2
- package/lib/view/spendManagement/billPay/billPaySetupView/epic/billPaySetup/fetchBillPaySetupViewEpic.js +5 -4
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +3 -2
- package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.d.ts +1 -1
- package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +5 -5
- package/lib/view/spendManagement/billPay/editBillView/epics/initializeBillToLocalStoreEpic.d.ts +1 -1
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewSelector.js +1 -1
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/epic/fetchChargeCardSetupViewEpic.d.ts +3 -2
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/epic/fetchChargeCardSetupViewEpic.js +5 -4
- package/lib/view/spendManagement/commonSetup/setupViewPayload.d.ts +1 -1
- package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +3 -59
- package/lib/view/spendManagement/commonSetup/setupViewReducer.js +2 -334
- package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +3 -2
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +12 -6
- package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +0 -14
- package/lib/view/spendManagement/{commonSetup → plaidAccount}/epic/paymentAccounts/getPaymentAccountsEpic.d.ts +1 -1
- package/lib/view/spendManagement/{commonSetup → plaidAccount}/epic/paymentAccounts/getPaymentAccountsEpic.js +6 -6
- package/lib/view/spendManagement/{commonSetup → plaidAccount}/epic/paymentAccounts/updatePaymentAccountEpic.d.ts +1 -1
- package/lib/view/spendManagement/{commonSetup → plaidAccount}/epic/paymentAccounts/updatePaymentAccountEpic.js +6 -6
- package/lib/view/spendManagement/{commonSetup → plaidAccount}/epic/paymentAccounts/updatePaymentAccountLoginStatusEpic.d.ts +1 -1
- package/lib/view/spendManagement/{commonSetup → plaidAccount}/epic/paymentAccounts/updatePaymentAccountLoginStatusEpic.js +7 -7
- package/lib/view/spendManagement/{commonSetup → plaidAccount}/epic/paymentAccounts/updatePaymentAccountStatusEpic.d.ts +1 -1
- package/lib/view/spendManagement/{commonSetup → plaidAccount}/epic/paymentAccounts/updatePaymentAccountStatusEpic.js +7 -7
- package/lib/view/spendManagement/{commonSetup → plaidAccount}/epic/plaidConnection/establishPlaidConnectionEpic.d.ts +2 -2
- package/lib/view/spendManagement/{commonSetup → plaidAccount}/epic/plaidConnection/establishPlaidConnectionEpic.js +7 -7
- package/lib/view/spendManagement/{commonSetup → plaidAccount}/epic/plaidConnection/getPlaidLinkTokenEpic.d.ts +2 -2
- package/lib/view/spendManagement/{commonSetup → plaidAccount}/epic/plaidConnection/getPlaidLinkTokenEpic.js +6 -6
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +85 -0
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +332 -0
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewSelector.d.ts +2 -0
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewSelector.js +7 -0
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +21 -0
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.js +29 -0
- package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/fetchRemiSetupViewEpic.d.ts +3 -2
- package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/fetchRemiSetupViewEpic.js +5 -4
- package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/updateMileageDetailsEpic.d.ts +3 -2
- package/lib/view/spendManagement/reimbursement/remiSetupView/remiSetupViewSelector.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountList/fetchDepositAccountListEpic.js +5 -5
- package/lib/view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountListPayload.d.ts +1 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.d.ts +1 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.js +2 -2
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/epic/fetchZeniAccountSetupViewEpic.d.ts +3 -2
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/epic/fetchZeniAccountSetupViewEpic.js +5 -4
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewSelector.js +1 -1
- package/package.json +1 -1
- /package/lib/view/spendManagement/{commonSetup → plaidAccount}/types/paymentAccount.d.ts +0 -0
- /package/lib/view/spendManagement/{commonSetup → plaidAccount}/types/paymentAccount.js +0 -0
- /package/lib/view/spendManagement/{commonSetup → plaidAccount}/types/plaidConnection.d.ts +0 -0
- /package/lib/view/spendManagement/{commonSetup → plaidAccount}/types/plaidConnection.js +0 -0
|
@@ -2,6 +2,5 @@ import { ID } from '../../commonStateTypes/common';
|
|
|
2
2
|
import { PaymentAccount, PaymentAccountState } from './paymentAccountState';
|
|
3
3
|
export declare function getPaymentAccountsByPaymentAccountIds(paymentAccountState: PaymentAccountState, paymentAccountIds: ID[]): PaymentAccount[];
|
|
4
4
|
export declare function getPaymentAccountByPaymentAccountId(paymentAccountState: PaymentAccountState, PaymentAccountId: ID): PaymentAccount | undefined;
|
|
5
|
-
export declare function getSpendManagementPrimaryPaymentAccount(paymentAccountState: PaymentAccountState): PaymentAccount | undefined;
|
|
6
5
|
export declare function getPaymentAccountByBankAccountId(paymentAccountState: PaymentAccountState, bankAccountId: ID): PaymentAccount | undefined;
|
|
7
6
|
export declare function getPaymentAccountsByBankAccountIds(paymentAccountState: PaymentAccountState, bankAccountIds: ID[]): PaymentAccount[];
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getPaymentAccountsByBankAccountIds = exports.getPaymentAccountByBankAccountId = exports.
|
|
6
|
+
exports.getPaymentAccountsByBankAccountIds = exports.getPaymentAccountByBankAccountId = exports.getPaymentAccountByPaymentAccountId = exports.getPaymentAccountsByPaymentAccountIds = void 0;
|
|
7
7
|
const get_1 = __importDefault(require("lodash/get"));
|
|
8
8
|
const values_1 = __importDefault(require("lodash/values"));
|
|
9
9
|
function getPaymentAccountsByPaymentAccountIds(paymentAccountState, paymentAccountIds) {
|
|
@@ -17,10 +17,6 @@ function getPaymentAccountByPaymentAccountId(paymentAccountState, PaymentAccount
|
|
|
17
17
|
return (0, get_1.default)(paymentAccountState.paymentAccountByID, PaymentAccountId, undefined);
|
|
18
18
|
}
|
|
19
19
|
exports.getPaymentAccountByPaymentAccountId = getPaymentAccountByPaymentAccountId;
|
|
20
|
-
function getSpendManagementPrimaryPaymentAccount(paymentAccountState) {
|
|
21
|
-
return Object.values(paymentAccountState.paymentAccountByID).find((paymentAccount) => paymentAccount.isPrimaryForBillPay);
|
|
22
|
-
}
|
|
23
|
-
exports.getSpendManagementPrimaryPaymentAccount = getSpendManagementPrimaryPaymentAccount;
|
|
24
20
|
function getPaymentAccountByBankAccountId(paymentAccountState, bankAccountId) {
|
|
25
21
|
const allPaymentAccounts = (0, values_1.default)(paymentAccountState.paymentAccountByID);
|
|
26
22
|
return allPaymentAccounts.find((account) => account.bankAccountId === bankAccountId);
|
|
@@ -59,6 +59,7 @@ import { clearAllFiles } from '../file/fileReducer';
|
|
|
59
59
|
import { clearAllPaymentAccounts } from '../paymentAccount/paymentAccountReducer';
|
|
60
60
|
import { clearBillPaySetupView } from '../../view/spendManagement/billPay/billPaySetupView/billPaySetupViewReducer';
|
|
61
61
|
import { clearSetupView } from '../../view/spendManagement/commonSetup/setupViewReducer';
|
|
62
|
+
import { clearPlaidAccountView } from '../../view/spendManagement/plaidAccount/plaidAccountViewReducer';
|
|
62
63
|
import { clearRemiSetupView } from '../../view/spendManagement/reimbursement/remiSetupView/remiSetupViewReducer';
|
|
63
64
|
import { clearRemiSetupApproverView } from '../../view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer';
|
|
64
65
|
import { clearAllSectionsClassesViewV2 } from '../../entity/sectionClassesViewV2/sectionClassesViewReducer';
|
|
@@ -152,7 +153,7 @@ import { clearAllNotifications } from '../../entity/notification/notificationRed
|
|
|
152
153
|
import { clearNotificationView } from '../../view/notificationView/notificationViewReducer';
|
|
153
154
|
import { clearAllTags } from '../tag/tagReducer';
|
|
154
155
|
import { clearTagView } from '../../view/tagView/tagViewReducer';
|
|
155
|
-
declare type clearActionTypeForViews = ReturnType<typeof clearAccountList> | ReturnType<typeof clearAccountMappingView> | ReturnType<typeof clearActivityHistory> | ReturnType<typeof clearActivityRealTimeApproval> | ReturnType<typeof clearAddressView> | ReturnType<typeof clearAllClasses> | ReturnType<typeof clearApAging> | ReturnType<typeof clearApAgingDetail> | ReturnType<typeof clearArAging> | ReturnType<typeof clearArAgingDetail> | ReturnType<typeof clearAuthenticationView> | ReturnType<typeof clearBalanceSheet> | ReturnType<typeof clearBankAccountView> | ReturnType<typeof clearBillDetailView> | ReturnType<typeof clearBillList> | ReturnType<typeof clearBillPayCard> | ReturnType<typeof clearBillPayConfig> | ReturnType<typeof clearBillPayReview> | ReturnType<typeof clearBillPaySetupApproverView> | ReturnType<typeof clearBillPaySetupView> | ReturnType<typeof clearCardBalance> | ReturnType<typeof clearCashBalance> | ReturnType<typeof clearCashFlow> | ReturnType<typeof clearCashInCashOut> | ReturnType<typeof clearCashPosition> | ReturnType<typeof clearChargeCardConfig> | ReturnType<typeof clearChargeCardDetail> | ReturnType<typeof clearChargeCardList> | ReturnType<typeof clearChargeCardSetupView> | ReturnType<typeof clearCheckDeposit> | ReturnType<typeof clearCompanyConfigView> | ReturnType<typeof clearCompanyHealthMetric> | ReturnType<typeof clearCompanyHealthMetricView> | ReturnType<typeof clearCompanyMonthEndReportView> | ReturnType<typeof clearCompanyView> | ReturnType<typeof clearDashboard> | ReturnType<typeof clearDepositAccountDetail> | ReturnType<typeof clearDepositAccountList> | ReturnType<typeof clearDepositAccountTransactionList> | ReturnType<typeof clearEditBillViewDetail> | ReturnType<typeof clearEditRemiViewDetail> | ReturnType<typeof clearEntityAutoCompleteResults> | ReturnType<typeof clearFileViewList> | ReturnType<typeof clearFinanceStatement> | ReturnType<typeof clearForecastList> | ReturnType<typeof clearGlobalMerchantView> | ReturnType<typeof clearInsightsCard> | ReturnType<typeof clearInternationalWire> | ReturnType<typeof clearMerchantList> | ReturnType<typeof clearNetBurnOrIncome> | ReturnType<typeof clearNetBurnOrIncomeClassesView> | ReturnType<typeof clearNetBurnOrIncomeStoryCard> | ReturnType<typeof clearNotificationView> | ReturnType<typeof clearOnboardingCockpitView> | ReturnType<typeof clearOnboardingCustomerView> | ReturnType<typeof clearOpEx> | ReturnType<typeof clearOpExByVendor> | ReturnType<typeof clearOpExClassesView> | ReturnType<typeof clearOwnerList> | ReturnType<typeof clearPaymentAccountList> | ReturnType<typeof clearPeople> | ReturnType<typeof clearPreviousBills> | ReturnType<typeof clearProfitAndLoss> | ReturnType<typeof clearProfitAndLossClassesView> | ReturnType<typeof clearRecommendation> | ReturnType<typeof clearReferrals> | ReturnType<typeof clearReimbursementCard> | ReturnType<typeof clearReimbursementConfig> | ReturnType<typeof clearRemiDetailView> | ReturnType<typeof clearRemiList> | ReturnType<typeof clearRemiSetupApproverView> | ReturnType<typeof clearRemiSetupView> | ReturnType<typeof clearReportUIOption> | ReturnType<typeof clearRevenue> | ReturnType<typeof clearRevenueClassesView> | ReturnType<typeof clearReviewCompany> | ReturnType<typeof clearScheduleDetailView> | ReturnType<typeof clearScheduleList> | ReturnType<typeof clearSettingsView> | ReturnType<typeof clearSetupView> | ReturnType<typeof clearSubscriptionView> | ReturnType<typeof clearTagView> | ReturnType<typeof clearTaskDetail> | ReturnType<typeof clearTaskList> | ReturnType<typeof clearTasksCard> | ReturnType<typeof clearTopEx> | ReturnType<typeof clearTransactionDetail> | ReturnType<typeof clearTransactionList> | ReturnType<typeof clearTransferDetail> | ReturnType<typeof clearTrendData> | ReturnType<typeof clearTrendWithTransactions> | ReturnType<typeof clearTwoFactorAuthentication> | ReturnType<typeof clearUserFinancialAccount> | ReturnType<typeof clearUserListView> | ReturnType<typeof clearUserRoleConfigView> | ReturnType<typeof clearVendorGlobalReviewView> | ReturnType<typeof clearVendorView> | ReturnType<typeof clearVendorsList> | ReturnType<typeof clearVendorsTabVendorView> | ReturnType<typeof clearWiseRedirectStatus> | ReturnType<typeof clearZeniAccStatementList> | ReturnType<typeof clearZeniAccountList> | ReturnType<typeof clearZeniAccountSetupView> | ReturnType<typeof clearZeniAccountsConfig> | ReturnType<typeof clearZeniAccountsPromoCard>;
|
|
156
|
+
declare type clearActionTypeForViews = ReturnType<typeof clearAccountList> | ReturnType<typeof clearAccountMappingView> | ReturnType<typeof clearActivityHistory> | ReturnType<typeof clearActivityRealTimeApproval> | ReturnType<typeof clearAddressView> | ReturnType<typeof clearAllClasses> | ReturnType<typeof clearApAging> | ReturnType<typeof clearApAgingDetail> | ReturnType<typeof clearArAging> | ReturnType<typeof clearArAgingDetail> | ReturnType<typeof clearAuthenticationView> | ReturnType<typeof clearBalanceSheet> | ReturnType<typeof clearBankAccountView> | ReturnType<typeof clearBillDetailView> | ReturnType<typeof clearBillList> | ReturnType<typeof clearBillPayCard> | ReturnType<typeof clearBillPayConfig> | ReturnType<typeof clearBillPayReview> | ReturnType<typeof clearBillPaySetupApproverView> | ReturnType<typeof clearBillPaySetupView> | ReturnType<typeof clearCardBalance> | ReturnType<typeof clearCashBalance> | ReturnType<typeof clearCashFlow> | ReturnType<typeof clearCashInCashOut> | ReturnType<typeof clearCashPosition> | ReturnType<typeof clearChargeCardConfig> | ReturnType<typeof clearChargeCardDetail> | ReturnType<typeof clearChargeCardList> | ReturnType<typeof clearChargeCardSetupView> | ReturnType<typeof clearCheckDeposit> | ReturnType<typeof clearCompanyConfigView> | ReturnType<typeof clearCompanyHealthMetric> | ReturnType<typeof clearCompanyHealthMetricView> | ReturnType<typeof clearCompanyMonthEndReportView> | ReturnType<typeof clearCompanyView> | ReturnType<typeof clearDashboard> | ReturnType<typeof clearDepositAccountDetail> | ReturnType<typeof clearDepositAccountList> | ReturnType<typeof clearDepositAccountTransactionList> | ReturnType<typeof clearEditBillViewDetail> | ReturnType<typeof clearEditRemiViewDetail> | ReturnType<typeof clearEntityAutoCompleteResults> | ReturnType<typeof clearFileViewList> | ReturnType<typeof clearFinanceStatement> | ReturnType<typeof clearForecastList> | ReturnType<typeof clearGlobalMerchantView> | ReturnType<typeof clearInsightsCard> | ReturnType<typeof clearInternationalWire> | ReturnType<typeof clearMerchantList> | ReturnType<typeof clearNetBurnOrIncome> | ReturnType<typeof clearNetBurnOrIncomeClassesView> | ReturnType<typeof clearNetBurnOrIncomeStoryCard> | ReturnType<typeof clearNotificationView> | ReturnType<typeof clearOnboardingCockpitView> | ReturnType<typeof clearOnboardingCustomerView> | ReturnType<typeof clearOpEx> | ReturnType<typeof clearOpExByVendor> | ReturnType<typeof clearOpExClassesView> | ReturnType<typeof clearOwnerList> | ReturnType<typeof clearPaymentAccountList> | ReturnType<typeof clearPeople> | ReturnType<typeof clearPreviousBills> | ReturnType<typeof clearProfitAndLoss> | ReturnType<typeof clearProfitAndLossClassesView> | ReturnType<typeof clearRecommendation> | ReturnType<typeof clearReferrals> | ReturnType<typeof clearReimbursementCard> | ReturnType<typeof clearReimbursementConfig> | ReturnType<typeof clearRemiDetailView> | ReturnType<typeof clearRemiList> | ReturnType<typeof clearRemiSetupApproverView> | ReturnType<typeof clearRemiSetupView> | ReturnType<typeof clearReportUIOption> | ReturnType<typeof clearRevenue> | ReturnType<typeof clearRevenueClassesView> | ReturnType<typeof clearReviewCompany> | ReturnType<typeof clearScheduleDetailView> | ReturnType<typeof clearScheduleList> | ReturnType<typeof clearSettingsView> | ReturnType<typeof clearSetupView> | ReturnType<typeof clearPlaidAccountView> | ReturnType<typeof clearSubscriptionView> | ReturnType<typeof clearTagView> | ReturnType<typeof clearTaskDetail> | ReturnType<typeof clearTaskList> | ReturnType<typeof clearTasksCard> | ReturnType<typeof clearTopEx> | ReturnType<typeof clearTransactionDetail> | ReturnType<typeof clearTransactionList> | ReturnType<typeof clearTransferDetail> | ReturnType<typeof clearTrendData> | ReturnType<typeof clearTrendWithTransactions> | ReturnType<typeof clearTwoFactorAuthentication> | ReturnType<typeof clearUserFinancialAccount> | ReturnType<typeof clearUserListView> | ReturnType<typeof clearUserRoleConfigView> | ReturnType<typeof clearVendorGlobalReviewView> | ReturnType<typeof clearVendorView> | ReturnType<typeof clearVendorsList> | ReturnType<typeof clearVendorsTabVendorView> | ReturnType<typeof clearWiseRedirectStatus> | ReturnType<typeof clearZeniAccStatementList> | ReturnType<typeof clearZeniAccountList> | ReturnType<typeof clearZeniAccountSetupView> | ReturnType<typeof clearZeniAccountsConfig> | ReturnType<typeof clearZeniAccountsPromoCard>;
|
|
156
157
|
declare type clearActionTypeForEntities = ReturnType<typeof clearAllAccountGroups> | ReturnType<typeof clearAllAccountingSummary> | ReturnType<typeof clearAllAccounts> | ReturnType<typeof clearAllAddresses> | ReturnType<typeof clearAllApprovalRules> | ReturnType<typeof clearAllBankAccounts> | ReturnType<typeof clearAllBillTransactions> | ReturnType<typeof clearAllChargeCardTransactions> | ReturnType<typeof clearAllChargeCards> | ReturnType<typeof clearAllCompanies> | ReturnType<typeof clearAllCurrencies> | ReturnType<typeof clearAllCustomerIncomeTrend> | ReturnType<typeof clearAllCustomers> | ReturnType<typeof clearAllDepositAccounts> | ReturnType<typeof clearAllEntities> | ReturnType<typeof clearAllEntityApprovalStatus> | ReturnType<typeof clearAllFiles> | ReturnType<typeof clearAllForecasts> | ReturnType<typeof clearAllGlobalMerchants> | ReturnType<typeof clearAllInsights> | ReturnType<typeof clearAllJEScheduleTransactions> | ReturnType<typeof clearAllMerchants> | ReturnType<typeof clearAllNotifications> | ReturnType<typeof clearAllOnboardingCustomersInfo> | ReturnType<typeof clearAllPaymentAccounts> | ReturnType<typeof clearAllPaymentInstruments> | ReturnType<typeof clearAllRecurringBills> | ReturnType<typeof clearAllReimbursements> | ReturnType<typeof clearAllSectionsAccountsView> | ReturnType<typeof clearAllSectionsClassesViewV2> | ReturnType<typeof clearAllSubscriptionAddOns> | ReturnType<typeof clearAllSubscriptionCoupons> | ReturnType<typeof clearAllSubscriptionPlans> | ReturnType<typeof clearAllSubscriptionSummary> | ReturnType<typeof clearAllSubscriptions> | ReturnType<typeof clearAllTags> | ReturnType<typeof clearAllTaskSummary> | ReturnType<typeof clearAllTasks> | ReturnType<typeof clearAllTransactions> | ReturnType<typeof clearAllUserRoles> | ReturnType<typeof clearAllUsers> | ReturnType<typeof clearAllVendorExpenseTrends> | ReturnType<typeof clearAllVendors> | ReturnType<typeof clearClassList> | ReturnType<typeof clearContacts> | ReturnType<typeof clearDepositAccountTransaction> | ReturnType<typeof clearSnackbar>;
|
|
157
158
|
export declare type ActionType = clearActionTypeForViews | clearActionTypeForEntities | ReturnType<typeof clearAll>;
|
|
158
159
|
export declare const clearAllEpic: (actions$: ActionsObservable<ActionType>) => import("rxjs").Observable<ActionType>;
|
|
@@ -63,6 +63,7 @@ const fileReducer_1 = require("../file/fileReducer");
|
|
|
63
63
|
const paymentAccountReducer_1 = require("../paymentAccount/paymentAccountReducer");
|
|
64
64
|
const billPaySetupViewReducer_1 = require("../../view/spendManagement/billPay/billPaySetupView/billPaySetupViewReducer");
|
|
65
65
|
const setupViewReducer_1 = require("../../view/spendManagement/commonSetup/setupViewReducer");
|
|
66
|
+
const plaidAccountViewReducer_1 = require("../../view/spendManagement/plaidAccount/plaidAccountViewReducer");
|
|
66
67
|
const remiSetupViewReducer_1 = require("../../view/spendManagement/reimbursement/remiSetupView/remiSetupViewReducer");
|
|
67
68
|
const remiSetupApproverViewReducer_1 = require("../../view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer");
|
|
68
69
|
const sectionClassesViewReducer_1 = require("../../entity/sectionClassesViewV2/sectionClassesViewReducer");
|
|
@@ -224,6 +225,7 @@ const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantR
|
|
|
224
225
|
(0, ownerListReducer_1.clearOwnerList)(),
|
|
225
226
|
(0, paymentAccountListReducer_1.clearPaymentAccountList)(),
|
|
226
227
|
(0, peopleReducer_1.clearPeople)(),
|
|
228
|
+
(0, plaidAccountViewReducer_1.clearPlaidAccountView)(),
|
|
227
229
|
(0, previousBillsReducer_1.clearPreviousBills)(),
|
|
228
230
|
(0, profitAndLossReducer_1.clearProfitAndLoss)(),
|
|
229
231
|
(0, profitAndLossClassesViewReducer_1.clearProfitAndLossClassesView)(),
|
package/lib/epic.d.ts
CHANGED
|
@@ -180,12 +180,12 @@ import { ActionType as FetchZeniAccountSetupViewActionType } from './view/spendM
|
|
|
180
180
|
import { ActionType as AcceptZeniAccountTermsActionType } from './view/spendManagement/zeniAccounts/zeniAccountSetUp/epic/acceptZeniAccountTermsEpic';
|
|
181
181
|
import { ActionType as UpdateSetupViewLocalStoreDataActionType } from './view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic';
|
|
182
182
|
import { ActionType as UpdateBusinessVerificationDetailsActionType } from './view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic';
|
|
183
|
-
import { ActionType as GetPaymentAccountsActionType } from './view/spendManagement/
|
|
184
|
-
import { ActionType as UpdatePaymentAccountActionType } from './view/spendManagement/
|
|
185
|
-
import { ActionType as UpdatePaymentAccountStatusActionType } from './view/spendManagement/
|
|
186
|
-
import { ActionType as UpdatePaymentAccountLoginStatusActionType } from './view/spendManagement/
|
|
187
|
-
import { ActionType as EstablishPlaidConnectionActionType } from './view/spendManagement/
|
|
188
|
-
import { ActionType as GetPlaidLinkTokenActionType } from './view/spendManagement/
|
|
183
|
+
import { ActionType as GetPaymentAccountsActionType } from './view/spendManagement/plaidAccount/epic/paymentAccounts/getPaymentAccountsEpic';
|
|
184
|
+
import { ActionType as UpdatePaymentAccountActionType } from './view/spendManagement/plaidAccount/epic/paymentAccounts/updatePaymentAccountEpic';
|
|
185
|
+
import { ActionType as UpdatePaymentAccountStatusActionType } from './view/spendManagement/plaidAccount/epic/paymentAccounts/updatePaymentAccountStatusEpic';
|
|
186
|
+
import { ActionType as UpdatePaymentAccountLoginStatusActionType } from './view/spendManagement/plaidAccount/epic/paymentAccounts/updatePaymentAccountLoginStatusEpic';
|
|
187
|
+
import { ActionType as EstablishPlaidConnectionActionType } from './view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic';
|
|
188
|
+
import { ActionType as GetPlaidLinkTokenActionType } from './view/spendManagement/plaidAccount/epic/plaidConnection/getPlaidLinkTokenEpic';
|
|
189
189
|
import { ActionType as SendOtpActionType } from './view/twoFactorAuthentication/sendOtpEpic';
|
|
190
190
|
import { ActionType as ResendOtpActionType } from './view/twoFactorAuthentication/resendOtpEpic';
|
|
191
191
|
import { ActionType as VerifyOtpActionType } from './view/twoFactorAuthentication/verifyOtpEpic';
|
package/lib/epic.js
CHANGED
|
@@ -187,12 +187,12 @@ const fetchZeniAccountSetupViewEpic_1 = require("./view/spendManagement/zeniAcco
|
|
|
187
187
|
const acceptZeniAccountTermsEpic_1 = require("./view/spendManagement/zeniAccounts/zeniAccountSetUp/epic/acceptZeniAccountTermsEpic");
|
|
188
188
|
const updateSetupViewLocalStoreDataEpic_1 = require("./view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic");
|
|
189
189
|
const updateBusinessVerificationDetailsEpic_1 = require("./view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic");
|
|
190
|
-
const getPaymentAccountsEpic_1 = require("./view/spendManagement/
|
|
191
|
-
const updatePaymentAccountEpic_1 = require("./view/spendManagement/
|
|
192
|
-
const updatePaymentAccountStatusEpic_1 = require("./view/spendManagement/
|
|
193
|
-
const updatePaymentAccountLoginStatusEpic_1 = require("./view/spendManagement/
|
|
194
|
-
const establishPlaidConnectionEpic_1 = require("./view/spendManagement/
|
|
195
|
-
const getPlaidLinkTokenEpic_1 = require("./view/spendManagement/
|
|
190
|
+
const getPaymentAccountsEpic_1 = require("./view/spendManagement/plaidAccount/epic/paymentAccounts/getPaymentAccountsEpic");
|
|
191
|
+
const updatePaymentAccountEpic_1 = require("./view/spendManagement/plaidAccount/epic/paymentAccounts/updatePaymentAccountEpic");
|
|
192
|
+
const updatePaymentAccountStatusEpic_1 = require("./view/spendManagement/plaidAccount/epic/paymentAccounts/updatePaymentAccountStatusEpic");
|
|
193
|
+
const updatePaymentAccountLoginStatusEpic_1 = require("./view/spendManagement/plaidAccount/epic/paymentAccounts/updatePaymentAccountLoginStatusEpic");
|
|
194
|
+
const establishPlaidConnectionEpic_1 = require("./view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic");
|
|
195
|
+
const getPlaidLinkTokenEpic_1 = require("./view/spendManagement/plaidAccount/epic/plaidConnection/getPlaidLinkTokenEpic");
|
|
196
196
|
const sendOtpEpic_1 = require("./view/twoFactorAuthentication/sendOtpEpic");
|
|
197
197
|
const resendOtpEpic_1 = require("./view/twoFactorAuthentication/resendOtpEpic");
|
|
198
198
|
const verifyOtpEpic_1 = require("./view/twoFactorAuthentication/verifyOtpEpic");
|
package/lib/index.d.ts
CHANGED
|
@@ -392,14 +392,17 @@ import { BillPaySetupViewState, BillPaySetupViewLocalData } from './view/spendMa
|
|
|
392
392
|
import { ZeniAccountSetupViewState, ZeniAccountSetupViewLocalData } from './view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewState';
|
|
393
393
|
import { fetchBillPaySetupView, acceptBillPayTerms, acceptBillPayUpdatedTerms, clearBillPaySetupView } from './view/spendManagement/billPay/billPaySetupView/billPaySetupViewReducer';
|
|
394
394
|
import { fetchZeniAccountSetupView, acceptZeniAccountTerms, clearZeniAccountSetupView } from './view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewReducer';
|
|
395
|
-
import {
|
|
396
|
-
import {
|
|
395
|
+
import { getPaymentAccounts, getPlaidLinkToken, updatePaymentAccount, updatePaymentAccountLoginStatus, updatePaymentAccountStatus, establishPlaidConnection } from './view/spendManagement/plaidAccount/plaidAccountViewReducer';
|
|
396
|
+
import { SetupViewState, SetupViewLocalData } from './view/spendManagement/commonSetup/setupViewState';
|
|
397
|
+
import { enableSetup, updateSelectedCompanyOfficer, updateSetupViewLocalStoreData, updateBusinessVerificationDetails, saveSetupViewDataInLocalStore, saveCompnayOfficerPhoneInLocalStore, saveCompnayOfficerAdditionalDocumentsInLocalStore, clearSetupViewDataInLocalStore, saveIndustryAndIncDateInLocalStore } from './view/spendManagement/commonSetup/setupViewReducer';
|
|
397
398
|
import { BillPaySetupView, BillPayBusinessVerificationDetails, getBillPaySetupViewDetails, getBillPayBusinessVerificationDetails } from './view/spendManagement/billPay/billPaySetupView/billPaySetupViewSelector';
|
|
399
|
+
import { getPlaidAccountwDetails } from './view/spendManagement/plaidAccount/plaidAccountViewSelector';
|
|
400
|
+
import { PlaidAccountState, PlaidConnectionDetails, PlaidLinkTokenType } from './view/spendManagement/plaidAccount/plaidAccountViewState';
|
|
398
401
|
import { ZeniAccountSetupView, ZeniAccountBusinessVerificationDetails, getZeniAccountSetupViewDetails, getZeniAccountBusinessVerificationDetails } from './view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewSelector';
|
|
399
402
|
import { SetupView, BusinessVerificationDetails, CompanyDetails, CompanyOfficersDetails, getCommonSetupViewDetails, getBusinessVerificationDetails } from './view/spendManagement/commonSetup/setupViewSelector';
|
|
400
403
|
import { sendOtp, resendOtp, verifyOtp } from './view/twoFactorAuthentication/twoFactorAuthenticationReducer';
|
|
401
404
|
import { CustomerToken } from './view/twoFactorAuthentication/twoFactorAuthentication';
|
|
402
|
-
export { BillPaySetupViewState, ZeniAccountSetupViewState, BillPaySetupViewLocalData, ZeniAccountSetupViewLocalData, fetchBillPaySetupView, fetchZeniAccountSetupView, enableSetup, getPaymentAccounts, getPlaidLinkToken, updateSelectedCompanyOfficer, updateSetupViewLocalStoreData, updateBusinessVerificationDetails, updatePaymentAccount, updatePaymentAccountLoginStatus, updatePaymentAccountStatus, establishPlaidConnection, acceptBillPayTerms, acceptZeniAccountTerms, acceptBillPayUpdatedTerms, saveSetupViewDataInLocalStore, saveCompnayOfficerPhoneInLocalStore, saveCompnayOfficerAdditionalDocumentsInLocalStore, saveIndustryAndIncDateInLocalStore, clearSetupViewDataInLocalStore, clearBillPaySetupView, clearZeniAccountSetupView, sendOtp, resendOtp, verifyOtp, CompanyDetails, CompanyOfficersDetails, BillPaySetupView, ZeniAccountSetupView, BillPayBusinessVerificationDetails, ZeniAccountBusinessVerificationDetails, SetupViewState, SetupViewLocalData, SetupView, BusinessVerificationDetails, getBillPaySetupViewDetails, getZeniAccountSetupViewDetails, getBusinessVerificationDetails, getBillPayBusinessVerificationDetails, getZeniAccountBusinessVerificationDetails, getCommonSetupViewDetails, PlaidConnectionDetails, PlaidLinkTokenType, CustomerToken, };
|
|
405
|
+
export { BillPaySetupViewState, ZeniAccountSetupViewState, BillPaySetupViewLocalData, ZeniAccountSetupViewLocalData, PlaidAccountState, fetchBillPaySetupView, fetchZeniAccountSetupView, enableSetup, getPaymentAccounts, getPlaidLinkToken, updateSelectedCompanyOfficer, updateSetupViewLocalStoreData, updateBusinessVerificationDetails, updatePaymentAccount, updatePaymentAccountLoginStatus, updatePaymentAccountStatus, establishPlaidConnection, acceptBillPayTerms, acceptZeniAccountTerms, acceptBillPayUpdatedTerms, saveSetupViewDataInLocalStore, saveCompnayOfficerPhoneInLocalStore, saveCompnayOfficerAdditionalDocumentsInLocalStore, saveIndustryAndIncDateInLocalStore, clearSetupViewDataInLocalStore, clearBillPaySetupView, clearZeniAccountSetupView, sendOtp, resendOtp, verifyOtp, CompanyDetails, CompanyOfficersDetails, BillPaySetupView, ZeniAccountSetupView, BillPayBusinessVerificationDetails, ZeniAccountBusinessVerificationDetails, SetupViewState, SetupViewLocalData, SetupView, BusinessVerificationDetails, getBillPaySetupViewDetails, getPlaidAccountwDetails, getZeniAccountSetupViewDetails, getBusinessVerificationDetails, getBillPayBusinessVerificationDetails, getZeniAccountBusinessVerificationDetails, getCommonSetupViewDetails, PlaidConnectionDetails, PlaidLinkTokenType, CustomerToken, };
|
|
403
406
|
export { BankConnectionsSetupView, IntegrationsView, getApprovalRuleViewDetails, getBankConnectionsSetupViewDetails, getIntegrationsView, };
|
|
404
407
|
import { fetchUserFinancialAccount } from './view/userFinancialAccount/userFinancialAccountReducer';
|
|
405
408
|
export { fetchUserFinancialAccount };
|
package/lib/index.js
CHANGED
|
@@ -39,15 +39,15 @@ exports.saveSubscriptionLocalData = exports.initializeSubscriptionLocalData = ex
|
|
|
39
39
|
exports.vendorsTabSaveVendor = exports.getVendorsTabDetailPageView = exports.toVendorDetailTabsType = exports.getVendorAllTransactionsDefaultTimePeriod = exports.resetVendorsTabVendorAllTransactionsTabData = exports.resetSelectedTabType = exports.updateVendorsTabVendorAllTransactionsTabData = exports.updateSelectedTabType = exports.fetchVendorsTabVendorDetailPageView = exports.getVendorDetailPageView = exports.getVendorView = exports.getAnalyticsDataOnVendorSave = exports.fetchTasksCard = exports.downloadFile = exports.getAttachmentFileIdByFileName = exports.mapAttachmentFileToAttachmentFilePayload = exports.mapAttachmentFilePayloadToFile = exports.mapFilePayloadToFile = exports.uploadFile = exports.getFileDeleteStatusById = exports.getFileUpdateNameStatusById = exports.getDeleteFileListWithStatus = exports.getFileListWithStatus = exports.clearFileViewList = exports.deleteFileSuccess = exports.deleteFileFailure = exports.deleteFile = exports.deleteFileListSuccess = exports.deleteFileListFailure = exports.deleteFileList = exports.updateFilesMetadata = exports.updateFileNameSuccess = exports.updateFileNameFailure = exports.updateFileName = exports.fetchFile = exports.fetchFileListSuccess = exports.fetchFileListFailure = exports.fetchFileList = exports.toSupportedAttachmentFileType = exports.toSupportedAttachmentFileFormatType = exports.toSupportedFileTypeStrict = exports.removeAttachmentFiles = exports.updateAttachmentFiles = exports.updateFiles = exports.SUPPORTED_ATTACHMENT_FILE_TYPES = exports.getSubscriptionEstimationData = exports.getSubscriptionLocalStoreDataView = exports.getSubscriptionsDetailView = exports.clearSubscriptionLocalData = exports.clearSubscriptionUpdateViewDataByTenantId = void 0;
|
|
40
40
|
exports.updateSelectedBillId = exports.updateSubTab = exports.updateTab = exports.fetchBillListPerTab = exports.fetchBillList = exports.getClassList = exports.updateBillListDownloadUIState = exports.updateRemiListDownloadUIState = exports.REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED = exports.REIMBURSEMENT_FILTER_CATEGORIES = exports.updateRemiListFilterResult = exports.updateBillListFilterResult = exports.updateRemiListSearchResult = exports.updateRemiListUIState = exports.updateRemiDetailSaveRemiCode = exports.updateRemiListSubTab = exports.updateRemiListTab = exports.fetchRemiListPerTab = exports.fetchRemiList = exports.getRemiDownloadList = exports.getRemiList = exports.toRemiTabTypeStrict = exports.toRemiTabType = exports.toRemiSubTabTypeStrict = exports.toRemiSubTabType = exports.deleteUserBankAccount = exports.createUserBankAccount = exports.resetCreateBankAccountDetails = exports.createInternationalBankAccount = exports.createBankAccount = exports.deleteBankAccount = exports.fetchBankCountryNameByIban = exports.fetchBankNameBySwift = exports.fetchBankNameByRouting = exports.fetchVendorDetailPageView = exports.fetchVendorDetails = exports.updateStatusForCreateBankAccountFlow = exports.clearBankAccountView = exports.updateInternationalBankAccountViewLocalStoreData = exports.updateBankAccountViewLocalStoreData = exports.initializeVendorAddress = exports.updateSelectedVendorForCreateFlow = exports.removeBankAccountsInVendorView = exports.saveVendor = exports.fetchVendor = exports.updateScrollYOffset = exports.fetchVendorsList = exports.vendorsTabResetVendorDetailLocalData = exports.vendorsTabUpdateVendorDetailLocalData = exports.vendorsTabSaveVendorSuccessOrFailure = void 0;
|
|
41
41
|
exports.establishPlaidConnection = exports.updatePaymentAccountStatus = exports.updatePaymentAccountLoginStatus = exports.updatePaymentAccount = exports.updateBusinessVerificationDetails = exports.updateSetupViewLocalStoreData = exports.updateSelectedCompanyOfficer = exports.getPlaidLinkToken = exports.getPaymentAccounts = exports.enableSetup = exports.fetchZeniAccountSetupView = exports.fetchBillPaySetupView = exports.hideCreatedByFilter = exports.fetchVendorAndUpdateBillLocalData = exports.convertAmountToHomeCurrency = exports.toPaymentToOption = exports.updateVendorContact = exports.verifyUser = exports.fetchUserDetails = exports.updateBillListSearchResult = exports.updateBillUploadFetchState = exports.updateContactsInVendorDetailLocalData = exports.resetVendorDetailLocalData = exports.updateVendorDetailLocalData = exports.BILL_PAY_FILTER_CATEGORIES = exports.updateBillListUIState = exports.saveVendorSuccessOrFailure = exports.updateShowAutofill = exports.fetchBillAndInitializeLocalStore = exports.getReviewPageBillDetail = exports.getEditBillDetail = exports.clearBillPayReview = exports.fetchDuplicateBill = exports.fetchAndUpdateVendorRecommendations = exports.fetchEditBillDetailPage = exports.fetchBillDetail = exports.getBillTransactionDetailKey = exports.checkApproveRejectBtnShowForBill = exports.getBillDetailView = exports.getBillDownloadList = exports.getBillList = exports.cancelAndDeleteBill = exports.deleteBill = exports.updateApprovalStatusOnSuccess = exports.approveOrRejectBill = exports.saveBillDetail = exports.discardBillUpdatesInLocalStore = exports.saveBillUpdatesToLocalStore = exports.fetchVendorByNameAndParseInvoice = exports.updateBillDetailSaveBillCode = void 0;
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
49
|
-
exports.
|
|
50
|
-
exports.getMinAllowedEndDate = exports.toRecurringFrequency = exports.getRecurringEndDateFromCount = exports.fetchRewardsPlan = exports.resendReferralInvite = exports.updateReferralListSortUiState = exports.saveReferralFormDataInLocalStore = exports.clearReferrals = exports.sendReferralInvite = void 0;
|
|
42
|
+
exports.getRemiSetupApproverUpdateDataView = exports.getRemiSetupApproverView = exports.clearBillPaySetupApproverView = exports.clearBillPaySetupApproverViewUpdateData = exports.initializeBillPaySetupApproverViewUpdateData = exports.saveBillPaySetupApproverViewUpdates = exports.saveBillPaySetupApproverViewUpdateData = exports.deleteBillPayApprovalRule = exports.fetchBillPayApproversList = exports.fetchBillPayApproversDetails = exports.fetchBillPaySetupApproverView = exports.getBillPaySetupApproverUpdateDataView = exports.getBillPaySetupApproverView = exports.toRoleTypeStrict = exports.toAttributeOrRoleTypeStrict = exports.toAttributeTypeStrict = exports.isSuccessResponse = exports.getRemiBusinessVerificationDetails = exports.getRemiSetupViewDetails = exports.clearRemiSetupView = exports.acceptEmployeeRemiTerms = exports.acceptRemiTerms = exports.saveRemiSetupViewDataInLocalStore = exports.updateMileageDetails = exports.fetchRemiSetupView = exports.getUserFinancialAccount = exports.fetchUserFinancialAccount = exports.getIntegrationsView = exports.getBankConnectionsSetupViewDetails = exports.getApprovalRuleViewDetails = exports.getCommonSetupViewDetails = exports.getZeniAccountBusinessVerificationDetails = exports.getBillPayBusinessVerificationDetails = exports.getBusinessVerificationDetails = exports.getZeniAccountSetupViewDetails = exports.getPlaidAccountwDetails = exports.getBillPaySetupViewDetails = exports.verifyOtp = exports.resendOtp = exports.sendOtp = exports.clearZeniAccountSetupView = exports.clearBillPaySetupView = exports.clearSetupViewDataInLocalStore = exports.saveIndustryAndIncDateInLocalStore = exports.saveCompnayOfficerAdditionalDocumentsInLocalStore = exports.saveCompnayOfficerPhoneInLocalStore = exports.saveSetupViewDataInLocalStore = exports.acceptBillPayUpdatedTerms = exports.acceptZeniAccountTerms = exports.acceptBillPayTerms = void 0;
|
|
43
|
+
exports.isHoliday = exports.getYearsList = exports.filterDays = exports.isHolidayToday = exports.getPreviousNthWorkingDay = exports.getNextNthWorkingDay = exports.toFileTypeStrict = exports.ALL_FILE_TYPES = exports.reduceAllFetchState = exports.reduceAnyFetchState = exports.reduceFetchState = exports.clearAddRemiAutoFields = exports.clearTentativeMerchantName = exports.updateTentativeMerchantNames = exports.updateUploadFetchState = exports.updateAddRemiAutoFields = exports.clearEditRemiViewDetail = exports.parseReceiptsToRemi = exports.saveRemiSuccessOrFailure = exports.saveRemiDetail = exports.removeFileFromRemiUpdatesInLocalStore = exports.discardRemiUpdatesInLocalStore = exports.fetchCurrencyConversionValue = exports.saveRemiUpdatesToLocalStore = exports.initializeRemiToLocalStore = exports.fetchRemiAndInitializeLocalStore = exports.fetchRecommendationsAndUpdateMerchantRecommendations = exports.fetchEditRemiDetailPage = exports.getEditRemiDetail = exports.removeDuplicateReimbursementByLineId = exports.clearDuplicateReimbursementDetail = exports.fetchDuplicateReimbursement = exports.clearRemiDetailView = exports.approveOrRejectRemi = exports.cancelAndDeleteRemi = exports.fetchRemiDetail = exports.deleteRemi = exports.updateIsEditModeRealTimeApprovals = exports.saveRealTimeApproval = exports.checkApproveRejectBtnShowForRemi = exports.getRemiDetailView = exports.clearRemiSetupApproverView = exports.clearRemiSetupApproverViewUpdateData = exports.initializeRemiSetupApproverViewUpdateData = exports.saveRemiSetupApproverViewUpdates = exports.saveRemiSetupApproverViewUpdateData = exports.deleteRemiApprovalRule = exports.fetchRemiApproversDetails = exports.fetchRemiApproversList = exports.fetchRemiSetupApproverView = void 0;
|
|
44
|
+
exports.fetchRecommendationByEntityId = exports.fetchEntityRecommendationsByTransactionId = exports.toVendorReportIDType = exports.isVendorsTabVisible = exports.isColumnYTDSpend = exports.updateYTDSelectionUIState = exports.updatePageToken = exports.updateSortUiState = exports.getVendorList = exports.LOCAL_CURRENCY_INTERNATIONAL_METHOD_SUBTEXT = exports.SWIFT_OUR_INTERNATIONAL_METHOD_SUBTEXT = exports.NEW_INTERNATIONAL_METHOD_SUBTEXT = exports.BILL_NEW_PAYMENT_METHODS = exports.getInternationalSubConfigCodeKey = exports.shouldEnableCalendarPickerForLastReportSent = exports.canSendMonthEndEmailReport = exports.getActualPaymentDate = exports.showReimbursementPromoPage = exports.showBillPayPromoPage = exports.getSelectedCompanyOfficer = exports.getSpendManagementEffectiveListPeriod = exports.getSnackbar = exports.closeSnackbar = exports.openSnackbar = exports.getChangedLineItemCountFromLocalData = exports.getTransactionListUIStateByCategoryType = exports.getTransactionsListByCategoryType = exports.retryBankAccountConnectionForOnboarding = exports.sendOnboardingCustomerViewInvite = exports.resetNewOnboardedCustomerId = exports.updateOnboardingCustomerDataInLocalStore = exports.saveOnboardingCustomerDataInLocalStore = exports.saveOnboardingCustomerNotes = exports.saveOnboardingCustomerViewUpdates = exports.updateStatusAfterOnboardingCompleted = exports.updateCustomerCreationStatus = exports.updateOnboardingCustomerListUIState = exports.saveOnboardingCustomerViewUpdateData = exports.clearOnboardingCustomerViewUpdateData = exports.initializeOnboardingCustomerViewUpdateData = exports.getOnboardingEmailGroup = exports.getNewOnboardingCustomerView = exports.getOnboardingCockpitView = exports.toProductTypeStrict = exports.toProductType = exports.saveOnboardingCustomerCompletedStatus = exports.fetchOnboardingCompletedCompanies = exports.fetchCompanyOnboardingView = exports.PAYMENT_BUSINESS_DAYS = exports.holidaysFormatted = void 0;
|
|
45
|
+
exports.establishOnboardingPlaidConnection = exports.getOnboardingPlaidLinkToken = exports.fetchOnboardingCustomerSetupView = exports.fetchOnboardingCustomerView = exports.isZeniClearingAccount = exports.ZENI_CLEARING_ACCOUNT = exports.isZeniClearingAccountReport = exports.getCompanyConfig = exports.fetchCompanyConfig = exports.clearTransactionVendorSaveStatus = exports.resetTransactionVendorLocalData = exports.updateTransactionVendorLocalData = exports.saveTransactionVendorSuccessOrFailure = exports.saveTransactionVendor = exports.getTransactionVendorView = exports.getZeniAccStatements = exports.fetchZeniAccStatementPage = exports.getDepositAccountTransactionList = exports.fetchDepositAccountTransactionList = exports.fetchDepositAccountHistoryFailure = exports.fetchDepositAccountHistorySuccess = exports.updateDepositAccount = exports.getCheckDepositDetail = exports.clearCheckDeposit = exports.updateCheckDepositLocalData = exports.depositCheck = exports.ZENI_ACCOUNTS_TAB = exports.fetchDepositAccountDetail = exports.fetchReviewTransferDetail = exports.clearReviewTransferDetail = exports.clearTransferDetail = exports.getTransferDetail = exports.transferMoney = exports.updateDepositToLocalData = exports.updateTransferToLocalData = exports.updateTransferMoneyLocalData = exports.fetchZeniAccountsConfig = exports.fetchDepositAccount = exports.getDepositAccountDetailForPDF = exports.getAllDepostAccounts = exports.getDepositAccountDetail = exports.unlinkPaymentAccount = exports.fetchPaymentAccountList = exports.createCheckingAccount = exports.updateZeniAccountListTab = exports.fetchZeniAccountList = exports.getZeniAccountList = exports.getZeniAccountsConfigDetail = exports.fetchOwnerList = exports.fetchRecommendationByEntityName = void 0;
|
|
46
|
+
exports.updateCompanyHealthMetricLocalStore = exports.saveCompanyHealthMetricById = exports.removeSelectedCompanyId = exports.initializeCompanyHealthMetricViewLocalData = exports.fetchCompanyHealthMetricView = exports.clearCompanyHealthMetricView = exports.updateCompanyHealth = exports.updateCompaniesHealth = exports.getUserRoleConfig = exports.fetchUserRoleConfig = exports.clearInternationalWire = exports.deletePaymentInstrument = exports.createPaymentInstrumentUpdateStatus = exports.createPaymentInstrument = exports.fetchInternationalWireDynamicForm = exports.initializeDynamicForm = exports.updateInternationalWireLocalStoreData = exports.initializeInternationalWireLocalData = exports.getInternationalWireView = exports.fetchWiseRedirectStatus = exports.getWiseRedirect = exports.saveMagicLinkAddressInLocalStore = exports.fetchMagicLinkBankNameBySwift = exports.fetchMagicLinkBankNameByRouting = exports.updateMagicLinkInternationalBankAccountLocalStoreData = exports.updateMagicLinkBankAccountLocalStoreData = exports.saveBankAccount = exports.fetchBillAttachment = exports.fetchMagicLinkTenant = exports.getMagicLinkCurrentAddressState = exports.getMagicLinkBankAccountView = exports.getMagicLinkView = exports.initializeAccountMappingView = exports.getAccountMappingView = exports.clearAccountMappingLocalData = exports.saveAccountMappingLocalData = exports.saveAccountMapping = exports.getOnboardingCustomerView = exports.clearOnboardingCustomerViewDataInLocalStore = exports.clearOnboardingCustomerView = exports.saveOnboardingCustomerViewDataInLocalStore = exports.saveOnboardingCompnayOfficerPhoneInLocalStore = exports.updateOnboardingCustomerViewUIState = exports.updateCurrentStep = exports.updateOnboardingCustomerViewLocalStoreData = exports.updateOnboardingCustomerView = exports.updateOnboardingPaymentAccountStatus = exports.updateOnboardingPaymentAccountLoginStatus = exports.updateOnboardingCustomerViewCompleteStatus = exports.updateOnboardingCustomerViewAccountDetails = void 0;
|
|
47
|
+
exports.saveScheduleDetails = exports.fetchScheduleDetailsPage = exports.getScheduleDetailsView = exports.fetchScheduleDetails = exports.updateSelectedJEScheduleKey = exports.updateScheduleListSortState = exports.updateScheduleListScrollState = exports.updateScheduleListSearchText = exports.updateScheduleListSubTab = exports.toScheduleSubTabType = exports.toScheduleListTabsFileTypeStrict = exports.toScheduleTypesTypeStrict = exports.toScheduleTypesType = exports.getFetchStateForScheduleAccountList = exports.updateScheduleListLocalData = exports.fetchSchedulesAccount = exports.fetchDownloadSchedules = exports.fetchScheduleList = exports.getScheduleListReport = exports.ALL_SCHEDULES_TYPES = exports.updateApAgingDetailUIState = exports.getApAgingDetailForVendor = exports.fetchApAgingDetail = exports.updateApAgingUIState = exports.getApAgingReport = exports.fetchApAging = exports.updateChargeCardDetail = exports.updateChargeCardListUIState = exports.updateChargeCardListSearchText = exports.resetIssueChargeCardForm = exports.updateChargeCardLocalStore = exports.issueChargeCard = exports.acceptChargeCardTerms = exports.fetchChargeCardSetupView = exports.getChargeCardSetupViewDetails = exports.toCreditLimitFrequencyCodeType = exports.toChargeCardSortKeyType = exports.fetchChargeCardTransactionList = exports.getChargeCardDetailView = exports.fetchChargeCardDetailPage = exports.getChargeCardListView = exports.fetchChargeCardListPage = exports.getChargeCardBusinessVerificationDetails = exports.companyHealthMetricDropDownOptions = exports.hasCompanyHealthMetricFormFieldChanged = exports.getCompanyHealthMetricView = exports.isCompanyRunwayInfinite = exports.updateCompanyHealthViewUIState = exports.updateCompanyHealthMetricViewSuccessStatus = exports.updateCompanyHealthMetricViewErrorStatus = void 0;
|
|
48
|
+
exports.toRecurringBillFrequencyStrict = exports.toRecurringBillFrequency = exports.updateArAgingNodeCollapseState = exports.getArAgingDetailForCustomer = exports.getArAgingReport = exports.updateArAgingDetailUIState = exports.fetchArAgingDetail = exports.updateArAgingUIState = exports.fetchArAging = exports.toVendorGlobalReviewColumnSortKeyType = exports.getTenantMerchantByMerchantId = exports.getVendorGlobalReviewView = exports.updateVendorGlobalReviewViewUIState = exports.updateSelectedGlobalMerchant = exports.fetchVendorGlobalReviewView = exports.rejectVendorGlobalReview = exports.approveVendorGlobalReview = exports.getGlobalMerchantView = exports.clearGlobalMerchantView = exports.updateCreateGlobalMerchantLocalData = exports.createGlobalMerchant = exports.fetchGlobalMerchantRecommendation = exports.clearGlobalMerchantAutoCompleteResults = exports.fetchGlobalMerchantAutoCompleteView = exports.updateVendorFirstReviewSortUiState = exports.updateVendorFirstReviewViewLocalData = exports.saveVendorFirstReviewView = exports.clearRecentlySavedErroredVendorData = exports.updateVendorFirstReviewViewPageToken = exports.resetVendorFirstReviewLocalData = exports.updateVendorFirstReviewViewScrollYOffset = exports.fetchVendorFirstReviewView = exports.getVendorFirstReviewView = exports.getGlobalMerchantAutoCompleteResults = exports.toVendorFirstReviewViewColumnKeyType = exports.resetMarkAsCompleteStatus = exports.markAsCompleteScheduleDetail = exports.getDefaultSelectedTimeframeForScheduleType = exports.getFetchStateForScheduleListByType = exports.updatedJELinkWithRecommendedLocalData = exports.resetJELinkInLocalData = exports.updateAmountsInScheduleDetail = exports.updatedJELinkInLocalData = exports.getThirdPartyIDFromQBOURL = exports.getQBOUrlForLink = exports.updatedSelectedJELinkRowIndex = exports.updateScheduleListDownloadState = exports.updateScheduleDetailsLocalData = exports.createNewSchedules = exports.deleteScheduleDetail = void 0;
|
|
49
|
+
exports.AmountStatusTypes = exports.StatusTypes = exports.toReferralListViewSortKeyType = exports.getInviteFormView = exports.getReferralListView = exports.getNotificationsForSelectedSubTab = exports.getExternalNotificationsForSelectedSubTab = exports.getNotificationView = exports.updateNotificationViewUIState = exports.updateNotificationViewSubTab = exports.updateNotificationViewCurrentTabAndSubTab = exports.updateNotificationViewTabState = exports.updateNotificationViewNotificationStatus = exports.updateNotificationViewAllNotificationsStatus = exports.fetchNotificationUnreadCountSuccess = exports.fetchNotificationUnreadCount = exports.fetchNotificationView = exports.toNotificationTabTypeStrict = exports.toNotificationSubTabTypeStrict = exports.updateCommentsNotificationsStatuses = exports.updateCommentsNotifications = exports.toNotificationModeStrict = exports.fetchZeniAccountsPromoCard = exports.getZeniAccountsPromoCard = exports.getAuthenticationView = exports.fetchCollaborationAuthToken = exports.clearAuditReportGroupViewByCompanyId = exports.fetchAuditReportGroupView = exports.fetchAuditRuleGroupView = exports.getAuditRuleGroupViewSelectorView = exports.getAuditReportGroupViewSelectorView = exports.deleteTag = exports.createTag = exports.fetchTagList = exports.getAllTags = exports.discardTaskUpdatesInLocalStore = exports.deleteTask = exports.TASK_LIST_FILTER_CATEGORIES = exports.updateTaskFilters = exports.allTaskPriority = exports.allTaskStatus = exports.updateTaskListUIState = exports.updateTaskListSearchText = exports.archiveTask = exports.saveTaskDetail = exports.saveTaskUpdatesToLocalStore = exports.fetchTaskDetailPage = exports.getTaskDetail = exports.fetchTaskListPage = exports.getAllTasks = void 0;
|
|
50
|
+
exports.getMinAllowedEndDate = exports.toRecurringFrequency = exports.getRecurringEndDateFromCount = exports.fetchRewardsPlan = exports.resendReferralInvite = exports.updateReferralListSortUiState = exports.saveReferralFormDataInLocalStore = exports.clearReferrals = exports.sendReferralInvite = exports.fetchReferrals = void 0;
|
|
51
51
|
const zeniDayJS_1 = require("./zeniDayJS");
|
|
52
52
|
Object.defineProperty(exports, "Dayjs", { enumerable: true, get: function () { return zeniDayJS_1.Dayjs; } });
|
|
53
53
|
Object.defineProperty(exports, "updateZeniDateLocaleID", { enumerable: true, get: function () { return zeniDayJS_1.updateZeniDateLocaleID; } });
|
|
@@ -878,17 +878,18 @@ const zeniAccountSetupViewReducer_1 = require("./view/spendManagement/zeniAccoun
|
|
|
878
878
|
Object.defineProperty(exports, "fetchZeniAccountSetupView", { enumerable: true, get: function () { return zeniAccountSetupViewReducer_1.fetchZeniAccountSetupView; } });
|
|
879
879
|
Object.defineProperty(exports, "acceptZeniAccountTerms", { enumerable: true, get: function () { return zeniAccountSetupViewReducer_1.acceptZeniAccountTerms; } });
|
|
880
880
|
Object.defineProperty(exports, "clearZeniAccountSetupView", { enumerable: true, get: function () { return zeniAccountSetupViewReducer_1.clearZeniAccountSetupView; } });
|
|
881
|
+
const plaidAccountViewReducer_1 = require("./view/spendManagement/plaidAccount/plaidAccountViewReducer");
|
|
882
|
+
Object.defineProperty(exports, "getPaymentAccounts", { enumerable: true, get: function () { return plaidAccountViewReducer_1.getPaymentAccounts; } });
|
|
883
|
+
Object.defineProperty(exports, "getPlaidLinkToken", { enumerable: true, get: function () { return plaidAccountViewReducer_1.getPlaidLinkToken; } });
|
|
884
|
+
Object.defineProperty(exports, "updatePaymentAccount", { enumerable: true, get: function () { return plaidAccountViewReducer_1.updatePaymentAccount; } });
|
|
885
|
+
Object.defineProperty(exports, "updatePaymentAccountLoginStatus", { enumerable: true, get: function () { return plaidAccountViewReducer_1.updatePaymentAccountLoginStatus; } });
|
|
886
|
+
Object.defineProperty(exports, "updatePaymentAccountStatus", { enumerable: true, get: function () { return plaidAccountViewReducer_1.updatePaymentAccountStatus; } });
|
|
887
|
+
Object.defineProperty(exports, "establishPlaidConnection", { enumerable: true, get: function () { return plaidAccountViewReducer_1.establishPlaidConnection; } });
|
|
881
888
|
const setupViewReducer_1 = require("./view/spendManagement/commonSetup/setupViewReducer");
|
|
882
889
|
Object.defineProperty(exports, "enableSetup", { enumerable: true, get: function () { return setupViewReducer_1.enableSetup; } });
|
|
883
|
-
Object.defineProperty(exports, "getPaymentAccounts", { enumerable: true, get: function () { return setupViewReducer_1.getPaymentAccounts; } });
|
|
884
|
-
Object.defineProperty(exports, "getPlaidLinkToken", { enumerable: true, get: function () { return setupViewReducer_1.getPlaidLinkToken; } });
|
|
885
890
|
Object.defineProperty(exports, "updateSelectedCompanyOfficer", { enumerable: true, get: function () { return setupViewReducer_1.updateSelectedCompanyOfficer; } });
|
|
886
891
|
Object.defineProperty(exports, "updateSetupViewLocalStoreData", { enumerable: true, get: function () { return setupViewReducer_1.updateSetupViewLocalStoreData; } });
|
|
887
892
|
Object.defineProperty(exports, "updateBusinessVerificationDetails", { enumerable: true, get: function () { return setupViewReducer_1.updateBusinessVerificationDetails; } });
|
|
888
|
-
Object.defineProperty(exports, "updatePaymentAccount", { enumerable: true, get: function () { return setupViewReducer_1.updatePaymentAccount; } });
|
|
889
|
-
Object.defineProperty(exports, "updatePaymentAccountLoginStatus", { enumerable: true, get: function () { return setupViewReducer_1.updatePaymentAccountLoginStatus; } });
|
|
890
|
-
Object.defineProperty(exports, "updatePaymentAccountStatus", { enumerable: true, get: function () { return setupViewReducer_1.updatePaymentAccountStatus; } });
|
|
891
|
-
Object.defineProperty(exports, "establishPlaidConnection", { enumerable: true, get: function () { return setupViewReducer_1.establishPlaidConnection; } });
|
|
892
893
|
Object.defineProperty(exports, "saveSetupViewDataInLocalStore", { enumerable: true, get: function () { return setupViewReducer_1.saveSetupViewDataInLocalStore; } });
|
|
893
894
|
Object.defineProperty(exports, "saveCompnayOfficerPhoneInLocalStore", { enumerable: true, get: function () { return setupViewReducer_1.saveCompnayOfficerPhoneInLocalStore; } });
|
|
894
895
|
Object.defineProperty(exports, "saveCompnayOfficerAdditionalDocumentsInLocalStore", { enumerable: true, get: function () { return setupViewReducer_1.saveCompnayOfficerAdditionalDocumentsInLocalStore; } });
|
|
@@ -897,6 +898,8 @@ Object.defineProperty(exports, "saveIndustryAndIncDateInLocalStore", { enumerabl
|
|
|
897
898
|
const billPaySetupViewSelector_1 = require("./view/spendManagement/billPay/billPaySetupView/billPaySetupViewSelector");
|
|
898
899
|
Object.defineProperty(exports, "getBillPaySetupViewDetails", { enumerable: true, get: function () { return billPaySetupViewSelector_1.getBillPaySetupViewDetails; } });
|
|
899
900
|
Object.defineProperty(exports, "getBillPayBusinessVerificationDetails", { enumerable: true, get: function () { return billPaySetupViewSelector_1.getBillPayBusinessVerificationDetails; } });
|
|
901
|
+
const plaidAccountViewSelector_1 = require("./view/spendManagement/plaidAccount/plaidAccountViewSelector");
|
|
902
|
+
Object.defineProperty(exports, "getPlaidAccountwDetails", { enumerable: true, get: function () { return plaidAccountViewSelector_1.getPlaidAccountwDetails; } });
|
|
900
903
|
const zeniAccountSetupViewSelector_1 = require("./view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewSelector");
|
|
901
904
|
Object.defineProperty(exports, "getZeniAccountSetupViewDetails", { enumerable: true, get: function () { return zeniAccountSetupViewSelector_1.getZeniAccountSetupViewDetails; } });
|
|
902
905
|
Object.defineProperty(exports, "getZeniAccountBusinessVerificationDetails", { enumerable: true, get: function () { return zeniAccountSetupViewSelector_1.getZeniAccountBusinessVerificationDetails; } });
|
package/lib/reducer.d.ts
CHANGED
|
@@ -100,6 +100,7 @@ import { ReviewCompanyViewState } from './view/reviewCompanyView/reviewCompanyVi
|
|
|
100
100
|
import { UserListViewState } from './view/userListView/userListViewState';
|
|
101
101
|
import { RemiListState } from './view/spendManagement/reimbursement/remiListView/remiListState';
|
|
102
102
|
import { SetupViewState } from './view/spendManagement/commonSetup/setupViewState';
|
|
103
|
+
import { PlaidAccountViewState } from './view/spendManagement/plaidAccount/plaidAccountViewState';
|
|
103
104
|
import { RemiSetupViewState } from './view/spendManagement/reimbursement/remiSetupView/remiSetupViewState';
|
|
104
105
|
import { RemiSetupApproverViewState } from './view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewState';
|
|
105
106
|
import { BankAccountViewState } from './view/bankAccountView/bankAccountViewState';
|
|
@@ -277,6 +278,7 @@ declare type ViewsState = {
|
|
|
277
278
|
ownerListState: OwnerListState;
|
|
278
279
|
paymentAccountListState: PaymentAccountListState;
|
|
279
280
|
peopleState: PeopleState;
|
|
281
|
+
plaidAccountViewState: PlaidAccountViewState;
|
|
280
282
|
previousBillsState: PreviousBillsState;
|
|
281
283
|
profitAndLossClassesViewState: ProfitAndLossClassesViewState;
|
|
282
284
|
profitAndLossState: ProfitAndLossWithForecastState;
|
|
@@ -390,6 +392,7 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
390
392
|
paymentAccountListState: PaymentAccountListState;
|
|
391
393
|
paymentAccountState: PaymentAccountState;
|
|
392
394
|
peopleState: PeopleState;
|
|
395
|
+
plaidAccountViewState: PlaidAccountViewState;
|
|
393
396
|
previousBillsState: PreviousBillsState;
|
|
394
397
|
profitAndLossClassesViewState: ProfitAndLossClassesViewState;
|
|
395
398
|
profitAndLossState: ProfitAndLossWithForecastState;
|
package/lib/reducer.js
CHANGED
|
@@ -131,6 +131,7 @@ const reviewCompanyViewReducer_1 = __importStar(require("./view/reviewCompanyVie
|
|
|
131
131
|
const userListViewReducer_1 = __importStar(require("./view/userListView/userListViewReducer"));
|
|
132
132
|
const remiListReducer_1 = __importStar(require("./view/spendManagement/reimbursement/remiListView/remiListReducer"));
|
|
133
133
|
const setupViewReducer_1 = __importStar(require("./view/spendManagement/commonSetup/setupViewReducer"));
|
|
134
|
+
const plaidAccountViewReducer_1 = __importStar(require("./view/spendManagement/plaidAccount/plaidAccountViewReducer"));
|
|
134
135
|
const remiSetupViewReducer_1 = __importStar(require("./view/spendManagement/reimbursement/remiSetupView/remiSetupViewReducer"));
|
|
135
136
|
const remiSetupApproverViewReducer_1 = __importStar(require("./view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer"));
|
|
136
137
|
const bankAccountViewReducer_1 = __importStar(require("./view/bankAccountView/bankAccountViewReducer"));
|
|
@@ -310,6 +311,7 @@ const initialViewsState = {
|
|
|
310
311
|
ownerListState: ownerListReducer_1.initialState,
|
|
311
312
|
paymentAccountListState: paymentAccountListReducer_1.initialState,
|
|
312
313
|
peopleState: peopleReducer_1.initialState,
|
|
314
|
+
plaidAccountViewState: plaidAccountViewReducer_1.initialState,
|
|
313
315
|
previousBillsState: previousBillsReducer_1.initialState,
|
|
314
316
|
profitAndLossClassesViewState: profitAndLossClassesViewReducer_1.initialState,
|
|
315
317
|
profitAndLossState: profitAndLossReducer_1.initialState,
|
|
@@ -480,6 +482,7 @@ const viewReducers = {
|
|
|
480
482
|
paymentAccountListState: paymentAccountListReducer_1.default,
|
|
481
483
|
paymentAccountState: paymentAccountReducer_1.default,
|
|
482
484
|
peopleState: peopleReducer_1.default,
|
|
485
|
+
plaidAccountViewState: plaidAccountViewReducer_1.default,
|
|
483
486
|
previousBillsState: previousBillsReducer_1.default,
|
|
484
487
|
profitAndLossClassesViewState: profitAndLossClassesViewReducer_1.default,
|
|
485
488
|
profitAndLossState: profitAndLossReducer_1.default,
|
package/lib/view/onboardingView/customerView/epic/plaidConnection/getOnboardingPlaidLinkTokenEpic.js
CHANGED
|
@@ -6,7 +6,7 @@ const operators_1 = require("rxjs/operators");
|
|
|
6
6
|
const responsePayload_1 = require("../../../../../responsePayload");
|
|
7
7
|
const snackbarReducer_1 = require("../../../../../entity/snackbar/snackbarReducer");
|
|
8
8
|
const onboardingCustomerViewReducer_1 = require("../../onboardingCustomerViewReducer");
|
|
9
|
-
const getPlaidLinkTokenEpic_1 = require("../../../../spendManagement/
|
|
9
|
+
const getPlaidLinkTokenEpic_1 = require("../../../../spendManagement/plaidAccount/epic/plaidConnection/getPlaidLinkTokenEpic");
|
|
10
10
|
const getOnboardingPlaidLinkTokenEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(onboardingCustomerViewReducer_1.getOnboardingPlaidLinkToken.match), (0, operators_1.switchMap)((action) => {
|
|
11
11
|
const { linkTokenType, paymentAccountId } = action.payload;
|
|
12
12
|
return zeniAPI
|
|
@@ -2,7 +2,7 @@ import { ID } from '../../../commonStateTypes/common';
|
|
|
2
2
|
import { OnboardingCustomerViewState, OnboardingStep, OnboardingCustomerViewUIState } from './onboardingCustomerViewState';
|
|
3
3
|
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
4
4
|
import { CompanyOfficerType } from '../../companyView/types/companyPassport/companyUsersLocalData';
|
|
5
|
-
import { PlaidLinkTokenType } from '../../spendManagement/
|
|
5
|
+
import { PlaidLinkTokenType } from '../../spendManagement/plaidAccount/plaidAccountViewState';
|
|
6
6
|
export declare const initialState: OnboardingCustomerViewState;
|
|
7
7
|
export declare const fetchOnboardingCustomerView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, cacheOverride?: any, reCalculateCurrentStep?: any], {
|
|
8
8
|
companyId: string;
|
|
@@ -67,7 +67,7 @@ export declare const fetchOnboardingCustomerView: import("@reduxjs/toolkit").Act
|
|
|
67
67
|
companyId: ID;
|
|
68
68
|
currentStep?: "company_details" | "company_officer" | "link_payment_account" | "qbo_connection" | undefined;
|
|
69
69
|
reCalculateCurrentStep?: boolean | undefined;
|
|
70
|
-
}, string>, saveOnboardingCustomerViewDataInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<import("
|
|
70
|
+
}, string>, saveOnboardingCustomerViewDataInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<import("../../..").SetupViewLocalData>, string>, saveOnboardingCompnayOfficerPhoneInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
71
71
|
officerType: CompanyOfficerType;
|
|
72
72
|
phone: string | number;
|
|
73
73
|
}, string>, updateOnboardingCustomerViewUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<OnboardingCustomerViewUIState>, string>, sendOnboardingOfficerOtp: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, sendOnboardingOfficerOtpSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
@@ -5,7 +5,7 @@ import { PaymentAccount } from '../../../entity/paymentAccount/paymentAccountSta
|
|
|
5
5
|
import { SubscriptionPaymentAccount } from '../../../entity/subscriptionPaymentAccount/subscriptionPaymentAccountState';
|
|
6
6
|
import { CompanyOfficerType } from '../../companyView/types/companyPassport/companyUsersLocalData';
|
|
7
7
|
import { CompanyView } from '../../companyView/types/companyView';
|
|
8
|
-
import { CompanyOfficerLocalData
|
|
8
|
+
import { CompanyOfficerLocalData } from '../../spendManagement/commonSetup/setupViewState';
|
|
9
9
|
import { OnboardingStep, OnboardingCustomerViewUIState } from './onboardingCustomerViewState';
|
|
10
10
|
import { CompanyDetails, CompanyOfficersDetails } from '../../spendManagement/commonSetup/setupViewSelector';
|
|
11
11
|
import { User } from '../../../entity/user/userState';
|
|
@@ -13,6 +13,7 @@ import { UserRole } from '../../../entity/userRole/userRoleState';
|
|
|
13
13
|
import { TenantExternalConnections, TenantProductSettings } from '../../../entity/tenant/tenantState';
|
|
14
14
|
import { AccountingConnectionCreationMode } from '../../../entity/company/companyStateTypes';
|
|
15
15
|
import { FileState } from '../../../entity/file/fileState';
|
|
16
|
+
import { PlaidConnectionDetails } from '../../spendManagement/plaidAccount/plaidAccountViewState';
|
|
16
17
|
export interface OnboardingCustomerView {
|
|
17
18
|
companyDetailsLocalData?: CompanyDetails;
|
|
18
19
|
companyOfficerLocalData: Record<CompanyOfficerType, CompanyOfficersDetails | undefined>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FetchStateAndError, FetchedState, ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { CompanyOfficerType } from '../../companyView/types/companyPassport/companyUsersLocalData';
|
|
3
|
-
import { CompanyDetailsLocalData, CompanyOfficerLocalData,
|
|
3
|
+
import { CompanyDetailsLocalData, CompanyOfficerLocalData, PrimaryContactLocalData, SetupViewLocalData } from '../../spendManagement/commonSetup/setupViewState';
|
|
4
|
+
import { PlaidConnectionDetails } from '../../spendManagement/plaidAccount/plaidAccountViewState';
|
|
4
5
|
export declare const ZENI_USER_REQUIRED_ONBOARDING_STEPS: readonly ["link_payment_account"];
|
|
5
6
|
export declare const CUSTOMER_REQUIRED_ONBOARDING_STEPS_WITH_QBO: readonly ["qbo_connection"];
|
|
6
7
|
export declare const REQUIRED_ONBOARDING_STEPS: readonly ["link_payment_account", "qbo_connection"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ActionsObservable } from 'redux-observable';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { fetchBankConnectionsView, fetchBankAccountsList } from '../settingsViewReducer';
|
|
4
|
-
import { getPaymentAccounts } from '../../spendManagement/
|
|
4
|
+
import { getPaymentAccounts } from '../../spendManagement/plaidAccount/plaidAccountViewReducer';
|
|
5
5
|
export declare type ActionType = ReturnType<typeof fetchBankConnectionsView> | ReturnType<typeof fetchBankAccountsList> | ReturnType<typeof getPaymentAccounts>;
|
|
6
6
|
export declare const fetchBankConnectionsViewEpic: (actions$: ActionsObservable<ActionType>) => Observable<ActionType>;
|
|
@@ -4,11 +4,11 @@ exports.fetchBankConnectionsViewEpic = void 0;
|
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
6
|
const settingsViewReducer_1 = require("../settingsViewReducer");
|
|
7
|
-
const
|
|
7
|
+
const plaidAccountViewReducer_1 = require("../../spendManagement/plaidAccount/plaidAccountViewReducer");
|
|
8
8
|
const fetchBankConnectionsViewEpic = (actions$) => actions$.pipe((0, operators_1.filter)(settingsViewReducer_1.fetchBankConnectionsView.match), (0, operators_1.switchMap)(() => {
|
|
9
9
|
return (0, rxjs_1.from)([
|
|
10
10
|
(0, settingsViewReducer_1.fetchBankAccountsList)(),
|
|
11
|
-
(0,
|
|
11
|
+
(0, plaidAccountViewReducer_1.getPaymentAccounts)('bill_pay', 'spend_management_setup', false),
|
|
12
12
|
]);
|
|
13
13
|
}));
|
|
14
14
|
exports.fetchBankConnectionsViewEpic = fetchBankConnectionsViewEpic;
|
|
@@ -31,17 +31,17 @@ function getApprovalRuleViewDetails(state) {
|
|
|
31
31
|
}
|
|
32
32
|
exports.getApprovalRuleViewDetails = getApprovalRuleViewDetails;
|
|
33
33
|
function getBankConnectionsSetupViewDetails(state, companyId) {
|
|
34
|
-
const { accountState,
|
|
34
|
+
const { accountState, plaidAccountViewState, settingsViewState } = state;
|
|
35
35
|
const { bankConnection } = settingsViewState;
|
|
36
36
|
const allBankAccounts = bankConnection.bankAccountIds
|
|
37
37
|
.map((accountId) => (0, accountSelector_1.getAccountBase)(accountState, accountId, 'bill_pay'))
|
|
38
38
|
.filter((account) => account != null);
|
|
39
39
|
const fetchState = (0, reduceFetchState_1.reduceAnyFetchState)([
|
|
40
40
|
settingsViewState.bankConnection,
|
|
41
|
-
|
|
41
|
+
plaidAccountViewState['spend_management_setup'].accountDetails.fetchStatus,
|
|
42
42
|
]);
|
|
43
43
|
return {
|
|
44
|
-
setupView: Object.assign(Object.assign({}, (0, setupViewSelector_1.getCommonSetupViewDetails)(state, companyId, 'bill_pay')), { allBankAccounts }),
|
|
44
|
+
setupView: Object.assign(Object.assign({}, (0, setupViewSelector_1.getCommonSetupViewDetails)(state, companyId, 'bill_pay', 'spend_management_setup')), { allBankAccounts }),
|
|
45
45
|
fetchState: fetchState.fetchState,
|
|
46
46
|
};
|
|
47
47
|
}
|
|
@@ -37,7 +37,7 @@ const getDuplicateBills = (state, billId) => {
|
|
|
37
37
|
exports.getDuplicateBills = getDuplicateBills;
|
|
38
38
|
const getReviewPageBillDetail = (state, billId) => {
|
|
39
39
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
40
|
-
const { accountListState, accountState,
|
|
40
|
+
const { accountListState, accountState, plaidAccountViewState, billTransactionState, classListState, editBillDetailViewState, paymentAccountState, vendorState, contactState, billPayConfigState, recurringBillState, depositAccountState, depositAccountListState, } = state;
|
|
41
41
|
const key = (0, billDetailViewState_1.getBillTransactionDetailKey)(billId !== null && billId !== void 0 ? billId : '');
|
|
42
42
|
const sourceBillDetail = billId != null
|
|
43
43
|
? (_a = editBillDetailViewState.editBillStateById) === null || _a === void 0 ? void 0 : _a[key]
|
|
@@ -47,7 +47,8 @@ const getReviewPageBillDetail = (state, billId) => {
|
|
|
47
47
|
let paymentDetailsSection;
|
|
48
48
|
let file;
|
|
49
49
|
let contactDetails = [];
|
|
50
|
-
const primaryPaymentAccount = (0, paymentAccountSelector_1.getPaymentAccountsByPaymentAccountIds)(paymentAccountState,
|
|
50
|
+
const primaryPaymentAccount = (0, paymentAccountSelector_1.getPaymentAccountsByPaymentAccountIds)(paymentAccountState, plaidAccountViewState['spend_management_setup'].accountDetails
|
|
51
|
+
.paymentAccountIds);
|
|
51
52
|
const allDepositAccounts = (0, depositAccountListSelector_1.getAllDepostAccounts)(depositAccountState, depositAccountListState).depositAccounts;
|
|
52
53
|
const withdrawFromList = (0, transferDetailSelector_1.getTransferMoneyParties)(allDepositAccounts, primaryPaymentAccount);
|
|
53
54
|
let fetchState = 'Not-Started';
|
|
@@ -4,7 +4,7 @@ exports.getBillPayBusinessVerificationDetails = exports.getBillPaySetupViewDetai
|
|
|
4
4
|
const setupViewSelector_1 = require("../../commonSetup/setupViewSelector");
|
|
5
5
|
const helpers_1 = require("../../helpers");
|
|
6
6
|
function getBillPaySetupViewDetails(state, companyId) {
|
|
7
|
-
const billPaySetupViewDetails = (0, setupViewSelector_1.getCommonSetupViewDetails)(state, companyId, 'bill_pay');
|
|
7
|
+
const billPaySetupViewDetails = (0, setupViewSelector_1.getCommonSetupViewDetails)(state, companyId, 'bill_pay', 'spend_management_setup');
|
|
8
8
|
const businessVerificationDetails = getBillPayBusinessVerificationDetails(state, companyId);
|
|
9
9
|
const selectedCompanyOfficer = (0, helpers_1.getSelectedCompanyOfficer)(businessVerificationDetails);
|
|
10
10
|
const { billPaySetupViewState, setupViewState } = state;
|
|
@@ -10,7 +10,8 @@ import { updateAddresses } from '../../../../../../entity/address/addressReducer
|
|
|
10
10
|
import { updateAccounts } from '../../../../../../entity/account/accountReducer';
|
|
11
11
|
import { updatePaymentAccounts } from '../../../../../../entity/paymentAccount/paymentAccountReducer';
|
|
12
12
|
import { openSnackbar } from '../../../../../../entity/snackbar/snackbarReducer';
|
|
13
|
-
import {
|
|
13
|
+
import { updateSetupViewLocalStoreData } from '../../../../commonSetup/setupViewReducer';
|
|
14
14
|
import { fetchBillPaySetupView, fetchBillPaySetupViewSuccess, fetchBillPaySetupViewFailure } from '../../billPaySetupViewReducer';
|
|
15
|
-
|
|
15
|
+
import { updatePlaidAccountViewAccountDetails } from '../../../../plaidAccount/plaidAccountViewReducer';
|
|
16
|
+
export declare type ActionType = ReturnType<typeof fetchBillPaySetupView> | ReturnType<typeof updateAllUsers> | ReturnType<typeof updateUserRoles> | ReturnType<typeof updateCompanies> | ReturnType<typeof updateFiles> | ReturnType<typeof updateAccounts> | ReturnType<typeof updateAddresses> | ReturnType<typeof updatePaymentAccounts> | ReturnType<typeof updatePlaidAccountViewAccountDetails> | ReturnType<typeof updateSetupViewLocalStoreData> | ReturnType<typeof openSnackbar> | ReturnType<typeof fetchBillPaySetupViewSuccess> | ReturnType<typeof fetchBillPaySetupViewFailure>;
|
|
16
17
|
export declare const fetchBillPaySetupViewEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -15,10 +15,11 @@ const companySelector_1 = require("../../../../../../entity/company/companySelec
|
|
|
15
15
|
const snackbarReducer_1 = require("../../../../../../entity/snackbar/snackbarReducer");
|
|
16
16
|
const setupViewReducer_1 = require("../../../../commonSetup/setupViewReducer");
|
|
17
17
|
const billPaySetupViewReducer_1 = require("../../billPaySetupViewReducer");
|
|
18
|
+
const plaidAccountViewReducer_1 = require("../../../../plaidAccount/plaidAccountViewReducer");
|
|
18
19
|
const fetchBillPaySetupViewEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(billPaySetupViewReducer_1.fetchBillPaySetupView.match), (0, operators_1.switchMap)((action) => {
|
|
19
20
|
var _a;
|
|
20
21
|
const { companyId, cacheOverride, refreshViewInBackground } = action.payload;
|
|
21
|
-
const { billPaySetupViewState,
|
|
22
|
+
const { billPaySetupViewState, companyState, plaidAccountViewState } = state$.value;
|
|
22
23
|
const company = (_a = (0, companySelector_1.getCompanyByCompanyId)(companyState, companyId)) === null || _a === void 0 ? void 0 : _a.company;
|
|
23
24
|
if (cacheOverride === true ||
|
|
24
25
|
refreshViewInBackground === true ||
|
|
@@ -45,7 +46,7 @@ const fetchBillPaySetupViewEpic = (actions$, state$, zeniAPI) => actions$.pipe((
|
|
|
45
46
|
(0, setupViewReducer_1.updateSetupViewLocalStoreData)({
|
|
46
47
|
companyId: response.data.companies[0].company_id,
|
|
47
48
|
}),
|
|
48
|
-
(0,
|
|
49
|
+
(0, plaidAccountViewReducer_1.updatePlaidAccountViewAccountDetails)(allBankAccountIds, paymentAccountIds, 'spend_management_setup'),
|
|
49
50
|
(0, billPaySetupViewReducer_1.fetchBillPaySetupViewSuccess)(),
|
|
50
51
|
];
|
|
51
52
|
return (0, rxjs_1.from)(actions);
|
|
@@ -61,10 +62,10 @@ const fetchBillPaySetupViewEpic = (actions$, state$, zeniAPI) => actions$.pipe((
|
|
|
61
62
|
JSON.stringify(error))))));
|
|
62
63
|
}
|
|
63
64
|
else {
|
|
64
|
-
const { allBankAccountIds, paymentAccountIds } =
|
|
65
|
+
const { allBankAccountIds, paymentAccountIds } = plaidAccountViewState['spend_management_setup'].accountDetails;
|
|
65
66
|
return (0, rxjs_1.of)((0, setupViewReducer_1.updateSetupViewLocalStoreData)({
|
|
66
67
|
companyId,
|
|
67
|
-
}), (0,
|
|
68
|
+
}), (0, plaidAccountViewReducer_1.updatePlaidAccountViewAccountDetails)(allBankAccountIds, paymentAccountIds, 'spend_management_setup'), (0, billPaySetupViewReducer_1.fetchBillPaySetupViewSuccess)());
|
|
68
69
|
}
|
|
69
70
|
}));
|
|
70
71
|
exports.fetchBillPaySetupViewEpic = fetchBillPaySetupViewEpic;
|
|
@@ -32,7 +32,7 @@ const depositAccountListSelector_1 = require("../../zeniAccounts/depositAccountL
|
|
|
32
32
|
const depositAccountSelector_1 = require("../../../../entity/depositAccount/depositAccountSelector");
|
|
33
33
|
const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, isZeniAccountsEnabled, billId) => {
|
|
34
34
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6;
|
|
35
|
-
const { accountListState, accountState, bankAccountState, billDetailViewState,
|
|
35
|
+
const { accountListState, accountState, bankAccountState, billDetailViewState, plaidAccountViewState, billTransactionState, billPayConfigState, classListState, classState, editBillDetailViewState, paymentAccountState, vendorState, tenantState, companyState, userState, commonHistoryState, contactState, paymentInstrumentState, recurringBillState, depositAccountListState, depositAccountState, } = state;
|
|
36
36
|
const transaction = (0, get_1.default)(billTransactionState.transactionById, billId !== null && billId !== void 0 ? billId : '', undefined);
|
|
37
37
|
let recommendations = {};
|
|
38
38
|
if (billId != null) {
|
|
@@ -70,7 +70,8 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, isZeniAc
|
|
|
70
70
|
we need to pick payment ids from billPayInfo object
|
|
71
71
|
*/
|
|
72
72
|
[transaction.billPayInfo.fromAccount.billAccountId]
|
|
73
|
-
:
|
|
73
|
+
: plaidAccountViewState['spend_management_setup'].accountDetails
|
|
74
|
+
.paymentAccountIds);
|
|
74
75
|
const fromDepositAccount = (transaction === null || transaction === void 0 ? void 0 : transaction.billPayInfo.fromAccount.billAccountType) === 'depositAccount' &&
|
|
75
76
|
(transaction === null || transaction === void 0 ? void 0 : transaction.billPayInfo.fromAccount.billAccountId) != null
|
|
76
77
|
? (0, depositAccountSelector_1.getDepositAccountByDepositAccountId)(depositAccountState, transaction === null || transaction === void 0 ? void 0 : transaction.billPayInfo.fromAccount.billAccountId)
|
package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { fetchEditBillDetailPage, updateShowAutofill } from '../editBillViewRedu
|
|
|
4
4
|
import { RootState } from '../../../../../reducer';
|
|
5
5
|
import { fetchClassList } from '../../../../classList/classListReducer';
|
|
6
6
|
import { fetchAccountList } from '../../../../accountList/accountListReducer';
|
|
7
|
-
import { getPaymentAccounts } from '../../../
|
|
7
|
+
import { getPaymentAccounts } from '../../../plaidAccount/plaidAccountViewReducer';
|
|
8
8
|
import { fetchBillPaySetupApproverView } from '../../billPaySetupApproverView/billPaySetupApproverViewReducer';
|
|
9
9
|
import { fetchOwnerList } from '../../../../ownerList/ownerListReducer';
|
|
10
10
|
import { fetchVendorTypeList } from '../../../../vendorTypeList/vendorTypeListReducer';
|