@zeniai/client-epic-state 4.19.86-betaRD9 → 4.19.86-betaSS2
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/billTransaction/billTransactionState.d.ts +2 -2
- package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +35 -0
- package/lib/entity/jeSchedules/jeSchedulesPayload.js +44 -0
- package/lib/entity/jeSchedules/jeSchedulesSelector.d.ts +2 -1
- package/lib/entity/jeSchedules/jeSchedulesSelector.js +2 -1
- package/lib/entity/jeSchedules/jeSchedulesState.d.ts +13 -0
- package/lib/entity/tenant/tenantPayload.d.ts +0 -1
- package/lib/entity/tenant/tenantReducer.js +0 -1
- package/lib/entity/tenant/tenantSelector.d.ts +0 -1
- package/lib/entity/tenant/tenantSelector.js +1 -9
- package/lib/entity/tenant/tenantState.d.ts +0 -1
- package/lib/entity/transaction/stateTypes/transactionLine.d.ts +1 -1
- package/lib/esm/entity/jeSchedules/jeSchedulesPayload.js +44 -0
- package/lib/esm/entity/jeSchedules/jeSchedulesSelector.js +2 -1
- package/lib/esm/entity/tenant/tenantReducer.js +0 -1
- package/lib/esm/entity/tenant/tenantSelector.js +0 -7
- package/lib/esm/index.js +6 -5
- package/lib/esm/view/classList/fetchClassListEpic.js +2 -3
- package/lib/esm/view/commonVendorView/vendorView/vendorViewSelector.js +5 -15
- package/lib/esm/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.js +1 -4
- package/lib/esm/view/expenseAutomationView/helpers/saveTransactionHelper.js +1 -2
- package/lib/esm/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +2 -2
- package/lib/esm/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +17 -1
- package/lib/esm/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +46 -3
- package/lib/esm/view/expenseAutomationView/selectors/missingReceiptsSelector.js +1 -1
- package/lib/esm/view/expenseAutomationView/types/jeSchedulesViewState.js +15 -1
- package/lib/esm/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +3 -7
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewSelector.js +5 -5
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPayApproversDetailsEpic.js +2 -7
- package/lib/esm/view/spendManagement/billPay/editBillView/editBillViewSelector.js +6 -13
- package/lib/esm/view/transactionDetail/epics/saveTransactionHelper.js +1 -2
- package/lib/esm/view/transactionDetail/transactionDetailLocalDataHelper.js +14 -15
- package/lib/index.d.ts +8 -7
- package/lib/index.js +13 -11
- package/lib/view/classList/fetchClassListEpic.d.ts +1 -1
- package/lib/view/classList/fetchClassListEpic.js +1 -2
- package/lib/view/commonVendorView/vendorView/vendorViewSelector.d.ts +0 -1
- package/lib/view/commonVendorView/vendorView/vendorViewSelector.js +5 -15
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.d.ts +0 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.js +1 -4
- package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.js +1 -2
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +2 -2
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +18 -2
- package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.d.ts +2 -0
- package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +46 -3
- package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.js +1 -1
- package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +5 -0
- package/lib/view/expenseAutomationView/types/jeSchedulesViewState.js +17 -0
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +3 -7
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewSelector.js +5 -5
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPayApproversDetailsEpic.js +2 -7
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +6 -13
- package/lib/view/transactionDetail/epics/saveTransactionHelper.js +1 -2
- package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +14 -15
- package/package.json +1 -1
- package/lib/tsconfig.typecheck.tsbuildinfo +0 -1
package/lib/index.js
CHANGED
|
@@ -37,9 +37,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.newBalancesFilterForDateRange = exports.newBalancesFilter = exports.toCOABalancesOrderStrict = exports.toCOABalanceTimeframe = exports.isFluxAnalysisOpExReport = exports.isOpExByVendorReport = exports.isAgingReport = exports.isPAndLClassesViewReport = exports.isPAndLReport = exports.isDashboardClassesViewReport = exports.isDashboardReport = exports.isCashFlowOrBalanceSheetReport = exports.toReportFormatStrict = exports.toReportID = exports.toAmount = exports.getMinDate = exports.dateFromYearMonthDate = exports.getMonthIndex = exports.getLastMonthOfFYYear = exports.getLastMonthOfFYQuarter = exports.isIncompleteMonthPresentInTimeframeTick = exports.getTimeframeTickTag = exports.initializeWithNewStore = exports.injectFeatureModules = exports.injectFeatureEpics = exports.zeniAPIClientConfig = exports.updateZeniAPIClientConfig = exports.toZeniUrlWithoutBaseURL = exports.toZeniUrl = exports.updateZeniDateLocaleID = exports.setLocalTimezone = exports.subtractPeriod = exports.addPeriod = exports.getLocalTimezone = exports.getActualPeriodOfFY = exports.getActualPeriodOfFYQtr = exports.getStartOfAndEndOfTimeframeForFY = exports.getFYQuarterAndYear = exports.getFYMonths = exports.formatZeniDate = exports.getBusinessDayOfDate = exports.dateNow = exports.dateLocal = exports.zeniDate = exports.zeniDateInLocal = exports.Dayjs = exports.disconnectPusher = exports.initializePusher = exports.saveJeAccountSettingsLocalData = exports.saveJeAccountSettings = void 0;
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.hasReimbursementUserAccess = exports.hasFullOrAdminLevelAccess = exports.hasAdminLevelAccess = exports.isFinOpsUserRoleType = exports.toUserRoleTypeStrict = exports.toUserRoleType = exports.getAllZeniUsersFromState = exports.getUsersByUserIds = exports.getUserByUserId = exports.getUserName = exports.getForecast = exports.getClassById = exports.getAccountGroupKey = exports.toAccountGroupType = exports.toAccountType = exports.isOtherProductsEnabledForTenant = exports.isTenantBookkeepingEnabled = exports.isTenantCardsOnly = exports.isTenantBankingOnly = exports.fetchSubscriptionSummaryForTenant = exports.saveExternalConnectionForTenant = exports.fetchExternalConnectionsForTenant = exports.fetchExcludedResourcesForTenant = exports.resetSignInState = exports.doSignOut = exports.updateSignInState = exports.doSignIn = exports.sendEmailMagicLinkToUser = exports.resendVerifyDeviceOTP = exports.verifyDeviceWithTwoFA = exports.doMagicLinkSignIn = exports.clearAll = exports.updateCurrentTenant = exports.fetchAllTenants = exports.fetchActiveTenant = exports.isTenantUsingZeniCOA = exports.isZeniDomainTenant = exports.getTenantBaseViewForTenantId = exports.getTenantBaseViewForTenantView = exports.toTenantCoreDetailsView = exports.getTenantsCoreDetailsByCheckInDateSelector = exports.getTenantsBaseByCheckInDateSelector = exports.getTenantsByCheckInDateSelector = exports.
|
|
40
|
+
exports.uploadAccountStatementIntoDocumentAI = exports.fetchReconciliationView = exports.getExpenseAutomationReconciliationView = exports.updateExpenseAutomationAccountReconciliationSelectedAccountId = exports.updateExpenseAutomationAccountReconciliationSelectedTab = exports.updateExpenseAutomationReconcileTabLocalData = exports.updateExpenseAutomationReconcileTabListSortState = exports.updateExpenseAutomationReconReviewTabListSortState = exports.updateExpenseAutomationReconcileTabListScrollState = exports.saveExpenseAutomationReconciliationDetail = exports.isAnyItemWithUncategorizedExpenseAccount = exports.getLineItemsByTransactionIdsFromLocalData = exports.checkIfAllLineItemsAreCategoryClassFilled = exports.MAX_SELECTION_LIMIT = exports.updateFluxAnalysisViewPageMetaData = exports.updateFluxAnalysisViewUIState = exports.getExpenseAutomationTransactionView = exports.updateCurrentSelectedPeriod = exports.updateCurrentSelectedView = exports.getExpenseAutomationFluxAnalysisView = exports.uploadTransactionCategorizationReceiptSuccess = exports.updateTransactionCategorizationUploadReceiptState = exports.updateExpenseAutomationMissingReceiptsUIState = exports.updateExpenseAutomationMissingReceiptUploadState = exports.reviewFluxAnalysisView = exports.updateFluxAnalysisSelectedSectionIdsForReview = exports.updateFluxOperatingExpensesIdsForReview = exports.clearExpenseAutomationFluxAnalysisView = exports.fetchFluxAnalysisView = exports.fetchExpenseAutomationMissingReceipts = exports.updateCurrentSelectedTransactionCategorizationTab = exports.refreshExpenseAutomationCurrentTab = exports.fetchAllExpenseAutomationTabs = exports.markExpenseAutomationMissingReceiptAsDone = exports.uploadExpenseAutomationMissingReceiptSuccess = exports.toExpenseAutomationViewType = exports.toExpenseAutomationTransactionsTabKey = exports.toExpenseAutomationMissingReceiptsSortKey = exports.getExpenseAutomationView = exports.toExpenseAutomationJEScheduleSortKey = exports.ALL_MONTH_END_CLOSE_CHECKS_FREQUENCY = exports.getMonthEndCloseChecksViewByTenantId = exports.fetchMonthClosePerformanceTrend = exports.fetchMonthEndCloseChecks = exports.stringToUnionStrict = exports.stringToUnion = exports.isCalculatedBalanceType = exports.toCOABlanaceType = exports.toCOABalanceTypeStrict = exports.newBalancesFilterClassesView = void 0;
|
|
41
|
+
exports.SCHEDULE_DAYS_OF_MONTH = exports.getNumberOfPeriods = exports.toVendorSpendTrendFilterTabsTypeStrict = exports.convertToPeriod = exports.toMonthYearPeriodId = exports.toAbsoluteDay = exports.toTimePeriod = exports.mapTimePeriodtoTimeframeTick = exports.toTimeframeTick = exports.TOP_EX_TIME_PERIODS = exports.toTransactionsSortKey = exports.clearExpenseAutomationTransactionsView = exports.backgroundRefetchReviewTab = exports.syncTransactionCategorizationFromDetailSave = exports.updateSelectedTransactionId = exports.updateSelectedCustomerForTransaction = exports.updateSelectedVendorForTransaction = exports.markTransactionAsNotMiscategorized = exports.updateTransactionCategorizationSaveStatus = exports.updateTransactionCategorization = exports.saveTransactionCategorization = exports.fetchTransactionCategorizationFailure = exports.saveTransactionCategorizationLocalData = exports.setAllItemsToCategoryClassInLocalDataForCategorization = exports.initializeTransactionCategorizationViewLocalData = exports.setEntityRecommendationForLineIdsForCategorization = exports.updateSelectedCheckboxTransactionIds = exports.updateTransactionCategorizationUIState = exports.fetchTransactionCategorizationView = exports.fetchTransactionCategorization = exports.setStatementParseInProgress = exports.isReviewTransactionCreditCardCreditType = exports.isReviewTransactionExpenseType = exports.isReviewTransactionDepositType = exports.isReviewTransactionCreditCardPaymentType = exports.isReviewTransactionBillPaymentType = exports.isReviewTransactionBankTransferType = exports.updateStatementUploadChosen = exports.uploadAccountStatement = exports.deleteAccountStatement = exports.toReconciliationAccountSource = exports.updateExpenseAutomationAccountReconciliationLocalData = exports.saveExpenseAutomationReconciliationReview = exports.updateExpenseAutomationSelectedDrawerAccountId = exports.updateExpenseAutomationReconReviewTabLocalData = exports.isAccountReconReport = exports.toReconciliationTabsType = exports.getAccountReconByAccountIdAndSelectedPeriod = exports.setConnectionInProgressForAccountReconciliation = exports.updateExpenseAutomationReconListScrollPosition = void 0;
|
|
42
|
+
exports.hasReimbursementUserAccess = exports.hasFullOrAdminLevelAccess = exports.hasAdminLevelAccess = exports.isFinOpsUserRoleType = exports.toUserRoleTypeStrict = exports.toUserRoleType = exports.getAllZeniUsersFromState = exports.getUsersByUserIds = exports.getUserByUserId = exports.getUserName = exports.getForecast = exports.getClassById = exports.getAccountGroupKey = exports.toAccountGroupType = exports.toAccountType = exports.isOtherProductsEnabledForTenant = exports.isTenantBookkeepingEnabled = exports.isTenantCardsOnly = exports.isTenantBankingOnly = exports.fetchSubscriptionSummaryForTenant = exports.saveExternalConnectionForTenant = exports.fetchExternalConnectionsForTenant = exports.fetchExcludedResourcesForTenant = exports.resetSignInState = exports.doSignOut = exports.updateSignInState = exports.doSignIn = exports.sendEmailMagicLinkToUser = exports.resendVerifyDeviceOTP = exports.verifyDeviceWithTwoFA = exports.doMagicLinkSignIn = exports.clearAll = exports.updateCurrentTenant = exports.fetchAllTenants = exports.fetchActiveTenant = exports.isTenantUsingZeniCOA = exports.isZeniDomainTenant = exports.getTenantBaseViewForTenantId = exports.getTenantBaseViewForTenantView = exports.toTenantCoreDetailsView = exports.getTenantsCoreDetailsByCheckInDateSelector = exports.getTenantsBaseByCheckInDateSelector = exports.getTenantsByCheckInDateSelector = exports.getCurrentTenant = exports.getTenantBaseById = exports.toQuarterStrict = exports.toQuarter = exports.toMonthStrict = exports.toMonth = exports.toScheduleDaysOfMonth = void 0;
|
|
43
43
|
exports.getOperatingExpensesReport = exports.getOperatingExpensesReportFetchState = exports.updateOpExUIState = exports.updateOpExDownloadState = exports.updateOpExCOABalancesRange = exports.fetchOpEx = exports.fetchReimbursementCard = exports.fetchBillPayCard = exports.fetchCashBalance = exports.getCashBalance = exports.updateStatementCloseDay = exports.fetchCardBalance = exports.getCardBalance = exports.hasAICFOAccess = exports.hasTreasuryAccessible = exports.hasChargeCardAccessible = exports.hasZeniAccountsAccessible = exports.hasReimbursementAccessible = exports.hasBillPayAccessible = exports.hasAnyFinOpRole = exports.hasAnyCompanyRole = exports.hasZeniAccountsAdminLevelAccess = exports.hasSpendManagementAdminLevelAccess = exports.hasSpendManagementAccess = exports.hasChargeCardAdminLevelAccess = exports.hasBillPayAdminLevelAccess = exports.hasReimbursementAdminLevelAccess = exports.hasReimbursementAccess = exports.hasBillPayAccess = exports.hasTreasuryAdminLevelAccess = exports.hasTreasuryAccess = exports.hasZeniAccountsAccess = exports.hasChargeCardAccess = exports.getUserRoleByUserIds = exports.getUserRoleByUserId = exports.isZeniSignedInUser = exports.hasOnlyZeniAccountsAccess = exports.hasOnlyChargeCardAccess = exports.hasOnlyReimbursementAccess = exports.hasRemiFallbackAdminLevelAccess = exports.hasBillPayFallbackAdminLevelAccess = exports.hasSuperAdminLevelAccess = exports.hasZeniRoleOrCompanyOfficerAccess = exports.hasOnlyBillPayAccess = exports.getUserRoleMap = exports.hasInvestorBankerLevelAccess = exports.isNonZeniRole = exports.hasBookKeepingUserLevelAccess = exports.hasBookKeepingAdminLevelAccess = exports.hasEmployeeLevelAccess = void 0;
|
|
44
44
|
exports.isNetBurnOrIncomeReportViewCalculatedSectionID = exports.getNetBurnOrIncomeReportFetchState = exports.getNetBurnOrIncomeUIState = exports.getNetBurnOrIncomeForHighlightedRange = exports.getNetBurnOrIncomeForSelectedRange = exports.getNetBurnOrIncomeReport = exports.updateNetBurnOrIncomeDownloadState = exports.updateNetBurnOrIncomeCOABalancesRange = exports.fetchNetBurnOrIncomeWithForecast = exports.updateNetBurnOrIncomeUIState = exports.fetchNetBurnOrIncome = exports.isNetBurnOrIncomeClassesViewCalculatedSectionID = exports.isNetBurnOrIncomeClassesViewSectionID = exports.getNetBurnOrIncomeClassesViewForSelectedRange = exports.getNetBurnOrIncomeClassesViewForHighlightedRange = exports.getNetBurnOrIncomeClassesView = exports.updateNetBurnOrIncomeClassesViewUIState = exports.updateNetBurnOrIncomeClassesToFilterOut = exports.updateNetBurnOrIncomeAccountViewMode = exports.fetchNetBurnOrIncomeClassesView = exports.isOpExClassesViewCalculatedSectionID = exports.isOpExClassesViewSectionID = exports.getOpExClassesViewForSelectedRange = exports.getOpExClassesViewForHighlightedRange = exports.getOpExClassesView = exports.updateOpExClassesViewUIState = exports.updateOpExClassesToFilterOut = exports.updateOpExAccountViewMode = exports.fetchOpExClassesView = exports.isOpexByVendorIDNotSpecifiedVendor = exports.getOpexVendorTimeframeKey = exports.toOpexByVendorSortKeyType = exports.updateOpExByVendorPageLimit = exports.clearOpExByVendorSearch = exports.updateOpExByVendorDownloadState = exports.updateOpExByVendorSortOrSearchInProgress = exports.updateOpExByVendorPageFetchInProgress = exports.updateOpExByVendorSort = exports.updateOpExByVendorSearchString = exports.updateOpExByVendorAdditionalBalancesSelection = exports.getOpExByVendorUIState = exports.getOpExByVendorReport = exports.updateOpExByVendorUIState = exports.updateOpExByVendorTimeFrame = exports.fetchOpExByVendorReportForTimeframe = exports.fetchOpExByVendor = exports.fetchOpExWithForecast = exports.getOperatingExpensesForHighlightedRange = exports.getOperatingExpensesForSelectedRange = exports.getOperatingExpensesUIState = void 0;
|
|
45
45
|
exports.getDashboard = exports.fetchDashboard = exports.getAllTopExpenses = exports.getTop6Expenses = exports.getTopExpenses = exports.updateTopExDownloadState = exports.updateTopExTimeFrame = exports.fetchTopEx = exports.updateCashInCashOutUIState = exports.updateCashInCashOutDownloadState = exports.updateCashInCashOutCOABalancesRange = exports.getCashInCashOutForHighlightedRange = exports.getCashInCashOutForSelectedRange = exports.getCashInCashOutUIState = exports.getCashInCashOut = exports.fetchCashInCashOut = exports.getCashPositionForHighlightedRange = exports.getCashPositionForSelectedRange = exports.getCashPositionUIState = exports.getCashPosition = exports.updateCashPositionUIState = exports.updateCashPositionDownloadState = exports.updateCashPositionCOABalancesRange = exports.fetchCashPosition = exports.isRevenueClassesViewCalculatedSectionID = exports.isRevenueClassesViewSectionID = exports.getRevenueClassesViewForSelectedRange = exports.getRevenueClassesViewForHighlightedRange = exports.getRevenueClassesView = exports.updateRevenueClassesViewUIState = exports.updateRevenueClassesToFilterOut = exports.updateRevenueAccountViewMode = exports.fetchRevenueClassesView = exports.isRevenueSectionID = exports.isRevenueCalculatedSectionID = exports.updateRevenueUIState = exports.updateRevenueDownloadState = exports.updateRevenueCOABalancesRange = exports.getRevenueForHighlightedRange = exports.getRevenueForSelectedRange = exports.getRevenueUIState = exports.getRevenueReportFetchState = exports.getRevenueReport = exports.fetchRevenueWithForecast = exports.fetchRevenue = exports.toAverageMonthsCount = exports.getNetBurnOrIncomeStoryCardReport = exports.updateNetBurnOrIncomeStoryCardSettings = exports.fetchNetBurnOrIncomeStoryCard = exports.isNetBurnOrIncomeReportViewSectionID = void 0;
|
|
@@ -61,13 +61,13 @@ exports.ZENI_CLEARING_ACCOUNT = exports.isZeniClearingAccountReport = exports.ge
|
|
|
61
61
|
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.getProductSettingsString = exports.getOnboardingCustomerView = exports.clearOnboardingCustomerViewDataInLocalStore = exports.clearOnboardingCustomerView = exports.saveOnboardingCustomerViewDataInLocalStore = exports.saveOnboardingCompnayOfficerPhoneInLocalStore = exports.updateOnboardingCustomerViewUIState = exports.updateCurrentStep = exports.updateOnboardingCustomerViewLocalStoreData = exports.updateOnboardingCustomerView = exports.updateOnboardingPaymentAccountStatus = exports.updateOnboardingPaymentAccountLoginStatus = exports.updateOnboardingCustomerViewDashboardLoaded = exports.updateOnboardingCustomerViewCompleteStatus = exports.updateOnboardingCustomerViewAccountDetails = exports.establishOnboardingPlaidConnection = exports.getOnboardingPlaidLinkToken = exports.fetchOnboardingCustomerSetupView = exports.fetchOnboardingCustomerView = exports.isZeniClearingAccount = void 0;
|
|
62
62
|
exports.getChargeCardDetailView = exports.fetchDepositAccountLimit = exports.fetchChargeCardTransactionStatistics = exports.fetchChargeCardDetail = exports.fetchChargeCardDetailPage = exports.getCreditAccountDetails = exports.PAYMENT_HISTORY_FILTER_CATEGORIES = exports.getPaymentStatusDisplayText = exports.getPaymentHistorySourceAccountName = exports.getChargeCardPaymentHistoryView = exports.getChargeCardPaymentHistoryDownloadReport = exports.updatePaymentHistoryUIState = exports.updatePaymentHistorySearchText = exports.updatePaymentHistoryFilters = exports.updatePaymentHistoryDownloadUIState = exports.fetchChargeCardPaymentHistory = exports.fetchChargeCardPaymentPage = exports.getChargeCardRepaymentDetail = exports.updateChargeCardRepaymentLocalStore = exports.initiateChargeCardRepayment = exports.fetchChargeCardRepaymentDetail = exports.clearChargeCardRepaymentDetail = exports.getMyRequestOnHoldChargeCardListWithShippingAddress = exports.getMyPendingActivationChargeCardListView = exports.getChargeCardListView = exports.fetchCreditAccountRepayment = exports.fetchCreditAccount = exports.fetchChargeCardConfig = exports.fetchChargeCardListPage = exports.fetchChargeCardList = exports.fetchDebitCardSummary = exports.getChargeCardBusinessVerificationDetails = exports.companyHealthMetricDropDownOptions = exports.hasCompanyHealthMetricFormFieldChanged = exports.getCompanyHealthMetricView = exports.isCompanyRunwayInfinite = exports.attachmentFilePathToAttachment = 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 = void 0;
|
|
63
63
|
exports.saveCardOnboardingUserDetails = exports.updateCardUserOnboardingLocalData = exports.initializeCardUserOnboardingLocalData = exports.getCardUserOnboardingView = exports.updateChargeCardName = exports.closeChargeCard = exports.unlockChargeCard = exports.lockChargeCard = exports.updatePhysicalChargeCardAttempt = exports.updateChargeCardDetail = exports.updateCashbackDetailUIState = exports.updateChargeCardListUIState = exports.updateChargeCardListSearchText = exports.updateBulkActionCardIds = exports.resetIssueChargeCardForm = exports.updateChargeCardsLocalStore = exports.updateCustomAddressId = exports.getDebitCardSummary = exports.getDebitCardList = exports.fetchDepositAccountListForCards = exports.fetchIssueCardPage = exports.issueChargeCards = exports.toCardType = exports.toShippingAddressType = exports.toCardAddressType = exports.getDepositAccountLimitForChargeCardByDepositAccountId = exports.expressInterestInChargeCard = exports.acceptChargeCardTerms = exports.enableChargeCardAutoPay = exports.fetchChargeCardSetupView = exports.getChargeCardStatements = exports.fetchChargeCardStatementList = exports.getChargeCardSetupViewDetails = exports.getIssueChargeCardView = exports.getDepositAccountListWithDebitCardIssued = exports.toCreditLimitFrequencyCodeType = exports.getZeniDateFromPeriod = exports.getCashbackDetail = exports.toChargeCardSortKeyType = exports.fetchCashbackDetail = exports.fetchChargeCardTransactionList = exports.getChargeCardCVVActivateView = exports.getChargeCardBulkActionView = exports.getChargeCardRowActionView = exports.getChargeCardRecurringExpensesView = exports.getChargeCardRecurringExpensesByCardIds = exports.getDebitCardSetPinView = exports.getChargeCardTransactionAttachmentView = exports.getDepositAccountLimitFetchStateByDepositAccountId = exports.getChargeCardControlDetailView = void 0;
|
|
64
|
-
exports.
|
|
65
|
-
exports.
|
|
66
|
-
exports.
|
|
67
|
-
exports.
|
|
68
|
-
exports.
|
|
69
|
-
exports.
|
|
70
|
-
exports.getTransactionActivityLogView = exports.fetchTransactionActivityLog = exports.getTreasuryTaxLetters = exports.fetchTreasuryTaxLetterList = exports.getTreasuryStatements = exports.fetchTreasuryStatementList = exports.getTreasuryTransferMoney = exports.clearTreasuryTransferMoney = exports.updateTreasuryTransferMoneyLocalData = exports.executeTreasuryTransferMoney = exports.getTreasuryDetail = exports.updateTreasuryTransactionListUIState = exports.fetchTreasuryTransactionList = exports.fetchTreasuryOverviewDetail = exports.toMessageType = exports.toMessageSender = exports.toAiCfoAnswerResponseTypeStrict = exports.toAiCfoAnswerResponseType = exports.toAiCfoAnswerStateTypeStrict = exports.toAiCfoAnswerStateType = exports.toAiCfoChartTypeStrict = exports.toAiCfoChartType = exports.toAiCfoVisualizationTypeStrict = exports.toAiCfoVisualizationType = exports.ALL_AI_CFO_ANSWER_RESPONSE_TYPES = void 0;
|
|
64
|
+
exports.createNewSchedulesAccrued = exports.updateJeScheduleTransactionKeys = exports.updateJeScheduleLocalDataById = exports.updateExpenseAutomationJESchedulesUIState = 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.aggregatedReportView = exports.fetchAggregatedReport = exports.toTimeSeriesDuration = exports.convertToTimeSeriesSelectionRange = exports.TIME_SERIES_DURATIONS = exports.anyCardOnHold = exports.getChargeCardById = exports.setCurrentDisplayedCardId = exports.setFirstViewCompleteAfterActivation = exports.setFirstViewAfterActivation = exports.completeCardUserOnboardingActivationWait = exports.startCardUserOnboardingActivationWait = exports.fetchChargeCardsRecurringExpenses = exports.updateChargeCardsSpendLimit = exports.closeChargeCards = exports.unlockChargeCards = exports.lockChargeCards = exports.revokeChargeCardsInvite = exports.updateRowActionCardId = 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 = void 0;
|
|
65
|
+
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 = exports.updatedJEAccruedLinkWithRecommendedLocalData = exports.updateAmountsInScheduleAccruedDetail = exports.saveScheduleAccruedDetails = exports.resetJEAccruedLinkInLocalData = exports.fetchScheduleAccruedDetailsPage = exports.fetchScheduleAccruedDetails = exports.cancelScheduleAccruedJournalEntry = exports.deleteScheduleAccruedDetail = void 0;
|
|
66
|
+
exports.getTaskGroupById = 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 = exports.getVendorTabView = exports.updateVendorTabViewTab = exports.fetchVendorTabView = exports.resetMarkAsCompleteStatus = exports.markAsCompleteScheduleDetail = exports.getDefaultSelectedTimeframeForScheduleType = exports.getFetchStateForScheduleListByType = exports.updatedJELinkWithRecommendedLocalData = void 0;
|
|
67
|
+
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 = exports.updateTaskListUIState = exports.updateTaskListSearchText = exports.archiveTask = exports.saveTaskDetail = exports.saveTaskUpdatesToLocalStore = exports.fetchTaskDetailPage = exports.getTaskDetail = exports.fetchTaskListPage = exports.getAllTasks = void 0;
|
|
68
|
+
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 = exports.updateCommentsNotifications = exports.toNotificationModeStrict = exports.fetchZeniAccountsPromoCard = exports.getZeniAccountsPromoCard = exports.getAuthenticationView = exports.fetchCollaborationAuthToken = exports.clearAuditReportGroupViewByCompanyId = exports.saveReasonForAuditRule = exports.fetchAuditReportGroupView = void 0;
|
|
69
|
+
exports.ALL_AI_CFO_VISUALIZATION_TYPES = exports.ALL_AI_CFO_CHARTS_TYPES = exports.getAiCfoSelectorView = exports.getAllQuestionsForChatSession = exports.getQuestionAnswerByIdForChatSession = exports.getAllQuestionAnswersForChatSession = exports.toAiCfoVisualization = exports.clearAiCfo = exports.clearSession = exports.addQuestionPayload = exports.upsertOrAddQuestionAnswerPayload = exports.upsertAnswerPayload = exports.setSessions = exports.setNewSession = exports.getAiCfoView = exports.updateResponseState = exports.deleteChatSession = exports.acceptMasterTOS = exports.fetchChatHistory = exports.stopSubmitQuestion = exports.stopSubmit = exports.createSessionAndSubmit = exports.clearLastContextMessage = exports.clearDeleteChatSessionStatus = exports.clearCurrentSessionId = exports.clearAiCfoView = exports.setSession = exports.clearInput = exports.updateCotCollapsedState = exports.updateCurrentInput = exports.updateAiCfoViewScrollPosition = exports.submitQuestion = exports.createSession = exports.fetchChatSessionsForUser = exports.getTreasuryFundsMaximumYield = exports.getTreasurySetupViewDetails = exports.updateTreasuryVideoViewed = exports.updateFundAllocationLocalData = exports.fetchPortfolioAllocation = exports.updatePortfolioAllocation = exports.fetchTreasuryFunds = exports.clearTreasurySetupView = exports.fetchTreasurySetupView = exports.acceptTreasuryTerms = exports.getExpressPayView = exports.resetExpressPayLocalData = exports.submitExpressPay = exports.updateExpressPayFormLocalData = exports.fetchExpressPayInitialDetails = exports.getIntlWireVerificationView = void 0;
|
|
70
|
+
exports.getTransactionActivityLogView = exports.fetchTransactionActivityLog = exports.getTreasuryTaxLetters = exports.fetchTreasuryTaxLetterList = exports.getTreasuryStatements = exports.fetchTreasuryStatementList = exports.getTreasuryTransferMoney = exports.clearTreasuryTransferMoney = exports.updateTreasuryTransferMoneyLocalData = exports.executeTreasuryTransferMoney = exports.getTreasuryDetail = exports.updateTreasuryTransactionListUIState = exports.fetchTreasuryTransactionList = exports.fetchTreasuryOverviewDetail = exports.toMessageType = exports.toMessageSender = exports.toAiCfoAnswerResponseTypeStrict = exports.toAiCfoAnswerResponseType = exports.toAiCfoAnswerStateTypeStrict = exports.toAiCfoAnswerStateType = exports.toAiCfoChartTypeStrict = exports.toAiCfoChartType = exports.toAiCfoVisualizationTypeStrict = exports.toAiCfoVisualizationType = exports.ALL_AI_CFO_ANSWER_RESPONSE_TYPES = exports.ALL_AI_CFO_ANSWER_STATE_TYPES = void 0;
|
|
71
71
|
const allowedValue_1 = require("./commonStateTypes/allowedValue");
|
|
72
72
|
Object.defineProperty(exports, "isAllowedValueWithCode", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithCode; } });
|
|
73
73
|
Object.defineProperty(exports, "isAllowedValueWithID", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithID; } });
|
|
@@ -278,7 +278,6 @@ Object.defineProperty(exports, "updateSignInState", { enumerable: true, get: fun
|
|
|
278
278
|
Object.defineProperty(exports, "verifyDeviceWithTwoFA", { enumerable: true, get: function () { return tenantReducer_1.verifyDeviceWithTwoFA; } });
|
|
279
279
|
const tenantSelector_1 = require("./entity/tenant/tenantSelector");
|
|
280
280
|
Object.defineProperty(exports, "getCurrentTenant", { enumerable: true, get: function () { return tenantSelector_1.getCurrentTenant; } });
|
|
281
|
-
Object.defineProperty(exports, "getIsAccountingClassesEnabled", { enumerable: true, get: function () { return tenantSelector_1.getIsAccountingClassesEnabled; } });
|
|
282
281
|
Object.defineProperty(exports, "getTenantBaseById", { enumerable: true, get: function () { return tenantSelector_1.getTenantBaseById; } });
|
|
283
282
|
Object.defineProperty(exports, "getTenantBaseViewForTenantId", { enumerable: true, get: function () { return tenantSelector_1.getTenantBaseViewForTenantId; } });
|
|
284
283
|
Object.defineProperty(exports, "getTenantBaseViewForTenantView", { enumerable: true, get: function () { return tenantSelector_1.getTenantBaseViewForTenantView; } });
|
|
@@ -735,6 +734,7 @@ Object.defineProperty(exports, "removeJeScheduleTransactionKey", { enumerable: t
|
|
|
735
734
|
Object.defineProperty(exports, "retryExpenseAutomationJESchedule", { enumerable: true, get: function () { return jeSchedulesViewReducer_1.retryJeSchedule; } });
|
|
736
735
|
Object.defineProperty(exports, "saveJeAccountSettings", { enumerable: true, get: function () { return jeSchedulesViewReducer_1.saveAccountSettings; } });
|
|
737
736
|
Object.defineProperty(exports, "saveJeAccountSettingsLocalData", { enumerable: true, get: function () { return jeSchedulesViewReducer_1.saveAccountSettingsLocalData; } });
|
|
737
|
+
Object.defineProperty(exports, "updateExpenseAutomationJESchedulesUIState", { enumerable: true, get: function () { return jeSchedulesViewReducer_1.updateJESchedulesUIState; } });
|
|
738
738
|
Object.defineProperty(exports, "updateJeScheduleLocalDataById", { enumerable: true, get: function () { return jeSchedulesViewReducer_1.updateJeScheduleLocalDataById; } });
|
|
739
739
|
Object.defineProperty(exports, "updateJeScheduleTransactionKeys", { enumerable: true, get: function () { return jeSchedulesViewReducer_1.updateJeScheduleTransactionKeys; } });
|
|
740
740
|
const missingReceiptsViewReducer_1 = require("./view/expenseAutomationView/reducers/missingReceiptsViewReducer");
|
|
@@ -792,6 +792,8 @@ Object.defineProperty(exports, "getExpenseAutomationReconciliationView", { enume
|
|
|
792
792
|
Object.defineProperty(exports, "isAccountReconReport", { enumerable: true, get: function () { return reconciliationViewSelector_1.isAccountReconReport; } });
|
|
793
793
|
const transactionCategorizationSelector_1 = require("./view/expenseAutomationView/selectors/transactionCategorizationSelector");
|
|
794
794
|
Object.defineProperty(exports, "getExpenseAutomationTransactionView", { enumerable: true, get: function () { return transactionCategorizationSelector_1.getExpenseAutomationTransactionView; } });
|
|
795
|
+
const jeSchedulesViewState_1 = require("./view/expenseAutomationView/types/jeSchedulesViewState");
|
|
796
|
+
Object.defineProperty(exports, "toExpenseAutomationJEScheduleSortKey", { enumerable: true, get: function () { return jeSchedulesViewState_1.toJEScheduleSortKey; } });
|
|
795
797
|
const missingReceiptsViewState_1 = require("./view/expenseAutomationView/types/missingReceiptsViewState");
|
|
796
798
|
Object.defineProperty(exports, "toExpenseAutomationMissingReceiptsSortKey", { enumerable: true, get: function () { return missingReceiptsViewState_1.toMissingReceiptsSortKey; } });
|
|
797
799
|
const reconciliationViewState_1 = require("./view/expenseAutomationView/types/reconciliationViewState");
|
|
@@ -5,4 +5,4 @@ import { RootState } from '../../reducer';
|
|
|
5
5
|
import { ZeniAPI } from '../../zeniAPI';
|
|
6
6
|
import { fetchClassList, updateClassList, updateClassListFailure } from './classListReducer';
|
|
7
7
|
export type ActionType = ReturnType<typeof fetchClassList> | ReturnType<typeof updateClasses> | ReturnType<typeof updateClassList> | ReturnType<typeof updateClassListFailure>;
|
|
8
|
-
export declare const fetchClassListEpic: (actions$: ActionsObservable<ActionType>,
|
|
8
|
+
export declare const fetchClassListEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -4,10 +4,9 @@ exports.fetchClassListEpic = void 0;
|
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
6
|
const classReducer_1 = require("../../entity/class/classReducer");
|
|
7
|
-
const tenantSelector_1 = require("../../entity/tenant/tenantSelector");
|
|
8
7
|
const responsePayload_1 = require("../../responsePayload");
|
|
9
8
|
const classListReducer_1 = require("./classListReducer");
|
|
10
|
-
const fetchClassListEpic = (actions$,
|
|
9
|
+
const fetchClassListEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(classListReducer_1.fetchClassList.match), (0, operators_1.switchMap)((action) => {
|
|
11
10
|
const { isIncludeDeleted } = action.payload;
|
|
12
11
|
const queryParams = isIncludeDeleted === true
|
|
13
12
|
? `?query=${encodeURIComponent(JSON.stringify({ is_include_deleted: true }))}`
|
|
@@ -57,7 +57,6 @@ export interface VendorViewSelectorView extends BankAccountSelectorView, Selecto
|
|
|
57
57
|
deleteFileStatusById: Record<ID, FetchStateAndError | undefined>;
|
|
58
58
|
hasInternationalWireTransfer: boolean;
|
|
59
59
|
hasWireTransfer: boolean;
|
|
60
|
-
isAccountingClassesEnabled: boolean;
|
|
61
60
|
loggedInUserVerification: UserVerificationState;
|
|
62
61
|
ownerList: User[];
|
|
63
62
|
updateFileStatusById: Record<ID, FetchStateAndError | undefined>;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getVendorDetailPageView = exports.getVendorView = void 0;
|
|
4
4
|
const reduceFetchState_1 = require("../../../commonStateTypes/reduceFetchState");
|
|
5
|
-
const tenantSelector_1 = require("../../../entity/tenant/tenantSelector");
|
|
6
5
|
const accountSelector_1 = require("../../../entity/account/accountSelector");
|
|
7
6
|
const addressSelector_1 = require("../../../entity/address/addressSelector");
|
|
8
7
|
const bankAccountSelector_1 = require("../../../entity/bankAccount/bankAccountSelector");
|
|
@@ -64,17 +63,13 @@ const getVendorView = (state, vendorIdFromUrl) => {
|
|
|
64
63
|
?.vendorDetailLocalData,
|
|
65
64
|
supportedCountries: billPayConfigState.vendor.supportedCountries,
|
|
66
65
|
};
|
|
67
|
-
|
|
68
|
-
const editFetchStateList = [
|
|
66
|
+
fetchState = (0, reduceFetchState_1.reduceFetchState)([
|
|
69
67
|
accountList,
|
|
68
|
+
classList,
|
|
70
69
|
vendorTypeListState,
|
|
71
70
|
vendorViewState.editVendorStateById[vendorIdFromUrl]?.fetchStatus ??
|
|
72
71
|
vendorViewReducer_1.initialState.newVendorState.fetchStatus,
|
|
73
|
-
];
|
|
74
|
-
if (isAccountingClassesEnabled) {
|
|
75
|
-
editFetchStateList.push(classList);
|
|
76
|
-
}
|
|
77
|
-
fetchState = (0, reduceFetchState_1.reduceFetchState)(editFetchStateList);
|
|
72
|
+
]);
|
|
78
73
|
}
|
|
79
74
|
else {
|
|
80
75
|
const basicVendorDetails = getBasicVendorDetailsForNewVendor(state, vendorViewState.newVendorState);
|
|
@@ -103,14 +98,11 @@ const getVendorView = (state, vendorIdFromUrl) => {
|
|
|
103
98
|
if (tentativeName != null) {
|
|
104
99
|
entityRecommendations = (0, recommendationSelector_1.getRecommendationsForEntity)(state, tentativeName, 'vendor');
|
|
105
100
|
}
|
|
106
|
-
const isAccountingClassesEnabled = (0, tenantSelector_1.getIsAccountingClassesEnabled)(state);
|
|
107
101
|
const fetchStateList = [
|
|
108
102
|
{ fetchState: accountList.fetchState, error: accountList.error },
|
|
103
|
+
{ fetchState: classList.fetchState, error: classList.error },
|
|
109
104
|
vendorTypeListState,
|
|
110
105
|
];
|
|
111
|
-
if (isAccountingClassesEnabled) {
|
|
112
|
-
fetchStateList.push({ fetchState: classList.fetchState, error: classList.error });
|
|
113
|
-
}
|
|
114
106
|
if (entityRecommendations != null &&
|
|
115
107
|
entityRecommendations.recommendations != null &&
|
|
116
108
|
entityRecommendations.recommendations.length > 0) {
|
|
@@ -155,7 +147,6 @@ const getVendorView = (state, vendorIdFromUrl) => {
|
|
|
155
147
|
fetchState: fetchState.fetchState,
|
|
156
148
|
hasWireTransfer,
|
|
157
149
|
hasInternationalWireTransfer,
|
|
158
|
-
isAccountingClassesEnabled: (0, tenantSelector_1.getIsAccountingClassesEnabled)(state),
|
|
159
150
|
deleteFileStatusById,
|
|
160
151
|
updateFileStatusById,
|
|
161
152
|
loggedInUserVerification,
|
|
@@ -232,10 +223,9 @@ const getBasicVendorDetailsForNewVendor = (state, newVendor) => {
|
|
|
232
223
|
};
|
|
233
224
|
const getVendorDetailPageView = (state, vendorId, entity) => {
|
|
234
225
|
const trendWithTransactions = (0, trendWithTransactionsSelector_1.getTrendWithTransactions)(state, entity, 'EntityDetail');
|
|
235
|
-
const isAccountingClassesEnabled = (0, tenantSelector_1.getIsAccountingClassesEnabled)(state);
|
|
236
226
|
const reducedFetchState = (0, reduceFetchState_1.reduceAnyFetchState)([
|
|
237
227
|
state.accountListState.byReportId.accountList,
|
|
238
|
-
|
|
228
|
+
state.classListState,
|
|
239
229
|
state.vendorTypeListState,
|
|
240
230
|
state.ownerListState,
|
|
241
231
|
state.vendorViewState.editVendorStateById[vendorId]?.fetchStatus ?? {
|
|
@@ -50,7 +50,6 @@ export interface VendorsTabVendorViewSelectorView extends SelectorView {
|
|
|
50
50
|
accountsHierarchyList: NestedAccountHierarchyForReport[];
|
|
51
51
|
classHierarchyList: NestedClassHierarchyForReport[];
|
|
52
52
|
classList: ClassListSelectorView;
|
|
53
|
-
isAccountingClassesEnabled: boolean;
|
|
54
53
|
ownerList: User[];
|
|
55
54
|
vendorTypeList: VendorType[];
|
|
56
55
|
vendorView?: VendorsTabVendorDetails;
|
|
@@ -6,7 +6,6 @@ const getStartOfAndEndOfTimeframeFY_1 = require("../../../commonStateTypes/fisca
|
|
|
6
6
|
const reduceFetchState_1 = require("../../../commonStateTypes/reduceFetchState");
|
|
7
7
|
const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
|
|
8
8
|
const accountSelector_1 = require("../../../entity/account/accountSelector");
|
|
9
|
-
const tenantSelector_1 = require("../../../entity/tenant/tenantSelector");
|
|
10
9
|
const addressSelector_1 = require("../../../entity/address/addressSelector");
|
|
11
10
|
const contactSelector_1 = require("../../../entity/billPay/contact/contactSelector");
|
|
12
11
|
const classSelector_1 = require("../../../entity/class/classSelector");
|
|
@@ -25,7 +24,6 @@ const toVendorDetailTabsType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_
|
|
|
25
24
|
exports.toVendorDetailTabsType = toVendorDetailTabsType;
|
|
26
25
|
const getVendorsTabVendorView = (state, vendorIdFromUrl) => {
|
|
27
26
|
const { accountListState, accountState, classListState, classState, vendorState, userState, vendorsTabVendorViewState, vendorTypeListState, addressState, addressViewState, contactState, } = state;
|
|
28
|
-
const isAccountingClassesEnabled = (0, tenantSelector_1.getIsAccountingClassesEnabled)(state);
|
|
29
27
|
const accountList = (0, accountListSelector_1.getAccountList)(accountState, accountListState, 'accountList');
|
|
30
28
|
const classList = (0, classListSelector_1.getClassList)(classState, classListState);
|
|
31
29
|
const ownerList = (0, userSelector_1.getUsersByUserIds)(state.userState, state.ownerListState.ownerIds);
|
|
@@ -57,7 +55,7 @@ const getVendorsTabVendorView = (state, vendorIdFromUrl) => {
|
|
|
57
55
|
}
|
|
58
56
|
fetchState = (0, reduceFetchState_1.reduceFetchState)([
|
|
59
57
|
accountList,
|
|
60
|
-
|
|
58
|
+
classList,
|
|
61
59
|
vendorTypeListState,
|
|
62
60
|
vendorsTabVendorViewState.vendorStateById[vendorIdFromUrl]?.fetchStatus ?? {
|
|
63
61
|
fetchState: 'Not-Started',
|
|
@@ -68,7 +66,6 @@ const getVendorsTabVendorView = (state, vendorIdFromUrl) => {
|
|
|
68
66
|
return {
|
|
69
67
|
accountList: accountList,
|
|
70
68
|
classList: classList,
|
|
71
|
-
isAccountingClassesEnabled,
|
|
72
69
|
vendorTypeList: vendorTypeList,
|
|
73
70
|
accountsHierarchyList,
|
|
74
71
|
classHierarchyList,
|
|
@@ -68,8 +68,7 @@ const toTransactionUpdatesFromTransactionCategorizationLocalData = (transactionC
|
|
|
68
68
|
Boolean(lineItem.account?.qboId);
|
|
69
69
|
hasClassChanged =
|
|
70
70
|
Boolean(lineItem.class?.qboId) &&
|
|
71
|
-
|
|
72
|
-
lineItem.class?.qboId !== accountLine.class?.qboId;
|
|
71
|
+
lineItem.class?.qboId !== accountLine.class.qboId;
|
|
73
72
|
const recommendedAccountBase = (0, saveTransactionHelper_1.toRecommendedAccountBase)(lineItem.amount.amount, lineItem.account);
|
|
74
73
|
const recommendedClassBase = (0, saveTransactionHelper_1.toRecommendedClassBase)(lineItem.amount.amount, lineItem.class);
|
|
75
74
|
if (entityDetails != null &&
|
|
@@ -241,7 +241,7 @@ const buildLineItemById = (transaction, uncategorizedIncomeExpense, recommendati
|
|
|
241
241
|
isPreFilled: true,
|
|
242
242
|
};
|
|
243
243
|
}
|
|
244
|
-
if (
|
|
244
|
+
if (accountLine.class.classId === '' &&
|
|
245
245
|
higherPreferenceRecommendation?.class != null) {
|
|
246
246
|
record.class = {
|
|
247
247
|
...higherPreferenceRecommendation.class,
|
|
@@ -472,7 +472,7 @@ const setEntityRecommendationForLineIdInLocalData = (draft, transaction, transac
|
|
|
472
472
|
}
|
|
473
473
|
: accountLine.account;
|
|
474
474
|
record.class =
|
|
475
|
-
|
|
475
|
+
accountLine.class.classId !== ''
|
|
476
476
|
? accountLine.class
|
|
477
477
|
: recommendations?.[0]?.class
|
|
478
478
|
? {
|
|
@@ -5,7 +5,7 @@ import { JEScheduledTransactionPayload } from '../../../entity/jeSchedules/jeSch
|
|
|
5
5
|
import { JEScheduleTransactionKey } from '../../../entity/jeSchedules/jeSchedulesTypes';
|
|
6
6
|
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
7
7
|
import { AccountTypeRecommendationPayload } from '../../accountMappingView/accountTypeRecommendation/accountTypeRecommendationPayload';
|
|
8
|
-
import { AccountSettingsLocalData, AccountSettingsState, JEScheduleLocalData, JESchedulesViewState } from '../types/jeSchedulesViewState';
|
|
8
|
+
import { AccountSettingsLocalData, AccountSettingsState, JEScheduleLocalData, JESchedulesViewState, JESchedulesViewUIState } from '../types/jeSchedulesViewState';
|
|
9
9
|
export declare const accountSettingsInitialState: AccountSettingsState;
|
|
10
10
|
export declare const initialState: JESchedulesViewState;
|
|
11
11
|
export declare const clearExpenseAutomationJESchedulesView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/clearExpenseAutomationJESchedulesView">, clearJeAccountSettingsLocalData: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/clearJeAccountSettingsLocalData">, clearJeScheduleLocalData: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/clearJeScheduleLocalData">, fetchAccountSettingsListForAccountTypes: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/fetchAccountSettingsListForAccountTypes">, fetchJeSchedules: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, refreshViewInBackground?: any], {
|
|
@@ -56,7 +56,7 @@ export declare const clearExpenseAutomationJESchedulesView: import("@reduxjs/too
|
|
|
56
56
|
accountPayload: AccountMetadataPayload[];
|
|
57
57
|
}, "expenseAutomationJESchedulesView/updateAccountSettingsListForAccountTypes">, updateAccountSettingsListForAccountTypesFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
58
58
|
status: ZeniAPIStatus;
|
|
59
|
-
}, "expenseAutomationJESchedulesView/updateAccountSettingsListForAccountTypesFailure">, updateJeScheduleLocalDataById: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
59
|
+
}, "expenseAutomationJESchedulesView/updateAccountSettingsListForAccountTypesFailure">, updateJESchedulesUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<JESchedulesViewUIState>, "expenseAutomationJESchedulesView/updateJESchedulesUIState">, updateJeScheduleLocalDataById: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
60
60
|
localData: Partial<JEScheduleLocalData>;
|
|
61
61
|
scheduledJournalEntryID: ID;
|
|
62
62
|
}, "expenseAutomationJESchedulesView/updateJeScheduleLocalDataById">, updateJeScheduleTransactionKeys: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleKeys: (`${string}_bill` | `${string}_expense` | `${string}_check` | `${string}_refund` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`)[], selectedPeriod: MonthYearPeriod], {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.updateRecommendationForAccountSettingsFailure = exports.updateRecommendationForAccountSettings = exports.updateJeScheduleTransactionKeys = exports.updateJeScheduleLocalDataById = exports.updateAccountSettingsListForAccountTypesFailure = exports.updateAccountSettingsListForAccountTypes = exports.saveAccountSettingsSuccess = exports.saveAccountSettingsLocalData = exports.saveAccountSettingsFailure = exports.saveAccountSettings = exports.retryJeScheduleSuccess = exports.retryJeScheduleFailure = exports.retryJeSchedule = exports.removeJeScheduleTransactionKey = exports.removeJeScheduleLocalDataById = exports.removeFailedJeScheduleTransactionKey = exports.initializeJeScheduleLocalData = exports.initializeAccountSettingsView = exports.ignoreRecommendedJeScheduleSuccess = exports.ignoreRecommendedJeScheduleFailure = exports.ignoreRecommendedJeSchedule = exports.fetchRecommendationForAccountSettings = exports.fetchJeSchedulesSuccess = exports.fetchJeSchedulesPage = exports.fetchJeSchedulesFailure = exports.fetchJeSchedules = exports.fetchAccountSettingsListForAccountTypes = exports.clearJeScheduleLocalData = exports.clearJeAccountSettingsLocalData = exports.clearExpenseAutomationJESchedulesView = exports.initialState = exports.accountSettingsInitialState = void 0;
|
|
4
|
+
exports.updateRecommendationForAccountSettingsFailure = exports.updateRecommendationForAccountSettings = exports.updateJeScheduleTransactionKeys = exports.updateJeScheduleLocalDataById = exports.updateJESchedulesUIState = exports.updateAccountSettingsListForAccountTypesFailure = exports.updateAccountSettingsListForAccountTypes = exports.saveAccountSettingsSuccess = exports.saveAccountSettingsLocalData = exports.saveAccountSettingsFailure = exports.saveAccountSettings = exports.retryJeScheduleSuccess = exports.retryJeScheduleFailure = exports.retryJeSchedule = exports.removeJeScheduleTransactionKey = exports.removeJeScheduleLocalDataById = exports.removeFailedJeScheduleTransactionKey = exports.initializeJeScheduleLocalData = exports.initializeAccountSettingsView = exports.ignoreRecommendedJeScheduleSuccess = exports.ignoreRecommendedJeScheduleFailure = exports.ignoreRecommendedJeSchedule = exports.fetchRecommendationForAccountSettings = exports.fetchJeSchedulesSuccess = exports.fetchJeSchedulesPage = exports.fetchJeSchedulesFailure = exports.fetchJeSchedules = exports.fetchAccountSettingsListForAccountTypes = exports.clearJeScheduleLocalData = exports.clearJeAccountSettingsLocalData = exports.clearExpenseAutomationJESchedulesView = exports.initialState = exports.accountSettingsInitialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const getNestedAccountIDHierarchyForReport_1 = require("../../../commonStateTypes/accountView/getNestedAccountIDHierarchyForReport");
|
|
7
7
|
const timePeriod_1 = require("../../../commonStateTypes/timePeriod");
|
|
@@ -50,6 +50,8 @@ exports.initialState = {
|
|
|
50
50
|
uiState: {
|
|
51
51
|
searchString: '',
|
|
52
52
|
scrollPosition: { scrollTop: 0, scrollLeft: undefined },
|
|
53
|
+
sortKey: 'startMonth',
|
|
54
|
+
sortOrder: 'descending',
|
|
53
55
|
totalCount: 0,
|
|
54
56
|
limit: 10,
|
|
55
57
|
},
|
|
@@ -377,12 +379,26 @@ const expenseAutomationJESchedulesView = (0, toolkit_1.createSlice)({
|
|
|
377
379
|
clearJeAccountSettingsLocalData(draft) {
|
|
378
380
|
draft.accountSettings.localData = exports.accountSettingsInitialState.localData;
|
|
379
381
|
},
|
|
382
|
+
updateJESchedulesUIState(draft, action) {
|
|
383
|
+
if (action.payload.sortKey != null) {
|
|
384
|
+
draft.uiState.sortKey = action.payload.sortKey;
|
|
385
|
+
}
|
|
386
|
+
if (action.payload.sortOrder != null) {
|
|
387
|
+
draft.uiState.sortOrder = action.payload.sortOrder;
|
|
388
|
+
}
|
|
389
|
+
if (action.payload.searchString != null) {
|
|
390
|
+
draft.uiState.searchString = action.payload.searchString;
|
|
391
|
+
}
|
|
392
|
+
if (action.payload.scrollPosition != null) {
|
|
393
|
+
draft.uiState.scrollPosition = action.payload.scrollPosition;
|
|
394
|
+
}
|
|
395
|
+
},
|
|
380
396
|
clearExpenseAutomationJESchedulesView(draft) {
|
|
381
397
|
Object.assign(draft, exports.initialState);
|
|
382
398
|
},
|
|
383
399
|
},
|
|
384
400
|
});
|
|
385
|
-
_a = expenseAutomationJESchedulesView.actions, exports.clearExpenseAutomationJESchedulesView = _a.clearExpenseAutomationJESchedulesView, exports.clearJeAccountSettingsLocalData = _a.clearJeAccountSettingsLocalData, exports.clearJeScheduleLocalData = _a.clearJeScheduleLocalData, exports.fetchAccountSettingsListForAccountTypes = _a.fetchAccountSettingsListForAccountTypes, exports.fetchJeSchedules = _a.fetchJeSchedules, exports.fetchJeSchedulesFailure = _a.fetchJeSchedulesFailure, exports.fetchJeSchedulesPage = _a.fetchJeSchedulesPage, exports.fetchJeSchedulesSuccess = _a.fetchJeSchedulesSuccess, exports.fetchRecommendationForAccountSettings = _a.fetchRecommendationForAccountSettings, exports.ignoreRecommendedJeSchedule = _a.ignoreRecommendedJeSchedule, exports.ignoreRecommendedJeScheduleFailure = _a.ignoreRecommendedJeScheduleFailure, exports.ignoreRecommendedJeScheduleSuccess = _a.ignoreRecommendedJeScheduleSuccess, exports.initializeAccountSettingsView = _a.initializeAccountSettingsView, exports.initializeJeScheduleLocalData = _a.initializeJeScheduleLocalData, exports.removeFailedJeScheduleTransactionKey = _a.removeFailedJeScheduleTransactionKey, exports.removeJeScheduleLocalDataById = _a.removeJeScheduleLocalDataById, exports.removeJeScheduleTransactionKey = _a.removeJeScheduleTransactionKey, exports.retryJeSchedule = _a.retryJeSchedule, exports.retryJeScheduleFailure = _a.retryJeScheduleFailure, exports.retryJeScheduleSuccess = _a.retryJeScheduleSuccess, exports.saveAccountSettings = _a.saveAccountSettings, exports.saveAccountSettingsFailure = _a.saveAccountSettingsFailure, exports.saveAccountSettingsLocalData = _a.saveAccountSettingsLocalData, exports.saveAccountSettingsSuccess = _a.saveAccountSettingsSuccess, exports.updateAccountSettingsListForAccountTypes = _a.updateAccountSettingsListForAccountTypes, exports.updateAccountSettingsListForAccountTypesFailure = _a.updateAccountSettingsListForAccountTypesFailure, exports.updateJeScheduleLocalDataById = _a.updateJeScheduleLocalDataById, exports.updateJeScheduleTransactionKeys = _a.updateJeScheduleTransactionKeys, exports.updateRecommendationForAccountSettings = _a.updateRecommendationForAccountSettings, exports.updateRecommendationForAccountSettingsFailure = _a.updateRecommendationForAccountSettingsFailure;
|
|
401
|
+
_a = expenseAutomationJESchedulesView.actions, exports.clearExpenseAutomationJESchedulesView = _a.clearExpenseAutomationJESchedulesView, exports.clearJeAccountSettingsLocalData = _a.clearJeAccountSettingsLocalData, exports.clearJeScheduleLocalData = _a.clearJeScheduleLocalData, exports.fetchAccountSettingsListForAccountTypes = _a.fetchAccountSettingsListForAccountTypes, exports.fetchJeSchedules = _a.fetchJeSchedules, exports.fetchJeSchedulesFailure = _a.fetchJeSchedulesFailure, exports.fetchJeSchedulesPage = _a.fetchJeSchedulesPage, exports.fetchJeSchedulesSuccess = _a.fetchJeSchedulesSuccess, exports.fetchRecommendationForAccountSettings = _a.fetchRecommendationForAccountSettings, exports.ignoreRecommendedJeSchedule = _a.ignoreRecommendedJeSchedule, exports.ignoreRecommendedJeScheduleFailure = _a.ignoreRecommendedJeScheduleFailure, exports.ignoreRecommendedJeScheduleSuccess = _a.ignoreRecommendedJeScheduleSuccess, exports.initializeAccountSettingsView = _a.initializeAccountSettingsView, exports.initializeJeScheduleLocalData = _a.initializeJeScheduleLocalData, exports.removeFailedJeScheduleTransactionKey = _a.removeFailedJeScheduleTransactionKey, exports.removeJeScheduleLocalDataById = _a.removeJeScheduleLocalDataById, exports.removeJeScheduleTransactionKey = _a.removeJeScheduleTransactionKey, exports.retryJeSchedule = _a.retryJeSchedule, exports.retryJeScheduleFailure = _a.retryJeScheduleFailure, exports.retryJeScheduleSuccess = _a.retryJeScheduleSuccess, exports.saveAccountSettings = _a.saveAccountSettings, exports.saveAccountSettingsFailure = _a.saveAccountSettingsFailure, exports.saveAccountSettingsLocalData = _a.saveAccountSettingsLocalData, exports.saveAccountSettingsSuccess = _a.saveAccountSettingsSuccess, exports.updateAccountSettingsListForAccountTypes = _a.updateAccountSettingsListForAccountTypes, exports.updateAccountSettingsListForAccountTypesFailure = _a.updateAccountSettingsListForAccountTypesFailure, exports.updateJESchedulesUIState = _a.updateJESchedulesUIState, exports.updateJeScheduleLocalDataById = _a.updateJeScheduleLocalDataById, exports.updateJeScheduleTransactionKeys = _a.updateJeScheduleTransactionKeys, exports.updateRecommendationForAccountSettings = _a.updateRecommendationForAccountSettings, exports.updateRecommendationForAccountSettingsFailure = _a.updateRecommendationForAccountSettingsFailure;
|
|
386
402
|
exports.default = expenseAutomationJESchedulesView.reducer;
|
|
387
403
|
const doUpdateRecommendationForAccountSettings = (draft, payload) => {
|
|
388
404
|
const { prepaidExpensesRecommendations, fixedAssetsRecommendations, accruedExpensesRecommendations, } = (0, accountTypeRecommendationPayload_1.mapAccountTypeRecommendationPayloadToAccountRecommendationByType)(payload);
|
|
@@ -18,10 +18,12 @@ export interface ExpenseAutomationJESchedulesViewSelector extends SelectorView {
|
|
|
18
18
|
allDepreciationAccountList: AccountBase[];
|
|
19
19
|
allDepreciationAccountListNestedAccountHierarchy: NestedAccountHierarchyForReport[];
|
|
20
20
|
classListNestedAccountHierarchy: NestedClassHierarchyForReport[];
|
|
21
|
+
completedSchedules: JEScheduledTransaction[];
|
|
21
22
|
completionStatus: CompletionStatusType;
|
|
22
23
|
draftSchedules: JEScheduledTransaction[];
|
|
23
24
|
ignoreStatusById: Record<JEScheduleTransactionKey, FetchStateAndError>;
|
|
24
25
|
jeScheduleLocalDataById: Record<ID, JEScheduleLocalData>;
|
|
26
|
+
ongoingSchedules: JEScheduledTransaction[];
|
|
25
27
|
postStatusById: Record<ID, FetchStateAndError>;
|
|
26
28
|
refreshStatus: FetchStateAndError;
|
|
27
29
|
resolveSchedules: JEScheduledTransactionWithFailedEntries[];
|
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getExpenseAutomationJESchedulesView = getExpenseAutomationJESchedulesView;
|
|
7
7
|
const omit_1 = __importDefault(require("lodash/omit"));
|
|
8
|
+
const orderBy_1 = __importDefault(require("lodash/orderBy"));
|
|
8
9
|
const timePeriod_1 = require("../../../commonStateTypes/timePeriod");
|
|
9
10
|
const accountSelector_1 = require("../../../entity/account/accountSelector");
|
|
10
11
|
const jeSchedulesSelector_1 = require("../../../entity/jeSchedules/jeSchedulesSelector");
|
|
@@ -16,6 +17,38 @@ const scheduleDetailSelector_1 = require("../../scheduleView/scheduleDetailView/
|
|
|
16
17
|
const scheduleListHelper_1 = require("../../scheduleView/scheduleListView/scheduleListHelper");
|
|
17
18
|
const expenseAutomationViewSelectorTypes_1 = require("../selectorTypes/expenseAutomationViewSelectorTypes");
|
|
18
19
|
const jeAccountSettingsViewSelector_1 = require("./jeAccountSettingsViewSelector");
|
|
20
|
+
function getJEScheduleSortAccessor(sortKey) {
|
|
21
|
+
switch (sortKey) {
|
|
22
|
+
case 'vendor':
|
|
23
|
+
return (s) => s.vendor.name?.toLowerCase();
|
|
24
|
+
case 'category':
|
|
25
|
+
return (s) => s.jeDebit.account?.accountName?.toLowerCase();
|
|
26
|
+
case 'class':
|
|
27
|
+
return (s) => s.jeDebit.accountingClass?.className?.toLowerCase();
|
|
28
|
+
case 'scheduleCategory':
|
|
29
|
+
return (s) => s.jeScheduleType;
|
|
30
|
+
case 'startMonth':
|
|
31
|
+
return (s) => s.startDate?.valueOf();
|
|
32
|
+
case 'type':
|
|
33
|
+
return (s) => s.baseTransaction.typeOfTransaction;
|
|
34
|
+
case 'amortizationPeriod':
|
|
35
|
+
return (s) => s.period;
|
|
36
|
+
case 'jePostingDate':
|
|
37
|
+
return (s) => s.dayOfPostingDate;
|
|
38
|
+
case 'remainingMonths':
|
|
39
|
+
return (s) => s.period;
|
|
40
|
+
case 'runningBalance':
|
|
41
|
+
return (s) => s.balanceAsOfToday?.amount;
|
|
42
|
+
case 'totalAmount':
|
|
43
|
+
return (s) => s.baseTransaction.amount.amount;
|
|
44
|
+
default:
|
|
45
|
+
return (s) => s.startDate?.valueOf();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function sortJEScheduledTransactions(transactions, sortKey, sortOrder) {
|
|
49
|
+
const accessor = getJEScheduleSortAccessor(sortKey);
|
|
50
|
+
return (0, orderBy_1.default)(transactions, [accessor], [sortOrder === 'ascending' ? 'asc' : 'desc']);
|
|
51
|
+
}
|
|
19
52
|
function getExpenseAutomationJESchedulesView(state) {
|
|
20
53
|
const jeScheduledTransaction = [];
|
|
21
54
|
const failedJeScheduledTransaction = [];
|
|
@@ -65,13 +98,21 @@ function getExpenseAutomationJESchedulesView(state) {
|
|
|
65
98
|
const jeScheduleDetails = (0, jeSchedulesSelector_1.getJEScheduledTransactionByJEScheduleTransactionKey)(jeScheduleKey, state);
|
|
66
99
|
failedJeScheduledTransaction.push(jeScheduleDetails);
|
|
67
100
|
});
|
|
68
|
-
const
|
|
69
|
-
const
|
|
101
|
+
const { sortKey, sortOrder } = uiState;
|
|
102
|
+
const draftSchedules = sortJEScheduledTransactions(jeScheduledTransaction.filter((schedule) => schedule.status.code === 'draft'), sortKey, sortOrder);
|
|
103
|
+
const ongoingSchedules = sortJEScheduledTransactions(jeScheduledTransaction.filter((schedule) => schedule.status.code === 'ongoing'), sortKey, sortOrder);
|
|
104
|
+
const completedSchedules = sortJEScheduledTransactions(jeScheduledTransaction.filter((schedule) => schedule.status.code === 'completed' ||
|
|
105
|
+
schedule.status.code === 'marked_as_completed'), sortKey, sortOrder);
|
|
106
|
+
const unsortedResolveSchedules = [];
|
|
70
107
|
failedJeScheduledTransaction.forEach((schedule) => {
|
|
71
108
|
schedule.scheduledJournalEntry.forEach((journalEntry) => {
|
|
72
|
-
|
|
109
|
+
unsortedResolveSchedules.push({
|
|
110
|
+
...schedule,
|
|
111
|
+
scheduledJournalEntry: journalEntry,
|
|
112
|
+
});
|
|
73
113
|
});
|
|
74
114
|
});
|
|
115
|
+
const resolveSchedules = sortJEScheduledTransactions(unsortedResolveSchedules, sortKey, sortOrder);
|
|
75
116
|
const allSteps = monthYearPeriodId != null
|
|
76
117
|
? (0, expenseAutomationViewSelectorTypes_1.getAllSteps)(monthEndCloseChecksState, monthYearPeriodId, currentTenant.tenantId)
|
|
77
118
|
: [];
|
|
@@ -85,7 +126,9 @@ function getExpenseAutomationJESchedulesView(state) {
|
|
|
85
126
|
allAccountList: filteredAccounts,
|
|
86
127
|
accountListNestedAccountHierarchy,
|
|
87
128
|
allClassList: allClasses,
|
|
129
|
+
completedSchedules,
|
|
88
130
|
draftSchedules,
|
|
131
|
+
ongoingSchedules,
|
|
89
132
|
resolveSchedules: resolveSchedules,
|
|
90
133
|
accountSettingsView,
|
|
91
134
|
postStatusById: postStatusById,
|
|
@@ -39,7 +39,7 @@ function getExpenseAutomationMissingReceiptsView(state) {
|
|
|
39
39
|
transaction.lines.length > 0 &&
|
|
40
40
|
transaction.lines[0]
|
|
41
41
|
?.class != null
|
|
42
|
-
? transaction.lines[0].class
|
|
42
|
+
? transaction.lines[0].class.className.toLowerCase()
|
|
43
43
|
: null;
|
|
44
44
|
case 'vendor':
|
|
45
45
|
default:
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import { NestedAccountHierarchyForReport } from '../../../commonStateTypes/accountView/nestedAccountID';
|
|
2
2
|
import { FetchStateAndError, FetchedState, ID } from '../../../commonStateTypes/common';
|
|
3
3
|
import { Recommendation } from '../../../commonStateTypes/recommendationBase';
|
|
4
|
+
import { SortOrder } from '../../../commonStateTypes/selectorTypes/sortOrderTypes';
|
|
4
5
|
import { MonthYearPeriodId } from '../../../commonStateTypes/timePeriod';
|
|
5
6
|
import { AccountBase } from '../../../entity/account/accountState';
|
|
6
7
|
import { JEScheduleTransactionKey, ScheduleTypes } from '../../../entity/jeSchedules/jeSchedulesTypes';
|
|
7
8
|
import { VendorBase } from '../../../entity/vendor/vendorState';
|
|
9
|
+
export declare const toJEScheduleSortKey: (v: string) => "vendor" | "type" | "category" | "class" | "totalAmount" | "runningBalance" | "scheduleCategory" | "startMonth" | "amortizationPeriod" | "jePostingDate" | "remainingMonths";
|
|
10
|
+
export type JEScheduleSortKey = ReturnType<typeof toJEScheduleSortKey>;
|
|
8
11
|
export interface JESchedulesViewUIState {
|
|
9
12
|
scrollPosition: {
|
|
10
13
|
scrollTop: number;
|
|
11
14
|
scrollLeft?: number;
|
|
12
15
|
} | undefined;
|
|
13
16
|
searchString: string;
|
|
17
|
+
sortKey: JEScheduleSortKey;
|
|
18
|
+
sortOrder: SortOrder;
|
|
14
19
|
totalCount: number;
|
|
15
20
|
limit?: number;
|
|
16
21
|
}
|
|
@@ -1,2 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toJEScheduleSortKey = void 0;
|
|
4
|
+
const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
|
|
5
|
+
const JE_SCHEDULE_SORT_KEYS = [
|
|
6
|
+
'vendor',
|
|
7
|
+
'category',
|
|
8
|
+
'class',
|
|
9
|
+
'scheduleCategory',
|
|
10
|
+
'startMonth',
|
|
11
|
+
'type',
|
|
12
|
+
'amortizationPeriod',
|
|
13
|
+
'jePostingDate',
|
|
14
|
+
'remainingMonths',
|
|
15
|
+
'runningBalance',
|
|
16
|
+
'totalAmount',
|
|
17
|
+
];
|
|
18
|
+
const toJEScheduleSortKey = (v) => (0, stringToUnion_1.stringToUnion)(v, JE_SCHEDULE_SORT_KEYS);
|
|
19
|
+
exports.toJEScheduleSortKey = toJEScheduleSortKey;
|
|
@@ -7,7 +7,7 @@ export declare const getScheduleListKey: (selectedCategory: ID, selectedTimefram
|
|
|
7
7
|
export type ScheduleListKey = ReturnType<typeof getScheduleListKey>;
|
|
8
8
|
export declare const toScheduleSubTabType: (v: string) => "completed" | "new" | "ongoing" | "all";
|
|
9
9
|
export type ScheduleSubTabType = ReturnType<typeof toScheduleSubTabType>;
|
|
10
|
-
declare const toScheduleSortKeyType: (v: string) => "months" | "amount" | "vendor" | "status" | "user" | "createTime" | "class" | "memo" | "transactionDate" | "transactionType" | "balanceAsOfToday" | "assetId" | "
|
|
10
|
+
declare const toScheduleSortKeyType: (v: string) => "months" | "amount" | "vendor" | "status" | "user" | "createTime" | "class" | "memo" | "transactionDate" | "transactionType" | "balanceAsOfToday" | "assetId" | "scheduleCategory" | "startMonth" | "accruedExpenseCategory" | "expenseCategory" | "accumulatedDepreciationCategory" | "endMonth";
|
|
11
11
|
export declare type ScheduleListSortKey = ReturnType<typeof toScheduleSortKeyType>;
|
|
12
12
|
export interface DownloadJEScheduleTabOptions {
|
|
13
13
|
categoryId: ID;
|
|
@@ -9,7 +9,6 @@ const reduceFetchState_1 = require("../../../../commonStateTypes/reduceFetchStat
|
|
|
9
9
|
const contactSelector_1 = require("../../../../entity/billPay/contact/contactSelector");
|
|
10
10
|
const paymentAccountSelector_1 = require("../../../../entity/paymentAccount/paymentAccountSelector");
|
|
11
11
|
const vendorSelector_1 = require("../../../../entity/vendor/vendorSelector");
|
|
12
|
-
const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
|
|
13
12
|
const accountListSelector_1 = require("../../../accountList/accountListSelector");
|
|
14
13
|
const setupViewSelector_1 = require("../../commonSetup/setupViewSelector");
|
|
15
14
|
const depositAccountListSelector_1 = require("../../zeniAccounts/depositAccountList/depositAccountListSelector");
|
|
@@ -81,14 +80,11 @@ const getReviewPageBillDetail = (state, billId) => {
|
|
|
81
80
|
}
|
|
82
81
|
}
|
|
83
82
|
if (sourceBillDetail != null) {
|
|
84
|
-
|
|
83
|
+
sourceBillDetailFetchState = (0, reduceFetchState_1.reduceFetchState)([
|
|
85
84
|
sourceBillDetail.fetchStatus,
|
|
86
85
|
accountListState.byReportId['billPayAccountList'],
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
fetchStateList.push(classListState);
|
|
90
|
-
}
|
|
91
|
-
sourceBillDetailFetchState = (0, reduceFetchState_1.reduceFetchState)(fetchStateList).fetchState;
|
|
86
|
+
classListState,
|
|
87
|
+
]).fetchState;
|
|
92
88
|
}
|
|
93
89
|
}
|
|
94
90
|
else {
|