@zeniai/client-epic-state 4.13.11 → 4.13.12
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/accountPayload.d.ts +1 -1
- 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 -14
- package/lib/entity/tenant/clearAllEpic.js +0 -24
- 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__/vendorMock.js +2 -0
- package/lib/entity/vendor/__mocks__/vendorStateMocks.d.ts +0 -2
- package/lib/entity/vendor/__mocks__/vendorStateMocks.js +4 -107
- package/lib/entity/vendor/vendorPayload.d.ts +1 -6
- package/lib/entity/vendor/vendorPayload.js +5 -6
- package/lib/entity/vendor/vendorState.d.ts +3 -10
- package/lib/entity/vendor/vendorType.d.ts +2 -2
- package/lib/entity/vendor/vendorType.js +4 -4
- package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
- package/lib/entity/vendorExpense/vendorExpenseSelector.js +0 -1
- package/lib/epic.d.ts +2 -19
- package/lib/epic.js +2 -19
- package/lib/index.d.ts +21 -65
- package/lib/index.js +28 -102
- package/lib/reducer.d.ts +1 -34
- package/lib/reducer.js +1 -34
- package/lib/view/accountMappingView/accountMappingPayload.js +32 -75
- package/lib/view/accountMappingView/accountMappingReducer.js +10 -36
- package/lib/view/accountMappingView/accountMappingState.d.ts +1 -1
- package/lib/view/accountMappingView/accountMappingViewSelector.d.ts +0 -5
- package/lib/view/accountMappingView/accountMappingViewSelector.js +1 -11
- package/lib/view/accountMappingView/initializeAccountMappingViewEpic.d.ts +1 -2
- package/lib/view/accountMappingView/initializeAccountMappingViewEpic.js +0 -2
- package/lib/view/accountMappingView/saveAccountMappingViewEpic.js +1 -6
- 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__/json/vendorFiling1099ListSuccess.json +1 -4
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099ListMock.js +3 -12
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099ListSelectorMock.js +4 -2
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099UploadDetailsMock.d.ts +1 -4
- package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorsFiling1099AllEpic.d.ts +2 -2
- package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorsFiling1099AllEpic.js +7 -7
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListSelector.js +10 -21
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.d.ts +1 -1
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.js +0 -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/accountMappingView/__mocks__/accountMappingSelectorMock.d.ts +0 -11
- package/lib/view/accountMappingView/__mocks__/accountMappingSelectorMock.js +0 -4607
- 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
- package/lib/view/vendor1099TypeList/vendor1099TypeListEpic.d.ts +0 -7
- package/lib/view/vendor1099TypeList/vendor1099TypeListEpic.js +0 -23
- package/lib/view/vendor1099TypeList/vendor1099TypeListPayload.d.ts +0 -15
- package/lib/view/vendor1099TypeList/vendor1099TypeListPayload.js +0 -2
- package/lib/view/vendor1099TypeList/vendor1099TypeListReducer.d.ts +0 -7
- package/lib/view/vendor1099TypeList/vendor1099TypeListReducer.js +0 -52
- package/lib/view/vendor1099TypeList/vendor1099TypeListState.d.ts +0 -9
- package/lib/view/vendor1099TypeList/vendor1099TypeListState.js +0 -2
package/lib/reducer.d.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { TenantState } from './entity/tenant/tenantState';
|
|
2
2
|
import { AccountState } from './entity/account/accountState';
|
|
3
|
-
import { MonthEndCloseChecksState } from './entity/monthEndCloseChecks/monthEndCloseChecksState';
|
|
4
|
-
import { MonthEndCloseChecksViewState } from './view/monthEndCloseChecksView/monthEndCloseChecksViewState';
|
|
5
|
-
import { TransactionsViewState as ExpenseAutomationTransactionsViewState } from './view/expenseAutomationView/types/transactionsViewState';
|
|
6
|
-
import { MissingReceiptsViewState as ExpenseAutomationMissingReceiptsViewState } from './view/expenseAutomationView/types/missingReceiptsViewState';
|
|
7
|
-
import { JESchedulesViewState as ExpenseAutomationJESchedulesViewState } from './view/expenseAutomationView/types/jeSchedulesViewState';
|
|
8
|
-
import { FluxAnalysisViewState as ExpenseAutomationFluxAnalysisViewState } from './view/expenseAutomationView/types/fluxAnalysisViewState';
|
|
9
|
-
import { ExpenseAutomationViewState } from './view/expenseAutomationView/expenseAutomationViewState';
|
|
10
3
|
import { CustomerIncomeState } from './entity/customerIncome/customerIncomeTrendState';
|
|
11
4
|
import { VendorExpenseState } from './entity/vendorExpense/vendorExpenseState';
|
|
12
5
|
import { EntityState } from './entity/genericEntity/entityState';
|
|
@@ -56,7 +49,6 @@ import { CompanyViewState } from './view/companyView/companyViewState';
|
|
|
56
49
|
import { AccountingSummaryState } from './entity/portfolio/accountingSummary/accountingSummaryState';
|
|
57
50
|
import { AddressViewState } from './view/addressView/addressViewState';
|
|
58
51
|
import { AccountListState } from './view/accountList/accountListState';
|
|
59
|
-
import { CountryListState } from './view/countryList/countryListState';
|
|
60
52
|
import { MerchantListState } from './view/spendManagement/merchantList/merchantListState';
|
|
61
53
|
import { ClassListState } from './view/classList/classListState';
|
|
62
54
|
import { ClassState } from './entity/class/classState';
|
|
@@ -128,7 +120,6 @@ import { CommonHistoryState } from './view/spendManagement/commonHistoryView/com
|
|
|
128
120
|
import { RealTimeApprovalState } from './view/spendManagement/realTimeApprovalView/realTimeApprovalState';
|
|
129
121
|
import { TransactionVendorViewState } from './view/commonVendorView/transactionVendorView/transactionVendorViewState';
|
|
130
122
|
import { VendorTypeListState } from './view/vendorTypeList/vendorTypeListState';
|
|
131
|
-
import { Vendor1099TypeListState } from './view/vendor1099TypeList/vendor1099TypeListState';
|
|
132
123
|
import { CurrencyState } from './entity/currency/currency';
|
|
133
124
|
import { ZeniAccStatementListState } from './view/zeniAccStatementList/zeniAccStatementList';
|
|
134
125
|
import { ChargeCardStatementListState } from './view/spendManagement/chargeCards/chargeCardStatementList/chargeCardStatementList';
|
|
@@ -184,8 +175,6 @@ import { BillsBulkActionViewState } from './view/spendManagement/billPay/billsBu
|
|
|
184
175
|
import { RemisBulkActionViewState } from './view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewState';
|
|
185
176
|
import { VendorFiling1099ListState } from './view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState';
|
|
186
177
|
import { VendorFiling1099UploadDetailsState } from './view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsState';
|
|
187
|
-
import { InternationalWireVerificationState } from './view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationState';
|
|
188
|
-
import { IssueChargeCardState } from './view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState';
|
|
189
178
|
declare type EntitiesState = {
|
|
190
179
|
accountGroupState: AccountGroupState;
|
|
191
180
|
accountingSummaryState: AccountingSummaryState;
|
|
@@ -215,7 +204,6 @@ declare type EntitiesState = {
|
|
|
215
204
|
insightState: InsightState;
|
|
216
205
|
jeSchedulesState: JESchedulesState;
|
|
217
206
|
merchantState: MerchantState;
|
|
218
|
-
monthEndCloseChecksState: MonthEndCloseChecksState;
|
|
219
207
|
notificationState: NotificationState;
|
|
220
208
|
onboardingCustomerState: OnboardingCustomerState;
|
|
221
209
|
paymentAccountState: PaymentAccountState;
|
|
@@ -286,7 +274,6 @@ declare type ViewsState = {
|
|
|
286
274
|
companyMonthEndReportViewState: CompanyMonthEndReportViewState;
|
|
287
275
|
companyTaskManagerViewState: CompanyTaskManagerViewState;
|
|
288
276
|
companyViewState: CompanyViewState;
|
|
289
|
-
countryListState: CountryListState;
|
|
290
277
|
dashboardState: DashboardState;
|
|
291
278
|
depositAccountListState: DepositAccountListState;
|
|
292
279
|
depositAccountTransactionListState: DepositAccountTransactionListState;
|
|
@@ -294,11 +281,6 @@ declare type ViewsState = {
|
|
|
294
281
|
editRemiDetailViewState: EditRemiDetailViewState;
|
|
295
282
|
entityAutoCompleteState: EntityAutoCompleteState;
|
|
296
283
|
entityRecommendationState: EntityRecommendationState;
|
|
297
|
-
expenseAutomationFluxAnalysisViewState: ExpenseAutomationFluxAnalysisViewState;
|
|
298
|
-
expenseAutomationJESchedulesViewState: ExpenseAutomationJESchedulesViewState;
|
|
299
|
-
expenseAutomationMissingReceiptsViewState: ExpenseAutomationMissingReceiptsViewState;
|
|
300
|
-
expenseAutomationTransactionsViewState: ExpenseAutomationTransactionsViewState;
|
|
301
|
-
expenseAutomationViewState: ExpenseAutomationViewState;
|
|
302
284
|
fileViewState: FileViewState;
|
|
303
285
|
financeStatementState: FinanceStatementState;
|
|
304
286
|
forecastListState: ForecastListState;
|
|
@@ -306,11 +288,8 @@ declare type ViewsState = {
|
|
|
306
288
|
globalMerchantViewState: GlobalMerchantViewState;
|
|
307
289
|
insightsCardState: InsightsCardState;
|
|
308
290
|
internationalWireState: InternationalWireState;
|
|
309
|
-
issueChargeCardState: IssueChargeCardState;
|
|
310
|
-
internationalWireVerificationState: InternationalWireVerificationState;
|
|
311
291
|
magicLinkViewState: MagicLinkViewState;
|
|
312
292
|
merchantListState: MerchantListState;
|
|
313
|
-
monthEndCloseChecksViewState: MonthEndCloseChecksViewState;
|
|
314
293
|
netBurnOrIncomeClassesViewState: NetBurnOrIncomeClassesViewState;
|
|
315
294
|
netBurnOrIncomeState: NetBurnOrIncomeWithForecastState;
|
|
316
295
|
netBurnOrIncomeStoryCardState: NetBurnOrIncomeStoryCardState;
|
|
@@ -369,7 +348,6 @@ declare type ViewsState = {
|
|
|
369
348
|
vendorListState: VendorListState;
|
|
370
349
|
vendorsTabVendorViewState: VendorsTabVendorViewState;
|
|
371
350
|
vendorTabViewState: VendorTabViewState;
|
|
372
|
-
vendor1099TypeListState: Vendor1099TypeListState;
|
|
373
351
|
vendorTypeListState: VendorTypeListState;
|
|
374
352
|
vendorViewState: VendorViewState;
|
|
375
353
|
wiseRedirectState: WiseRedirectState;
|
|
@@ -421,7 +399,6 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
421
399
|
companyMonthEndReportViewState: CompanyMonthEndReportViewState;
|
|
422
400
|
companyTaskManagerViewState: CompanyTaskManagerViewState;
|
|
423
401
|
companyViewState: CompanyViewState;
|
|
424
|
-
countryListState: CountryListState;
|
|
425
402
|
dashboardState: DashboardState;
|
|
426
403
|
depositAccountListState: DepositAccountListState;
|
|
427
404
|
depositAccountTransactionListState: DepositAccountTransactionListState;
|
|
@@ -429,11 +406,6 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
429
406
|
editRemiDetailViewState: EditRemiDetailViewState;
|
|
430
407
|
entityAutoCompleteState: EntityAutoCompleteState;
|
|
431
408
|
entityRecommendationState: EntityRecommendationState;
|
|
432
|
-
expenseAutomationFluxAnalysisViewState: ExpenseAutomationFluxAnalysisViewState;
|
|
433
|
-
expenseAutomationJESchedulesViewState: ExpenseAutomationJESchedulesViewState;
|
|
434
|
-
expenseAutomationMissingReceiptsViewState: ExpenseAutomationMissingReceiptsViewState;
|
|
435
|
-
expenseAutomationTransactionsViewState: ExpenseAutomationTransactionsViewState;
|
|
436
|
-
expenseAutomationViewState: ExpenseAutomationViewState;
|
|
437
409
|
fileViewState: FileViewState;
|
|
438
410
|
financeStatementState: FinanceStatementState;
|
|
439
411
|
forecastListState: ForecastListState;
|
|
@@ -441,11 +413,8 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
441
413
|
globalMerchantViewState: GlobalMerchantViewState;
|
|
442
414
|
insightsCardState: InsightsCardState;
|
|
443
415
|
internationalWireState: InternationalWireState;
|
|
444
|
-
issueChargeCardState: IssueChargeCardState;
|
|
445
|
-
internationalWireVerificationState: InternationalWireVerificationState;
|
|
446
416
|
magicLinkViewState: MagicLinkViewState;
|
|
447
417
|
merchantListState: MerchantListState;
|
|
448
|
-
monthEndCloseChecksViewState: MonthEndCloseChecksViewState;
|
|
449
418
|
netBurnOrIncomeClassesViewState: NetBurnOrIncomeClassesViewState;
|
|
450
419
|
netBurnOrIncomeState: NetBurnOrIncomeWithForecastState;
|
|
451
420
|
netBurnOrIncomeStoryCardState: NetBurnOrIncomeStoryCardState;
|
|
@@ -505,7 +474,6 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
505
474
|
vendorFiling1099UploadDetailsState: VendorFiling1099UploadDetailsState;
|
|
506
475
|
vendorsTabVendorViewState: VendorsTabVendorViewState;
|
|
507
476
|
vendorTabViewState: import(".").FetchedState;
|
|
508
|
-
vendor1099TypeListState: Vendor1099TypeListState;
|
|
509
477
|
vendorTypeListState: VendorTypeListState;
|
|
510
478
|
vendorViewState: VendorViewState;
|
|
511
479
|
wiseRedirectState: WiseRedirectState;
|
|
@@ -543,8 +511,8 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
543
511
|
insightState: InsightState;
|
|
544
512
|
jeSchedulesState: JESchedulesState;
|
|
545
513
|
merchantState: MerchantState;
|
|
546
|
-
monthEndCloseChecksState: MonthEndCloseChecksState;
|
|
547
514
|
notificationState: NotificationState;
|
|
515
|
+
toastNotificationState: ToastNotificationState;
|
|
548
516
|
onboardingCustomerState: OnboardingCustomerState;
|
|
549
517
|
paymentInstrumentState: PaymentInstrumentState;
|
|
550
518
|
recurringBillState: RecurringBillState;
|
|
@@ -563,7 +531,6 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
563
531
|
taskState: TaskState;
|
|
564
532
|
taskSummaryState: TaskSummaryState;
|
|
565
533
|
tenantState: TenantState;
|
|
566
|
-
toastNotificationState: ToastNotificationState;
|
|
567
534
|
transactionState: TransactionState;
|
|
568
535
|
userRoleState: UserRoleState;
|
|
569
536
|
userState: UserState;
|
package/lib/reducer.js
CHANGED
|
@@ -30,13 +30,6 @@ exports.initialRootState = void 0;
|
|
|
30
30
|
const redux_1 = require("redux");
|
|
31
31
|
const tenantReducer_1 = __importStar(require("./entity/tenant/tenantReducer"));
|
|
32
32
|
const accountReducer_1 = __importStar(require("./entity/account/accountReducer"));
|
|
33
|
-
const monthEndCloseChecksReducer_1 = __importStar(require("./entity/monthEndCloseChecks/monthEndCloseChecksReducer"));
|
|
34
|
-
const monthEndCloseChecksViewReducer_1 = __importStar(require("./view/monthEndCloseChecksView/monthEndCloseChecksViewReducer"));
|
|
35
|
-
const expenseAutomationViewReducer_1 = __importStar(require("./view/expenseAutomationView/expenseAutomationViewReducer"));
|
|
36
|
-
const transactionsViewReducer_1 = __importStar(require("./view/expenseAutomationView/reducers/transactionsViewReducer"));
|
|
37
|
-
const missingReceiptsViewReducer_1 = __importStar(require("./view/expenseAutomationView/reducers/missingReceiptsViewReducer"));
|
|
38
|
-
const jeSchedulesViewReducer_1 = __importStar(require("./view/expenseAutomationView/reducers/jeSchedulesViewReducer"));
|
|
39
|
-
const fluxAnalysisViewReducer_1 = __importStar(require("./view/expenseAutomationView/reducers/fluxAnalysisViewReducer"));
|
|
40
33
|
const customerIncomeTrendReducer_1 = __importStar(require("./entity/customerIncome/customerIncomeTrendReducer"));
|
|
41
34
|
const vendorExpenseReducer_1 = __importStar(require("./entity/vendorExpense/vendorExpenseReducer"));
|
|
42
35
|
const entityReducer_1 = __importStar(require("./entity/genericEntity/entityReducer"));
|
|
@@ -86,7 +79,6 @@ const companyViewReducer_1 = __importStar(require("./view/companyView/companyVie
|
|
|
86
79
|
const accountingSummaryReducer_1 = __importStar(require("./entity/portfolio/accountingSummary/accountingSummaryReducer"));
|
|
87
80
|
const addressViewReducer_1 = __importStar(require("./view/addressView/addressViewReducer"));
|
|
88
81
|
const accountListReducer_1 = __importStar(require("./view/accountList/accountListReducer"));
|
|
89
|
-
const countryListReducer_1 = __importStar(require("./view/countryList/countryListReducer"));
|
|
90
82
|
const merchantListReducer_1 = __importStar(require("./view/spendManagement/merchantList/merchantListReducer"));
|
|
91
83
|
const classListReducer_1 = __importStar(require("./view/classList/classListReducer"));
|
|
92
84
|
const classReducer_1 = __importStar(require("./entity/class/classReducer"));
|
|
@@ -160,7 +152,6 @@ const realTimeApprovalReducer_1 = __importStar(require("./view/spendManagement/r
|
|
|
160
152
|
const transactionVendorViewReducer_1 = __importStar(require("./view/commonVendorView/transactionVendorView/transactionVendorViewReducer"));
|
|
161
153
|
const vendorsTabVendorViewReducer_1 = __importStar(require("./view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer"));
|
|
162
154
|
const vendorTypeListReducer_1 = __importStar(require("./view/vendorTypeList/vendorTypeListReducer"));
|
|
163
|
-
const vendor1099TypeListReducer_1 = __importStar(require("./view/vendor1099TypeList/vendor1099TypeListReducer"));
|
|
164
155
|
const currencyReducer_1 = __importStar(require("./entity/currency/currencyReducer"));
|
|
165
156
|
const zeniAccStatementListReducer_1 = __importStar(require("./view/zeniAccStatementList/zeniAccStatementListReducer"));
|
|
166
157
|
const chargeCardStatementListReducer_1 = __importStar(require("./view/spendManagement/chargeCards/chargeCardStatementList/chargeCardStatementListReducer"));
|
|
@@ -215,8 +206,6 @@ const billsBulkActionViewReducer_1 = __importStar(require("./view/spendManagemen
|
|
|
215
206
|
const remisBulkActionViewReducer_1 = __importStar(require("./view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewReducer"));
|
|
216
207
|
const vendorFiling1099ListReducer_1 = __importStar(require("./view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListReducer"));
|
|
217
208
|
const vendorFiling1099UploadDetailsReducer_1 = __importStar(require("./view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsReducer"));
|
|
218
|
-
const internationalWireVerificationReducer_1 = __importStar(require("./view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer"));
|
|
219
|
-
const issueChargeCardReducer_1 = __importStar(require("./view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer"));
|
|
220
209
|
// Note: Please maintain strict alphabetical order
|
|
221
210
|
const initialEntitiesState = {
|
|
222
211
|
accountGroupState: accountGroupReducer_1.initialState,
|
|
@@ -247,7 +236,6 @@ const initialEntitiesState = {
|
|
|
247
236
|
insightState: insightReducer_1.initialState,
|
|
248
237
|
jeSchedulesState: jeSchedulesReducer_1.initialState,
|
|
249
238
|
merchantState: merchantReducer_1.initialState,
|
|
250
|
-
monthEndCloseChecksState: monthEndCloseChecksReducer_1.initialState,
|
|
251
239
|
notificationState: notificationReducer_1.initialState,
|
|
252
240
|
onboardingCustomerState: onboardingCustomerReducer_1.initialState,
|
|
253
241
|
paymentAccountState: paymentAccountReducer_1.initialState,
|
|
@@ -319,7 +307,6 @@ const initialViewsState = {
|
|
|
319
307
|
companyMonthEndReportViewState: companyMonthEndReportViewReducer_1.initialState,
|
|
320
308
|
companyTaskManagerViewState: companyTaskManagerViewReducer_1.initialState,
|
|
321
309
|
companyViewState: companyViewReducer_1.initialState,
|
|
322
|
-
countryListState: countryListReducer_1.initialState,
|
|
323
310
|
dashboardState: dashboardReducer_1.initialState,
|
|
324
311
|
depositAccountListState: depositAccountListReducer_1.initialState,
|
|
325
312
|
depositAccountTransactionListState: depositAccountTransactionListReducer_1.initialState,
|
|
@@ -327,11 +314,6 @@ const initialViewsState = {
|
|
|
327
314
|
editRemiDetailViewState: editRemiViewReducer_1.initialState,
|
|
328
315
|
entityAutoCompleteState: entityAutoCompleteReducer_1.initialState,
|
|
329
316
|
entityRecommendationState: recommendationReducer_1.initialState,
|
|
330
|
-
expenseAutomationFluxAnalysisViewState: fluxAnalysisViewReducer_1.initialState,
|
|
331
|
-
expenseAutomationJESchedulesViewState: jeSchedulesViewReducer_1.initialState,
|
|
332
|
-
expenseAutomationMissingReceiptsViewState: missingReceiptsViewReducer_1.initialState,
|
|
333
|
-
expenseAutomationTransactionsViewState: transactionsViewReducer_1.initialState,
|
|
334
|
-
expenseAutomationViewState: expenseAutomationViewReducer_1.initialState,
|
|
335
317
|
fileViewState: fileViewState_1.initialFileViewState,
|
|
336
318
|
financeStatementState: financeStatementReducer_1.initialFinanceStatementState,
|
|
337
319
|
forecastListState: forecastListReducer_1.initialState,
|
|
@@ -339,11 +321,8 @@ const initialViewsState = {
|
|
|
339
321
|
globalMerchantViewState: globalMerchantViewReducer_1.initialState,
|
|
340
322
|
insightsCardState: insightsCardReducer_1.initialState,
|
|
341
323
|
internationalWireState: internationalWireReducer_1.initialState,
|
|
342
|
-
issueChargeCardState: issueChargeCardReducer_1.initialState,
|
|
343
|
-
internationalWireVerificationState: internationalWireVerificationReducer_1.initialState,
|
|
344
324
|
magicLinkViewState: magicLinkViewReducer_1.initialState,
|
|
345
325
|
merchantListState: merchantListReducer_1.initialState,
|
|
346
|
-
monthEndCloseChecksViewState: monthEndCloseChecksViewReducer_1.initialState,
|
|
347
326
|
netBurnOrIncomeClassesViewState: netBurnOrIncomeClassesViewReducer_1.initialState,
|
|
348
327
|
netBurnOrIncomeState: netBurnOrIncomeReducer_1.initialState,
|
|
349
328
|
netBurnOrIncomeStoryCardState: netBurnOrIncomeStoryCardReducer_1.initialState,
|
|
@@ -403,7 +382,6 @@ const initialViewsState = {
|
|
|
403
382
|
vendorsTabVendorViewState: vendorsTabVendorViewReducer_1.initialState,
|
|
404
383
|
vendorTabViewState: vendorTabViewReducer_1.initialState,
|
|
405
384
|
vendorTypeListState: vendorTypeListReducer_1.initialState,
|
|
406
|
-
vendor1099TypeListState: vendor1099TypeListReducer_1.initialState,
|
|
407
385
|
vendorViewState: vendorViewReducer_1.initialState,
|
|
408
386
|
wiseRedirectState: wiseRedirectReducer_1.initialState,
|
|
409
387
|
zeniAccountDetailState: depositAccountDetailReducer_1.initialState,
|
|
@@ -444,8 +422,8 @@ const entityReducers = {
|
|
|
444
422
|
insightState: insightReducer_1.default,
|
|
445
423
|
jeSchedulesState: jeSchedulesReducer_1.default,
|
|
446
424
|
merchantState: merchantReducer_1.default,
|
|
447
|
-
monthEndCloseChecksState: monthEndCloseChecksReducer_1.default,
|
|
448
425
|
notificationState: notificationReducer_1.default,
|
|
426
|
+
toastNotificationState: toastNotificationReducer_1.default,
|
|
449
427
|
onboardingCustomerState: onboardingCustomerReducer_1.default,
|
|
450
428
|
paymentAccountState: paymentAccountReducer_1.default,
|
|
451
429
|
paymentInstrumentState: paymentInstrumentReducer_1.default,
|
|
@@ -466,7 +444,6 @@ const entityReducers = {
|
|
|
466
444
|
taskState: taskReducer_1.default,
|
|
467
445
|
taskSummaryState: taskSummaryReducer_1.default,
|
|
468
446
|
tenantState: tenantReducer_1.default,
|
|
469
|
-
toastNotificationState: toastNotificationReducer_1.default,
|
|
470
447
|
transactionState: transactionReducer_1.default,
|
|
471
448
|
userRoleState: userRoleReducer_1.default,
|
|
472
449
|
userState: userReducer_1.default,
|
|
@@ -515,7 +492,6 @@ const viewReducers = {
|
|
|
515
492
|
companyMonthEndReportViewState: companyMonthEndReportViewReducer_1.default,
|
|
516
493
|
companyTaskManagerViewState: companyTaskManagerViewReducer_1.default,
|
|
517
494
|
companyViewState: companyViewReducer_1.default,
|
|
518
|
-
countryListState: countryListReducer_1.default,
|
|
519
495
|
dashboardState: dashboardReducer_1.default,
|
|
520
496
|
depositAccountListState: depositAccountListReducer_1.default,
|
|
521
497
|
depositAccountTransactionListState: depositAccountTransactionListReducer_1.default,
|
|
@@ -523,11 +499,6 @@ const viewReducers = {
|
|
|
523
499
|
editRemiDetailViewState: editRemiViewReducer_1.default,
|
|
524
500
|
entityAutoCompleteState: entityAutoCompleteReducer_1.default,
|
|
525
501
|
entityRecommendationState: recommendationReducer_1.default,
|
|
526
|
-
expenseAutomationFluxAnalysisViewState: fluxAnalysisViewReducer_1.default,
|
|
527
|
-
expenseAutomationJESchedulesViewState: jeSchedulesViewReducer_1.default,
|
|
528
|
-
expenseAutomationMissingReceiptsViewState: missingReceiptsViewReducer_1.default,
|
|
529
|
-
expenseAutomationTransactionsViewState: transactionsViewReducer_1.default,
|
|
530
|
-
expenseAutomationViewState: expenseAutomationViewReducer_1.default,
|
|
531
502
|
fileViewState: fileViewReducer_1.default,
|
|
532
503
|
financeStatementState: financeStatementReducer_1.default,
|
|
533
504
|
forecastListState: forecastListReducer_1.default,
|
|
@@ -535,11 +506,8 @@ const viewReducers = {
|
|
|
535
506
|
globalMerchantViewState: globalMerchantViewReducer_1.default,
|
|
536
507
|
insightsCardState: insightsCardReducer_1.default,
|
|
537
508
|
internationalWireState: internationalWireReducer_1.default,
|
|
538
|
-
issueChargeCardState: issueChargeCardReducer_1.default,
|
|
539
|
-
internationalWireVerificationState: internationalWireVerificationReducer_1.default,
|
|
540
509
|
magicLinkViewState: magicLinkViewReducer_1.default,
|
|
541
510
|
merchantListState: merchantListReducer_1.default,
|
|
542
|
-
monthEndCloseChecksViewState: monthEndCloseChecksViewReducer_1.default,
|
|
543
511
|
netBurnOrIncomeClassesViewState: netBurnOrIncomeClassesViewReducer_1.default,
|
|
544
512
|
netBurnOrIncomeState: netBurnOrIncomeReducer_1.default,
|
|
545
513
|
netBurnOrIncomeStoryCardState: netBurnOrIncomeStoryCardReducer_1.default,
|
|
@@ -599,7 +567,6 @@ const viewReducers = {
|
|
|
599
567
|
vendorFiling1099UploadDetailsState: vendorFiling1099UploadDetailsReducer_1.default,
|
|
600
568
|
vendorsTabVendorViewState: vendorsTabVendorViewReducer_1.default,
|
|
601
569
|
vendorTabViewState: vendorTabViewReducer_1.default,
|
|
602
|
-
vendor1099TypeListState: vendor1099TypeListReducer_1.default,
|
|
603
570
|
vendorTypeListState: vendorTypeListReducer_1.default,
|
|
604
571
|
vendorViewState: vendorViewReducer_1.default,
|
|
605
572
|
wiseRedirectState: wiseRedirectReducer_1.default,
|
|
@@ -1,99 +1,90 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
3
|
exports.toSaveAccountMappingPayload = void 0;
|
|
15
4
|
const toSaveAccountMappingPayload = (accountingLocalData) => {
|
|
16
5
|
const accounts = [];
|
|
6
|
+
const initialTax1099Config = {
|
|
7
|
+
is_bank_account: false,
|
|
8
|
+
is_expense_account: false,
|
|
9
|
+
expense_type: null,
|
|
10
|
+
type_1099: null,
|
|
11
|
+
box_type: null,
|
|
12
|
+
};
|
|
17
13
|
const findAndUpdateAccount = (accountId, label, tax1099Config) => {
|
|
18
14
|
const existingAccount = accounts.find((account) => account.account_id === accountId);
|
|
19
15
|
if (existingAccount) {
|
|
20
16
|
// Add label if not already present
|
|
21
|
-
if (label
|
|
17
|
+
if (label != '' &&
|
|
22
18
|
existingAccount.labels &&
|
|
23
19
|
!existingAccount.labels.includes(label)) {
|
|
24
20
|
existingAccount.labels.push(label);
|
|
25
21
|
}
|
|
26
22
|
// Merge tax_1099_config fields, updating them if new values are non-null
|
|
27
23
|
if (tax1099Config != null) {
|
|
28
|
-
|
|
29
|
-
existingAccount.tax_1099_config = Object.assign(Object.assign(Object.assign({}, existingAccount.tax_1099_config), restOfTax1099Config), { is_bank_account: existingAccount.tax_1099_config
|
|
30
|
-
? existingAccount.tax_1099_config.is_bank_account
|
|
31
|
-
: is_bank_account });
|
|
24
|
+
existingAccount.tax_1099_config = Object.assign(Object.assign({}, existingAccount.tax_1099_config), tax1099Config);
|
|
32
25
|
}
|
|
33
26
|
}
|
|
34
27
|
else {
|
|
35
28
|
// Add a new account if it doesn't exist
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
});
|
|
42
|
-
}
|
|
29
|
+
accounts.push({
|
|
30
|
+
account_id: accountId,
|
|
31
|
+
labels: label.length === 0 ? [] : [label],
|
|
32
|
+
tax_1099_config: tax1099Config,
|
|
33
|
+
});
|
|
43
34
|
}
|
|
44
35
|
};
|
|
45
36
|
if (accountingLocalData.selectedIncomeAccountId != null) {
|
|
46
|
-
findAndUpdateAccount(accountingLocalData.selectedIncomeAccountId, 'uncategorized_income'
|
|
37
|
+
findAndUpdateAccount(accountingLocalData.selectedIncomeAccountId, 'uncategorized_income');
|
|
47
38
|
}
|
|
48
39
|
else if (accountingLocalData.previousIncomeAccount) {
|
|
49
|
-
findAndUpdateAccount(accountingLocalData.previousIncomeAccount.accountId, ''
|
|
40
|
+
findAndUpdateAccount(accountingLocalData.previousIncomeAccount.accountId, '');
|
|
50
41
|
}
|
|
51
42
|
if (accountingLocalData.selectedExpenseAccountId != null) {
|
|
52
|
-
findAndUpdateAccount(accountingLocalData.selectedExpenseAccountId, 'uncategorized_expense'
|
|
43
|
+
findAndUpdateAccount(accountingLocalData.selectedExpenseAccountId, 'uncategorized_expense');
|
|
53
44
|
}
|
|
54
45
|
else if (accountingLocalData.previousExpenseAccount) {
|
|
55
|
-
findAndUpdateAccount(accountingLocalData.previousExpenseAccount.accountId, ''
|
|
46
|
+
findAndUpdateAccount(accountingLocalData.previousExpenseAccount.accountId, '');
|
|
56
47
|
}
|
|
57
48
|
if (accountingLocalData.selectedBillPayAccountId != null) {
|
|
58
|
-
findAndUpdateAccount(accountingLocalData.selectedBillPayAccountId, 'bank_charges_and_fees'
|
|
49
|
+
findAndUpdateAccount(accountingLocalData.selectedBillPayAccountId, 'bank_charges_and_fees');
|
|
59
50
|
}
|
|
60
51
|
else if (accountingLocalData.previousBillPayAccount) {
|
|
61
|
-
findAndUpdateAccount(accountingLocalData.previousBillPayAccount.accountId, ''
|
|
52
|
+
findAndUpdateAccount(accountingLocalData.previousBillPayAccount.accountId, '');
|
|
62
53
|
}
|
|
63
54
|
if (accountingLocalData.selectedReimbursementsAccountId != null) {
|
|
64
|
-
findAndUpdateAccount(accountingLocalData.selectedReimbursementsAccountId, 'travel_transportation'
|
|
55
|
+
findAndUpdateAccount(accountingLocalData.selectedReimbursementsAccountId, 'travel_transportation');
|
|
65
56
|
}
|
|
66
57
|
else if (accountingLocalData.previousReimbursementsAccount) {
|
|
67
|
-
findAndUpdateAccount(accountingLocalData.previousReimbursementsAccount.accountId, ''
|
|
58
|
+
findAndUpdateAccount(accountingLocalData.previousReimbursementsAccount.accountId, '');
|
|
68
59
|
}
|
|
69
60
|
if (accountingLocalData.selectedPrepaidExpensesAccountIds.length > 0) {
|
|
70
61
|
accountingLocalData.selectedPrepaidExpensesAccountIds.forEach((accountId) => {
|
|
71
|
-
findAndUpdateAccount(accountId, 'prepaid_expenses'
|
|
62
|
+
findAndUpdateAccount(accountId, 'prepaid_expenses');
|
|
72
63
|
});
|
|
73
64
|
}
|
|
74
65
|
else if (accountingLocalData.previousPrepaidExpensesAccount.length > 0) {
|
|
75
66
|
accountingLocalData.previousPrepaidExpensesAccount.forEach((account) => {
|
|
76
|
-
findAndUpdateAccount(account.accountId, ''
|
|
67
|
+
findAndUpdateAccount(account.accountId, '');
|
|
77
68
|
});
|
|
78
69
|
}
|
|
79
70
|
if (accountingLocalData.selectedFixedAssetsAccountIds.length > 0) {
|
|
80
71
|
accountingLocalData.selectedFixedAssetsAccountIds.forEach((accountId) => {
|
|
81
|
-
findAndUpdateAccount(accountId, 'fixed_assets'
|
|
72
|
+
findAndUpdateAccount(accountId, 'fixed_assets');
|
|
82
73
|
});
|
|
83
74
|
}
|
|
84
75
|
else if (accountingLocalData.previousFixedAssetsAccount.length > 0) {
|
|
85
76
|
accountingLocalData.previousFixedAssetsAccount.forEach((account) => {
|
|
86
|
-
findAndUpdateAccount(account.accountId, ''
|
|
77
|
+
findAndUpdateAccount(account.accountId, '');
|
|
87
78
|
});
|
|
88
79
|
}
|
|
89
80
|
if (accountingLocalData.selectedAccruedExpensesAccountIds.length > 0) {
|
|
90
81
|
accountingLocalData.selectedAccruedExpensesAccountIds.forEach((accountId) => {
|
|
91
|
-
findAndUpdateAccount(accountId, 'accrued_expenses'
|
|
82
|
+
findAndUpdateAccount(accountId, 'accrued_expenses');
|
|
92
83
|
});
|
|
93
84
|
}
|
|
94
85
|
else if (accountingLocalData.previousAccruedExpensesAccount.length > 0) {
|
|
95
86
|
accountingLocalData.previousAccruedExpensesAccount.forEach((account) => {
|
|
96
|
-
findAndUpdateAccount(account.accountId, ''
|
|
87
|
+
findAndUpdateAccount(account.accountId, '');
|
|
97
88
|
});
|
|
98
89
|
}
|
|
99
90
|
if (accountingLocalData.selectedBankAccounts1099FilingAccountIds.length > 0) {
|
|
@@ -106,60 +97,26 @@ const toSaveAccountMappingPayload = (accountingLocalData) => {
|
|
|
106
97
|
box_type: null,
|
|
107
98
|
});
|
|
108
99
|
});
|
|
109
|
-
const missingAccountIds = accountingLocalData.previousBankAccounts1099FilingAccount
|
|
110
|
-
.filter((account) => !accountingLocalData.selectedBankAccounts1099FilingAccountIds.includes(account.accountId))
|
|
111
|
-
.map((account) => account.accountId);
|
|
112
|
-
missingAccountIds.forEach((accountId) => {
|
|
113
|
-
findAndUpdateAccount(accountId, '', null);
|
|
114
|
-
});
|
|
115
100
|
}
|
|
116
101
|
else if (accountingLocalData.previousBankAccounts1099FilingAccount.length > 0) {
|
|
117
102
|
accountingLocalData.previousBankAccounts1099FilingAccount.forEach((account) => {
|
|
118
|
-
findAndUpdateAccount(account.accountId, '',
|
|
103
|
+
findAndUpdateAccount(account.accountId, '', initialTax1099Config);
|
|
119
104
|
});
|
|
120
105
|
}
|
|
121
|
-
if (accountingLocalData.selectedExpenseAccounts1099FilingAccountIds.length >
|
|
106
|
+
if (accountingLocalData.selectedExpenseAccounts1099FilingAccountIds.length > 0) {
|
|
122
107
|
accountingLocalData.selectedExpenseAccounts1099FilingAccountIds.forEach((account) => {
|
|
123
108
|
findAndUpdateAccount(account.accountId, '', {
|
|
124
|
-
is_bank_account:
|
|
109
|
+
is_bank_account: false,
|
|
125
110
|
is_expense_account: true,
|
|
126
111
|
expense_type: account.expenseType,
|
|
127
112
|
type_1099: account.type1099,
|
|
128
113
|
box_type: account.boxType,
|
|
129
114
|
});
|
|
130
115
|
});
|
|
131
|
-
const selectedAccountIds = accountingLocalData.selectedExpenseAccounts1099FilingAccountIds.map((item) => item.accountId);
|
|
132
|
-
const missingAccountIds = accountingLocalData.previousExpenseAccounts1099FilingAccount
|
|
133
|
-
.filter((item) => !selectedAccountIds.includes(item.accountId))
|
|
134
|
-
.map((item) => item.accountId);
|
|
135
|
-
missingAccountIds.forEach((accountId) => {
|
|
136
|
-
findAndUpdateAccount(accountId, '', null);
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
else if (accountingLocalData.selectedExpenseAccounts1099FilingAccountIds.length ===
|
|
140
|
-
1 &&
|
|
141
|
-
accountingLocalData.selectedExpenseAccounts1099FilingAccountIds[0]
|
|
142
|
-
.accountId !== '') {
|
|
143
|
-
accountingLocalData.selectedExpenseAccounts1099FilingAccountIds.forEach((account) => {
|
|
144
|
-
findAndUpdateAccount(account.accountId, '', {
|
|
145
|
-
is_bank_account: accountingLocalData.selectedBankAccounts1099FilingAccountIds.includes(account.accountId),
|
|
146
|
-
is_expense_account: true,
|
|
147
|
-
expense_type: account.expenseType,
|
|
148
|
-
type_1099: account.type1099,
|
|
149
|
-
box_type: account.boxType,
|
|
150
|
-
});
|
|
151
|
-
});
|
|
152
|
-
const selectedAccountIds = accountingLocalData.selectedExpenseAccounts1099FilingAccountIds.map((item) => item.accountId);
|
|
153
|
-
const missingAccountIds = accountingLocalData.previousExpenseAccounts1099FilingAccount
|
|
154
|
-
.filter((item) => !selectedAccountIds.includes(item.accountId))
|
|
155
|
-
.map((item) => item.accountId);
|
|
156
|
-
missingAccountIds.forEach((accountId) => {
|
|
157
|
-
findAndUpdateAccount(accountId, '', null);
|
|
158
|
-
});
|
|
159
116
|
}
|
|
160
117
|
else if (accountingLocalData.previousExpenseAccounts1099FilingAccount.length > 0) {
|
|
161
118
|
accountingLocalData.previousExpenseAccounts1099FilingAccount.forEach((account) => {
|
|
162
|
-
findAndUpdateAccount(account.accountId, '',
|
|
119
|
+
findAndUpdateAccount(account.accountId, '', initialTax1099Config);
|
|
163
120
|
});
|
|
164
121
|
}
|
|
165
122
|
return accounts;
|
|
@@ -181,7 +181,7 @@ const doUpdateAccountListForAccountTypes = (draft, accountPayloadList) => {
|
|
|
181
181
|
else if (account.account_type === 'bank') {
|
|
182
182
|
bankAccounts1099FilingList.push(account); // list for bank accounts for Filing 1099
|
|
183
183
|
}
|
|
184
|
-
expenseAccounts1099FilingList.push(account); // list for
|
|
184
|
+
expenseAccounts1099FilingList.push(account); // list for gl accounts
|
|
185
185
|
});
|
|
186
186
|
draft.incomeAccountIdList = incomeList.map((account) => account.account_id);
|
|
187
187
|
draft.expenseAccountIdList = expenseList.map((account) => account.account_id);
|
|
@@ -259,41 +259,15 @@ const doUpdateAccountListForAccountTypes = (draft, accountPayloadList) => {
|
|
|
259
259
|
const expenseAccounts1099FilingAccountMetadata = expenseAccounts1099FilingList.map((acc) => (0, accountPayload_1.mapAccountMetadataPayloadToAccountMetadata)(acc));
|
|
260
260
|
const expenseAccounts1099FilingAccountBase = expenseAccounts1099FilingList.map((acc) => (0, accountPayload_1.mapAccountBasePayloadToAccountBase)(acc));
|
|
261
261
|
const expenseAccounts1099FilingAccountsIdentified = expenseAccounts1099FilingAccountBase.filter((account) => { var _a; return (_a = account.tax1099Config) === null || _a === void 0 ? void 0 : _a.isExpenseAccount; });
|
|
262
|
-
draft.data = Object.assign(Object.assign({}, draft.data), { selectedExpenseAccounts1099FilingAccountIds: expenseAccounts1099FilingAccountsIdentified.
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
})
|
|
272
|
-
: [
|
|
273
|
-
{
|
|
274
|
-
accountId: '',
|
|
275
|
-
expenseType: '',
|
|
276
|
-
type1099: '',
|
|
277
|
-
boxType: '',
|
|
278
|
-
},
|
|
279
|
-
], previousExpenseAccounts1099FilingAccount: expenseAccounts1099FilingAccountsIdentified.length > 0
|
|
280
|
-
? expenseAccounts1099FilingAccountsIdentified.map((account) => {
|
|
281
|
-
var _a, _b, _c, _d, _e, _f;
|
|
282
|
-
return ({
|
|
283
|
-
accountId: account.accountId,
|
|
284
|
-
expenseType: (_b = (_a = account.tax1099Config) === null || _a === void 0 ? void 0 : _a.expenseType1099) !== null && _b !== void 0 ? _b : '',
|
|
285
|
-
type1099: (_d = (_c = account.tax1099Config) === null || _c === void 0 ? void 0 : _c.type1099) !== null && _d !== void 0 ? _d : '',
|
|
286
|
-
boxType: (_f = (_e = account.tax1099Config) === null || _e === void 0 ? void 0 : _e.boxType) !== null && _f !== void 0 ? _f : '',
|
|
287
|
-
});
|
|
288
|
-
})
|
|
289
|
-
: [
|
|
290
|
-
{
|
|
291
|
-
accountId: '',
|
|
292
|
-
expenseType: '',
|
|
293
|
-
type1099: '',
|
|
294
|
-
boxType: '',
|
|
295
|
-
},
|
|
296
|
-
] });
|
|
262
|
+
draft.data = Object.assign(Object.assign({}, draft.data), { selectedExpenseAccounts1099FilingAccountIds: expenseAccounts1099FilingAccountsIdentified.map((account) => {
|
|
263
|
+
var _a, _b, _c, _d, _e, _f;
|
|
264
|
+
return ({
|
|
265
|
+
accountId: account.accountId,
|
|
266
|
+
expenseType: (_b = (_a = account.tax1099Config) === null || _a === void 0 ? void 0 : _a.expenseType1099) !== null && _b !== void 0 ? _b : '',
|
|
267
|
+
type1099: (_d = (_c = account.tax1099Config) === null || _c === void 0 ? void 0 : _c.type1099) !== null && _d !== void 0 ? _d : '',
|
|
268
|
+
boxType: (_f = (_e = account.tax1099Config) === null || _e === void 0 ? void 0 : _e.boxType) !== null && _f !== void 0 ? _f : '',
|
|
269
|
+
});
|
|
270
|
+
}), previousExpenseAccounts1099FilingAccount: expenseAccounts1099FilingAccountsIdentified });
|
|
297
271
|
draft.expenseAccounts1099FilingNestedAccountListHierarchy =
|
|
298
272
|
(0, getNestedAccountIDHierarchyForReport_1.geNestedAccountIDHierarchyForReport)(expenseAccounts1099FilingAccountMetadata);
|
|
299
273
|
/* 1099 Mapping Section End */
|
|
@@ -24,7 +24,7 @@ export interface AccountMappingLocalData {
|
|
|
24
24
|
previousFixedAssetsAccount: AccountBase[];
|
|
25
25
|
previousAccruedExpensesAccount: AccountBase[];
|
|
26
26
|
previousBankAccounts1099FilingAccount: AccountBase[];
|
|
27
|
-
previousExpenseAccounts1099FilingAccount:
|
|
27
|
+
previousExpenseAccounts1099FilingAccount: AccountBase[];
|
|
28
28
|
}
|
|
29
29
|
export interface ExpenseCategory1099Filing {
|
|
30
30
|
accountId: ID;
|
|
@@ -5,8 +5,6 @@ import { AccountBase } from '../../entity/account/accountState';
|
|
|
5
5
|
import { RootState } from '../../reducer';
|
|
6
6
|
import { AccountMappingLocalData } from './accountMappingState';
|
|
7
7
|
import { FetchStateAndError } from '../../commonStateTypes/common';
|
|
8
|
-
import { Expense1099Type } from '../vendor1099TypeList/vendor1099TypeListPayload';
|
|
9
|
-
import { VendorType } from '../vendorTypeList/vendorTypeListPayload';
|
|
10
8
|
export interface AccountMappingView extends SelectorView {
|
|
11
9
|
incomeAccountList: AccountBase[];
|
|
12
10
|
expenseAccountList: AccountBase[];
|
|
@@ -17,9 +15,6 @@ export interface AccountMappingView extends SelectorView {
|
|
|
17
15
|
accruedExpensesAccountList: AccountBase[];
|
|
18
16
|
bankAccounts1099FilingAccountList: AccountBase[];
|
|
19
17
|
expenseAccounts1099FilingAccountList: AccountBase[];
|
|
20
|
-
expenseTypeList: VendorType[];
|
|
21
|
-
expense1099TypeList: VendorType[];
|
|
22
|
-
boxTypesList: Expense1099Type;
|
|
23
18
|
incomeRecommendation?: Recommendation;
|
|
24
19
|
expenseRecommendation?: Recommendation;
|
|
25
20
|
billPayRecommendation?: Recommendation;
|
|
@@ -4,7 +4,7 @@ exports.getAccountMappingView = void 0;
|
|
|
4
4
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
5
5
|
const accountSelector_1 = require("../../entity/account/accountSelector");
|
|
6
6
|
const reduceFetchState_1 = require("../../commonStateTypes/reduceFetchState");
|
|
7
|
-
exports.getAccountMappingView = (0, toolkit_1.createSelector)((state) => state.accountMappingState, (state) => state.accountState, (state) => state.tasksCardState, (
|
|
7
|
+
exports.getAccountMappingView = (0, toolkit_1.createSelector)((state) => state.accountMappingState, (state) => state.accountState, (state) => state.tasksCardState, (accountMappingState, accountState, tasksCardState) => {
|
|
8
8
|
const incomeAccountList = [];
|
|
9
9
|
accountMappingState.incomeAccountIdList.forEach((accountId) => {
|
|
10
10
|
const account = (0, accountSelector_1.getAccountBase)(accountState, accountId, 'account_list_by_type');
|
|
@@ -68,16 +68,9 @@ exports.getAccountMappingView = (0, toolkit_1.createSelector)((state) => state.a
|
|
|
68
68
|
expenseAccounts1099FilingAccountList.push(account);
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
|
-
const expenseTypeList = vendor1099TypeListState.expenseTypes;
|
|
72
|
-
const expense1099TypeList = vendor1099TypeListState.expense1099Types;
|
|
73
|
-
const boxTypesList = vendor1099TypeListState.boxTypes;
|
|
74
71
|
const fetchState = (0, reduceFetchState_1.reduceAllFetchState)([
|
|
75
72
|
accountMappingState.accountListFetchState,
|
|
76
73
|
accountMappingState.recommendationFetchState,
|
|
77
|
-
{
|
|
78
|
-
fetchState: vendor1099TypeListState.fetchState,
|
|
79
|
-
error: vendor1099TypeListState.error,
|
|
80
|
-
},
|
|
81
74
|
]);
|
|
82
75
|
const saveState = getSaveState(accountMappingState.updateFetchState, tasksCardState);
|
|
83
76
|
return {
|
|
@@ -90,9 +83,6 @@ exports.getAccountMappingView = (0, toolkit_1.createSelector)((state) => state.a
|
|
|
90
83
|
accruedExpensesAccountList,
|
|
91
84
|
bankAccounts1099FilingAccountList,
|
|
92
85
|
expenseAccounts1099FilingAccountList,
|
|
93
|
-
expenseTypeList,
|
|
94
|
-
expense1099TypeList,
|
|
95
|
-
boxTypesList,
|
|
96
86
|
incomeRecommendation: accountMappingState.incomeRecommendations.length > 0
|
|
97
87
|
? accountMappingState.incomeRecommendations[0]
|
|
98
88
|
: undefined,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ActionsObservable } from 'redux-observable';
|
|
2
2
|
import { fetchAccountListForAccountTypes, fetchRecommendationForAccountMapping } from './accountMappingReducer';
|
|
3
|
-
|
|
4
|
-
export declare type ActionType = ReturnType<typeof fetchAccountListForAccountTypes> | ReturnType<typeof fetchRecommendationForAccountMapping> | ReturnType<typeof fetchVendor1099TypeList>;
|
|
3
|
+
export declare type ActionType = ReturnType<typeof fetchAccountListForAccountTypes> | ReturnType<typeof fetchRecommendationForAccountMapping>;
|
|
5
4
|
export declare const initializeAccountMappingViewEpic: (actions$: ActionsObservable<ActionType>) => import("rxjs").Observable<{
|
|
6
5
|
payload: undefined;
|
|
7
6
|
type: string;
|
|
@@ -4,12 +4,10 @@ exports.initializeAccountMappingViewEpic = void 0;
|
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
6
|
const accountMappingReducer_1 = require("./accountMappingReducer");
|
|
7
|
-
const vendor1099TypeListReducer_1 = require("../vendor1099TypeList/vendor1099TypeListReducer");
|
|
8
7
|
const initializeAccountMappingViewEpic = (actions$) => actions$.pipe((0, operators_1.filter)(accountMappingReducer_1.initializeAccountMappingView.match), (0, operators_1.mergeMap)(() => {
|
|
9
8
|
const fetchActions = [];
|
|
10
9
|
fetchActions.push((0, accountMappingReducer_1.fetchAccountListForAccountTypes)());
|
|
11
10
|
fetchActions.push((0, accountMappingReducer_1.fetchRecommendationForAccountMapping)());
|
|
12
|
-
fetchActions.push((0, vendor1099TypeListReducer_1.fetchVendor1099TypeList)());
|
|
13
11
|
return (0, rxjs_1.from)(fetchActions);
|
|
14
12
|
}));
|
|
15
13
|
exports.initializeAccountMappingViewEpic = initializeAccountMappingViewEpic;
|