@zeniai/client-epic-state 4.16.21 → 4.16.22

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/index.d.ts CHANGED
@@ -391,7 +391,7 @@ import { approveOrRejectBillsBulkAction, autoReviewPendingApprovalBills, cancelO
391
391
  import { BillsBulkReviewView, getBillsBulkOperationProgress, getBillsBulkReviewView, isBillConditionallyValid } from './view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewSelector';
392
392
  import { BulkOperationProgress } from './view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewState';
393
393
  import { InvoiceProcessingPayload, InvoiceProcessingResponse } from './view/spendManagement/billPay/editBillView/editBillViewPayload';
394
- import { convertAmountToHomeCurrency, discardBillUpdatesInLocalStore, discardOutsideZeniPaymentLocalData, fetchBillAndInitializeLocalStore, fetchEditBillDetailPage, fetchVendorAndUpdateBillLocalData, fetchVendorByNameAndParseInvoice, markBillForRetry, saveBillDetail, saveBillUpdatesToLocalStore, updateBillUploadFetchState, updateOutsideZeniPaymentLocalData, updateShowAutofill, updateVendorContact, updateWithdrawFromAccountId } from './view/spendManagement/billPay/editBillView/editBillViewReducer';
394
+ import { convertAmountToHomeCurrency, discardBillUpdatesInLocalStore, discardOutsideZeniPaymentLocalData, fetchBillAndInitializeLocalStore, fetchEditBillDetailPage, fetchVendorAndUpdateBillLocalData, fetchVendorByNameAndParseInvoice, markBillForRetry, removeBillFileFromLocalStore, replaceBillFileInLocalStore, saveBillDetail, saveBillUpdatesToLocalStore, updateBillUploadFetchState, updateOutsideZeniPaymentLocalData, updateShouldReplaceBillData, updateShowAutofill, updateVendorContact, updateWithdrawFromAccountId } from './view/spendManagement/billPay/editBillView/editBillViewReducer';
395
395
  import { EditBillDetailSelectorView, EditBillInitialDetails, LineItemRecommendationsLocalData, PaymentDetailsSectionView, PaymentToOption, checkIfCreatorIsApprover, getEditBillDetail, toPaymentToOption } from './view/spendManagement/billPay/editBillView/editBillViewSelector';
396
396
  import { BillDetailLocalData, EditBillDetail, EditBillDetailViewState, EditRecurringBillType, OutsideZeniPaymentLocalData, PaymentDetailsSection, RecurringBillConfigLocalData, RecurringBillInstance, WhatForSection } from './view/spendManagement/billPay/editBillView/editBillViewState';
397
397
  import { CreateInternationalWireDetailsLocalData, DynamicFormField, SupportedAccountType } from './view/spendManagement/billPay/internationalWire/internationalWire';
@@ -719,7 +719,7 @@ export { W9FormProcessingPayload, W9Form, updateW9FormUploadFetchState, updateW9
719
719
  export { BillTransaction, BillPayInfo, BillStage, BillStageCodeType, BillTransactionView, InternationalTransferFeeBearerPaymentMethod, DeletionSourceType, BillBulkSelectExceptionInfoType, toOutsideZeniPaymentModeType, checkShowMarkAsPaidButton, };
720
720
  export { MilageReimbursementLine, OutofPocketReimbursementLine, ReimbursementLine, ReimbursementTypeCode, Reimbursement, RemiTabType, toRemiSubTabType, toRemiSubTabTypeStrict, toRemiTabType, toRemiTabTypeStrict, toReimbursementTypeCode, RemiSubTabType, ReimbursementViewSortKey, RemiListUIState, RemiListReport, RemiListDownloadReport, ReimbursementView, ReimbursementFilters, ReimbursementFilterCategory, RemiListViewFilterCategoryField, getRemiList, getRemiDownloadList, fetchRemiList, fetchRemiListPerTab, updateRemiListTab, updateRemiListSubTab, updateRemiDetailSaveRemiCode, updateRemiListUIState, updateRemiListSearchResult, updateBillListFilterResult, updateRemiListFilterResult, REIMBURSEMENT_FILTER_CATEGORIES, REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED, updateRemiListDownloadUIState, updateBillListDownloadUIState, updateBillsBulkActionList, removeBillFromBulkActionList, clearAllBillsFromBulkActionList, getBillsBulkReviewView, BillsBulkReviewView, validateBillsBulkAction, approveOrRejectBillsBulkAction, cancelOrDeleteBillsBulkAction, submitDraftBillsBulkAction, autoReviewPendingApprovalBills, incrementBulkActionProcessedCount, getBillsBulkOperationProgress, BulkOperationProgress, clearBillPayBulkActionView, isBillConditionallyValid, getRemisBulkReviewView, RemisBulkReviewView, getRemisBulkOperationProgress, updateRemisBulkActionList, removeRemiFromBulkActionList, clearAllRemisFromBulkActionList, reviewDraftRemisBulkAction, approveOrRejectRemisBulkAction, cancelOrDeleteRemisBulkAction, submitDraftRemisBulkAction, autoReviewPendingApprovalRemis, clearRemiBulkActionView, incrementRemiBulkActionProcessedCount, RemiBulkSelectExceptionInfoType, OutsideZeniPaymentLocalData, updateOutsideZeniPaymentLocalData, discardOutsideZeniPaymentLocalData, checkIfCreatorIsApprover, };
721
721
  export { AccountListSelectorView, ClassListSelectorView, getClassList };
722
- export { BillTab, BillsSubTabType, SaveBillStageCode, BillPayReviewSelectorView, DuplicateBillsSelectorView, EditBillDetailSelectorView, LineItemRecommendationsLocalData, EditBillInitialDetails, BillableStatus, PaymentDetailsSection, BillListReport, BillListDownloadReport, WhatForSection, fetchBillList, fetchBillListPerTab, updateTab, updateSubTab, updateSelectedBillId, updateBillDetailSaveBillCode, fetchVendorByNameAndParseInvoice, saveBillUpdatesToLocalStore, discardBillUpdatesInLocalStore, saveBillDetail, approveOrRejectBill, updateApprovalStatusOnSuccess, deleteBill, cancelAndDeleteBill, retryOrRefundBill, getBillList, getBillDownloadList, BillDetailViewSelector, ActorActivityWithUser, BillActivity, StepWithStatus, getBillDetailView, checkApproveRejectBtnShowForBill, BillDetailView, getBillTransactionDetailKey, fetchBillDetail, fetchEditBillDetailPage, fetchAndUpdateVendorRecommendations, fetchDuplicateBill, clearBillPayReview, EditBillDetail, EditBillDetailViewState, getEditBillDetail, getReviewPageBillDetail, BillDetailLocalData, PaymentDetailsSectionView, fetchBillAndInitializeLocalStore, updateShowAutofill, saveVendorSuccessOrFailure, BillPaymentStatus, BillPaymentStatusCodeType, BillPaymentRefundStatus, BillPaymentRefundStatusCodeType, BillStatus, BillStatusCodeType, BillApprovalType, updateBillListUIState, BillListUIState, BillPayViewSortKey, BillPayFilters, BillPayFilterCategory, BillListViewFilterCategoryField, BILL_PAY_FILTER_CATEGORIES, updateVendorDetailLocalData, resetVendorDetailLocalData, resetVendorSaveStatus, updateContactsInVendorDetailLocalData, updateVendorTabDetailUIState, updateContactsInVendorTabDetailLocalData, updateBillUploadFetchState, updateBillListSearchResult, fetchUserDetails, verifyUser, updateVendorContact, PaymentToOption, toPaymentToOption, convertAmountToHomeCurrency, RecurringBillInstance, RecurringBillConfigLocalData, EditRecurringBillType, fetchVendorAndUpdateBillLocalData, markBillForRetry, updateWithdrawFromAccountId, };
722
+ export { BillTab, BillsSubTabType, SaveBillStageCode, BillPayReviewSelectorView, DuplicateBillsSelectorView, EditBillDetailSelectorView, LineItemRecommendationsLocalData, EditBillInitialDetails, BillableStatus, PaymentDetailsSection, BillListReport, BillListDownloadReport, WhatForSection, fetchBillList, fetchBillListPerTab, updateTab, updateSubTab, updateSelectedBillId, updateBillDetailSaveBillCode, fetchVendorByNameAndParseInvoice, saveBillUpdatesToLocalStore, discardBillUpdatesInLocalStore, saveBillDetail, approveOrRejectBill, updateApprovalStatusOnSuccess, deleteBill, cancelAndDeleteBill, retryOrRefundBill, getBillList, getBillDownloadList, BillDetailViewSelector, ActorActivityWithUser, BillActivity, StepWithStatus, getBillDetailView, checkApproveRejectBtnShowForBill, BillDetailView, getBillTransactionDetailKey, fetchBillDetail, fetchEditBillDetailPage, fetchAndUpdateVendorRecommendations, fetchDuplicateBill, clearBillPayReview, EditBillDetail, EditBillDetailViewState, getEditBillDetail, getReviewPageBillDetail, BillDetailLocalData, PaymentDetailsSectionView, fetchBillAndInitializeLocalStore, updateShowAutofill, saveVendorSuccessOrFailure, BillPaymentStatus, BillPaymentStatusCodeType, BillPaymentRefundStatus, BillPaymentRefundStatusCodeType, BillStatus, BillStatusCodeType, BillApprovalType, updateBillListUIState, BillListUIState, BillPayViewSortKey, BillPayFilters, BillPayFilterCategory, BillListViewFilterCategoryField, BILL_PAY_FILTER_CATEGORIES, updateVendorDetailLocalData, resetVendorDetailLocalData, resetVendorSaveStatus, updateContactsInVendorDetailLocalData, updateVendorTabDetailUIState, updateContactsInVendorTabDetailLocalData, updateBillUploadFetchState, updateBillListSearchResult, fetchUserDetails, verifyUser, updateVendorContact, PaymentToOption, toPaymentToOption, convertAmountToHomeCurrency, RecurringBillInstance, RecurringBillConfigLocalData, EditRecurringBillType, fetchVendorAndUpdateBillLocalData, markBillForRetry, updateWithdrawFromAccountId, removeBillFileFromLocalStore, replaceBillFileInLocalStore, updateShouldReplaceBillData, };
723
723
  export { SpendManagementFiltersType, SpendManagementFilterEntityType, FilterCategoryType, BillPayFilterCategoryDropdownOption, ReimbursementFilterCategoryDropdownOption, TaskFilterCategoryDropdownOption, SpendManagementFilterCategoryDropdownOption, MatchingOperatorDropdownOption, CategoryCombinationOperator, hideCreatedByFilter, };
724
724
  export { BillPaySetupViewState, ZeniAccountSetupViewState, BillPaySetupViewLocalData, ZeniAccountSetupViewLocalData, PlaidAccountState, fetchBillPaySetupView, fetchZeniAccountSetupView, enableSetup, getPaymentAccounts, getPlaidLinkToken, updateSelectedCompanyOfficer, updateSetupViewLocalStoreData, updateBusinessVerificationDetails, updatePaymentAccount, updatePaymentAccountLoginStatus, updatePaymentAccountStatus, establishPlaidConnection, updateMappedCashAccount, updatePrimaryFundingAccount, acceptBillPayTerms, acceptZeniAccountTerms, acceptBillPayUpdatedTerms, saveSetupViewDataInLocalStore, saveCompnayOfficerPhoneInLocalStore, saveCompnayOfficerAdditionalDocumentsInLocalStore, saveIndustryAndIncDateInLocalStore, clearSetupViewDataInLocalStore, clearBillPaySetupView, clearZeniAccountSetupView, sendOtp, resendOtp, verifyOtp, CompanyDetails, CompanyOfficersDetails, BillPaySetupView, ZeniAccountSetupView, BillPayBusinessVerificationDetails, ZeniAccountBusinessVerificationDetails, SetupViewState, SetupViewLocalData, SetupView, BusinessVerificationDetails, getBillPaySetupViewDetails, getPlaidAccountDetails, getZeniAccountSetupViewDetails, getBusinessVerificationDetails, getBillPayBusinessVerificationDetails, getZeniAccountBusinessVerificationDetails, getCommonSetupViewDetails, PlaidConnectionDetails, PlaidLinkTokenType, PlaidAccountKeyType, Token, FundingAccount, getTwoFactorAuthenticationView, getTwoFactorAuthenticationViewForCardUserOnboarding, getTwoFactorAuthenticationViewForChargeCardHolder, TwoFactorAuthenticationView, };
725
725
  export { BankConnectionsSetupView, IntegrationsView, getApprovalRuleViewDetails, getBankConnectionsSetupViewDetails, getIntegrationsView, };
package/lib/index.js CHANGED
@@ -52,18 +52,18 @@ exports.uploadFile = exports.getFileDeleteStatusById = exports.getFileUpdateName
52
52
  exports.updateW9FormUploadFetchState = exports.deleteUserBankAccount = exports.createUserBankAccount = exports.resetCreateBankAccountDetails = exports.createInternationalBankAccount = exports.createBankAccount = exports.deleteBankAccount = exports.fetchBankCountryNameByIban = exports.fetchBankNameBySwift = exports.fetchBankNameByRouting = exports.fetchVendorDetailPageView = exports.fetchVendorDetails = exports.updateStatusForCreateBankAccountFlow = exports.clearBankAccountView = exports.updateInternationalBankAccountViewLocalStoreData = exports.updateBankAccountViewLocalStoreData = exports.initializeVendorAddress = exports.updateSelectedVendorForCreateFlow = exports.removeBankAccountsInVendorView = exports.saveVendor = exports.fetchVendor = exports.updateFiling1099SearchUIState = exports.updateFiling1099SortUIState = exports.updateFiling1099ScrollYOffset = exports.fetchVendorsFiling1099List = exports.fetchVendorsFiling1099All = exports.updateScrollYOffset = exports.fetchVendorsList = exports.vendorsTabResetVendorDetailLocalData = exports.vendorsTabUpdateVendorDetailLocalData = exports.vendorsTabSaveVendorSuccessOrFailure = exports.vendorsTabSaveVendor = exports.getVendorsTabDetailPageView = exports.toVendorDetailTabsType = exports.getVendorAllTransactionsDefaultTimePeriod = exports.resetVendorsTabVendorAllTransactionsTabData = exports.resetSelectedTabType = exports.updateVendorsTabVendorAllTransactionsTabData = exports.updateVendorSpendTrendFilterTabValue = exports.updateSelectedTabType = exports.fetchVendorsTabVendorDetailPageView = exports.getVendorDetailPageView = exports.getVendorView = exports.getAnalyticsDataOnVendorSave = exports.fetchTasksCard = exports.downloadFile = exports.getAttachmentFileIdByFileName = exports.mapAttachmentFileToAttachmentFilePayload = exports.mapAttachmentFilePayloadToFile = exports.mapFilePayloadToFile = void 0;
53
53
  exports.approveOrRejectRemisBulkAction = exports.reviewDraftRemisBulkAction = exports.clearAllRemisFromBulkActionList = exports.removeRemiFromBulkActionList = exports.updateRemisBulkActionList = exports.getRemisBulkOperationProgress = exports.getRemisBulkReviewView = exports.isBillConditionallyValid = exports.clearBillPayBulkActionView = exports.getBillsBulkOperationProgress = exports.incrementBulkActionProcessedCount = exports.autoReviewPendingApprovalBills = exports.submitDraftBillsBulkAction = exports.cancelOrDeleteBillsBulkAction = exports.approveOrRejectBillsBulkAction = exports.validateBillsBulkAction = exports.getBillsBulkReviewView = exports.clearAllBillsFromBulkActionList = exports.removeBillFromBulkActionList = exports.updateBillsBulkActionList = exports.updateBillListDownloadUIState = exports.updateRemiListDownloadUIState = exports.REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED = exports.REIMBURSEMENT_FILTER_CATEGORIES = exports.updateRemiListFilterResult = exports.updateBillListFilterResult = exports.updateRemiListSearchResult = exports.updateRemiListUIState = exports.updateRemiDetailSaveRemiCode = exports.updateRemiListSubTab = exports.updateRemiListTab = exports.fetchRemiListPerTab = exports.fetchRemiList = exports.getRemiDownloadList = exports.getRemiList = exports.toReimbursementTypeCode = exports.toRemiTabTypeStrict = exports.toRemiTabType = exports.toRemiSubTabTypeStrict = exports.toRemiSubTabType = exports.checkShowMarkAsPaidButton = exports.toOutsideZeniPaymentModeType = exports.updateW9FormOCRDataToLocalData = exports.updateVendor1099DetailsLocalData = exports.initializeVendorFiling1099UploadDetailsLocalState = exports.vendorFiling1099UploadDetailsResetLocalData = exports.vendorFiling1099UploadDetailsResetFormStatus = exports.vendorFiling1099UploadDetailsSave = exports.getVendorUploadDetailsByVendorId = exports.updateW9FormUploadFile = void 0;
54
54
  exports.fetchUserDetails = exports.updateBillListSearchResult = exports.updateBillUploadFetchState = exports.updateContactsInVendorTabDetailLocalData = exports.updateVendorTabDetailUIState = exports.updateContactsInVendorDetailLocalData = exports.resetVendorSaveStatus = exports.resetVendorDetailLocalData = exports.updateVendorDetailLocalData = exports.BILL_PAY_FILTER_CATEGORIES = exports.updateBillListUIState = exports.saveVendorSuccessOrFailure = exports.updateShowAutofill = exports.fetchBillAndInitializeLocalStore = exports.getReviewPageBillDetail = exports.getEditBillDetail = exports.clearBillPayReview = exports.fetchDuplicateBill = exports.fetchAndUpdateVendorRecommendations = exports.fetchEditBillDetailPage = exports.fetchBillDetail = exports.getBillTransactionDetailKey = exports.checkApproveRejectBtnShowForBill = exports.getBillDetailView = exports.getBillDownloadList = exports.getBillList = exports.retryOrRefundBill = exports.cancelAndDeleteBill = exports.deleteBill = exports.updateApprovalStatusOnSuccess = exports.approveOrRejectBill = exports.saveBillDetail = exports.discardBillUpdatesInLocalStore = exports.saveBillUpdatesToLocalStore = exports.fetchVendorByNameAndParseInvoice = exports.updateBillDetailSaveBillCode = exports.updateSelectedBillId = exports.updateSubTab = exports.updateTab = exports.fetchBillListPerTab = exports.fetchBillList = exports.getClassList = exports.checkIfCreatorIsApprover = exports.discardOutsideZeniPaymentLocalData = exports.updateOutsideZeniPaymentLocalData = exports.incrementRemiBulkActionProcessedCount = exports.clearRemiBulkActionView = exports.autoReviewPendingApprovalRemis = exports.submitDraftRemisBulkAction = exports.cancelOrDeleteRemisBulkAction = void 0;
55
- exports.getUserFinancialAccount = exports.fetchUserFinancialAccount = exports.getIntegrationsView = exports.getBankConnectionsSetupViewDetails = exports.getApprovalRuleViewDetails = exports.getTwoFactorAuthenticationViewForChargeCardHolder = exports.getTwoFactorAuthenticationViewForCardUserOnboarding = exports.getTwoFactorAuthenticationView = exports.getCommonSetupViewDetails = exports.getZeniAccountBusinessVerificationDetails = exports.getBillPayBusinessVerificationDetails = exports.getBusinessVerificationDetails = exports.getZeniAccountSetupViewDetails = exports.getPlaidAccountDetails = exports.getBillPaySetupViewDetails = exports.verifyOtp = exports.resendOtp = exports.sendOtp = exports.clearZeniAccountSetupView = exports.clearBillPaySetupView = exports.clearSetupViewDataInLocalStore = exports.saveIndustryAndIncDateInLocalStore = exports.saveCompnayOfficerAdditionalDocumentsInLocalStore = exports.saveCompnayOfficerPhoneInLocalStore = exports.saveSetupViewDataInLocalStore = exports.acceptBillPayUpdatedTerms = exports.acceptZeniAccountTerms = exports.acceptBillPayTerms = exports.updatePrimaryFundingAccount = exports.updateMappedCashAccount = exports.establishPlaidConnection = exports.updatePaymentAccountStatus = exports.updatePaymentAccountLoginStatus = exports.updatePaymentAccount = exports.updateBusinessVerificationDetails = exports.updateSetupViewLocalStoreData = exports.updateSelectedCompanyOfficer = exports.getPlaidLinkToken = exports.getPaymentAccounts = exports.enableSetup = exports.fetchZeniAccountSetupView = exports.fetchBillPaySetupView = exports.hideCreatedByFilter = exports.updateWithdrawFromAccountId = exports.markBillForRetry = exports.fetchVendorAndUpdateBillLocalData = exports.convertAmountToHomeCurrency = exports.toPaymentToOption = exports.updateVendorContact = exports.verifyUser = void 0;
56
- exports.fetchEditRemiDetailPage = exports.getEditRemiDetail = exports.removeDuplicateReimbursementByLineId = exports.clearDuplicateReimbursementDetail = exports.fetchDuplicateReimbursement = exports.clearRemiDetailView = exports.approveOrRejectRemi = exports.cancelAndDeleteRemi = exports.fetchRemiDetail = exports.deleteRemi = exports.updateIsEditModeRealTimeApprovals = exports.saveRealTimeApproval = exports.checkApproveRejectBtnShowForRemi = exports.getRemiDetailView = exports.clearRemiSetupApproverView = exports.clearRemiSetupApproverViewUpdateData = exports.initializeRemiSetupApproverViewUpdateData = exports.saveRemiSetupApproverViewUpdates = exports.saveRemiSetupApproverViewUpdateData = exports.deleteRemiApprovalRule = exports.fetchRemiApproversDetails = exports.fetchRemiApproversList = exports.fetchRemiSetupApproverView = exports.getRemiSetupApproverUpdateDataView = exports.getRemiSetupApproverView = exports.clearBillPaySetupApproverView = exports.clearBillPaySetupApproverViewUpdateData = exports.initializeBillPaySetupApproverViewUpdateData = exports.saveBillPaySetupApproverViewUpdates = exports.saveBillPaySetupApproverViewUpdateData = exports.deleteBillPayApprovalRule = exports.fetchBillPayApproversList = exports.fetchBillPayApproversDetails = exports.fetchBillPaySetupApproverView = exports.getBillPaySetupApproverUpdateDataView = exports.getBillPaySetupApproverView = exports.toRoleTypeStrict = exports.toAttributeOrRoleTypeStrict = exports.toAttributeTypeStrict = exports.isAccessDeniedError = exports.isInvalidSessionError = exports.isSuccessResponse = exports.getRemiBusinessVerificationDetails = exports.getRemiSetupViewDetails = exports.clearRemiSetupView = exports.acceptEmployeeRemiTerms = exports.acceptRemiTerms = exports.saveRemiSetupViewDataInLocalStore = exports.updateMileageDetails = exports.fetchRemiSetupView = void 0;
57
- exports.updateStatusAfterOnboardingCompleted = exports.updateCustomerCreationStatus = exports.updateOnboardingCustomerListUIState = exports.saveOnboardingCustomerViewUpdateData = exports.clearOnboardingCustomerViewUpdateData = exports.initializeOnboardingCustomerViewUpdateData = exports.getOnboardingEmailGroup = exports.getNewOnboardingCustomerView = exports.getOnboardingCockpitView = exports.toProductTypeStrict = exports.toProductType = exports.saveOnboardingCustomerCompletedStatus = exports.fetchOnboardingCompletedCompanies = exports.updateQBOConnectionPoolExternalConnection = exports.fetchQBOConnectionPool = exports.fetchCompanyOnboardingView = exports.PAYMENT_BUSINESS_DAYS = exports.holidaysFormatted = exports.isHoliday = exports.getYearsList = exports.filterDays = exports.isHolidayToday = exports.getPreviousNthWorkingDay = exports.getNextNthWorkingDay = exports.toFileTypeStrict = exports.ALL_FILE_TYPES = exports.isAllFetchCompleted = exports.isAnyFetchInProgress = exports.reduceAnyCompletedFetchState = exports.reduceAllFetchState = exports.reduceAnyFetchState = exports.reduceFetchState = exports.clearAddRemiAutoFields = exports.updateHomeCurrencyConversion = exports.updateReimbursementType = exports.clearTentativeMerchantName = exports.updateTentativeMerchantNames = exports.updateUploadFetchState = exports.updateAddRemiAutoFields = exports.clearEditRemiViewDetail = exports.parseReceiptsToRemi = exports.saveRemiSuccessOrFailure = exports.saveRemiDetail = exports.removeFileFromRemiUpdatesInLocalStore = exports.discardRemiUpdatesInLocalStore = exports.fetchCurrencyConversionValue = exports.saveRemiUpdatesToLocalStore = exports.initializeRemiToLocalStore = exports.fetchRemiAndInitializeLocalStore = exports.fetchRecommendationsAndUpdateMerchantRecommendations = void 0;
58
- exports.fetchZeniAccountList = exports.getZeniAccountList = exports.getZeniAccountsConfigDetail = exports.fetchOwnerList = exports.fetchRecommendationByEntityName = exports.fetchRecommendationByEntityId = exports.fetchEntityRecommendationsByTransactionId = exports.fetchVendorsFiling1099Download = exports.getVendorFiling1099List = exports.toVendorReportIDType = exports.isVendorsTabVisible = exports.isColumnYTDSpend = exports.updateYTDSelectionUIState = exports.updatePageToken = exports.updateSortUiState = exports.getVendorList = exports.LOCAL_CURRENCY_INTERNATIONAL_METHOD_SUBTEXT = exports.SWIFT_OUR_INTERNATIONAL_METHOD_SUBTEXT = exports.NEW_INTERNATIONAL_METHOD_SUBTEXT = exports.BILL_NEW_PAYMENT_METHODS = exports.getInternationalSubConfigCodeKey = exports.shouldEnableCalendarPickerForLastReportSent = exports.canSendMonthEndEmailReport = exports.checkIfLowBalance = exports.isAwaitingMarkAsPaid = exports.isPaymentMethodOutsideZeni = exports.toAccountsPromoConfig = exports.getBulkOperationSuffix = exports.getRemiListUniqueType = exports.getBillListUniqueType = exports.isBulkProcessing = exports.isVerifiedStatusCode = exports.getActualPaymentDate = exports.showReimbursementPromoPage = exports.showBillPayPromoPage = exports.getSelectedCompanyOfficer = exports.getSpendManagementEffectiveListPeriod = exports.getSnackbar = exports.closeSnackbar = exports.openSnackbar = exports.getChangedLineItemCountFromLocalData = exports.getTransactionListUIStateByCategoryType = exports.getTransactionsListByCategoryType = exports.retryBankAccountConnectionForOnboarding = exports.sendOnboardingCustomerViewInvite = exports.resetNewOnboardedCustomerId = exports.updateOnboardingCustomerDataInLocalStore = exports.saveOnboardingCustomerDataInLocalStore = exports.saveOnboardingCustomerNotes = exports.saveOnboardingCustomerViewUpdates = void 0;
59
- exports.updateCurrentStep = exports.updateOnboardingCustomerViewLocalStoreData = exports.updateOnboardingCustomerView = exports.updateOnboardingPaymentAccountStatus = exports.updateOnboardingPaymentAccountLoginStatus = exports.updateOnboardingCustomerViewCompleteStatus = exports.updateOnboardingCustomerViewAccountDetails = exports.establishOnboardingPlaidConnection = exports.getOnboardingPlaidLinkToken = exports.fetchOnboardingCustomerSetupView = exports.fetchOnboardingCustomerView = exports.isZeniClearingAccount = exports.ZENI_CLEARING_ACCOUNT = exports.isZeniClearingAccountReport = exports.getCompanyConfig = exports.fetchCompanyConfig = exports.clearTransactionVendorSaveStatus = exports.resetTransactionVendorLocalData = exports.updateTransactionVendorLocalData = exports.saveTransactionVendorSuccessOrFailure = exports.saveTransactionVendor = exports.getTransactionVendorView = exports.getDepositAccountTransactionList = exports.fetchDepositAccountTransactionList = exports.getZeniAccStatements = exports.fetchZeniAccStatementPage = exports.fetchDepositAccountHistoryFailure = exports.fetchDepositAccountHistorySuccess = exports.updateDepositAccount = exports.getCheckDepositDetail = exports.clearCheckDeposit = exports.updateCheckDepositLocalData = exports.depositCheck = exports.fetchDepositAccountDetail = exports.fetchReviewTransferDetail = exports.clearReviewTransferDetail = exports.clearTransferDetail = exports.getTransferDetail = exports.transferMoney = exports.updateDepositToLocalData = exports.updateTransferToLocalData = exports.updateTransferMoneyLocalData = exports.fetchZeniAccountsConfig = exports.fetchDepositAccount = exports.getDepositAccountDetailForPDF = exports.getAllDepositAccounts = exports.getDepositAccountDetail = exports.unlinkPaymentAccount = exports.fetchPaymentAccountList = exports.createCheckingAccount = void 0;
60
- exports.isCompanyRunwayInfinite = exports.updateChargeCardTransactionAttachments = exports.updateCompanyHealthViewUIState = exports.updateCompanyHealthMetricViewSuccessStatus = exports.updateCompanyHealthMetricViewErrorStatus = exports.updateCompanyHealthMetricLocalStore = exports.saveCompanyHealthMetricById = exports.removeSelectedCompanyId = exports.initializeCompanyHealthMetricViewLocalData = exports.fetchCompanyHealthMetricView = exports.clearCompanyHealthMetricView = exports.updateCompanyHealth = exports.updateCompaniesHealth = exports.fetchCompanyHealthMetricConfig = exports.getCompanyHealthMetricConfig = exports.getUserRoleConfig = exports.fetchUserRoleConfig = exports.clearInternationalWire = exports.deletePaymentInstrument = exports.createPaymentInstrumentUpdateStatus = exports.createPaymentInstrument = exports.fetchInternationalWireDynamicForm = exports.initializeDynamicForm = exports.updateInternationalWireLocalStoreData = exports.initializeInternationalWireLocalData = exports.getInternationalWireView = exports.fetchWiseRedirectStatus = exports.getWiseRedirect = exports.saveMagicLinkAddressInLocalStore = exports.fetchMagicLinkBankNameBySwift = exports.fetchMagicLinkBankNameByRouting = exports.updateMagicLinkInternationalBankAccountLocalStoreData = exports.updateMagicLinkBankAccountLocalStoreData = exports.saveBankAccount = exports.fetchBillAttachment = exports.fetchMagicLinkTenant = exports.getMagicLinkCurrentAddressState = exports.getMagicLinkBankAccountView = exports.getMagicLinkView = exports.initializeAccountMappingView = exports.getAccountMappingView = exports.clearAccountMappingLocalData = exports.saveAccountMappingLocalData = exports.saveAccountMapping = exports.getOnboardingCustomerView = exports.clearOnboardingCustomerViewDataInLocalStore = exports.clearOnboardingCustomerView = exports.saveOnboardingCustomerViewDataInLocalStore = exports.saveOnboardingCompnayOfficerPhoneInLocalStore = exports.updateOnboardingCustomerViewUIState = void 0;
61
- exports.completeDebitCardSetPinWait = exports.updateChargeCardTransactionUploadReceiptsFetchStatus = exports.saveCardOnboardingUserDetails = exports.updateCardUserOnboardingLocalData = exports.initializeCardUserOnboardingLocalData = exports.getCardUserOnboardingView = exports.updatePhysicalChargeCardAttempt = exports.updateChargeCardDetail = exports.updateCashbackDetailUIState = exports.updateChargeCardListUIState = exports.updateChargeCardListSearchText = exports.resetIssueChargeCardForm = exports.updateChargeCardsLocalStore = exports.updateCustomAddressId = exports.fetchIssueCardPage = exports.issueChargeCards = exports.toCardType = exports.toShippingAddressType = exports.toCardAddressType = exports.acceptChargeCardTerms = exports.fetchChargeCardSetupView = exports.getChargeCardStatements = exports.fetchChargeCardStatementList = exports.getChargeCardSetupViewDetails = exports.getIssueChargeCardView = exports.toCreditLimitFrequencyCodeType = exports.getZeniDateFromPeriod = exports.getCashbackDetail = exports.toChargeCardSortKeyType = exports.fetchCashbackDetail = exports.fetchChargeCardTransactionList = exports.getChargeCardCVVActivateView = exports.getDebitCardSetPinView = exports.getChargeCardTransactionAttachmentView = exports.getChargeCardDetailView = exports.fetchDepositAccountLimit = exports.fetchChargeCardDetail = exports.fetchChargeCardDetailPage = exports.getCreditAccount = exports.getMyChargeCardListWithShippingAddress = exports.getMyPendingActivationChargeCardListView = exports.getChargeCardListView = exports.fetchCreditAccount = exports.fetchChargeCardConfig = exports.fetchChargeCardListPage = exports.fetchChargeCardList = exports.getChargeCardBusinessVerificationDetails = exports.companyHealthMetricDropDownOptions = exports.hasCompanyHealthMetricFormFieldChanged = exports.getCompanyHealthMetricView = void 0;
62
- exports.clearSelectedJELinkRowIndex = exports.fetchRecommendedTransactionRowIndex = exports.updatedJELinkInLocalDataAccruedExpenses = exports.updatedJEAccruedLinkWithRecommendedLocalData = exports.updateAmountsInScheduleAccruedDetail = exports.saveScheduleAccruedDetails = exports.resetJEAccruedLinkInLocalData = exports.fetchScheduleAccruedDetailsPage = exports.fetchScheduleAccruedDetails = exports.cancelScheduleAccruedJournalEntry = exports.deleteScheduleAccruedDetail = exports.createNewSchedulesAccrued = exports.updateJeScheduleTransactionKeys = exports.updateJeScheduleLocalDataById = exports.retryExpenseAutomationJESchedule = exports.removeJeScheduleTransactionKey = exports.initializeJeScheduleLocalData = exports.initializeJeAccountSettingsView = exports.ignoreExpenseAutomationJESchedule = exports.fetchExpenseAutomationJESchedulesPage = exports.clearExpenseAutomationJESchedulesView = exports.clearExpenseAutomationJEScheduleLocalData = exports.updateApAgingDetailUIState = exports.getApAgingDetailForVendor = exports.fetchApAgingDetail = exports.updateApAgingUIState = exports.getApAgingReport = exports.fetchApAging = exports.updatePerformanceTimeSeries = exports.fetchPerformanceTimeSeries = exports.performanceReportView = exports.updatePerformanceReport = exports.fetchPerformanceReport = exports.anyCardOnHold = exports.setCurrentDisplayedCardId = exports.setFirstViewCompleteAfterActivation = exports.setFirstViewAfterActivation = exports.completeCardUserOnboardingActivationWait = exports.startCardUserOnboardingActivationWait = exports.revokeCardInvite = exports.resendCardInvite = exports.updateChargeCardSpendLimitSuccessOrFailure = exports.updateChargeCardSpendLimit = exports.startCVVActivationWait = exports.completeCVVActivationWait = exports.fetchChargeCardTransactionAttachments = exports.updateChargeCardTransactionIsViewReceiptClicked = exports.updateChargeCardTransactionReceiptsShowTickFetchStatus = exports.updateDebitCardPinAttempt = exports.startDebitCardSetPinWait = void 0;
63
- exports.getVendorFirstReviewView = exports.getGlobalMerchantAutoCompleteResults = exports.toVendorFirstReviewViewColumnKeyType = exports.getVendorTabView = exports.updateVendorTabViewTab = exports.fetchVendorTabView = exports.resetMarkAsCompleteStatus = exports.markAsCompleteScheduleDetail = exports.getDefaultSelectedTimeframeForScheduleType = exports.getFetchStateForScheduleListByType = exports.updatedJELinkWithRecommendedLocalData = exports.resetJELinkInLocalData = exports.updateAmountsInScheduleDetail = exports.updatedJELinkInLocalData = exports.getThirdPartyIDFromQBOURL = exports.getQBOUrlForLink = exports.updatedSelectedJELinkRowIndex = exports.updateAccruedJEScheduleAccruedByListKey = exports.updateScheduleListDownloadState = exports.updateScheduleDetailsLocalData = exports.createNewSchedules = exports.deleteScheduleDetail = exports.saveScheduleDetails = exports.fetchScheduleDetailsPage = exports.getAccruedScheduleDetailsView = exports.getScheduleDetailsView = exports.fetchScheduleDetails = exports.updateSelectedJEScheduleKey = exports.updateScheduleListSortState = exports.updateScheduleListScrollState = exports.updateScheduleListSearchText = exports.updateScheduleListSubTab = exports.toScheduleSubTabType = exports.toScheduleListTabsFileTypeStrict = exports.toScheduleTypesTypeStrict = exports.toScheduleTypesType = exports.getFetchStateForScheduleAccountList = exports.updateScheduleListLocalData = exports.fetchSchedulesAccount = exports.fetchDownloadSchedules = exports.fetchAccruedScheduleList = exports.fetchScheduleList = exports.getAccruedScheduleListReport = exports.getScheduleListReport = exports.ALL_SCHEDULES_TYPES = exports.resetAccruedDetailNewScheduleState = exports.resetSelectedJEAccruedScheduleKey = exports.updateSelectedJEAccruedScheduleKey = exports.updateScheduleAccruedDetailsLocalData = exports.updateLinkBillExpenseLocalData = void 0;
64
- exports.updateTaskFilters = exports.allTaskPriority = exports.allTaskStatus = exports.updateTaskListUIState = exports.updateTaskListSearchText = exports.archiveTask = exports.saveTaskDetail = exports.saveTaskUpdatesToLocalStore = exports.fetchTaskDetailPage = exports.getTaskDetail = exports.fetchTaskListPage = exports.getAllTasks = exports.toRecurringBillFrequencyStrict = exports.toRecurringBillFrequency = exports.updateArAgingNodeCollapseState = exports.getArAgingDetailForCustomer = exports.getArAgingReport = exports.updateArAgingDetailUIState = exports.fetchArAgingDetail = exports.updateArAgingUIState = exports.fetchArAging = exports.updateVendorGlobalReviewViewLocalData = exports.toVendorGlobalReviewColumnSortKeyType = exports.getTenantMerchantByMerchantId = exports.getVendorGlobalReviewView = exports.updateVendorGlobalReviewViewUIState = exports.updateSelectedGlobalMerchant = exports.fetchVendorGlobalReviewView = exports.rejectVendorGlobalReview = exports.approveVendorGlobalReview = exports.getGlobalMerchantView = exports.clearGlobalMerchantView = exports.updateCreateGlobalMerchantLocalData = exports.createGlobalMerchant = exports.fetchGlobalMerchantRecommendation = exports.getVendorDetailSelectorView = exports.saveVendorDetailsView = exports.updateReviewVendorDetailLocalData = exports.clearGlobalMerchantAutoCompleteResults = exports.fetchGlobalMerchantAutoCompleteView = exports.updateVendorFirstReviewSortUiState = exports.updateVendorFirstReviewViewLocalData = exports.saveVendorFirstReviewView = exports.clearRecentlySavedErroredVendorData = exports.updateVendorFirstReviewViewPageToken = exports.resetVendorFirstReviewLocalData = exports.updateVendorFirstReviewViewScrollYOffset = exports.fetchVendorFirstReviewAttachments = exports.fetchVendorFirstReviewView = exports.getVendorFirstReviewAttachmentView = void 0;
65
- exports.toNotificationTabTypeStrict = exports.toNotificationSubTabTypeStrict = exports.updateCommentsNotificationsStatuses = exports.updateCommentsNotifications = exports.toNotificationModeStrict = exports.fetchZeniAccountsPromoCard = exports.getZeniAccountsPromoCard = exports.getAuthenticationView = exports.fetchCollaborationAuthToken = exports.clearAuditReportGroupViewByCompanyId = exports.saveReasonForAuditRule = exports.fetchAuditReportGroupView = exports.fetchAuditRuleGroupView = exports.getUserFromAllUsers = exports.getAuditRuleGroupViewSelectorView = exports.getAuditReportGroupViewSelectorView = exports.clearCardPaymentView = exports.resetCardPaymentErrorStatuses = exports.fetchPaymentSources = exports.addCardPaymentSource = exports.confirmCardSetupIntent = exports.createCardSetupIntent = exports.getAllCardsAndBankPaymentMethods = exports.deleteTag = exports.createTag = exports.fetchTagList = exports.getAllTags = exports.initialTaskDetailLocalData = exports.convertHHMMStrToMinutes = exports.updateTaskFromListView = exports.toDueDateGroupKeyType = exports.toTaskStatusCodeType = exports.toPriorityCodeType = exports.getDueDateValueFromDueDateGroupId = exports.initialTaskDetail = exports.fetchAllTaskGroups = exports.getTaskUpdates = exports.toTaskListGroupByKeyTypeStrict = exports.toTaskListGroupByKeyType = exports.updateTaskGroupName = exports.dragNDropTasks = exports.updateTaskListLocalData = exports.deleteTaskGroup = exports.initiateTaskListLocalData = exports.createNewTaskGroup = exports.bulkUpdateTaskList = exports.discardTaskUpdatesInLocalStore = exports.deleteTask = exports.TASK_LIST_GROUP_BY_CATEGORIES = exports.TASK_LIST_FILTER_CATEGORIES = void 0;
66
- exports.getExpressPayView = exports.resetExpressPayLocalData = exports.submitExpressPay = exports.updateExpressPayFormLocalData = exports.fetchExpressPayInitialDetails = exports.getIntlWireVerificationView = exports.updateVerificationFormLocalData = exports.submitInternationalVerificationForm = exports.fetchInternationalVerificationForm = exports.createTaskFromTaskGroupTemplate = exports.getCompanyTaskManagerView = exports.fetchCompanyTaskManagerView = exports.getMinAllowedEndDate = exports.toRecurringFrequency = exports.getRecurringEndDateFromCount = exports.updateReferViewed = exports.getRewardsPlanCard = exports.fetchRewardsPlan = exports.resendReferralInvite = exports.updateReferralListSortUiState = exports.saveReferralFormDataInLocalStore = exports.clearReferrals = exports.sendReferralInvite = exports.fetchReferrals = exports.AmountStatusTypes = exports.StatusTypes = exports.toReferralListViewSortKeyType = exports.getInviteFormView = exports.getReferralListView = exports.getNotifications = exports.getLastNotificationTime = exports.pushToastNotification = exports.getNotificationsForSelectedSubTab = exports.getExternalNotificationsForSelectedSubTab = exports.getNotificationView = exports.updateNotificationViewUIState = exports.updateNotificationViewSubTab = exports.updateNotificationViewCurrentTabAndSubTab = exports.updateNotificationViewTabState = exports.updateNotificationViewNotificationStatus = exports.updateNotificationViewAllNotificationsStatus = exports.fetchNotificationUnreadCountSuccess = exports.fetchNotificationUnreadCount = exports.fetchNotificationView = void 0;
55
+ exports.getBankConnectionsSetupViewDetails = exports.getApprovalRuleViewDetails = exports.getTwoFactorAuthenticationViewForChargeCardHolder = exports.getTwoFactorAuthenticationViewForCardUserOnboarding = exports.getTwoFactorAuthenticationView = exports.getCommonSetupViewDetails = exports.getZeniAccountBusinessVerificationDetails = exports.getBillPayBusinessVerificationDetails = exports.getBusinessVerificationDetails = exports.getZeniAccountSetupViewDetails = exports.getPlaidAccountDetails = exports.getBillPaySetupViewDetails = exports.verifyOtp = exports.resendOtp = exports.sendOtp = exports.clearZeniAccountSetupView = exports.clearBillPaySetupView = exports.clearSetupViewDataInLocalStore = exports.saveIndustryAndIncDateInLocalStore = exports.saveCompnayOfficerAdditionalDocumentsInLocalStore = exports.saveCompnayOfficerPhoneInLocalStore = exports.saveSetupViewDataInLocalStore = exports.acceptBillPayUpdatedTerms = exports.acceptZeniAccountTerms = exports.acceptBillPayTerms = exports.updatePrimaryFundingAccount = exports.updateMappedCashAccount = exports.establishPlaidConnection = exports.updatePaymentAccountStatus = exports.updatePaymentAccountLoginStatus = exports.updatePaymentAccount = exports.updateBusinessVerificationDetails = exports.updateSetupViewLocalStoreData = exports.updateSelectedCompanyOfficer = exports.getPlaidLinkToken = exports.getPaymentAccounts = exports.enableSetup = exports.fetchZeniAccountSetupView = exports.fetchBillPaySetupView = exports.hideCreatedByFilter = exports.updateShouldReplaceBillData = exports.replaceBillFileInLocalStore = exports.removeBillFileFromLocalStore = exports.updateWithdrawFromAccountId = exports.markBillForRetry = exports.fetchVendorAndUpdateBillLocalData = exports.convertAmountToHomeCurrency = exports.toPaymentToOption = exports.updateVendorContact = exports.verifyUser = void 0;
56
+ exports.clearDuplicateReimbursementDetail = exports.fetchDuplicateReimbursement = exports.clearRemiDetailView = exports.approveOrRejectRemi = exports.cancelAndDeleteRemi = exports.fetchRemiDetail = exports.deleteRemi = exports.updateIsEditModeRealTimeApprovals = exports.saveRealTimeApproval = exports.checkApproveRejectBtnShowForRemi = exports.getRemiDetailView = exports.clearRemiSetupApproverView = exports.clearRemiSetupApproverViewUpdateData = exports.initializeRemiSetupApproverViewUpdateData = exports.saveRemiSetupApproverViewUpdates = exports.saveRemiSetupApproverViewUpdateData = exports.deleteRemiApprovalRule = exports.fetchRemiApproversDetails = exports.fetchRemiApproversList = exports.fetchRemiSetupApproverView = exports.getRemiSetupApproverUpdateDataView = exports.getRemiSetupApproverView = exports.clearBillPaySetupApproverView = exports.clearBillPaySetupApproverViewUpdateData = exports.initializeBillPaySetupApproverViewUpdateData = exports.saveBillPaySetupApproverViewUpdates = exports.saveBillPaySetupApproverViewUpdateData = exports.deleteBillPayApprovalRule = exports.fetchBillPayApproversList = exports.fetchBillPayApproversDetails = exports.fetchBillPaySetupApproverView = exports.getBillPaySetupApproverUpdateDataView = exports.getBillPaySetupApproverView = exports.toRoleTypeStrict = exports.toAttributeOrRoleTypeStrict = exports.toAttributeTypeStrict = exports.isAccessDeniedError = exports.isInvalidSessionError = exports.isSuccessResponse = exports.getRemiBusinessVerificationDetails = exports.getRemiSetupViewDetails = exports.clearRemiSetupView = exports.acceptEmployeeRemiTerms = exports.acceptRemiTerms = exports.saveRemiSetupViewDataInLocalStore = exports.updateMileageDetails = exports.fetchRemiSetupView = exports.getUserFinancialAccount = exports.fetchUserFinancialAccount = exports.getIntegrationsView = void 0;
57
+ exports.saveOnboardingCustomerViewUpdateData = exports.clearOnboardingCustomerViewUpdateData = exports.initializeOnboardingCustomerViewUpdateData = exports.getOnboardingEmailGroup = exports.getNewOnboardingCustomerView = exports.getOnboardingCockpitView = exports.toProductTypeStrict = exports.toProductType = exports.saveOnboardingCustomerCompletedStatus = exports.fetchOnboardingCompletedCompanies = exports.updateQBOConnectionPoolExternalConnection = exports.fetchQBOConnectionPool = exports.fetchCompanyOnboardingView = exports.PAYMENT_BUSINESS_DAYS = exports.holidaysFormatted = exports.isHoliday = exports.getYearsList = exports.filterDays = exports.isHolidayToday = exports.getPreviousNthWorkingDay = exports.getNextNthWorkingDay = exports.toFileTypeStrict = exports.ALL_FILE_TYPES = exports.isAllFetchCompleted = exports.isAnyFetchInProgress = exports.reduceAnyCompletedFetchState = exports.reduceAllFetchState = exports.reduceAnyFetchState = exports.reduceFetchState = exports.clearAddRemiAutoFields = exports.updateHomeCurrencyConversion = exports.updateReimbursementType = exports.clearTentativeMerchantName = exports.updateTentativeMerchantNames = exports.updateUploadFetchState = exports.updateAddRemiAutoFields = exports.clearEditRemiViewDetail = exports.parseReceiptsToRemi = exports.saveRemiSuccessOrFailure = exports.saveRemiDetail = exports.removeFileFromRemiUpdatesInLocalStore = exports.discardRemiUpdatesInLocalStore = exports.fetchCurrencyConversionValue = exports.saveRemiUpdatesToLocalStore = exports.initializeRemiToLocalStore = exports.fetchRemiAndInitializeLocalStore = exports.fetchRecommendationsAndUpdateMerchantRecommendations = exports.fetchEditRemiDetailPage = exports.getEditRemiDetail = exports.removeDuplicateReimbursementByLineId = void 0;
58
+ exports.fetchOwnerList = exports.fetchRecommendationByEntityName = exports.fetchRecommendationByEntityId = exports.fetchEntityRecommendationsByTransactionId = exports.fetchVendorsFiling1099Download = exports.getVendorFiling1099List = exports.toVendorReportIDType = exports.isVendorsTabVisible = exports.isColumnYTDSpend = exports.updateYTDSelectionUIState = exports.updatePageToken = exports.updateSortUiState = exports.getVendorList = exports.LOCAL_CURRENCY_INTERNATIONAL_METHOD_SUBTEXT = exports.SWIFT_OUR_INTERNATIONAL_METHOD_SUBTEXT = exports.NEW_INTERNATIONAL_METHOD_SUBTEXT = exports.BILL_NEW_PAYMENT_METHODS = exports.getInternationalSubConfigCodeKey = exports.shouldEnableCalendarPickerForLastReportSent = exports.canSendMonthEndEmailReport = exports.checkIfLowBalance = exports.isAwaitingMarkAsPaid = exports.isPaymentMethodOutsideZeni = exports.toAccountsPromoConfig = exports.getBulkOperationSuffix = exports.getRemiListUniqueType = exports.getBillListUniqueType = exports.isBulkProcessing = exports.isVerifiedStatusCode = exports.getActualPaymentDate = exports.showReimbursementPromoPage = exports.showBillPayPromoPage = exports.getSelectedCompanyOfficer = exports.getSpendManagementEffectiveListPeriod = exports.getSnackbar = exports.closeSnackbar = exports.openSnackbar = exports.getChangedLineItemCountFromLocalData = exports.getTransactionListUIStateByCategoryType = exports.getTransactionsListByCategoryType = exports.retryBankAccountConnectionForOnboarding = exports.sendOnboardingCustomerViewInvite = exports.resetNewOnboardedCustomerId = exports.updateOnboardingCustomerDataInLocalStore = exports.saveOnboardingCustomerDataInLocalStore = exports.saveOnboardingCustomerNotes = exports.saveOnboardingCustomerViewUpdates = exports.updateStatusAfterOnboardingCompleted = exports.updateCustomerCreationStatus = exports.updateOnboardingCustomerListUIState = void 0;
59
+ exports.updateOnboardingPaymentAccountStatus = exports.updateOnboardingPaymentAccountLoginStatus = exports.updateOnboardingCustomerViewCompleteStatus = exports.updateOnboardingCustomerViewAccountDetails = exports.establishOnboardingPlaidConnection = exports.getOnboardingPlaidLinkToken = exports.fetchOnboardingCustomerSetupView = exports.fetchOnboardingCustomerView = exports.isZeniClearingAccount = exports.ZENI_CLEARING_ACCOUNT = exports.isZeniClearingAccountReport = exports.getCompanyConfig = exports.fetchCompanyConfig = exports.clearTransactionVendorSaveStatus = exports.resetTransactionVendorLocalData = exports.updateTransactionVendorLocalData = exports.saveTransactionVendorSuccessOrFailure = exports.saveTransactionVendor = exports.getTransactionVendorView = exports.getDepositAccountTransactionList = exports.fetchDepositAccountTransactionList = exports.getZeniAccStatements = exports.fetchZeniAccStatementPage = exports.fetchDepositAccountHistoryFailure = exports.fetchDepositAccountHistorySuccess = exports.updateDepositAccount = exports.getCheckDepositDetail = exports.clearCheckDeposit = exports.updateCheckDepositLocalData = exports.depositCheck = exports.fetchDepositAccountDetail = exports.fetchReviewTransferDetail = exports.clearReviewTransferDetail = exports.clearTransferDetail = exports.getTransferDetail = exports.transferMoney = exports.updateDepositToLocalData = exports.updateTransferToLocalData = exports.updateTransferMoneyLocalData = exports.fetchZeniAccountsConfig = exports.fetchDepositAccount = exports.getDepositAccountDetailForPDF = exports.getAllDepositAccounts = exports.getDepositAccountDetail = exports.unlinkPaymentAccount = exports.fetchPaymentAccountList = exports.createCheckingAccount = exports.fetchZeniAccountList = exports.getZeniAccountList = exports.getZeniAccountsConfigDetail = void 0;
60
+ exports.updateCompanyHealthMetricViewSuccessStatus = exports.updateCompanyHealthMetricViewErrorStatus = exports.updateCompanyHealthMetricLocalStore = exports.saveCompanyHealthMetricById = exports.removeSelectedCompanyId = exports.initializeCompanyHealthMetricViewLocalData = exports.fetchCompanyHealthMetricView = exports.clearCompanyHealthMetricView = exports.updateCompanyHealth = exports.updateCompaniesHealth = exports.fetchCompanyHealthMetricConfig = exports.getCompanyHealthMetricConfig = exports.getUserRoleConfig = exports.fetchUserRoleConfig = exports.clearInternationalWire = exports.deletePaymentInstrument = exports.createPaymentInstrumentUpdateStatus = exports.createPaymentInstrument = exports.fetchInternationalWireDynamicForm = exports.initializeDynamicForm = exports.updateInternationalWireLocalStoreData = exports.initializeInternationalWireLocalData = exports.getInternationalWireView = exports.fetchWiseRedirectStatus = exports.getWiseRedirect = exports.saveMagicLinkAddressInLocalStore = exports.fetchMagicLinkBankNameBySwift = exports.fetchMagicLinkBankNameByRouting = exports.updateMagicLinkInternationalBankAccountLocalStoreData = exports.updateMagicLinkBankAccountLocalStoreData = exports.saveBankAccount = exports.fetchBillAttachment = exports.fetchMagicLinkTenant = exports.getMagicLinkCurrentAddressState = exports.getMagicLinkBankAccountView = exports.getMagicLinkView = exports.initializeAccountMappingView = exports.getAccountMappingView = exports.clearAccountMappingLocalData = exports.saveAccountMappingLocalData = exports.saveAccountMapping = exports.getOnboardingCustomerView = exports.clearOnboardingCustomerViewDataInLocalStore = exports.clearOnboardingCustomerView = exports.saveOnboardingCustomerViewDataInLocalStore = exports.saveOnboardingCompnayOfficerPhoneInLocalStore = exports.updateOnboardingCustomerViewUIState = exports.updateCurrentStep = exports.updateOnboardingCustomerViewLocalStoreData = exports.updateOnboardingCustomerView = void 0;
61
+ exports.updateCardUserOnboardingLocalData = exports.initializeCardUserOnboardingLocalData = exports.getCardUserOnboardingView = exports.updatePhysicalChargeCardAttempt = exports.updateChargeCardDetail = exports.updateCashbackDetailUIState = exports.updateChargeCardListUIState = exports.updateChargeCardListSearchText = exports.resetIssueChargeCardForm = exports.updateChargeCardsLocalStore = exports.updateCustomAddressId = exports.fetchIssueCardPage = exports.issueChargeCards = exports.toCardType = exports.toShippingAddressType = exports.toCardAddressType = exports.acceptChargeCardTerms = exports.fetchChargeCardSetupView = exports.getChargeCardStatements = exports.fetchChargeCardStatementList = exports.getChargeCardSetupViewDetails = exports.getIssueChargeCardView = exports.toCreditLimitFrequencyCodeType = exports.getZeniDateFromPeriod = exports.getCashbackDetail = exports.toChargeCardSortKeyType = exports.fetchCashbackDetail = exports.fetchChargeCardTransactionList = exports.getChargeCardCVVActivateView = exports.getDebitCardSetPinView = exports.getChargeCardTransactionAttachmentView = exports.getChargeCardDetailView = exports.fetchDepositAccountLimit = exports.fetchChargeCardDetail = exports.fetchChargeCardDetailPage = exports.getCreditAccount = exports.getMyChargeCardListWithShippingAddress = exports.getMyPendingActivationChargeCardListView = exports.getChargeCardListView = exports.fetchCreditAccount = exports.fetchChargeCardConfig = exports.fetchChargeCardListPage = exports.fetchChargeCardList = exports.getChargeCardBusinessVerificationDetails = exports.companyHealthMetricDropDownOptions = exports.hasCompanyHealthMetricFormFieldChanged = exports.getCompanyHealthMetricView = exports.isCompanyRunwayInfinite = exports.updateChargeCardTransactionAttachments = exports.updateCompanyHealthViewUIState = void 0;
62
+ exports.updatedJEAccruedLinkWithRecommendedLocalData = exports.updateAmountsInScheduleAccruedDetail = exports.saveScheduleAccruedDetails = exports.resetJEAccruedLinkInLocalData = exports.fetchScheduleAccruedDetailsPage = exports.fetchScheduleAccruedDetails = exports.cancelScheduleAccruedJournalEntry = exports.deleteScheduleAccruedDetail = exports.createNewSchedulesAccrued = exports.updateJeScheduleTransactionKeys = exports.updateJeScheduleLocalDataById = exports.retryExpenseAutomationJESchedule = exports.removeJeScheduleTransactionKey = exports.initializeJeScheduleLocalData = exports.initializeJeAccountSettingsView = exports.ignoreExpenseAutomationJESchedule = exports.fetchExpenseAutomationJESchedulesPage = exports.clearExpenseAutomationJESchedulesView = exports.clearExpenseAutomationJEScheduleLocalData = exports.updateApAgingDetailUIState = exports.getApAgingDetailForVendor = exports.fetchApAgingDetail = exports.updateApAgingUIState = exports.getApAgingReport = exports.fetchApAging = exports.updatePerformanceTimeSeries = exports.fetchPerformanceTimeSeries = exports.performanceReportView = exports.updatePerformanceReport = exports.fetchPerformanceReport = exports.anyCardOnHold = exports.setCurrentDisplayedCardId = exports.setFirstViewCompleteAfterActivation = exports.setFirstViewAfterActivation = exports.completeCardUserOnboardingActivationWait = exports.startCardUserOnboardingActivationWait = exports.revokeCardInvite = exports.resendCardInvite = exports.updateChargeCardSpendLimitSuccessOrFailure = exports.updateChargeCardSpendLimit = exports.startCVVActivationWait = exports.completeCVVActivationWait = exports.fetchChargeCardTransactionAttachments = exports.updateChargeCardTransactionIsViewReceiptClicked = exports.updateChargeCardTransactionReceiptsShowTickFetchStatus = exports.updateDebitCardPinAttempt = exports.startDebitCardSetPinWait = exports.completeDebitCardSetPinWait = exports.updateChargeCardTransactionUploadReceiptsFetchStatus = exports.saveCardOnboardingUserDetails = void 0;
63
+ exports.getVendorTabView = exports.updateVendorTabViewTab = exports.fetchVendorTabView = exports.resetMarkAsCompleteStatus = exports.markAsCompleteScheduleDetail = exports.getDefaultSelectedTimeframeForScheduleType = exports.getFetchStateForScheduleListByType = exports.updatedJELinkWithRecommendedLocalData = exports.resetJELinkInLocalData = exports.updateAmountsInScheduleDetail = exports.updatedJELinkInLocalData = exports.getThirdPartyIDFromQBOURL = exports.getQBOUrlForLink = exports.updatedSelectedJELinkRowIndex = exports.updateAccruedJEScheduleAccruedByListKey = exports.updateScheduleListDownloadState = exports.updateScheduleDetailsLocalData = exports.createNewSchedules = exports.deleteScheduleDetail = exports.saveScheduleDetails = exports.fetchScheduleDetailsPage = exports.getAccruedScheduleDetailsView = exports.getScheduleDetailsView = exports.fetchScheduleDetails = exports.updateSelectedJEScheduleKey = exports.updateScheduleListSortState = exports.updateScheduleListScrollState = exports.updateScheduleListSearchText = exports.updateScheduleListSubTab = exports.toScheduleSubTabType = exports.toScheduleListTabsFileTypeStrict = exports.toScheduleTypesTypeStrict = exports.toScheduleTypesType = exports.getFetchStateForScheduleAccountList = exports.updateScheduleListLocalData = exports.fetchSchedulesAccount = exports.fetchDownloadSchedules = exports.fetchAccruedScheduleList = exports.fetchScheduleList = exports.getAccruedScheduleListReport = exports.getScheduleListReport = exports.ALL_SCHEDULES_TYPES = exports.resetAccruedDetailNewScheduleState = exports.resetSelectedJEAccruedScheduleKey = exports.updateSelectedJEAccruedScheduleKey = exports.updateScheduleAccruedDetailsLocalData = exports.updateLinkBillExpenseLocalData = exports.clearSelectedJELinkRowIndex = exports.fetchRecommendedTransactionRowIndex = exports.updatedJELinkInLocalDataAccruedExpenses = void 0;
64
+ exports.updateTaskListUIState = exports.updateTaskListSearchText = exports.archiveTask = exports.saveTaskDetail = exports.saveTaskUpdatesToLocalStore = exports.fetchTaskDetailPage = exports.getTaskDetail = exports.fetchTaskListPage = exports.getAllTasks = exports.toRecurringBillFrequencyStrict = exports.toRecurringBillFrequency = exports.updateArAgingNodeCollapseState = exports.getArAgingDetailForCustomer = exports.getArAgingReport = exports.updateArAgingDetailUIState = exports.fetchArAgingDetail = exports.updateArAgingUIState = exports.fetchArAging = exports.updateVendorGlobalReviewViewLocalData = exports.toVendorGlobalReviewColumnSortKeyType = exports.getTenantMerchantByMerchantId = exports.getVendorGlobalReviewView = exports.updateVendorGlobalReviewViewUIState = exports.updateSelectedGlobalMerchant = exports.fetchVendorGlobalReviewView = exports.rejectVendorGlobalReview = exports.approveVendorGlobalReview = exports.getGlobalMerchantView = exports.clearGlobalMerchantView = exports.updateCreateGlobalMerchantLocalData = exports.createGlobalMerchant = exports.fetchGlobalMerchantRecommendation = exports.getVendorDetailSelectorView = exports.saveVendorDetailsView = exports.updateReviewVendorDetailLocalData = exports.clearGlobalMerchantAutoCompleteResults = exports.fetchGlobalMerchantAutoCompleteView = exports.updateVendorFirstReviewSortUiState = exports.updateVendorFirstReviewViewLocalData = exports.saveVendorFirstReviewView = exports.clearRecentlySavedErroredVendorData = exports.updateVendorFirstReviewViewPageToken = exports.resetVendorFirstReviewLocalData = exports.updateVendorFirstReviewViewScrollYOffset = exports.fetchVendorFirstReviewAttachments = exports.fetchVendorFirstReviewView = exports.getVendorFirstReviewAttachmentView = exports.getVendorFirstReviewView = exports.getGlobalMerchantAutoCompleteResults = exports.toVendorFirstReviewViewColumnKeyType = void 0;
65
+ exports.updateCommentsNotifications = exports.toNotificationModeStrict = exports.fetchZeniAccountsPromoCard = exports.getZeniAccountsPromoCard = exports.getAuthenticationView = exports.fetchCollaborationAuthToken = exports.clearAuditReportGroupViewByCompanyId = exports.saveReasonForAuditRule = exports.fetchAuditReportGroupView = exports.fetchAuditRuleGroupView = exports.getUserFromAllUsers = exports.getAuditRuleGroupViewSelectorView = exports.getAuditReportGroupViewSelectorView = exports.clearCardPaymentView = exports.resetCardPaymentErrorStatuses = exports.fetchPaymentSources = exports.addCardPaymentSource = exports.confirmCardSetupIntent = exports.createCardSetupIntent = exports.getAllCardsAndBankPaymentMethods = exports.deleteTag = exports.createTag = exports.fetchTagList = exports.getAllTags = exports.initialTaskDetailLocalData = exports.convertHHMMStrToMinutes = exports.updateTaskFromListView = exports.toDueDateGroupKeyType = exports.toTaskStatusCodeType = exports.toPriorityCodeType = exports.getDueDateValueFromDueDateGroupId = exports.initialTaskDetail = exports.fetchAllTaskGroups = exports.getTaskUpdates = exports.toTaskListGroupByKeyTypeStrict = exports.toTaskListGroupByKeyType = exports.updateTaskGroupName = exports.dragNDropTasks = exports.updateTaskListLocalData = exports.deleteTaskGroup = exports.initiateTaskListLocalData = exports.createNewTaskGroup = exports.bulkUpdateTaskList = exports.discardTaskUpdatesInLocalStore = exports.deleteTask = exports.TASK_LIST_GROUP_BY_CATEGORIES = exports.TASK_LIST_FILTER_CATEGORIES = exports.updateTaskFilters = exports.allTaskPriority = exports.allTaskStatus = void 0;
66
+ exports.getExpressPayView = exports.resetExpressPayLocalData = exports.submitExpressPay = exports.updateExpressPayFormLocalData = exports.fetchExpressPayInitialDetails = exports.getIntlWireVerificationView = exports.updateVerificationFormLocalData = exports.submitInternationalVerificationForm = exports.fetchInternationalVerificationForm = exports.createTaskFromTaskGroupTemplate = exports.getCompanyTaskManagerView = exports.fetchCompanyTaskManagerView = exports.getMinAllowedEndDate = exports.toRecurringFrequency = exports.getRecurringEndDateFromCount = exports.updateReferViewed = exports.getRewardsPlanCard = exports.fetchRewardsPlan = exports.resendReferralInvite = exports.updateReferralListSortUiState = exports.saveReferralFormDataInLocalStore = exports.clearReferrals = exports.sendReferralInvite = exports.fetchReferrals = exports.AmountStatusTypes = exports.StatusTypes = exports.toReferralListViewSortKeyType = exports.getInviteFormView = exports.getReferralListView = exports.getNotifications = exports.getLastNotificationTime = exports.pushToastNotification = exports.getNotificationsForSelectedSubTab = exports.getExternalNotificationsForSelectedSubTab = exports.getNotificationView = exports.updateNotificationViewUIState = exports.updateNotificationViewSubTab = exports.updateNotificationViewCurrentTabAndSubTab = exports.updateNotificationViewTabState = exports.updateNotificationViewNotificationStatus = exports.updateNotificationViewAllNotificationsStatus = exports.fetchNotificationUnreadCountSuccess = exports.fetchNotificationUnreadCount = exports.fetchNotificationView = exports.toNotificationTabTypeStrict = exports.toNotificationSubTabTypeStrict = exports.updateCommentsNotificationsStatuses = void 0;
67
67
  const allowedValue_1 = require("./commonStateTypes/allowedValue");
68
68
  Object.defineProperty(exports, "isAllowedValueWithCode", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithCode; } });
