@zeniai/client-epic-state 4.13.94 → 4.13.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/entity/billPay/recurringBills/recurringBillsState.d.ts +2 -2
- package/lib/entity/chargeCard/chargeCard.d.ts +1 -1
- package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
- package/lib/index.d.ts +3 -3
- package/lib/index.js +8 -11
- package/lib/view/addressView/epic/fetchAddressEpic.d.ts +3 -3
- package/lib/view/addressView/epic/updateAddressEpic.d.ts +3 -3
- package/lib/view/common/recurringViewHelper.d.ts +2 -2
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
- package/lib/view/companyView/types/cockpitTabsID.d.ts +1 -1
- package/lib/view/companyView/types/cockpitTypes.d.ts +2 -2
- package/lib/view/dashboard/dashboardEpic.js +2 -16
- package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.d.ts +3 -2
- package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.js +13 -1
- package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.d.ts +2 -1
- package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.js +7 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.d.ts +2 -1
- package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.js +7 -0
- package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.d.ts +5 -8
- package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.js +16 -2
- package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.d.ts +2 -1
- package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +13 -0
- package/lib/view/expenseAutomationView/helpers/helpers.d.ts +3 -0
- package/lib/view/expenseAutomationView/helpers/helpers.js +18 -1
- package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.js +1 -14
- package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +9 -8
- package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.js +11 -6
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +11 -17
- package/lib/view/people/changeZeniPersonRolesEpic.d.ts +3 -3
- package/lib/view/people/invitePeopleEpic.d.ts +12 -12
- package/lib/view/people/inviteZeniPeopleEpic.d.ts +12 -12
- package/lib/view/people/resendInviteEpic.d.ts +3 -3
- package/lib/view/reportUIOptions/updateReportUIOptionCOABalancesRangeEpic.d.ts +3 -3
- package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +1 -1
- package/lib/view/settingsView/epic/fetchMyProfileEpic.d.ts +6 -6
- package/lib/view/settingsView/settingsViewState.d.ts +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountList/fetchDepositAccountListEpic.js +0 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/fetchZeniAccountListPageEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListReducer.d.ts +1 -5
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListReducer.js +4 -19
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.d.ts +1 -2
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.js +2 -11
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListState.d.ts +1 -10
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListState.js +0 -4
- package/lib/view/subscriptionView/types/subscriptionTypes.d.ts +1 -1
- package/lib/view/topEx/topExReducer.d.ts +1 -1
- package/lib/view/topEx/topExSelector.d.ts +2 -2
- package/lib/view/topEx/topExState.d.ts +1 -1
- package/lib/view/vendorReviewView/common/state/commonTypes.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { ZeniDate } from '../../../zeniDayJS';
|
|
3
3
|
import { BillPaymentStatusCodeType, BillStage, BillStatusCodeType } from '../billTransaction/billTransactionState';
|
|
4
|
-
export declare const toRecurringBillFrequency: (v: string) => "weekly" | "
|
|
5
|
-
export declare const toRecurringBillFrequencyStrict: (v?: string | undefined) => "weekly" | "
|
|
4
|
+
export declare const toRecurringBillFrequency: (v: string) => "weekly" | "biweekly" | "monthly" | "quarterly";
|
|
5
|
+
export declare const toRecurringBillFrequencyStrict: (v?: string | undefined) => "weekly" | "biweekly" | "monthly" | "quarterly" | undefined;
|
|
6
6
|
export declare type RecurringBillFrequency = NonNullable<ReturnType<typeof toRecurringBillFrequency>>;
|
|
7
7
|
export interface RecurringBillPaymentStatus {
|
|
8
8
|
code?: BillPaymentStatusCodeType;
|
|
@@ -43,7 +43,7 @@ export interface CreditLimitFrequency {
|
|
|
43
43
|
code: CreditLimitFrequencyCodeType;
|
|
44
44
|
name: string;
|
|
45
45
|
}
|
|
46
|
-
export declare const toCreditLimitFrequencyCodeType: (v: string) => "
|
|
46
|
+
export declare const toCreditLimitFrequencyCodeType: (v: string) => "weekly" | "monthly" | "quarterly" | "daily" | "yearly";
|
|
47
47
|
export declare type CreditLimitFrequencyCodeType = ReturnType<typeof toCreditLimitFrequencyCodeType>;
|
|
48
48
|
interface CardStatus {
|
|
49
49
|
code: CardStatusCodeType;
|
|
@@ -4,7 +4,7 @@ import { VendorExpenseTrend } from './vendorExpenseTrend';
|
|
|
4
4
|
import { TimeframeTick } from '../../commonStateTypes/timeframeTick';
|
|
5
5
|
import { Month } from '../../commonStateTypes/timePeriod';
|
|
6
6
|
export declare function getVendor(vendorExpenseState: VendorExpenseState, vendorId: ID, timePeriod: TimeframeTick | undefined, firstMonthOfFY?: Month, filter?: VendorSpendTrendFilterTabType): VendorExpenseTrend | undefined;
|
|
7
|
-
declare const toVendorSpendTrendFilterTabsType: (v: string) => "last_month" | "
|
|
8
|
-
export declare const toVendorSpendTrendFilterTabsTypeStrict: (v: string) => "last_month" | "
|
|
7
|
+
declare const toVendorSpendTrendFilterTabsType: (v: string) => "last_month" | "last_3_months" | "last_6_months" | "last_12_months" | "last_year" | "last_30_days" | "variance" | "last_90_days" | "YTD_spend";
|
|
8
|
+
export declare const toVendorSpendTrendFilterTabsTypeStrict: (v: string) => "last_month" | "last_3_months" | "last_6_months" | "last_12_months" | "last_year" | "last_30_days" | "variance" | "last_90_days" | "YTD_spend" | undefined;
|
|
9
9
|
export declare type VendorSpendTrendFilterTabType = ReturnType<typeof toVendorSpendTrendFilterTabsType>;
|
|
10
10
|
export {};
|
package/lib/index.d.ts
CHANGED
|
@@ -566,7 +566,7 @@ import { fetchOwnerList } from './view/ownerList/ownerListReducer';
|
|
|
566
566
|
export { fetchEntityRecommendationsByTransactionId, fetchRecommendationByEntityId, fetchRecommendationByEntityName, };
|
|
567
567
|
export { fetchOwnerList };
|
|
568
568
|
import { getZeniAccountList, ZeniAccountListSelectorView } from './view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector';
|
|
569
|
-
import { createCheckingAccount, fetchZeniAccountList
|
|
569
|
+
import { createCheckingAccount, fetchZeniAccountList } from './view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListReducer';
|
|
570
570
|
import { DepositAccount } from './entity/depositAccount/depositAccount';
|
|
571
571
|
import { getDepositAccountDetail, DepositAccountDetailSelectorView, getDepositAccountDetailForPDF, DepositAccountDetailForPDF } from './view/spendManagement/zeniAccounts/depositAccountDetail/depositAccountDetailSelector';
|
|
572
572
|
import { DepositAccountListSelectorView, getAllDepostAccounts } from './view/spendManagement/zeniAccounts/depositAccountList/depositAccountListSelector';
|
|
@@ -580,12 +580,12 @@ import { getTransferDetail, TransferDetailSelectorView } from './view/spendManag
|
|
|
580
580
|
import { fetchDepositAccountDetail, updateDepositAccount, fetchDepositAccountHistorySuccess, fetchDepositAccountHistoryFailure, fetchDepositAccount } from './view/spendManagement/zeniAccounts/depositAccountDetail/depositAccountDetailReducer';
|
|
581
581
|
import { DepositAccountTransaction, DepositTransactionStatusCode, DepositTransactionStatus } from './entity/depositAccountTransaction/depositAccountTransaction';
|
|
582
582
|
import { fetchPaymentAccountList, unlinkPaymentAccount } from './view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountListReducer';
|
|
583
|
-
import {
|
|
583
|
+
import { ZeniAccountSummaryWithBalance } from './view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListState';
|
|
584
584
|
import { CheckDepositSelectorView, getCheckDepositDetail } from './view/spendManagement/zeniAccounts/checkDeposit/checkDepositSelector';
|
|
585
585
|
import { ZeniAccountsConfigSelectorView, getZeniAccountsConfigDetail } from './view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector';
|
|
586
586
|
import { ZeniAccStatementsSelectorView, getZeniAccStatements } from './view/zeniAccStatementList/zeniAccStatementListSelector';
|
|
587
587
|
import { fetchZeniAccStatementPage } from './view/zeniAccStatementList/zeniAccStatementListReducer';
|
|
588
|
-
export { ZeniAccountsConfigSelectorView, getZeniAccountsConfigDetail, ZeniAccountListSelectorView, getZeniAccountList, fetchZeniAccountList,
|
|
588
|
+
export { ZeniAccountsConfigSelectorView, getZeniAccountsConfigDetail, ZeniAccountListSelectorView, getZeniAccountList, fetchZeniAccountList, DepositAccount, createCheckingAccount, fetchPaymentAccountList, unlinkPaymentAccount, getDepositAccountDetail, DepositAccountDetailSelectorView, DepositAccountListSelectorView, getAllDepostAccounts, getDepositAccountDetailForPDF, DepositAccountDetailForPDF, fetchDepositAccount, fetchZeniAccountsConfig, AccountHistoryWithBalances, TransferDetailLocalData, ReviewTransferDetail, updateTransferMoneyLocalData, updateTransferToLocalData, updateDepositToLocalData, transferMoney, getTransferDetail, TransferDetailSelectorView, clearTransferDetail, clearReviewTransferDetail, fetchReviewTransferDetail, fetchDepositAccountDetail, DepositAccountTransaction, DepositTransactionStatusCode, DepositTransactionStatus, CheckDepositLocalData, depositCheck, updateCheckDepositLocalData, clearCheckDeposit, CheckDepositSelectorView, getCheckDepositDetail, updateDepositAccount, fetchDepositAccountHistorySuccess, fetchDepositAccountHistoryFailure, DepositAccountUpdateType, Statement, fetchDepositAccountTransactionList, DepositAccountTransactionListSelectorView, getDepositAccountTransactionList, ZeniAccountSummaryWithBalance, fetchZeniAccStatementPage, getZeniAccStatements, ZeniAccStatementsSelectorView, };
|
|
589
589
|
import { HistoricEvent, HistoricEventUpdate } from './view/spendManagement/commonHistoryView/commonHistory';
|
|
590
590
|
import { ActivityHistorySelectorView } from './view/spendManagement/commonHistoryView/commonHistorySelector';
|
|
591
591
|
import { ActivityRealTimeApprovalSelectorView } from './view/spendManagement/realTimeApprovalView/realTimeApprovalSelector';
|
package/lib/index.js
CHANGED
|
@@ -45,14 +45,14 @@ exports.getBillPayBusinessVerificationDetails = exports.getBusinessVerificationD
|
|
|
45
45
|
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.isSuccessResponse = exports.getRemiBusinessVerificationDetails = exports.getRemiSetupViewDetails = exports.clearRemiSetupView = exports.acceptEmployeeRemiTerms = exports.acceptRemiTerms = exports.saveRemiSetupViewDataInLocalStore = exports.updateMileageDetails = exports.fetchRemiSetupView = exports.getUserFinancialAccount = exports.fetchUserFinancialAccount = exports.getIntegrationsView = exports.getBankConnectionsSetupViewDetails = exports.getApprovalRuleViewDetails = exports.getTwoFactorAuthenticationView = exports.getCommonSetupViewDetails = exports.getZeniAccountBusinessVerificationDetails = void 0;
|
|
46
46
|
exports.saveOnboardingCustomerViewUpdateData = exports.clearOnboardingCustomerViewUpdateData = exports.initializeOnboardingCustomerViewUpdateData = exports.getOnboardingEmailGroup = exports.getNewOnboardingCustomerView = exports.getOnboardingCockpitView = exports.toProductTypeStrict = exports.toProductType = exports.saveOnboardingCustomerCompletedStatus = exports.fetchOnboardingCompletedCompanies = exports.fetchCompanyOnboardingView = exports.PAYMENT_BUSINESS_DAYS = exports.holidaysFormatted = 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.clearTentativeMerchantName = exports.updateTentativeMerchantNames = exports.updateUploadFetchState = exports.updateAddRemiAutoFields = exports.clearEditRemiViewDetail = exports.parseReceiptsToRemi = exports.saveRemiSuccessOrFailure = exports.saveRemiDetail = exports.removeFileFromRemiUpdatesInLocalStore = exports.discardRemiUpdatesInLocalStore = exports.fetchCurrencyConversionValue = exports.saveRemiUpdatesToLocalStore = exports.initializeRemiToLocalStore = exports.fetchRemiAndInitializeLocalStore = exports.fetchRecommendationsAndUpdateMerchantRecommendations = exports.fetchEditRemiDetailPage = exports.getEditRemiDetail = exports.removeDuplicateReimbursementByLineId = exports.clearDuplicateReimbursementDetail = exports.fetchDuplicateReimbursement = exports.clearRemiDetailView = void 0;
|
|
47
47
|
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.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;
|
|
48
|
-
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.getZeniAccStatements = exports.fetchZeniAccStatementPage = exports.getDepositAccountTransactionList = exports.fetchDepositAccountTransactionList = exports.fetchDepositAccountHistoryFailure = exports.fetchDepositAccountHistorySuccess = exports.updateDepositAccount = exports.getCheckDepositDetail = exports.clearCheckDeposit = exports.updateCheckDepositLocalData = exports.depositCheck = exports.
|
|
49
|
-
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.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 =
|
|
50
|
-
exports.startCVVActivationWait = exports.completeCVVActivationWait = exports.fetchChargeCardTransactionAttachments = exports.updateChargeCardTransactionIsViewReceiptClicked = exports.updateChargeCardTransactionReceiptsShowTickFetchStatus = 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.getCashbackDetail = exports.toChargeCardSortKeyType = exports.fetchCashbackDetail = exports.fetchChargeCardTransactionList = exports.getChargeCardCVVActivateView = exports.getChargeCardTransactionAttachmentView = exports.getChargeCardDetailView = exports.fetchChargeCardDetailPage = exports.getCreditAccount = exports.getMyChargeCardListWithShippingAddress = exports.getMyPendingActivationChargeCardListView = exports.getChargeCardListView = exports.fetchCreditAccount = exports.fetchChargeCardConfig = exports.fetchChargeCardListPage = exports.fetchChargeCardList = exports.getChargeCardBusinessVerificationDetails = exports.companyHealthMetricDropDownOptions =
|
|
51
|
-
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 = 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.clearExpenseAutomationJEScheduleLocalData = exports.ignoreExpenseAutomationJESchedule = exports.fetchExpenseAutomationJESchedulesPage = exports.clearExpenseAutomationJESchedulesView = exports.updateApAgingDetailUIState = exports.getApAgingDetailForVendor = exports.fetchApAgingDetail = exports.updateApAgingUIState = exports.getApAgingReport = exports.fetchApAging = exports.anyCardOnHold = exports.setCurrentDisplayedCardId = exports.setFirstViewCompleteAfterActivation = exports.setFirstViewAfterActivation = exports.completeCardUserOnboardingActivationWait = exports.startCardUserOnboardingActivationWait =
|
|
52
|
-
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 = 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 =
|
|
53
|
-
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 = 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 =
|
|
54
|
-
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 = 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.convertHHMMStrToMinutes = exports.updateTaskFromListView = exports.toDueDateGroupKeyType =
|
|
55
|
-
exports.getIntlWireVerificationView = exports.updateVerificationFormLocalData = exports.submitInternationalVerificationForm = exports.fetchInternationalVerificationForm = 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 =
|
|
48
|
+
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.getZeniAccStatements = exports.fetchZeniAccStatementPage = exports.getDepositAccountTransactionList = exports.fetchDepositAccountTransactionList = 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.getAllDepostAccounts = exports.getDepositAccountDetail = exports.unlinkPaymentAccount = exports.fetchPaymentAccountList = exports.createCheckingAccount = void 0;
|
|
49
|
+
exports.hasCompanyHealthMetricFormFieldChanged = exports.getCompanyHealthMetricView = 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.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;
|
|
50
|
+
exports.revokeCardInvite = exports.resendCardInvite = exports.startCVVActivationWait = exports.completeCVVActivationWait = exports.fetchChargeCardTransactionAttachments = exports.updateChargeCardTransactionIsViewReceiptClicked = exports.updateChargeCardTransactionReceiptsShowTickFetchStatus = 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.getCashbackDetail = exports.toChargeCardSortKeyType = exports.fetchCashbackDetail = exports.fetchChargeCardTransactionList = exports.getChargeCardCVVActivateView = exports.getChargeCardTransactionAttachmentView = exports.getChargeCardDetailView = exports.fetchChargeCardDetailPage = exports.getCreditAccount = exports.getMyChargeCardListWithShippingAddress = exports.getMyPendingActivationChargeCardListView = exports.getChargeCardListView = exports.fetchCreditAccount = exports.fetchChargeCardConfig = exports.fetchChargeCardListPage = exports.fetchChargeCardList = exports.getChargeCardBusinessVerificationDetails = exports.companyHealthMetricDropDownOptions = void 0;
|
|
51
|
+
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 = 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.clearExpenseAutomationJEScheduleLocalData = exports.ignoreExpenseAutomationJESchedule = exports.fetchExpenseAutomationJESchedulesPage = exports.clearExpenseAutomationJESchedulesView = exports.updateApAgingDetailUIState = exports.getApAgingDetailForVendor = exports.fetchApAgingDetail = exports.updateApAgingUIState = exports.getApAgingReport = exports.fetchApAging = exports.anyCardOnHold = exports.setCurrentDisplayedCardId = exports.setFirstViewCompleteAfterActivation = exports.setFirstViewAfterActivation = exports.completeCardUserOnboardingActivationWait = exports.startCardUserOnboardingActivationWait = void 0;
|
|
52
|
+
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 = 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 = void 0;
|
|
53
|
+
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 = 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 = void 0;
|
|
54
|
+
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 = 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.convertHHMMStrToMinutes = exports.updateTaskFromListView = exports.toDueDateGroupKeyType = void 0;
|
|
55
|
+
exports.getIntlWireVerificationView = exports.updateVerificationFormLocalData = exports.submitInternationalVerificationForm = exports.fetchInternationalVerificationForm = 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 = void 0;
|
|
56
56
|
const zeniDayJS_1 = require("./zeniDayJS");
|
|
57
57
|
Object.defineProperty(exports, "Dayjs", { enumerable: true, get: function () { return zeniDayJS_1.Dayjs; } });
|
|
58
58
|
Object.defineProperty(exports, "updateZeniDateLocaleID", { enumerable: true, get: function () { return zeniDayJS_1.updateZeniDateLocaleID; } });
|
|
@@ -1258,7 +1258,6 @@ Object.defineProperty(exports, "getZeniAccountList", { enumerable: true, get: fu
|
|
|
1258
1258
|
const zeniAccountListReducer_1 = require("./view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListReducer");
|
|
1259
1259
|
Object.defineProperty(exports, "createCheckingAccount", { enumerable: true, get: function () { return zeniAccountListReducer_1.createCheckingAccount; } });
|
|
1260
1260
|
Object.defineProperty(exports, "fetchZeniAccountList", { enumerable: true, get: function () { return zeniAccountListReducer_1.fetchZeniAccountList; } });
|
|
1261
|
-
Object.defineProperty(exports, "updateZeniAccountListTab", { enumerable: true, get: function () { return zeniAccountListReducer_1.updateSubTab; } });
|
|
1262
1261
|
const depositAccountDetailSelector_1 = require("./view/spendManagement/zeniAccounts/depositAccountDetail/depositAccountDetailSelector");
|
|
1263
1262
|
Object.defineProperty(exports, "getDepositAccountDetail", { enumerable: true, get: function () { return depositAccountDetailSelector_1.getDepositAccountDetail; } });
|
|
1264
1263
|
Object.defineProperty(exports, "getDepositAccountDetailForPDF", { enumerable: true, get: function () { return depositAccountDetailSelector_1.getDepositAccountDetailForPDF; } });
|
|
@@ -1289,8 +1288,6 @@ Object.defineProperty(exports, "fetchDepositAccount", { enumerable: true, get: f
|
|
|
1289
1288
|
const paymentAccountListReducer_1 = require("./view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountListReducer");
|
|
1290
1289
|
Object.defineProperty(exports, "fetchPaymentAccountList", { enumerable: true, get: function () { return paymentAccountListReducer_1.fetchPaymentAccountList; } });
|
|
1291
1290
|
Object.defineProperty(exports, "unlinkPaymentAccount", { enumerable: true, get: function () { return paymentAccountListReducer_1.unlinkPaymentAccount; } });
|
|
1292
|
-
const zeniAccountListState_1 = require("./view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListState");
|
|
1293
|
-
Object.defineProperty(exports, "ZENI_ACCOUNTS_TAB", { enumerable: true, get: function () { return zeniAccountListState_1.ZENI_ACCOUNTS_TAB; } });
|
|
1294
1291
|
const checkDepositSelector_1 = require("./view/spendManagement/zeniAccounts/checkDeposit/checkDepositSelector");
|
|
1295
1292
|
Object.defineProperty(exports, "getCheckDepositDetail", { enumerable: true, get: function () { return checkDepositSelector_1.getCheckDepositDetail; } });
|
|
1296
1293
|
const zeniAccountsConfigSelector_1 = require("./view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector");
|
|
@@ -7,13 +7,13 @@ export declare type ActionType = ReturnType<typeof fetchAddress> | ReturnType<ty
|
|
|
7
7
|
export declare const fetchAddressEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
8
8
|
payload: string;
|
|
9
9
|
type: string;
|
|
10
|
-
} | {
|
|
11
|
-
payload: import("../../../entity/address/addressPayload").AddressPayload[];
|
|
12
|
-
type: string;
|
|
13
10
|
} | {
|
|
14
11
|
payload: {
|
|
15
12
|
addressId: string;
|
|
16
13
|
status: import("../../../responsePayload").ZeniAPIStatus<Record<string, unknown>>;
|
|
17
14
|
};
|
|
18
15
|
type: string;
|
|
16
|
+
} | {
|
|
17
|
+
payload: import("../../../entity/address/addressPayload").AddressPayload[];
|
|
18
|
+
type: string;
|
|
19
19
|
}>;
|
|
@@ -7,13 +7,13 @@ export declare type ActionType = ReturnType<typeof updateAddress> | ReturnType<t
|
|
|
7
7
|
export declare const updateAddressEpic: (actions$: ActionsObservable<ActionType>, _: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
8
8
|
payload: string;
|
|
9
9
|
type: string;
|
|
10
|
-
} | {
|
|
11
|
-
payload: import("../../../entity/address/addressPayload").AddressPayload[];
|
|
12
|
-
type: string;
|
|
13
10
|
} | {
|
|
14
11
|
payload: {
|
|
15
12
|
addressId: string;
|
|
16
13
|
status: import("../../../responsePayload").ZeniAPIStatus<Record<string, unknown>>;
|
|
17
14
|
};
|
|
18
15
|
type: string;
|
|
16
|
+
} | {
|
|
17
|
+
payload: import("../../../entity/address/addressPayload").AddressPayload[];
|
|
18
|
+
type: string;
|
|
19
19
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ZeniDate } from '../../zeniDayJS';
|
|
2
|
-
export declare const toRecurringFrequency: (v: string) => "
|
|
3
|
-
export declare const toRecurringFrequencyStrict: (v?: string | undefined) => "
|
|
2
|
+
export declare const toRecurringFrequency: (v: string) => "weekly" | "biweekly" | "monthly" | "quarterly" | "daily";
|
|
3
|
+
export declare const toRecurringFrequencyStrict: (v?: string | undefined) => "weekly" | "biweekly" | "monthly" | "quarterly" | "daily" | undefined;
|
|
4
4
|
export declare type RecurringFrequencyType = NonNullable<ReturnType<typeof toRecurringFrequency>>;
|
|
5
5
|
declare const toRecurringDatePickerOptions: (v: string) => "date" | "recurringCount";
|
|
6
6
|
export declare type RecurringDatePickerOptions = NonNullable<ReturnType<typeof toRecurringDatePickerOptions>>;
|
|
@@ -36,8 +36,8 @@ export declare const fetchVendorsTabVendorDetails: import("@reduxjs/toolkit").Ac
|
|
|
36
36
|
}, string, never, never>, updateVendorsTabVendorAllTransactionsTabData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
37
37
|
timePeriod: TimePeriod;
|
|
38
38
|
numberOfQuartersFetched: number;
|
|
39
|
-
}, string>, resetSelectedTabType: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateSelectedTabType: import("@reduxjs/toolkit").ActionCreatorWithPayload<"spend_transactions" | "all_transactions", string>, updateVendorSpendTrendFilterTabValue: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[vendorSpendTrendfilterTabValue: "last_month" | "
|
|
40
|
-
vendorSpendTrendfilterTabValue: "last_month" | "
|
|
39
|
+
}, string>, resetSelectedTabType: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateSelectedTabType: import("@reduxjs/toolkit").ActionCreatorWithPayload<"spend_transactions" | "all_transactions", string>, updateVendorSpendTrendFilterTabValue: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[vendorSpendTrendfilterTabValue: "last_month" | "last_3_months" | "last_6_months" | "last_12_months" | "last_year" | "last_30_days" | "variance" | "last_90_days" | "YTD_spend"], {
|
|
40
|
+
vendorSpendTrendfilterTabValue: "last_month" | "last_3_months" | "last_6_months" | "last_12_months" | "last_year" | "last_30_days" | "variance" | "last_90_days" | "YTD_spend";
|
|
41
41
|
}, string, never, never>, resetVendorsTabVendorAllTransactionsTabData: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateContactsInVendorTabDetailLocalData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
42
42
|
vendorId: ID;
|
|
43
43
|
localData?: Partial<VendorsTabVendorDetailLocalData> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const ALL_COCKPIT_TABS_IDS: readonly ["management", "subscription", "portfolio", "onboarding", "audit", "healthMonitor"];
|
|
2
|
-
export declare const toCockpitTabsIDStrict: (v: string) => "onboarding" | "
|
|
2
|
+
export declare const toCockpitTabsIDStrict: (v: string) => "onboarding" | "management" | "subscription" | "portfolio" | "audit" | "healthMonitor" | undefined;
|
|
3
3
|
export declare type CockpitTabsID = NonNullable<ReturnType<typeof toCockpitTabsIDStrict>>;
|
|
4
4
|
export declare type CockpitDownloadTabsID = Exclude<CockpitTabsID, 'audit'>;
|
|
5
5
|
export declare const ALL_COCKPIT_TABS_FILE_TYPES: readonly ["excel"];
|
|
@@ -3,8 +3,8 @@ import { ZeniDate } from '../../../zeniDayJS';
|
|
|
3
3
|
import { SubscriptionViewSortKey } from '../../subscriptionView/types/subscriptionTypes';
|
|
4
4
|
import { FilterCategoryValueType } from '../helpers/cockpitHelpers';
|
|
5
5
|
import { CockpitDownloadTabsID, CockpitTabsFileType } from './cockpitTabsID';
|
|
6
|
-
export declare const toPortfolioSortKeyType: (v: string) => "expenses" | "runway" | "
|
|
7
|
-
export declare const toManagementSortKeyType: (v: string) => "status" | "group" | "bookCloseDate" | "
|
|
6
|
+
export declare const toPortfolioSortKeyType: (v: string) => "expenses" | "runway" | "companyName" | "cashBalance" | "revenues" | "netIncome";
|
|
7
|
+
export declare const toManagementSortKeyType: (v: string) => "status" | "group" | "bookCloseDate" | "taxStatus" | "controller" | "preparer" | "reviewer" | "companyName" | "notes" | "plans" | "monthlyRecurringRevenue" | "annualRecurringRevenue" | "customerSuccessManager" | "task" | "apAnalyst" | "reportSent" | "taxLead" | "satisfaction";
|
|
8
8
|
export declare const toOnboardingSortKeyType: (v: string) => "companyName" | "notes" | "bankAccountLinked" | "qboLinked" | "identityVerified" | "businessVerified" | "groupCreated" | "customerCreated" | "enroller" | "invite";
|
|
9
9
|
export declare const toHealthSortKeyType: (v: string) => "group" | "runway" | "controller" | "companyName" | "monthlyRecurringRevenue" | "customerSatisfactionScore" | "netPromoterScore" | "customerSuccessManager" | "lastReportSent" | "externalProductServiceExposure" | "finOpsEngagementFrequency" | "companyEngagementMetricsUpdatedAt" | "issues" | "productVerticals" | "churnProbability" | "subscriptionDate" | "renewalDate";
|
|
10
10
|
export declare const toTaskManagerSortKeyType: (v: string) => "priority" | "name" | "status" | "dueDate" | "taskName" | "assignee" | "tags" | "createdBy";
|
|
@@ -30,21 +30,7 @@ const zeniAccountsPromoCardReducer_1 = require("../zeniAccountsPromoCard/zeniAcc
|
|
|
30
30
|
const referralReducer_1 = require("../referralView/referralReducer");
|
|
31
31
|
const monthEndCloseChecksViewReducer_1 = require("../monthEndCloseChecksView/monthEndCloseChecksViewReducer");
|
|
32
32
|
const timePeriod_1 = require("../../commonStateTypes/timePeriod");
|
|
33
|
-
const
|
|
34
|
-
const zeniDayJS_1 = require("../../zeniDayJS");
|
|
35
|
-
const getDefaultSelectedMonthAndYearForTenant = (currentTenant) => {
|
|
36
|
-
const { zeniBookCloseMonthAndYear } = currentTenant;
|
|
37
|
-
if (zeniBookCloseMonthAndYear != null) {
|
|
38
|
-
const currentDate = (0, zeniDayJS_1.date)(`${zeniBookCloseMonthAndYear.year}-${zeniBookCloseMonthAndYear.month}-01`);
|
|
39
|
-
const nextMonthDate = currentDate.add(1, 'month');
|
|
40
|
-
const nextMonthPeriod = {
|
|
41
|
-
month: (0, timePeriod_1.toMonth)(nextMonthDate.month() + 1),
|
|
42
|
-
year: nextMonthDate.year(),
|
|
43
|
-
};
|
|
44
|
-
return nextMonthPeriod;
|
|
45
|
-
}
|
|
46
|
-
return fetchAllTenantsEpic_1.defaultMonthYearPeriod;
|
|
47
|
-
};
|
|
33
|
+
const helpers_1 = require("../expenseAutomationView/helpers/helpers");
|
|
48
34
|
const fetchDashboardEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(dashboardReducer_1.fetchDashboard.match), (0, operators_1.switchMap)((action) => {
|
|
49
35
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
50
36
|
const { userId, companyId, fetchFullReport, cacheOverride, excludeResources, tenantId, } = action.payload;
|
|
@@ -56,7 +42,7 @@ const fetchDashboardEpic = (actions$, state$) => actions$.pipe((0, operators_1.f
|
|
|
56
42
|
const isInvestorBanker = (0, userRoleType_1.hasInvestorBankerLevelAccess)(currentTenant.userRole);
|
|
57
43
|
const arAgingDate = state$.value.arAgingState.uiState.selectedDate;
|
|
58
44
|
const apAgingDate = state$.value.apAgingState.uiState.selectedDate;
|
|
59
|
-
const monthEndChecksPeriod = getDefaultSelectedMonthAndYearForTenant(currentTenant);
|
|
45
|
+
const monthEndChecksPeriod = (0, helpers_1.getDefaultSelectedMonthAndYearForTenant)(currentTenant);
|
|
60
46
|
if (cacheOverride === true) {
|
|
61
47
|
const actions = [
|
|
62
48
|
(0, tenantReducer_1.fetchAllTenants)(userId),
|
|
@@ -8,5 +8,6 @@ import { updateClasses } from '../../../../entity/class/classReducer';
|
|
|
8
8
|
import { updateVendors } from '../../../../entity/vendor/vendorReducer';
|
|
9
9
|
import { updateAllUsers } from '../../../../entity/user/userReducer';
|
|
10
10
|
import { openSnackbar } from '../../../../entity/snackbar/snackbarReducer';
|
|
11
|
-
|
|
12
|
-
export declare
|
|
11
|
+
import { fetchMonthEndCloseChecks } from '../../../monthEndCloseChecksView/monthEndCloseChecksViewReducer';
|
|
12
|
+
export declare type ActionType = ReturnType<typeof reviewFluxAnalysisView> | ReturnType<typeof reviewFluxAnalysisViewSuccess> | ReturnType<typeof reviewFluxAnalysisViewFailure> | ReturnType<typeof openSnackbar> | ReturnType<typeof updateAccounts> | ReturnType<typeof updateClasses> | ReturnType<typeof updateVendors> | ReturnType<typeof updateAllUsers> | ReturnType<typeof fetchMonthEndCloseChecks>;
|
|
13
|
+
export declare const reviewFluxAnalysisViewEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -11,9 +11,12 @@ const vendorReducer_1 = require("../../../../entity/vendor/vendorReducer");
|
|
|
11
11
|
const userReducer_1 = require("../../../../entity/user/userReducer");
|
|
12
12
|
const helpers_1 = require("../../helpers/helpers");
|
|
13
13
|
const snackbarReducer_1 = require("../../../../entity/snackbar/snackbarReducer");
|
|
14
|
-
const
|
|
14
|
+
const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
|
|
15
|
+
const monthEndCloseChecksViewReducer_1 = require("../../../monthEndCloseChecksView/monthEndCloseChecksViewReducer");
|
|
16
|
+
const reviewFluxAnalysisViewEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(fluxAnalysisViewReducer_1.reviewFluxAnalysisView.match), (0, operators_1.mergeMap)((action) => {
|
|
15
17
|
const { actionType, operatingExpenseIds, selectedPeriod, isBulk } = action.payload;
|
|
16
18
|
const payload = Object.assign({}, getReviewFluxPayload(actionType, operatingExpenseIds));
|
|
19
|
+
const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state$.value);
|
|
17
20
|
return zeniAPI
|
|
18
21
|
.putAndGetJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/month-close/flux-analysis
|
|
19
22
|
`, payload)
|
|
@@ -21,6 +24,7 @@ const reviewFluxAnalysisViewEpic = (actions$, _state$, zeniAPI) => actions$.pipe
|
|
|
21
24
|
var _a, _b;
|
|
22
25
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
23
26
|
const updateActions = [];
|
|
27
|
+
// TODO - Anjali - Update the actions array (no multiple push calls)
|
|
24
28
|
updateActions.push((0, accountReducer_1.updateAccounts)(response.data.accounts, 'account_list'));
|
|
25
29
|
updateActions.push((0, classReducer_1.updateClasses)('class_list', response.data.accounting_class));
|
|
26
30
|
updateActions.push((0, vendorReducer_1.updateVendors)(response.data.vendors, 'merge'));
|
|
@@ -36,6 +40,14 @@ const reviewFluxAnalysisViewEpic = (actions$, _state$, zeniAPI) => actions$.pipe
|
|
|
36
40
|
isBulk,
|
|
37
41
|
}));
|
|
38
42
|
}
|
|
43
|
+
if (currentTenant != null) {
|
|
44
|
+
const monthEndChecksPeriod = (0, helpers_1.getDefaultSelectedMonthAndYearForTenant)(currentTenant);
|
|
45
|
+
updateActions.push((0, monthEndCloseChecksViewReducer_1.fetchMonthEndCloseChecks)({
|
|
46
|
+
tenantId: currentTenant.tenantId,
|
|
47
|
+
period: monthEndChecksPeriod,
|
|
48
|
+
refreshViewInBackground: true,
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
39
51
|
updateActions.push((0, snackbarReducer_1.openSnackbar)({
|
|
40
52
|
messageSection: actionType === 'review'
|
|
41
53
|
? 'flux_analysis_reviewed'
|
package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.d.ts
CHANGED
|
@@ -4,5 +4,6 @@ import { RootState } from '../../../../reducer';
|
|
|
4
4
|
import { updateJESchedulesDetails, updateJESchedules } from '../../../../entity/jeSchedules/jeSchedulesReducer';
|
|
5
5
|
import { ignoreRecommendedJeSchedule, ignoreRecommendedJeScheduleSuccess, ignoreRecommendedJeScheduleFailure, removeJeScheduleTransactionKey } from '../../reducers/jeSchedulesViewReducer';
|
|
6
6
|
import { openSnackbar } from '../../../../entity/snackbar/snackbarReducer';
|
|
7
|
-
|
|
7
|
+
import { fetchMonthEndCloseChecks } from '../../../monthEndCloseChecksView/monthEndCloseChecksViewReducer';
|
|
8
|
+
export declare type ActionType = ReturnType<typeof ignoreRecommendedJeSchedule> | ReturnType<typeof ignoreRecommendedJeScheduleFailure> | ReturnType<typeof ignoreRecommendedJeScheduleSuccess> | ReturnType<typeof openSnackbar> | ReturnType<typeof removeJeScheduleTransactionKey> | ReturnType<typeof updateJESchedules> | ReturnType<typeof fetchMonthEndCloseChecks> | ReturnType<typeof updateJESchedulesDetails>;
|
|
8
9
|
export declare const ignoreRecommendedJeScheduleEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<ActionType>;
|
|
@@ -10,6 +10,7 @@ const jeSchedulesSelector_1 = require("../../../../entity/jeSchedules/jeSchedule
|
|
|
10
10
|
const jeSchedulesPayload_1 = require("../../payload/jeSchedulesPayload");
|
|
11
11
|
const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
|
|
12
12
|
const snackbarReducer_1 = require("../../../../entity/snackbar/snackbarReducer");
|
|
13
|
+
const monthEndCloseChecksViewReducer_1 = require("../../../monthEndCloseChecksView/monthEndCloseChecksViewReducer");
|
|
13
14
|
const ignoreRecommendedJeScheduleEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(jeSchedulesViewReducer_1.ignoreRecommendedJeSchedule.match), (0, operators_1.mergeMap)((action) => {
|
|
14
15
|
const state = state$.value;
|
|
15
16
|
const { expenseAutomationViewState: { selectedPeriodByTenantId }, } = state;
|
|
@@ -25,9 +26,15 @@ const ignoreRecommendedJeScheduleEpic = (actions$, state$, zeniAPI) => actions$.
|
|
|
25
26
|
const ignoreScheduleApi = zeniAPI.putAndGetJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/schedules/ignore/${jeScheduleTransactionState.jeScheduleId}?query=${encodeURIComponent(JSON.stringify(queryParam))}`, payload);
|
|
26
27
|
return ignoreScheduleApi.pipe((0, operators_1.mergeMap)((response) => {
|
|
27
28
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
29
|
+
// TODO - Mohit - Update the actions array (no multiple push calls)
|
|
28
30
|
actions.push((0, jeSchedulesReducer_1.updateJESchedules)(response.data.je_schedules), (0, jeSchedulesReducer_1.updateJESchedulesDetails)(response.data.je_schedules, response.data.scheduled_journal_entries));
|
|
29
31
|
actions.push((0, jeSchedulesViewReducer_1.ignoreRecommendedJeScheduleSuccess)(jeScheduleTransactionKey));
|
|
30
32
|
actions.push((0, jeSchedulesViewReducer_1.removeJeScheduleTransactionKey)(jeScheduleTransactionKey, selectedPeriod));
|
|
33
|
+
actions.push((0, monthEndCloseChecksViewReducer_1.fetchMonthEndCloseChecks)({
|
|
34
|
+
tenantId: currentTenant.tenantId,
|
|
35
|
+
period: selectedPeriod,
|
|
36
|
+
refreshViewInBackground: true,
|
|
37
|
+
}));
|
|
31
38
|
actions.push((0, snackbarReducer_1.openSnackbar)({
|
|
32
39
|
messageSection: 'ignore_schedule',
|
|
33
40
|
messageText: 'success',
|
|
@@ -5,5 +5,6 @@ import { RootState } from '../../../../reducer';
|
|
|
5
5
|
import { updateJeScheduleTransactionKeys, removeFailedJeScheduleTransactionKey, retryJeSchedule, retryJeScheduleFailure, retryJeScheduleSuccess } from '../../reducers/jeSchedulesViewReducer';
|
|
6
6
|
import { updateJESchedules, updateJESchedulesDetails } from '../../../../entity/jeSchedules/jeSchedulesReducer';
|
|
7
7
|
import { openSnackbar } from '../../../../entity/snackbar/snackbarReducer';
|
|
8
|
-
|
|
8
|
+
import { fetchMonthEndCloseChecks } from '../../../monthEndCloseChecksView/monthEndCloseChecksViewReducer';
|
|
9
|
+
export declare type ActionType = ReturnType<typeof openSnackbar> | ReturnType<typeof removeFailedJeScheduleTransactionKey> | ReturnType<typeof retryJeSchedule> | ReturnType<typeof retryJeScheduleFailure> | ReturnType<typeof retryJeScheduleSuccess> | ReturnType<typeof updateJESchedules> | ReturnType<typeof updateJESchedulesDetails> | ReturnType<typeof fetchMonthEndCloseChecks> | ReturnType<typeof updateJeScheduleTransactionKeys>;
|
|
9
10
|
export declare const retryJeScheduleEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -8,6 +8,7 @@ const jeSchedulesViewReducer_1 = require("../../reducers/jeSchedulesViewReducer"
|
|
|
8
8
|
const jeSchedulesPayload_1 = require("../../payload/jeSchedulesPayload");
|
|
9
9
|
const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
|
|
10
10
|
const snackbarReducer_1 = require("../../../../entity/snackbar/snackbarReducer");
|
|
11
|
+
const monthEndCloseChecksViewReducer_1 = require("../../../monthEndCloseChecksView/monthEndCloseChecksViewReducer");
|
|
11
12
|
const retryJeScheduleEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(jeSchedulesViewReducer_1.retryJeSchedule.match), (0, operators_1.switchMap)((action) => {
|
|
12
13
|
const state = state$.value;
|
|
13
14
|
const { expenseAutomationJESchedulesViewState: { jeScheduleLocalDataById }, expenseAutomationViewState: { selectedPeriodByTenantId }, } = state;
|
|
@@ -24,10 +25,16 @@ const retryJeScheduleEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, ope
|
|
|
24
25
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
25
26
|
if ((0, responsePayload_1.isSuccessStatus)(response)) {
|
|
26
27
|
const updateActions = [];
|
|
28
|
+
// TODO - Mohit - Update the actions array (no multiple push calls)
|
|
27
29
|
updateActions.push((0, jeSchedulesViewReducer_1.retryJeScheduleSuccess)({
|
|
28
30
|
scheduledJournalEntryID,
|
|
29
31
|
}));
|
|
30
32
|
updateActions.push((0, jeSchedulesViewReducer_1.removeFailedJeScheduleTransactionKey)(jeScheduleTransactionKey, selectedPeriod));
|
|
33
|
+
updateActions.push((0, monthEndCloseChecksViewReducer_1.fetchMonthEndCloseChecks)({
|
|
34
|
+
tenantId: currentTenant.tenantId,
|
|
35
|
+
period: selectedPeriod,
|
|
36
|
+
refreshViewInBackground: true,
|
|
37
|
+
}));
|
|
31
38
|
updateActions.push((0, snackbarReducer_1.openSnackbar)({
|
|
32
39
|
messageSection: 'je_posted',
|
|
33
40
|
messageText: 'success',
|
package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { ActionsObservable } from 'redux-observable';
|
|
1
|
+
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
2
|
import { updateTransaction } from '../../../../entity/transaction/transactionReducer';
|
|
3
3
|
import { uploadMissingReceiptSuccess } from '../../reducers/missingReceiptsViewReducer';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}, string, {
|
|
9
|
-
updateType: import("../../../..").UpdateType;
|
|
10
|
-
}, never>>;
|
|
4
|
+
import { RootState } from '../../../../reducer';
|
|
5
|
+
import { fetchMonthEndCloseChecks } from '../../../monthEndCloseChecksView/monthEndCloseChecksViewReducer';
|
|
6
|
+
export declare type ActionType = ReturnType<typeof uploadMissingReceiptSuccess> | ReturnType<typeof fetchMonthEndCloseChecks> | ReturnType<typeof updateTransaction>;
|
|
7
|
+
export declare const uploadMissingReceiptSuccessEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => import("rxjs").Observable<ActionType>;
|
package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.js
CHANGED
|
@@ -5,8 +5,22 @@ const rxjs_1 = require("rxjs");
|
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
6
|
const transactionReducer_1 = require("../../../../entity/transaction/transactionReducer");
|
|
7
7
|
const missingReceiptsViewReducer_1 = require("../../reducers/missingReceiptsViewReducer");
|
|
8
|
-
const
|
|
8
|
+
const monthEndCloseChecksViewReducer_1 = require("../../../monthEndCloseChecksView/monthEndCloseChecksViewReducer");
|
|
9
|
+
const helpers_1 = require("../../helpers/helpers");
|
|
10
|
+
const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
|
|
11
|
+
const uploadMissingReceiptSuccessEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(missingReceiptsViewReducer_1.uploadMissingReceiptSuccess.match), (0, operators_1.mergeMap)((action) => {
|
|
9
12
|
const { transactionPayload, updateType } = action.payload;
|
|
10
|
-
|
|
13
|
+
const updateActions = [];
|
|
14
|
+
const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state$.value);
|
|
15
|
+
updateActions.push((0, transactionReducer_1.updateTransaction)(transactionPayload.transaction_id, transactionPayload, updateType));
|
|
16
|
+
if (currentTenant != null) {
|
|
17
|
+
const monthEndChecksPeriod = (0, helpers_1.getDefaultSelectedMonthAndYearForTenant)(currentTenant);
|
|
18
|
+
updateActions.push((0, monthEndCloseChecksViewReducer_1.fetchMonthEndCloseChecks)({
|
|
19
|
+
tenantId: currentTenant.tenantId,
|
|
20
|
+
period: monthEndChecksPeriod,
|
|
21
|
+
refreshViewInBackground: true,
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
24
|
+
return (0, rxjs_1.from)(updateActions);
|
|
11
25
|
}));
|
|
12
26
|
exports.uploadMissingReceiptSuccessEpic = uploadMissingReceiptSuccessEpic;
|
|
@@ -2,5 +2,6 @@ import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
|
2
2
|
import { RootState } from '../../../../reducer';
|
|
3
3
|
import { ZeniAPI } from '../../../../zeniAPI';
|
|
4
4
|
import { updateTransactionCategorization, updateTransactionCategorizationSaveStatus, markTransactionAsNotMiscategorized } from '../../reducers/transactionsViewReducer';
|
|
5
|
-
|
|
5
|
+
import { fetchMonthEndCloseChecks } from '../../../monthEndCloseChecksView/monthEndCloseChecksViewReducer';
|
|
6
|
+
export declare type ActionType = ReturnType<typeof updateTransactionCategorization> | ReturnType<typeof updateTransactionCategorizationSaveStatus> | ReturnType<typeof markTransactionAsNotMiscategorized> | ReturnType<typeof fetchMonthEndCloseChecks>;
|
|
6
7
|
export declare const updateTransactionCategorizationEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<ActionType>;
|
|
@@ -20,8 +20,12 @@ const transactionSelector_1 = require("../../../../entity/transaction/transactio
|
|
|
20
20
|
const vendorSelector_1 = require("../../../../entity/vendor/vendorSelector");
|
|
21
21
|
const responsePayload_1 = require("../../../../responsePayload");
|
|
22
22
|
const transactionsViewReducer_1 = require("../../reducers/transactionsViewReducer");
|
|
23
|
+
const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
|
|
24
|
+
const helpers_1 = require("../../helpers/helpers");
|
|
25
|
+
const monthEndCloseChecksViewReducer_1 = require("../../../monthEndCloseChecksView/monthEndCloseChecksViewReducer");
|
|
23
26
|
const updateTransactionCategorizationEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(transactionsViewReducer_1.updateTransactionCategorization.match), (0, operators_1.mergeMap)((action) => {
|
|
24
27
|
const { selectedTab } = action.payload;
|
|
28
|
+
const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state$.value);
|
|
25
29
|
const { transactionState, vendorState, expenseAutomationTransactionsViewState, } = state$.value;
|
|
26
30
|
const payloadArray = preparePayload(selectedTab, transactionState, vendorState, expenseAutomationTransactionsViewState, action.payload.transactionIds, action.payload.transactionSaveUpdates).filter((payload) => payload != null);
|
|
27
31
|
return zeniAPI
|
|
@@ -29,9 +33,18 @@ const updateTransactionCategorizationEpic = (actions$, state$, zeniAPI) => actio
|
|
|
29
33
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
30
34
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
31
35
|
const transactionsInReview = response.data.transactions_update_success;
|
|
36
|
+
// TODO - Vivek - Update the actions array (no multiple push calls)
|
|
32
37
|
const actions = [];
|
|
33
38
|
actions.push((0, transactionsViewReducer_1.markTransactionAsNotMiscategorized)(selectedTab, transactionsInReview));
|
|
34
39
|
actions.push((0, transactionsViewReducer_1.updateTransactionCategorizationSaveStatus)(selectedTab, 'Completed', (0, responsePayload_1.createZeniAPIStatus)('Completed', 'Transaction categorization updated successfully')));
|
|
40
|
+
if (currentTenant != null) {
|
|
41
|
+
const monthEndChecksPeriod = (0, helpers_1.getDefaultSelectedMonthAndYearForTenant)(currentTenant);
|
|
42
|
+
actions.push((0, monthEndCloseChecksViewReducer_1.fetchMonthEndCloseChecks)({
|
|
43
|
+
tenantId: currentTenant.tenantId,
|
|
44
|
+
period: monthEndChecksPeriod,
|
|
45
|
+
refreshViewInBackground: true,
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
35
48
|
return (0, rxjs_1.from)(actions);
|
|
36
49
|
}
|
|
37
50
|
else {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { FluxAnalysisActionQueryType, FluxAnalysisQuerySortKey, MonthBalancePayload } from '../payload/fluxAnalysisPayload';
|
|
2
2
|
import { FluxAnalysisActionType, FluxAnalysisReviewStatus, FluxAnalysisSortKey, FluxBalancesByMonth } from '../types/fluxAnalysisViewState';
|
|
3
3
|
import { CurrencyPayload } from '../../../commonPayloadTypes/v2/viewAndReportPayloadv2';
|
|
4
|
+
import { MonthYearPeriod } from '../../../commonStateTypes/timePeriod';
|
|
5
|
+
import { TenantView } from '../../../entity/tenant/tenantSelector';
|
|
4
6
|
export declare const toBalancesByMonthFromPayload: (month1: MonthBalancePayload, month2: MonthBalancePayload, currency: CurrencyPayload) => FluxBalancesByMonth;
|
|
5
7
|
export declare const toVendorFluxAnalysisSortKeyPayload: (sortKey: FluxAnalysisSortKey) => FluxAnalysisQuerySortKey;
|
|
6
8
|
export declare const toVendorFluxAnalysisReviewActionPayload: (actionType: FluxAnalysisActionType) => FluxAnalysisActionQueryType;
|
|
7
9
|
export declare const toVendorFluxAnalysisStatusFromPayload: (status: string) => FluxAnalysisReviewStatus;
|
|
10
|
+
export declare const getDefaultSelectedMonthAndYearForTenant: (currentTenant: TenantView) => MonthYearPeriod;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toVendorFluxAnalysisStatusFromPayload = exports.toVendorFluxAnalysisReviewActionPayload = exports.toVendorFluxAnalysisSortKeyPayload = exports.toBalancesByMonthFromPayload = void 0;
|
|
3
|
+
exports.getDefaultSelectedMonthAndYearForTenant = exports.toVendorFluxAnalysisStatusFromPayload = exports.toVendorFluxAnalysisReviewActionPayload = exports.toVendorFluxAnalysisSortKeyPayload = exports.toBalancesByMonthFromPayload = void 0;
|
|
4
4
|
const zeniDayJS_1 = require("../../../zeniDayJS");
|
|
5
|
+
const fetchAllTenantsEpic_1 = require("../../../entity/tenant/epic/fetchAllTenantsEpic");
|
|
6
|
+
const timePeriod_1 = require("../../../commonStateTypes/timePeriod");
|
|
5
7
|
const toBalancesByMonthFromPayload = (month1, month2, currency) => {
|
|
6
8
|
var _a, _b, _c, _d;
|
|
7
9
|
return {
|
|
@@ -65,3 +67,18 @@ const toVendorFluxAnalysisStatusFromPayload = (status) => {
|
|
|
65
67
|
}
|
|
66
68
|
};
|
|
67
69
|
exports.toVendorFluxAnalysisStatusFromPayload = toVendorFluxAnalysisStatusFromPayload;
|
|
70
|
+
// TODO - JK - Move it better place
|
|
71
|
+
const getDefaultSelectedMonthAndYearForTenant = (currentTenant) => {
|
|
72
|
+
const { zeniBookCloseMonthAndYear } = currentTenant;
|
|
73
|
+
if (zeniBookCloseMonthAndYear != null) {
|
|
74
|
+
const currentDate = (0, zeniDayJS_1.date)(`${zeniBookCloseMonthAndYear.year}-${zeniBookCloseMonthAndYear.month}-01`);
|
|
75
|
+
const nextMonthDate = currentDate.add(1, 'month');
|
|
76
|
+
const nextMonthPeriod = {
|
|
77
|
+
month: (0, timePeriod_1.toMonth)(nextMonthDate.month() + 1),
|
|
78
|
+
year: nextMonthDate.year(),
|
|
79
|
+
};
|
|
80
|
+
return nextMonthPeriod;
|
|
81
|
+
}
|
|
82
|
+
return fetchAllTenantsEpic_1.defaultMonthYearPeriod;
|
|
83
|
+
};
|
|
84
|
+
exports.getDefaultSelectedMonthAndYearForTenant = getDefaultSelectedMonthAndYearForTenant;
|
|
@@ -63,20 +63,7 @@ function getExpenseAutomationFluxAnalysisView(state) {
|
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
|
-
const
|
|
67
|
-
const isFetchStateCompleted = fetchStateAndError.fetchState === 'Completed';
|
|
68
|
-
// If all operating expenses are fetched and reviewed, then the bulk review status should be 'complete'
|
|
69
|
-
// If there are no operating expenses (after fetch state is completed), then the bulk review status should be 'complete'
|
|
70
|
-
// If the flux analysis is complete and all operating expenses are reviewed (in our state), then the bulk review status should be 'complete'
|
|
71
|
-
const completionStatus = (isFetchStateCompleted &&
|
|
72
|
-
allOperatingExpensesReviewed &&
|
|
73
|
-
uiState.hasMore === false) ||
|
|
74
|
-
(isFetchStateCompleted &&
|
|
75
|
-
operatingExpensesView.length === 0 &&
|
|
76
|
-
uiState.hasMore === false) ||
|
|
77
|
-
(fluxCompletionStatus === 'complete' && allOperatingExpensesReviewed)
|
|
78
|
-
? 'complete'
|
|
79
|
-
: 'incomplete';
|
|
66
|
+
const completionStatus = fluxCompletionStatus != null ? fluxCompletionStatus : 'incomplete';
|
|
80
67
|
return {
|
|
81
68
|
fetchStatus: fetchStateAndError,
|
|
82
69
|
operatingExpensesView,
|