@zeniai/client-epic-state 4.15.41 → 4.15.42
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/README.md +1 -19
- package/lib/commonPayloadTypes/recommendationPayload.d.ts +0 -1
- package/lib/commonStateTypes/common.d.ts +1 -1
- package/lib/commonStateTypes/fiscalYearHelpers/getFYMonths.d.ts +2 -2
- package/lib/commonStateTypes/fiscalYearHelpers/getFYQuarterAndYear.d.ts +2 -2
- package/lib/commonStateTypes/timePeriod.d.ts +7 -7
- package/lib/commonStateTypes/timePeriod.js +2 -2
- package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.d.ts +1 -1
- package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.js +1 -1
- package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +0 -1
- package/lib/configureStore.js +1 -2
- package/lib/entity/account/accountSelector.d.ts +3 -3
- package/lib/entity/account/accountState.d.ts +1 -1
- package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +1 -1
- package/lib/entity/accountGroup/accountGroupSelector.d.ts +22 -22
- package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
- package/lib/entity/approvalRule/approvalRuleState.d.ts +2 -2
- package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +4 -4
- package/lib/entity/chargeCard/chargeCard.d.ts +1 -1
- package/lib/entity/chargeCardTransaction/chargeCardTransaction.d.ts +1 -1
- package/lib/entity/class/classReducer.d.ts +4 -4
- package/lib/entity/class/classState.d.ts +1 -1
- package/lib/entity/company/companyReducer.js +1 -0
- package/lib/entity/customer/customerPayload.d.ts +1 -1
- package/lib/entity/customer/customerPayload.js +6 -16
- package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +1 -1
- package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +2 -2
- package/lib/entity/file/fileState.d.ts +3 -3
- package/lib/entity/forecast/forecastState.d.ts +1 -1
- package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +2 -2
- package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +2 -2
- package/lib/entity/notification/types/notificationTypes.d.ts +2 -2
- package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
- package/lib/entity/snackbar/snackbarTypes.d.ts +2 -2
- package/lib/entity/snackbar/snackbarTypes.js +0 -4
- package/lib/entity/task/taskState.d.ts +3 -3
- package/lib/entity/tenant/clearAllEpic.d.ts +2 -4
- package/lib/entity/tenant/clearAllEpic.js +0 -4
- package/lib/entity/tenant/tenantReducer.d.ts +2 -2
- package/lib/entity/tenant/tenantReducer.js +1 -0
- package/lib/entity/transaction/payloadTypes/customerTransactionPayload.d.ts +1 -1
- package/lib/entity/transaction/payloadTypes/customerTransactionPayload.js +2 -1
- package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +0 -2
- package/lib/entity/transaction/payloadTypes/transactionPayload.js +6 -9
- package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.d.ts +1 -9
- package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.js +2 -24
- package/lib/entity/transaction/stateTypes/attachment.d.ts +2 -2
- package/lib/entity/transaction/stateTypes/transaction.d.ts +1 -3
- package/lib/entity/transaction/stateTypes/transactionType.d.ts +1 -1
- package/lib/entity/transaction/stateTypes/transactionType.js +1 -1
- package/lib/entity/transaction/stateTypes/vendorTransaction.d.ts +0 -5
- package/lib/entity/transaction/stateTypes/vendorTransaction.js +1 -5
- package/lib/entity/transaction/toSupportedTransaction.js +1 -6
- package/lib/entity/transaction/transactionReducer.d.ts +0 -17
- package/lib/entity/transaction/transactionReducer.js +2 -47
- package/lib/entity/transaction/transactionSelector.d.ts +0 -2
- package/lib/entity/transaction/transactionSelector.js +0 -5
- package/lib/entity/transaction/transactionState.d.ts +4 -6
- package/lib/entity/vendorExpense/vendorExpenseReducer.js +1 -0
- package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
- package/lib/epic.d.ts +1 -6
- package/lib/epic.js +1 -6
- package/lib/index.d.ts +13 -22
- package/lib/index.js +27 -56
- package/lib/init.d.ts +1 -2
- package/lib/init.js +2 -9
- package/lib/reducer.d.ts +1 -7
- package/lib/reducer.js +0 -6
- package/lib/view/accountList/accountListReducer.js +3 -1
- package/lib/view/accountMappingView/accountMappingReducer.js +1 -0
- package/lib/view/apAgingView/apAgingDetail/apAgingDetailReducer.js +2 -1
- package/lib/view/auditReportView/auditReportViewReducer.d.ts +2 -2
- package/lib/view/auditReportView/auditReportViewState.d.ts +2 -2
- package/lib/view/balanceSheet/balanceSheetReducer.js +6 -1
- package/lib/view/bankAccountView/bankAccountViewReducer.js +1 -0
- package/lib/view/billPayCard/billPayCardSelector.d.ts +2 -2
- package/lib/view/cardBalance/cardBalanceSelector.d.ts +3 -3
- package/lib/view/cashBalance/cashBalanceSelector.d.ts +3 -3
- package/lib/view/cashFlow/cashFlowReducer.js +4 -1
- package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +2 -2
- package/lib/view/cashPosition/cashPositionReducer.js +1 -0
- package/lib/view/cashPosition/cashPositionSelector.d.ts +2 -2
- package/lib/view/common/reportsHelpers.d.ts +1 -1
- package/lib/view/commonVendorView/transactionVendorView/epics/saveTransactionVendorEpic.js +0 -7
- package/lib/view/commonVendorView/vendorView/epics/fetchAndUpdateVendorRecommendationsEpic.js +3 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
- package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.d.ts +2 -2
- package/lib/view/companyView/companyViewReducer.d.ts +1 -1
- package/lib/view/companyView/companyViewReducer.js +10 -1
- package/lib/view/companyView/types/cockpitTypes.d.ts +3 -3
- package/lib/view/companyView/types/companyPassport/companyUsersLocalData.d.ts +1 -1
- package/lib/view/dashboard/dashboardEpic.js +2 -0
- package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +1 -2
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +10 -24
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +1 -2
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +0 -14
- package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +7 -30
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +5 -1
- package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +2 -17
- package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +2 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewState.js +1 -1
- package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.js +42 -98
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +10 -86
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +11 -11
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +1 -12
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +7 -66
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +0 -2
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +1 -1
- package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +2 -5
- package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.d.ts +1 -1
- package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +1 -1
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +2 -12
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/financeStatement/financeStatementReducer.js +4 -1
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +4 -4
- package/lib/view/netBurnOrIncome/netBurnOrIncomeReducer.js +10 -3
- package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewReducer.js +6 -1
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardReducer.js +1 -0
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardState.d.ts +1 -1
- package/lib/view/notificationView/notificationViewReducer.d.ts +8 -8
- package/lib/view/notificationView/notificationViewState.d.ts +2 -2
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewReducer.js +3 -0
- package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.d.ts +2 -2
- package/lib/view/opEx/opExForTimeFrameEpic.js +1 -1
- package/lib/view/opEx/opExReducer.js +14 -4
- package/lib/view/opExByVendor/opExByVendorReducer.js +3 -1
- package/lib/view/opExByVendor/opExByVendorState.d.ts +1 -1
- package/lib/view/opExClassesView/opExClassesViewReducer.js +6 -1
- package/lib/view/people/fetchPeopleEpic.js +3 -1
- package/lib/view/people/invitePeopleEpic.js +3 -1
- package/lib/view/people/inviteZeniPeopleEpic.js +3 -1
- package/lib/view/people/peopleReducer.js +1 -0
- package/lib/view/people/peopleSaveUpdatesEpic.js +1 -1
- package/lib/view/profitAndLoss/profitAndLossReducer.js +6 -1
- package/lib/view/profitAndLossClassesView/profitAndLossClassesViewReducer.js +6 -1
- package/lib/view/recommendation/recommendationReducer.js +4 -1
- package/lib/view/referralView/referralState.d.ts +1 -1
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +2 -2
- package/lib/view/reportUIOptions/reportUIOptionsReducer.d.ts +8 -8
- package/lib/view/reportUIOptions/updateReportUIOptionThisPeriodEpic.js +3 -1
- package/lib/view/revenue/revenueReducer.js +10 -3
- package/lib/view/revenueClassesView/revenueClassesViewReducer.js +6 -1
- package/lib/view/scheduleView/scheduleAccruedDetailView/LinkBillExpenseView/linkBillExpense.d.ts +1 -1
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +4 -4
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +2 -2
- package/lib/view/settingsView/settingsViewReducer.js +1 -0
- package/lib/view/settingsView/settingsViewState.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billList/billListReducer.js +1 -0
- package/lib/view/spendManagement/billPay/billList/billListState.d.ts +2 -2
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +1 -5
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.js +6 -0
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer.d.ts +2 -2
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/validateBillsBulkActionEpic.ts.js +3 -4
- package/lib/view/spendManagement/billPay/editBillView/epics/fetchBillAndInitializeLocalStoreEpic.js +3 -1
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +1 -2
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +2 -2
- package/lib/view/spendManagement/commonHistoryView/commonHistory.d.ts +1 -1
- package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +7 -7
- package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +1 -1
- package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js +3 -11
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +10 -11
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +1 -3
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +1 -1
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRecommendationsAndUpdateMerchantRecommendationsEpic.js +6 -2
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.js +3 -1
- package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.d.ts +1 -1
- package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.js +1 -0
- package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +4 -4
- package/lib/view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewReducer.d.ts +2 -2
- package/lib/view/spendManagement/zeniAccounts/expressPay/epics/fetchExpressPayInitialDetailsEpic.d.ts +2 -2
- package/lib/view/spendManagement/zeniAccounts/expressPay/epics/fetchExpressPayInitialDetailsEpic.js +7 -7
- package/lib/view/spendManagement/zeniAccounts/expressPay/expressPaySelector.d.ts +2 -2
- package/lib/view/spendManagement/zeniAccounts/expressPay/expressPaySelector.js +4 -5
- package/lib/view/spendManagement/zeniAccounts/expressPay/expressPayState.d.ts +2 -2
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.d.ts +0 -14
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.js +1 -78
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer.js +1 -3
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.d.ts +1 -2
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.js +1 -2
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigState.d.ts +0 -9
- package/lib/view/subscriptionView/subscriptionViewReducer.js +1 -0
- package/lib/view/subscriptionView/types/subscriptionTypes.js +1 -0
- package/lib/view/taskManager/taskListView/epics/dragNDropTasksEpic.js +3 -1
- package/lib/view/taskManager/taskListView/taskList.d.ts +3 -3
- package/lib/view/taskManager/taskListView/taskListSelector.d.ts +1 -1
- package/lib/view/tasksCard/fetchTasksCardEpic.js +2 -1
- package/lib/view/tasksCard/tasksCardSelector.d.ts +2 -2
- package/lib/view/tasksCard/tasksCardSelector.js +1 -1
- package/lib/view/topEx/topExSelector.d.ts +3 -3
- package/lib/view/transactionDetail/epics/saveTransactionHelper.js +52 -45
- package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +4 -22
- package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +13 -66
- package/lib/view/transactionDetail/transactionDetailReducer.d.ts +4 -13
- package/lib/view/transactionDetail/transactionDetailReducer.js +21 -51
- package/lib/view/transactionDetail/transactionDetailState.d.ts +2 -3
- package/lib/view/transactionDetail/transactionDetailTypes.d.ts +0 -8
- package/lib/view/transactionList/transactionListByEntitySelector.js +2 -0
- package/lib/view/transactionList/transactionListReducer.js +6 -4
- package/lib/view/trendWithTransactions/trendWithTransactionsReducer.js +1 -0
- package/lib/view/userFinancialAccount/userFinancialAccountReducer.js +3 -1
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.d.ts +1 -1
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.d.ts +1 -1
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +1 -1
- package/lib/zeniAPI.d.ts +0 -1
- package/lib/zeniUrl.d.ts +1 -1
- package/package.json +12 -14
- package/lib/entity/accountRecon/accountReconPayload.d.ts +0 -70
- package/lib/entity/accountRecon/accountReconPayload.js +0 -125
- package/lib/entity/accountRecon/accountReconReducer.d.ts +0 -16
- package/lib/entity/accountRecon/accountReconReducer.js +0 -71
- package/lib/entity/accountRecon/accountReconSelector.d.ts +0 -28
- package/lib/entity/accountRecon/accountReconSelector.js +0 -44
- package/lib/entity/accountRecon/accountReconState.d.ts +0 -70
- package/lib/entity/accountRecon/accountReconState.js +0 -28
- package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.d.ts +0 -35
- package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.js +0 -53
- package/lib/entity/transaction/stateTypes/reconciliationTransaction.d.ts +0 -32
- package/lib/entity/transaction/stateTypes/reconciliationTransaction.js +0 -10
- package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.d.ts +0 -15
- package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +0 -118
- package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.d.ts +0 -10
- package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.js +0 -49
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.d.ts +0 -14
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.js +0 -169
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.d.ts +0 -9
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +0 -154
- package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.d.ts +0 -6
- package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.js +0 -110
- package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.d.ts +0 -7
- package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.js +0 -18
- package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +0 -28
- package/lib/view/expenseAutomationView/payload/reconciliationPayload.js +0 -51
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +0 -66
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +0 -384
- package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +0 -51
- package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +0 -7
- package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.d.ts +0 -5
- package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +0 -254
- package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +0 -103
- package/lib/view/expenseAutomationView/types/reconciliationViewState.js +0 -37
|
@@ -30,9 +30,11 @@ exports.BILL_PAYMENT_METHOD_CODE = [
|
|
|
30
30
|
'wire',
|
|
31
31
|
'outside-zeni',
|
|
32
32
|
];
|
|
33
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
33
34
|
const toBillPaymentMethodCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.BILL_PAYMENT_METHOD_CODE);
|
|
34
35
|
exports.toBillPaymentMethodCodeType = toBillPaymentMethodCodeType;
|
|
35
36
|
exports.PAYMENT_ACH_SUB_CODES = ['standard', 'same-day'];
|
|
37
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
36
38
|
const toPaymentAchSubMethodCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.PAYMENT_ACH_SUB_CODES);
|
|
37
39
|
exports.toPaymentAchSubMethodCodeType = toPaymentAchSubMethodCodeType;
|
|
38
40
|
const PAYMENT_ACH_SUB_CODES_KEYS = ['standard', 'sameDay'];
|
|
@@ -42,6 +44,7 @@ exports.BILL_PAYMENT_WIRE_SUB_CODES = [
|
|
|
42
44
|
'us-domestic',
|
|
43
45
|
'international',
|
|
44
46
|
];
|
|
47
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
45
48
|
const toBillPaymentWireSubMethodCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.BILL_PAYMENT_WIRE_SUB_CODES);
|
|
46
49
|
exports.toBillPaymentWireSubMethodCodeType = toBillPaymentWireSubMethodCodeType;
|
|
47
50
|
const BILL_PAYMENT_WIRE_SUB_CODES_KEYS = [
|
|
@@ -51,6 +54,7 @@ const BILL_PAYMENT_WIRE_SUB_CODES_KEYS = [
|
|
|
51
54
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
52
55
|
const toBillPaymentWireSubMethodCodeKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, BILL_PAYMENT_WIRE_SUB_CODES_KEYS);
|
|
53
56
|
exports.BILL_PAYMENT_OUTSIDE_ZENI_SUB_CODES = ['outside-zeni'];
|
|
57
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
54
58
|
const toBillPaymentOutsideZeniSubMethodCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.BILL_PAYMENT_OUTSIDE_ZENI_SUB_CODES);
|
|
55
59
|
exports.toBillPaymentOutsideZeniSubMethodCodeType = toBillPaymentOutsideZeniSubMethodCodeType;
|
|
56
60
|
const BILL_PAYMENT_OUTSIDE_ZENI_SUB_CODES_KEYS = ['outsideZeni'];
|
|
@@ -87,12 +91,14 @@ exports.ACCOUNT_TYPE_CODES = [
|
|
|
87
91
|
'deposit_account',
|
|
88
92
|
'payment_account',
|
|
89
93
|
];
|
|
94
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
90
95
|
const toAccType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ACCOUNT_TYPE_CODES);
|
|
91
96
|
exports.toAccType = toAccType;
|
|
92
97
|
const ACCOUNT_TYPE_SUB_CODES_KEYS = [
|
|
93
98
|
'depositAccount',
|
|
94
99
|
'paymentAccount',
|
|
95
100
|
];
|
|
101
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
96
102
|
const toAccountTypeSubConfigCodeKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, ACCOUNT_TYPE_SUB_CODES_KEYS);
|
|
97
103
|
exports.toAccountTypeSubConfigCodeKeyType = toAccountTypeSubConfigCodeKeyType;
|
|
98
104
|
//These const are used in web-components
|
package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ export declare const initialState: BillsBulkActionViewState;
|
|
|
7
7
|
export declare const updateBillsBulkActionList: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "billsBulkActionView/updateBillsBulkActionList">, removeBillFromBulkActionList: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "billsBulkActionView/removeBillFromBulkActionList">, clearAllBillsFromBulkActionList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"billsBulkActionView/clearAllBillsFromBulkActionList">, validateBillsBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPayload<BulkOperationType, "billsBulkActionView/validateBillsBulkAction">, validateBillsBulkActionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<BulkActionReviewItemResponsePayload[], "billsBulkActionView/validateBillsBulkActionSuccess">, validateBillsBulkActionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "billsBulkActionView/validateBillsBulkActionFailure">, submitDraftBillsBulkAction: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"billsBulkActionView/submitDraftBillsBulkAction">, approveOrRejectBillsBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[approvalType: BillApprovalType, description: string], {
|
|
8
8
|
approvalType: BillApprovalType;
|
|
9
9
|
description: string;
|
|
10
|
-
}, "billsBulkActionView/approveOrRejectBillsBulkAction", never, never>, cancelOrDeleteBillsBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[operationType: "
|
|
11
|
-
operationType: "
|
|
10
|
+
}, "billsBulkActionView/approveOrRejectBillsBulkAction", never, never>, cancelOrDeleteBillsBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[operationType: "cancel" | "delete", description: string], {
|
|
11
|
+
operationType: "cancel" | "delete";
|
|
12
12
|
description: string;
|
|
13
13
|
}, "billsBulkActionView/cancelOrDeleteBillsBulkAction", never, never>, billsBulkActionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "billsBulkActionView/billsBulkActionFailure">, autoReviewPendingApprovalBills: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"billsBulkActionView/autoReviewPendingApprovalBills">, incrementBulkActionProcessedCount: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"billsBulkActionView/incrementBulkActionProcessedCount">, billsBulkActionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
14
14
|
billsProcessing: number;
|
package/lib/view/spendManagement/billPay/billsBulkActionView/epics/validateBillsBulkActionEpic.ts.js
CHANGED
|
@@ -8,12 +8,11 @@ const billsBulkActionViewReducer_1 = require("../billsBulkActionViewReducer");
|
|
|
8
8
|
const validateBillsBulkActionEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(billsBulkActionViewReducer_1.validateBillsBulkAction.match), (0, operators_1.mergeMap)(() => {
|
|
9
9
|
const { billsBulkActionViewState } = state$.value;
|
|
10
10
|
const { billsSelectedForBulkAction: transactionIds, bulkOperationTypeSelected, } = billsBulkActionViewState;
|
|
11
|
-
const validationValue = bulkOperationTypeSelected === 'send_for_approval'
|
|
12
|
-
? 'all'
|
|
13
|
-
: 'sufficient_funds';
|
|
14
11
|
const queryParam = {
|
|
15
12
|
entity_ids: transactionIds,
|
|
16
|
-
validations:
|
|
13
|
+
validations: bulkOperationTypeSelected === 'send_for_approval'
|
|
14
|
+
? 'all'
|
|
15
|
+
: 'sufficient_funds',
|
|
17
16
|
};
|
|
18
17
|
return zeniAPI
|
|
19
18
|
.getJSON(`${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/bulk/bills/transactions/validate?query=${encodeURIComponent(JSON.stringify(queryParam))}`)
|
package/lib/view/spendManagement/billPay/editBillView/epics/fetchBillAndInitializeLocalStoreEpic.js
CHANGED
|
@@ -10,7 +10,9 @@ const operators_1 = require("rxjs/operators");
|
|
|
10
10
|
const billDetailViewReducer_1 = require("../../billDetailView/billDetailViewReducer");
|
|
11
11
|
const billDetailViewState_1 = require("../../billDetailView/billDetailViewState");
|
|
12
12
|
const editBillViewReducer_1 = require("../editBillViewReducer");
|
|
13
|
-
const fetchBillAndInitializeLocalStoreEpic = (actions$,
|
|
13
|
+
const fetchBillAndInitializeLocalStoreEpic = (actions$,
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
15
|
+
state$) => actions$.pipe((0, operators_1.filter)(editBillViewReducer_1.fetchBillAndInitializeLocalStore.match), (0, operators_1.mergeMap)((action) => {
|
|
14
16
|
const { billId, cacheOverride, isShowDeletedBillsEnabled, hasZeniAssistAccess, } = action.payload;
|
|
15
17
|
const state = state$.value;
|
|
16
18
|
const billDetailActions = [];
|
|
@@ -10,14 +10,13 @@ import { openSnackbar } from '../../../../../entity/snackbar/snackbarReducer';
|
|
|
10
10
|
import { TransactionWithAccountAndClassLinePayload } from '../../../../../entity/transaction/payloadTypes/transactionLinePayload';
|
|
11
11
|
import { RootState } from '../../../../../reducer';
|
|
12
12
|
import { ZeniAPI } from '../../../../../zeniAPI';
|
|
13
|
-
import { ZeniAccountPaymentMethod } from '../../../zeniAccounts/zeniAccountsConfig/zeniAccountsConfigState';
|
|
14
13
|
import { BillPayConfig, BillPaymentConfigCodeType, BillPaymentSubConfigCodeType } from '../../billPayConfig/billPayConfigState';
|
|
15
14
|
import { saveBillDetail, saveBillSuccessOrFailure } from '../editBillViewReducer';
|
|
16
15
|
import { EditBillDetail } from '../editBillViewState';
|
|
17
16
|
export type ActionType = ReturnType<typeof saveBillDetail> | ReturnType<typeof updateBillTransaction> | ReturnType<typeof openSnackbar> | ReturnType<typeof saveBillSuccessOrFailure> | ReturnType<typeof updateRecurringBillConfigs> | ReturnType<typeof updateRecurringBills>;
|
|
18
17
|
export declare const saveBillDetailEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<ActionType>;
|
|
19
18
|
export declare function prepareSaveBillPayload(accountState: AccountState, billTransactionState: BillTransactionState, paymentAccountState: PaymentAccountState, recurringBillState: RecurringBillState, billDetail: EditBillDetail, billStageCode: BillStageCodeType, isForMarkAsPaid: boolean, isApproverMarkingAsPaid: boolean): Partial<SaveBillPayload>;
|
|
20
|
-
export declare const getBillPaymentMethodTypePayload: (paymentType?: BillPayConfig
|
|
19
|
+
export declare const getBillPaymentMethodTypePayload: (paymentType?: BillPayConfig) => BillPaymentMethodTypePayload;
|
|
21
20
|
interface BillPaymentMethodTypePayload {
|
|
22
21
|
code: BillPaymentConfigCodeType | null;
|
|
23
22
|
name: string;
|
|
@@ -13,9 +13,9 @@ interface ChargeCardDetail extends FetchedState {
|
|
|
13
13
|
updatePhysicalChargeCardAttemptFetchState: FetchStateAndError;
|
|
14
14
|
updateChargeCardLimitFetchState: FetchStateAndError;
|
|
15
15
|
}
|
|
16
|
-
export declare const toChargeCardTransactionSortKeyType: (v: string) => "
|
|
16
|
+
export declare const toChargeCardTransactionSortKeyType: (v: string) => "type" | "amount" | "merchant" | "paymentDate" | "receipts";
|
|
17
17
|
export declare type ChargeCardTransactionSortKey = ReturnType<typeof toChargeCardTransactionSortKeyType>;
|
|
18
|
-
|
|
18
|
+
interface ChargeCardDetailTransactionList extends FetchStateAndError {
|
|
19
19
|
transactionIds: ID[];
|
|
20
20
|
uploadReceiptsFetchStateByTransactionId: Record<ID, FetchStateAndError>;
|
|
21
21
|
isViewReceiptClickedImmediatelyAfterUploadTransactionId: Record<ID, boolean>;
|
|
@@ -24,6 +24,6 @@ export interface CommonHistoryState {
|
|
|
24
24
|
}
|
|
25
25
|
export declare const toHistoricEventUpdateType: (v: string) => "deleted" | "created" | "updated";
|
|
26
26
|
type HistoricEventUpdateType = ReturnType<typeof toHistoricEventUpdateType>;
|
|
27
|
-
export declare const toHistoricEventUpdateDisplayType: (v: string) => "
|
|
27
|
+
export declare const toHistoricEventUpdateDisplayType: (v: string) => "inline" | "sentence" | "list";
|
|
28
28
|
type HistoricEventUpdateDisplayType = ReturnType<typeof toHistoricEventUpdateDisplayType>;
|
|
29
29
|
export {};
|
|
@@ -4,18 +4,18 @@ import { ZeniDate } from '../../../zeniDayJS';
|
|
|
4
4
|
import { CompanyOfficerType } from '../../companyView/types/companyPassport/companyUsersLocalData';
|
|
5
5
|
import { SetupViewLocalData, SetupViewState } from './setupViewState';
|
|
6
6
|
export declare const initialState: SetupViewState;
|
|
7
|
-
export declare const enableSetup: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, setupViewType: "
|
|
7
|
+
export declare const enableSetup: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards"], {
|
|
8
8
|
companyId: string;
|
|
9
|
-
setupViewType: "
|
|
10
|
-
}, "setupView/enableSetup", never, never>, enableSetupSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/enableSetupSuccess">, enableSetupFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "setupView/enableSetupFailure", never, never>, updateBusinessVerificationDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, officerType: "
|
|
9
|
+
setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards";
|
|
10
|
+
}, "setupView/enableSetup", never, never>, enableSetupSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/enableSetupSuccess">, enableSetupFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "setupView/enableSetupFailure", never, never>, updateBusinessVerificationDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, officerType: "Officer_2" | "Officer_1" | "Officer_3" | "Officer_4" | "Officer_8" | "Officer_5" | "Officer_6" | "Officer_10" | "Officer_7" | "Officer_9", setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards", sendForVerification?: any, fromBillListScreen?: any, isSubmittingAdditionalDocuments?: any], {
|
|
11
11
|
companyId: string;
|
|
12
|
-
officerType: "
|
|
13
|
-
setupViewType: "
|
|
12
|
+
officerType: "Officer_2" | "Officer_1" | "Officer_3" | "Officer_4" | "Officer_8" | "Officer_5" | "Officer_6" | "Officer_10" | "Officer_7" | "Officer_9";
|
|
13
|
+
setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards";
|
|
14
14
|
sendForVerification: any;
|
|
15
15
|
fromBillListScreen: any;
|
|
16
16
|
isSubmittingAdditionalDocuments: any;
|
|
17
|
-
}, "setupView/updateBusinessVerificationDetails", never, never>, updateBusinessVerificationDetailsSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/updateBusinessVerificationDetailsSuccess">, updateBusinessVerificationDetailsFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "setupView/updateBusinessVerificationDetailsFailure", never, never>, updateSelectedCompanyOfficer: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[selectedOfficerType: "
|
|
18
|
-
selectedOfficerType: "
|
|
17
|
+
}, "setupView/updateBusinessVerificationDetails", never, never>, updateBusinessVerificationDetailsSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/updateBusinessVerificationDetailsSuccess">, updateBusinessVerificationDetailsFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "setupView/updateBusinessVerificationDetailsFailure", never, never>, updateSelectedCompanyOfficer: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[selectedOfficerType: "Officer_2" | "Officer_1" | "Officer_3" | "Officer_4" | "Officer_8" | "Officer_5" | "Officer_6" | "Officer_10" | "Officer_7" | "Officer_9"], {
|
|
18
|
+
selectedOfficerType: "Officer_2" | "Officer_1" | "Officer_3" | "Officer_4" | "Officer_8" | "Officer_5" | "Officer_6" | "Officer_10" | "Officer_7" | "Officer_9";
|
|
19
19
|
}, "setupView/updateSelectedCompanyOfficer", never, never>, updateSetupViewLocalStoreData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
20
20
|
companyId: ID;
|
|
21
21
|
}, "setupView/updateSetupViewLocalStoreData">, saveSetupViewDataInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<SetupViewLocalData>, "setupView/saveSetupViewDataInLocalStore">, saveCompnayOfficerPhoneInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
@@ -4,7 +4,7 @@ import { AllowedDocumentType } from '../../../entity/file/fileState';
|
|
|
4
4
|
import { ZeniDate } from '../../../zeniDayJS';
|
|
5
5
|
import ZeniUrl from '../../../zeniUrl';
|
|
6
6
|
import { CompanyOfficerType } from '../../companyView/types/companyPassport/companyUsersLocalData';
|
|
7
|
-
declare const toSetupViewType: (v: string) => "
|
|
7
|
+
declare const toSetupViewType: (v: string) => "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards";
|
|
8
8
|
export type SetupViewType = ReturnType<typeof toSetupViewType>;
|
|
9
9
|
/**
|
|
10
10
|
* Setup View Local Data - Interfaces
|
package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js
CHANGED
|
@@ -14,16 +14,14 @@ const paymentAccountListReducer_1 = require("../../../zeniAccounts/paymentAccoun
|
|
|
14
14
|
const plaidAccountViewReducer_1 = require("../../plaidAccountViewReducer");
|
|
15
15
|
const establishPlaidConnectionEpic = (actions$, state, zeniAPI) => actions$.pipe((0, operators_1.filter)(plaidAccountViewReducer_1.establishPlaidConnection.match), (0, operators_1.mergeMap)((action) => {
|
|
16
16
|
var _a, _b;
|
|
17
|
-
const { publicToken, companyId, setupViewType, linkTokenType, plaidAccountKeyType,
|
|
17
|
+
const { publicToken, companyId, setupViewType, linkTokenType, plaidAccountKeyType, } = action.payload;
|
|
18
18
|
const requestPayload = {
|
|
19
19
|
public_token: publicToken,
|
|
20
20
|
};
|
|
21
|
-
const queryPayload = {};
|
|
22
21
|
const userId = (_b = (_a = state.value.tenantState.loggedInUser) === null || _a === void 0 ? void 0 : _a.userId) !== null && _b !== void 0 ? _b : '';
|
|
23
22
|
//setupViewType not passed means this is a user account
|
|
24
23
|
if (linkTokenType !== 'link_external_account') {
|
|
25
|
-
if (setupViewType == null
|
|
26
|
-
plaidAccountKeyType !== 'expense_automation_reconcile') {
|
|
24
|
+
if (setupViewType == null) {
|
|
27
25
|
requestPayload.is_user_account = true;
|
|
28
26
|
}
|
|
29
27
|
else if (plaidAccountKeyType === 'bill_pay_setup') {
|
|
@@ -41,15 +39,9 @@ const establishPlaidConnectionEpic = (actions$, state, zeniAPI) => actions$.pipe
|
|
|
41
39
|
else if (plaidAccountKeyType === 'billing_setup') {
|
|
42
40
|
requestPayload.is_primary_for_onboarding = true;
|
|
43
41
|
}
|
|
44
|
-
else if (plaidAccountKeyType === 'expense_automation_reconcile') {
|
|
45
|
-
queryPayload.zeni_mapped_account_id = zeniMappedAccountId !== null && zeniMappedAccountId !== void 0 ? zeniMappedAccountId : '';
|
|
46
|
-
}
|
|
47
42
|
}
|
|
48
|
-
const queryString = Object.entries(queryPayload).length > 0
|
|
49
|
-
? `?query=${JSON.stringify(queryPayload)}`
|
|
50
|
-
: '';
|
|
51
43
|
return zeniAPI
|
|
52
|
-
.postAndGetJSON(`${zeniAPI.apiEndPoints.payMicroServiceBaseUrl}/1.0/plaid/public-token
|
|
44
|
+
.postAndGetJSON(`${zeniAPI.apiEndPoints.payMicroServiceBaseUrl}/1.0/plaid/public-token`, requestPayload)
|
|
53
45
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
54
46
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
55
47
|
const paymentAccount = response.data.payment_accounts[0];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
2
2
|
import { PlaidAccountKeyType, PlaidAccountViewState, PlaidLinkTokenType } from './plaidAccountViewState';
|
|
3
3
|
export declare const initialState: PlaidAccountViewState;
|
|
4
|
-
export declare const getPaymentAccounts: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[setupViewType: "
|
|
5
|
-
setupViewType: "
|
|
4
|
+
export declare const getPaymentAccounts: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards", plaidAccountKeyType: PlaidAccountKeyType, includeBalances?: boolean | undefined], {
|
|
5
|
+
setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards";
|
|
6
6
|
includeBalances: boolean;
|
|
7
7
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
8
8
|
}, "plaidAccountView/getPaymentAccounts", never, never>, getPaymentAccountsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[paymentAccountIds: string[], plaidAccountKeyType: PlaidAccountKeyType], {
|
|
@@ -11,20 +11,20 @@ export declare const getPaymentAccounts: import("@reduxjs/toolkit").ActionCreato
|
|
|
11
11
|
}, "plaidAccountView/getPaymentAccountsSuccess", never, never>, getPaymentAccountsFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>, plaidAccountKeyType: PlaidAccountKeyType], {
|
|
12
12
|
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
13
13
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
14
|
-
}, "plaidAccountView/getPaymentAccountsFailure", never, never>, updatePaymentAccount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, paymentAccountId: string, setupViewType: "
|
|
14
|
+
}, "plaidAccountView/getPaymentAccountsFailure", never, never>, updatePaymentAccount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, paymentAccountId: string, setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards", plaidAccountKeyType: PlaidAccountKeyType], {
|
|
15
15
|
accountId: string;
|
|
16
16
|
paymentAccountId: string;
|
|
17
|
-
setupViewType: "
|
|
17
|
+
setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards";
|
|
18
18
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
19
19
|
}, "plaidAccountView/updatePaymentAccount", never, never>, updatePaymentAccountSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[plaidAccountKeyType: PlaidAccountKeyType], {
|
|
20
20
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
21
21
|
}, "plaidAccountView/updatePaymentAccountSuccess", never, never>, updatePaymentAccountFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>, plaidAccountKeyType: PlaidAccountKeyType], {
|
|
22
22
|
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
23
23
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
24
|
-
}, "plaidAccountView/updatePaymentAccountFailure", never, never>, updatePaymentAccountStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[verificationStatusCode: string, paymentAccountId: string, setupViewType: "
|
|
24
|
+
}, "plaidAccountView/updatePaymentAccountFailure", never, never>, updatePaymentAccountStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[verificationStatusCode: string, paymentAccountId: string, setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards", plaidAccountKeyType: PlaidAccountKeyType, linkTokenType?: PlaidLinkTokenType | undefined], {
|
|
25
25
|
verificationStatusCode: string;
|
|
26
26
|
paymentAccountId: string;
|
|
27
|
-
setupViewType: "
|
|
27
|
+
setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards";
|
|
28
28
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
29
29
|
linkTokenType: PlaidLinkTokenType;
|
|
30
30
|
}, "plaidAccountView/updatePaymentAccountStatus", never, never>, updatePaymentAccountStatusSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[linkTokenType: PlaidLinkTokenType, plaidAccountKeyType: PlaidAccountKeyType], {
|
|
@@ -34,10 +34,10 @@ export declare const getPaymentAccounts: import("@reduxjs/toolkit").ActionCreato
|
|
|
34
34
|
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
35
35
|
linkTokenType: PlaidLinkTokenType;
|
|
36
36
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
37
|
-
}, "plaidAccountView/updatePaymentAccountStatusFailure", never, never>, updatePaymentAccountLoginStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[isLoginRequired: boolean, paymentAccountId: string, setupViewType: "
|
|
37
|
+
}, "plaidAccountView/updatePaymentAccountStatusFailure", never, never>, updatePaymentAccountLoginStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[isLoginRequired: boolean, paymentAccountId: string, setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards", plaidAccountKeyType: PlaidAccountKeyType, linkTokenType?: PlaidLinkTokenType | undefined], {
|
|
38
38
|
isLoginRequired: boolean;
|
|
39
39
|
paymentAccountId: string;
|
|
40
|
-
setupViewType: "
|
|
40
|
+
setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards";
|
|
41
41
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
42
42
|
linkTokenType: PlaidLinkTokenType;
|
|
43
43
|
}, "plaidAccountView/updatePaymentAccountLoginStatus", never, never>, updatePaymentAccountLoginStatusSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[paymentAccountIds: string[], linkTokenType: PlaidLinkTokenType, plaidAccountKeyType: PlaidAccountKeyType], {
|
|
@@ -61,13 +61,12 @@ export declare const getPaymentAccounts: import("@reduxjs/toolkit").ActionCreato
|
|
|
61
61
|
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
62
62
|
linkTokenType: PlaidLinkTokenType;
|
|
63
63
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
64
|
-
}, "plaidAccountView/getPlaidLinkTokenFailure", never, never>, establishPlaidConnection: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[publicToken: string, companyId: string, plaidAccountKeyType: PlaidAccountKeyType, setupViewType?: "
|
|
64
|
+
}, "plaidAccountView/getPlaidLinkTokenFailure", never, never>, establishPlaidConnection: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[publicToken: string, companyId: string, plaidAccountKeyType: PlaidAccountKeyType, setupViewType?: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | undefined, linkTokenType?: PlaidLinkTokenType | undefined], {
|
|
65
65
|
publicToken: string;
|
|
66
66
|
companyId: string;
|
|
67
|
-
setupViewType: "
|
|
67
|
+
setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | undefined;
|
|
68
68
|
linkTokenType: PlaidLinkTokenType;
|
|
69
69
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
70
|
-
zeniMappedAccountId: string | undefined;
|
|
71
70
|
}, "plaidAccountView/establishPlaidConnection", never, never>, establishPlaidConnectionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[linkTokenType: PlaidLinkTokenType, plaidAccountKeyType: PlaidAccountKeyType], {
|
|
72
71
|
linkTokenType: PlaidLinkTokenType;
|
|
73
72
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
@@ -14,7 +14,6 @@ exports.initialState = {
|
|
|
14
14
|
user_reimbursement_account: plaidAccountViewState_1.initialPlaidAccountState,
|
|
15
15
|
external_account: plaidAccountViewState_1.initialPlaidAccountState,
|
|
16
16
|
billing_setup: plaidAccountViewState_1.initialPlaidAccountState,
|
|
17
|
-
expense_automation_reconcile: plaidAccountViewState_1.initialPlaidAccountState,
|
|
18
17
|
};
|
|
19
18
|
const plaidAccountView = (0, toolkit_1.createSlice)({
|
|
20
19
|
name: 'plaidAccountView',
|
|
@@ -265,7 +264,7 @@ const plaidAccountView = (0, toolkit_1.createSlice)({
|
|
|
265
264
|
error: undefined,
|
|
266
265
|
} });
|
|
267
266
|
},
|
|
268
|
-
prepare(publicToken, companyId, plaidAccountKeyType, setupViewType, linkTokenType
|
|
267
|
+
prepare(publicToken, companyId, plaidAccountKeyType, setupViewType, linkTokenType) {
|
|
269
268
|
return {
|
|
270
269
|
payload: {
|
|
271
270
|
publicToken,
|
|
@@ -273,7 +272,6 @@ const plaidAccountView = (0, toolkit_1.createSlice)({
|
|
|
273
272
|
setupViewType,
|
|
274
273
|
linkTokenType: linkTokenType !== null && linkTokenType !== void 0 ? linkTokenType : 'link_account',
|
|
275
274
|
plaidAccountKeyType,
|
|
276
|
-
zeniMappedAccountId,
|
|
277
275
|
},
|
|
278
276
|
};
|
|
279
277
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FetchStateAndError, ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { ZeniDate } from '../../../zeniDayJS';
|
|
3
3
|
export type PlaidLinkTokenType = 'link_account' | 'update_account' | 'link_account_no_microdeposit' | 'link_external_account';
|
|
4
|
-
export type PlaidAccountKeyType = 'spend_management_setup' | 'bill_pay_setup' | 'reimbursement_setup' | 'account_setup' | 'charge_card_setup' | 'user_reimbursement_account' | 'external_account' | 'billing_setup'
|
|
4
|
+
export type PlaidAccountKeyType = 'spend_management_setup' | 'bill_pay_setup' | 'reimbursement_setup' | 'account_setup' | 'charge_card_setup' | 'user_reimbursement_account' | 'external_account' | 'billing_setup';
|
|
5
5
|
export type PlaidConnectionDetails = Record<PlaidLinkTokenType, {
|
|
6
6
|
linkToken?: string;
|
|
7
7
|
expiration?: ZeniDate;
|
|
@@ -6,7 +6,9 @@ const operators_1 = require("rxjs/operators");
|
|
|
6
6
|
const recommendationReducer_1 = require("../../../../recommendation/recommendationReducer");
|
|
7
7
|
const recommendationSelector_1 = require("../../../../recommendation/recommendationSelector");
|
|
8
8
|
const editRemiViewReducer_1 = require("../editRemiViewReducer");
|
|
9
|
-
const fetchRecommendationsAndUpdateMerchantRecommendationsEpic = (actions$,
|
|
9
|
+
const fetchRecommendationsAndUpdateMerchantRecommendationsEpic = (actions$,
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11
|
+
state$) => actions$.pipe((0, operators_1.filter)(editRemiViewReducer_1.fetchRecommendationsAndUpdateMerchantRecommendations.match), (0, operators_1.mergeMap)((action) => {
|
|
10
12
|
const { cacheOverride, lineId, reimbursementId, merchantId, merchantName } = action.payload;
|
|
11
13
|
const state = state$.value;
|
|
12
14
|
const reimbursement = reimbursementId != null
|
|
@@ -65,7 +67,9 @@ const fetchRecommendationsAndUpdateMerchantRecommendationsEpic = (actions$, stat
|
|
|
65
67
|
return (0, rxjs_1.from)(merchantRecommendationActions);
|
|
66
68
|
}));
|
|
67
69
|
exports.fetchRecommendationsAndUpdateMerchantRecommendationsEpic = fetchRecommendationsAndUpdateMerchantRecommendationsEpic;
|
|
68
|
-
const waitForMerchantRecommendationFetchThenUpdateRecommendationInMerchantEpic = (actions$,
|
|
70
|
+
const waitForMerchantRecommendationFetchThenUpdateRecommendationInMerchantEpic = (actions$,
|
|
71
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
72
|
+
state$) => actions$.pipe((0, operators_1.filter)(editRemiViewReducer_1.waitForMerchantRecommendationFetchThenUpdateRecommendationInMerchant.match),
|
|
69
73
|
//used concatMap here, as with mergeMap it was triggering below flow for first completed recommendations (in case of multi receipts)
|
|
70
74
|
(0, operators_1.concatMap)((action) => {
|
|
71
75
|
const { reimbursementId } = action.payload;
|
|
@@ -9,7 +9,9 @@ const rxjs_1 = require("rxjs");
|
|
|
9
9
|
const operators_1 = require("rxjs/operators");
|
|
10
10
|
const remiDetailViewReducer_1 = require("../../remiDetailView/remiDetailViewReducer");
|
|
11
11
|
const editRemiViewReducer_1 = require("../editRemiViewReducer");
|
|
12
|
-
const fetchRemiAndInitializeLocalStoreEpic = (actions$,
|
|
12
|
+
const fetchRemiAndInitializeLocalStoreEpic = (actions$,
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
14
|
+
state$) => actions$.pipe((0, operators_1.filter)(editRemiViewReducer_1.fetchRemiAndInitializeLocalStore.match), (0, operators_1.mergeMap)((action) => {
|
|
13
15
|
const { reimbursementId, cacheOverride, isShowDeletedReimbursementEnabled, } = action.payload;
|
|
14
16
|
const state = state$.value;
|
|
15
17
|
const remiDetailActions = [];
|
|
@@ -25,7 +25,7 @@ export declare const fetchRemiList: import("@reduxjs/toolkit").ActionCreatorWith
|
|
|
25
25
|
}, "remiList/updateRemiListFailure", never, never>, updateRemiListUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
26
26
|
uiState: Partial<RemiListUIState>;
|
|
27
27
|
period: TimePeriod;
|
|
28
|
-
}, "remiList/updateRemiListUIState">, updateTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"paid" | "pending_approval" | "scheduled" | "draft", "remiList/updateTab">, updateSubTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"
|
|
28
|
+
}, "remiList/updateRemiListUIState">, updateTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"paid" | "pending_approval" | "scheduled" | "draft", "remiList/updateTab">, updateSubTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"all" | "failed" | "rejected" | "cancelled" | "ach" | "wire" | "overdue" | "deleted" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval", "remiList/updateSubTab">, updateSelectedRemiId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "remiList/updateSelectedRemiId">, clearRemiList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"remiList/clearRemiList">, updateRemiDetailSaveRemiCode: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SaveRemiStageCode, "remiList/updateRemiDetailSaveRemiCode">, updateSearchResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "remiList/updateSearchResult">, updateFilterResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
29
29
|
filters: ReimbursementFilters;
|
|
30
30
|
}, "remiList/updateFilterResult">, updateRemiListDownloadUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
31
31
|
uiState: Partial<RemiListDownloadUIState>;
|
|
@@ -173,6 +173,7 @@ function doUpdateRemiList(draft, payload, tab) {
|
|
|
173
173
|
const pendingApprovalTransactionIDs = payload.pending_approval_transaction_ids_for_user;
|
|
174
174
|
const start = (0, timePeriod_1.toAbsoluteDay)(payload === null || payload === void 0 ? void 0 : payload.query.start_date); // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
175
175
|
const end = (0, timePeriod_1.toAbsoluteDay)(payload === null || payload === void 0 ? void 0 : payload.query.end_date); // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
176
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
176
177
|
const key = (0, remiListState_1.getRemiListKey)({ start, end }, tab);
|
|
177
178
|
draft[key] = Object.assign(Object.assign({}, remiListState_1.remiListInitialState), { uiState: draft[key] != null ? draft[key].uiState : remiListState_1.remiListInitialState.uiState, fetchState: 'Completed', error: undefined, transactionIDs,
|
|
178
179
|
pendingApprovalTransactionIDs });
|
|
@@ -33,12 +33,12 @@ export declare const ALL_REMI_TABS: readonly ["paid", "pending_approval", "sched
|
|
|
33
33
|
export declare const toRemiTabType: (v: string) => "paid" | "pending_approval" | "scheduled" | "draft";
|
|
34
34
|
export declare const toRemiTabTypeStrict: (v: string) => "paid" | "pending_approval" | "scheduled" | "draft" | undefined;
|
|
35
35
|
export type RemiTabType = ReturnType<typeof toRemiTabType>;
|
|
36
|
-
export declare const toRemiSubTabType: (v: string) => "
|
|
37
|
-
export declare const toRemiSubTabTypeStrict: (v: string) => "
|
|
36
|
+
export declare const toRemiSubTabType: (v: string) => "all" | "failed" | "rejected" | "cancelled" | "ach" | "wire" | "overdue" | "deleted" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval";
|
|
37
|
+
export declare const toRemiSubTabTypeStrict: (v: string) => "all" | "failed" | "rejected" | "cancelled" | "ach" | "wire" | "overdue" | "deleted" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval" | undefined;
|
|
38
38
|
export type RemiSubTabType = ReturnType<typeof toRemiSubTabType>;
|
|
39
|
-
export declare const toRemiSubTabUnderScoreType: (v: string) => "
|
|
39
|
+
export declare const toRemiSubTabUnderScoreType: (v: string) => "all" | "failed" | "rejected" | "cancelled" | "ach" | "wire" | "overdue" | "awaiting_approval" | "awaiting_my_approval" | "deleted" | "my_drafts" | "awaiting_all_approval";
|
|
40
40
|
export type RemiSubTabUnderScoreType = ReturnType<typeof toRemiSubTabUnderScoreType>;
|
|
41
|
-
declare const toReimbursementSortKeyType: (v: string) => "
|
|
41
|
+
declare const toReimbursementSortKeyType: (v: string) => "type" | "status" | "amount" | "submittedOn" | "reportName";
|
|
42
42
|
export type ReimbursementViewSortKey = ReturnType<typeof toReimbursementSortKeyType>;
|
|
43
43
|
export interface ReimbursementFilters {
|
|
44
44
|
categoryCombinationOperator: CategoryCombinationOperator;
|
package/lib/view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewReducer.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ export declare const initialState: RemisBulkActionViewState;
|
|
|
7
7
|
export declare const updateRemisBulkActionList: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "remisBulkActionView/updateRemisBulkActionList">, removeRemiFromBulkActionList: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "remisBulkActionView/removeRemiFromBulkActionList">, clearAllRemisFromBulkActionList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"remisBulkActionView/clearAllRemisFromBulkActionList">, reviewDraftRemisBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPayload<BulkOperationType, "remisBulkActionView/reviewDraftRemisBulkAction">, reviewDraftRemisBulkActionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<BulkActionReviewItemResponsePayload[], "remisBulkActionView/reviewDraftRemisBulkActionSuccess">, reviewDraftRemisBulkActionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "remisBulkActionView/reviewDraftRemisBulkActionFailure">, submitDraftRemisBulkAction: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"remisBulkActionView/submitDraftRemisBulkAction">, approveOrRejectRemisBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[approvalType: RemiApprovalType, description: string], {
|
|
8
8
|
approvalType: RemiApprovalType;
|
|
9
9
|
description: string;
|
|
10
|
-
}, "remisBulkActionView/approveOrRejectRemisBulkAction", never, never>, cancelOrDeleteRemisBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[operationType: "
|
|
11
|
-
operationType: "
|
|
10
|
+
}, "remisBulkActionView/approveOrRejectRemisBulkAction", never, never>, cancelOrDeleteRemisBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[operationType: "cancel" | "delete", description: string], {
|
|
11
|
+
operationType: "cancel" | "delete";
|
|
12
12
|
description: string;
|
|
13
13
|
}, "remisBulkActionView/cancelOrDeleteRemisBulkAction", never, never>, remisBulkActionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "remisBulkActionView/remisBulkActionFailure">, autoReviewPendingApprovalRemis: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"remisBulkActionView/autoReviewPendingApprovalRemis">, incrementRemiBulkActionProcessedCount: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"remisBulkActionView/incrementRemiBulkActionProcessedCount">, remisBulkActionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
14
14
|
remisProcessing: number;
|
|
@@ -2,8 +2,8 @@ import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { RootState } from '../../../../../reducer';
|
|
4
4
|
import { fetchVendorTypeList } from '../../../../vendorTypeList/vendorTypeListReducer';
|
|
5
|
+
import { fetchBillPayConfig } from '../../../billPay/billPayConfig/billPayConfigReducer';
|
|
5
6
|
import { fetchDepositAccountList } from '../../depositAccountList/depositAccountListReducer';
|
|
6
|
-
import { fetchZeniAccountsConfig } from '../../zeniAccountsConfig/zeniAccountsConfigReducer';
|
|
7
7
|
import { fetchExpressPayInitialDetails, updateExpressPayFetchState } from '../expressPayReducer';
|
|
8
|
-
export type ActionType = ReturnType<typeof fetchExpressPayInitialDetails> | ReturnType<typeof
|
|
8
|
+
export type ActionType = ReturnType<typeof fetchExpressPayInitialDetails> | ReturnType<typeof fetchBillPayConfig> | ReturnType<typeof fetchVendorTypeList> | ReturnType<typeof fetchDepositAccountList> | ReturnType<typeof updateExpressPayFetchState>;
|
|
9
9
|
export declare const fetchExpressPayInitialDetailsEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
|
package/lib/view/spendManagement/zeniAccounts/expressPay/epics/fetchExpressPayInitialDetailsEpic.js
CHANGED
|
@@ -4,16 +4,16 @@ exports.fetchExpressPayInitialDetailsEpic = void 0;
|
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
6
|
const vendorTypeListReducer_1 = require("../../../../vendorTypeList/vendorTypeListReducer");
|
|
7
|
+
const billPayConfigReducer_1 = require("../../../billPay/billPayConfig/billPayConfigReducer");
|
|
7
8
|
const depositAccountListReducer_1 = require("../../depositAccountList/depositAccountListReducer");
|
|
8
|
-
const zeniAccountsConfigReducer_1 = require("../../zeniAccountsConfig/zeniAccountsConfigReducer");
|
|
9
9
|
const expressPayReducer_1 = require("../expressPayReducer");
|
|
10
10
|
const fetchExpressPayInitialDetailsEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(expressPayReducer_1.fetchExpressPayInitialDetails.match), (0, operators_1.mergeMap)((action) => {
|
|
11
|
-
const { cacheOverride } = action.payload;
|
|
11
|
+
const { cacheOverride, isInternationalWireEnabled } = action.payload;
|
|
12
12
|
const state = state$.value;
|
|
13
13
|
const fetchActions = [];
|
|
14
14
|
if (cacheOverride === true) {
|
|
15
15
|
fetchActions.push((0, vendorTypeListReducer_1.fetchVendorTypeList)());
|
|
16
|
-
fetchActions.push((0,
|
|
16
|
+
fetchActions.push((0, billPayConfigReducer_1.fetchBillPayConfig)(isInternationalWireEnabled));
|
|
17
17
|
fetchActions.push((0, depositAccountListReducer_1.fetchDepositAccountList)());
|
|
18
18
|
fetchActions.push((0, expressPayReducer_1.updateExpressPayFetchState)());
|
|
19
19
|
}
|
|
@@ -22,10 +22,10 @@ const fetchExpressPayInitialDetailsEpic = (actions$, state$) => actions$.pipe((0
|
|
|
22
22
|
state.vendorTypeListState.fetchState !== 'In-Progress') {
|
|
23
23
|
fetchActions.push((0, vendorTypeListReducer_1.fetchVendorTypeList)());
|
|
24
24
|
}
|
|
25
|
-
const
|
|
26
|
-
if (
|
|
27
|
-
|
|
28
|
-
fetchActions.push((0,
|
|
25
|
+
const billPayConfigFetchState = state.billPayConfigState.fetchState;
|
|
26
|
+
if (billPayConfigFetchState !== 'Completed' &&
|
|
27
|
+
billPayConfigFetchState !== 'In-Progress') {
|
|
28
|
+
fetchActions.push((0, billPayConfigReducer_1.fetchBillPayConfig)(isInternationalWireEnabled));
|
|
29
29
|
}
|
|
30
30
|
const depositAccounts = state.depositAccountListState;
|
|
31
31
|
if (depositAccounts.fetchState !== 'In-Progress' &&
|
|
@@ -5,9 +5,9 @@ import { File } from '../../../../entity/file/fileState';
|
|
|
5
5
|
import { RootState } from '../../../../reducer';
|
|
6
6
|
import { VendorViewSelectorView } from '../../../commonVendorView/vendorView/vendorViewSelector';
|
|
7
7
|
import { VendorType } from '../../../vendorTypeList/vendorTypeListPayload';
|
|
8
|
+
import { BillPayConfig } from '../../billPay/billPayConfig/billPayConfigState';
|
|
8
9
|
import { PaymentDetailsSectionView, PaymentToOption } from '../../billPay/editBillView/editBillViewSelector';
|
|
9
10
|
import { FundingAccount } from '../../commonSetup/setupViewSelector';
|
|
10
|
-
import { ZeniAccountPaymentMethod } from '../zeniAccountsConfig/zeniAccountsConfigState';
|
|
11
11
|
import { ExpressPayFormLocalData } from './expressPayState';
|
|
12
12
|
export interface ExpressPayView extends SelectorView {
|
|
13
13
|
vendorViewDetails: VendorViewSelectorView;
|
|
@@ -15,7 +15,7 @@ export interface ExpressPayView extends SelectorView {
|
|
|
15
15
|
expressPayLocalData?: ExpressPayFormLocalData;
|
|
16
16
|
paymentDetails?: PaymentDetailsSectionView;
|
|
17
17
|
paymentToOptions: PaymentToOption[];
|
|
18
|
-
allPaymentMethods:
|
|
18
|
+
allPaymentMethods: BillPayConfig[];
|
|
19
19
|
withdrawFromList: FundingAccount[];
|
|
20
20
|
receiptFile?: File;
|
|
21
21
|
internationalWireOnboardingStatus?: AllowedValueWithCode;
|
|
@@ -11,19 +11,18 @@ const fileViewSelector_1 = require("../../../fileView/fileViewSelector");
|
|
|
11
11
|
const editBillViewSelector_1 = require("../../billPay/editBillView/editBillViewSelector");
|
|
12
12
|
const setupViewSelector_1 = require("../../commonSetup/setupViewSelector");
|
|
13
13
|
const depositAccountListSelector_1 = require("../depositAccountList/depositAccountListSelector");
|
|
14
|
-
const zeniAccountsConfigSelector_1 = require("../zeniAccountsConfig/zeniAccountsConfigSelector");
|
|
15
14
|
const getExpressPayView = (state) => {
|
|
16
15
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
17
16
|
const deleteFileStatusById = {};
|
|
18
17
|
const updateFileStatusById = {};
|
|
19
|
-
const { tenantState, expressPayState, vendorTypeListState, bankAccountState, paymentInstrumentState, vendorViewState, depositAccountState, depositAccountListState, paymentAccountListState,
|
|
18
|
+
const { tenantState, expressPayState, vendorTypeListState, bankAccountState, paymentInstrumentState, billPayConfigState, vendorViewState, depositAccountState, depositAccountListState, paymentAccountListState, } = state;
|
|
20
19
|
const { currentTenantId } = tenantState;
|
|
21
20
|
const companyId = currentTenantId != null
|
|
22
21
|
? (_b = (_a = tenantState.tenantsById) === null || _a === void 0 ? void 0 : _a[currentTenantId]) === null || _b === void 0 ? void 0 : _b.companyId
|
|
23
22
|
: undefined;
|
|
24
23
|
const companyView = (0, getCompanyView_1.getCompanyView)(state, companyId !== null && companyId !== void 0 ? companyId : '', []);
|
|
25
24
|
const vendorTypeList = vendorTypeListState.vendorTypes;
|
|
26
|
-
const allPaymentMethods = (0,
|
|
25
|
+
const allPaymentMethods = (0, editBillViewSelector_1.getBillPayConfigList)(billPayConfigState);
|
|
27
26
|
const vendorId = (_c = expressPayState.formLocalData) === null || _c === void 0 ? void 0 : _c.vendorId;
|
|
28
27
|
const vendorViewDetails = (0, vendorViewSelector_1.getVendorView)(state, vendorId);
|
|
29
28
|
const vendorLocalData = vendorId != null
|
|
@@ -54,8 +53,8 @@ const getExpressPayView = (state) => {
|
|
|
54
53
|
error: vendorTypeListState.error,
|
|
55
54
|
},
|
|
56
55
|
{
|
|
57
|
-
fetchState:
|
|
58
|
-
error:
|
|
56
|
+
fetchState: billPayConfigState.fetchState,
|
|
57
|
+
error: billPayConfigState.error,
|
|
59
58
|
},
|
|
60
59
|
{
|
|
61
60
|
fetchState: depositAccountListState.fetchState,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Amount } from '../../../../commonStateTypes/amount';
|
|
2
2
|
import { FetchStateAndError, ID } from '../../../../commonStateTypes/common';
|
|
3
3
|
import { ZeniDate } from '../../../../zeniDayJS';
|
|
4
|
+
import { BillPayConfig } from '../../billPay/billPayConfig/billPayConfigState';
|
|
4
5
|
import { FundingAccount } from '../../commonSetup/setupViewSelector';
|
|
5
|
-
import { ZeniAccountPaymentMethod } from '../zeniAccountsConfig/zeniAccountsConfigState';
|
|
6
6
|
export interface ExpressPayState extends FetchStateAndError {
|
|
7
7
|
expressPayId?: ID;
|
|
8
8
|
formLocalData?: ExpressPayFormLocalData;
|
|
@@ -12,7 +12,7 @@ export interface ExpressPayFormLocalData {
|
|
|
12
12
|
vendorId?: ID;
|
|
13
13
|
withdrawFrom?: FundingAccount;
|
|
14
14
|
paymentToAccountId?: ID;
|
|
15
|
-
paymentType?:
|
|
15
|
+
paymentType?: BillPayConfig;
|
|
16
16
|
amount: Amount;
|
|
17
17
|
paymentDate: ZeniDate;
|
|
18
18
|
receiptFileId?: ID;
|
package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { AddressPayload } from '../../../../entity/address/addressPayload';
|
|
2
2
|
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
3
|
-
import { ConfigTimelinePayload, TimelineDetail } from '../../billPay/billPayConfig/billPayConfigPayload';
|
|
4
|
-
import { BillPaymentConfigCodeType, PaymentAchSubConfigCodeType } from '../../billPay/billPayConfig/billPayConfigState';
|
|
5
3
|
import { ZeniAccountsConfig } from './zeniAccountsConfigState';
|
|
6
4
|
export interface ZeniAccountsConfigPayload {
|
|
7
5
|
apy: string | null;
|
|
@@ -9,18 +7,7 @@ export interface ZeniAccountsConfigPayload {
|
|
|
9
7
|
deposit_product_config: DepositProductConfigPayload;
|
|
10
8
|
mailing_address: AddressPayload;
|
|
11
9
|
bank_address: AddressPayload;
|
|
12
|
-
payment_processor: PaymentProcessorPayload;
|
|
13
|
-
is_us_domestic_wire_enabled: boolean;
|
|
14
|
-
is_same_day_ach_enabled: boolean;
|
|
15
10
|
}
|
|
16
|
-
export interface PaymentProcessorPayload {
|
|
17
|
-
payment_timeline: PaymentTimeline;
|
|
18
|
-
}
|
|
19
|
-
interface PaymentTimeline {
|
|
20
|
-
ach: Record<PaymentAchSubConfigCodeType, ConfigTimelineForAccTypePayload>;
|
|
21
|
-
wire: Record<'us-domestic', ConfigTimelineForAccTypePayload>;
|
|
22
|
-
}
|
|
23
|
-
export type ConfigTimelineForAccTypePayload = Record<'deposit_account', ConfigTimelinePayload>;
|
|
24
11
|
export declare const mapZeniAccountsConfigPayloadToZeniAccountsConfigState: (payload: ZeniAccountsConfigPayload) => ZeniAccountsConfig;
|
|
25
12
|
interface DepositProductConfigPayload {
|
|
26
13
|
deposit_products: DepositProductsPayload[];
|
|
@@ -30,5 +17,4 @@ interface DepositProductsPayload {
|
|
|
30
17
|
range: (number | null)[];
|
|
31
18
|
}
|
|
32
19
|
export type FetchZeniAccountsConfigResponse = ZeniAPIResponse<ZeniAccountsConfigPayload>;
|
|
33
|
-
export declare const getTimelineDetail: (paymentTimeline: PaymentTimeline, code: BillPaymentConfigCodeType, subCode: "standard" | "same-day" | "us-domestic") => TimelineDetail;
|
|
34
20
|
export {};
|