@zeniai/client-epic-state 4.19.35 → 4.19.36-betaJK2
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/transactionActivityLog/transactionActivityLogPayload.d.ts +27 -0
- package/lib/entity/transactionActivityLog/transactionActivityLogPayload.js +39 -0
- package/lib/entity/transactionActivityLog/transactionActivityLogReducer.d.ts +6 -0
- package/lib/entity/transactionActivityLog/transactionActivityLogReducer.js +27 -0
- package/lib/entity/transactionActivityLog/transactionActivityLogSelector.d.ts +4 -0
- package/lib/entity/transactionActivityLog/transactionActivityLogSelector.js +17 -0
- package/lib/entity/transactionActivityLog/transactionActivityLogState.d.ts +30 -0
- package/lib/entity/transactionActivityLog/transactionActivityLogState.js +13 -0
- package/lib/epic.d.ts +2 -1
- package/lib/epic.js +2 -1
- package/lib/esm/entity/transactionActivityLog/transactionActivityLogPayload.js +34 -0
- package/lib/esm/entity/transactionActivityLog/transactionActivityLogReducer.js +23 -0
- package/lib/esm/entity/transactionActivityLog/transactionActivityLogSelector.js +10 -0
- package/lib/esm/entity/transactionActivityLog/transactionActivityLogState.js +9 -0
- package/lib/esm/epic.js +2 -1
- package/lib/esm/index.js +2 -0
- package/lib/esm/reducer.js +6 -0
- package/lib/esm/view/expenseAutomationView/epics/accountRecon/uploadAccountStatementEpic.js +3 -1
- package/lib/esm/view/spendManagement/reimbursement/remiDetailView/epics/fetchRemiDetailEpic.js +5 -4
- package/lib/esm/view/transactionActivityLogView/fetchTransactionActivityLogEpic.js +35 -0
- package/lib/esm/view/transactionActivityLogView/transactionActivityLogViewPayload.js +1 -0
- package/lib/esm/view/transactionActivityLogView/transactionActivityLogViewReducer.js +46 -0
- package/lib/esm/view/transactionActivityLogView/transactionActivityLogViewSelector.js +16 -0
- package/lib/esm/view/transactionActivityLogView/transactionActivityLogViewState.js +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +5 -1
- package/lib/reducer.d.ts +6 -0
- package/lib/reducer.js +6 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/uploadAccountStatementEpic.js +3 -1
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/fetchRemiDetailEpic.js +5 -4
- package/lib/view/transactionActivityLogView/fetchTransactionActivityLogEpic.d.ts +8 -0
- package/lib/view/transactionActivityLogView/fetchTransactionActivityLogEpic.js +39 -0
- package/lib/view/transactionActivityLogView/transactionActivityLogViewPayload.d.ts +6 -0
- package/lib/view/transactionActivityLogView/transactionActivityLogViewPayload.js +2 -0
- package/lib/view/transactionActivityLogView/transactionActivityLogViewReducer.d.ts +17 -0
- package/lib/view/transactionActivityLogView/transactionActivityLogViewReducer.js +50 -0
- package/lib/view/transactionActivityLogView/transactionActivityLogViewSelector.d.ts +8 -0
- package/lib/view/transactionActivityLogView/transactionActivityLogViewSelector.js +19 -0
- package/lib/view/transactionActivityLogView/transactionActivityLogViewState.d.ts +5 -0
- package/lib/view/transactionActivityLogView/transactionActivityLogViewState.js +2 -0
- package/package.json +1 -1
- package/lib/tsconfig.typecheck.tsbuildinfo +0 -1
package/lib/esm/epic.js
CHANGED
|
@@ -473,6 +473,7 @@ import { fetchTaskListPageEpic, } from './view/taskManager/taskListView/epics/fe
|
|
|
473
473
|
import { updateTaskFromListViewEpic, } from './view/taskManager/taskListView/epics/updateTaskFromListViewEpic';
|
|
474
474
|
import { fetchTasksCardEpic, } from './view/tasksCard/fetchTasksCardEpic';
|
|
475
475
|
import { fetchTopExEpic, } from './view/topEx/topExEpic';
|
|
476
|
+
import { fetchTransactionActivityLogEpic, } from './view/transactionActivityLogView/fetchTransactionActivityLogEpic';
|
|
476
477
|
import { deleteTransactionAttachmentEpic, } from './view/transactionDetail/epics/deleteTransactionAttachmentEpic';
|
|
477
478
|
import { downloadAccountingProviderAttachmentEpic, } from './view/transactionDetail/epics/downloadAccountingProviderAttachmentEpic';
|
|
478
479
|
import { initializeTransactionDetailLocalDataEpic, } from './view/transactionDetail/epics/initializeTransactionDetailLocalDataEpic';
|
|
@@ -518,7 +519,7 @@ import { fetchZeniAccStatementListEpic, } from './view/zeniAccStatementList/fetc
|
|
|
518
519
|
import { fetchZeniAccStatementPageEpic, } from './view/zeniAccStatementList/fetchZeniAccStatementPageEpic';
|
|
519
520
|
import { fetchZeniAccountsPromoCardEpic, } from './view/zeniAccountsPromoCard/zeniAccountsPromoCardEpic';
|
|
520
521
|
// Note: Please maintain strict alphabetical order
|
|
521
|
-
const combinedEpics = combineEpics(acceptBillPayTermsEpic, acceptBillPayUpdatedTermsEpic, acceptChargeCardTermsEpic, acceptEmployeeRemiTermsEpic, acceptMasterTOSEpic, acceptRemiTermsEpic, acceptTreasuryTermsEpic, acceptZeniAccountTermsEpic, addCardPaymentSourceEpic, approveOrRejectBillEpic, approveOrRejectBillsBulkActionEpic, approveOrRejectRemiEpic, approveOrRejectRemisBulkActionEpic, approveVendorGlobalReviewEpic, archiveTaskEpic, bulkUpdateTaskListEpic, cancelAndDeleteBillEpic, cancelAndDeleteRemiEpic, cancelOrDeleteBillsBulkActionEpic, cancelOrDeleteRemisBulkActionEpic, cancelScheduleAccruedJournalEntryEpic, changeZeniPersonRolesEpic, checkDepositEpic, clearAllEpic, closeChargeCardEpic, closeChargeCardsEpic, companyManagementSavePendingUpdatesEpic, companyManagementSaveUpdatesEpic, confirmCardSetupIntentEpic, convertAmountToHomeCurrencyEpic, createAddressEpic, createBankAccountEpic, createCardSetupIntentEpic, createCheckingAccountEpic, createCompanyAddressEpic, createCompanyOfficersEpic, createCompanyUserAddressEpic, createGlobalMerchantEpic, createInternationalBankAccountEpic, createNewSchedulesAccruedEpic, createNewSchedulesEpic, createNewTaskGroupEpic, createPaymentInstrumentEpic, createSessionAndSubmitEpic, createSessionEpic, createTagEpic, createTaskFromTaskGroupTemplateEpic, createUserBankAccountEpic, deleteAccountStatementEpic, deleteBankAccountEpic, deleteBillEpic, deleteChatSessionEpic, deleteBillPayApprovalRuleEpic, deleteFileEpic, deleteFileListEpic, deleteInternationalBankAccountEpic, deletePaymentInstrumentEpic, deletePersonEpic, deleteRemiApprovalRuleEpic, deleteRemiEpic, deleteScheduleAccruedDetailEpic, deleteScheduleDetailEpic, deleteTagEpic, deleteTaskEpic, deleteTaskGroupEpic, deleteTransactionAttachmentEpic, deleteUserBankAccountEpic, doMagicLinkSignInEpic, doSignInEpic, doSignOutEpic, sendEmailMagicLinkToUserEpic, verifyDeviceWithTwoFAEpic, downloadAccountingProviderAttachmentEpic, dragNDropTasksEpic, enableChargeCardAutoPayEpic, enableSetupEpic, establishOnboardingPlaidConnectionEpic, establishPlaidConnectionEpic, expressInterestChargeCardEpic, fetchAccountListEpic, fetchAccountListForAccountTypesEpic, fetchAccountSettingsListForAccountTypesEpic, fetchAccruedScheduleListEpic, fetchActiveTenantEpic, fetchAddressEpic, fetchAllCockpitViewsEpic, fetchAllExpenseAutomationTabsEpic, fetchAllPeopleRequiredViewsEpic, fetchAllTagsEpic, fetchAllTaskGroupsEpic, fetchAllTenantsEpic, fetchAndUpdateVendorRecommendationsEpic, fetchAggregatedReportEpic, fetchApAgingDetailEpic, fetchApAgingEpic, fetchArAgingDetailEpic, fetchArAgingEpic, fetchAuditReportGroupViewEpic, fetchAuditRuleGroupViewEpic, fetchBalanceSheetEpic, fetchBalanceSheetForTimeframeEpic, fetchBankAccountsListEpic, fetchBankConnectionsViewEpic, fetchBankCountryNameByIbanEpic, fetchBankNameByRoutingEpic, fetchBankNameBySwiftEpic, fetchBillAndInitializeLocalStoreEpic, fetchBillDetailEpic, fetchBillingAccountsListEpic, fetchBillListEpic, fetchBillListPerTabEpic, fetchBillPayApproversDetailsEpic, fetchBillPayApproversListEpic, fetchBillPayCardEpic, fetchBillPayConfigEpic, fetchBillPaySetupApproverViewEpic, fetchBillPaySetupViewEpic, fetchCardBalanceEpic, fetchCashbackDetailEpic, fetchCashBalanceEpic, fetchCashFlowEpic, fetchCashFlowForTimeframeEpic, fetchCashInCashOutEpic, fetchCashPositionEpic, fetchChargeCardConfigEpic, fetchChargeCardDetailEpic, fetchChargeCardDetailPageEpic, fetchChargeCardListEpic, fetchChargeCardListPageEpic, fetchChargeCardRepaymentDetailEpic, fetchChargeCardSetupViewEpic, fetchChargeCardStatementListEpic, fetchChargeCardTransactionAttachmentsEpic, fetchChargeCardTransactionListEpic, fetchChargeCardTransactionStatisticsEpic, fetchChargeCardsRecurringExpensesEpic, fetchChatHistoryEpic, fetchChatSessionsForUserEpic, fetchClassListEpic, fetchCollaborationAuthTokenEpic, fetchCompanyBillingAddressEpic, fetchCompanyConfigEpic, fetchCompanyHealthMetricConfigEpic, fetchCompanyHealthMetricViewEpic, fetchCompanyManagementViewEpic, fetchCompanyMetaDataEpic, fetchCompanyMonthEndReportHistoricDataEpic, fetchCompanyMonthEndReportHistoricDatesEpic, fetchCompanyMonthEndReportTemplatesEpic, fetchCompanyMonthEndReportViewEpic, fetchCompanyOnboardingViewEpic, fetchCompanyPassportViewEpic, fetchCompanyPortfolioViewEpic, fetchCompanyTaskManagerViewEpic, fetchCreditAccountEpic, fetchCreditAccountRepaymentEpic, fetchCurrencyConversionValueEpic, fetchDashboardEpic, fetchDashboardLayoutEpic, fetchDebitCardSummaryEpic, fetchDepositAccountDetailEpic, fetchDepositAccountEpic, fetchDepositAccountHistoryEpic, fetchDepositAccountLimitEpic, fetchDepositAccountListEpic, fetchDepositAccountListForCardsEpic, fetchDepositAccountTransactionListEpic, fetchDownloadSchedulesEpic, fetchDuplicateBillPayReviewEpic, fetchDuplicateReimbursementEpic, fetchEditBillDetailPageEpic, fetchEditRemiDetailPageEpic, fetchEligibleActionsForBillEpic, fetchEntityAutoCompleteEpic, fetchEntityHistoryEpic, fetchEntityRecommendationsByTransactionIdEpic, fetchExcludedResourcesEpic, fetchExpenseAutomationFluxAnalysisViewEpic, fetchExpenseAutomationInitializeTransactionCategorizationViewLocalDataEpic, fetchExpenseAutomationJeSchedulesEpic, fetchExpenseAutomationJESchedulesPageEpic, fetchExpenseAutomationMarkTransactionAsNotMiscategorizedEpic, fetchExpenseAutomationMissingReceiptsEpic, fetchExpenseAutomationReconciliationsViewEpic, fetchExpenseAutomationSaveTransactionCategorizationEpic, fetchExpenseAutomationTransactionCategorizationEpic, fetchExpenseAutomationTransactionCategorizationViewEpic, fetchExpenseAutomationUpdateTransactionCategorizationEpic, fetchExpenseTrendEpic, fetchExpressPayInitialDetailsEpic, fetchExternalConnectionsEpic, fetchFileEpic, fetchFileListEpic, fetchFinanceStatementEpic, fetchForecastListEpic, initiateReportsClassViewRefetchingEpic, reportsResyncEpic, fetchGlobalMerchantAutoCompleteViewEpic, fetchGlobalMerchantRecommendationEpic, fetchIncomeTrendEpic, fetchInsightsCardEpic, fetchInternationalWireDynamicFormEpic, fetchIntlVerificationFormEpic, fetchIssueCardPageEpic, fetchMagicLinkBankNameByRoutingEpic, fetchMagicLinkBankNameBySwiftEpic, fetchMagicLinkBillEpic, fetchMagicLinkTenantEpic, fetchManagementViewEpic, fetchMerchantListEpic, fetchMonthClosePerformanceTrendEpic, fetchMonthEndCloseChecksEpic, fetchMyProfileEpic, fetchMyProfileViewEpic, fetchNetBurnOrIncomeClassesViewEpic, fetchNetBurnOrIncomeEpic, fetchNetBurnOrIncomeForTimeframeClassesViewEpic, fetchNetBurnOrIncomeForTimeframeEpic, fetchNetBurnOrIncomeStoryCardEpic, fetchNetBurnOrIncomeWithForecastEpic, fetchNotificationSettingsEpic, fetchNotificationSettingsViewEpic, fetchNotificationUnreadCountEpic, fetchNotificationViewEpic, fetchOnboardingCompletedCompaniesEpic, fetchOnboardingCustomerSetupViewEpic, fetchOnboardingCustomerViewEpic, fetchOnboardingViewEpic, fetchOpExByVendorEpic, fetchOpExByVendorReportForTimeframeEpic, fetchOpExByVendorReportSummaryEpic, fetchOpExClassesViewEpic, fetchOpExEpic, fetchOpExForTimeframeClassesViewEpic, fetchOpExReportForTimeframeEpic, fetchOpExWithForecastEpic, fetchOwnerListEpic, fetchParentSubsidiaryManagementViewEpic, fetchPaymentAccountBalanceEpic, fetchPaymentAccountListEpic, fetchPaymentSourcesEpic, fetchPeopleEpic, fetchPeoplePageEpic, fetchPortfolioViewEpic, fetchPreviousBillsEpic, fetchProfitAndLossClassesViewEpic, fetchProfitAndLossEpic, fetchProfitAndLossForTimeframeClassesViewEpic, fetchProfitAndLossForTimeframeEpic, fetchQBOConnectionPoolEpic, fetchRecommendationByEntityIdEpic, fetchRecommendationByEntityNameEpic, fetchRecommendationForAccountSettingsEpic, fetchRecommendationForAccountTypeEpic, fetchRecommendationsAndUpdateMerchantRecommendationsEpic, fetchRecommendedTransactionRowIndexEpic, fetchReferralsEpic, fetchReimbursementCardEpic, fetchReimbursementConfigEpic, fetchRemiAndInitializeLocalStoreEpic, fetchRemiApproversDetailsEpic, fetchRemiApproversListEpic, fetchRemiDetailEpic, fetchRemiListEpic, fetchRemiListPerTabEpic, fetchRemiSetupApproverViewEpic, fetchRemiSetupViewEpic, fetchRevenueClassesViewEpic, fetchRevenueEpic, fetchRevenueForTimeframeClassesViewEpic, fetchRevenueForTimeframeEpic, fetchRevenueWithForecastEpic, fetchReviewCompanyViewEpic, fetchReviewTransferDetailEpic, fetchRewardsPlanEpic, fetchScheduleAccruedDetailsEpic, fetchScheduleAccruedDetailsPageEpic, fetchScheduleDetailsEpic, fetchScheduleDetailsPageEpic, fetchScheduleListEpic, fetchSchedulesAccountEpic, fetchSubscriptionAddOnsEpic, fetchSubscriptionCouponsEpic, fetchSubscriptionCreateEstimateEpic, fetchSubscriptionDetailsEpic, fetchSubscriptionListEpic, fetchSubscriptionPlansEpic, fetchSubscriptionSummaryForTenantEpic, fetchSubscriptionUpdateEstimateEpic, fetchSubscriptionViewEpic, fetchTaskDetailEpic, fetchTaskDetailPageEpic, fetchTaskGroupTemplatesEpic, fetchTaskHistoryEpic, fetchTaskListEpic, fetchTaskListPageEpic, fetchTasksCardEpic, fetchTopExEpic, fetchTransactionDetailEpic, fetchTransactionListByAccountEpic, fetchTransactionListByClassEpic, fetchTransactionListByEntityEpic, fetchTransactionsForEntityEpic, fetchTransactionsListByCategoryTypeEpic, fetchTreasuryDetailEpic, fetchTreasuryFundsEpic, fetchTreasuryHistoryEpic, fetchTreasurySetupViewEpic, fetchTreasuryStatementListEpic, fetchTreasuryTaxLetterListEpic, fetchTreasuryTransactionListEpic, updatePortfolioAllocationEpic, fetchPortfolioAllocationEpic, fetchTrendForEntityEpic, fetchUserDetailEpic, fetchUserFinancialAccountEpic, fetchUserListByTypeEpic, fetchUserRoleConfigEpic, fetchVendor1099TypeListEpic, fetchVendorAndUpdateBillLocalDataEpic, fetchVendorByNameAndParseInvoiceEpic, fetchVendorDetailsEpic, fetchVendorEpic, fetchVendorFirstReviewAttachmentsEpic, fetchVendorFirstReviewViewEpic, fetchVendorGlobalReviewViewEpic, fetchVendorsFiling1099AllEpic, fetchVendorsFiling1099DownloadEpic, fetchVendorsFiling1099ListEpic, fetchVendorsListEpic, fetchVendorsTabVendorDetailPageViewEpic, fetchVendorsTabVendorDetailsEpic, fetchVendorsTabVendorEpic, fetchVendorTabViewEpic, fetchVendorTypeListEpic, fetchZeniAccountListEpic, fetchZeniAccountsConfigEpic, fetchZeniAccountSetupViewEpic, fetchZeniAccountsPromoCardEpic, fetchZeniAccStatementListEpic, fetchZeniAccStatementPageEpic, fetchZeniUsersEpic, getOnboardingEmailGroupEpic, getOnboardingPlaidLinkTokenEpic, getPaymentAccountsEpic, getPlaidLinkTokenEpic, ignoreExpenseAutomationJEScheduleEpic, improveUsingZeniGPTEpic, initialiseExpenseAutomationReconciliationLocalDataForSelectedAccountIdEpic, initializeAccountMappingViewEpic, initializeAccountSettingsViewEpic, initializeBillPaySetupApproverViewUpdateDataEpic, initializeBillToLocalStoreEpic, initializeCardUserOnboardingLocalDataEpic, initializeCompanyHealthMetricViewLocalDataEpic, initializeDynamicFormEpic, initializeEditPersonEpic, initializeExpenseAutomationJeScheduleLocalDataEpic, initializeInternationalWireLocalDataEpic, initializeIntlVerificationFormEpic, initializeMyProfileLocalDataEpic, initializeOnboardingCustomerViewUpdateDataEpic, initializeRemiSetupApproverViewUpdateDataEpic, initializeRemiToLocalStoreEpic, initializeScheduleAccruedDetailLocalDataEpic, initializeScheduleDetailLocalDataEpic, initializeSubscriptionLocalDataEpic, initializeTaskToLocalStoreEpic, initializeTransactionDetailLocalDataEpic, initializeVendorAddressEpic, initiateChargeCardRepaymentEpic, invitePeopleEpic, inviteZeniPeopleEpic, issueChargeCardEpic, lockChargeCardEpic, lockChargeCardsEpic, markAsCompleteScheduleDetailEpic, markTransactionAsNotMiscategorizedEpic, parallelFetchAccountTransactionListEpic, parallelFetchClassTransactionListEpic, parallelFetchEntityTransactionListEpic, parallelFetchTransactionListByCategoryTypeEpic, parseInvoiceToBillEpic, parseReceiptsToRemiEpic, peopleSaveUpdatesEpic, pushToastNotificationEpic, refreshExpenseAutomationCurrentTabEpic, refreshIntegrationsDataEpic, rejectVendorGlobalReviewEpic, resendCardInviteEpic, resendInviteEpic, resendOtpEpic, resendVerifyDeviceOTPEpic, resendReferralInviteEpic, resetTransactionVendorLocalDataEpic, resetVendorDetailLocalDataEpic, resetVendorsTabVendorDetailLocalDataEpic, retryBankAccountConnectionEpic, retryBankAccountConnectionForOnboardingEpic, retryExpenseAutomationJEScheduleEpic, retryOrRefundBillEpic, validateBillsBulkActionEpic, reviewDraftRemisBulkActionEpic, reviewExpenseAutomationFluxAnalysisViewEpic, revokeCardInviteEpic, revokeChargeCardsInviteEpic, saveAccountMappingViewEpic, saveAccountSettingsViewEpic, saveBillDetailEpic, saveBillPaySetupApproverViewUpdatesEpic, saveCardOnboardingUserDetailsEpic, saveCompanyBillingAddressEpic, saveCompanyHealthMetricByIdEpic, saveCompanyMonthEndReportEpic, saveCompanyPassportDetailsEpic, saveExpenseAutomationReconciliationDetailsEpic, saveExpenseAutomationReconciliationReviewEpic, saveExternalConnectionEpic, saveMagicLinkBankAccountEpic, saveNewAddressEpic, saveNotificationSettingsEpic, saveOnboardingCustomerCompletedStatusEpic, saveOnboardingCustomerNotesEpic, saveOnboardingCustomerViewUpdatesEpic, saveRealTimeApprovalEpic, saveReasonForAuditRuleEpic, saveRemiDetailEpic, saveRemiSetupApproverViewUpdatesEpic, saveScheduleAccruedDetailsEpic, saveScheduleDetailsEpic, saveSubscriptionNotesUpdatesEpic, saveSubscriptionUpdatesEpic, saveTaskDetailEpic, saveTransactionDetailEpic, saveTransactionVendorEpic, saveVendorDetailsViewEpic, saveVendorEpic, saveVendorFirstReviewViewEpic, saveVendorsTabVendorEpic, sendCompanyMonthEndReportEpic, sendOnboardingCustomerViewInviteEpic, sendOtpEpic, sendReferralInviteEpic, statementCloseDayEpic, stopSubmitEpic, stopSubmitQuestionEpic, submitDraftBillsBulkActionEpic, submitDraftRemisBulkActionEpic, submitExpressPayEpic, submitIntlVerificationEpic, submitQuestionEpic, toggleReportUIOptionForecastModeEpic, transferMoneyEpic, treasuryTransferMoneyEpic, unlinkPaymentAccountEpic, unlockChargeCardEpic, unlockChargeCardsEpic, updateAccruedJESchedulesEpic, updateAddressEpic, updateAmountsInScheduleAccruedDetailEpic, updateAmountsInScheduleDetailEpic, updateBusinessVerificationDetailsEpic, updateChargeCardDetailEpic, updateChargeCardLimitEpic, updateChargeCardNameEpic, updateChargeCardsLimitEpic, updateCompanyDetailsEpic, updateCompanyOfficerEpic, updateCompanyPassportLocalStoreDataEpic, updateDashboardLayoutEpic, updateDebitCardPinAttemptEpic, updateDepositAccountEpic, updateExpenseAutomationReconciliationBalanceLocalDataEpic, updateFileNameEpic, updateFilesMetadataEpic, updateJESchedulesEpic, updateMappedCashAccountEpic, updateMileageDetailsEpic, updateMyProfileEpic, updateNetBurnOrIncomeStoryCardSettingsEpic, updateNotificationViewAllNotificationsStatusEpic, updateNotificationViewNotificationStatusEpic, updateOnboardingCustomerViewCompleteStatusEpic, updateOnboardingCustomerViewEpic, updateOnboardingCustomerViewLocalStoreDataEpic, updateOnboardingPaymentAccountLoginStatusEpic, updateOnboardingPaymentAccountStatusEpic, updatePaymentAccountEpic, updatePaymentAccountLoginStatusEpic, updatePaymentAccountStatusEpic, updatePhysicalChargeCardAttemptEpic, updatePrimaryContactEpic, updatePrimaryFundingAccountEpic, updateQBOConnectionPoolExternalConnectionEpic, updateReferViewedEpic, updateRemiSetupViewLocalStoreDataEpic, updateReportUIOptionCOABalancesRangeEpic, updateReportUIOptionIsCompareModeEpic, updateReportUIOptionIsCompareModeOnEpic, updateReportUIOptionThisPeriodEpic, updateReportUIOptionTimeFrameEpic, updateSectionAccountsViewEpic, updateSectionClassesViewEpicV2, updateSelectedVendorForCreateFlowEpic, updateSetupViewLocalStoreDataEpic, updateTaskFromListViewEpic, updateTaskGroupNameEpic, updateTransactionDetailEpic, updateTreasuryVideoViewedEpic, updateVendorContactEpic, uploadAccountStatementEpic, uploadMissingAttachmentSuccessEpic, vendorFiling1099UploadDetailsSaveEpic, verifyOtpEpic, verifyUserEpic, waitForBillDetailThenInitializeLocalStoreEpic, waitForForecastListThenFetchNetBurnOrIncomeWithForecastEpic, waitForForecastListThenFetchOpExWithForecastEpic, waitForForecastListThenFetchRevenueWithForecastEpic, waitForMerchantRecommendationFetchThenUpdateRecommendationInMerchantEpic, waitForVendorByIdThenSaveBillUpdatetoLocalStoreEpic, waitForVendorByNameThenParsetoLocalStoreEpic, waitForVendorByNameThenUpdateBillDetailEpic, waitForVendorRecommendationFetchThenUpdateRecommendationInBillEpic, wiseRedirectEpic);
|
|
522
|
+
const combinedEpics = combineEpics(acceptBillPayTermsEpic, acceptBillPayUpdatedTermsEpic, acceptChargeCardTermsEpic, acceptEmployeeRemiTermsEpic, acceptMasterTOSEpic, acceptRemiTermsEpic, acceptTreasuryTermsEpic, acceptZeniAccountTermsEpic, addCardPaymentSourceEpic, approveOrRejectBillEpic, approveOrRejectBillsBulkActionEpic, approveOrRejectRemiEpic, approveOrRejectRemisBulkActionEpic, approveVendorGlobalReviewEpic, archiveTaskEpic, bulkUpdateTaskListEpic, cancelAndDeleteBillEpic, cancelAndDeleteRemiEpic, cancelOrDeleteBillsBulkActionEpic, cancelOrDeleteRemisBulkActionEpic, cancelScheduleAccruedJournalEntryEpic, changeZeniPersonRolesEpic, checkDepositEpic, clearAllEpic, closeChargeCardEpic, closeChargeCardsEpic, companyManagementSavePendingUpdatesEpic, companyManagementSaveUpdatesEpic, confirmCardSetupIntentEpic, convertAmountToHomeCurrencyEpic, createAddressEpic, createBankAccountEpic, createCardSetupIntentEpic, createCheckingAccountEpic, createCompanyAddressEpic, createCompanyOfficersEpic, createCompanyUserAddressEpic, createGlobalMerchantEpic, createInternationalBankAccountEpic, createNewSchedulesAccruedEpic, createNewSchedulesEpic, createNewTaskGroupEpic, createPaymentInstrumentEpic, createSessionAndSubmitEpic, createSessionEpic, createTagEpic, createTaskFromTaskGroupTemplateEpic, createUserBankAccountEpic, deleteAccountStatementEpic, deleteBankAccountEpic, deleteBillEpic, deleteChatSessionEpic, deleteBillPayApprovalRuleEpic, deleteFileEpic, deleteFileListEpic, deleteInternationalBankAccountEpic, deletePaymentInstrumentEpic, deletePersonEpic, deleteRemiApprovalRuleEpic, deleteRemiEpic, deleteScheduleAccruedDetailEpic, deleteScheduleDetailEpic, deleteTagEpic, deleteTaskEpic, deleteTaskGroupEpic, deleteTransactionAttachmentEpic, deleteUserBankAccountEpic, doMagicLinkSignInEpic, doSignInEpic, doSignOutEpic, sendEmailMagicLinkToUserEpic, verifyDeviceWithTwoFAEpic, downloadAccountingProviderAttachmentEpic, dragNDropTasksEpic, enableChargeCardAutoPayEpic, enableSetupEpic, establishOnboardingPlaidConnectionEpic, establishPlaidConnectionEpic, expressInterestChargeCardEpic, fetchAccountListEpic, fetchAccountListForAccountTypesEpic, fetchAccountSettingsListForAccountTypesEpic, fetchAccruedScheduleListEpic, fetchActiveTenantEpic, fetchAddressEpic, fetchAllCockpitViewsEpic, fetchAllExpenseAutomationTabsEpic, fetchAllPeopleRequiredViewsEpic, fetchAllTagsEpic, fetchAllTaskGroupsEpic, fetchAllTenantsEpic, fetchAndUpdateVendorRecommendationsEpic, fetchAggregatedReportEpic, fetchApAgingDetailEpic, fetchApAgingEpic, fetchArAgingDetailEpic, fetchArAgingEpic, fetchAuditReportGroupViewEpic, fetchAuditRuleGroupViewEpic, fetchBalanceSheetEpic, fetchBalanceSheetForTimeframeEpic, fetchBankAccountsListEpic, fetchBankConnectionsViewEpic, fetchBankCountryNameByIbanEpic, fetchBankNameByRoutingEpic, fetchBankNameBySwiftEpic, fetchBillAndInitializeLocalStoreEpic, fetchBillDetailEpic, fetchBillingAccountsListEpic, fetchBillListEpic, fetchBillListPerTabEpic, fetchBillPayApproversDetailsEpic, fetchBillPayApproversListEpic, fetchBillPayCardEpic, fetchBillPayConfigEpic, fetchBillPaySetupApproverViewEpic, fetchBillPaySetupViewEpic, fetchCardBalanceEpic, fetchCashbackDetailEpic, fetchCashBalanceEpic, fetchCashFlowEpic, fetchCashFlowForTimeframeEpic, fetchCashInCashOutEpic, fetchCashPositionEpic, fetchChargeCardConfigEpic, fetchChargeCardDetailEpic, fetchChargeCardDetailPageEpic, fetchChargeCardListEpic, fetchChargeCardListPageEpic, fetchChargeCardRepaymentDetailEpic, fetchChargeCardSetupViewEpic, fetchChargeCardStatementListEpic, fetchChargeCardTransactionAttachmentsEpic, fetchChargeCardTransactionListEpic, fetchChargeCardTransactionStatisticsEpic, fetchChargeCardsRecurringExpensesEpic, fetchChatHistoryEpic, fetchChatSessionsForUserEpic, fetchClassListEpic, fetchCollaborationAuthTokenEpic, fetchCompanyBillingAddressEpic, fetchCompanyConfigEpic, fetchCompanyHealthMetricConfigEpic, fetchCompanyHealthMetricViewEpic, fetchCompanyManagementViewEpic, fetchCompanyMetaDataEpic, fetchCompanyMonthEndReportHistoricDataEpic, fetchCompanyMonthEndReportHistoricDatesEpic, fetchCompanyMonthEndReportTemplatesEpic, fetchCompanyMonthEndReportViewEpic, fetchCompanyOnboardingViewEpic, fetchCompanyPassportViewEpic, fetchCompanyPortfolioViewEpic, fetchCompanyTaskManagerViewEpic, fetchCreditAccountEpic, fetchCreditAccountRepaymentEpic, fetchCurrencyConversionValueEpic, fetchDashboardEpic, fetchDashboardLayoutEpic, fetchDebitCardSummaryEpic, fetchDepositAccountDetailEpic, fetchDepositAccountEpic, fetchDepositAccountHistoryEpic, fetchDepositAccountLimitEpic, fetchDepositAccountListEpic, fetchDepositAccountListForCardsEpic, fetchDepositAccountTransactionListEpic, fetchDownloadSchedulesEpic, fetchDuplicateBillPayReviewEpic, fetchDuplicateReimbursementEpic, fetchEditBillDetailPageEpic, fetchEditRemiDetailPageEpic, fetchEligibleActionsForBillEpic, fetchEntityAutoCompleteEpic, fetchEntityHistoryEpic, fetchEntityRecommendationsByTransactionIdEpic, fetchExcludedResourcesEpic, fetchExpenseAutomationFluxAnalysisViewEpic, fetchExpenseAutomationInitializeTransactionCategorizationViewLocalDataEpic, fetchExpenseAutomationJeSchedulesEpic, fetchExpenseAutomationJESchedulesPageEpic, fetchExpenseAutomationMarkTransactionAsNotMiscategorizedEpic, fetchExpenseAutomationMissingReceiptsEpic, fetchExpenseAutomationReconciliationsViewEpic, fetchExpenseAutomationSaveTransactionCategorizationEpic, fetchExpenseAutomationTransactionCategorizationEpic, fetchExpenseAutomationTransactionCategorizationViewEpic, fetchExpenseAutomationUpdateTransactionCategorizationEpic, fetchExpenseTrendEpic, fetchExpressPayInitialDetailsEpic, fetchExternalConnectionsEpic, fetchFileEpic, fetchFileListEpic, fetchFinanceStatementEpic, fetchForecastListEpic, initiateReportsClassViewRefetchingEpic, reportsResyncEpic, fetchGlobalMerchantAutoCompleteViewEpic, fetchGlobalMerchantRecommendationEpic, fetchIncomeTrendEpic, fetchInsightsCardEpic, fetchInternationalWireDynamicFormEpic, fetchIntlVerificationFormEpic, fetchIssueCardPageEpic, fetchMagicLinkBankNameByRoutingEpic, fetchMagicLinkBankNameBySwiftEpic, fetchMagicLinkBillEpic, fetchMagicLinkTenantEpic, fetchManagementViewEpic, fetchMerchantListEpic, fetchMonthClosePerformanceTrendEpic, fetchMonthEndCloseChecksEpic, fetchMyProfileEpic, fetchMyProfileViewEpic, fetchNetBurnOrIncomeClassesViewEpic, fetchNetBurnOrIncomeEpic, fetchNetBurnOrIncomeForTimeframeClassesViewEpic, fetchNetBurnOrIncomeForTimeframeEpic, fetchNetBurnOrIncomeStoryCardEpic, fetchNetBurnOrIncomeWithForecastEpic, fetchNotificationSettingsEpic, fetchNotificationSettingsViewEpic, fetchNotificationUnreadCountEpic, fetchNotificationViewEpic, fetchOnboardingCompletedCompaniesEpic, fetchOnboardingCustomerSetupViewEpic, fetchOnboardingCustomerViewEpic, fetchOnboardingViewEpic, fetchOpExByVendorEpic, fetchOpExByVendorReportForTimeframeEpic, fetchOpExByVendorReportSummaryEpic, fetchOpExClassesViewEpic, fetchOpExEpic, fetchOpExForTimeframeClassesViewEpic, fetchOpExReportForTimeframeEpic, fetchOpExWithForecastEpic, fetchOwnerListEpic, fetchParentSubsidiaryManagementViewEpic, fetchPaymentAccountBalanceEpic, fetchPaymentAccountListEpic, fetchPaymentSourcesEpic, fetchPeopleEpic, fetchPeoplePageEpic, fetchPortfolioViewEpic, fetchPreviousBillsEpic, fetchProfitAndLossClassesViewEpic, fetchProfitAndLossEpic, fetchProfitAndLossForTimeframeClassesViewEpic, fetchProfitAndLossForTimeframeEpic, fetchQBOConnectionPoolEpic, fetchRecommendationByEntityIdEpic, fetchRecommendationByEntityNameEpic, fetchRecommendationForAccountSettingsEpic, fetchRecommendationForAccountTypeEpic, fetchRecommendationsAndUpdateMerchantRecommendationsEpic, fetchRecommendedTransactionRowIndexEpic, fetchReferralsEpic, fetchReimbursementCardEpic, fetchReimbursementConfigEpic, fetchRemiAndInitializeLocalStoreEpic, fetchRemiApproversDetailsEpic, fetchRemiApproversListEpic, fetchRemiDetailEpic, fetchRemiListEpic, fetchRemiListPerTabEpic, fetchRemiSetupApproverViewEpic, fetchRemiSetupViewEpic, fetchRevenueClassesViewEpic, fetchRevenueEpic, fetchRevenueForTimeframeClassesViewEpic, fetchRevenueForTimeframeEpic, fetchRevenueWithForecastEpic, fetchReviewCompanyViewEpic, fetchReviewTransferDetailEpic, fetchRewardsPlanEpic, fetchScheduleAccruedDetailsEpic, fetchScheduleAccruedDetailsPageEpic, fetchScheduleDetailsEpic, fetchScheduleDetailsPageEpic, fetchScheduleListEpic, fetchSchedulesAccountEpic, fetchSubscriptionAddOnsEpic, fetchSubscriptionCouponsEpic, fetchSubscriptionCreateEstimateEpic, fetchSubscriptionDetailsEpic, fetchSubscriptionListEpic, fetchSubscriptionPlansEpic, fetchSubscriptionSummaryForTenantEpic, fetchSubscriptionUpdateEstimateEpic, fetchSubscriptionViewEpic, fetchTaskDetailEpic, fetchTaskDetailPageEpic, fetchTaskGroupTemplatesEpic, fetchTaskHistoryEpic, fetchTaskListEpic, fetchTaskListPageEpic, fetchTasksCardEpic, fetchTopExEpic, fetchTransactionActivityLogEpic, fetchTransactionDetailEpic, fetchTransactionListByAccountEpic, fetchTransactionListByClassEpic, fetchTransactionListByEntityEpic, fetchTransactionsForEntityEpic, fetchTransactionsListByCategoryTypeEpic, fetchTreasuryDetailEpic, fetchTreasuryFundsEpic, fetchTreasuryHistoryEpic, fetchTreasurySetupViewEpic, fetchTreasuryStatementListEpic, fetchTreasuryTaxLetterListEpic, fetchTreasuryTransactionListEpic, updatePortfolioAllocationEpic, fetchPortfolioAllocationEpic, fetchTrendForEntityEpic, fetchUserDetailEpic, fetchUserFinancialAccountEpic, fetchUserListByTypeEpic, fetchUserRoleConfigEpic, fetchVendor1099TypeListEpic, fetchVendorAndUpdateBillLocalDataEpic, fetchVendorByNameAndParseInvoiceEpic, fetchVendorDetailsEpic, fetchVendorEpic, fetchVendorFirstReviewAttachmentsEpic, fetchVendorFirstReviewViewEpic, fetchVendorGlobalReviewViewEpic, fetchVendorsFiling1099AllEpic, fetchVendorsFiling1099DownloadEpic, fetchVendorsFiling1099ListEpic, fetchVendorsListEpic, fetchVendorsTabVendorDetailPageViewEpic, fetchVendorsTabVendorDetailsEpic, fetchVendorsTabVendorEpic, fetchVendorTabViewEpic, fetchVendorTypeListEpic, fetchZeniAccountListEpic, fetchZeniAccountsConfigEpic, fetchZeniAccountSetupViewEpic, fetchZeniAccountsPromoCardEpic, fetchZeniAccStatementListEpic, fetchZeniAccStatementPageEpic, fetchZeniUsersEpic, getOnboardingEmailGroupEpic, getOnboardingPlaidLinkTokenEpic, getPaymentAccountsEpic, getPlaidLinkTokenEpic, ignoreExpenseAutomationJEScheduleEpic, improveUsingZeniGPTEpic, initialiseExpenseAutomationReconciliationLocalDataForSelectedAccountIdEpic, initializeAccountMappingViewEpic, initializeAccountSettingsViewEpic, initializeBillPaySetupApproverViewUpdateDataEpic, initializeBillToLocalStoreEpic, initializeCardUserOnboardingLocalDataEpic, initializeCompanyHealthMetricViewLocalDataEpic, initializeDynamicFormEpic, initializeEditPersonEpic, initializeExpenseAutomationJeScheduleLocalDataEpic, initializeInternationalWireLocalDataEpic, initializeIntlVerificationFormEpic, initializeMyProfileLocalDataEpic, initializeOnboardingCustomerViewUpdateDataEpic, initializeRemiSetupApproverViewUpdateDataEpic, initializeRemiToLocalStoreEpic, initializeScheduleAccruedDetailLocalDataEpic, initializeScheduleDetailLocalDataEpic, initializeSubscriptionLocalDataEpic, initializeTaskToLocalStoreEpic, initializeTransactionDetailLocalDataEpic, initializeVendorAddressEpic, initiateChargeCardRepaymentEpic, invitePeopleEpic, inviteZeniPeopleEpic, issueChargeCardEpic, lockChargeCardEpic, lockChargeCardsEpic, markAsCompleteScheduleDetailEpic, markTransactionAsNotMiscategorizedEpic, parallelFetchAccountTransactionListEpic, parallelFetchClassTransactionListEpic, parallelFetchEntityTransactionListEpic, parallelFetchTransactionListByCategoryTypeEpic, parseInvoiceToBillEpic, parseReceiptsToRemiEpic, peopleSaveUpdatesEpic, pushToastNotificationEpic, refreshExpenseAutomationCurrentTabEpic, refreshIntegrationsDataEpic, rejectVendorGlobalReviewEpic, resendCardInviteEpic, resendInviteEpic, resendOtpEpic, resendVerifyDeviceOTPEpic, resendReferralInviteEpic, resetTransactionVendorLocalDataEpic, resetVendorDetailLocalDataEpic, resetVendorsTabVendorDetailLocalDataEpic, retryBankAccountConnectionEpic, retryBankAccountConnectionForOnboardingEpic, retryExpenseAutomationJEScheduleEpic, retryOrRefundBillEpic, validateBillsBulkActionEpic, reviewDraftRemisBulkActionEpic, reviewExpenseAutomationFluxAnalysisViewEpic, revokeCardInviteEpic, revokeChargeCardsInviteEpic, saveAccountMappingViewEpic, saveAccountSettingsViewEpic, saveBillDetailEpic, saveBillPaySetupApproverViewUpdatesEpic, saveCardOnboardingUserDetailsEpic, saveCompanyBillingAddressEpic, saveCompanyHealthMetricByIdEpic, saveCompanyMonthEndReportEpic, saveCompanyPassportDetailsEpic, saveExpenseAutomationReconciliationDetailsEpic, saveExpenseAutomationReconciliationReviewEpic, saveExternalConnectionEpic, saveMagicLinkBankAccountEpic, saveNewAddressEpic, saveNotificationSettingsEpic, saveOnboardingCustomerCompletedStatusEpic, saveOnboardingCustomerNotesEpic, saveOnboardingCustomerViewUpdatesEpic, saveRealTimeApprovalEpic, saveReasonForAuditRuleEpic, saveRemiDetailEpic, saveRemiSetupApproverViewUpdatesEpic, saveScheduleAccruedDetailsEpic, saveScheduleDetailsEpic, saveSubscriptionNotesUpdatesEpic, saveSubscriptionUpdatesEpic, saveTaskDetailEpic, saveTransactionDetailEpic, saveTransactionVendorEpic, saveVendorDetailsViewEpic, saveVendorEpic, saveVendorFirstReviewViewEpic, saveVendorsTabVendorEpic, sendCompanyMonthEndReportEpic, sendOnboardingCustomerViewInviteEpic, sendOtpEpic, sendReferralInviteEpic, statementCloseDayEpic, stopSubmitEpic, stopSubmitQuestionEpic, submitDraftBillsBulkActionEpic, submitDraftRemisBulkActionEpic, submitExpressPayEpic, submitIntlVerificationEpic, submitQuestionEpic, toggleReportUIOptionForecastModeEpic, transferMoneyEpic, treasuryTransferMoneyEpic, unlinkPaymentAccountEpic, unlockChargeCardEpic, unlockChargeCardsEpic, updateAccruedJESchedulesEpic, updateAddressEpic, updateAmountsInScheduleAccruedDetailEpic, updateAmountsInScheduleDetailEpic, updateBusinessVerificationDetailsEpic, updateChargeCardDetailEpic, updateChargeCardLimitEpic, updateChargeCardNameEpic, updateChargeCardsLimitEpic, updateCompanyDetailsEpic, updateCompanyOfficerEpic, updateCompanyPassportLocalStoreDataEpic, updateDashboardLayoutEpic, updateDebitCardPinAttemptEpic, updateDepositAccountEpic, updateExpenseAutomationReconciliationBalanceLocalDataEpic, updateFileNameEpic, updateFilesMetadataEpic, updateJESchedulesEpic, updateMappedCashAccountEpic, updateMileageDetailsEpic, updateMyProfileEpic, updateNetBurnOrIncomeStoryCardSettingsEpic, updateNotificationViewAllNotificationsStatusEpic, updateNotificationViewNotificationStatusEpic, updateOnboardingCustomerViewCompleteStatusEpic, updateOnboardingCustomerViewEpic, updateOnboardingCustomerViewLocalStoreDataEpic, updateOnboardingPaymentAccountLoginStatusEpic, updateOnboardingPaymentAccountStatusEpic, updatePaymentAccountEpic, updatePaymentAccountLoginStatusEpic, updatePaymentAccountStatusEpic, updatePhysicalChargeCardAttemptEpic, updatePrimaryContactEpic, updatePrimaryFundingAccountEpic, updateQBOConnectionPoolExternalConnectionEpic, updateReferViewedEpic, updateRemiSetupViewLocalStoreDataEpic, updateReportUIOptionCOABalancesRangeEpic, updateReportUIOptionIsCompareModeEpic, updateReportUIOptionIsCompareModeOnEpic, updateReportUIOptionThisPeriodEpic, updateReportUIOptionTimeFrameEpic, updateSectionAccountsViewEpic, updateSectionClassesViewEpicV2, updateSelectedVendorForCreateFlowEpic, updateSetupViewLocalStoreDataEpic, updateTaskFromListViewEpic, updateTaskGroupNameEpic, updateTransactionDetailEpic, updateTreasuryVideoViewedEpic, updateVendorContactEpic, uploadAccountStatementEpic, uploadMissingAttachmentSuccessEpic, vendorFiling1099UploadDetailsSaveEpic, verifyOtpEpic, verifyUserEpic, waitForBillDetailThenInitializeLocalStoreEpic, waitForForecastListThenFetchNetBurnOrIncomeWithForecastEpic, waitForForecastListThenFetchOpExWithForecastEpic, waitForForecastListThenFetchRevenueWithForecastEpic, waitForMerchantRecommendationFetchThenUpdateRecommendationInMerchantEpic, waitForVendorByIdThenSaveBillUpdatetoLocalStoreEpic, waitForVendorByNameThenParsetoLocalStoreEpic, waitForVendorByNameThenUpdateBillDetailEpic, waitForVendorRecommendationFetchThenUpdateRecommendationInBillEpic, wiseRedirectEpic);
|
|
522
523
|
const rootEpic = (action$, store$, dependencies) => combinedEpics(action$, store$, dependencies).pipe(map(identity), catchError((error, source) => {
|
|
523
524
|
console.error(error);
|
|
524
525
|
return source;
|
package/lib/esm/index.js
CHANGED
|
@@ -597,3 +597,5 @@ export { fetchTreasuryStatementList } from './view/spendManagement/treasury/trea
|
|
|
597
597
|
export { getTreasuryStatements, } from './view/spendManagement/treasury/treasuryStatementList/treasuryStatementListSelector';
|
|
598
598
|
export { fetchTreasuryTaxLetterList } from './view/spendManagement/treasury/treasuryTaxLetterList/treasuryTaxLetterListReducer';
|
|
599
599
|
export { getTreasuryTaxLetters, } from './view/spendManagement/treasury/treasuryTaxLetterList/treasuryTaxLetterListSelector';
|
|
600
|
+
export { fetchTransactionActivityLog } from './view/transactionActivityLogView/transactionActivityLogViewReducer';
|
|
601
|
+
export { getTransactionActivityLogView, } from './view/transactionActivityLogView/transactionActivityLogViewSelector';
|
package/lib/esm/reducer.js
CHANGED
|
@@ -56,6 +56,7 @@ import taskSummary, { initialState as initailTaskSummaryState, } from './entity/
|
|
|
56
56
|
import tenant, { initialState as initialTenantState, } from './entity/tenant/tenantReducer';
|
|
57
57
|
import toastNotification, { initialState as initialToastNotificationState, } from './entity/toastNotification/toastNotificationReducer';
|
|
58
58
|
import transaction, { initialState as initialTransactionState, } from './entity/transaction/transactionReducer';
|
|
59
|
+
import transactionActivityLog, { initialState as initialTransactionActivityLogState, } from './entity/transactionActivityLog/transactionActivityLogReducer';
|
|
59
60
|
import user, { initialState as initialUserState, } from './entity/user/userReducer';
|
|
60
61
|
import userRole, { initialState as initialUserRoleState, } from './entity/userRole/userRoleReducer';
|
|
61
62
|
import vendor, { initialState as initialVendorState, } from './entity/vendor/vendorReducer';
|
|
@@ -189,6 +190,7 @@ import taskGroupView, { initialState as initialTaskGroupViewState, } from './vie
|
|
|
189
190
|
import taskList, { initialState as initialTaskListState, } from './view/taskManager/taskListView/taskListReducer';
|
|
190
191
|
import tasksCard, { initialState as initialTasksCardState, } from './view/tasksCard/tasksCardReducer';
|
|
191
192
|
import topEx, { initialState as initialTopExState, } from './view/topEx/topExReducer';
|
|
193
|
+
import transactionActivityLogView, { initialState as initialTransactionActivityLogViewState, } from './view/transactionActivityLogView/transactionActivityLogViewReducer';
|
|
192
194
|
import transactionDetail, { initialState as initialTransactionDetailState, } from './view/transactionDetail/transactionDetailReducer';
|
|
193
195
|
import transactionList, { initialState as initialTransactionListState, } from './view/transactionList/transactionListReducer';
|
|
194
196
|
import trend, { initialTrendState } from './view/trend/trendReducer';
|
|
@@ -265,6 +267,7 @@ const initialEntitiesState = {
|
|
|
265
267
|
taskSummaryState: initailTaskSummaryState,
|
|
266
268
|
tenantState: initialTenantState,
|
|
267
269
|
toastNotificationState: initialToastNotificationState,
|
|
270
|
+
transactionActivityLogState: initialTransactionActivityLogState,
|
|
268
271
|
transactionState: initialTransactionState,
|
|
269
272
|
userRoleState: initialUserRoleState,
|
|
270
273
|
userState: initialUserState,
|
|
@@ -389,6 +392,7 @@ const initialViewsState = {
|
|
|
389
392
|
taskListState: initialTaskListState,
|
|
390
393
|
tasksCardState: initialTasksCardState,
|
|
391
394
|
topExState: initialTopExState,
|
|
395
|
+
transactionActivityLogViewState: initialTransactionActivityLogViewState,
|
|
392
396
|
transactionDetailState: initialTransactionDetailState,
|
|
393
397
|
transactionListState: initialTransactionListState,
|
|
394
398
|
transactionVendorViewState: initialTransactionVendorViewState,
|
|
@@ -484,6 +488,7 @@ const entityReducers = {
|
|
|
484
488
|
taskSummaryState: taskSummary,
|
|
485
489
|
tenantState: tenant,
|
|
486
490
|
toastNotificationState: toastNotification,
|
|
491
|
+
transactionActivityLogState: transactionActivityLog,
|
|
487
492
|
transactionState: transaction,
|
|
488
493
|
userRoleState: userRole,
|
|
489
494
|
userState: user,
|
|
@@ -608,6 +613,7 @@ const viewReducers = {
|
|
|
608
613
|
tagViewState: tagView,
|
|
609
614
|
tasksCardState: tasksCard,
|
|
610
615
|
topExState: topEx,
|
|
616
|
+
transactionActivityLogViewState: transactionActivityLogView,
|
|
611
617
|
transactionDetailState: transactionDetail,
|
|
612
618
|
transactionListState: transactionList,
|
|
613
619
|
transactionVendorViewState: transactionVendorView,
|
|
@@ -18,14 +18,16 @@ export const uploadAccountStatementEpic = (actions$, state$, zeniAPI) => actions
|
|
|
18
18
|
error: createZeniAPIStatus('Unexpected Error', 'Account not found'),
|
|
19
19
|
}));
|
|
20
20
|
}
|
|
21
|
+
const statementType = accountBase.accountType == 'credit_card' ? 'card' : 'bank';
|
|
21
22
|
const requestPayload = {
|
|
22
23
|
account_id: accountId,
|
|
23
24
|
statement_start_date: start.toString(),
|
|
24
25
|
statement_end_date: end.toString(),
|
|
25
26
|
processor_run_id: payload.processor_run_id,
|
|
26
27
|
file_id: payload.files[0].file_id,
|
|
28
|
+
statement_type: statementType,
|
|
27
29
|
};
|
|
28
|
-
const uploadAccountStatementApi$ = zeniAPI.postAndGetJSON(`${zeniAPI.apiEndPoints.reconciliationMicroServiceBaseUrl}/1.0/reconciliation/
|
|
30
|
+
const uploadAccountStatementApi$ = zeniAPI.postAndGetJSON(`${zeniAPI.apiEndPoints.reconciliationMicroServiceBaseUrl}/1.0/reconciliation/statements`, requestPayload);
|
|
29
31
|
return uploadAccountStatementApi$.pipe(mergeMap((response) => {
|
|
30
32
|
if (isSuccessResponse(response) === true && response.data != null) {
|
|
31
33
|
const actions = [];
|
package/lib/esm/view/spendManagement/reimbursement/remiDetailView/epics/fetchRemiDetailEpic.js
CHANGED
|
@@ -30,6 +30,11 @@ export const fetchRemiDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe(
|
|
|
30
30
|
remiDetail.fetchState !== 'In-Progress') {
|
|
31
31
|
remiActions.push(updateRemiDetailFetchState(reimbursementId, 'In-Progress'));
|
|
32
32
|
remiActions.push(fetchEntityHistory(reimbursementId, 'reimbursement', cacheOverride));
|
|
33
|
+
// Fetch config in parallel if not already fetched
|
|
34
|
+
if (reimbursementConfigState.fetchState !== 'In-Progress' &&
|
|
35
|
+
reimbursementConfigState.fetchState !== 'Completed') {
|
|
36
|
+
remiActions.push(fetchReimbursementConfig());
|
|
37
|
+
}
|
|
33
38
|
const query = {
|
|
34
39
|
transaction_type: 'reimbursement',
|
|
35
40
|
reimbursement_provider: 'zeni',
|
|
@@ -58,10 +63,6 @@ export const fetchRemiDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe(
|
|
|
58
63
|
updateBankAccounts(reimburseeBankAccount != null ? [reimburseeBankAccount] : []),
|
|
59
64
|
updateRemiDetailFetchState(transcationId, 'Completed'),
|
|
60
65
|
];
|
|
61
|
-
if (reimbursementConfigState.fetchState !== 'In-Progress' &&
|
|
62
|
-
reimbursementConfigState.fetchState !== 'Completed') {
|
|
63
|
-
actions.push(fetchReimbursementConfig());
|
|
64
|
-
}
|
|
65
66
|
//update the merchants recommendation in recommendation view
|
|
66
67
|
response.data.merchants.forEach((merchant) => {
|
|
67
68
|
const recommendations = getRecommendationFromRecommendationPayload(merchant.recommendations ?? []);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { from, of } from 'rxjs';
|
|
2
|
+
import { catchError, filter, mergeMap, switchMap } from 'rxjs/operators';
|
|
3
|
+
import { updateTransactionActivityLogs } from '../../entity/transactionActivityLog/transactionActivityLogReducer';
|
|
4
|
+
import { createZeniAPIStatus, isSuccessResponse } from '../../responsePayload';
|
|
5
|
+
import { fetchTransactionActivityLog, updateTransactionActivityLogViewFetchStatus, updateTransactionActivityLogViewOnSuccess, } from './transactionActivityLogViewReducer';
|
|
6
|
+
export const fetchTransactionActivityLogEpic = (actions$, _, zeniAPI) => actions$.pipe(filter(fetchTransactionActivityLog.match), switchMap((action) => {
|
|
7
|
+
const { qboId } = action.payload;
|
|
8
|
+
return zeniAPI
|
|
9
|
+
.getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/transactions/${qboId}/activity`)
|
|
10
|
+
.pipe(mergeMap((response) => {
|
|
11
|
+
if (isSuccessResponse(response) &&
|
|
12
|
+
response.data != null &&
|
|
13
|
+
response.data.activity != null) {
|
|
14
|
+
const updateActions = [];
|
|
15
|
+
updateActions.push(updateTransactionActivityLogViewOnSuccess({
|
|
16
|
+
data: response.data.activity,
|
|
17
|
+
qboId,
|
|
18
|
+
}));
|
|
19
|
+
updateActions.push(updateTransactionActivityLogs(response.data.activity));
|
|
20
|
+
return from(updateActions);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
return of(updateTransactionActivityLogViewFetchStatus({
|
|
24
|
+
fetchState: 'Error',
|
|
25
|
+
error: response.status,
|
|
26
|
+
qboId,
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
}), catchError((error) => of(updateTransactionActivityLogViewFetchStatus({
|
|
30
|
+
qboId,
|
|
31
|
+
fetchState: 'Error',
|
|
32
|
+
error: createZeniAPIStatus('Unexpected Error', 'fetch transaction activity log REST API call errored out' +
|
|
33
|
+
JSON.stringify(error)),
|
|
34
|
+
}))));
|
|
35
|
+
}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { createSlice } from '@reduxjs/toolkit';
|
|
2
|
+
export const initialState = {
|
|
3
|
+
transactionActivityLogIdsByQboId: {},
|
|
4
|
+
transactionActivityLogFetchStateByQboId: {},
|
|
5
|
+
};
|
|
6
|
+
const transactionActivityLogView = createSlice({
|
|
7
|
+
name: 'transactionActivityLogView',
|
|
8
|
+
initialState,
|
|
9
|
+
reducers: {
|
|
10
|
+
fetchTransactionActivityLog: {
|
|
11
|
+
prepare(qboId) {
|
|
12
|
+
return {
|
|
13
|
+
payload: { qboId },
|
|
14
|
+
};
|
|
15
|
+
},
|
|
16
|
+
reducer(draft, action) {
|
|
17
|
+
const { qboId } = action.payload;
|
|
18
|
+
draft.transactionActivityLogFetchStateByQboId[qboId] = {
|
|
19
|
+
fetchState: 'In-Progress',
|
|
20
|
+
error: undefined,
|
|
21
|
+
};
|
|
22
|
+
draft.transactionActivityLogIdsByQboId[qboId] = [];
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
updateTransactionActivityLogViewOnSuccess(draft, action) {
|
|
26
|
+
const { data, qboId } = action.payload;
|
|
27
|
+
draft.transactionActivityLogFetchStateByQboId[qboId] = {
|
|
28
|
+
fetchState: 'Completed',
|
|
29
|
+
error: undefined,
|
|
30
|
+
};
|
|
31
|
+
draft.transactionActivityLogIdsByQboId[qboId] = data.map((transactionActivityLog) => transactionActivityLog.correlation_id);
|
|
32
|
+
},
|
|
33
|
+
updateTransactionActivityLogViewFetchStatus(draft, action) {
|
|
34
|
+
const { fetchState, qboId, error } = action.payload;
|
|
35
|
+
draft.transactionActivityLogFetchStateByQboId[qboId] = {
|
|
36
|
+
fetchState,
|
|
37
|
+
error,
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
clearTransactionActivityLogView(draft) {
|
|
41
|
+
Object.assign(draft, initialState);
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
export const { fetchTransactionActivityLog, updateTransactionActivityLogViewOnSuccess, clearTransactionActivityLogView, updateTransactionActivityLogViewFetchStatus, } = transactionActivityLogView.actions;
|
|
46
|
+
export default transactionActivityLogView.reducer;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createSelector } from '@reduxjs/toolkit';
|
|
2
|
+
import { reduceFetchState } from '../../commonStateTypes/reduceFetchState';
|
|
3
|
+
import { getTransactionActivityLogsByIds } from '../../entity/transactionActivityLog/transactionActivityLogSelector';
|
|
4
|
+
export const getTransactionActivityLogView = createSelector((state) => state.transactionActivityLogViewState, (state) => state.transactionActivityLogState, (_state, qboId) => qboId, (transactionActivityLogViewState, transactionActivityLogState, qboId) => {
|
|
5
|
+
const fetchStateAndError = transactionActivityLogViewState
|
|
6
|
+
.transactionActivityLogFetchStateByQboId[qboId] ?? {
|
|
7
|
+
fetchState: 'Not-Started',
|
|
8
|
+
error: undefined,
|
|
9
|
+
};
|
|
10
|
+
const transactionActivityLogIds = transactionActivityLogViewState.transactionActivityLogIdsByQboId[qboId] ?? [];
|
|
11
|
+
const transactionActivityLogs = getTransactionActivityLogsByIds(transactionActivityLogState, transactionActivityLogIds);
|
|
12
|
+
return {
|
|
13
|
+
...reduceFetchState([fetchStateAndError]),
|
|
14
|
+
transactionActivityLogs,
|
|
15
|
+
};
|
|
16
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/index.d.ts
CHANGED
|
@@ -857,3 +857,6 @@ export { TreasuryStatementsSelectorView, getTreasuryStatements, } from './view/s
|
|
|
857
857
|
export { fetchTreasuryTaxLetterList } from './view/spendManagement/treasury/treasuryTaxLetterList/treasuryTaxLetterListReducer';
|
|
858
858
|
export { TreasuryTaxLettersSelectorView, getTreasuryTaxLetters, } from './view/spendManagement/treasury/treasuryTaxLetterList/treasuryTaxLetterListSelector';
|
|
859
859
|
export { TreasuryTransactionStatus } from './view/spendManagement/treasury/treasuryList/treasuryDetailPayload';
|
|
860
|
+
export type { TransactionActivityLog } from './entity/transactionActivityLog/transactionActivityLogState';
|
|
861
|
+
export { fetchTransactionActivityLog } from './view/transactionActivityLogView/transactionActivityLogViewReducer';
|
|
862
|
+
export { TransactionActivityLogViewSelectorView, getTransactionActivityLogView, } from './view/transactionActivityLogView/transactionActivityLogViewSelector';
|
package/lib/index.js
CHANGED
|
@@ -66,7 +66,7 @@ exports.updateCreateGlobalMerchantLocalData = exports.createGlobalMerchant = exp
|
|
|
66
66
|
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.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 = void 0;
|
|
67
67
|
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.initialTaskDetailLocalData = exports.convertHHMMStrToMinutes = exports.updateTaskFromListView = exports.toDueDateGroupKeyType = exports.toTaskStatusCodeType = exports.toPriorityCodeType = void 0;
|
|
68
68
|
exports.stopSubmitQuestion = exports.stopSubmit = exports.createSessionAndSubmit = 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 = 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 = void 0;
|
|
69
|
-
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 = 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 = void 0;
|
|
69
|
+
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 = 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 = void 0;
|
|
70
70
|
const allowedValue_1 = require("./commonStateTypes/allowedValue");
|
|
71
71
|
Object.defineProperty(exports, "isAllowedValueWithCode", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithCode; } });
|
|
72
72
|
Object.defineProperty(exports, "isAllowedValueWithID", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithID; } });
|
|
@@ -2031,3 +2031,7 @@ var treasuryTaxLetterListReducer_1 = require("./view/spendManagement/treasury/tr
|
|
|
2031
2031
|
Object.defineProperty(exports, "fetchTreasuryTaxLetterList", { enumerable: true, get: function () { return treasuryTaxLetterListReducer_1.fetchTreasuryTaxLetterList; } });
|
|
2032
2032
|
var treasuryTaxLetterListSelector_1 = require("./view/spendManagement/treasury/treasuryTaxLetterList/treasuryTaxLetterListSelector");
|
|
2033
2033
|
Object.defineProperty(exports, "getTreasuryTaxLetters", { enumerable: true, get: function () { return treasuryTaxLetterListSelector_1.getTreasuryTaxLetters; } });
|
|
2034
|
+
var transactionActivityLogViewReducer_1 = require("./view/transactionActivityLogView/transactionActivityLogViewReducer");
|
|
2035
|
+
Object.defineProperty(exports, "fetchTransactionActivityLog", { enumerable: true, get: function () { return transactionActivityLogViewReducer_1.fetchTransactionActivityLog; } });
|
|
2036
|
+
var transactionActivityLogViewSelector_1 = require("./view/transactionActivityLogView/transactionActivityLogViewSelector");
|
|
2037
|
+
Object.defineProperty(exports, "getTransactionActivityLogView", { enumerable: true, get: function () { return transactionActivityLogViewSelector_1.getTransactionActivityLogView; } });
|
package/lib/reducer.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ import { TaskSummaryState } from './entity/taskSummary/taskSummaryState';
|
|
|
55
55
|
import { TenantState } from './entity/tenant/tenantState';
|
|
56
56
|
import { ToastNotificationState } from './entity/toastNotification/toastNotificationState';
|
|
57
57
|
import { TransactionState } from './entity/transaction/transactionState';
|
|
58
|
+
import { TransactionActivityLogState } from './entity/transactionActivityLog/transactionActivityLogState';
|
|
58
59
|
import { UserState } from './entity/user/userState';
|
|
59
60
|
import { UserRoleState } from './entity/userRole/userRoleState';
|
|
60
61
|
import { VendorState } from './entity/vendor/vendorState';
|
|
@@ -187,6 +188,7 @@ import { TaskGroupViewState } from './view/taskManager/taskGroupView/taskGroupVi
|
|
|
187
188
|
import { TaskListState } from './view/taskManager/taskListView/taskList';
|
|
188
189
|
import { TasksCardState } from './view/tasksCard/tasksCardState';
|
|
189
190
|
import { TopExState } from './view/topEx/topExState';
|
|
191
|
+
import { TransactionActivityLogViewState } from './view/transactionActivityLogView/transactionActivityLogViewState';
|
|
190
192
|
import { TransactionDetailState } from './view/transactionDetail/transactionDetailState';
|
|
191
193
|
import { TransactionListState } from './view/transactionList/transactionListState';
|
|
192
194
|
import { TrendState } from './view/trend/trendState';
|
|
@@ -262,6 +264,7 @@ type EntitiesState = {
|
|
|
262
264
|
taskSummaryState: TaskSummaryState;
|
|
263
265
|
tenantState: TenantState;
|
|
264
266
|
toastNotificationState: ToastNotificationState;
|
|
267
|
+
transactionActivityLogState: TransactionActivityLogState;
|
|
265
268
|
transactionState: TransactionState;
|
|
266
269
|
userRoleState: UserRoleState;
|
|
267
270
|
userState: UserState;
|
|
@@ -385,6 +388,7 @@ type ViewsState = {
|
|
|
385
388
|
taskListState: TaskListState;
|
|
386
389
|
tasksCardState: TasksCardState;
|
|
387
390
|
topExState: TopExState;
|
|
391
|
+
transactionActivityLogViewState: TransactionActivityLogViewState;
|
|
388
392
|
transactionDetailState: TransactionDetailState;
|
|
389
393
|
transactionListState: TransactionListState;
|
|
390
394
|
transactionVendorViewState: TransactionVendorViewState;
|
|
@@ -535,6 +539,7 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
535
539
|
tagViewState: TagViewState;
|
|
536
540
|
tasksCardState: TasksCardState;
|
|
537
541
|
topExState: TopExState;
|
|
542
|
+
transactionActivityLogViewState: TransactionActivityLogViewState;
|
|
538
543
|
transactionDetailState: TransactionDetailState;
|
|
539
544
|
transactionListState: TransactionListState;
|
|
540
545
|
transactionVendorViewState: TransactionVendorViewState;
|
|
@@ -621,6 +626,7 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
621
626
|
taskSummaryState: TaskSummaryState;
|
|
622
627
|
tenantState: TenantState;
|
|
623
628
|
toastNotificationState: ToastNotificationState;
|
|
629
|
+
transactionActivityLogState: TransactionActivityLogState;
|
|
624
630
|
transactionState: TransactionState;
|
|
625
631
|
userRoleState: UserRoleState;
|
|
626
632
|
userState: UserState;
|
package/lib/reducer.js
CHANGED
|
@@ -95,6 +95,7 @@ const taskSummaryReducer_1 = __importStar(require("./entity/taskSummary/taskSumm
|
|
|
95
95
|
const tenantReducer_1 = __importStar(require("./entity/tenant/tenantReducer"));
|
|
96
96
|
const toastNotificationReducer_1 = __importStar(require("./entity/toastNotification/toastNotificationReducer"));
|
|
97
97
|
const transactionReducer_1 = __importStar(require("./entity/transaction/transactionReducer"));
|
|
98
|
+
const transactionActivityLogReducer_1 = __importStar(require("./entity/transactionActivityLog/transactionActivityLogReducer"));
|
|
98
99
|
const userReducer_1 = __importStar(require("./entity/user/userReducer"));
|
|
99
100
|
const userRoleReducer_1 = __importStar(require("./entity/userRole/userRoleReducer"));
|
|
100
101
|
const vendorReducer_1 = __importStar(require("./entity/vendor/vendorReducer"));
|
|
@@ -228,6 +229,7 @@ const taskGroupViewReducer_1 = __importStar(require("./view/taskManager/taskGrou
|
|
|
228
229
|
const taskListReducer_1 = __importStar(require("./view/taskManager/taskListView/taskListReducer"));
|
|
229
230
|
const tasksCardReducer_1 = __importStar(require("./view/tasksCard/tasksCardReducer"));
|
|
230
231
|
const topExReducer_1 = __importStar(require("./view/topEx/topExReducer"));
|
|
232
|
+
const transactionActivityLogViewReducer_1 = __importStar(require("./view/transactionActivityLogView/transactionActivityLogViewReducer"));
|
|
231
233
|
const transactionDetailReducer_1 = __importStar(require("./view/transactionDetail/transactionDetailReducer"));
|
|
232
234
|
const transactionListReducer_1 = __importStar(require("./view/transactionList/transactionListReducer"));
|
|
233
235
|
const trendReducer_1 = __importStar(require("./view/trend/trendReducer"));
|
|
@@ -304,6 +306,7 @@ const initialEntitiesState = {
|
|
|
304
306
|
taskSummaryState: taskSummaryReducer_1.initialState,
|
|
305
307
|
tenantState: tenantReducer_1.initialState,
|
|
306
308
|
toastNotificationState: toastNotificationReducer_1.initialState,
|
|
309
|
+
transactionActivityLogState: transactionActivityLogReducer_1.initialState,
|
|
307
310
|
transactionState: transactionReducer_1.initialState,
|
|
308
311
|
userRoleState: userRoleReducer_1.initialState,
|
|
309
312
|
userState: userReducer_1.initialState,
|
|
@@ -428,6 +431,7 @@ const initialViewsState = {
|
|
|
428
431
|
taskListState: taskListReducer_1.initialState,
|
|
429
432
|
tasksCardState: tasksCardReducer_1.initialState,
|
|
430
433
|
topExState: topExReducer_1.initialState,
|
|
434
|
+
transactionActivityLogViewState: transactionActivityLogViewReducer_1.initialState,
|
|
431
435
|
transactionDetailState: transactionDetailReducer_1.initialState,
|
|
432
436
|
transactionListState: transactionListReducer_1.initialState,
|
|
433
437
|
transactionVendorViewState: transactionVendorViewReducer_1.initialState,
|
|
@@ -523,6 +527,7 @@ const entityReducers = {
|
|
|
523
527
|
taskSummaryState: taskSummaryReducer_1.default,
|
|
524
528
|
tenantState: tenantReducer_1.default,
|
|
525
529
|
toastNotificationState: toastNotificationReducer_1.default,
|
|
530
|
+
transactionActivityLogState: transactionActivityLogReducer_1.default,
|
|
526
531
|
transactionState: transactionReducer_1.default,
|
|
527
532
|
userRoleState: userRoleReducer_1.default,
|
|
528
533
|
userState: userReducer_1.default,
|
|
@@ -647,6 +652,7 @@ const viewReducers = {
|
|
|
647
652
|
tagViewState: tagViewReducer_1.default,
|
|
648
653
|
tasksCardState: tasksCardReducer_1.default,
|
|
649
654
|
topExState: topExReducer_1.default,
|
|
655
|
+
transactionActivityLogViewState: transactionActivityLogViewReducer_1.default,
|
|
650
656
|
transactionDetailState: transactionDetailReducer_1.default,
|
|
651
657
|
transactionListState: transactionListReducer_1.default,
|
|
652
658
|
transactionVendorViewState: transactionVendorViewReducer_1.default,
|
|
@@ -21,14 +21,16 @@ const uploadAccountStatementEpic = (actions$, state$, zeniAPI) => actions$.pipe(
|
|
|
21
21
|
error: (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Account not found'),
|
|
22
22
|
}));
|
|
23
23
|
}
|
|
24
|
+
const statementType = accountBase.accountType == 'credit_card' ? 'card' : 'bank';
|
|
24
25
|
const requestPayload = {
|
|
25
26
|
account_id: accountId,
|
|
26
27
|
statement_start_date: start.toString(),
|
|
27
28
|
statement_end_date: end.toString(),
|
|
28
29
|
processor_run_id: payload.processor_run_id,
|
|
29
30
|
file_id: payload.files[0].file_id,
|
|
31
|
+
statement_type: statementType,
|
|
30
32
|
};
|
|
31
|
-
const uploadAccountStatementApi$ = zeniAPI.postAndGetJSON(`${zeniAPI.apiEndPoints.reconciliationMicroServiceBaseUrl}/1.0/reconciliation/
|
|
33
|
+
const uploadAccountStatementApi$ = zeniAPI.postAndGetJSON(`${zeniAPI.apiEndPoints.reconciliationMicroServiceBaseUrl}/1.0/reconciliation/statements`, requestPayload);
|
|
32
34
|
return uploadAccountStatementApi$.pipe((0, operators_1.mergeMap)((response) => {
|
|
33
35
|
if ((0, responsePayload_1.isSuccessResponse)(response) === true && response.data != null) {
|
|
34
36
|
const actions = [];
|
|
@@ -36,6 +36,11 @@ const fetchRemiDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, ope
|
|
|
36
36
|
remiDetail.fetchState !== 'In-Progress') {
|
|
37
37
|
remiActions.push((0, remiDetailViewReducer_1.updateRemiDetailFetchState)(reimbursementId, 'In-Progress'));
|
|
38
38
|
remiActions.push((0, commonHistoryReducer_1.fetchEntityHistory)(reimbursementId, 'reimbursement', cacheOverride));
|
|
39
|
+
// Fetch config in parallel if not already fetched
|
|
40
|
+
if (reimbursementConfigState.fetchState !== 'In-Progress' &&
|
|
41
|
+
reimbursementConfigState.fetchState !== 'Completed') {
|
|
42
|
+
remiActions.push((0, reimbursementConfigReducer_1.fetchReimbursementConfig)());
|
|
43
|
+
}
|
|
39
44
|
const query = {
|
|
40
45
|
transaction_type: 'reimbursement',
|
|
41
46
|
reimbursement_provider: 'zeni',
|
|
@@ -64,10 +69,6 @@ const fetchRemiDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, ope
|
|
|
64
69
|
(0, bankAccountReducer_1.updateBankAccounts)(reimburseeBankAccount != null ? [reimburseeBankAccount] : []),
|
|
65
70
|
(0, remiDetailViewReducer_1.updateRemiDetailFetchState)(transcationId, 'Completed'),
|
|
66
71
|
];
|
|
67
|
-
if (reimbursementConfigState.fetchState !== 'In-Progress' &&
|
|
68
|
-
reimbursementConfigState.fetchState !== 'Completed') {
|
|
69
|
-
actions.push((0, reimbursementConfigReducer_1.fetchReimbursementConfig)());
|
|
70
|
-
}
|
|
71
72
|
//update the merchants recommendation in recommendation view
|
|
72
73
|
response.data.merchants.forEach((merchant) => {
|
|
73
74
|
const recommendations = (0, recommendationHelper_1.getRecommendationFromRecommendationPayload)(merchant.recommendations ?? []);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { updateTransactionActivityLogs } from '../../entity/transactionActivityLog/transactionActivityLogReducer';
|
|
4
|
+
import { RootState } from '../../reducer';
|
|
5
|
+
import { ZeniAPI } from '../../zeniAPI';
|
|
6
|
+
import { fetchTransactionActivityLog, updateTransactionActivityLogViewFetchStatus, updateTransactionActivityLogViewOnSuccess } from './transactionActivityLogViewReducer';
|
|
7
|
+
export type ActionType = ReturnType<typeof fetchTransactionActivityLog> | ReturnType<typeof updateTransactionActivityLogs> | ReturnType<typeof updateTransactionActivityLogViewOnSuccess> | ReturnType<typeof updateTransactionActivityLogViewFetchStatus>;
|
|
8
|
+
export declare const fetchTransactionActivityLogEpic: (actions$: ActionsObservable<ActionType>, _: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchTransactionActivityLogEpic = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const transactionActivityLogReducer_1 = require("../../entity/transactionActivityLog/transactionActivityLogReducer");
|
|
7
|
+
const responsePayload_1 = require("../../responsePayload");
|
|
8
|
+
const transactionActivityLogViewReducer_1 = require("./transactionActivityLogViewReducer");
|
|
9
|
+
const fetchTransactionActivityLogEpic = (actions$, _, zeniAPI) => actions$.pipe((0, operators_1.filter)(transactionActivityLogViewReducer_1.fetchTransactionActivityLog.match), (0, operators_1.switchMap)((action) => {
|
|
10
|
+
const { qboId } = action.payload;
|
|
11
|
+
return zeniAPI
|
|
12
|
+
.getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/transactions/${qboId}/activity`)
|
|
13
|
+
.pipe((0, operators_1.mergeMap)((response) => {
|
|
14
|
+
if ((0, responsePayload_1.isSuccessResponse)(response) &&
|
|
15
|
+
response.data != null &&
|
|
16
|
+
response.data.activity != null) {
|
|
17
|
+
const updateActions = [];
|
|
18
|
+
updateActions.push((0, transactionActivityLogViewReducer_1.updateTransactionActivityLogViewOnSuccess)({
|
|
19
|
+
data: response.data.activity,
|
|
20
|
+
qboId,
|
|
21
|
+
}));
|
|
22
|
+
updateActions.push((0, transactionActivityLogReducer_1.updateTransactionActivityLogs)(response.data.activity));
|
|
23
|
+
return (0, rxjs_1.from)(updateActions);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
return (0, rxjs_1.of)((0, transactionActivityLogViewReducer_1.updateTransactionActivityLogViewFetchStatus)({
|
|
27
|
+
fetchState: 'Error',
|
|
28
|
+
error: response.status,
|
|
29
|
+
qboId,
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
}), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, transactionActivityLogViewReducer_1.updateTransactionActivityLogViewFetchStatus)({
|
|
33
|
+
qboId,
|
|
34
|
+
fetchState: 'Error',
|
|
35
|
+
error: (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'fetch transaction activity log REST API call errored out' +
|
|
36
|
+
JSON.stringify(error)),
|
|
37
|
+
}))));
|
|
38
|
+
}));
|
|
39
|
+
exports.fetchTransactionActivityLogEpic = fetchTransactionActivityLogEpic;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TransactionActivityLogPayload } from '../../entity/transactionActivityLog/transactionActivityLogPayload';
|
|
2
|
+
import { ZeniAPIResponse } from '../../responsePayload';
|
|
3
|
+
export interface FetchTransactionActivityLogPayload {
|
|
4
|
+
activity: TransactionActivityLogPayload[];
|
|
5
|
+
}
|
|
6
|
+
export type FetchTransactionActivityLogResponse = ZeniAPIResponse<FetchTransactionActivityLogPayload>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FetchState } from '../../commonStateTypes/common';
|
|
2
|
+
import { TransactionActivityLogPayload } from '../../entity/transactionActivityLog/transactionActivityLogPayload';
|
|
3
|
+
import { ZeniAPIStatus } from '../../responsePayload';
|
|
4
|
+
import { TransactionActivityLogViewState } from './transactionActivityLogViewState';
|
|
5
|
+
export declare const initialState: TransactionActivityLogViewState;
|
|
6
|
+
export declare const fetchTransactionActivityLog: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[qboId: string], {
|
|
7
|
+
qboId: string;
|
|
8
|
+
}, "transactionActivityLogView/fetchTransactionActivityLog", never, never>, updateTransactionActivityLogViewOnSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
9
|
+
data: TransactionActivityLogPayload[];
|
|
10
|
+
qboId: string;
|
|
11
|
+
}, "transactionActivityLogView/updateTransactionActivityLogViewOnSuccess">, clearTransactionActivityLogView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"transactionActivityLogView/clearTransactionActivityLogView">, updateTransactionActivityLogViewFetchStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
12
|
+
fetchState: FetchState;
|
|
13
|
+
qboId: string;
|
|
14
|
+
error?: ZeniAPIStatus;
|
|
15
|
+
}, "transactionActivityLogView/updateTransactionActivityLogViewFetchStatus">;
|
|
16
|
+
declare const _default: import("redux").Reducer<TransactionActivityLogViewState>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.updateTransactionActivityLogViewFetchStatus = exports.clearTransactionActivityLogView = exports.updateTransactionActivityLogViewOnSuccess = exports.fetchTransactionActivityLog = exports.initialState = void 0;
|
|
5
|
+
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
+
exports.initialState = {
|
|
7
|
+
transactionActivityLogIdsByQboId: {},
|
|
8
|
+
transactionActivityLogFetchStateByQboId: {},
|
|
9
|
+
};
|
|
10
|
+
const transactionActivityLogView = (0, toolkit_1.createSlice)({
|
|
11
|
+
name: 'transactionActivityLogView',
|
|
12
|
+
initialState: exports.initialState,
|
|
13
|
+
reducers: {
|
|
14
|
+
fetchTransactionActivityLog: {
|
|
15
|
+
prepare(qboId) {
|
|
16
|
+
return {
|
|
17
|
+
payload: { qboId },
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
reducer(draft, action) {
|
|
21
|
+
const { qboId } = action.payload;
|
|
22
|
+
draft.transactionActivityLogFetchStateByQboId[qboId] = {
|
|
23
|
+
fetchState: 'In-Progress',
|
|
24
|
+
error: undefined,
|
|
25
|
+
};
|
|
26
|
+
draft.transactionActivityLogIdsByQboId[qboId] = [];
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
updateTransactionActivityLogViewOnSuccess(draft, action) {
|
|
30
|
+
const { data, qboId } = action.payload;
|
|
31
|
+
draft.transactionActivityLogFetchStateByQboId[qboId] = {
|
|
32
|
+
fetchState: 'Completed',
|
|
33
|
+
error: undefined,
|
|
34
|
+
};
|
|
35
|
+
draft.transactionActivityLogIdsByQboId[qboId] = data.map((transactionActivityLog) => transactionActivityLog.correlation_id);
|
|
36
|
+
},
|
|
37
|
+
updateTransactionActivityLogViewFetchStatus(draft, action) {
|
|
38
|
+
const { fetchState, qboId, error } = action.payload;
|
|
39
|
+
draft.transactionActivityLogFetchStateByQboId[qboId] = {
|
|
40
|
+
fetchState,
|
|
41
|
+
error,
|
|
42
|
+
};
|
|
43
|
+
},
|
|
44
|
+
clearTransactionActivityLogView(draft) {
|
|
45
|
+
Object.assign(draft, exports.initialState);
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
_a = transactionActivityLogView.actions, exports.fetchTransactionActivityLog = _a.fetchTransactionActivityLog, exports.updateTransactionActivityLogViewOnSuccess = _a.updateTransactionActivityLogViewOnSuccess, exports.clearTransactionActivityLogView = _a.clearTransactionActivityLogView, exports.updateTransactionActivityLogViewFetchStatus = _a.updateTransactionActivityLogViewFetchStatus;
|
|
50
|
+
exports.default = transactionActivityLogView.reducer;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ID } from '../../commonStateTypes/common';
|
|
2
|
+
import { SelectorView } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
3
|
+
import { TransactionActivityLog } from '../../entity/transactionActivityLog/transactionActivityLogState';
|
|
4
|
+
import { RootState } from '../../reducer';
|
|
5
|
+
export interface TransactionActivityLogViewSelectorView extends SelectorView {
|
|
6
|
+
transactionActivityLogs: TransactionActivityLog[];
|
|
7
|
+
}
|
|
8
|
+
export declare const getTransactionActivityLogView: (state: RootState, qboId: ID) => TransactionActivityLogViewSelectorView;
|