69
69
  Object.defineProperty(exports, "isAllowedValueWithID", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithID; } });
@@ -1230,10 +1230,13 @@ Object.defineProperty(exports, "fetchEditBillDetailPage", { enumerable: true, ge
1230
1230
  Object.defineProperty(exports, "fetchVendorAndUpdateBillLocalData", { enumerable: true, get: function () { return editBillViewReducer_1.fetchVendorAndUpdateBillLocalData; } });
1231
1231
  Object.defineProperty(exports, "fetchVendorByNameAndParseInvoice", { enumerable: true, get: function () { return editBillViewReducer_1.fetchVendorByNameAndParseInvoice; } });
1232
1232
  Object.defineProperty(exports, "markBillForRetry", { enumerable: true, get: function () { return editBillViewReducer_1.markBillForRetry; } });
1233
+ Object.defineProperty(exports, "removeBillFileFromLocalStore", { enumerable: true, get: function () { return editBillViewReducer_1.removeBillFileFromLocalStore; } });
1234
+ Object.defineProperty(exports, "replaceBillFileInLocalStore", { enumerable: true, get: function () { return editBillViewReducer_1.replaceBillFileInLocalStore; } });
1233
1235
  Object.defineProperty(exports, "saveBillDetail", { enumerable: true, get: function () { return editBillViewReducer_1.saveBillDetail; } });
1234
1236
  Object.defineProperty(exports, "saveBillUpdatesToLocalStore", { enumerable: true, get: function () { return editBillViewReducer_1.saveBillUpdatesToLocalStore; } });
1235
1237
  Object.defineProperty(exports, "updateBillUploadFetchState", { enumerable: true, get: function () { return editBillViewReducer_1.updateBillUploadFetchState; } });
1236
1238
  Object.defineProperty(exports, "updateOutsideZeniPaymentLocalData", { enumerable: true, get: function () { return editBillViewReducer_1.updateOutsideZeniPaymentLocalData; } });
1239
+ Object.defineProperty(exports, "updateShouldReplaceBillData", { enumerable: true, get: function () { return editBillViewReducer_1.updateShouldReplaceBillData; } });
1237
1240
  Object.defineProperty(exports, "updateShowAutofill", { enumerable: true, get: function () { return editBillViewReducer_1.updateShowAutofill; } });
1238
1241
  Object.defineProperty(exports, "updateVendorContact", { enumerable: true, get: function () { return editBillViewReducer_1.updateVendorContact; } });
1239
1242
  Object.defineProperty(exports, "updateWithdrawFromAccountId", { enumerable: true, get: function () { return editBillViewReducer_1.updateWithdrawFromAccountId; } });
@@ -19,7 +19,7 @@ const fetchVendorDetailsEpic = (actions$, state$) => actions$.pipe((0, operators
19
19
  vendorActions.push((0, ownerListReducer_1.fetchOwnerList)());
20
20
  action.payload.vendorId != null
21
21
  ? vendorActions.push((0, vendorViewReducer_1.fetchVendor)(action.payload.vendorId, false, action.payload.signal))
22
- : vendorActions.push((0, vendorListReducer_1.fetchVendorsList)());
22
+ : vendorActions.push((0, vendorListReducer_1.fetchVendorsList)({}));
23
23
  }
24
24
  else {
25
25
  const accountList = state$.value.accountListState.byReportId.accountList;
@@ -53,7 +53,7 @@ const fetchVendorDetailsEpic = (actions$, state$) => actions$.pipe((0, operators
53
53
  if ((vendors.fetchStateBillsTab.fetchState !== 'Completed' &&
54
54
  vendors.fetchStateBillsTab.fetchState !== 'In-Progress') ||
55
55
  vendors.allVendorIdsBillsTab.length === 0) {
56
- vendorActions.push((0, vendorListReducer_1.fetchVendorsList)());
56
+ vendorActions.push((0, vendorListReducer_1.fetchVendorsList)({}));
57
57
  }
58
58
  }
59
59
  }
@@ -137,7 +137,9 @@ const saveVendorEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operator
137
137
  if (Boolean(tentativeVendorName) === true &&
138
138
  tentativeVendorName === (updatedVendor === null || updatedVendor === void 0 ? void 0 : updatedVendor.name)) {
139
139
  showVendorGptRecommendationText = true;
140
- actions.push((0, editBillViewReducer_1.updateAddBillAutoFields)(Object.assign(Object.assign({}, billInLocalStore.addBillAutoFields), { tentativeVendorName: '' })));
140
+ actions.push((0, editBillViewReducer_1.updateAddBillAutoFields)({
141
+ addBillAutoFields: Object.assign(Object.assign({}, billInLocalStore.addBillAutoFields), { tentativeVendorName: '' }),
142
+ }));
141
143
  if (recommendedVendorId == null) {
142
144
  actions.push((0, editBillViewReducer_1.updateRecommendedVendorId)(updatedVendor === null || updatedVendor === void 0 ? void 0 : updatedVendor.id));
143
145
  }
@@ -19,7 +19,7 @@ const fetchVendorsTabVendorDetailsEpic = (actions$, state$) => actions$.pipe((0,
19
19
  vendorActions.push((0, ownerListReducer_1.fetchOwnerList)());
20
20
  action.payload.vendorId != null
21
21
  ? vendorActions.push((0, vendorsTabVendorViewReducer_1.fetchVendorsTabVendor)(action.payload.vendorId))
22
- : vendorActions.push((0, vendorListReducer_1.fetchVendorsList)());
22
+ : vendorActions.push((0, vendorListReducer_1.fetchVendorsList)({}));
23
23
  }
24
24
  else {
25
25
  const accountList = state$.value.accountListState.byReportId.accountList;
@@ -98,7 +98,9 @@ const fetchBillDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, ope
98
98
  if (vendorInResponse == null &&
99
99
  response.data.transaction.candidate_vendor_name != null &&
100
100
  response.data.transaction.candidate_vendor_name.length > 0) {
101
- fetchActions.push((0, vendorListReducer_1.fetchVendorsList)((_l = response.data) === null || _l === void 0 ? void 0 : _l.transaction.candidate_vendor_name));
101
+ fetchActions.push((0, vendorListReducer_1.fetchVendorsList)({
102
+ searchString: (_l = response.data) === null || _l === void 0 ? void 0 : _l.transaction.candidate_vendor_name,
103
+ }));
102
104
  fetchActions.push((0, billDetailViewReducer_1.waitForVendorByNameThenUpdateBillDetail)(billId, response.data, (_m = response.data.vendors[0]) === null || _m === void 0 ? void 0 : _m.vendor_id));
103
105
  }
104
106
  else {
@@ -17,9 +17,10 @@ export declare const fetchEditBillDetailPage: import("@reduxjs/toolkit").ActionC
17
17
  cacheOverride: boolean;
18
18
  isShowDeletedBillsEnabled: boolean;
19
19
  hasZeniAssistAccess: boolean;
20
- }, "editBillView/fetchBillAndInitializeLocalStore", never, never>, fetchVendorByNameAndParseInvoice: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[invoiceProcessingPayload: InvoiceProcessingPayload, isVendorRecommendationFeatureEnabled: boolean], {
20
+ }, "editBillView/fetchBillAndInitializeLocalStore", never, never>, fetchVendorByNameAndParseInvoice: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[invoiceProcessingPayload: InvoiceProcessingPayload, isVendorRecommendationFeatureEnabled: boolean, billId?: string | undefined], {
21
21
  invoiceProcessingPayload: InvoiceProcessingPayload;
22
22
  isVendorRecommendationFeatureEnabled: boolean;
23
+ billId: string | undefined;
23
24
  }, "editBillView/fetchVendorByNameAndParseInvoice", never, never>, initializeBillToLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[billId: string], {
24
25
  billId: string;
25
26
  }, "editBillView/initializeBillToLocalStore", never, never>, saveBillUpdatesToLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
@@ -38,18 +39,29 @@ export declare const fetchEditBillDetailPage: import("@reduxjs/toolkit").ActionC
38
39
  error: ZeniAPIStatus<Record<string, unknown>> | undefined;
39
40
  }, "editBillView/saveBillSuccessOrFailure", never, never>, updateEditBillFetchStateCompleted: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
40
41
  billId: ID;
41
- }, "editBillView/updateEditBillFetchStateCompleted">, parseInvoiceToBill: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[invoiceProcessingPayload: InvoiceProcessingPayload, isVendorRecommendationFeatureEnabled: boolean], {
42
+ }, "editBillView/updateEditBillFetchStateCompleted">, parseInvoiceToBill: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[invoiceProcessingPayload: InvoiceProcessingPayload, isVendorRecommendationFeatureEnabled: boolean, billId?: string | undefined], {
42
43
  invoiceProcessingPayload: InvoiceProcessingPayload;
43
44
  isVendorRecommendationFeatureEnabled: boolean;
45
+ billId: string | undefined;
44
46
  }, "editBillView/parseInvoiceToBill", never, never>, clearEditBillViewDetail: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"editBillView/clearEditBillViewDetail">, waitForBillDetailThenInitializeLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[billId: string], {
45
47
  billId: string;
46
- }, "editBillView/waitForBillDetailThenInitializeLocalStore", never, never>, waitForVendorByNameThenParsetoLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[invoiceProcessingPayload: InvoiceProcessingPayload, isVendorRecommendationFeatureEnabled: boolean], {
48
+ }, "editBillView/waitForBillDetailThenInitializeLocalStore", never, never>, waitForVendorByNameThenParsetoLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[invoiceProcessingPayload: InvoiceProcessingPayload, isVendorRecommendationFeatureEnabled: boolean, billId?: string | undefined], {
47
49
  invoiceProcessingPayload: InvoiceProcessingPayload;
48
50
  isVendorRecommendationFeatureEnabled: boolean;
51
+ billId: string | undefined;
49
52
  }, "editBillView/waitForVendorByNameThenParsetoLocalStore", never, never>, updateInternationalTransferFeeBearerPaymentMethodInLocalData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[internationalTransferFeeBearerPaymentMethod?: "swift_our" | "swift_sha" | undefined, billId?: string | undefined], {
50
53
  internationalTransferFeeBearerPaymentMethod: "swift_our" | "swift_sha" | undefined;
51
54
  billId: string | undefined;
52
- }, "editBillView/updateInternationalTransferFeeBearerPaymentMethodInLocalData", never, never>, updateShowAutofill: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "editBillView/updateShowAutofill">, updateAddBillAutoFields: import("@reduxjs/toolkit").ActionCreatorWithPayload<AddBillAutoFields, "editBillView/updateAddBillAutoFields">, updateBillUploadFetchState: import("@reduxjs/toolkit").ActionCreatorWithPayload<FetchStateAndError, "editBillView/updateBillUploadFetchState">, updateRecommendedVendorId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string | undefined, "editBillView/updateRecommendedVendorId">, updateSuggestedVendorIdFromParsedInvoice: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "editBillView/updateSuggestedVendorIdFromParsedInvoice">, updateVendorContact: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[emailId: string, vendorId: string, billId?: string | undefined], {
55
+ }, "editBillView/updateInternationalTransferFeeBearerPaymentMethodInLocalData", never, never>, updateShowAutofill: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "editBillView/updateShowAutofill">, updateAddBillAutoFields: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
56
+ addBillAutoFields: AddBillAutoFields;
57
+ billId?: ID;
58
+ }, "editBillView/updateAddBillAutoFields">, updateBillUploadFetchState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
59
+ fetchState: FetchStateAndError;
60
+ billId?: ID;
61
+ }, "editBillView/updateBillUploadFetchState">, updateRecommendedVendorId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string | undefined, "editBillView/updateRecommendedVendorId">, updateSuggestedVendorIdFromParsedInvoice: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
62
+ vendorId: ID;
63
+ billId?: ID;
64
+ }, "editBillView/updateSuggestedVendorIdFromParsedInvoice">, updateVendorContact: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[emailId: string, vendorId: string, billId?: string | undefined], {
53
65
  emailId: string;
54
66
  vendorId: string;
55
67
  billId: string | undefined;
@@ -87,6 +99,14 @@ export declare const fetchEditBillDetailPage: import("@reduxjs/toolkit").ActionC
87
99
  billId?: ID;
88
100
  withdrawFromAccountId?: ID;
89
101
  withdrawFromList: FundingAccount[];
90
- }, "editBillView/updateWithdrawFromAccountId">;
102
+ }, "editBillView/updateWithdrawFromAccountId">, removeBillFileFromLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
103
+ billId?: ID;
104
+ }, "editBillView/removeBillFileFromLocalStore">, replaceBillFileInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
105
+ file: InvoiceProcessingPayload;
106
+ billId?: ID;
107
+ }, "editBillView/replaceBillFileInLocalStore">, updateShouldReplaceBillData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
108
+ replaceBillData: boolean;
109
+ billId?: ID;
110
+ }, "editBillView/updateShouldReplaceBillData">;
91
111
  declare const _default: import("redux").Reducer<EditBillDetailViewState>;
