@zeniai/client-epic-state 4.13.11 → 4.13.13
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/commonPayloadTypes/commonPayload.d.ts +0 -7
- package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.d.ts +0 -0
- package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.js +1 -0
- package/lib/commonStateTypes/common.d.ts +0 -2
- package/lib/commonStateTypes/common.js +1 -5
- package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.d.ts +0 -1
- package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.js +1 -2
- package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.d.ts +0 -0
- package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.js +1 -0
- package/lib/commonStateTypes/timePeriod.d.ts +0 -16
- package/lib/commonStateTypes/timePeriod.js +1 -31
- package/lib/commonStateTypes/viewAndReport/reportIDHelper.d.ts +0 -1
- package/lib/commonStateTypes/viewAndReport/reportIDHelper.js +1 -3
- package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +0 -2
- package/lib/entity/account/accountState.d.ts +1 -1
- package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
- package/lib/entity/chargeCard/chargeCard.d.ts +2 -16
- package/lib/entity/chargeCard/chargeCard.js +1 -18
- package/lib/entity/chargeCard/chargeCardPayload.d.ts +5 -14
- package/lib/entity/chargeCard/chargeCardPayload.js +7 -24
- package/lib/entity/class/classReducer.d.ts +4 -4
- package/lib/entity/class/classState.d.ts +1 -1
- package/lib/entity/company/companyPayload.d.ts +0 -4
- package/lib/entity/company/companyPayload.js +3 -6
- package/lib/entity/company/companyReducer.d.ts +1 -4
- package/lib/entity/company/companyReducer.js +2 -6
- package/lib/entity/company/companyStateTypes.d.ts +1 -5
- package/lib/entity/file/fileState.d.ts +3 -3
- package/lib/entity/file/fileState.js +0 -2
- package/lib/entity/forecast/forecastState.d.ts +1 -1
- package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +0 -1
- package/lib/entity/jeSchedules/jeSchedulesPayload.js +1 -7
- package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +2 -2
- package/lib/entity/jeSchedules/jeSchedulesSelector.d.ts +1 -3
- package/lib/entity/jeSchedules/jeSchedulesSelector.js +1 -2
- package/lib/entity/jeSchedules/jeSchedulesState.d.ts +1 -3
- package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +0 -2
- package/lib/entity/jeSchedules/jeSchedulesTypes.js +1 -12
- package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +0 -3
- package/lib/entity/tenant/clearAllEpic.d.ts +2 -12
- package/lib/entity/tenant/clearAllEpic.js +0 -20
- package/lib/entity/tenant/epic/fetchActiveTenantEpic.d.ts +1 -2
- package/lib/entity/tenant/epic/fetchActiveTenantEpic.js +1 -9
- package/lib/entity/tenant/epic/fetchAllTenantsEpic.d.ts +1 -7
- package/lib/entity/tenant/epic/fetchAllTenantsEpic.js +2 -34
- package/lib/entity/tenant/tenantPayload.d.ts +0 -1
- package/lib/entity/tenant/tenantReducer.js +0 -3
- package/lib/entity/tenant/tenantState.d.ts +0 -1
- package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
- package/lib/entity/transaction/payloadTypes/attachmentPayload.d.ts +1 -1
- package/lib/entity/transaction/payloadTypes/attachmentPayload.js +3 -3
- package/lib/entity/transaction/stateTypes/transactionType.d.ts +2 -2
- package/lib/entity/transaction/transactionSelector.d.ts +0 -1
- package/lib/entity/transaction/transactionSelector.js +1 -7
- package/lib/entity/user/userPayload.d.ts +0 -1
- package/lib/entity/user/userReducer.js +8 -9
- package/lib/entity/user/userState.d.ts +0 -1
- package/lib/entity/vendor/__mocks__/vendorStateMocks.d.ts +0 -1
- package/lib/entity/vendor/__mocks__/vendorStateMocks.js +1 -35
- package/lib/entity/vendor/vendorPayload.js +2 -3
- package/lib/entity/vendor/vendorState.d.ts +3 -3
- package/lib/entity/vendor/vendorType.d.ts +2 -0
- package/lib/entity/vendor/vendorType.js +4 -1
- package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
- package/lib/entity/vendorExpense/vendorExpenseSelector.js +0 -1
- package/lib/epic.d.ts +2 -18
- package/lib/epic.js +2 -18
- package/lib/index.d.ts +21 -65
- package/lib/index.js +28 -102
- package/lib/reducer.d.ts +1 -31
- package/lib/reducer.js +1 -31
- package/lib/view/addressView/__mocks__/json/createCompanyAddressSuccess.json +1 -7
- package/lib/view/addressView/__mocks__/json/createCompanyUserAddressSuccess.json +1 -7
- package/lib/view/addressView/addressViewState.d.ts +1 -1
- package/lib/view/addressView/toAddressViewLocalData.d.ts +0 -2
- package/lib/view/addressView/toAddressViewLocalData.js +3 -9
- package/lib/view/auditReportView/auditReportViewState.d.ts +2 -2
- package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
- package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
- package/lib/view/cardPayment/epic/addCardPaymentSourceEpic.d.ts +1 -1
- package/lib/view/cardPayment/epic/confirmCardSetupIntentEpic.d.ts +1 -1
- package/lib/view/cardPayment/epic/createCardSetupIntentEpic.d.ts +1 -1
- package/lib/view/cardPayment/epic/fetchPaymentSourcesEpic.d.ts +1 -1
- package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
- package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
- package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
- package/lib/view/commonVendorView/vendorView/vendorViewSelector.d.ts +1 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewReducer.d.ts +5 -10
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewReducer.js +7 -10
- package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportTemplatesEpic.js +4 -4
- package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportViewEpic.js +4 -4
- package/lib/view/companyMonthEndReportView/epics/improveUsingZeniGPTEpic.js +3 -5
- package/lib/view/companyMonthEndReportView/epics/saveCompanyMonthEndReportEpic.js +3 -3
- package/lib/view/companyMonthEndReportView/epics/sendCompanyMonthEndReportEpic.js +3 -3
- package/lib/view/companyView/epic/companyPassport/updateCompanyPassportLocalStoreDataEpic.js +6 -1
- package/lib/view/companyView/selectorHelpers/getCompanyView.js +0 -4
- package/lib/view/companyView/types/cockpitTypes.d.ts +2 -2
- package/lib/view/companyView/types/companyPassport/companyUsersLocalData.d.ts +0 -2
- package/lib/view/companyView/types/companyPassport/companyUsersLocalData.js +1 -7
- package/lib/view/companyView/types/companyView.d.ts +0 -1
- package/lib/view/dashboard/dashboardEpic.d.ts +1 -2
- package/lib/view/dashboard/dashboardEpic.js +2 -22
- package/lib/view/dashboard/dashboardReducer.d.ts +2 -3
- package/lib/view/dashboard/dashboardReducer.js +1 -2
- package/lib/view/dashboard/dashboardSelector.d.ts +0 -2
- package/lib/view/dashboard/dashboardSelector.js +2 -10
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
- package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerViewEpic.d.ts +1 -8
- package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerViewEpic.js +1 -3
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +4 -5
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +0 -2
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +3 -6
- package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
- package/lib/view/people/deletePersonEpic.d.ts +1 -1
- package/lib/view/people/invitePeopleEpic.d.ts +1 -1
- package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
- package/lib/view/people/resendInviteEpic.d.ts +1 -1
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
- package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +1 -1
- package/lib/view/scheduleView/scheduleAccruedDetailView/LinkBillExpenseView/linkBillExpense.d.ts +1 -1
- package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsEpic.js +2 -3
- package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsPageEpic.js +1 -1
- package/lib/view/scheduleView/scheduleDetailView/epics/saveScheduleDetailsEpic.js +2 -2
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.js +5 -19
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.d.ts +3 -8
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.js +57 -39
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +8 -13
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.js +12 -19
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.d.ts +0 -1
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.js +3 -4
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailState.d.ts +0 -2
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
- package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
- package/lib/view/settingsView/epic/updateMyProfileEpic.js +4 -6
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +4 -1
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +0 -2
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +0 -3
- package/lib/view/spendManagement/billPay/editBillView/epics/parseInvoiceToBillEpic.js +2 -2
- package/lib/view/spendManagement/billPay/internationalWire/internationalWireSelector.d.ts +1 -2
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer.d.ts +1 -3
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer.js +2 -6
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingSelector.d.ts +3 -2
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingSelector.js +3 -3
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingState.d.ts +3 -1
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/epics/initializeCardUserOnboardingLocalDataEpic.d.ts +2 -1
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/epics/initializeCardUserOnboardingLocalDataEpic.js +21 -1
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/epics/saveCardOnboardingUserDetailsEpic.js +3 -1
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +0 -1
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.js +0 -4
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.d.ts +1 -8
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js +2 -25
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.d.ts +0 -1
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.js +4 -8
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailEpic.js +1 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +14 -1
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +13 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.d.ts +6 -3
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +17 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.d.ts +2 -8
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +15 -55
- package/lib/view/spendManagement/chargeCards/{issueChargeCard → chargeCardList}/issueChargeCardEpic.d.ts +2 -3
- package/lib/view/spendManagement/chargeCards/{issueChargeCard → chargeCardList}/issueChargeCardEpic.js +18 -35
- package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.d.ts +1 -1
- package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +6 -31
- package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.d.ts +2 -2
- package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +2 -5
- package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +1 -4
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +2 -6
- package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +0 -1
- package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +0 -4
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/parseReceiptsToRemiEpic.js +2 -2
- package/lib/view/subscriptionView/types/subscriptionTypes.d.ts +1 -1
- package/lib/view/tagView/epics/createTagEpic.d.ts +1 -1
- package/lib/view/tagView/epics/deleteTagEpic.d.ts +1 -1
- package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
- package/lib/view/topEx/topExSelector.d.ts +1 -1
- package/lib/view/transactionDetail/epics/uploadMissingReceiptSuccessEpic.js +2 -2
- package/lib/view/transactionDetail/transactionDetailState.d.ts +2 -2
- package/lib/view/userListView/fetchUserListByTypeEpic.js +1 -4
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099ListMock.js +1 -1
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099ListSelectorMock.js +1 -1
- package/lib/view/vendorReviewView/common/state/commonTypes.d.ts +1 -1
- package/lib/view/vendorReviewView/vendorFirstReviewView/epics/saveVendorFirstReviewViewEpic.js +3 -34
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.d.ts +1 -1
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.js +2 -2
- package/lib/view/zeniAccStatementList/zeniAccStatementList.d.ts +5 -2
- package/package.json +1 -1
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksPayload.d.ts +0 -32
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksPayload.js +0 -60
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksReducer.d.ts +0 -12
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksReducer.js +0 -25
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksSelector.d.ts +0 -7
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksSelector.js +0 -36
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.d.ts +0 -38
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.js +0 -10
- package/lib/view/countryList/countryListReducer.d.ts +0 -17
- package/lib/view/countryList/countryListReducer.js +0 -58
- package/lib/view/countryList/countryListSelector.d.ts +0 -7
- package/lib/view/countryList/countryListSelector.js +0 -13
- package/lib/view/countryList/countryListState.d.ts +0 -12
- package/lib/view/countryList/countryListState.js +0 -2
- package/lib/view/countryList/epics/fetchCountryListEpic.d.ts +0 -6
- package/lib/view/countryList/epics/fetchCountryListEpic.js +0 -19
- package/lib/view/countryList/epics/fetchNationalityCountryListEpic.d.ts +0 -7
- package/lib/view/countryList/epics/fetchNationalityCountryListEpic.js +0 -38
- package/lib/view/countryList/payloads/countryListPayload.d.ts +0 -6
- package/lib/view/countryList/payloads/countryListPayload.js +0 -10
- package/lib/view/countryList/payloads/nationalityCountryListPayload.d.ts +0 -11
- package/lib/view/countryList/payloads/nationalityCountryListPayload.js +0 -2
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +0 -10
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +0 -72
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +0 -11
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +0 -53
- package/lib/view/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic.d.ts +0 -11
- package/lib/view/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic.js +0 -66
- package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.d.ts +0 -7
- package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.js +0 -39
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.d.ts +0 -7
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.js +0 -22
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.d.ts +0 -8
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +0 -59
- package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.d.ts +0 -8
- package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.js +0 -78
- package/lib/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.d.ts +0 -6
- package/lib/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.js +0 -28
- package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.d.ts +0 -9
- package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.js +0 -78
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMissingReceiptsEpic.d.ts +0 -8
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMissingReceiptsEpic.js +0 -58
- package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.d.ts +0 -10
- package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.js +0 -12
- package/lib/view/expenseAutomationView/expenseAutomationViewPayload.d.ts +0 -3
- package/lib/view/expenseAutomationView/expenseAutomationViewPayload.js +0 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +0 -17
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +0 -66
- package/lib/view/expenseAutomationView/expenseAutomationViewSelector.d.ts +0 -3
- package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +0 -97
- package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +0 -11
- package/lib/view/expenseAutomationView/expenseAutomationViewState.js +0 -14
- package/lib/view/expenseAutomationView/helpers/helpers.d.ts +0 -7
- package/lib/view/expenseAutomationView/helpers/helpers.js +0 -67
- package/lib/view/expenseAutomationView/payload/fluxAnalysisPayload.d.ts +0 -76
- package/lib/view/expenseAutomationView/payload/fluxAnalysisPayload.js +0 -9
- package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.d.ts +0 -36
- package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.js +0 -58
- package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.d.ts +0 -16
- package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.js +0 -2
- package/lib/view/expenseAutomationView/reducers/fluxAnalysisViewReducer.d.ts +0 -34
- package/lib/view/expenseAutomationView/reducers/fluxAnalysisViewReducer.js +0 -205
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +0 -53
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +0 -245
- package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.d.ts +0 -31
- package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +0 -130
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +0 -5
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +0 -45
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +0 -34
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +0 -44
- package/lib/view/expenseAutomationView/selectorTypes/fluxAnalysisViewSelectorTypes.d.ts +0 -32
- package/lib/view/expenseAutomationView/selectorTypes/fluxAnalysisViewSelectorTypes.js +0 -2
- package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.d.ts +0 -28
- package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.js +0 -2
- package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.d.ts +0 -11
- package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.js +0 -2
- package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.d.ts +0 -3
- package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.js +0 -55
- package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.d.ts +0 -7
- package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +0 -95
- package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.d.ts +0 -3
- package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.js +0 -61
- package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.d.ts +0 -53
- package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.js +0 -5
- package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +0 -31
- package/lib/view/expenseAutomationView/types/jeSchedulesViewState.js +0 -2
- package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +0 -20
- package/lib/view/expenseAutomationView/types/missingReceiptsViewState.js +0 -13
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +0 -28
- package/lib/view/expenseAutomationView/types/transactionsViewState.js +0 -15
- package/lib/view/monthEndCloseChecksView/epics/fetchMonthEndCloseChecksEpic.d.ts +0 -8
- package/lib/view/monthEndCloseChecksView/epics/fetchMonthEndCloseChecksEpic.js +0 -58
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewPayload.d.ts +0 -3
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewPayload.js +0 -2
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewReducer.d.ts +0 -16
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewReducer.js +0 -36
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewSelector.d.ts +0 -10
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewSelector.js +0 -27
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewState.d.ts +0 -5
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewState.js +0 -2
- package/lib/view/spendManagement/billPay/internationalWireVerification/epics/fetchIntlVerificationFormEpic.d.ts +0 -7
- package/lib/view/spendManagement/billPay/internationalWireVerification/epics/fetchIntlVerificationFormEpic.js +0 -36
- package/lib/view/spendManagement/billPay/internationalWireVerification/epics/initializeIntlVerificationFormEpic.d.ts +0 -6
- package/lib/view/spendManagement/billPay/internationalWireVerification/epics/initializeIntlVerificationFormEpic.js +0 -42
- package/lib/view/spendManagement/billPay/internationalWireVerification/epics/submitIntlVerificationEpic.d.ts +0 -9
- package/lib/view/spendManagement/billPay/internationalWireVerification/epics/submitIntlVerificationEpic.js +0 -67
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationPayload.d.ts +0 -26
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationPayload.js +0 -22
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer.d.ts +0 -22
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer.js +0 -89
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationSelector.d.ts +0 -15
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationSelector.js +0 -30
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationState.d.ts +0 -20
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationState.js +0 -2
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/updatePhysicalChargeCardAttemptEpic.d.ts +0 -11
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/updatePhysicalChargeCardAttemptEpic.js +0 -42
- package/lib/view/spendManagement/chargeCards/issueChargeCard/fetchIssueCardPageEpic.d.ts +0 -9
- package/lib/view/spendManagement/chargeCards/issueChargeCard/fetchIssueCardPageEpic.js +0 -44
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.d.ts +0 -15
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.js +0 -65
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.d.ts +0 -22
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.js +0 -76
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState.d.ts +0 -28
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState.js +0 -23
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.updateJeScheduleTransactionKeys = exports.updateJeScheduleLocalDataById = exports.retryJeScheduleSuccess = exports.retryJeScheduleFailure = exports.retryJeSchedule = exports.removeFailedJeScheduleTransactionKey = exports.removeJeScheduleTransactionKey = exports.initializeJeScheduleLocalData = exports.ignoreRecommendedJeScheduleSuccess = exports.ignoreRecommendedJeScheduleFailure = exports.ignoreRecommendedJeSchedule = exports.fetchJeSchedulesPage = exports.fetchJeSchedulesSuccess = exports.fetchJeSchedulesFailure = exports.fetchJeSchedules = exports.clearExpenseAutomationJESchedulesView = exports.initialState = void 0;
|
|
5
|
-
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
-
const timePeriod_1 = require("../../../commonStateTypes/timePeriod");
|
|
7
|
-
const jeSchedulesPayload_1 = require("../../../entity/jeSchedules/jeSchedulesPayload");
|
|
8
|
-
const transactionIDPayload_1 = require("../../../entity/transaction/payloadTypes/transactionIDPayload");
|
|
9
|
-
const transactionDetailState_1 = require("../../transactionDetail/transactionDetailState");
|
|
10
|
-
exports.initialState = {
|
|
11
|
-
jeScheduleTransactionKeysByPeriod: {},
|
|
12
|
-
failedJeScheduleTransactionKeysByPeriod: {},
|
|
13
|
-
postStatusById: {},
|
|
14
|
-
ignoreStatusById: {},
|
|
15
|
-
jeScheduleLocalDataById: {},
|
|
16
|
-
uiState: {
|
|
17
|
-
searchString: '',
|
|
18
|
-
scrollPosition: { scrollTop: 0, scrollLeft: undefined },
|
|
19
|
-
totalCount: 0,
|
|
20
|
-
limit: 10,
|
|
21
|
-
},
|
|
22
|
-
refreshStatus: {
|
|
23
|
-
fetchState: 'Not-Started',
|
|
24
|
-
error: undefined,
|
|
25
|
-
},
|
|
26
|
-
fetchState: 'Not-Started',
|
|
27
|
-
error: undefined,
|
|
28
|
-
hasValidState() {
|
|
29
|
-
return this.fetchState == 'Completed';
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
const expenseAutomationJESchedulesView = (0, toolkit_1.createSlice)({
|
|
33
|
-
name: 'expenseAutomationJESchedulesView',
|
|
34
|
-
initialState: exports.initialState,
|
|
35
|
-
reducers: {
|
|
36
|
-
fetchJeSchedulesPage: {
|
|
37
|
-
prepare(period, refreshViewInBackground = false) {
|
|
38
|
-
return {
|
|
39
|
-
payload: {
|
|
40
|
-
period,
|
|
41
|
-
refreshViewInBackground,
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
},
|
|
45
|
-
reducer() {
|
|
46
|
-
// Do nothing
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
fetchJeSchedules: {
|
|
50
|
-
reducer(draft, action) {
|
|
51
|
-
const { refreshViewInBackground } = action.payload;
|
|
52
|
-
if (refreshViewInBackground) {
|
|
53
|
-
draft.refreshStatus = { fetchState: 'In-Progress', error: undefined };
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
draft.fetchState = 'In-Progress';
|
|
57
|
-
draft.error = undefined;
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
prepare(period, refreshViewInBackground = false) {
|
|
61
|
-
return {
|
|
62
|
-
payload: {
|
|
63
|
-
period,
|
|
64
|
-
refreshViewInBackground,
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
fetchJeSchedulesSuccess(draft, action) {
|
|
70
|
-
const { jeSchedules, selectedPeriod, failedJeSchedules } = action.payload;
|
|
71
|
-
const jeScheduleTransactionKeys = jeSchedules.map((schedules) => {
|
|
72
|
-
const transactionID = (0, transactionIDPayload_1.toTransactionID)(schedules.base_transaction);
|
|
73
|
-
return (0, transactionDetailState_1.getZeniTransactionDetailKey)(transactionID);
|
|
74
|
-
});
|
|
75
|
-
const failedJeScheduleTransactionKeys = failedJeSchedules.map((schedules) => {
|
|
76
|
-
const transactionID = (0, transactionIDPayload_1.toTransactionID)(schedules.base_transaction);
|
|
77
|
-
return (0, transactionDetailState_1.getZeniTransactionDetailKey)(transactionID);
|
|
78
|
-
});
|
|
79
|
-
if (draft.refreshStatus.fetchState === 'In-Progress') {
|
|
80
|
-
draft.refreshStatus = { fetchState: 'Completed', error: undefined };
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
draft.fetchState = 'Completed';
|
|
84
|
-
draft.error = undefined;
|
|
85
|
-
}
|
|
86
|
-
draft.jeScheduleTransactionKeysByPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] = jeScheduleTransactionKeys;
|
|
87
|
-
draft.failedJeScheduleTransactionKeysByPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] = failedJeScheduleTransactionKeys;
|
|
88
|
-
},
|
|
89
|
-
fetchJeSchedulesFailure(draft, action) {
|
|
90
|
-
const { status, selectedPeriod } = action.payload;
|
|
91
|
-
if (draft.refreshStatus.fetchState === 'In-Progress') {
|
|
92
|
-
draft.refreshStatus = { fetchState: 'Error', error: status };
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
draft.fetchState = 'Error';
|
|
96
|
-
draft.error = status;
|
|
97
|
-
}
|
|
98
|
-
draft.jeScheduleTransactionKeysByPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] = [];
|
|
99
|
-
},
|
|
100
|
-
retryJeSchedule(draft, action) {
|
|
101
|
-
const { scheduledJournalEntryID } = action.payload;
|
|
102
|
-
const prevData = draft.postStatusById;
|
|
103
|
-
draft.postStatusById = Object.assign(Object.assign({}, prevData), { [scheduledJournalEntryID]: {
|
|
104
|
-
fetchState: 'In-Progress',
|
|
105
|
-
error: undefined,
|
|
106
|
-
} });
|
|
107
|
-
},
|
|
108
|
-
retryJeScheduleSuccess(draft, action) {
|
|
109
|
-
const { scheduledJournalEntryID } = action.payload;
|
|
110
|
-
const prevData = draft.postStatusById;
|
|
111
|
-
draft.postStatusById = Object.assign(Object.assign({}, prevData), { [scheduledJournalEntryID]: {
|
|
112
|
-
fetchState: 'Completed',
|
|
113
|
-
error: undefined,
|
|
114
|
-
} });
|
|
115
|
-
},
|
|
116
|
-
retryJeScheduleFailure(draft, action) {
|
|
117
|
-
const { status, scheduledJournalEntryID } = action.payload;
|
|
118
|
-
const prevData = draft.postStatusById;
|
|
119
|
-
draft.postStatusById = Object.assign(Object.assign({}, prevData), { [scheduledJournalEntryID]: {
|
|
120
|
-
fetchState: 'Error',
|
|
121
|
-
error: status,
|
|
122
|
-
} });
|
|
123
|
-
},
|
|
124
|
-
ignoreRecommendedJeSchedule: {
|
|
125
|
-
prepare(jeScheduleTransactionKey, scheduleType) {
|
|
126
|
-
return {
|
|
127
|
-
payload: {
|
|
128
|
-
jeScheduleTransactionKey,
|
|
129
|
-
scheduleType,
|
|
130
|
-
},
|
|
131
|
-
};
|
|
132
|
-
},
|
|
133
|
-
reducer(draft, action) {
|
|
134
|
-
const { jeScheduleTransactionKey } = action.payload;
|
|
135
|
-
const prevData = draft.ignoreStatusById;
|
|
136
|
-
draft.ignoreStatusById = Object.assign(Object.assign({}, prevData), { [jeScheduleTransactionKey]: {
|
|
137
|
-
fetchState: 'In-Progress',
|
|
138
|
-
error: undefined,
|
|
139
|
-
} });
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
ignoreRecommendedJeScheduleSuccess: {
|
|
143
|
-
reducer(draft, action) {
|
|
144
|
-
const { jeScheduleTransactionKey } = action.payload;
|
|
145
|
-
const prevData = draft.ignoreStatusById;
|
|
146
|
-
draft.ignoreStatusById = Object.assign(Object.assign({}, prevData), { [jeScheduleTransactionKey]: {
|
|
147
|
-
fetchState: 'Completed',
|
|
148
|
-
error: undefined,
|
|
149
|
-
} });
|
|
150
|
-
},
|
|
151
|
-
prepare(jeScheduleTransactionKey) {
|
|
152
|
-
return {
|
|
153
|
-
payload: {
|
|
154
|
-
jeScheduleTransactionKey,
|
|
155
|
-
},
|
|
156
|
-
};
|
|
157
|
-
},
|
|
158
|
-
},
|
|
159
|
-
ignoreRecommendedJeScheduleFailure(draft, action) {
|
|
160
|
-
const { status, jeScheduleTransactionKey } = action.payload;
|
|
161
|
-
const prevData = draft.ignoreStatusById;
|
|
162
|
-
draft.ignoreStatusById = Object.assign(Object.assign({}, prevData), { [jeScheduleTransactionKey]: {
|
|
163
|
-
fetchState: 'Error',
|
|
164
|
-
error: status,
|
|
165
|
-
} });
|
|
166
|
-
},
|
|
167
|
-
updateJeScheduleTransactionKeys: {
|
|
168
|
-
prepare(jeScheduleKeys, selectedPeriod) {
|
|
169
|
-
return {
|
|
170
|
-
payload: {
|
|
171
|
-
jeScheduleKeys: jeScheduleKeys,
|
|
172
|
-
selectedPeriod: selectedPeriod,
|
|
173
|
-
},
|
|
174
|
-
};
|
|
175
|
-
},
|
|
176
|
-
reducer(draft, action) {
|
|
177
|
-
const { selectedPeriod, jeScheduleKeys } = action.payload;
|
|
178
|
-
draft.jeScheduleTransactionKeysByPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] = jeScheduleKeys;
|
|
179
|
-
},
|
|
180
|
-
},
|
|
181
|
-
removeJeScheduleTransactionKey: {
|
|
182
|
-
prepare(jeScheduleKey, selectedPeriod) {
|
|
183
|
-
return {
|
|
184
|
-
payload: {
|
|
185
|
-
jeScheduleKey: jeScheduleKey,
|
|
186
|
-
selectedPeriod: selectedPeriod,
|
|
187
|
-
},
|
|
188
|
-
};
|
|
189
|
-
},
|
|
190
|
-
reducer(draft, action) {
|
|
191
|
-
var _a;
|
|
192
|
-
const { selectedPeriod, jeScheduleKey } = action.payload;
|
|
193
|
-
const prevData = [
|
|
194
|
-
...((_a = draft.jeScheduleTransactionKeysByPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)]) !== null && _a !== void 0 ? _a : []),
|
|
195
|
-
];
|
|
196
|
-
const filteredKeys = prevData.filter((jeKey) => jeKey !== jeScheduleKey);
|
|
197
|
-
draft.jeScheduleTransactionKeysByPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] = filteredKeys;
|
|
198
|
-
},
|
|
199
|
-
},
|
|
200
|
-
removeFailedJeScheduleTransactionKey: {
|
|
201
|
-
prepare(failedJeScheduleKey, selectedPeriod) {
|
|
202
|
-
return {
|
|
203
|
-
payload: {
|
|
204
|
-
failedJeScheduleKey: failedJeScheduleKey,
|
|
205
|
-
selectedPeriod: selectedPeriod,
|
|
206
|
-
},
|
|
207
|
-
};
|
|
208
|
-
},
|
|
209
|
-
reducer(draft, action) {
|
|
210
|
-
var _a;
|
|
211
|
-
const { selectedPeriod, failedJeScheduleKey } = action.payload;
|
|
212
|
-
const prevData = [
|
|
213
|
-
...((_a = draft.failedJeScheduleTransactionKeysByPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)]) !== null && _a !== void 0 ? _a : []),
|
|
214
|
-
];
|
|
215
|
-
const filteredKeys = prevData.filter((jeKey) => jeKey !== failedJeScheduleKey);
|
|
216
|
-
draft.failedJeScheduleTransactionKeysByPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] = filteredKeys;
|
|
217
|
-
},
|
|
218
|
-
},
|
|
219
|
-
initializeJeScheduleLocalData: {
|
|
220
|
-
reducer() {
|
|
221
|
-
/* DO nothing*/
|
|
222
|
-
},
|
|
223
|
-
prepare(jeSchedules) {
|
|
224
|
-
return {
|
|
225
|
-
payload: {
|
|
226
|
-
jeScheduleTransactionKeys: [
|
|
227
|
-
...jeSchedules.map((jeSchedule) => (0, jeSchedulesPayload_1.getTransactionDetailKeyPayload)(jeSchedule.base_transaction)),
|
|
228
|
-
],
|
|
229
|
-
},
|
|
230
|
-
};
|
|
231
|
-
},
|
|
232
|
-
},
|
|
233
|
-
updateJeScheduleLocalDataById(draft, action) {
|
|
234
|
-
const { scheduledJournalEntryID, localData } = action.payload;
|
|
235
|
-
const prevData = draft.jeScheduleLocalDataById;
|
|
236
|
-
const prevLocalDataById = draft.jeScheduleLocalDataById[scheduledJournalEntryID];
|
|
237
|
-
draft.jeScheduleLocalDataById = Object.assign(Object.assign({}, prevData), { [scheduledJournalEntryID]: Object.assign(Object.assign({}, prevLocalDataById), localData) });
|
|
238
|
-
},
|
|
239
|
-
clearExpenseAutomationJESchedulesView(draft) {
|
|
240
|
-
Object.assign(draft, exports.initialState);
|
|
241
|
-
},
|
|
242
|
-
},
|
|
243
|
-
});
|
|
244
|
-
_a = expenseAutomationJESchedulesView.actions, exports.clearExpenseAutomationJESchedulesView = _a.clearExpenseAutomationJESchedulesView, exports.fetchJeSchedules = _a.fetchJeSchedules, exports.fetchJeSchedulesFailure = _a.fetchJeSchedulesFailure, exports.fetchJeSchedulesSuccess = _a.fetchJeSchedulesSuccess, exports.fetchJeSchedulesPage = _a.fetchJeSchedulesPage, exports.ignoreRecommendedJeSchedule = _a.ignoreRecommendedJeSchedule, exports.ignoreRecommendedJeScheduleFailure = _a.ignoreRecommendedJeScheduleFailure, exports.ignoreRecommendedJeScheduleSuccess = _a.ignoreRecommendedJeScheduleSuccess, exports.initializeJeScheduleLocalData = _a.initializeJeScheduleLocalData, exports.removeJeScheduleTransactionKey = _a.removeJeScheduleTransactionKey, exports.removeFailedJeScheduleTransactionKey = _a.removeFailedJeScheduleTransactionKey, exports.retryJeSchedule = _a.retryJeSchedule, exports.retryJeScheduleFailure = _a.retryJeScheduleFailure, exports.retryJeScheduleSuccess = _a.retryJeScheduleSuccess, exports.updateJeScheduleLocalDataById = _a.updateJeScheduleLocalDataById, exports.updateJeScheduleTransactionKeys = _a.updateJeScheduleTransactionKeys;
|
|
245
|
-
exports.default = expenseAutomationJESchedulesView.reducer;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { MissingReceiptsViewState, MissingReceiptsViewUIState } from '../types/missingReceiptsViewState';
|
|
2
|
-
import { MonthYearPeriod, TimePeriod } from '../../../commonStateTypes/timePeriod';
|
|
3
|
-
import { Amount } from '../../../commonStateTypes/amount';
|
|
4
|
-
import { TransactionPayload } from '../../../entity/transaction/payloadTypes/transactionPayload';
|
|
5
|
-
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
6
|
-
import { SupportedTransactionPayload } from '../../../entity/transaction/transactionState';
|
|
7
|
-
import { FetchStateAndError, UpdateType } from '../../../commonStateTypes/common';
|
|
8
|
-
export declare const initialState: MissingReceiptsViewState;
|
|
9
|
-
export declare const fetchMissingReceipts: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, minimumTransactionAmount: Amount, cacheOverride?: any, refreshViewInBackground?: any], {
|
|
10
|
-
period: TimePeriod;
|
|
11
|
-
minimumTransactionAmount: Amount;
|
|
12
|
-
cacheOverride: any;
|
|
13
|
-
refreshViewInBackground: any;
|
|
14
|
-
}, string, never, never>, fetchMissingReceiptsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
15
|
-
transactionsPayload: TransactionPayload[];
|
|
16
|
-
selectedPeriod: MonthYearPeriod;
|
|
17
|
-
}, string>, fetchMissingReceiptsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
18
|
-
selectedPeriod: MonthYearPeriod;
|
|
19
|
-
status: ZeniAPIStatus;
|
|
20
|
-
}, string>, uploadMissingReceiptSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionPayload: SupportedTransactionPayload, updateType?: UpdateType | undefined], {
|
|
21
|
-
transactionPayload: SupportedTransactionPayload;
|
|
22
|
-
updateType: UpdateType;
|
|
23
|
-
}, string, never, never>, updateMissingReceiptUploadState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionId: string, fetchStatus: FetchStateAndError], {
|
|
24
|
-
transactionId: string;
|
|
25
|
-
fetchStatus: FetchStateAndError;
|
|
26
|
-
}, string, never, never>, updateMissingReceiptsUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<MissingReceiptsViewUIState>, string>, markMissingReceiptAsDone: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionPayload: SupportedTransactionPayload, selectedPeriod: MonthYearPeriod], {
|
|
27
|
-
transactionPayload: SupportedTransactionPayload;
|
|
28
|
-
selectedPeriod: MonthYearPeriod;
|
|
29
|
-
}, string, never, never>, clearExpenseAutomationMissingReceiptsView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
30
|
-
declare const _default: import("@reduxjs/toolkit").Reducer<MissingReceiptsViewState, import("@reduxjs/toolkit").AnyAction>;
|
|
31
|
-
export default _default;
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.clearExpenseAutomationMissingReceiptsView = exports.markMissingReceiptAsDone = exports.updateMissingReceiptsUIState = exports.updateMissingReceiptUploadState = exports.uploadMissingReceiptSuccess = exports.fetchMissingReceiptsFailure = exports.fetchMissingReceiptsSuccess = exports.fetchMissingReceipts = exports.initialState = void 0;
|
|
5
|
-
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
-
const timePeriod_1 = require("../../../commonStateTypes/timePeriod");
|
|
7
|
-
exports.initialState = {
|
|
8
|
-
uploadReceiptStatusById: {},
|
|
9
|
-
refreshStatus: {
|
|
10
|
-
fetchState: 'Not-Started',
|
|
11
|
-
error: undefined,
|
|
12
|
-
},
|
|
13
|
-
uiState: {
|
|
14
|
-
sortKey: 'date',
|
|
15
|
-
sortOrder: 'descending',
|
|
16
|
-
searchString: '',
|
|
17
|
-
scrollPosition: { scrollTop: 0, scrollLeft: undefined },
|
|
18
|
-
},
|
|
19
|
-
transactionIdsBySelectedPeriod: {},
|
|
20
|
-
fetchState: 'Not-Started',
|
|
21
|
-
error: undefined,
|
|
22
|
-
hasValidState() {
|
|
23
|
-
return this.fetchState == 'Completed';
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
const expenseAutomationMissingReceiptsView = (0, toolkit_1.createSlice)({
|
|
27
|
-
name: 'expenseAutomationMissingReceiptsView',
|
|
28
|
-
initialState: exports.initialState,
|
|
29
|
-
reducers: {
|
|
30
|
-
fetchMissingReceipts: {
|
|
31
|
-
reducer(draft, action) {
|
|
32
|
-
const { refreshViewInBackground } = action.payload;
|
|
33
|
-
if (refreshViewInBackground) {
|
|
34
|
-
draft.refreshStatus = { fetchState: 'In-Progress', error: undefined };
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
draft.fetchState = 'In-Progress';
|
|
38
|
-
draft.error = undefined;
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
prepare(period, minimumTransactionAmount, cacheOverride = false, refreshViewInBackground = false) {
|
|
42
|
-
return {
|
|
43
|
-
payload: {
|
|
44
|
-
period,
|
|
45
|
-
minimumTransactionAmount,
|
|
46
|
-
cacheOverride,
|
|
47
|
-
refreshViewInBackground,
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
fetchMissingReceiptsSuccess(draft, action) {
|
|
53
|
-
const { transactionsPayload, selectedPeriod } = action.payload;
|
|
54
|
-
const transactionIds = transactionsPayload.map((transactionPayload) => transactionPayload.transaction_id);
|
|
55
|
-
if (draft.fetchState === 'In-Progress') {
|
|
56
|
-
draft.fetchState = 'Completed';
|
|
57
|
-
draft.error = undefined;
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
draft.refreshStatus = { fetchState: 'Completed', error: undefined };
|
|
61
|
-
}
|
|
62
|
-
draft.transactionIdsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] = transactionIds;
|
|
63
|
-
},
|
|
64
|
-
fetchMissingReceiptsFailure(draft, action) {
|
|
65
|
-
const { status, selectedPeriod } = action.payload;
|
|
66
|
-
if (draft.fetchState === 'In-Progress') {
|
|
67
|
-
draft.fetchState = 'Error';
|
|
68
|
-
draft.error = status;
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
draft.refreshStatus = { fetchState: 'Error', error: status };
|
|
72
|
-
}
|
|
73
|
-
draft.transactionIdsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] = [];
|
|
74
|
-
},
|
|
75
|
-
updateMissingReceiptsUIState(draft, action) {
|
|
76
|
-
if (action.payload.sortKey != null) {
|
|
77
|
-
draft.uiState.sortKey = action.payload.sortKey;
|
|
78
|
-
}
|
|
79
|
-
if (action.payload.sortOrder != null) {
|
|
80
|
-
draft.uiState.sortOrder = action.payload.sortOrder;
|
|
81
|
-
}
|
|
82
|
-
if (action.payload.searchString != null) {
|
|
83
|
-
draft.uiState.searchString = action.payload.searchString;
|
|
84
|
-
}
|
|
85
|
-
if (action.payload.scrollPosition != null) {
|
|
86
|
-
draft.uiState.scrollPosition = action.payload.scrollPosition;
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
updateMissingReceiptUploadState: {
|
|
90
|
-
reducer(draft, action) {
|
|
91
|
-
const { transactionId, fetchStatus } = action.payload;
|
|
92
|
-
draft.uploadReceiptStatusById[transactionId] = fetchStatus;
|
|
93
|
-
},
|
|
94
|
-
prepare(transactionId, fetchStatus) {
|
|
95
|
-
return { payload: { transactionId, fetchStatus } };
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
uploadMissingReceiptSuccess: {
|
|
99
|
-
reducer(draft, action) {
|
|
100
|
-
const { transactionPayload } = action.payload;
|
|
101
|
-
draft.uploadReceiptStatusById[transactionPayload.transaction_id] = {
|
|
102
|
-
fetchState: 'Completed',
|
|
103
|
-
error: undefined,
|
|
104
|
-
};
|
|
105
|
-
},
|
|
106
|
-
prepare(transactionPayload, updateType = 'merge') {
|
|
107
|
-
return { payload: { transactionPayload, updateType } };
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
markMissingReceiptAsDone: {
|
|
111
|
-
reducer(draft, action) {
|
|
112
|
-
const { transactionPayload, selectedPeriod } = action.payload;
|
|
113
|
-
if (draft.transactionIdsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] != null) {
|
|
114
|
-
draft.transactionIdsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] = draft.transactionIdsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)].filter((transactionId) => transactionId !== transactionPayload.transaction_id);
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
draft.transactionIdsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] = [];
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
prepare(transactionPayload, selectedPeriod) {
|
|
121
|
-
return { payload: { transactionPayload, selectedPeriod } };
|
|
122
|
-
},
|
|
123
|
-
},
|
|
124
|
-
clearExpenseAutomationMissingReceiptsView(draft) {
|
|
125
|
-
Object.assign(draft, exports.initialState);
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
});
|
|
129
|
-
_a = expenseAutomationMissingReceiptsView.actions, exports.fetchMissingReceipts = _a.fetchMissingReceipts, exports.fetchMissingReceiptsSuccess = _a.fetchMissingReceiptsSuccess, exports.fetchMissingReceiptsFailure = _a.fetchMissingReceiptsFailure, exports.uploadMissingReceiptSuccess = _a.uploadMissingReceiptSuccess, exports.updateMissingReceiptUploadState = _a.updateMissingReceiptUploadState, exports.updateMissingReceiptsUIState = _a.updateMissingReceiptsUIState, exports.markMissingReceiptAsDone = _a.markMissingReceiptAsDone, exports.clearExpenseAutomationMissingReceiptsView = _a.clearExpenseAutomationMissingReceiptsView;
|
|
130
|
-
exports.default = expenseAutomationMissingReceiptsView.reducer;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { TransactionsViewState } from '../types/transactionsViewState';
|
|
2
|
-
export declare const initialState: TransactionsViewState;
|
|
3
|
-
export declare const clearExpenseAutomationTransactionsView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
4
|
-
declare const _default: import("@reduxjs/toolkit").Reducer<TransactionsViewState, import("@reduxjs/toolkit").AnyAction>;
|
|
5
|
-
export default _default;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.clearExpenseAutomationTransactionsView = exports.initialState = void 0;
|
|
4
|
-
const toolkit_1 = require("@reduxjs/toolkit");
|
|
5
|
-
exports.initialState = {
|
|
6
|
-
saveStatus: {
|
|
7
|
-
fetchState: 'Not-Started',
|
|
8
|
-
error: undefined,
|
|
9
|
-
},
|
|
10
|
-
updateStatus: {
|
|
11
|
-
fetchState: 'Not-Started',
|
|
12
|
-
error: undefined,
|
|
13
|
-
},
|
|
14
|
-
refreshStatus: {
|
|
15
|
-
fetchState: 'Not-Started',
|
|
16
|
-
error: undefined,
|
|
17
|
-
},
|
|
18
|
-
uiState: {
|
|
19
|
-
sortKey: 'vendor',
|
|
20
|
-
sortOrder: 'ascending',
|
|
21
|
-
searchString: '',
|
|
22
|
-
nodeCollapseState: {},
|
|
23
|
-
scrollPosition: { scrollTop: 0, scrollLeft: undefined },
|
|
24
|
-
pageToken: null,
|
|
25
|
-
totalCount: 0,
|
|
26
|
-
limit: 10,
|
|
27
|
-
},
|
|
28
|
-
selectedTab: 'review',
|
|
29
|
-
fetchState: 'Not-Started',
|
|
30
|
-
error: undefined,
|
|
31
|
-
hasValidState() {
|
|
32
|
-
return this.fetchState == 'Completed';
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
const expenseAutomationTransactionsView = (0, toolkit_1.createSlice)({
|
|
36
|
-
name: 'expenseAutomationTransactionsView',
|
|
37
|
-
initialState: exports.initialState,
|
|
38
|
-
reducers: {
|
|
39
|
-
clearExpenseAutomationTransactionsView() {
|
|
40
|
-
// TODO - Vivek
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
});
|
|
44
|
-
exports.clearExpenseAutomationTransactionsView = expenseAutomationTransactionsView.actions.clearExpenseAutomationTransactionsView;
|
|
45
|
-
exports.default = expenseAutomationTransactionsView.reducer;
|
package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { CompletionStatusType, FetchStateAndError, ID } from '../../../commonStateTypes/common';
|
|
2
|
-
import { MonthYearPeriod, MonthYearPeriodId } from '../../../commonStateTypes/timePeriod';
|
|
3
|
-
import { SelectorView } from '../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
4
|
-
import { MonthEndAuditSummary, MonthEndCloseChecksState } from '../../../entity/monthEndCloseChecks/monthEndCloseChecksState';
|
|
5
|
-
import { MonthEndCloseChecksView } from '../../../view/monthEndCloseChecksView/monthEndCloseChecksViewSelector';
|
|
6
|
-
import { CompanyMonthEndReportSelectorView } from '../../companyMonthEndReportView/companyMonthEndReportViewSelector';
|
|
7
|
-
import { ExpenseAutomationViewType } from '../expenseAutomationViewState';
|
|
8
|
-
import { ExpenseAutomationJESchedulesViewSelector } from './jeSchedulesSelectorTypes';
|
|
9
|
-
import { ExpenseAutomationFluxAnalysisViewSelector } from './fluxAnalysisViewSelectorTypes';
|
|
10
|
-
import { ExpenseAutomationMissingReceiptsViewSelector } from './missingReceiptsSelectorTypes';
|
|
11
|
-
export interface ExpenseAutomationStepDetails {
|
|
12
|
-
step: ExpenseAutomationViewType;
|
|
13
|
-
title: string;
|
|
14
|
-
subTitle: string;
|
|
15
|
-
completionStatus: CompletionStatusType;
|
|
16
|
-
isDisabled: boolean;
|
|
17
|
-
isPrevDisabled: boolean;
|
|
18
|
-
isNextDisabled: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare const getAllSteps: (monthEndCloseChecksState: MonthEndCloseChecksState, monthYearId: MonthYearPeriodId, tenantId: ID, auditSummary?: MonthEndAuditSummary | undefined) => ExpenseAutomationStepDetails[];
|
|
21
|
-
export interface ExpenseAutomationViewSelector extends SelectorView {
|
|
22
|
-
currentSelectedView: ExpenseAutomationViewType;
|
|
23
|
-
selectedPeriod: MonthYearPeriod;
|
|
24
|
-
monthEndCloseChecksView: MonthEndCloseChecksView;
|
|
25
|
-
jeSchedules: ExpenseAutomationJESchedulesViewSelector;
|
|
26
|
-
missingReceipts: ExpenseAutomationMissingReceiptsViewSelector;
|
|
27
|
-
fluxAnalysis: ExpenseAutomationFluxAnalysisViewSelector;
|
|
28
|
-
monthEndInsights?: CompanyMonthEndReportSelectorView;
|
|
29
|
-
saveStatus: FetchStateAndError;
|
|
30
|
-
updateStatus: FetchStateAndError;
|
|
31
|
-
allSteps: ExpenseAutomationStepDetails[];
|
|
32
|
-
completionStatus: CompletionStatusType;
|
|
33
|
-
auditSummary?: MonthEndAuditSummary;
|
|
34
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAllSteps = void 0;
|
|
4
|
-
const common_1 = require("../../../commonStateTypes/common");
|
|
5
|
-
const getAllSteps = (monthEndCloseChecksState, monthYearId, tenantId, auditSummary) => {
|
|
6
|
-
var _a;
|
|
7
|
-
if (((_a = monthEndCloseChecksState.monthEndCloseChecksByTenantId[tenantId]) === null || _a === void 0 ? void 0 : _a[monthYearId]) != null) {
|
|
8
|
-
const steps = monthEndCloseChecksState.monthEndCloseChecksByTenantId[tenantId][monthYearId].monthEndCloseCheckList.map((check) => {
|
|
9
|
-
switch (check.id) {
|
|
10
|
-
case 'month_end_insights':
|
|
11
|
-
return {
|
|
12
|
-
step: check.id,
|
|
13
|
-
title: check.title,
|
|
14
|
-
subTitle: check.description,
|
|
15
|
-
completionStatus: check.progress === 100
|
|
16
|
-
? (0, common_1.toCompletionStatusType)('complete')
|
|
17
|
-
: (0, common_1.toCompletionStatusType)('incomplete'),
|
|
18
|
-
isDisabled: auditSummary == null || auditSummary.auditScorePercentage < 75,
|
|
19
|
-
isPrevDisabled: false,
|
|
20
|
-
isNextDisabled: false,
|
|
21
|
-
};
|
|
22
|
-
case 'account_recon':
|
|
23
|
-
case 'je_schedules':
|
|
24
|
-
case 'missing_receipts':
|
|
25
|
-
case 'flux_analysis':
|
|
26
|
-
case 'transaction_categorization':
|
|
27
|
-
return {
|
|
28
|
-
step: check.id,
|
|
29
|
-
title: check.title,
|
|
30
|
-
subTitle: check.description,
|
|
31
|
-
completionStatus: check.progress === 100
|
|
32
|
-
? (0, common_1.toCompletionStatusType)('complete')
|
|
33
|
-
: (0, common_1.toCompletionStatusType)('incomplete'),
|
|
34
|
-
isDisabled: false,
|
|
35
|
-
isPrevDisabled: false,
|
|
36
|
-
isNextDisabled: false,
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
return steps;
|
|
41
|
-
}
|
|
42
|
-
return [];
|
|
43
|
-
};
|
|
44
|
-
exports.getAllSteps = getAllSteps;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Currency } from '../../../commonStateTypes/amount';
|
|
2
|
-
import { FetchStateAndError, ID } from '../../../commonStateTypes/common';
|
|
3
|
-
import { AccountBase } from '../../../entity/account/accountState';
|
|
4
|
-
import { ClassBase } from '../../../entity/class/classState';
|
|
5
|
-
import { User } from '../../../entity/user/userState';
|
|
6
|
-
import { Vendor } from '../../../entity/vendor/vendorState';
|
|
7
|
-
import { ZeniDate } from '../../../zeniDayJS';
|
|
8
|
-
import { FluxAnalysisReviewStatus, FluxAnalysisViewUIState, FluxBalancesByMonth } from '../types/fluxAnalysisViewState';
|
|
9
|
-
export interface FluxAnalysisOperatingExpenseView {
|
|
10
|
-
operatingExpenseId: ID;
|
|
11
|
-
vendor: Vendor;
|
|
12
|
-
accountBase: AccountBase | undefined;
|
|
13
|
-
classBase: ClassBase | undefined;
|
|
14
|
-
reviewedByUser: User | undefined;
|
|
15
|
-
varianceAmount: number;
|
|
16
|
-
variancePercentage: number;
|
|
17
|
-
currency: Currency;
|
|
18
|
-
anomalyReason: string;
|
|
19
|
-
status: FluxAnalysisReviewStatus;
|
|
20
|
-
balancesByMonth?: FluxBalancesByMonth;
|
|
21
|
-
reviewStatus: FetchStateAndError;
|
|
22
|
-
}
|
|
23
|
-
export interface ExpenseAutomationFluxAnalysisViewSelector {
|
|
24
|
-
operatingExpensesView: FluxAnalysisOperatingExpenseView[];
|
|
25
|
-
reviewOperatingExpensesIds: ID[];
|
|
26
|
-
fetchStatus: FetchStateAndError;
|
|
27
|
-
refreshStatus: FetchStateAndError;
|
|
28
|
-
bulkReviewStatus: FetchStateAndError;
|
|
29
|
-
uiState: FluxAnalysisViewUIState;
|
|
30
|
-
lastRefreshSuccessTime?: ZeniDate;
|
|
31
|
-
isAllSelected: boolean;
|
|
32
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { NestedAccountHierarchyForReport } from '../../../commonStateTypes/accountView/nestedAccountID';
|
|
2
|
-
import { NestedClassHierarchyForReport } from '../../../commonStateTypes/classesView/nestedClassID';
|
|
3
|
-
import { CompletionStatusType, FetchStateAndError, ID } from '../../../commonStateTypes/common';
|
|
4
|
-
import { SelectorView } from '../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
5
|
-
import { AccountBase } from '../../../entity/account/accountState';
|
|
6
|
-
import { ClassBase } from '../../../entity/class/classState';
|
|
7
|
-
import { JEScheduledTransaction } from '../../../entity/jeSchedules/jeSchedulesSelector';
|
|
8
|
-
import { JEScheduleTransactionKey } from '../../../entity/jeSchedules/jeSchedulesTypes';
|
|
9
|
-
import { UncategorizedAccounts } from '../../accountList/accountListSelector';
|
|
10
|
-
import { JEScheduledTransactionWithFailedEntries } from '../selectors/jeSchedulesViewSelector';
|
|
11
|
-
import { JEScheduleLocalData, JESchedulesViewUIState } from '../types/jeSchedulesViewState';
|
|
12
|
-
export interface ExpenseAutomationJESchedulesViewSelector extends SelectorView {
|
|
13
|
-
uiState: JESchedulesViewUIState;
|
|
14
|
-
draftSchedules: JEScheduledTransaction[];
|
|
15
|
-
refreshStatus: FetchStateAndError;
|
|
16
|
-
resolveSchedules: JEScheduledTransactionWithFailedEntries[];
|
|
17
|
-
completionStatus: CompletionStatusType;
|
|
18
|
-
jeScheduleLocalDataById: Record<ID, JEScheduleLocalData>;
|
|
19
|
-
allAccountList: AccountBase[];
|
|
20
|
-
uncategorizedAccounts: UncategorizedAccounts;
|
|
21
|
-
accountListNestedAccountHierarchy: NestedAccountHierarchyForReport[];
|
|
22
|
-
allClassList: ClassBase[];
|
|
23
|
-
classListNestedAccountHierarchy: NestedClassHierarchyForReport[];
|
|
24
|
-
allDepreciationAccountList: AccountBase[];
|
|
25
|
-
allDepreciationAccountListNestedAccountHierarchy: NestedAccountHierarchyForReport[];
|
|
26
|
-
postStatusById: Record<ID, FetchStateAndError>;
|
|
27
|
-
ignoreStatusById: Record<JEScheduleTransactionKey, FetchStateAndError>;
|
|
28
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CompletionStatusType, FetchStateAndError, ID } from '../../../commonStateTypes/common';
|
|
2
|
-
import { SelectorView } from '../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
3
|
-
import { SupportedTransaction } from '../../../entity/transaction/transactionState';
|
|
4
|
-
import { MissingReceiptsViewUIState } from '../types/missingReceiptsViewState';
|
|
5
|
-
export interface ExpenseAutomationMissingReceiptsViewSelector extends SelectorView {
|
|
6
|
-
uiState: MissingReceiptsViewUIState;
|
|
7
|
-
uploadReceiptStatusById: Record<ID, FetchStateAndError>;
|
|
8
|
-
refreshStatus: FetchStateAndError;
|
|
9
|
-
transactions: SupportedTransaction[];
|
|
10
|
-
completionStatus: CompletionStatusType;
|
|
11
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { RootState } from '../../../reducer';
|
|
2
|
-
import { ExpenseAutomationFluxAnalysisViewSelector } from '../selectorTypes/fluxAnalysisViewSelectorTypes';
|
|
3
|
-
export declare function getExpenseAutomationFluxAnalysisView(state: RootState): ExpenseAutomationFluxAnalysisViewSelector;
|