@zeniai/client-epic-state 4.12.65 → 4.12.66
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/paymentAccountPayload.d.ts +1 -1
- package/lib/entity/paymentAccount/paymentAccountPayload.js +7 -7
- package/lib/entity/tenant/clearAllEpic.d.ts +1 -1
- package/lib/entity/tenant/clearAllEpic.js +1 -1
- package/lib/entity/vendor/__mocks__/vendorMock.d.ts +7 -0
- package/lib/entity/vendor/__mocks__/vendorMock.js +339 -0
- package/lib/entity/vendor/__mocks__/vendorStateMocks.js +6 -1
- package/lib/entity/vendor/vendorPayload.d.ts +2 -1
- package/lib/entity/vendor/vendorPayload.js +6 -4
- package/lib/entity/vendor/vendorState.d.ts +1 -0
- package/lib/entity/vendor/vendorType.d.ts +2 -1
- package/lib/epic.d.ts +5 -2
- package/lib/epic.js +5 -2
- package/lib/index.d.ts +15 -8
- package/lib/index.js +31 -16
- package/lib/reducer.d.ts +4 -1
- package/lib/reducer.js +4 -1
- package/lib/view/addressView/__mocks__/addressViewMocks.d.ts +34 -0
- package/lib/view/addressView/__mocks__/addressViewMocks.js +223 -0
- package/lib/view/addressView/__mocks__/json/createAddressResponse.json +23 -0
- package/lib/view/addressView/__mocks__/json/createCompanyAddressSuccess.json +218 -0
- package/lib/view/addressView/__mocks__/json/createCompanyUserAddressSuccess.json +345 -0
- package/lib/view/addressView/__mocks__/json/fetchAddressResponse.json +24 -0
- package/lib/view/addressView/__mocks__/json/updateAddressResponse.json +24 -0
- package/lib/view/commonVendorView/vendorView/epics/fetchVendorDetailsEpic.js +2 -2
- package/lib/view/commonVendorView/vendorView/vendorViewPayload.d.ts +6 -0
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/fetchVendorsTabVendorDetailPageViewEpic.d.ts +2 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/fetchVendorsTabVendorDetailPageViewEpic.js +6 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/fetchVendorsTabVendorEpic.d.ts +3 -2
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/fetchVendorsTabVendorEpic.js +4 -2
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/resetVendorsTabVendorDetailLocalDataEpic.js +1 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/vendorsTabVendorDetailLocalDataHelpers.d.ts +3 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/vendorsTabVendorDetailLocalDataHelpers.js +14 -3
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewPayload.d.ts +5 -0
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewPayload.js +35 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +7 -2
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.js +23 -3
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.d.ts +16 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.js +24 -7
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewState.d.ts +16 -0
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewState.js +3 -0
- package/lib/view/settingsView/settingsViewSelector.js +1 -1
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.js +2 -2
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +1 -1
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +5 -5
- package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +11 -4
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +16 -7
- package/lib/view/spendManagement/zeniAccounts/paymentAccountList/fetchPaymentAccountBalanceEpic.d.ts +9 -0
- package/lib/view/spendManagement/zeniAccounts/paymentAccountList/fetchPaymentAccountBalanceEpic.js +48 -0
- package/lib/view/spendManagement/zeniAccounts/paymentAccountList/fetchPaymentAccountListEpic.d.ts +2 -2
- package/lib/view/spendManagement/zeniAccounts/paymentAccountList/fetchPaymentAccountListEpic.js +12 -6
- package/lib/view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountList.d.ts +1 -0
- package/lib/view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountListReducer.d.ts +6 -0
- package/lib/view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountListReducer.js +25 -2
- package/lib/view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountListSelector.d.ts +1 -0
- package/lib/view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountListSelector.js +1 -0
- package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailReducer.js +8 -0
- package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailSelector.js +1 -1
- package/lib/view/twoFactorAuthentication/sendOtpEpic.js +9 -6
- package/lib/view/{vendorFiling1099List → vendorFiling1099}/__mock__/json/vendorFiling1099ListSuccess.json +1 -1
- package/lib/view/{vendorFiling1099List → vendorFiling1099}/__mock__/vendorFiling1099ListMock.d.ts +3 -3
- package/lib/view/{vendorFiling1099List → vendorFiling1099}/__mock__/vendorFiling1099ListMock.js +17 -3
- package/lib/view/{vendorFiling1099List → vendorFiling1099}/__mock__/vendorFiling1099ListSelectorMock.d.ts +1 -1
- package/lib/view/{vendorFiling1099List → vendorFiling1099}/__mock__/vendorFiling1099ListSelectorMock.js +10 -1
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099UploadDetailsMock.d.ts +132 -0
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099UploadDetailsMock.js +146 -0
- package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorsFiling1099AllEpic.d.ts +8 -0
- package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorsFiling1099AllEpic.js +30 -0
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/fetchVendorsFiling1099ListEpic.d.ts +5 -5
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/fetchVendorsFiling1099ListEpic.js +6 -6
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListPayload.d.ts +3 -3
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListReducer.d.ts +8 -4
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListReducer.js +18 -5
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListSelector.d.ts +6 -6
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListSelector.js +8 -3
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListState.d.ts +3 -3
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListState.js +1 -1
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsPayload.d.ts +20 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsPayload.js +48 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsReducer.d.ts +25 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsReducer.js +180 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsSaveEpic.d.ts +11 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsSaveEpic.js +58 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsSelector.d.ts +14 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsSelector.js +17 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsState.d.ts +26 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsState.js +2 -0
- package/lib/view/vendorTabView/fetchVendorTabViewEpic.d.ts +1 -1
- package/lib/view/vendorTabView/fetchVendorTabViewEpic.js +2 -2
- package/package.json +2 -1
- /package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListPayload.js +0 -0
|
@@ -25,16 +25,16 @@ const toPaymentAccount = (payload) => {
|
|
|
25
25
|
isPrimaryForReimbursement: payload.is_primary_for_reimbursements,
|
|
26
26
|
isPrimaryForChargeCards: payload.is_primary_for_charge_cards,
|
|
27
27
|
isPrimaryForDepositAccounts: payload.is_primary_for_deposit_accounts,
|
|
28
|
-
balances: payload.
|
|
28
|
+
balances: payload.balance != null
|
|
29
29
|
? {
|
|
30
|
-
available: payload.
|
|
31
|
-
? (0, amount_1.toAmount)(payload.
|
|
30
|
+
available: payload.balance.available != null
|
|
31
|
+
? (0, amount_1.toAmount)(payload.balance.available, payload.balance.currency_code, payload.balance.currency_symbol)
|
|
32
32
|
: undefined,
|
|
33
|
-
current: payload.
|
|
34
|
-
? (0, amount_1.toAmount)(payload.
|
|
33
|
+
current: payload.balance.current != null
|
|
34
|
+
? (0, amount_1.toAmount)(payload.balance.current, payload.balance.currency_code, payload.balance.currency_symbol)
|
|
35
35
|
: undefined,
|
|
36
|
-
lastRefreshTime: payload.
|
|
37
|
-
? (0, zeniDayJS_1.date)(payload.
|
|
36
|
+
lastRefreshTime: payload.balance.last_refresh_success_time != null
|
|
37
|
+
? (0, zeniDayJS_1.date)(payload.balance.last_refresh_success_time)
|
|
38
38
|
: undefined,
|
|
39
39
|
}
|
|
40
40
|
: undefined,
|
|
@@ -162,8 +162,8 @@ import { clearAllCardPayments } from '../cardPayment/cardPaymentReducer';
|
|
|
162
162
|
import { clearAllTaskGroups } from '../../entity/taskGroup/taskGroupReducer';
|
|
163
163
|
import { clearTaskGroupView } from '../../view/taskManager/taskGroupView/taskGroupViewReducer';
|
|
164
164
|
import { clearBillPayBulkActionView } from '../../view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer';
|
|
165
|
+
import { clearVendorsFiling1099List } from '../../view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListReducer';
|
|
165
166
|
import { clearCardUserOnboarding } from '../../view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer';
|
|
166
|
-
import { clearVendorsFiling1099List } from '../../view/vendorFiling1099List/vendorFiling1099ListReducer';
|
|
167
167
|
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 clearBillPayBulkActionView> | ReturnType<typeof clearBillPayCard> | ReturnType<typeof clearBillPayConfig> | ReturnType<typeof clearBillPayReview> | ReturnType<typeof clearBillPaySetupApproverView> | ReturnType<typeof clearBillPaySetupView> | ReturnType<typeof clearCardBalance> | ReturnType<typeof clearCardPaymentView> | ReturnType<typeof clearCardUserOnboarding> | ReturnType<typeof clearCashbackDetail> | 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 clearCompanyTaskManagerView> | 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 clearScheduleAccruedDetailView> | ReturnType<typeof clearScheduleList> | ReturnType<typeof clearSettingsView> | ReturnType<typeof clearSetupView> | ReturnType<typeof clearPlaidAccountView> | ReturnType<typeof clearSubscriptionView> | ReturnType<typeof clearTagView> | ReturnType<typeof clearTaskDetail> | ReturnType<typeof clearTaskGroupView> | 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 clearVendorsFiling1099List> | ReturnType<typeof clearVendorsList> | ReturnType<typeof clearVendorsTabVendorView> | ReturnType<typeof clearWiseRedirectStatus> | ReturnType<typeof clearZeniAccStatementList> | ReturnType<typeof clearZeniAccountList> | ReturnType<typeof clearZeniAccountSetupView> | ReturnType<typeof clearZeniAccountsConfig> | ReturnType<typeof clearZeniAccountsPromoCard>;
|
|
168
168
|
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 clearAllCardPayments> | 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 clearAllAccruedJESchedules> | 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 clearAllTaskGroups> | ReturnType<typeof clearAllTaskSummary> | ReturnType<typeof clearAllTasks> | ReturnType<typeof clearAllToastNotifications> | 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>;
|
|
169
169
|
export declare type ActionType = clearActionTypeForViews | clearActionTypeForEntities | ReturnType<typeof clearAll>;
|
|
@@ -168,8 +168,8 @@ const cardPaymentReducer_1 = require("../cardPayment/cardPaymentReducer");
|
|
|
168
168
|
const taskGroupReducer_1 = require("../../entity/taskGroup/taskGroupReducer");
|
|
169
169
|
const taskGroupViewReducer_1 = require("../../view/taskManager/taskGroupView/taskGroupViewReducer");
|
|
170
170
|
const billsBulkActionViewReducer_1 = require("../../view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer");
|
|
171
|
+
const vendorFiling1099ListReducer_1 = require("../../view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListReducer");
|
|
171
172
|
const cardUserOnboardingReducer_1 = require("../../view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer");
|
|
172
|
-
const vendorFiling1099ListReducer_1 = require("../../view/vendorFiling1099List/vendorFiling1099ListReducer");
|
|
173
173
|
const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantReducer_1.clearAll.match), (0, operators_1.mergeMap)((action) => {
|
|
174
174
|
const { keepTenantCompanyState } = action.payload;
|
|
175
175
|
// Note: Please maintain strict alphabetical order
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ID } from '../../../commonStateTypes/common';
|
|
2
|
+
import { VendorState } from '../vendorState';
|
|
3
|
+
import { VendorPayload } from '../vendorPayload';
|
|
4
|
+
export declare const vendorPaylod: VendorPayload[];
|
|
5
|
+
export declare const vendorStateWithVendors: VendorState;
|
|
6
|
+
export declare const vendorIdToBeRemoved: ID;
|
|
7
|
+
export declare const vendorStateAfterRemoval: VendorState;
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.vendorStateAfterRemoval = exports.vendorIdToBeRemoved = exports.vendorStateWithVendors = exports.vendorPaylod = void 0;
|
|
4
|
+
const vendorStateMocks_1 = require("./vendorStateMocks");
|
|
5
|
+
exports.vendorPaylod = [
|
|
6
|
+
{
|
|
7
|
+
vendor_id: 'vendor_j12jh1g2g12jg3jh12:12',
|
|
8
|
+
transaction_attachments: [],
|
|
9
|
+
qbo_id: '12',
|
|
10
|
+
vendor_name: 'Sample Vendor 1',
|
|
11
|
+
title: '',
|
|
12
|
+
suffix: '',
|
|
13
|
+
first_name: 'Sample',
|
|
14
|
+
middle_name: '',
|
|
15
|
+
last_name: 'Vendor',
|
|
16
|
+
vendor_type: 'individual',
|
|
17
|
+
logo: {
|
|
18
|
+
url: '',
|
|
19
|
+
base64: '',
|
|
20
|
+
},
|
|
21
|
+
year_to_date_spend: 0,
|
|
22
|
+
last_30_days_spend: 0,
|
|
23
|
+
last_90_days_spend: 0,
|
|
24
|
+
last_month_spend: 0,
|
|
25
|
+
last_3_months_spend: 0,
|
|
26
|
+
last_6_months_spend: 0,
|
|
27
|
+
last_12_months_spend: 0,
|
|
28
|
+
previous_year_spend: 0,
|
|
29
|
+
owner: null,
|
|
30
|
+
balance: 0,
|
|
31
|
+
is_deleted: false,
|
|
32
|
+
qbo_create_time: '2022-01-24T05:59:37.057383',
|
|
33
|
+
qbo_update_time: '2022-01-24T05:59:37.057383',
|
|
34
|
+
create_time: '2022-01-24T05:59:37.057383',
|
|
35
|
+
update_time: '2022-01-24T05:59:37.057383',
|
|
36
|
+
sync_token: '1',
|
|
37
|
+
email: '',
|
|
38
|
+
phone: '',
|
|
39
|
+
website_url: '',
|
|
40
|
+
currency_code: 'USD',
|
|
41
|
+
currency_symbol: '$',
|
|
42
|
+
country_code: 'US',
|
|
43
|
+
account: {
|
|
44
|
+
qbo_id: '12',
|
|
45
|
+
coa_id: '123',
|
|
46
|
+
labels: [],
|
|
47
|
+
account_id: 'Travel Meals',
|
|
48
|
+
account_name: 'Travel Meals',
|
|
49
|
+
},
|
|
50
|
+
accounting_class: {
|
|
51
|
+
accounting_class_id: 'class_e0f33254-2651-4d5c-9d57-2611788265ca',
|
|
52
|
+
accounting_class_name: 'product 500',
|
|
53
|
+
accounting_class_number: '4011',
|
|
54
|
+
fully_qualified_accounting_class_name: 'product 500',
|
|
55
|
+
qbo_id: '5100000000000040143',
|
|
56
|
+
},
|
|
57
|
+
contacts: [
|
|
58
|
+
{
|
|
59
|
+
full_name: 'Aniket Patil',
|
|
60
|
+
phone: '+91-8xxxxxxxx',
|
|
61
|
+
email: 'aniket@personalmail.com',
|
|
62
|
+
contact_id: 'contacts_f3881db1-35c0-4699-891c-6cca724e75d6',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
full_name: 'Ankit Singh',
|
|
66
|
+
phone: '+91-8xxxxxxxx',
|
|
67
|
+
email: 'ankit@personalmail.com',
|
|
68
|
+
contact_id: 'contacts_6856c987-17ff-44a4-aad3-eef4b7696554',
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
billing_address: {
|
|
72
|
+
address_id: 'a_e3e99a8b-d400-42ac-ae09-e655bff1af97',
|
|
73
|
+
city: 'Bangalore',
|
|
74
|
+
country: 'India',
|
|
75
|
+
country_code: null,
|
|
76
|
+
create_time: '2022-02-01T15:47:44.681429',
|
|
77
|
+
hash_value: '2be1de50bedd7a2dfb8094846698b2b8bc86869bf903c27b69b74ae3e2651983',
|
|
78
|
+
latitude: null,
|
|
79
|
+
longitude: null,
|
|
80
|
+
postal_code: '560001',
|
|
81
|
+
state: 'Karnataka',
|
|
82
|
+
street: ['2nd lane', 'Opp Peter England showroom', 'Mg Road'],
|
|
83
|
+
update_time: '2022-02-01T15:47:44.681439',
|
|
84
|
+
},
|
|
85
|
+
address: {
|
|
86
|
+
address_id: 'a_e3e99a8b-d400-42ac-ae09-e655bff1af97',
|
|
87
|
+
city: 'Bangalore',
|
|
88
|
+
country: 'India',
|
|
89
|
+
country_code: null,
|
|
90
|
+
create_time: '2022-02-01T15:47:44.681429',
|
|
91
|
+
hash_value: '2be1de50bedd7a2dfb8094846698b2b8bc86869bf903c27b69b74ae3e2651983',
|
|
92
|
+
latitude: null,
|
|
93
|
+
longitude: null,
|
|
94
|
+
postal_code: '560001',
|
|
95
|
+
state: 'Karnataka',
|
|
96
|
+
street: ['2nd lane', 'Opp Peter England showroom', 'Mg Road'],
|
|
97
|
+
update_time: '2022-02-01T15:47:44.681439',
|
|
98
|
+
},
|
|
99
|
+
shipping_address: null,
|
|
100
|
+
bank_account_ids: [
|
|
101
|
+
'bank_adg67-asnds-a6sad-sdfgf8',
|
|
102
|
+
'bank_asghj-hags23-hgfjh-g3asfas',
|
|
103
|
+
],
|
|
104
|
+
bank_accounts: [
|
|
105
|
+
{
|
|
106
|
+
bank_account_id: 'bank_adg67-asnds-a6sad-sdfgf8',
|
|
107
|
+
bank_branch_id: 'HDFC000547',
|
|
108
|
+
bank_branch_name: 'Khadki',
|
|
109
|
+
bank_account_number: '201301203012013012',
|
|
110
|
+
bank_account_name: 'Person/Company Name',
|
|
111
|
+
bank_name: 'HDFC Bank',
|
|
112
|
+
bank_routing_number_ach: '210000000',
|
|
113
|
+
bank_routing_number_wire_transfer: '210000000',
|
|
114
|
+
note: '',
|
|
115
|
+
is_deleted: false,
|
|
116
|
+
update_time: '2022-02-01T15:47:44.681439',
|
|
117
|
+
create_time: '2022-02-01T15:47:44.681439',
|
|
118
|
+
bank_swift_code: null,
|
|
119
|
+
bank_account_iban: null,
|
|
120
|
+
bank_account_type: null,
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
bank_account_id: 'bank_asghj-hags23-hgfjh-g3asfas',
|
|
124
|
+
bank_branch_id: 'ICICI00004',
|
|
125
|
+
bank_branch_name: 'Baner',
|
|
126
|
+
bank_account_number: '20130120301286273826',
|
|
127
|
+
bank_account_name: 'Person/Company Name',
|
|
128
|
+
bank_name: 'ICICI Bank',
|
|
129
|
+
bank_routing_number_ach: '110000000',
|
|
130
|
+
bank_routing_number_wire_transfer: '110000000',
|
|
131
|
+
note: '',
|
|
132
|
+
is_deleted: false,
|
|
133
|
+
update_time: '2022-02-01T15:47:44.681439',
|
|
134
|
+
create_time: '2022-02-01T15:47:44.681439',
|
|
135
|
+
bank_swift_code: null,
|
|
136
|
+
bank_account_iban: null,
|
|
137
|
+
bank_account_type: null,
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
payment_instrument_ids: ['pay_inst_f3fc9b06-694a-4609-a710-b0e1d4de72d3'],
|
|
141
|
+
payment_instruments: [
|
|
142
|
+
{
|
|
143
|
+
account_source: 'email',
|
|
144
|
+
create_time: '2023-12-17T11:29:27.544391',
|
|
145
|
+
display_text: 'UPI ID - lgtextiles@okicici',
|
|
146
|
+
labels: [
|
|
147
|
+
{
|
|
148
|
+
key: 'Account Holder Name',
|
|
149
|
+
value: 'LG Textiles',
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
key: 'UPI ID',
|
|
153
|
+
value: 'lgtextiles@okicici',
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
key: 'Source',
|
|
157
|
+
value: 'email',
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
key: 'Type of account',
|
|
161
|
+
value: 'indian_upi',
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
max_valid_amount: 100000,
|
|
165
|
+
min_valid_amount: 0,
|
|
166
|
+
pi_display_number: 'lgtextiles@okicici',
|
|
167
|
+
update_time: '2023-12-17T11:29:27.544396',
|
|
168
|
+
zeni_payment_instrument_id: 'pay_inst_f3fc9b06-694a-4609-a710-b0e1d4de72d3',
|
|
169
|
+
},
|
|
170
|
+
],
|
|
171
|
+
vendor_currency_code: 'USD',
|
|
172
|
+
vendor_currency_symbol: '$',
|
|
173
|
+
vendor_1099_status: 'incomplete',
|
|
174
|
+
tin: { type: 'ein', value: '550258131' },
|
|
175
|
+
vendor_1099_ytd_total: 2287,
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
vendor_id: 'vendor_j12jh1g2g12jg3jh12:2',
|
|
179
|
+
transaction_attachments: [],
|
|
180
|
+
qbo_id: '13',
|
|
181
|
+
vendor_name: 'Sample Vendor 2',
|
|
182
|
+
title: '',
|
|
183
|
+
suffix: '',
|
|
184
|
+
first_name: 'Sample',
|
|
185
|
+
middle_name: '',
|
|
186
|
+
last_name: 'Vendor 3',
|
|
187
|
+
vendor_type: 'c_corporation',
|
|
188
|
+
logo: {
|
|
189
|
+
url: '',
|
|
190
|
+
base64: '',
|
|
191
|
+
},
|
|
192
|
+
last_month_spend: 0,
|
|
193
|
+
last_3_months_spend: 0,
|
|
194
|
+
last_6_months_spend: 0,
|
|
195
|
+
last_12_months_spend: 0,
|
|
196
|
+
previous_year_spend: 0,
|
|
197
|
+
owner: null,
|
|
198
|
+
balance: 0,
|
|
199
|
+
is_deleted: false,
|
|
200
|
+
qbo_create_time: '2022-01-24T05:59:37.057383',
|
|
201
|
+
qbo_update_time: '2022-01-24T05:59:37.057383',
|
|
202
|
+
create_time: '2022-01-24T05:59:37.057383',
|
|
203
|
+
update_time: '2022-01-24T05:59:37.057383',
|
|
204
|
+
sync_token: '1',
|
|
205
|
+
email: '',
|
|
206
|
+
phone: '',
|
|
207
|
+
website_url: '',
|
|
208
|
+
currency_code: 'USD',
|
|
209
|
+
currency_symbol: '$',
|
|
210
|
+
country_code: 'US',
|
|
211
|
+
contacts: [
|
|
212
|
+
{
|
|
213
|
+
full_name: 'Aniket Patil',
|
|
214
|
+
phone: '+91-8xxxxxxxx',
|
|
215
|
+
email: 'aniket@personalmail.com',
|
|
216
|
+
contact_id: 'contacts_f3881db1-35c0-4699-891c-6cca724e75d6',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
full_name: 'Ankit Singh',
|
|
220
|
+
phone: '+91-8xxxxxxxx',
|
|
221
|
+
email: 'ankit@personalmail.com',
|
|
222
|
+
contact_id: 'contacts_6856c987-17ff-44a4-aad3-eef4b7696554',
|
|
223
|
+
},
|
|
224
|
+
],
|
|
225
|
+
account: {
|
|
226
|
+
qbo_id: '12',
|
|
227
|
+
coa_id: '123',
|
|
228
|
+
labels: [],
|
|
229
|
+
account_id: 'Travel Meals',
|
|
230
|
+
account_name: 'Travel Meals',
|
|
231
|
+
},
|
|
232
|
+
accounting_class: {
|
|
233
|
+
accounting_class_id: 'class_e0f33254-2651-4d5c-9d57-2611788265ca',
|
|
234
|
+
accounting_class_name: 'product 500',
|
|
235
|
+
accounting_class_number: '4011',
|
|
236
|
+
fully_qualified_accounting_class_name: 'product 500',
|
|
237
|
+
qbo_id: '5100000000000040143',
|
|
238
|
+
},
|
|
239
|
+
billing_address: {
|
|
240
|
+
address_id: 'a_e3e99a8b-ae09-42ac-d400-e3e99a8b',
|
|
241
|
+
city: 'Pune',
|
|
242
|
+
country: 'India',
|
|
243
|
+
country_code: null,
|
|
244
|
+
create_time: '2022-02-01T15:47:44.681429',
|
|
245
|
+
hash_value: '2be1de50bedd7a2dfb8094846698b2b8bc86869bf903c27b69b74ae3e2651983',
|
|
246
|
+
latitude: null,
|
|
247
|
+
longitude: null,
|
|
248
|
+
postal_code: '411045',
|
|
249
|
+
state: 'Maharashtra',
|
|
250
|
+
street: ['1st Street', 'Near Mitcon College', 'Balewadi'],
|
|
251
|
+
update_time: '2022-02-01T15:47:44.681439',
|
|
252
|
+
},
|
|
253
|
+
shipping_address: null,
|
|
254
|
+
bank_accounts: [
|
|
255
|
+
{
|
|
256
|
+
bank_account_id: 'bank_asghj-hgfjh-g3asfas-hags23',
|
|
257
|
+
bank_branch_id: 'SBINOOOO9765',
|
|
258
|
+
bank_branch_name: 'Wakad',
|
|
259
|
+
bank_account_number: '20130120301286273826',
|
|
260
|
+
bank_account_name: 'Person/Company Name',
|
|
261
|
+
bank_name: 'SBI Bank',
|
|
262
|
+
bank_routing_number_ach: '410000000',
|
|
263
|
+
bank_routing_number_wire_transfer: '310000000',
|
|
264
|
+
note: '',
|
|
265
|
+
is_deleted: false,
|
|
266
|
+
update_time: '2022-02-01T15:47:44.681439',
|
|
267
|
+
create_time: '2022-02-01T15:47:44.681439',
|
|
268
|
+
bank_swift_code: null,
|
|
269
|
+
bank_account_iban: null,
|
|
270
|
+
bank_account_type: null,
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
bank_account_id: 'bank_g3asfas-hags23-hgfjh-asghj',
|
|
274
|
+
bank_branch_id: 'UBI0014267',
|
|
275
|
+
bank_branch_name: 'SB Road',
|
|
276
|
+
bank_account_number: '20130120301286273826',
|
|
277
|
+
bank_account_name: 'Person/Company Name',
|
|
278
|
+
bank_name: 'SBI Bank',
|
|
279
|
+
bank_routing_number_ach: '510000000',
|
|
280
|
+
bank_routing_number_wire_transfer: '610000000',
|
|
281
|
+
note: '',
|
|
282
|
+
is_deleted: false,
|
|
283
|
+
update_time: '2022-02-01T15:47:44.681439',
|
|
284
|
+
create_time: '2022-02-01T15:47:44.681439',
|
|
285
|
+
bank_swift_code: null,
|
|
286
|
+
bank_account_iban: null,
|
|
287
|
+
bank_account_type: null,
|
|
288
|
+
},
|
|
289
|
+
],
|
|
290
|
+
payment_instrument_ids: ['pay_inst_f3fc9b06-694a-4609-a710-b0e1d4de72d3'],
|
|
291
|
+
payment_instruments: [
|
|
292
|
+
{
|
|
293
|
+
account_source: 'email',
|
|
294
|
+
create_time: '2023-12-17T11:29:27.544391',
|
|
295
|
+
display_text: 'UPI ID - lgtextiles@okicici',
|
|
296
|
+
labels: [
|
|
297
|
+
{
|
|
298
|
+
key: 'Account Holder Name',
|
|
299
|
+
value: 'LG Textiles',
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
key: 'UPI ID',
|
|
303
|
+
value: 'lgtextiles@okicici',
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
key: 'Source',
|
|
307
|
+
value: 'email',
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
key: 'Type of account',
|
|
311
|
+
value: 'indian_upi',
|
|
312
|
+
},
|
|
313
|
+
],
|
|
314
|
+
max_valid_amount: 100000,
|
|
315
|
+
min_valid_amount: 0,
|
|
316
|
+
pi_display_number: 'lgtextiles@okicici',
|
|
317
|
+
update_time: '2023-12-17T11:29:27.544396',
|
|
318
|
+
zeni_payment_instrument_id: 'pay_inst_f3fc9b06-694a-4609-a710-b0e1d4de72d3',
|
|
319
|
+
},
|
|
320
|
+
],
|
|
321
|
+
vendor_currency_code: 'USD',
|
|
322
|
+
vendor_currency_symbol: '$',
|
|
323
|
+
vendor_1099_status: 'incomplete',
|
|
324
|
+
tin: { type: 'ein', value: '550258131' },
|
|
325
|
+
vendor_1099_ytd_total: 2287,
|
|
326
|
+
},
|
|
327
|
+
];
|
|
328
|
+
exports.vendorStateWithVendors = {
|
|
329
|
+
vendorByID: {
|
|
330
|
+
'vendor_j12jh1g2g12jg3jh12:12': vendorStateMocks_1.vendorStateMock1,
|
|
331
|
+
'vendor_j12jh1g2g12jg3jh12:2': vendorStateMocks_1.vendorStateMock2,
|
|
332
|
+
},
|
|
333
|
+
};
|
|
334
|
+
exports.vendorIdToBeRemoved = 'vendor_j12jh1g2g12jg3jh12:2';
|
|
335
|
+
exports.vendorStateAfterRemoval = {
|
|
336
|
+
vendorByID: {
|
|
337
|
+
'vendor_j12jh1g2g12jg3jh12:12': vendorStateMocks_1.vendorStateMock1,
|
|
338
|
+
},
|
|
339
|
+
};
|
|
@@ -60,6 +60,7 @@ exports.vendorStateMock1 = {
|
|
|
60
60
|
},
|
|
61
61
|
filing1099Total: 2287,
|
|
62
62
|
filing1099W9Files: undefined,
|
|
63
|
+
w9DocumentIds: [],
|
|
63
64
|
};
|
|
64
65
|
exports.vendorStateMock2 = {
|
|
65
66
|
recommendations: [],
|
|
@@ -116,6 +117,7 @@ exports.vendorStateMock2 = {
|
|
|
116
117
|
value: '550258131',
|
|
117
118
|
},
|
|
118
119
|
filing1099Total: 2287,
|
|
120
|
+
w9DocumentIds: [],
|
|
119
121
|
};
|
|
120
122
|
exports.vendorStateMock4 = {
|
|
121
123
|
recommendations: [],
|
|
@@ -173,8 +175,9 @@ exports.vendorStateMock4 = {
|
|
|
173
175
|
filing1099Status: undefined,
|
|
174
176
|
filing1099Tin: undefined,
|
|
175
177
|
filing1099Total: undefined,
|
|
176
|
-
filing1099W9Files:
|
|
178
|
+
filing1099W9Files: [],
|
|
177
179
|
filing1099TaxClassification: 'Individual',
|
|
180
|
+
w9DocumentIds: [],
|
|
178
181
|
};
|
|
179
182
|
exports.vendorStateMock5 = {
|
|
180
183
|
recommendations: [],
|
|
@@ -246,6 +249,7 @@ exports.vendorStateMock5 = {
|
|
|
246
249
|
value: '550258131',
|
|
247
250
|
},
|
|
248
251
|
filing1099Total: 2287,
|
|
252
|
+
w9DocumentIds: [],
|
|
249
253
|
};
|
|
250
254
|
exports.vendorStateMock6 = {
|
|
251
255
|
recommendations: [],
|
|
@@ -305,4 +309,5 @@ exports.vendorStateMock6 = {
|
|
|
305
309
|
value: '550258131',
|
|
306
310
|
},
|
|
307
311
|
filing1099Total: 2287,
|
|
312
|
+
w9DocumentIds: [],
|
|
308
313
|
};
|
|
@@ -72,7 +72,8 @@ export interface VendorPayload extends VendorBasePayload, SpendPayload {
|
|
|
72
72
|
document_ids?: ID[] | null;
|
|
73
73
|
documents?: FilePayload[];
|
|
74
74
|
preferred_international_transfer_fee_bearer_payment_method?: string;
|
|
75
|
-
|
|
75
|
+
w9_documents?: FilePayload[];
|
|
76
|
+
w9_document_ids?: ID[];
|
|
76
77
|
vendor_1099_status?: string;
|
|
77
78
|
tin?: Filing1099TinTypePayload;
|
|
78
79
|
vendor_1099_ytd_total?: number;
|
|
@@ -29,12 +29,12 @@ const toVendorBasePayload = (tranVendor, vendorUpdates) => {
|
|
|
29
29
|
};
|
|
30
30
|
exports.toVendorBasePayload = toVendorBasePayload;
|
|
31
31
|
const mapVendorPayloadToVendor = (payload) => {
|
|
32
|
-
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, _7, _8, _9, _10, _11, _12, _13;
|
|
32
|
+
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, _7, _8, _9, _10, _11, _12, _13, _14;
|
|
33
33
|
return Object.assign(Object.assign({}, (0, exports.mapVendorBasePayloadToVendorBase)(payload)), { qboId: payload.qbo_id, title: (_a = payload.title) !== null && _a !== void 0 ? _a : '', suffix: (_b = payload.suffix) !== null && _b !== void 0 ? _b : '', firstName: (_d = (_c = payload.first_name) === null || _c === void 0 ? void 0 : _c.trim()) !== null && _d !== void 0 ? _d : '', middleName: (_f = (_e = payload.middle_name) === null || _e === void 0 ? void 0 : _e.trim()) !== null && _f !== void 0 ? _f : '', lastName: (_h = (_g = payload.last_name) === null || _g === void 0 ? void 0 : _g.trim()) !== null && _h !== void 0 ? _h : '', vendorType: (_j = payload.vendor_type) !== null && _j !== void 0 ? _j : '', isDeleted: (_k = payload.is_deleted) !== null && _k !== void 0 ? _k : false, createTime: payload.create_time != null ? (0, zeniDayJS_1.date)(payload.create_time) : (0, zeniDayJS_1.dateNow)(), updateTime: payload.update_time != null ? (0, zeniDayJS_1.date)(payload.update_time) : (0, zeniDayJS_1.dateNow)(), syncToken: (_l = payload.sync_token) !== null && _l !== void 0 ? _l : '', email: (_o = (_m = payload.email) === null || _m === void 0 ? void 0 : _m.trim()) !== null && _o !== void 0 ? _o : '', phone: (_p = payload.phone) !== null && _p !== void 0 ? _p : '', websiteUrl: (_q = payload.website_url) !== null && _q !== void 0 ? _q : '', currencyCode: payload.currency_code, currencySymbol: payload.currency_symbol, vendorCurrencyCode: (_r = payload.vendor_currency_code) !== null && _r !== void 0 ? _r : payload.currency_code, vendorCurrencySymbol: (_s = payload.vendor_currency_symbol) !== null && _s !== void 0 ? _s : payload.currency_symbol, countryCode: (_t = payload.country_code) !== null && _t !== void 0 ? _t : undefined, accountId: (_v = (_u = payload.account) === null || _u === void 0 ? void 0 : _u.account_id) !== null && _v !== void 0 ? _v : undefined, classId: (_x = (_w = payload.accounting_class) === null || _w === void 0 ? void 0 : _w.accounting_class_id) !== null && _x !== void 0 ? _x : undefined, contactIds: (_z = (_y = payload.contacts) === null || _y === void 0 ? void 0 : _y.map((contact) => contact.contact_id)) !== null && _z !== void 0 ? _z : [], billingAddressId: payload.billing_address != null
|
|
34
34
|
? payload.billing_address.address_id
|
|
35
35
|
: undefined, addressId: payload.address != null ? payload.address.address_id : undefined, shippingAddressId: payload.shipping_address != null
|
|
36
36
|
? payload.shipping_address.address_id
|
|
37
|
-
: undefined, bankAccountIds: (_1 = (_0 = payload.bank_accounts) === null || _0 === void 0 ? void 0 : _0.map((bankAcc) => bankAcc.bank_account_id)) !== null && _1 !== void 0 ? _1 : [], paymentInstrumentIds: (_3 = (_2 = payload.payment_instruments) === null || _2 === void 0 ? void 0 : _2.map((piAcc) => piAcc.zeni_payment_instrument_id)) !== null && _3 !== void 0 ? _3 : [], ownerId: (_5 = (_4 = payload.owner) === null || _4 === void 0 ? void 0 : _4.user_id) !== null && _5 !== void 0 ? _5 : undefined, balance: (_6 = payload.balance) !== null && _6 !== void 0 ? _6 : 0, matchScore: ((_7 = payload.match_score) === null || _7 === void 0 ? void 0 : _7.value) != null ? payload.match_score.value : 0, isVendor1099: (_8 = payload.is_vendor_1099) !== null && _8 !== void 0 ? _8 : false, documentIds: (_9 = payload.document_ids) !== null && _9 !== void 0 ? _9 : [], last30DaysSpend: payload.last_30_days_spend, last90DaysSpend: payload.last_90_days_spend, yearToDateSpend: payload.year_to_date_spend, lastMonthSpend: payload.last_month_spend, last3MonthsSpend: payload.last_3_months_spend, last6MonthsSpend: payload.last_6_months_spend, last12MonthsSpend: payload.last_12_months_spend, previousYearSpend: payload.previous_year_spend, recommendations: payload.recommendation != null && payload.recommendation.length > 0
|
|
37
|
+
: undefined, bankAccountIds: (_1 = (_0 = payload.bank_accounts) === null || _0 === void 0 ? void 0 : _0.map((bankAcc) => bankAcc.bank_account_id)) !== null && _1 !== void 0 ? _1 : [], paymentInstrumentIds: (_3 = (_2 = payload.payment_instruments) === null || _2 === void 0 ? void 0 : _2.map((piAcc) => piAcc.zeni_payment_instrument_id)) !== null && _3 !== void 0 ? _3 : [], ownerId: (_5 = (_4 = payload.owner) === null || _4 === void 0 ? void 0 : _4.user_id) !== null && _5 !== void 0 ? _5 : undefined, balance: (_6 = payload.balance) !== null && _6 !== void 0 ? _6 : 0, matchScore: ((_7 = payload.match_score) === null || _7 === void 0 ? void 0 : _7.value) != null ? payload.match_score.value : 0, isVendor1099: (_8 = payload.is_vendor_1099) !== null && _8 !== void 0 ? _8 : false, documentIds: (_9 = payload.document_ids) !== null && _9 !== void 0 ? _9 : [], w9DocumentIds: (_11 = (_10 = payload.w9_documents) === null || _10 === void 0 ? void 0 : _10.map((file) => file.file_id)) !== null && _11 !== void 0 ? _11 : [], last30DaysSpend: payload.last_30_days_spend, last90DaysSpend: payload.last_90_days_spend, yearToDateSpend: payload.year_to_date_spend, lastMonthSpend: payload.last_month_spend, last3MonthsSpend: payload.last_3_months_spend, last6MonthsSpend: payload.last_6_months_spend, last12MonthsSpend: payload.last_12_months_spend, previousYearSpend: payload.previous_year_spend, recommendations: payload.recommendation != null && payload.recommendation.length > 0
|
|
38
38
|
? (0, transactionPayload_1.transformRecommendation)(payload.recommendation[0]) // In this case, there will be only one recommendation item since this is entity recommendation payload.
|
|
39
39
|
: [], preferredInternationalTransferFeeBearerPaymentMethod: payload.preferred_international_transfer_fee_bearer_payment_method != null
|
|
40
40
|
? (0, billTransactionState_1.toInternationalTransferFeeBearerPaymentMethod)(payload.preferred_international_transfer_fee_bearer_payment_method)
|
|
@@ -46,8 +46,10 @@ const mapVendorPayloadToVendor = (payload) => {
|
|
|
46
46
|
: undefined, filing1099Tin: payload.tin != null
|
|
47
47
|
? {
|
|
48
48
|
type: payload.tin.type != null ? (0, vendorType_1.toTinType)(payload.tin.type) : null,
|
|
49
|
-
value: (
|
|
49
|
+
value: (_13 = (_12 = payload.tin) === null || _12 === void 0 ? void 0 : _12.value) !== null && _13 !== void 0 ? _13 : null,
|
|
50
50
|
}
|
|
51
|
-
: undefined, filing1099Total: payload.vendor_1099_ytd_total, filing1099W9Files:
|
|
51
|
+
: undefined, filing1099Total: payload.vendor_1099_ytd_total, filing1099W9Files: payload.w9_documents != null
|
|
52
|
+
? payload.w9_documents.map((filePayload) => (0, attachmentPayload_1.mapFiletoAttachment)(filePayload))
|
|
53
|
+
: [], filing1099TaxClassification: (_14 = payload.vendor_type) !== null && _14 !== void 0 ? _14 : '' });
|
|
52
54
|
};
|
|
53
55
|
exports.mapVendorPayloadToVendor = mapVendorPayloadToVendor;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export declare const toTinType: (v: string) => "ein" | "ssn";
|
|
2
|
-
|
|
2
|
+
declare type TinType = ReturnType<typeof toTinType>;
|
|
3
3
|
export interface Filing1099TinType {
|
|
4
4
|
type: TinType | null;
|
|
5
5
|
value: string | null;
|
|
6
6
|
}
|
|
7
7
|
export declare const toStatusType: (v: string) => "complete" | "incomplete";
|
|
8
8
|
export declare type StatusType = ReturnType<typeof toStatusType>;
|
|
9
|
+
export {};
|
package/lib/epic.d.ts
CHANGED
|
@@ -126,7 +126,9 @@ import { ActionType as UpdateFileNameActionType } from './view/fileView/epic/upd
|
|
|
126
126
|
import { ActionType as UpdateFilesMetadataActionType } from './view/fileView/epic/updateFilesMetadataEpic';
|
|
127
127
|
import { ActionType as FetchTasksCardActionType } from './view/tasksCard/fetchTasksCardEpic';
|
|
128
128
|
import { ActionType as FetchVendorsActionType } from './view/vendorList/fetchVendorsListEpic';
|
|
129
|
-
import { ActionType as FetchVendorsFiling1099ActionType } from './view/vendorFiling1099List/fetchVendorsFiling1099ListEpic';
|
|
129
|
+
import { ActionType as FetchVendorsFiling1099ActionType } from './view/vendorFiling1099/vendorFiling1099List/fetchVendorsFiling1099ListEpic';
|
|
130
|
+
import { ActionType as VendorFiling1099UploadDetailsSaveActionType } from './view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsSaveEpic';
|
|
131
|
+
import { ActionType as FetchVendorsFiling1099AllActionType } from './view/vendorFiling1099/vendorFiling1099List/fetchVendorsFiling1099AllEpic';
|
|
130
132
|
import { ActionType as UpdateSelectedVendorForCreateFlowActionType } from './view/commonVendorView/vendorView/epics/updateSelectedVendorForCreateFlowEpic';
|
|
131
133
|
import { ActionType as InitializeVendorAddressActionType } from './view/commonVendorView/vendorView/epics/initializeVendorAddressEpic';
|
|
132
134
|
import { ActionType as SaveVendorActionType } from './view/commonVendorView/vendorView/epics/saveVendorEpic';
|
|
@@ -261,6 +263,7 @@ import { ActionType as FetchZeniAccountListPageActionType } from './view/spendMa
|
|
|
261
263
|
import { ActionType as FetchDepositAccountListActionType } from './view/spendManagement/zeniAccounts/depositAccountList/fetchDepositAccountListEpic';
|
|
262
264
|
import { ActionType as FetchDepositAccountActionType } from './view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountEpic';
|
|
263
265
|
import { ActionType as FetchPaymentAccountListActionType } from './view/spendManagement/zeniAccounts/paymentAccountList/fetchPaymentAccountListEpic';
|
|
266
|
+
import { ActionType as FetchPaymentAccountBalanceActionType } from './view/spendManagement/zeniAccounts/paymentAccountList/fetchPaymentAccountBalanceEpic';
|
|
264
267
|
import { ActionType as UnlinkPaymentAccountActionType } from './view/spendManagement/zeniAccounts/paymentAccountList/unlinkPaymentAccountEpic';
|
|
265
268
|
import { ActionType as CreateCheckingAccountActionType } from './view/spendManagement/zeniAccounts/zeniAccountList/createCheckingAccountEpic';
|
|
266
269
|
import { ActionType as FetchAccountHistoryActionType } from './view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountHistoryEpic';
|
|
@@ -407,6 +410,6 @@ import { ActionType as FetchPaymentSourcesActionType } from './view/cardPayment/
|
|
|
407
410
|
import { ActionType as CreateCardSetupIntentActionType } from './view/cardPayment/epic/createCardSetupIntentEpic';
|
|
408
411
|
import { ActionType as FetchBillingAccountsListActionType } from './view/settingsView/epic/fetchBillingAccountsViewEpic';
|
|
409
412
|
/** Root action type is union of all the epic action type */
|
|
410
|
-
export declare type RootActionType = AcceptBillPayTermsActionType | AcceptBillPayUpdatedTermsActionType | AcceptChargeCardTermsActionType | AcceptEmployeeRemiTermsActionType | AcceptRemiTermsActionType | AcceptZeniAccountTermsActionType | AddCardPaymentSourceActionType | ApproveOrRejectBillActionType | ApproveOrRejectBillsBulkActionActionType | ApproveOrRejectRemiActionType | ApproveVendorGlobalReviewActionType | ArchiveTaskActionType | BalanceSheetActionType | BalanceSheetForTimeframeActionType | BulkUpdateTasksListActionType | CancelAndDeleteBillActionType | CancelAndDeleteRemiActionType | CancelOrDeleteBillsBulkActionActionType | CancelScheduleAccruedJournalEntryActionType | CardBalanceActionType | CashBalanceActionType | CashFlowActionType | CashFlowForTimeframeActionType | CashInCashOutActionType | CashPositionActionType | ChangeZeniPersonRolesActionType | CheckDepositActionType | ClearAllActionType | CombinedStatementActionType | CompanyManagementSavePendingUpdatesActionType | CompanyManagementSaveUpdatesActionType | ConfirmCardSetupIntentActionType | CreateAddressActionType | CreateBankAccountActionType | CreateCardSetupIntentActionType | CreateCheckingAccountActionType | CreateCompanyAddressActionType | CreateCompanyOfficersActionType | CreateCompanyUserAddressActionType | CreateGlobalMerchantActionType | CreateInternationalBankAccountActionType | CreateNewSchedulesAccruedActionType | CreateNewSchedulesActionType | CreateNewTaskGroupActionType | CreatePaymentInstrumentActionType | CreateTagActionType | CreateUserBankAccountActionType | CurrencyConversionActionType | DeleteBankAccountActionType | DeleteBillActionType | DeleteBillPayApprovalRuleActionType | DeleteFileActionType | DeleteFileListActionType | DeleteInternationalBankAccountActionType | DeletePaymentInstrumentActionType | DeletePersonActionType | DeleteRemiActionType | DeleteRemiApprovalRuleActionType | DeleteScheduleAccruedDetailActionType | DeleteScheduleDetailActionType | DeleteTagActionType | DeleteTaskActionType | DeleteTaskGroupActionType | DeleteUserBankAccountActionType | DepositAccountTransactionListActionType | DragNDropTasksActionType | EnableSetupActionType | EstablishOnboardingPlaidConnectionActionType | EstablishPlaidConnectionActionType | FetchAccountHistoryActionType | FetchAccountListActionType | FetchAccountListForAccountTypesActionType | FetchAccruedScheduleListActionType | FetchActiveTenantActionType | FetchAddressActionType | FetchAllCockpitViewsActionType | FetchAllPeopleRequiredActionType | FetchAllTagsActionType | FetchAllTaskGroupsActionType | FetchAllTenantsActionType | FetchApAgingActionType | FetchApAgingDetailActionType | FetchArAgingActionType | FetchArAgingDetailActionType | FetchAuditReportGroupViewActionType | FetchAuditRuleGroupViewActionType | FetchBankAccountsListActionType | FetchBankConnectionsViewActionType | FetchBankCountryNameByIbanActionType | FetchBankNameByRoutingActionType | FetchBankNameBySwiftActionType | FetchBillAndInitializeLocalStoreActionType | FetchBillDetailActionType | FetchBillingAccountsListActionType | FetchBillListActionType | FetchBillListPerTabActionType | FetchBillPayApproversDetailsActionType | FetchBillPayApproversListActionType | FetchBillPayCardActionType | FetchBillPayConfigActionType | FetchBillPaySetupApproverViewActionType | FetchBillPaySetupViewActionType | FetchCashbackDetailActionType | FetchChargeCardConfigActionType | FetchChargeCardDetailActionType | FetchChargeCardDetailPageActionType | FetchChargeCardListActionType | FetchChargeCardListPageActionType | FetchChargeCardSetupViewActionType | FetchChargeCardTransactionAttachmentsActionType | FetchChargeCardTransactionListActionType | FetchClassListActionType | FetchCollaborationAuthTokenActionType | FetchCompanyConfigActionType | FetchCompanyHealthMetricViewEpicActionType | FetchCompanyManagementActionType | FetchCompanyMetaDataActionType | FetchCompanyMonthEndReportHistoricDataActionType | FetchCompanyMonthEndReportHistoricDatesActionType | FetchCompanyMonthEndReportTemplatesActionType | FetchCompanyMonthEndReportViewActionType | FetchCompanyOnboardingViewActionType | FetchCompanyPassportViewActionType | FetchCompanyPortfolioActionType | FetchCompanyTaskManagerViewActionType | FetchCreditAccountActionType | FetchCurrencyConversionValueActionType | FetchDashboardActionType | FetchDepositAccountActionType | FetchDepositAccountDetailActionType | FetchDepositAccountListActionType | FetchDepositAccStatementListActionType | FetchDownloadSchedulesActionType | FetchDuplicateBillActionType | FetchDuplicateReimbursementEpicActionType | FetchEditBillDetailPageActionType | FetchEditRemiDetailPageActionType | FetchEligibleActionsForBillActionType | FetchEntityAutoCompleteActionType | FetchEntityHistoryActionType | FetchEntityRecommendationsByTransactionIdActionType | FetchExcludedResourcesActionType | FetchExpenseTrendActionType | FetchExternalConnectionsActionType | FetchFileActionType | FetchFileListActionType | FetchForecastListActionType | FetchGlobalMerchantAutoCompleteActionType | FetchGlobalMerchantRecommendationActionType | FetchIncomeTrendActionType | FetchInternationalWireDynamicFormActionType | FetchMagicLinkBankNameByRoutingActionType | FetchMagicLinkBankNameBySwiftActionType | FetchMagicLinkBillActionType | FetchMagicLinkTenantActionType | FetchManagementActionType | FetchMerchantListActionType | FetchMyProfileActionType | FetchMyProfileViewActionType | FetchNetBurnOrIncomeStoryCardActionType | FetchNetBurnOrIncomeWithForecastActionType | FetchNotificationSettingsActionType | FetchNotificationSettingsViewActionType | FetchNotificationUnreadCountActionType | FetchNotificationViewActionType | FetchOnboardingActionType | FetchOnboardingCompletedCompaniesActionType | FetchOnboardingCustomerSetupViewActionType | FetchOnboardingCustomerViewActionType | FetchOpExWithForecastActionType | FetchOwnerListActionType | FetchParentSubsidiaryManagementActionType | FetchPaymentAccountListActionType | FetchPaymentSourcesActionType | FetchPortfolioActionType | FetchPreviousBillsActionType | FetchRecommendationByEntityIdActionType | FetchRecommendationByEntityNameActionType | FetchRecommendationsAndUpdateMerchantRecommendationsActionType | FetchRecommendationsAndUpdateVendorRecommendationsActionType | FetchRecommendedBillExpenseActionType | FetchReferralsActionType | FetchReimbursementCardActionType | FetchReimbursementConfigActionType | FetchRemiAndInitializeLocalStoreActionType | FetchRemiApproversDetailsActionType | FetchRemiApproversListActionType | FetchRemiDetailActionType | FetchRemiListActionType | FetchRemiListPerTabActionType | FetchRemiSetupApproverViewActionType | FetchRemiSetupViewActionType | FetchRevenueWithForecastActionType | FetchReviewCompanyActionType | FetchReviewTransferDetailActionType | FetchRewardsPlanActionType | FetchScheduleAccruedDetailsActionType | FetchScheduleAccruedDetailsPageActionType | FetchScheduleDetailsActionType | FetchScheduleDetailsPageActionType | FetchScheduleListActionType | FetchSchedulesListActionType | FetchSubscriptionActionType | FetchSubscriptionAddOnsActionType | FetchSubscriptionCouponsActionType | FetchSubscriptionCreateEstimateActionType | FetchSubscriptionDetailsActionType | FetchSubscriptionListActionType | FetchSubscriptionPlansActionType | FetchSubscriptionSummaryForTenantActionType | FetchSubscriptionUpdateEstimateActionType | FetchTaskDetailActionType | FetchTaskDetailPageActionType | FetchTaskHistoryActionType | FetchTaskListActionType | FetchTaskListPageActionType | FetchTasksCardActionType | FetchTransactionDetailActionType | FetchTransactionListByAccountActionType | FetchTransactionListByClassActionType | FetchTransactionListByEntityActionType | FetchTransactionsForEntityActionType | FetchTransactionsListByCategoryTypeActionType | FetchTrendForEntityActionType | FetchUserDetailActionType | FetchUserFinancialAccountActionType | FetchUserListByTypeActionType | FetchUserRoleConfigActionType | FetchVendorActionType | FetchVendorAndUpdateBillLocalDataActionType | FetchVendorByNameAndParseInvoiceActionType | FetchVendorDetailsActionType | FetchVendorFirstReviewAttachmentsActionType | FetchVendorFirstReviewViewActionType | FetchVendorGlobalReviewViewActionType | FetchVendorsActionType | FetchVendorsFiling1099ActionType | FetchVendorTabViewActionType | FetchVendorTypeListActionType | FetchZeniAccountListPageActionType | FetchZeniAccountsConfigActionType | FetchZeniAccountSetupViewActionType | FetchZeniAccountsPromoCardActionType | FetchZeniAccStatePageActionType | FetchZeniUsersActionType | GetOnboardingEmailGroupActionType | GetOnboardingPlaidLinkTokenActionType | GetPaymentAccountsActionType | GetPlaidLinkTokenActionType | ImproveUsingZeniGPTActionType | InitializeAccountMappingViewActionType | InitializeBillPaySetupApproverViewUpdateDataActionType | InitializeBillToLocalStoreActionType | InitializeCardUserOnboardingLocalDataActionType | InitializeCompanyHealthMetricViewLocalDataEpicActionType | InitializeEditPersonActionType | InitializeInternationalWireLocalDataActionType | InitializeMyProfileLocalDataActionType | InitializeOnboardingCustomerViewUpdateDataActionType | InitializeRemiSetupApproverViewUpdateDataActionType | InitializeRemiToLocalStoreActionType | InitializeScheduleAccruedDetailLocalDataActionType | InitializeScheduleDetailLocalDataActionType | InitializeSubscriptionLocalDataActionType | InitializeTaskToLocalStoreActionType | InitializeTransactionDetailLocalDataActionType | InitializeVendorAddressActionType | InsightsCardActionType | InvitePeopleActionType | InviteZeniPeopleActionType | IssueChargeCardActionType | MarkAsCompleteScheduleDetailActionType | MarkTransactionAsNotMiscategorizedActionType | NetBurnOrIncomeActionType | NetBurnOrIncomeClassesViewActionType | NetBurnOrIncomeForTimeframeActionType | NetBurnOrIncomeForTimeframeClassesViewActionType | OpExActionType | OpExByVendorReportActionType | OpExByVendorReportForTimeframeActionType | OpExByVendorReportSummaryActionType | OpExClassesViewActionType | OpExForTimeframeClassesViewActionType | OpExForTimeframeViewActionType | ParallelFetchAccountTransactionListActionType | ParallelFetchClassTransactionListActionType | ParallelFetchEntityTransactionListActionType | ParallelFetchTransactionListByCategoryTypeActionType | ParseInvoiceToBillActionType | ParseReceiptsToRemiActionType | PeopleActionType | PeoplePageActionType | PeopleSaveUpdatesActionType | ProfitAndLossActionType | ProfitAndLossClassesViewActionType | ProfitAndLossForTimeframeActionType | ProfitAndLossForTimeframeClassesViewActionType | PushToastNotificationActionType | RecommendationForAccountTypeActionType | RefreshIntegrationsDataActionType | RejectVendorGlobalReviewActionType | ResendCardInviteActionType | ResendInviteActionType | ResendOtpActionType | ResendReferralInviteActionType | ResetTransactionVendorLocalDataActionType | ResetVendorDetailLocalDataActionType | RetryBankAccountConnectionActionType | RetryBankAccountConnectionForOnboardingActionType | RetryOrRefundBillActionType | RevenueActionType | RevenueClassesViewActionType | RevenueForTimeframeClassesViewActionType | RevenueForTimeframeViewActionType | ReviewDraftBillsBulkActionActionTye | RevokeCardInviteActionType | SaveAccountMappingViewActionType | SaveAddressActionType | SaveBillDetailActionType | SaveBillPaySetupApproverViewUpdatesActionType | saveCardOnboardingUserDetailsActionType | SaveCompanyHealthMetricByIdEpicActionType | SaveCompanyMonthEndReportActionType | SaveCompanyPassportDetailsActionType | SaveExternalConnectionActionType | SaveMagicLinkBankAccountActionType | SaveNotificationSettingsEpicActionType | SaveOnboardingCustomerCompletedStatusActionType | SaveOnboardingCustomerNotesActionType | SaveOnboardingCustomerViewUpdatesActionType | SaveRealTimeApprovalActionType | SaveReasonForAuditRuleActionType | SaveRemiDetailActionType | SaveRemiSetupApproverViewUpdatesActionType | SaveScheduleAccruedDetailsActionType | SaveScheduleDetailsActionType | SaveSubscriptionNotesUpdatesActionType | SaveSubscriptionUpdatesActionType | SaveTaskDetailActionType | SaveTranactionVendorActionType | SaveTransactionDetailActionType | SaveVendorActionType | SaveVendorDetailsViewActionType | SaveVendorFirstReviewViewActionType | SendCompanyMonthEndReportActionType | SendOnboardingCustomerViewInviteActionType | SendOtpActionType | SendReferralInviteActionType | SignInActionType | SignOutActionType | StatementCloseDayActionType | SubmitDraftBillsBulkActionActionType | ToggleReportUIOptionForecastModeActionType | TopExActionType | TransferMoneyActionType | UnlinkPaymentAccountActionType | UpdateAccruedJESchedulesActionType | UpdateAddressActionType | UpdateAmountsInScheduleAccruedDetailActionType | UpdateAmountsInScheduleDetailActionType | UpdateBusinessVerificationDetailsActionType | UpdateChargeCardDetailActionType | UpdateCompanyDetailsActionType | UpdateCompanyOfficerActionType | UpdateCompanyPassportLocalStoreDataActionType | UpdateDepositAccountActionType | UpdateDynamicFormActionType | UpdateFileNameActionType | UpdateFilesMetadataActionType | UpdateJESchedulesActionType | UpdateMappedCashAccountActionType | UpdateMileageDetailsActionType | UpdateMyProfileActionType | UpdateNetBurnOrIncomeStoryCardSettingsActionType | UpdateNotificationViewAllNotificationsStatusActionType | UpdateNotificationViewNotificationStatusActionType | UpdateOnboardingCustomerViewActionType | UpdateOnboardingCustomerViewCompleteStatusActionType | UpdateOnboardingCustomerViewLocalStoreDataActionType | UpdateOnboardingPaymentAccountLoginStatusActionType | UpdateOnboardingPaymentAccountStatusActionType | UpdatePaymentAccountActionType | UpdatePaymentAccountLoginStatusActionType | UpdatePaymentAccountStatusActionType | UpdatePrimaryContactActionType | UpdatePrimaryFundingAccountActionType | UpdateReferViewedActionType | UpdateRemiSetupViewLocalStoreDataActionType | UpdateReportUIOptionCOABalancesRangeActionType | UpdateReportUIOptionIsCompareModeActionType | UpdateReportUIOptionIsCompareModeOnActionType | UpdateReportUIOptionThisPeriodActionType | UpdateReportUIOptionTimeFrameActionType | UpdateSectionAccountsViewActionType | UpdateSectionClassesViewV2ActionType | UpdateSelectedVendorForCreateFlowActionType | UpdateSetupViewLocalStoreDataActionType | UpdateTaskFromListViewActionType | UpdateTaskGroupNameActionType | UpdateTransactionDetailActionType | UpdateTransactionOnUploadSuccessActionType | UpdateVendorContactActionType | VendorsTabFetchVendorActionType | VendorsTabFetchVendorDetailPageViewActionType | VendorsTabFetchVendorDetailsActionType | VendorsTabResetVendorDetailLocalDataActionType | VendorsTabSaveVendorActionType | VerifyOtpActionType | VerifyUserActionType | WiseRedirectActionType;
|
|
413
|
+
export declare type RootActionType = AcceptBillPayTermsActionType | AcceptBillPayUpdatedTermsActionType | AcceptChargeCardTermsActionType | AcceptEmployeeRemiTermsActionType | AcceptRemiTermsActionType | AcceptZeniAccountTermsActionType | AddCardPaymentSourceActionType | ApproveOrRejectBillActionType | ApproveOrRejectBillsBulkActionActionType | ApproveOrRejectRemiActionType | ApproveVendorGlobalReviewActionType | ArchiveTaskActionType | BalanceSheetActionType | BalanceSheetForTimeframeActionType | BulkUpdateTasksListActionType | CancelAndDeleteBillActionType | CancelAndDeleteRemiActionType | CancelOrDeleteBillsBulkActionActionType | CancelScheduleAccruedJournalEntryActionType | CardBalanceActionType | CashBalanceActionType | CashFlowActionType | CashFlowForTimeframeActionType | CashInCashOutActionType | CashPositionActionType | ChangeZeniPersonRolesActionType | CheckDepositActionType | ClearAllActionType | CombinedStatementActionType | CompanyManagementSavePendingUpdatesActionType | CompanyManagementSaveUpdatesActionType | ConfirmCardSetupIntentActionType | CreateAddressActionType | CreateBankAccountActionType | CreateCardSetupIntentActionType | CreateCheckingAccountActionType | CreateCompanyAddressActionType | CreateCompanyOfficersActionType | CreateCompanyUserAddressActionType | CreateGlobalMerchantActionType | CreateInternationalBankAccountActionType | CreateNewSchedulesAccruedActionType | CreateNewSchedulesActionType | CreateNewTaskGroupActionType | CreatePaymentInstrumentActionType | CreateTagActionType | CreateUserBankAccountActionType | CurrencyConversionActionType | DeleteBankAccountActionType | DeleteBillActionType | DeleteBillPayApprovalRuleActionType | DeleteFileActionType | DeleteFileListActionType | DeleteInternationalBankAccountActionType | DeletePaymentInstrumentActionType | DeletePersonActionType | DeleteRemiActionType | DeleteRemiApprovalRuleActionType | DeleteScheduleAccruedDetailActionType | DeleteScheduleDetailActionType | DeleteTagActionType | DeleteTaskActionType | DeleteTaskGroupActionType | DeleteUserBankAccountActionType | DepositAccountTransactionListActionType | DragNDropTasksActionType | EnableSetupActionType | EstablishOnboardingPlaidConnectionActionType | EstablishPlaidConnectionActionType | FetchAccountHistoryActionType | FetchAccountListActionType | FetchAccountListForAccountTypesActionType | FetchAccruedScheduleListActionType | FetchActiveTenantActionType | FetchAddressActionType | FetchAllCockpitViewsActionType | FetchAllPeopleRequiredActionType | FetchAllTagsActionType | FetchAllTaskGroupsActionType | FetchAllTenantsActionType | FetchApAgingActionType | FetchApAgingDetailActionType | FetchArAgingActionType | FetchArAgingDetailActionType | FetchAuditReportGroupViewActionType | FetchAuditRuleGroupViewActionType | FetchBankAccountsListActionType | FetchBankConnectionsViewActionType | FetchBankCountryNameByIbanActionType | FetchBankNameByRoutingActionType | FetchBankNameBySwiftActionType | FetchBillAndInitializeLocalStoreActionType | FetchBillDetailActionType | FetchBillingAccountsListActionType | FetchBillListActionType | FetchBillListPerTabActionType | FetchBillPayApproversDetailsActionType | FetchBillPayApproversListActionType | FetchBillPayCardActionType | FetchBillPayConfigActionType | FetchBillPaySetupApproverViewActionType | FetchBillPaySetupViewActionType | FetchCashbackDetailActionType | FetchChargeCardConfigActionType | FetchChargeCardDetailActionType | FetchChargeCardDetailPageActionType | FetchChargeCardListActionType | FetchChargeCardListPageActionType | FetchChargeCardSetupViewActionType | FetchChargeCardTransactionAttachmentsActionType | FetchChargeCardTransactionListActionType | FetchClassListActionType | FetchCollaborationAuthTokenActionType | FetchCompanyConfigActionType | FetchCompanyHealthMetricViewEpicActionType | FetchCompanyManagementActionType | FetchCompanyMetaDataActionType | FetchCompanyMonthEndReportHistoricDataActionType | FetchCompanyMonthEndReportHistoricDatesActionType | FetchCompanyMonthEndReportTemplatesActionType | FetchCompanyMonthEndReportViewActionType | FetchCompanyOnboardingViewActionType | FetchCompanyPassportViewActionType | FetchCompanyPortfolioActionType | FetchCompanyTaskManagerViewActionType | FetchCreditAccountActionType | FetchCurrencyConversionValueActionType | FetchDashboardActionType | FetchDepositAccountActionType | FetchDepositAccountDetailActionType | FetchDepositAccountListActionType | FetchDepositAccStatementListActionType | FetchDownloadSchedulesActionType | FetchDuplicateBillActionType | FetchDuplicateReimbursementEpicActionType | FetchEditBillDetailPageActionType | FetchEditRemiDetailPageActionType | FetchEligibleActionsForBillActionType | FetchEntityAutoCompleteActionType | FetchEntityHistoryActionType | FetchEntityRecommendationsByTransactionIdActionType | FetchExcludedResourcesActionType | FetchExpenseTrendActionType | FetchExternalConnectionsActionType | FetchFileActionType | FetchFileListActionType | FetchForecastListActionType | FetchGlobalMerchantAutoCompleteActionType | FetchGlobalMerchantRecommendationActionType | FetchIncomeTrendActionType | FetchInternationalWireDynamicFormActionType | FetchMagicLinkBankNameByRoutingActionType | FetchMagicLinkBankNameBySwiftActionType | FetchMagicLinkBillActionType | FetchMagicLinkTenantActionType | FetchManagementActionType | FetchMerchantListActionType | FetchMyProfileActionType | FetchMyProfileViewActionType | FetchNetBurnOrIncomeStoryCardActionType | FetchNetBurnOrIncomeWithForecastActionType | FetchNotificationSettingsActionType | FetchNotificationSettingsViewActionType | FetchNotificationUnreadCountActionType | FetchNotificationViewActionType | FetchOnboardingActionType | FetchOnboardingCompletedCompaniesActionType | FetchOnboardingCustomerSetupViewActionType | FetchOnboardingCustomerViewActionType | FetchOpExWithForecastActionType | FetchOwnerListActionType | FetchParentSubsidiaryManagementActionType | FetchPaymentAccountBalanceActionType | FetchPaymentAccountListActionType | FetchPaymentSourcesActionType | FetchPortfolioActionType | FetchPreviousBillsActionType | FetchRecommendationByEntityIdActionType | FetchRecommendationByEntityNameActionType | FetchRecommendationsAndUpdateMerchantRecommendationsActionType | FetchRecommendationsAndUpdateVendorRecommendationsActionType | FetchRecommendedBillExpenseActionType | FetchReferralsActionType | FetchReimbursementCardActionType | FetchReimbursementConfigActionType | FetchRemiAndInitializeLocalStoreActionType | FetchRemiApproversDetailsActionType | FetchRemiApproversListActionType | FetchRemiDetailActionType | FetchRemiListActionType | FetchRemiListPerTabActionType | FetchRemiSetupApproverViewActionType | FetchRemiSetupViewActionType | FetchRevenueWithForecastActionType | FetchReviewCompanyActionType | FetchReviewTransferDetailActionType | FetchRewardsPlanActionType | FetchScheduleAccruedDetailsActionType | FetchScheduleAccruedDetailsPageActionType | FetchScheduleDetailsActionType | FetchScheduleDetailsPageActionType | FetchScheduleListActionType | FetchSchedulesListActionType | FetchSubscriptionActionType | FetchSubscriptionAddOnsActionType | FetchSubscriptionCouponsActionType | FetchSubscriptionCreateEstimateActionType | FetchSubscriptionDetailsActionType | FetchSubscriptionListActionType | FetchSubscriptionPlansActionType | FetchSubscriptionSummaryForTenantActionType | FetchSubscriptionUpdateEstimateActionType | FetchTaskDetailActionType | FetchTaskDetailPageActionType | FetchTaskHistoryActionType | FetchTaskListActionType | FetchTaskListPageActionType | FetchTasksCardActionType | FetchTransactionDetailActionType | FetchTransactionListByAccountActionType | FetchTransactionListByClassActionType | FetchTransactionListByEntityActionType | FetchTransactionsForEntityActionType | FetchTransactionsListByCategoryTypeActionType | FetchTrendForEntityActionType | FetchUserDetailActionType | FetchUserFinancialAccountActionType | FetchUserListByTypeActionType | FetchUserRoleConfigActionType | FetchVendorActionType | FetchVendorAndUpdateBillLocalDataActionType | FetchVendorByNameAndParseInvoiceActionType | FetchVendorDetailsActionType | FetchVendorFirstReviewAttachmentsActionType | FetchVendorFirstReviewViewActionType | FetchVendorGlobalReviewViewActionType | FetchVendorsActionType | FetchVendorsFiling1099ActionType | FetchVendorsFiling1099AllActionType | FetchVendorTabViewActionType | FetchVendorTypeListActionType | FetchZeniAccountListPageActionType | FetchZeniAccountsConfigActionType | FetchZeniAccountSetupViewActionType | FetchZeniAccountsPromoCardActionType | FetchZeniAccStatePageActionType | FetchZeniUsersActionType | GetOnboardingEmailGroupActionType | GetOnboardingPlaidLinkTokenActionType | GetPaymentAccountsActionType | GetPlaidLinkTokenActionType | ImproveUsingZeniGPTActionType | InitializeAccountMappingViewActionType | InitializeBillPaySetupApproverViewUpdateDataActionType | InitializeBillToLocalStoreActionType | InitializeCardUserOnboardingLocalDataActionType | InitializeCompanyHealthMetricViewLocalDataEpicActionType | InitializeEditPersonActionType | InitializeInternationalWireLocalDataActionType | InitializeMyProfileLocalDataActionType | InitializeOnboardingCustomerViewUpdateDataActionType | InitializeRemiSetupApproverViewUpdateDataActionType | InitializeRemiToLocalStoreActionType | InitializeScheduleAccruedDetailLocalDataActionType | InitializeScheduleDetailLocalDataActionType | InitializeSubscriptionLocalDataActionType | InitializeTaskToLocalStoreActionType | InitializeTransactionDetailLocalDataActionType | InitializeVendorAddressActionType | InsightsCardActionType | InvitePeopleActionType | InviteZeniPeopleActionType | IssueChargeCardActionType | MarkAsCompleteScheduleDetailActionType | MarkTransactionAsNotMiscategorizedActionType | NetBurnOrIncomeActionType | NetBurnOrIncomeClassesViewActionType | NetBurnOrIncomeForTimeframeActionType | NetBurnOrIncomeForTimeframeClassesViewActionType | OpExActionType | OpExByVendorReportActionType | OpExByVendorReportForTimeframeActionType | OpExByVendorReportSummaryActionType | OpExClassesViewActionType | OpExForTimeframeClassesViewActionType | OpExForTimeframeViewActionType | ParallelFetchAccountTransactionListActionType | ParallelFetchClassTransactionListActionType | ParallelFetchEntityTransactionListActionType | ParallelFetchTransactionListByCategoryTypeActionType | ParseInvoiceToBillActionType | ParseReceiptsToRemiActionType | PeopleActionType | PeoplePageActionType | PeopleSaveUpdatesActionType | ProfitAndLossActionType | ProfitAndLossClassesViewActionType | ProfitAndLossForTimeframeActionType | ProfitAndLossForTimeframeClassesViewActionType | PushToastNotificationActionType | RecommendationForAccountTypeActionType | RefreshIntegrationsDataActionType | RejectVendorGlobalReviewActionType | ResendCardInviteActionType | ResendInviteActionType | ResendOtpActionType | ResendReferralInviteActionType | ResetTransactionVendorLocalDataActionType | ResetVendorDetailLocalDataActionType | RetryBankAccountConnectionActionType | RetryBankAccountConnectionForOnboardingActionType | RetryOrRefundBillActionType | RevenueActionType | RevenueClassesViewActionType | RevenueForTimeframeClassesViewActionType | RevenueForTimeframeViewActionType | ReviewDraftBillsBulkActionActionTye | RevokeCardInviteActionType | SaveAccountMappingViewActionType | SaveAddressActionType | SaveBillDetailActionType | SaveBillPaySetupApproverViewUpdatesActionType | saveCardOnboardingUserDetailsActionType | SaveCompanyHealthMetricByIdEpicActionType | SaveCompanyMonthEndReportActionType | SaveCompanyPassportDetailsActionType | SaveExternalConnectionActionType | SaveMagicLinkBankAccountActionType | SaveNotificationSettingsEpicActionType | SaveOnboardingCustomerCompletedStatusActionType | SaveOnboardingCustomerNotesActionType | SaveOnboardingCustomerViewUpdatesActionType | SaveRealTimeApprovalActionType | SaveReasonForAuditRuleActionType | SaveRemiDetailActionType | SaveRemiSetupApproverViewUpdatesActionType | SaveScheduleAccruedDetailsActionType | SaveScheduleDetailsActionType | SaveSubscriptionNotesUpdatesActionType | SaveSubscriptionUpdatesActionType | SaveTaskDetailActionType | SaveTranactionVendorActionType | SaveTransactionDetailActionType | SaveVendorActionType | SaveVendorDetailsViewActionType | SaveVendorFirstReviewViewActionType | SendCompanyMonthEndReportActionType | SendOnboardingCustomerViewInviteActionType | SendOtpActionType | SendReferralInviteActionType | SignInActionType | SignOutActionType | StatementCloseDayActionType | SubmitDraftBillsBulkActionActionType | ToggleReportUIOptionForecastModeActionType | TopExActionType | TransferMoneyActionType | UnlinkPaymentAccountActionType | UpdateAccruedJESchedulesActionType | UpdateAddressActionType | UpdateAmountsInScheduleAccruedDetailActionType | UpdateAmountsInScheduleDetailActionType | UpdateBusinessVerificationDetailsActionType | UpdateChargeCardDetailActionType | UpdateCompanyDetailsActionType | UpdateCompanyOfficerActionType | UpdateCompanyPassportLocalStoreDataActionType | UpdateDepositAccountActionType | UpdateDynamicFormActionType | UpdateFileNameActionType | UpdateFilesMetadataActionType | UpdateJESchedulesActionType | UpdateMappedCashAccountActionType | UpdateMileageDetailsActionType | UpdateMyProfileActionType | UpdateNetBurnOrIncomeStoryCardSettingsActionType | UpdateNotificationViewAllNotificationsStatusActionType | UpdateNotificationViewNotificationStatusActionType | UpdateOnboardingCustomerViewActionType | UpdateOnboardingCustomerViewCompleteStatusActionType | UpdateOnboardingCustomerViewLocalStoreDataActionType | UpdateOnboardingPaymentAccountLoginStatusActionType | UpdateOnboardingPaymentAccountStatusActionType | UpdatePaymentAccountActionType | UpdatePaymentAccountLoginStatusActionType | UpdatePaymentAccountStatusActionType | UpdatePrimaryContactActionType | UpdatePrimaryFundingAccountActionType | UpdateReferViewedActionType | UpdateRemiSetupViewLocalStoreDataActionType | UpdateReportUIOptionCOABalancesRangeActionType | UpdateReportUIOptionIsCompareModeActionType | UpdateReportUIOptionIsCompareModeOnActionType | UpdateReportUIOptionThisPeriodActionType | UpdateReportUIOptionTimeFrameActionType | UpdateSectionAccountsViewActionType | UpdateSectionClassesViewV2ActionType | UpdateSelectedVendorForCreateFlowActionType | UpdateSetupViewLocalStoreDataActionType | UpdateTaskFromListViewActionType | UpdateTaskGroupNameActionType | UpdateTransactionDetailActionType | UpdateTransactionOnUploadSuccessActionType | UpdateVendorContactActionType | VendorFiling1099UploadDetailsSaveActionType | VendorsTabFetchVendorActionType | VendorsTabFetchVendorDetailPageViewActionType | VendorsTabFetchVendorDetailsActionType | VendorsTabResetVendorDetailLocalDataActionType | VendorsTabSaveVendorActionType | VerifyOtpActionType | VerifyUserActionType | WiseRedirectActionType;
|
|
411
414
|
declare const rootEpic: Epic<RootActionType>;
|
|
412
415
|
export default rootEpic;
|