92
112
  export default _default;
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.updateWithdrawFromAccountId = exports.updateNewAddedBillPaymentAccount = exports.discardOutsideZeniPaymentLocalData = exports.updateOutsideZeniPaymentLocalData = exports.markBillForRetry = exports.waitForVendorByIdThenSaveBillUpdatetoLocalStore = exports.fetchVendorAndUpdateBillLocalData = exports.updateHomeCurrencyConversion = exports.currencyConversionValueSuccessOrFailure = exports.convertAmountToHomeCurrency = exports.updateVendorContactSuccessOrFailure = exports.updateVendorContact = exports.updateSuggestedVendorIdFromParsedInvoice = exports.updateRecommendedVendorId = exports.updateBillUploadFetchState = exports.updateAddBillAutoFields = exports.updateShowAutofill = exports.updateInternationalTransferFeeBearerPaymentMethodInLocalData = exports.waitForVendorByNameThenParsetoLocalStore = exports.waitForBillDetailThenInitializeLocalStore = exports.clearEditBillViewDetail = exports.parseInvoiceToBill = exports.updateEditBillFetchStateCompleted = exports.saveBillSuccessOrFailure = exports.saveBillDetail = exports.discardBillUpdatesInLocalStore = exports.saveBillUpdatesToLocalStore = exports.initializeBillToLocalStore = exports.fetchVendorByNameAndParseInvoice = exports.fetchBillAndInitializeLocalStore = exports.fetchEditBillDetailPage = exports.initialState = void 0;
4
+ exports.updateShouldReplaceBillData = exports.replaceBillFileInLocalStore = exports.removeBillFileFromLocalStore = exports.updateWithdrawFromAccountId = exports.updateNewAddedBillPaymentAccount = exports.discardOutsideZeniPaymentLocalData = exports.updateOutsideZeniPaymentLocalData = exports.markBillForRetry = exports.waitForVendorByIdThenSaveBillUpdatetoLocalStore = exports.fetchVendorAndUpdateBillLocalData = exports.updateHomeCurrencyConversion = exports.currencyConversionValueSuccessOrFailure = exports.convertAmountToHomeCurrency = exports.updateVendorContactSuccessOrFailure = exports.updateVendorContact = exports.updateSuggestedVendorIdFromParsedInvoice = exports.updateRecommendedVendorId = exports.updateBillUploadFetchState = exports.updateAddBillAutoFields = exports.updateShowAutofill = exports.updateInternationalTransferFeeBearerPaymentMethodInLocalData = exports.waitForVendorByNameThenParsetoLocalStore = exports.waitForBillDetailThenInitializeLocalStore = exports.clearEditBillViewDetail = exports.parseInvoiceToBill = exports.updateEditBillFetchStateCompleted = exports.saveBillSuccessOrFailure = exports.saveBillDetail = exports.discardBillUpdatesInLocalStore = exports.saveBillUpdatesToLocalStore = exports.initializeBillToLocalStore = exports.fetchVendorByNameAndParseInvoice = exports.fetchBillAndInitializeLocalStore = exports.fetchEditBillDetailPage = exports.initialState = void 0;
5
5
  const toolkit_1 = require("@reduxjs/toolkit");
6
6
  const amount_1 = require("../../../../commonStateTypes/amount");
7
+ const attachmentPayload_1 = require("../../../../entity/transaction/payloadTypes/attachmentPayload");
7
8
  const helpers_1 = require("../../helpers");
8
9
  const billDetailViewState_1 = require("../billDetailView/billDetailViewState");
9
10
  const editBillViewState_1 = require("./editBillViewState");
@@ -62,26 +63,41 @@ const editBillView = (0, toolkit_1.createSlice)({
62
63
  },
63
64
  },
64
65
  fetchVendorByNameAndParseInvoice: {
65
- reducer(draft) {
66
- draft.newBillState.uploadFetchState = {
67
- fetchState: 'In-Progress',
68
- error: undefined,
69
- };
66
+ reducer(draft, action) {
67
+ const { billId } = action.payload;
68
+ if (billId != null) {
69
+ const key = (0, billDetailViewState_1.getBillTransactionDetailKey)(billId);
70
+ draft.editBillStateById[key].uploadFetchState = {
71
+ fetchState: 'In-Progress',
72
+ error: undefined,
73
+ };
74
+ }
75
+ else {
76
+ draft.newBillState.uploadFetchState = {
77
+ fetchState: 'In-Progress',
78
+ error: undefined,
79
+ };
80
+ }
70
81
  },
71
- prepare(invoiceProcessingPayload, isVendorRecommendationFeatureEnabled) {
82
+ prepare(invoiceProcessingPayload, isVendorRecommendationFeatureEnabled, billId) {
72
83
  return {
73
84
  payload: {
74
85
  invoiceProcessingPayload,
75
86
  isVendorRecommendationFeatureEnabled,
87
+ billId,
76
88
  },
77
89
  };
78
90
  },
79
91
  },
80
92
  updateBillUploadFetchState(draft, action) {
81
- draft.newBillState.uploadFetchState = {
82
- fetchState: action.payload.fetchState,
83
- error: action.payload.error,
84
- };
93
+ const { fetchState, billId } = action.payload;
94
+ if (billId != null) {
95
+ const billKey = (0, billDetailViewState_1.getBillTransactionDetailKey)(billId);
96
+ draft.editBillStateById[billKey].uploadFetchState = fetchState;
97
+ }
98
+ else {
99
+ draft.newBillState.uploadFetchState = fetchState;
100
+ }
85
101
  },
86
102
  updateEditBillFetchStateCompleted(draft, action) {
87
103
  const { billId } = action.payload;
@@ -211,11 +227,12 @@ const editBillView = (0, toolkit_1.createSlice)({
211
227
  reducer() {
212
228
  // do nothing
213
229
  },
214
- prepare(invoiceProcessingPayload, isVendorRecommendationFeatureEnabled) {
230
+ prepare(invoiceProcessingPayload, isVendorRecommendationFeatureEnabled, billId) {
215
231
  return {
216
232
  payload: {
217
233
  invoiceProcessingPayload,
218
234
  isVendorRecommendationFeatureEnabled,
235
+ billId,
219
236
  },
220
237
  };
221
238
  },
@@ -224,11 +241,12 @@ const editBillView = (0, toolkit_1.createSlice)({
224
241
  reducer() {
225
242
  // do nothing
226
243
  },
227
- prepare(invoiceProcessingPayload, isVendorRecommendationFeatureEnabled) {
244
+ prepare(invoiceProcessingPayload, isVendorRecommendationFeatureEnabled, billId) {
228
245
  return {
229
246
  payload: {
230
247
  invoiceProcessingPayload,
231
248
  isVendorRecommendationFeatureEnabled,
249
+ billId,
232
250
  },
233
251
  };
234
252
  },
@@ -250,10 +268,25 @@ const editBillView = (0, toolkit_1.createSlice)({
250
268
  draft.newBillState.showSkipAutofill = action.payload;
251
269
  },
252
270
  updateAddBillAutoFields(draft, action) {
253
- draft.newBillState.addBillAutoFields = action.payload;
271
+ const { addBillAutoFields, billId } = action.payload;
272
+ if (billId != null) {
273
+ const billKey = (0, billDetailViewState_1.getBillTransactionDetailKey)(billId);
274
+ draft.editBillStateById[billKey].addBillAutoFields = addBillAutoFields;
275
+ }
276
+ else {
277
+ draft.newBillState.addBillAutoFields = addBillAutoFields;
278
+ }
254
279
  },
255
280
  updateSuggestedVendorIdFromParsedInvoice(draft, action) {
256
- draft.newBillState.suggestedVendorIdFromParsedInvoice = action.payload;
281
+ const { vendorId, billId } = action.payload;
282
+ if (billId != null) {
283
+ const billKey = (0, billDetailViewState_1.getBillTransactionDetailKey)(billId);
284
+ draft.editBillStateById[billKey].suggestedVendorIdFromParsedInvoice =
285
+ vendorId;
286
+ }
287
+ else {
288
+ draft.newBillState.suggestedVendorIdFromParsedInvoice = vendorId;
289
+ }
257
290
  },
258
291
  updateRecommendedVendorId(draft, action) {
259
292
  draft.newBillState.billDetailLocalData.recommendedVendorId =
@@ -384,12 +417,52 @@ const editBillView = (0, toolkit_1.createSlice)({
384
417
  }
385
418
  }
386
419
  },
420
+ updateShouldReplaceBillData(draft, action) {
421
+ const { replaceBillData, billId } = action.payload;
422
+ if (billId != null) {
423
+ const billKey = (0, billDetailViewState_1.getBillTransactionDetailKey)(billId);
424
+ draft.editBillStateById[billKey].replaceBillData = replaceBillData;
425
+ }
426
+ else {
427
+ draft.newBillState.replaceBillData = replaceBillData;
428
+ }
429
+ },
430
+ removeBillFileFromLocalStore(draft, action) {
431
+ const { billId } = action.payload;
432
+ if (billId != null) {
433
+ const billKey = (0, billDetailViewState_1.getBillTransactionDetailKey)(billId);
434
+ draft.editBillStateById[billKey].billDetailLocalData.file = undefined;
435
+ }
436
+ else {
437
+ draft.newBillState.billDetailLocalData.file = undefined;
438
+ }
439
+ },
440
+ replaceBillFileInLocalStore(draft, action) {
441
+ var _a;
442
+ const { billId, file } = action.payload;
443
+ const updatedFile = ((_a = file.files) === null || _a === void 0 ? void 0 : _a[0]) ? (0, attachmentPayload_1.mapFileToAttachment)(file.files[0]) : undefined;
444
+ if (billId != null) {
445
+ const billKey = (0, billDetailViewState_1.getBillTransactionDetailKey)(billId);
446
+ draft.editBillStateById[billKey].billDetailLocalData.file = updatedFile;
447
+ draft.editBillStateById[billKey].uploadFetchState = {
448
+ fetchState: 'Completed',
449
+ error: undefined,
450
+ };
451
+ }
452
+ else {
453
+ draft.newBillState.billDetailLocalData.file = updatedFile;
454
+ draft.newBillState.uploadFetchState = {
455
+ fetchState: 'Completed',
456
+ error: undefined,
457
+ };
458
+ }
459
+ },
387
460
  clearEditBillViewDetail(draft) {
388
461
  Object.assign(draft, exports.initialState);
389
462
  },
390
463
  },
391
464
  });
392
- _a = editBillView.actions, exports.fetchEditBillDetailPage = _a.fetchEditBillDetailPage, exports.fetchBillAndInitializeLocalStore = _a.fetchBillAndInitializeLocalStore, exports.fetchVendorByNameAndParseInvoice = _a.fetchVendorByNameAndParseInvoice, exports.initializeBillToLocalStore = _a.initializeBillToLocalStore, exports.saveBillUpdatesToLocalStore = _a.saveBillUpdatesToLocalStore, exports.discardBillUpdatesInLocalStore = _a.discardBillUpdatesInLocalStore, exports.saveBillDetail = _a.saveBillDetail, exports.saveBillSuccessOrFailure = _a.saveBillSuccessOrFailure, exports.updateEditBillFetchStateCompleted = _a.updateEditBillFetchStateCompleted, exports.parseInvoiceToBill = _a.parseInvoiceToBill, exports.clearEditBillViewDetail = _a.clearEditBillViewDetail, exports.waitForBillDetailThenInitializeLocalStore = _a.waitForBillDetailThenInitializeLocalStore, exports.waitForVendorByNameThenParsetoLocalStore = _a.waitForVendorByNameThenParsetoLocalStore, exports.updateInternationalTransferFeeBearerPaymentMethodInLocalData = _a.updateInternationalTransferFeeBearerPaymentMethodInLocalData, exports.updateShowAutofill = _a.updateShowAutofill, exports.updateAddBillAutoFields = _a.updateAddBillAutoFields, exports.updateBillUploadFetchState = _a.updateBillUploadFetchState, exports.updateRecommendedVendorId = _a.updateRecommendedVendorId, exports.updateSuggestedVendorIdFromParsedInvoice = _a.updateSuggestedVendorIdFromParsedInvoice, exports.updateVendorContact = _a.updateVendorContact, exports.updateVendorContactSuccessOrFailure = _a.updateVendorContactSuccessOrFailure, exports.convertAmountToHomeCurrency = _a.convertAmountToHomeCurrency, exports.currencyConversionValueSuccessOrFailure = _a.currencyConversionValueSuccessOrFailure, exports.updateHomeCurrencyConversion = _a.updateHomeCurrencyConversion, exports.fetchVendorAndUpdateBillLocalData = _a.fetchVendorAndUpdateBillLocalData, exports.waitForVendorByIdThenSaveBillUpdatetoLocalStore = _a.waitForVendorByIdThenSaveBillUpdatetoLocalStore, exports.markBillForRetry = _a.markBillForRetry, exports.updateOutsideZeniPaymentLocalData = _a.updateOutsideZeniPaymentLocalData, exports.discardOutsideZeniPaymentLocalData = _a.discardOutsideZeniPaymentLocalData, exports.updateNewAddedBillPaymentAccount = _a.updateNewAddedBillPaymentAccount, exports.updateWithdrawFromAccountId = _a.updateWithdrawFromAccountId;
465
+ _a = editBillView.actions, exports.fetchEditBillDetailPage = _a.fetchEditBillDetailPage, exports.fetchBillAndInitializeLocalStore = _a.fetchBillAndInitializeLocalStore, exports.fetchVendorByNameAndParseInvoice = _a.fetchVendorByNameAndParseInvoice, exports.initializeBillToLocalStore = _a.initializeBillToLocalStore, exports.saveBillUpdatesToLocalStore = _a.saveBillUpdatesToLocalStore, exports.discardBillUpdatesInLocalStore = _a.discardBillUpdatesInLocalStore, exports.saveBillDetail = _a.saveBillDetail, exports.saveBillSuccessOrFailure = _a.saveBillSuccessOrFailure, exports.updateEditBillFetchStateCompleted = _a.updateEditBillFetchStateCompleted, exports.parseInvoiceToBill = _a.parseInvoiceToBill, exports.clearEditBillViewDetail = _a.clearEditBillViewDetail, exports.waitForBillDetailThenInitializeLocalStore = _a.waitForBillDetailThenInitializeLocalStore, exports.waitForVendorByNameThenParsetoLocalStore = _a.waitForVendorByNameThenParsetoLocalStore, exports.updateInternationalTransferFeeBearerPaymentMethodInLocalData = _a.updateInternationalTransferFeeBearerPaymentMethodInLocalData, exports.updateShowAutofill = _a.updateShowAutofill, exports.updateAddBillAutoFields = _a.updateAddBillAutoFields, exports.updateBillUploadFetchState = _a.updateBillUploadFetchState, exports.updateRecommendedVendorId = _a.updateRecommendedVendorId, exports.updateSuggestedVendorIdFromParsedInvoice = _a.updateSuggestedVendorIdFromParsedInvoice, exports.updateVendorContact = _a.updateVendorContact, exports.updateVendorContactSuccessOrFailure = _a.updateVendorContactSuccessOrFailure, exports.convertAmountToHomeCurrency = _a.convertAmountToHomeCurrency, exports.currencyConversionValueSuccessOrFailure = _a.currencyConversionValueSuccessOrFailure, exports.updateHomeCurrencyConversion = _a.updateHomeCurrencyConversion, exports.fetchVendorAndUpdateBillLocalData = _a.fetchVendorAndUpdateBillLocalData, exports.waitForVendorByIdThenSaveBillUpdatetoLocalStore = _a.waitForVendorByIdThenSaveBillUpdatetoLocalStore, exports.markBillForRetry = _a.markBillForRetry, exports.updateOutsideZeniPaymentLocalData = _a.updateOutsideZeniPaymentLocalData, exports.discardOutsideZeniPaymentLocalData = _a.discardOutsideZeniPaymentLocalData, exports.updateNewAddedBillPaymentAccount = _a.updateNewAddedBillPaymentAccount, exports.updateWithdrawFromAccountId = _a.updateWithdrawFromAccountId, exports.removeBillFileFromLocalStore = _a.removeBillFileFromLocalStore, exports.replaceBillFileInLocalStore = _a.replaceBillFileInLocalStore, exports.updateShouldReplaceBillData = _a.updateShouldReplaceBillData;
393
466
  exports.default = editBillView.reducer;
394
467
  function doUpdateRecurringBillLocalData(billDetail, currentConfig, prevConfig) {
395
468
  var _a, _b, _c, _d;
@@ -19,6 +19,7 @@ export interface EditBillDetail {
19
19
  saveStatus: FetchStateAndError;
20
20
  billId?: ID;
21
21
  showSkipAutofill: boolean;
22
+ replaceBillData: boolean;
22
23
  addBillAutoFields: AddBillAutoFields;
23
24
  billDetailLocalData: BillDetailLocalData;
24
25
  uploadFetchState: FetchStateAndError;
@@ -41,6 +41,7 @@ exports.initialBillDetail = {
41
41
  isRecurring: false,
42
42
  },
43
43
  showSkipAutofill: true,
44
+ replaceBillData: false,
44
45
  addBillAutoFields: {
45
46
  vendor: '',
46
47
  isVendorWithNewCurrency: false,
@@ -9,6 +9,7 @@ export declare const waitForVendorByNameThenParsetoLocalStoreEpic: (actions$: Ac
9
9
  payload: {
10
10
  invoiceProcessingPayload: import("../editBillViewPayload").InvoiceProcessingPayload;
11
11
  isVendorRecommendationFeatureEnabled: boolean;
12
+ billId: string | undefined;
12
13
  };
13
14
  type: "editBillView/parseInvoiceToBill";
14
15
  }>;
@@ -9,7 +9,7 @@ const editBillViewReducer_1 = require("../editBillViewReducer");
9
9
  const fetchVendorByNameAndParseInvoiceEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(editBillViewReducer_1.fetchVendorByNameAndParseInvoice.match), (0, operators_1.mergeMap)((action) => {
10
10
  var _a;
11
11
  const fetchActions = [];
12
- const { invoiceProcessingPayload, isVendorRecommendationFeatureEnabled } = action.payload;
12
+ const { invoiceProcessingPayload, isVendorRecommendationFeatureEnabled, billId, } = action.payload;
13
13
  const vendorNameFromInvoice = invoiceProcessingPayload.vendors.length > 0
14
14
  ? ((_a = invoiceProcessingPayload.vendors[0].vendor_name) !== null && _a !== void 0 ? _a : '')
15
15
  : '';
@@ -18,10 +18,13 @@ const fetchVendorByNameAndParseInvoiceEpic = (actions$, state$) => actions$.pipe
18
18
  .map((vendor) => vendor.name.toLowerCase())
19
19
  .includes(vendorNameFromInvoice.toLowerCase());
20
20
  if (isVendorMatch === true || vendorNameFromInvoice.length === 0) {
21
- fetchActions.push((0, editBillViewReducer_1.parseInvoiceToBill)(invoiceProcessingPayload, isVendorRecommendationFeatureEnabled));
21
+ fetchActions.push((0, editBillViewReducer_1.parseInvoiceToBill)(invoiceProcessingPayload, isVendorRecommendationFeatureEnabled, billId));
22
22
  }
23
23
  else if (vendorList.fetchStateBillsTab.fetchState !== 'In-Progress') {
24
- fetchActions.push((0, vendorListReducer_1.fetchVendorsList)(vendorNameFromInvoice), (0, editBillViewReducer_1.waitForVendorByNameThenParsetoLocalStore)(invoiceProcessingPayload, isVendorRecommendationFeatureEnabled));
24
+ fetchActions.push((0, vendorListReducer_1.fetchVendorsList)({
25
+ searchString: vendorNameFromInvoice,
26
+ billId,
27
+ }), (0, editBillViewReducer_1.waitForVendorByNameThenParsetoLocalStore)(invoiceProcessingPayload, isVendorRecommendationFeatureEnabled, billId));
25
28
  }
26
29
  return (0, rxjs_1.from)(fetchActions);
27
30
  }));
@@ -29,11 +32,11 @@ exports.fetchVendorByNameAndParseInvoiceEpic = fetchVendorByNameAndParseInvoiceE
29
32
  const waitForVendorByNameThenParsetoLocalStoreEpic = (actions$,
30
33
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
31
34
  _) => actions$.pipe((0, operators_1.filter)(editBillViewReducer_1.waitForVendorByNameThenParsetoLocalStore.match), (0, operators_1.switchMap)((action) => {
32
- const { invoiceProcessingPayload, isVendorRecommendationFeatureEnabled } = action.payload;
35
+ const { invoiceProcessingPayload, isVendorRecommendationFeatureEnabled, billId, } = action.payload;
33
36
  return actions$.pipe((0, operators_1.filter)((value) => vendorListReducer_1.updateVendorsList.match(value) ||
34
37
  vendorListReducer_1.updateVendorListFailure.match(value)), (0, operators_1.take)(1), // don't listen forever! IMPORTANT!
35
38
  (0, operators_1.mergeMap)(() => {
36
- return (0, rxjs_1.of)((0, editBillViewReducer_1.parseInvoiceToBill)(invoiceProcessingPayload, isVendorRecommendationFeatureEnabled));
39
+ return (0, rxjs_1.of)((0, editBillViewReducer_1.parseInvoiceToBill)(invoiceProcessingPayload, isVendorRecommendationFeatureEnabled, billId));
37
40
  }));
38
41
  }));
39
42
  exports.waitForVendorByNameThenParsetoLocalStoreEpic = waitForVendorByNameThenParsetoLocalStoreEpic;
@@ -20,6 +20,7 @@ const accountListSelector_1 = require("../../../../accountList/accountListSelect
20
20
  const classListSelector_1 = require("../../../../classList/classListSelector");
21
21
  const vendorListSelector_1 = require("../../../../vendorList/vendorListSelector");
22
22
  const helpers_1 = require("../../../helpers");
23
+ const billDetailViewState_1 = require("../../billDetailView/billDetailViewState");
23
24
  const billPayConfigPayload_1 = require("../../billPayConfig/billPayConfigPayload");
24
25
  const billPayConfigSelector_1 = require("../../billPayConfig/billPayConfigSelector");
25
26
  const billPayConfigState_1 = require("../../billPayConfig/billPayConfigState");
@@ -31,16 +32,32 @@ const editBillViewState_1 = require("../editBillViewState");
31
32
  const initializeBillToLocalStoreEpic_1 = require("./initializeBillToLocalStoreEpic");
32
33
  const parseInvoiceToBillEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(editBillViewReducer_1.parseInvoiceToBill.match), (0, operators_1.mergeMap)((action) => {
33
34
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
34
- const { invoiceProcessingPayload, isVendorRecommendationFeatureEnabled } = action.payload;
35
+ const { invoiceProcessingPayload, isVendorRecommendationFeatureEnabled, billId, } = action.payload;
35
36
  const state = state$.value;
36
- const showSkipAutofill = state.editBillDetailViewState.newBillState.showSkipAutofill;
37
- if (!showSkipAutofill) {
37
+ const billKey = billId != null ? (0, billDetailViewState_1.getBillTransactionDetailKey)(billId) : null;
38
+ const editBillState = billKey != null
39
+ ? state.editBillDetailViewState.editBillStateById[billKey]
40
+ : null;
41
+ const showSkipAutofill = billKey != null && editBillState != null
42
+ ? editBillState.showSkipAutofill
43
+ : state.editBillDetailViewState.newBillState.showSkipAutofill;
44
+ const replaceBillData = billKey != null && editBillState != null
45
+ ? editBillState.replaceBillData
46
+ : state.editBillDetailViewState.newBillState.replaceBillData;
47
+ if (!showSkipAutofill && !replaceBillData) {
38
48
  const file = (0, attachmentPayload_1.mapFileToAttachment)(invoiceProcessingPayload.files[0]);
39
49
  return (0, rxjs_1.of)((0, editBillViewReducer_1.saveBillUpdatesToLocalStore)({
40
50
  billDetailLocalData: Object.assign(Object.assign({}, editBillViewState_1.initialBillDetail.billDetailLocalData), { file: file }),
41
- }), (0, editBillViewReducer_1.updateAddBillAutoFields)(editBillViewState_1.initialBillDetail.addBillAutoFields), (0, editBillViewReducer_1.updateBillUploadFetchState)({
42
- fetchState: 'Completed',
43
- error: undefined,
51
+ billId,
52
+ }), (0, editBillViewReducer_1.updateAddBillAutoFields)({
53
+ addBillAutoFields: editBillViewState_1.initialBillDetail.addBillAutoFields,
54
+ billId,
55
+ }), (0, editBillViewReducer_1.updateBillUploadFetchState)({
56
+ fetchState: {
57
+ fetchState: 'Completed',
58
+ error: undefined,
59
+ },
60
+ billId,
44
61
  }));
45
62
  }
46
63
  else {
@@ -63,8 +80,10 @@ const parseInvoiceToBillEpic = (actions$, state$) => actions$.pipe((0, operators
63
80
  //get suggestedVendorIdFromParsedInvoice
64
81
  //search vendor with this vendor id
65
82
  //check match score if it is greater than 85 assign it as final vendor
66
- const suggestedVendorIdFromParsedInvoice = state.editBillDetailViewState.newBillState
67
- .suggestedVendorIdFromParsedInvoice;
83
+ const suggestedVendorIdFromParsedInvoice = billKey != null && editBillState != null
84
+ ? editBillState.suggestedVendorIdFromParsedInvoice
85
+ : state.editBillDetailViewState.newBillState
86
+ .suggestedVendorIdFromParsedInvoice;
68
87
  if (suggestedVendorIdFromParsedInvoice != null) {
69
88
  suggestedVendor = (0, vendorSelector_1.getVendorByVendorId)(state.vendorState, suggestedVendorIdFromParsedInvoice);
70
89
  const matchScore = (_b = suggestedVendor === null || suggestedVendor === void 0 ? void 0 : suggestedVendor.matchScore) !== null && _b !== void 0 ? _b : 0;
@@ -114,26 +133,44 @@ const parseInvoiceToBillEpic = (actions$, state$) => actions$.pipe((0, operators
114
133
  }
115
134
  actions = [
116
135
  ...actions,
117
- (0, editBillViewReducer_1.saveBillUpdatesToLocalStore)({ billDetailLocalData: finalBill }),
136
+ (0, editBillViewReducer_1.saveBillUpdatesToLocalStore)({
137
+ billDetailLocalData: finalBill,
138
+ billId,
139
+ }),
118
140
  (0, previousBillsReducer_1.fetchPreviousBills)(finalVendor.qboId, false),
119
141
  (0, billPayReviewReducer_1.fetchDuplicateBill)(finalVendor.name, finalVendor.id, (_g = (_f = finalBill.totalAmount) === null || _f === void 0 ? void 0 : _f.amount) !== null && _g !== void 0 ? _g : 0, (_j = (_h = finalBill.recipientTotalAmount) === null || _h === void 0 ? void 0 : _h.amount) !== null && _j !== void 0 ? _j : 0, (_k = finalBill.whatForSection) === null || _k === void 0 ? void 0 : _k.invoiceNumber),
120
142
  (0, editBillViewReducer_1.updateShowAutofill)(false),
121
- (0, editBillViewReducer_1.updateAddBillAutoFields)(addBillAutoFields),
143
+ (0, editBillViewReducer_1.updateAddBillAutoFields)({
144
+ addBillAutoFields: addBillAutoFields,
145
+ billId,
146
+ }),
122
147
  (0, editBillViewReducer_1.updateBillUploadFetchState)({
123
- fetchState: 'Completed',
124
- error: undefined,
148
+ fetchState: {
149
+ fetchState: 'Completed',
150
+ error: undefined,
151
+ },
152
+ billId,
125
153
  }),
126
154
  ];
127
155
  return (0, rxjs_1.from)(actions);
128
156
  }
129
157
  else {
130
158
  const actions = [
131
- (0, editBillViewReducer_1.saveBillUpdatesToLocalStore)({ billDetailLocalData: finalBill }),
159
+ (0, editBillViewReducer_1.saveBillUpdatesToLocalStore)({
160
+ billDetailLocalData: finalBill,
161
+ billId,
162
+ }),
132
163
  (0, editBillViewReducer_1.updateShowAutofill)(false),
133
- (0, editBillViewReducer_1.updateAddBillAutoFields)(addBillAutoFields),
164
+ (0, editBillViewReducer_1.updateAddBillAutoFields)({
165
+ addBillAutoFields: addBillAutoFields,
166
+ billId,
167
+ }),
134
168
  (0, editBillViewReducer_1.updateBillUploadFetchState)({
135
- fetchState: 'Completed',
136
- error: undefined,
169
+ fetchState: {
170
+ fetchState: 'Completed',
171
+ error: undefined,
172
+ },
173
+ billId,
137
174
  }),
138
175
  ];
139
176
  if (recommendedVendorId != null && suggestedVendor != null) {
@@ -18,7 +18,7 @@ const editBillViewReducer_1 = require("../spendManagement/billPay/editBillView/e
18
18
  const vendorListReducer_1 = require("./vendorListReducer");
19
19
  const fetchVendorsListEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(vendorListReducer_1.fetchVendorsList.match), (0, operators_1.switchMap)((action) => {
20
20
  let apiUrl = `${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/vendors`;
21
- const { searchString, keepExistingListItems, view, pageToken } = action.payload;
21
+ const { searchString, keepExistingListItems, view, pageToken, billId } = action.payload;
22
22
  const { uiState } = state$.value.vendorListState;
23
23
  const queryParam = {
24
24
  view: getVendorViewTypeToQueryParam(view),
@@ -42,7 +42,10 @@ const fetchVendorsListEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, op
42
42
  // when vendor is returned from platform for parsed vendor name, perform updateSuggestedVendorIdFromParsedInvoice with the response vendor name
43
43
  if (((_c = (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.vendors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.vendor_id) != null &&
44
44
  view == null) {
45
- actions.push((0, editBillViewReducer_1.updateSuggestedVendorIdFromParsedInvoice)((_e = (_d = response.data) === null || _d === void 0 ? void 0 : _d.vendors) === null || _e === void 0 ? void 0 : _e[0].vendor_id));
45
+ actions.push((0, editBillViewReducer_1.updateSuggestedVendorIdFromParsedInvoice)({
46
+ vendorId: (_e = (_d = response.data) === null || _d === void 0 ? void 0 : _d.vendors) === null || _e === void 0 ? void 0 : _e[0].vendor_id,
47
+ billId,
48
+ }));
46
49
  }
47
50
  actions.push(...updateAllVendorRelatedEntities((_g = (_f = response.data) === null || _f === void 0 ? void 0 : _f.vendors) !== null && _g !== void 0 ? _g : [], view), (0, vendorListReducer_1.updateVendorsList)({
48
51
  response,
@@ -1,14 +1,22 @@
1
+ import { ID } from '../../commonStateTypes/common';
1
2
  import { SortOrder } from '../../commonStateTypes/selectorTypes/sortOrderTypes';
2
3
  import { PageToken } from '../../commonStateTypes/viewAndReport/viewAndReport';
3
4
  import { ZeniAPIStatus } from '../../responsePayload';
4
5
  import { VendorListResponse } from './vendorListPayload';
5
6
  import { VendorListQuery, VendorListState, VendorListViewSortKey, VendorListViewYTDSpendSortKey, VendorViewType } from './vendorListState';
6
7
  export declare const initialState: VendorListState;
7
- export declare const fetchVendorsList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[searchString?: string | undefined, keepExistingListItems?: any, view?: "vendorsTab" | undefined, pageToken?: PageToken | undefined], {
8
+ export declare const fetchVendorsList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: {
9
+ searchString?: string;
10
+ keepExistingListItems?: boolean;
11
+ view?: VendorViewType;
12
+ pageToken?: PageToken;
13
+ billId?: ID;
14
+ }], {
8
15
  searchString: string | undefined;
9
- keepExistingListItems: any;
16
+ keepExistingListItems: boolean;
10
17
  pageToken: PageToken | undefined;
11
18
  view: "vendorsTab" | undefined;
19
+ billId: string | undefined;
12
20
  }, "vendorList/fetchVendorsList", never, never>, updateVendorsList: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
13
21
  response: VendorListResponse;
14
22
  keepExistingListItems?: boolean;
@@ -59,13 +59,15 @@ const vendorList = (0, toolkit_1.createSlice)({
59
59
  draft.uiState.pageToken = (_c = action.payload.pageToken) !== null && _c !== void 0 ? _c : null;
60
60
  draft.error = undefined;
61
61
  },
62
- prepare(searchString, keepExistingListItems = true, view, pageToken) {
62
+ prepare(payload) {
63
+ var _a;
63
64
  return {
64
65
  payload: {
65
- searchString,
66
- keepExistingListItems,
67
- pageToken,
68
- view,
66
+ searchString: payload.searchString,
67
+ keepExistingListItems: (_a = payload.keepExistingListItems) !== null && _a !== void 0 ? _a : true,
68
+ pageToken: payload.pageToken,
69
+ view: payload.view,
70
+ billId: payload.billId,
69
71
  },
70
72
  };
71
73
  },
@@ -59,7 +59,11 @@ const fetchVendorTabViewEpic = (actions$, state$) => actions$.pipe((0, operators
59
59
  if (shouldFetchVendorsList &&
60
60
  vendorsListFetchState !== 'In-Progress' &&
61
61
  vendorsListFetchState !== 'Completed') {
62
- fetchActions.push((0, vendorListReducer_1.fetchVendorsList)('', false, 'vendorsTab'));
62
+ fetchActions.push((0, vendorListReducer_1.fetchVendorsList)({
63
+ searchString: '',
64
+ keepExistingListItems: false,
65
+ view: 'vendorsTab',
66
+ }));
63
67
  }
64
68
  if (shouldFetchFiling1099Vendor &&
65
69
  vendorsFiling1099ListFetchState !== 'In-Progress' &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.16.21",
3
+ "version": "4.16.22",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",