@zeniai/client-epic-state 4.9.30 → 4.9.31
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/v2/getSumOfBalancesGroupedByPeriod.d.ts +8 -0
- package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.js +84 -0
- package/lib/commonStateTypes/bookCloseDateHelper.d.ts +8 -0
- package/lib/commonStateTypes/bookCloseDateHelper.js +48 -0
- package/lib/commonStateTypes/coaBalance/classBalances/getDifferenceOfBalancesGroupedByPeriod.d.ts +8 -0
- package/lib/commonStateTypes/coaBalance/classBalances/getDifferenceOfBalancesGroupedByPeriod.js +62 -0
- package/lib/commonStateTypes/currencyHelper.d.ts +1 -0
- package/lib/commonStateTypes/currencyHelper.js +7 -0
- package/lib/commonStateTypes/fileType.d.ts +3 -0
- package/lib/commonStateTypes/fileType.js +7 -0
- package/lib/commonStateTypes/fiscalYearHelpers/getActualPeriod.d.ts +4 -0
- package/lib/commonStateTypes/fiscalYearHelpers/getActualPeriod.js +38 -0
- package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSection.d.ts +2 -0
- package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSection.js +13 -0
- package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.d.ts +2 -0
- package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.js +11 -0
- package/lib/commonStateTypes/viewAndReport/reportIDHelper.d.ts +8 -0
- package/lib/commonStateTypes/viewAndReport/reportIDHelper.js +43 -0
- package/lib/configureStore.d.ts +9 -0
- package/lib/configureStore.js +24 -0
- package/lib/entity/accountGroup/pickAndMergeForecastAcGroupReport.d.ts +3 -0
- package/lib/entity/accountGroup/pickAndMergeForecastAcGroupReport.js +85 -0
- package/lib/entity/chargeCard/chargeCardSelector.d.ts +4 -0
- package/lib/entity/chargeCard/chargeCardSelector.js +18 -0
- package/lib/entity/chargeCardTransaction/chargeCardTransactionSelector.d.ts +4 -0
- package/lib/entity/chargeCardTransaction/chargeCardTransactionSelector.js +18 -0
- package/lib/entity/company/companyHelper.d.ts +5 -0
- package/lib/entity/company/companyHelper.js +26 -0
- package/lib/entity/companyHealthMetric/companyHealthMetricSelector.d.ts +4 -0
- package/lib/entity/companyHealthMetric/companyHealthMetricSelector.js +18 -0
- package/lib/entity/customer/customerSelector.d.ts +4 -0
- package/lib/entity/customer/customerSelector.js +15 -0
- package/lib/entity/depositAccountTransaction/depositAccountTransactionSelector.d.ts +4 -0
- package/lib/entity/depositAccountTransaction/depositAccountTransactionSelector.js +18 -0
- package/lib/entity/genericEntity/entitySelector.d.ts +3 -0
- package/lib/entity/genericEntity/entitySelector.js +9 -0
- package/lib/entity/globalMerchant/globalMerchantSelector.d.ts +6 -0
- package/lib/entity/globalMerchant/globalMerchantSelector.js +27 -0
- package/lib/entity/insights/insightSelector.d.ts +3 -0
- package/lib/entity/insights/insightSelector.js +9 -0
- package/lib/entity/jeSchedules/updateJESchedulesEpic.d.ts +10 -0
- package/lib/entity/jeSchedules/updateJESchedulesEpic.js +68 -0
- package/lib/entity/onboardingCustomer/onboardingCustomerSelector.d.ts +3 -0
- package/lib/entity/onboardingCustomer/onboardingCustomerSelector.js +17 -0
- package/lib/entity/snackbar/snackbarSelector.d.ts +16 -0
- package/lib/entity/snackbar/snackbarSelector.js +12 -0
- package/lib/entity/subscriptionPaymentAccount/subscriptionPaymentAccountSelector.d.ts +4 -0
- package/lib/entity/subscriptionPaymentAccount/subscriptionPaymentAccountSelector.js +18 -0
- package/lib/entity/tenant/epic/fetchSubscriptionSummaryForTenantEpic.d.ts +18 -0
- package/lib/entity/tenant/epic/fetchSubscriptionSummaryForTenantEpic.js +16 -0
- package/lib/epic.d.ts +349 -0
- package/lib/epic.js +359 -0
- package/lib/index.d.ts +653 -0
- package/lib/index.js +1361 -0
- package/lib/init.d.ts +53 -0
- package/lib/init.js +136 -0
- package/lib/view/accountList/fetchAccountListEpic.d.ts +8 -0
- package/lib/view/accountList/fetchAccountListEpic.js +55 -0
- package/lib/view/accountMappingView/accountMappingPayload.d.ts +8 -0
- package/lib/view/accountMappingView/accountMappingPayload.js +20 -0
- package/lib/view/accountMappingView/accountMappingViewSelector.d.ts +18 -0
- package/lib/view/accountMappingView/accountMappingViewSelector.js +48 -0
- package/lib/view/accountMappingView/accountTypeRecommendation/fetchRecommendationForAccountTypeEpic.d.ts +7 -0
- package/lib/view/accountMappingView/accountTypeRecommendation/fetchRecommendationForAccountTypeEpic.js +27 -0
- package/lib/view/accountMappingView/fetchAccountListForAccountTypesEpic.d.ts +8 -0
- package/lib/view/accountMappingView/fetchAccountListForAccountTypesEpic.js +45 -0
- package/lib/view/accountMappingView/initializeAccountMappingViewEpic.d.ts +7 -0
- package/lib/view/accountMappingView/initializeAccountMappingViewEpic.js +13 -0
- package/lib/view/accountMappingView/saveAccountMappingViewEpic.d.ts +7 -0
- package/lib/view/accountMappingView/saveAccountMappingViewEpic.js +38 -0
- package/lib/view/addressView/addressViewSelector.d.ts +13 -0
- package/lib/view/addressView/addressViewSelector.js +42 -0
- package/lib/view/addressView/epic/createAddressEpic.d.ts +7 -0
- package/lib/view/addressView/epic/createAddressEpic.js +43 -0
- package/lib/view/addressView/epic/createCompanyAddressEpic.d.ts +8 -0
- package/lib/view/addressView/epic/createCompanyAddressEpic.js +49 -0
- package/lib/view/addressView/epic/createCompanyUserAddressEpic.d.ts +10 -0
- package/lib/view/addressView/epic/createCompanyUserAddressEpic.js +56 -0
- package/lib/view/addressView/epic/fetchAddressEpic.d.ts +19 -0
- package/lib/view/addressView/epic/fetchAddressEpic.js +34 -0
- package/lib/view/addressView/epic/saveNewAddressEpic.d.ts +10 -0
- package/lib/view/addressView/epic/saveNewAddressEpic.js +32 -0
- package/lib/view/addressView/epic/updateAddressEpic.d.ts +19 -0
- package/lib/view/addressView/epic/updateAddressEpic.js +30 -0
- package/lib/view/addressView/toAddressViewLocalData.d.ts +3 -0
- package/lib/view/addressView/toAddressViewLocalData.js +42 -0
- package/lib/view/apAgingView/apAgingDetail/apAgingDetailSelector.d.ts +17 -0
- package/lib/view/apAgingView/apAgingDetail/apAgingDetailSelector.js +81 -0
- package/lib/view/apAgingView/apAgingDetail/fetchApAgingDetailEpic.d.ts +8 -0
- package/lib/view/apAgingView/apAgingDetail/fetchApAgingDetailEpic.js +37 -0
- package/lib/view/apAgingView/apAgingReport/apAgingSelector.d.ts +18 -0
- package/lib/view/apAgingView/apAgingReport/apAgingSelector.js +58 -0
- package/lib/view/apAgingView/apAgingReport/fetchApAgingEpic.d.ts +8 -0
- package/lib/view/apAgingView/apAgingReport/fetchApAgingEpic.js +43 -0
- package/lib/view/arAgingView/arAgingDetail/arAgingDetailSelector.d.ts +15 -0
- package/lib/view/arAgingView/arAgingDetail/arAgingDetailSelector.js +54 -0
- package/lib/view/arAgingView/arAgingDetail/fetchArAgingDetailEpic.d.ts +8 -0
- package/lib/view/arAgingView/arAgingDetail/fetchArAgingDetailEpic.js +37 -0
- package/lib/view/arAgingView/arAgingReport/arAgingSelector.d.ts +18 -0
- package/lib/view/arAgingView/arAgingReport/arAgingSelector.js +61 -0
- package/lib/view/arAgingView/arAgingReport/fetchArAgingEpic.d.ts +8 -0
- package/lib/view/arAgingView/arAgingReport/fetchArAgingEpic.js +42 -0
- package/lib/view/auditReportView/auditReportViewSelector.d.ts +22 -0
- package/lib/view/auditReportView/auditReportViewSelector.js +34 -0
- package/lib/view/auditReportView/epics/fetchAuditReportGroupViewEpic.d.ts +7 -0
- package/lib/view/auditReportView/epics/fetchAuditReportGroupViewEpic.js +54 -0
- package/lib/view/auditReportView/epics/fetchAuditRuleGroupViewEpic.d.ts +7 -0
- package/lib/view/auditReportView/epics/fetchAuditRuleGroupViewEpic.js +39 -0
- package/lib/view/authenticationView/authenticationViewSelector.d.ts +7 -0
- package/lib/view/authenticationView/authenticationViewSelector.js +11 -0
- package/lib/view/authenticationView/epics/fetchCollaborationAuthTokenEpic.d.ts +8 -0
- package/lib/view/authenticationView/epics/fetchCollaborationAuthTokenEpic.js +28 -0
- package/lib/view/autoComplete/entityAutoCompleteSelector.d.ts +8 -0
- package/lib/view/autoComplete/entityAutoCompleteSelector.js +25 -0
- package/lib/view/autoComplete/fetchEntityAutoCompleteEpic.d.ts +8 -0
- package/lib/view/autoComplete/fetchEntityAutoCompleteEpic.js +41 -0
- package/lib/view/balanceSheet/balanceSheetEpic.d.ts +6 -0
- package/lib/view/balanceSheet/balanceSheetEpic.js +35 -0
- package/lib/view/balanceSheet/balanceSheetForTimeframeEpic.d.ts +9 -0
- package/lib/view/balanceSheet/balanceSheetForTimeframeEpic.js +77 -0
- package/lib/view/balanceSheet/balanceSheetSelector.d.ts +17 -0
- package/lib/view/balanceSheet/balanceSheetSelector.js +77 -0
- package/lib/view/bankAccountView/epic/createBankAccountEpic.d.ts +10 -0
- package/lib/view/bankAccountView/epic/createBankAccountEpic.js +147 -0
- package/lib/view/bankAccountView/epic/createUserBankAccountEpic.d.ts +11 -0
- package/lib/view/bankAccountView/epic/createUserBankAccountEpic.js +65 -0
- package/lib/view/bankAccountView/epic/deleteBankAccountEpic.d.ts +9 -0
- package/lib/view/bankAccountView/epic/deleteBankAccountEpic.js +59 -0
- package/lib/view/bankAccountView/epic/deleteUserBankAccountEpic.d.ts +9 -0
- package/lib/view/bankAccountView/epic/deleteUserBankAccountEpic.js +63 -0
- package/lib/view/bankAccountView/epic/fetchBankCountryNameByIbanEpic.d.ts +7 -0
- package/lib/view/bankAccountView/epic/fetchBankCountryNameByIbanEpic.js +46 -0
- package/lib/view/bankAccountView/epic/fetchBankNameByRoutingEpic.d.ts +7 -0
- package/lib/view/bankAccountView/epic/fetchBankNameByRoutingEpic.js +45 -0
- package/lib/view/bankAccountView/epic/fetchBankNameBySwiftEpic.d.ts +7 -0
- package/lib/view/bankAccountView/epic/fetchBankNameBySwiftEpic.js +45 -0
- package/lib/view/billPayCard/billPayCardSelector.d.ts +12 -0
- package/lib/view/billPayCard/billPayCardSelector.js +16 -0
- package/lib/view/billPayCard/fetchBillPayCardEpic.d.ts +9 -0
- package/lib/view/billPayCard/fetchBillPayCardEpic.js +50 -0
- package/lib/view/cardBalance/cardBalanceSelector.d.ts +31 -0
- package/lib/view/cardBalance/cardBalanceSelector.js +19 -0
- package/lib/view/cashBalance/cashBalanceSelector.d.ts +31 -0
- package/lib/view/cashBalance/cashBalanceSelector.js +19 -0
- package/lib/view/cashFlow/cashFlowEpic.d.ts +6 -0
- package/lib/view/cashFlow/cashFlowEpic.js +35 -0
- package/lib/view/cashFlow/cashFlowForTimeframeEpic.d.ts +9 -0
- package/lib/view/cashFlow/cashFlowForTimeframeEpic.js +53 -0
- package/lib/view/cashFlow/cashFlowSelector.d.ts +9 -0
- package/lib/view/cashFlow/cashFlowSelector.js +94 -0
- package/lib/view/cashFlow/cashFlowSelectorTypes.d.ts +41 -0
- package/lib/view/cashFlow/cashFlowSelectorTypes.js +87 -0
- package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +29 -0
- package/lib/view/cashInCashOut/cashInCashOutSelector.js +87 -0
- package/lib/view/cashInCashOut/cashInCashOutSelectorTypes.d.ts +26 -0
- package/lib/view/cashInCashOut/cashInCashOutSelectorTypes.js +15 -0
- package/lib/view/cashPosition/cashPositionSelector.d.ts +26 -0
- package/lib/view/cashPosition/cashPositionSelector.js +71 -0
- package/lib/view/cashPosition/cashPositionSelectorTypes.d.ts +18 -0
- package/lib/view/cashPosition/cashPositionSelectorTypes.js +2 -0
- package/lib/view/classList/fetchClassListEpic.d.ts +8 -0
- package/lib/view/classList/fetchClassListEpic.js +25 -0
- package/lib/view/common/zeniClearingAccountHelper.d.ts +4 -0
- package/lib/view/common/zeniClearingAccountHelper.js +13 -0
- package/lib/view/commonVendorView/commonVendorViewHelper.d.ts +20 -0
- package/lib/view/commonVendorView/commonVendorViewHelper.js +109 -0
- package/lib/view/commonVendorView/transactionVendorView/epics/resetTransactionVendorLocalDataEpic.d.ts +7 -0
- package/lib/view/commonVendorView/transactionVendorView/epics/resetTransactionVendorLocalDataEpic.js +30 -0
- package/lib/view/commonVendorView/transactionVendorView/epics/saveTransactionVendorEpic.d.ts +9 -0
- package/lib/view/commonVendorView/transactionVendorView/epics/saveTransactionVendorEpic.js +92 -0
- package/lib/view/commonVendorView/transactionVendorView/transactionVendorLocalDataHelper.d.ts +3 -0
- package/lib/view/commonVendorView/transactionVendorView/transactionVendorLocalDataHelper.js +13 -0
- package/lib/view/commonVendorView/transactionVendorView/transactionVendorViewPayload.d.ts +17 -0
- package/lib/view/commonVendorView/transactionVendorView/transactionVendorViewPayload.js +50 -0
- package/lib/view/commonVendorView/transactionVendorView/transactionVendorViewSelector.d.ts +25 -0
- package/lib/view/commonVendorView/transactionVendorView/transactionVendorViewSelector.js +53 -0
- package/lib/view/commonVendorView/vendorView/epics/fetchAndUpdateVendorRecommendationsEpic.d.ts +7 -0
- package/lib/view/commonVendorView/vendorView/epics/fetchAndUpdateVendorRecommendationsEpic.js +68 -0
- package/lib/view/commonVendorView/vendorView/epics/fetchVendorDetailsEpic.d.ts +11 -0
- package/lib/view/commonVendorView/vendorView/epics/fetchVendorDetailsEpic.js +62 -0
- package/lib/view/commonVendorView/vendorView/epics/fetchVendorEpic.d.ts +16 -0
- package/lib/view/commonVendorView/vendorView/epics/fetchVendorEpic.js +70 -0
- package/lib/view/commonVendorView/vendorView/epics/initializeVendorAddressEpic.d.ts +7 -0
- package/lib/view/commonVendorView/vendorView/epics/initializeVendorAddressEpic.js +29 -0
- package/lib/view/commonVendorView/vendorView/epics/resetVendorDetailLocalDataEpic.d.ts +7 -0
- package/lib/view/commonVendorView/vendorView/epics/resetVendorDetailLocalDataEpic.js +30 -0
- package/lib/view/commonVendorView/vendorView/epics/saveVendorEpic.d.ts +14 -0
- package/lib/view/commonVendorView/vendorView/epics/saveVendorEpic.js +192 -0
- package/lib/view/commonVendorView/vendorView/epics/twoFactorAuth/fetchUserDetailEpic.d.ts +8 -0
- package/lib/view/commonVendorView/vendorView/epics/twoFactorAuth/fetchUserDetailEpic.js +25 -0
- package/lib/view/commonVendorView/vendorView/epics/twoFactorAuth/verifyUserEpic.d.ts +8 -0
- package/lib/view/commonVendorView/vendorView/epics/twoFactorAuth/verifyUserEpic.js +31 -0
- package/lib/view/commonVendorView/vendorView/epics/updateSelectedVendorForCreateFlowEpic.d.ts +7 -0
- package/lib/view/commonVendorView/vendorView/epics/updateSelectedVendorForCreateFlowEpic.js +24 -0
- package/lib/view/commonVendorView/vendorView/epics/vendorDetailLocalDataHelpers.d.ts +21 -0
- package/lib/view/commonVendorView/vendorView/epics/vendorDetailLocalDataHelpers.js +90 -0
- package/lib/view/commonVendorView/vendorView/vendorViewPayload.d.ts +30 -0
- package/lib/view/commonVendorView/vendorView/vendorViewPayload.js +93 -0
- package/lib/view/commonVendorView/vendorView/vendorViewSelector.d.ts +72 -0
- package/lib/view/commonVendorView/vendorView/vendorViewSelector.js +218 -0
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/fetchVendorsTabVendorDetailPageViewEpic.d.ts +7 -0
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/fetchVendorsTabVendorDetailPageViewEpic.js +29 -0
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/fetchVendorsTabVendorDetailsEpic.d.ts +11 -0
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/fetchVendorsTabVendorDetailsEpic.js +47 -0
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/fetchVendorsTabVendorEpic.d.ts +15 -0
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/fetchVendorsTabVendorEpic.js +63 -0
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/resetVendorsTabVendorDetailLocalDataEpic.d.ts +7 -0
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/resetVendorsTabVendorDetailLocalDataEpic.js +22 -0
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/saveVendorsTabVendorEpic.d.ts +11 -0
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/saveVendorsTabVendorEpic.js +57 -0
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/vendorsTabVendorDetailLocalDataHelpers.d.ts +19 -0
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/vendorsTabVendorDetailLocalDataHelpers.js +60 -0
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewPayload.d.ts +29 -0
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewPayload.js +48 -0
- package/lib/view/companyConfigView/companyConfigEpic.d.ts +7 -0
- package/lib/view/companyConfigView/companyConfigEpic.js +23 -0
- package/lib/view/companyConfigView/companyConfigSelector.d.ts +12 -0
- package/lib/view/companyConfigView/companyConfigSelector.js +12 -0
- package/lib/view/companyHealthMetricView/companyHealthMetricViewPayload.d.ts +8 -0
- package/lib/view/companyHealthMetricView/companyHealthMetricViewPayload.js +2 -0
- package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.d.ts +41 -0
- package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.js +240 -0
- package/lib/view/companyHealthMetricView/epic/fetchCompanyHealthMetricViewEpic.d.ts +9 -0
- package/lib/view/companyHealthMetricView/epic/fetchCompanyHealthMetricViewEpic.js +41 -0
- package/lib/view/companyHealthMetricView/epic/initializeCompanyHealthMetricViewLocalData.d.ts +6 -0
- package/lib/view/companyHealthMetricView/epic/initializeCompanyHealthMetricViewLocalData.js +27 -0
- package/lib/view/companyHealthMetricView/epic/saveCompanyHealthMetricByIdEpic.d.ts +9 -0
- package/lib/view/companyHealthMetricView/epic/saveCompanyHealthMetricByIdEpic.js +49 -0
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewSelector.d.ts +24 -0
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewSelector.js +59 -0
- package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportHistoricDataEpic.d.ts +8 -0
- package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportHistoricDataEpic.js +67 -0
- package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportHistoricDatesEpic.d.ts +7 -0
- package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportHistoricDatesEpic.js +54 -0
- package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportViewEpic.d.ts +8 -0
- package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportViewEpic.js +46 -0
- package/lib/view/companyMonthEndReportView/epics/improveUsingZeniGPTEpic.d.ts +7 -0
- package/lib/view/companyMonthEndReportView/epics/improveUsingZeniGPTEpic.js +30 -0
- package/lib/view/companyMonthEndReportView/epics/saveCompanyMonthEndReportEpic.d.ts +9 -0
- package/lib/view/companyMonthEndReportView/epics/saveCompanyMonthEndReportEpic.js +77 -0
- package/lib/view/companyMonthEndReportView/epics/sendCompanyMonthEndReportEpic.d.ts +9 -0
- package/lib/view/companyMonthEndReportView/epics/sendCompanyMonthEndReportEpic.js +79 -0
- package/lib/view/companyView/companyViewPayload.d.ts +84 -0
- package/lib/view/companyView/companyViewPayload.js +2 -0
- package/lib/view/companyView/epic/companyManagementSavePendingUpdates.d.ts +7 -0
- package/lib/view/companyView/epic/companyManagementSavePendingUpdates.js +18 -0
- package/lib/view/companyView/epic/companyManagementSaveUpdatesEpic.d.ts +10 -0
- package/lib/view/companyView/epic/companyManagementSaveUpdatesEpic.js +116 -0
- package/lib/view/companyView/epic/companyPassport/createCompanyOfficersEpic.d.ts +10 -0
- package/lib/view/companyView/epic/companyPassport/createCompanyOfficersEpic.js +87 -0
- package/lib/view/companyView/epic/companyPassport/fetchCompanyPassportViewEpic.d.ts +17 -0
- package/lib/view/companyView/epic/companyPassport/fetchCompanyPassportViewEpic.js +65 -0
- package/lib/view/companyView/epic/companyPassport/saveCompanyPassportDetailsEpic.d.ts +24 -0
- package/lib/view/companyView/epic/companyPassport/saveCompanyPassportDetailsEpic.js +37 -0
- package/lib/view/companyView/epic/companyPassport/updateCompanyDetailsEpic.d.ts +9 -0
- package/lib/view/companyView/epic/companyPassport/updateCompanyDetailsEpic.js +49 -0
- package/lib/view/companyView/epic/companyPassport/updateCompanyOfficerEpic.d.ts +10 -0
- package/lib/view/companyView/epic/companyPassport/updateCompanyOfficerEpic.js +54 -0
- package/lib/view/companyView/epic/companyPassport/updateCompanyPassportLocalStoreDataEpic.d.ts +6 -0
- package/lib/view/companyView/epic/companyPassport/updateCompanyPassportLocalStoreDataEpic.js +39 -0
- package/lib/view/companyView/epic/companyPassport/updatePrimaryContactEpic.d.ts +20 -0
- package/lib/view/companyView/epic/companyPassport/updatePrimaryContactEpic.js +68 -0
- package/lib/view/companyView/epic/fetchAllCockpitViewsEpic.d.ts +9 -0
- package/lib/view/companyView/epic/fetchAllCockpitViewsEpic.js +65 -0
- package/lib/view/companyView/epic/fetchCompanyManagementViewEpic.d.ts +16 -0
- package/lib/view/companyView/epic/fetchCompanyManagementViewEpic.js +101 -0
- package/lib/view/companyView/epic/fetchCompanyPortfolioViewEpic.d.ts +11 -0
- package/lib/view/companyView/epic/fetchCompanyPortfolioViewEpic.js +40 -0
- package/lib/view/companyView/epic/fetchManagementViewEpic.d.ts +6 -0
- package/lib/view/companyView/epic/fetchManagementViewEpic.js +27 -0
- package/lib/view/companyView/epic/fetchOnboardingViewEpic.d.ts +7 -0
- package/lib/view/companyView/epic/fetchOnboardingViewEpic.js +36 -0
- package/lib/view/companyView/epic/fetchPortfolioViewEpic.d.ts +6 -0
- package/lib/view/companyView/epic/fetchPortfolioViewEpic.js +27 -0
- package/lib/view/companyView/epic/fetchSubscriptionViewEpic.d.ts +7 -0
- package/lib/view/companyView/epic/fetchSubscriptionViewEpic.js +29 -0
- package/lib/view/companyView/epic/fetchZeniUsersEpic.d.ts +8 -0
- package/lib/view/companyView/epic/fetchZeniUsersEpic.js +24 -0
- package/lib/view/companyView/epic/getSubscriptionIDsByCompanyID.d.ts +2 -0
- package/lib/view/companyView/epic/getSubscriptionIDsByCompanyID.js +20 -0
- package/lib/view/companyView/helpers/cockpitHelpers.d.ts +16 -0
- package/lib/view/companyView/helpers/cockpitHelpers.js +144 -0
- package/lib/view/companyView/parentSubsidiaryView/fetchParentSubsidiaryManagementViewEpic.d.ts +6 -0
- package/lib/view/companyView/parentSubsidiaryView/fetchParentSubsidiaryManagementViewEpic.js +19 -0
- package/lib/view/companyView/parentSubsidiaryView/parentSubsidiaryViewSelector.d.ts +4 -0
- package/lib/view/companyView/parentSubsidiaryView/parentSubsidiaryViewSelector.js +16 -0
- package/lib/view/companyView/selector/companyManagementViewSelector.d.ts +41 -0
- package/lib/view/companyView/selector/companyManagementViewSelector.js +406 -0
- package/lib/view/companyView/selector/companyPassportViewSelector.d.ts +36 -0
- package/lib/view/companyView/selector/companyPassportViewSelector.js +163 -0
- package/lib/view/companyView/selector/companyPortfolioViewSelector.d.ts +15 -0
- package/lib/view/companyView/selector/companyPortfolioViewSelector.js +245 -0
- package/lib/view/companyView/selector/getAllCockpitTabsFilterView.d.ts +8 -0
- package/lib/view/companyView/selector/getAllCockpitTabsFilterView.js +55 -0
- package/lib/view/companyView/types/companyPassportViewPayload.d.ts +25 -0
- package/lib/view/companyView/types/companyPassportViewPayload.js +76 -0
- package/lib/view/dashboard/dashboardSelector.d.ts +40 -0
- package/lib/view/dashboard/dashboardSelector.js +105 -0
- package/lib/view/fileView/epic/deleteFileEpic.d.ts +8 -0
- package/lib/view/fileView/epic/deleteFileEpic.js +31 -0
- package/lib/view/fileView/epic/deleteFileListEpic.d.ts +8 -0
- package/lib/view/fileView/epic/deleteFileListEpic.js +28 -0
- package/lib/view/fileView/epic/fetchFileEpic.d.ts +8 -0
- package/lib/view/fileView/epic/fetchFileEpic.js +33 -0
- package/lib/view/fileView/epic/fetchFileListEpic.d.ts +8 -0
- package/lib/view/fileView/epic/fetchFileListEpic.js +31 -0
- package/lib/view/fileView/epic/updateFileNameEpic.d.ts +8 -0
- package/lib/view/fileView/epic/updateFileNameEpic.js +34 -0
- package/lib/view/fileView/epic/updateFilesMetadataEpic.d.ts +6 -0
- package/lib/view/fileView/epic/updateFilesMetadataEpic.js +16 -0
- package/lib/view/fileView/fileDownloadHelpers.d.ts +3 -0
- package/lib/view/fileView/fileDownloadHelpers.js +42 -0
- package/lib/view/fileView/fileViewPayload.d.ts +6 -0
- package/lib/view/fileView/fileViewPayload.js +2 -0
- package/lib/view/financeStatement/financeStatementEpic.d.ts +32 -0
- package/lib/view/financeStatement/financeStatementEpic.js +44 -0
- package/lib/view/financeStatement/financeStatementSelector.d.ts +27 -0
- package/lib/view/financeStatement/financeStatementSelector.js +96 -0
- package/lib/view/forecastList/fetchForecastListEpic.d.ts +8 -0
- package/lib/view/forecastList/fetchForecastListEpic.js +20 -0
- package/lib/view/globalMerchantView/epics/createGlobalMerchantEpic.d.ts +16 -0
- package/lib/view/globalMerchantView/epics/createGlobalMerchantEpic.js +101 -0
- package/lib/view/globalMerchantView/epics/fetchGlobalMerchantRecommendationEpic.d.ts +10 -0
- package/lib/view/globalMerchantView/epics/fetchGlobalMerchantRecommendationEpic.js +59 -0
- package/lib/view/globalMerchantView/globalMerchantAutoCompleteView/fetchGlobalMerchantAutoCompleteViewEpic.d.ts +8 -0
- package/lib/view/globalMerchantView/globalMerchantAutoCompleteView/fetchGlobalMerchantAutoCompleteViewEpic.js +48 -0
- package/lib/view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewSelector.d.ts +7 -0
- package/lib/view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewSelector.js +14 -0
- package/lib/view/globalMerchantView/globalMerchantViewPayload.d.ts +24 -0
- package/lib/view/globalMerchantView/globalMerchantViewPayload.js +2 -0
- package/lib/view/globalMerchantView/globalMerchantViewSelector.d.ts +9 -0
- package/lib/view/globalMerchantView/globalMerchantViewSelector.js +19 -0
- package/lib/view/insightsCard/insightsCardEpic.d.ts +15 -0
- package/lib/view/insightsCard/insightsCardEpic.js +21 -0
- package/lib/view/insightsCard/insightsCardSelector.d.ts +3 -0
- package/lib/view/insightsCard/insightsCardSelector.js +18 -0
- package/lib/view/insightsCard/insightsCardSelectorTypes.d.ts +8 -0
- package/lib/view/insightsCard/insightsCardSelectorTypes.js +2 -0
- package/lib/view/netBurnOrIncome/netBurnOrIncomeEpic.d.ts +5 -0
- package/lib/view/netBurnOrIncome/netBurnOrIncomeEpic.js +35 -0
- package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewSelector.d.ts +11 -0
- package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewSelector.js +105 -0
- package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewSelectorTypes.d.ts +17 -0
- package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewSelectorTypes.js +21 -0
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardSelector.d.ts +3 -0
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardSelector.js +86 -0
- package/lib/view/onboardingView/cockpitView/epic/fetchCompanyOnboardingViewEpic.d.ts +13 -0
- package/lib/view/onboardingView/cockpitView/epic/fetchCompanyOnboardingViewEpic.js +54 -0
- package/lib/view/onboardingView/cockpitView/epic/fetchOnboardingCompletedCompaniesEpic.d.ts +8 -0
- package/lib/view/onboardingView/cockpitView/epic/fetchOnboardingCompletedCompaniesEpic.js +27 -0
- package/lib/view/onboardingView/cockpitView/epic/getOnboardingEmailGroupEpic.d.ts +7 -0
- package/lib/view/onboardingView/cockpitView/epic/getOnboardingEmailGroupEpic.js +27 -0
- package/lib/view/onboardingView/cockpitView/epic/initializeOnboardingCustomerViewUpdateDataEpic.d.ts +6 -0
- package/lib/view/onboardingView/cockpitView/epic/initializeOnboardingCustomerViewUpdateDataEpic.js +105 -0
- package/lib/view/onboardingView/cockpitView/epic/retryBankAccountConnectionForOnboardingEpic.d.ts +8 -0
- package/lib/view/onboardingView/cockpitView/epic/retryBankAccountConnectionForOnboardingEpic.js +86 -0
- package/lib/view/onboardingView/cockpitView/epic/saveOnboardingCustomerCompletedStatusEpic.d.ts +10 -0
- package/lib/view/onboardingView/cockpitView/epic/saveOnboardingCustomerCompletedStatusEpic.js +37 -0
- package/lib/view/onboardingView/cockpitView/epic/saveOnboardingCustomerNotesEpic.d.ts +8 -0
- package/lib/view/onboardingView/cockpitView/epic/saveOnboardingCustomerNotesEpic.js +36 -0
- package/lib/view/onboardingView/cockpitView/epic/saveOnboardingCustomerViewUpdatesEpic.d.ts +14 -0
- package/lib/view/onboardingView/cockpitView/epic/saveOnboardingCustomerViewUpdatesEpic.js +128 -0
- package/lib/view/onboardingView/cockpitView/epic/sendOnboardingCustomerViewInviteEpic.d.ts +17 -0
- package/lib/view/onboardingView/cockpitView/epic/sendOnboardingCustomerViewInviteEpic.js +114 -0
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewSelector.d.ts +55 -0
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewSelector.js +185 -0
- package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerSetupViewEpic.d.ts +16 -0
- package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerSetupViewEpic.js +72 -0
- package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerViewEpic.d.ts +16 -0
- package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerViewEpic.js +27 -0
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewCompleteStatusEpic.d.ts +9 -0
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewCompleteStatusEpic.js +41 -0
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.d.ts +21 -0
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +128 -0
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.d.ts +14 -0
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.js +116 -0
- package/lib/view/onboardingView/customerView/epic/paymentAccounts/updateOnboardingPaymentAccountLoginStatusEpic.d.ts +10 -0
- package/lib/view/onboardingView/customerView/epic/paymentAccounts/updateOnboardingPaymentAccountLoginStatusEpic.js +37 -0
- package/lib/view/onboardingView/customerView/epic/paymentAccounts/updateOnboardingPaymentAccountStatusEpic.d.ts +10 -0
- package/lib/view/onboardingView/customerView/epic/paymentAccounts/updateOnboardingPaymentAccountStatusEpic.js +37 -0
- package/lib/view/onboardingView/customerView/epic/plaidConnection/establishOnboardingPlaidConnectionEpic.d.ts +10 -0
- package/lib/view/onboardingView/customerView/epic/plaidConnection/establishOnboardingPlaidConnectionEpic.js +42 -0
- package/lib/view/onboardingView/customerView/epic/plaidConnection/getOnboardingPlaidLinkTokenEpic.d.ts +8 -0
- package/lib/view/onboardingView/customerView/epic/plaidConnection/getOnboardingPlaidLinkTokenEpic.js +31 -0
- package/lib/view/onboardingView/customerView/onboardingCustomerViewPayload.d.ts +26 -0
- package/lib/view/onboardingView/customerView/onboardingCustomerViewPayload.js +2 -0
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +53 -0
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +261 -0
- package/lib/view/onboardingView/customerView/types/paymentAccount.d.ts +8 -0
- package/lib/view/onboardingView/customerView/types/paymentAccount.js +2 -0
- package/lib/view/opExByVendor/opExByVendorSelector.d.ts +42 -0
- package/lib/view/opExByVendor/opExByVendorSelector.js +168 -0
- package/lib/view/ownerList/fetchOwnerListEpic.d.ts +8 -0
- package/lib/view/ownerList/fetchOwnerListEpic.js +35 -0
- package/lib/view/people/changeZeniPersonRolesEpic.d.ts +44 -0
- package/lib/view/people/changeZeniPersonRolesEpic.js +39 -0
- package/lib/view/people/deletePersonEpic.d.ts +31 -0
- package/lib/view/people/deletePersonEpic.js +24 -0
- package/lib/view/people/fetchAllPeopleRequiredViewsEpic.d.ts +8 -0
- package/lib/view/people/fetchAllPeopleRequiredViewsEpic.js +20 -0
- package/lib/view/people/helpers/updateManagersListOnRoleChange.d.ts +11 -0
- package/lib/view/people/helpers/updateManagersListOnRoleChange.js +16 -0
- package/lib/view/people/initializeEditPersonEpic.d.ts +5 -0
- package/lib/view/people/initializeEditPersonEpic.js +39 -0
- package/lib/view/people/invitePeopleEpic.d.ts +48 -0
- package/lib/view/people/invitePeopleEpic.js +53 -0
- package/lib/view/people/inviteZeniPeopleEpic.d.ts +50 -0
- package/lib/view/people/inviteZeniPeopleEpic.js +52 -0
- package/lib/view/people/peopleSaveUpdatesEpic.d.ts +6 -0
- package/lib/view/people/peopleSaveUpdatesEpic.js +83 -0
- package/lib/view/people/peopleSelector.d.ts +7 -0
- package/lib/view/people/peopleSelector.js +149 -0
- package/lib/view/people/resendInviteEpic.d.ts +26 -0
- package/lib/view/people/resendInviteEpic.js +25 -0
- package/lib/view/profitAndLoss/pAndLWithForecast/pAndLWithForecastSelector.d.ts +17 -0
- package/lib/view/profitAndLoss/pAndLWithForecast/pAndLWithForecastSelector.js +49 -0
- package/lib/view/profitAndLoss/profitAndLossSelector.d.ts +40 -0
- package/lib/view/profitAndLoss/profitAndLossSelector.js +104 -0
- package/lib/view/profitAndLossClassesView/profitAndLossClassesViewSelector.d.ts +8 -0
- package/lib/view/profitAndLossClassesView/profitAndLossClassesViewSelector.js +98 -0
- package/lib/view/profitAndLossClassesView/profitAndLossClassesViewSelectorTypes.d.ts +13 -0
- package/lib/view/profitAndLossClassesView/profitAndLossClassesViewSelectorTypes.js +26 -0
- package/lib/view/recommendation/fetchEntityRecommendationsByTransactionIdEpic.d.ts +10 -0
- package/lib/view/recommendation/fetchEntityRecommendationsByTransactionIdEpic.js +56 -0
- package/lib/view/recommendation/fetchRecommendationByEntityIdEpic.d.ts +7 -0
- package/lib/view/recommendation/fetchRecommendationByEntityIdEpic.js +39 -0
- package/lib/view/recommendation/fetchRecommendationByEntityNameEpic.d.ts +7 -0
- package/lib/view/recommendation/fetchRecommendationByEntityNameEpic.js +38 -0
- package/lib/view/recommendation/recommendationHelper.d.ts +6 -0
- package/lib/view/recommendation/recommendationHelper.js +58 -0
- package/lib/view/recommendation/recommendationPayload.d.ts +10 -0
- package/lib/view/recommendation/recommendationPayload.js +2 -0
- package/lib/view/referralView/epics/fetchReferralsEpic.d.ts +7 -0
- package/lib/view/referralView/epics/fetchReferralsEpic.js +36 -0
- package/lib/view/referralView/epics/fetchRewardsPlanEpic.d.ts +7 -0
- package/lib/view/referralView/epics/fetchRewardsPlanEpic.js +35 -0
- package/lib/view/referralView/epics/resendReferralInviteEpic.d.ts +8 -0
- package/lib/view/referralView/epics/resendReferralInviteEpic.js +33 -0
- package/lib/view/referralView/epics/sendReferralInviteEpic.d.ts +8 -0
- package/lib/view/referralView/epics/sendReferralInviteEpic.js +38 -0
- package/lib/view/referralView/referralSelector.d.ts +25 -0
- package/lib/view/referralView/referralSelector.js +90 -0
- package/lib/view/reimbursementCard/fetchReimbursementCardEpic.d.ts +8 -0
- package/lib/view/reimbursementCard/fetchReimbursementCardEpic.js +45 -0
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +12 -0
- package/lib/view/reimbursementCard/reimbursementCardSelector.js +16 -0
- package/lib/view/reportUIOptions/toggleReportUIOptionForecastModeEpic.d.ts +11 -0
- package/lib/view/reportUIOptions/toggleReportUIOptionForecastModeEpic.js +40 -0
- package/lib/view/reportUIOptions/updateReportUIOptionCOABalancesRangeEpic.d.ts +43 -0
- package/lib/view/reportUIOptions/updateReportUIOptionCOABalancesRangeEpic.js +74 -0
- package/lib/view/reportUIOptions/updateReportUIOptionCompareModeEpic.d.ts +17 -0
- package/lib/view/reportUIOptions/updateReportUIOptionCompareModeEpic.js +54 -0
- package/lib/view/reportUIOptions/updateReportUIOptionIsCompareModeOnEpic.d.ts +10 -0
- package/lib/view/reportUIOptions/updateReportUIOptionIsCompareModeOnEpic.js +68 -0
- package/lib/view/reportUIOptions/updateReportUIOptionThisPeriodEpic.d.ts +14 -0
- package/lib/view/reportUIOptions/updateReportUIOptionThisPeriodEpic.js +32 -0
- package/lib/view/reportUIOptions/updateReportUIOptionTimeFrameEpic.d.ts +11 -0
- package/lib/view/reportUIOptions/updateReportUIOptionTimeFrameEpic.js +15 -0
- package/lib/view/revenueClassesView/revenueClassesViewSelector.d.ts +12 -0
- package/lib/view/revenueClassesView/revenueClassesViewSelector.js +94 -0
- package/lib/view/revenueClassesView/revenueClassesViewSelectorTypes.d.ts +15 -0
- package/lib/view/revenueClassesView/revenueClassesViewSelectorTypes.js +16 -0
- package/lib/view/reviewCompanyView/fetchReviewCompanyViewEpic.d.ts +7 -0
- package/lib/view/reviewCompanyView/fetchReviewCompanyViewEpic.js +39 -0
- package/lib/view/reviewCompanyView/retryBankAccountConnectionEpic.d.ts +8 -0
- package/lib/view/reviewCompanyView/retryBankAccountConnectionEpic.js +77 -0
- package/lib/view/reviewCompanyView/reviewCompanyViewSelector.d.ts +15 -0
- package/lib/view/reviewCompanyView/reviewCompanyViewSelector.js +87 -0
- package/lib/view/scheduleView/scheduleDetailView/epics/createNewSchedulesEpic.d.ts +6 -0
- package/lib/view/scheduleView/scheduleDetailView/epics/createNewSchedulesEpic.js +35 -0
- package/lib/view/scheduleView/scheduleDetailView/epics/deleteScheduleDetailEpic.d.ts +8 -0
- package/lib/view/scheduleView/scheduleDetailView/epics/deleteScheduleDetailEpic.js +80 -0
- package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsEpic.d.ts +8 -0
- package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsEpic.js +58 -0
- package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsPageEpic.d.ts +8 -0
- package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsPageEpic.js +26 -0
- package/lib/view/scheduleView/scheduleDetailView/epics/initializeScheduleDetailLocalDataEpic.d.ts +6 -0
- package/lib/view/scheduleView/scheduleDetailView/epics/initializeScheduleDetailLocalDataEpic.js +35 -0
- package/lib/view/scheduleView/scheduleDetailView/epics/saveScheduleDetailsEpic.d.ts +11 -0
- package/lib/view/scheduleView/scheduleDetailView/epics/saveScheduleDetailsEpic.js +101 -0
- package/lib/view/scheduleView/scheduleDetailView/epics/updateAmountsInScheduleDetailEpic.d.ts +6 -0
- package/lib/view/scheduleView/scheduleDetailView/epics/updateAmountsInScheduleDetailEpic.js +36 -0
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.d.ts +64 -0
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.js +171 -0
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.d.ts +33 -0
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.js +99 -0
- package/lib/view/scheduleView/scheduleListView/epics/fetchDownloadSchedulesEpic.d.ts +8 -0
- package/lib/view/scheduleView/scheduleListView/epics/fetchDownloadSchedulesEpic.js +53 -0
- package/lib/view/scheduleView/scheduleListView/epics/fetchScheduleListEpic.d.ts +17 -0
- package/lib/view/scheduleView/scheduleListView/epics/fetchScheduleListEpic.js +66 -0
- package/lib/view/scheduleView/scheduleListView/epics/fetchSchedulesAccountEpic.d.ts +6 -0
- package/lib/view/scheduleView/scheduleListView/epics/fetchSchedulesAccountEpic.js +15 -0
- package/lib/view/scheduleView/scheduleListView/scheduleListHelper.d.ts +97 -0
- package/lib/view/scheduleView/scheduleListView/scheduleListHelper.js +269 -0
- package/lib/view/scheduleView/scheduleListView/scheduleListPayload.d.ts +7 -0
- package/lib/view/scheduleView/scheduleListView/scheduleListPayload.js +2 -0
- package/lib/view/scheduleView/scheduleListView/scheduleListSelector.d.ts +36 -0
- package/lib/view/scheduleView/scheduleListView/scheduleListSelector.js +210 -0
- package/lib/view/settingsView/epic/fetchBankAccountsListEpic.d.ts +22 -0
- package/lib/view/settingsView/epic/fetchBankAccountsListEpic.js +30 -0
- package/lib/view/settingsView/epic/fetchBankConnectionsViewEpic.d.ts +6 -0
- package/lib/view/settingsView/epic/fetchBankConnectionsViewEpic.js +14 -0
- package/lib/view/settingsView/epic/fetchMyProfileEpic.d.ts +43 -0
- package/lib/view/settingsView/epic/fetchMyProfileViewEpic.d.ts +7 -0
- package/lib/view/settingsView/epic/fetchMyProfileViewEpic.js +17 -0
- package/lib/view/settingsView/epic/fetchNotificationSettingsEpic.d.ts +17 -0
- package/lib/view/settingsView/epic/fetchNotificationSettingsEpic.js +23 -0
- package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +31 -0
- package/lib/view/settingsView/epic/saveNotificationSettingsEpic.js +70 -0
- package/lib/view/settingsView/settingsViewHelpers.d.ts +12 -0
- package/lib/view/settingsView/settingsViewHelpers.js +116 -0
- package/lib/view/settingsView/settingsViewSelector.d.ts +16 -0
- package/lib/view/settingsView/settingsViewSelector.js +122 -0
- package/lib/view/settingsView/types/settingsViewSelectorTypes.d.ts +29 -0
- package/lib/view/settingsView/types/settingsViewSelectorTypes.js +2 -0
- package/lib/view/spendManagement/billPay/billDetailView/epics/approveOrRejectBillEpic.d.ts +11 -0
- package/lib/view/spendManagement/billPay/billDetailView/epics/approveOrRejectBillEpic.js +54 -0
- package/lib/view/spendManagement/billPay/billDetailView/epics/cancelAndDeleteBillEpic.d.ts +13 -0
- package/lib/view/spendManagement/billPay/billDetailView/epics/cancelAndDeleteBillEpic.js +78 -0
- package/lib/view/spendManagement/billPay/billDetailView/epics/deleteBillEpic.d.ts +10 -0
- package/lib/view/spendManagement/billPay/billDetailView/epics/deleteBillEpic.js +66 -0
- package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.d.ts +41 -0
- package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.js +161 -0
- package/lib/view/spendManagement/billPay/billList/billListDownloadSelector.d.ts +12 -0
- package/lib/view/spendManagement/billPay/billList/billListDownloadSelector.js +69 -0
- package/lib/view/spendManagement/billPay/billList/fetchBillListEpic.d.ts +7 -0
- package/lib/view/spendManagement/billPay/billList/fetchBillListEpic.js +42 -0
- package/lib/view/spendManagement/billPay/billList/fetchBillListPerTabEpic.d.ts +11 -0
- package/lib/view/spendManagement/billPay/billList/fetchBillListPerTabEpic.js +49 -0
- package/lib/view/spendManagement/billPay/billPayConfig/fetchBillPayConfigEpic.d.ts +7 -0
- package/lib/view/spendManagement/billPay/billPayConfig/fetchBillPayConfigEpic.js +29 -0
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewPayload.d.ts +18 -0
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewPayload.js +2 -0
- package/lib/view/spendManagement/billPay/billPayReview/fetchDuplicateBillEpic.d.ts +8 -0
- package/lib/view/spendManagement/billPay/billPayReview/fetchDuplicateBillEpic.js +42 -0
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewPayload.d.ts +12 -0
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewPayload.js +2 -0
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/deleteBillPayApprovalRuleEpic.d.ts +10 -0
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/deleteBillPayApprovalRuleEpic.js +40 -0
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPayApproversDetailsEpic.d.ts +7 -0
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPayApproversDetailsEpic.js +29 -0
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPayApproversListEpic.d.ts +9 -0
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPayApproversListEpic.js +40 -0
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPaySetupApproverViewEpic.d.ts +9 -0
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPaySetupApproverViewEpic.js +42 -0
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/initializeBillPaySetupApproverViewUpdateDataEpic.d.ts +5 -0
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/initializeBillPaySetupApproverViewUpdateDataEpic.js +37 -0
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/saveBillPaySetupApproverViewUpdatesEpic.d.ts +10 -0
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/saveBillPaySetupApproverViewUpdatesEpic.js +67 -0
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.d.ts +19 -0
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.js +50 -0
- package/lib/view/spendManagement/billPay/billPaySetupView/billPaySetupViewPayload.d.ts +6 -0
- package/lib/view/spendManagement/billPay/billPaySetupView/billPaySetupViewPayload.js +2 -0
- package/lib/view/spendManagement/billPay/billPaySetupView/billPaySetupViewSelector.d.ts +16 -0
- package/lib/view/spendManagement/billPay/billPaySetupView/billPaySetupViewSelector.js +29 -0
- package/lib/view/spendManagement/billPay/billPaySetupView/epic/billPaySetup/fetchBillPaySetupViewEpic.d.ts +16 -0
- package/lib/view/spendManagement/billPay/billPaySetupView/epic/billPaySetup/fetchBillPaySetupViewEpic.js +70 -0
- package/lib/view/spendManagement/billPay/billPaySetupView/epic/billPayTerms/acceptBillPayTermsEpic.d.ts +11 -0
- package/lib/view/spendManagement/billPay/billPaySetupView/epic/billPayTerms/acceptBillPayTermsEpic.js +44 -0
- package/lib/view/spendManagement/billPay/billPaySetupView/epic/billPayTerms/acceptBillPayUpdatedTermsEpic.d.ts +11 -0
- package/lib/view/spendManagement/billPay/billPaySetupView/epic/billPayTerms/acceptBillPayUpdatedTermsEpic.js +44 -0
- package/lib/view/spendManagement/billPay/billPaySetupView/types/billPayTerms.d.ts +10 -0
- package/lib/view/spendManagement/billPay/billPaySetupView/types/billPayTerms.js +2 -0
- package/lib/view/spendManagement/billPay/editBillView/epics/convertAmountToHomeCurrencyEpic.d.ts +7 -0
- package/lib/view/spendManagement/billPay/editBillView/epics/convertAmountToHomeCurrencyEpic.js +88 -0
- package/lib/view/spendManagement/billPay/editBillView/epics/fetchBillAndInitializeLocalStoreEpic.d.ts +13 -0
- package/lib/view/spendManagement/billPay/editBillView/epics/fetchBillAndInitializeLocalStoreEpic.js +58 -0
- package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.d.ts +14 -0
- package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +94 -0
- package/lib/view/spendManagement/billPay/editBillView/epics/fetchVendorByNameAndParseInvoice.d.ts +14 -0
- package/lib/view/spendManagement/billPay/editBillView/epics/fetchVendorByNameAndParseInvoice.js +39 -0
- package/lib/view/spendManagement/billPay/editBillView/epics/initializeBillToLocalStoreEpic.d.ts +15 -0
- package/lib/view/spendManagement/billPay/editBillView/epics/initializeBillToLocalStoreEpic.js +214 -0
- package/lib/view/spendManagement/billPay/editBillView/epics/parseInvoiceToBillEpic.d.ts +14 -0
- package/lib/view/spendManagement/billPay/editBillView/epics/parseInvoiceToBillEpic.js +406 -0
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +17 -0
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.js +255 -0
- package/lib/view/spendManagement/billPay/editBillView/epics/updateVendorContactEpic.d.ts +11 -0
- package/lib/view/spendManagement/billPay/editBillView/epics/updateVendorContactEpic.js +116 -0
- package/lib/view/spendManagement/billPay/internationalWire/epics/createInternationalPaymentInstrumentEpic.d.ts +10 -0
- package/lib/view/spendManagement/billPay/internationalWire/epics/createInternationalPaymentInstrumentEpic.js +117 -0
- package/lib/view/spendManagement/billPay/internationalWire/epics/deletePaymentInstrumentEpic.d.ts +9 -0
- package/lib/view/spendManagement/billPay/internationalWire/epics/deletePaymentInstrumentEpic.js +59 -0
- package/lib/view/spendManagement/billPay/internationalWire/epics/fetchInternationalWireDynamicFormEpic.d.ts +7 -0
- package/lib/view/spendManagement/billPay/internationalWire/epics/fetchInternationalWireDynamicFormEpic.js +54 -0
- package/lib/view/spendManagement/billPay/internationalWire/epics/initializeDynamicFormEpic.d.ts +8 -0
- package/lib/view/spendManagement/billPay/internationalWire/epics/initializeDynamicFormEpic.js +41 -0
- package/lib/view/spendManagement/billPay/internationalWire/epics/initializeInternationalWireLocalDataEpic.d.ts +6 -0
- package/lib/view/spendManagement/billPay/internationalWire/epics/initializeInternationalWireLocalDataEpic.js +49 -0
- package/lib/view/spendManagement/billPay/internationalWire/internationalWireSelector.d.ts +12 -0
- package/lib/view/spendManagement/billPay/internationalWire/internationalWireSelector.js +49 -0
- package/lib/view/spendManagement/billPay/magicLinkView/epics/fetchMagicLinkBankNameByRoutingEpic.d.ts +7 -0
- package/lib/view/spendManagement/billPay/magicLinkView/epics/fetchMagicLinkBankNameByRoutingEpic.js +44 -0
- package/lib/view/spendManagement/billPay/magicLinkView/epics/fetchMagicLinkBankNameBySwiftEpic.d.ts +7 -0
- package/lib/view/spendManagement/billPay/magicLinkView/epics/fetchMagicLinkBankNameBySwiftEpic.js +44 -0
- package/lib/view/spendManagement/billPay/magicLinkView/epics/fetchMagicLinkBillEpic.d.ts +7 -0
- package/lib/view/spendManagement/billPay/magicLinkView/epics/fetchMagicLinkBillEpic.js +42 -0
- package/lib/view/spendManagement/billPay/magicLinkView/epics/fetchMagicLinkTenantEpic.d.ts +7 -0
- package/lib/view/spendManagement/billPay/magicLinkView/epics/fetchMagicLinkTenantEpic.js +35 -0
- package/lib/view/spendManagement/billPay/magicLinkView/epics/saveMagicLinkBankAccountEpic.d.ts +8 -0
- package/lib/view/spendManagement/billPay/magicLinkView/epics/saveMagicLinkBankAccountEpic.js +97 -0
- package/lib/view/spendManagement/billPay/magicLinkView/magicLinkViewPayload.d.ts +41 -0
- package/lib/view/spendManagement/billPay/magicLinkView/magicLinkViewPayload.js +2 -0
- package/lib/view/spendManagement/billPay/magicLinkView/magicLinkViewSelector.d.ts +15 -0
- package/lib/view/spendManagement/billPay/magicLinkView/magicLinkViewSelector.js +57 -0
- package/lib/view/spendManagement/billPay/previousBills/fetchPreviousBillsEpic.d.ts +8 -0
- package/lib/view/spendManagement/billPay/previousBills/fetchPreviousBillsEpic.js +66 -0
- package/lib/view/spendManagement/billPay/previousBills/previousBillsPayload.d.ts +24 -0
- package/lib/view/spendManagement/billPay/previousBills/previousBillsPayload.js +2 -0
- package/lib/view/spendManagement/billPay/wiseRedirectView/wiseRedirectEpic.d.ts +7 -0
- package/lib/view/spendManagement/billPay/wiseRedirectView/wiseRedirectEpic.js +32 -0
- package/lib/view/spendManagement/billPay/wiseRedirectView/wiseRedirectSelector.d.ts +3 -0
- package/lib/view/spendManagement/billPay/wiseRedirectView/wiseRedirectSelector.js +12 -0
- package/lib/view/spendManagement/chargeCards/chargeCardConfig/fetchChargeCardConfigEpic.d.ts +7 -0
- package/lib/view/spendManagement/chargeCards/chargeCardConfig/fetchChargeCardConfigEpic.js +23 -0
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.d.ts +18 -0
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.js +73 -0
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailEpic.d.ts +11 -0
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailEpic.js +58 -0
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailPageEpic.d.ts +7 -0
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailPageEpic.js +45 -0
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardTransactionListEpic.d.ts +8 -0
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardTransactionListEpic.js +44 -0
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/updateChargeCardDetailEpic.d.ts +11 -0
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/updateChargeCardDetailEpic.js +60 -0
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.d.ts +31 -0
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +92 -0
- package/lib/view/spendManagement/chargeCards/chargeCardList/fetchChargeCardListEpic.d.ts +10 -0
- package/lib/view/spendManagement/chargeCards/chargeCardList/fetchChargeCardListEpic.js +26 -0
- package/lib/view/spendManagement/chargeCards/chargeCardList/fetchChargeCardListPageEpic.d.ts +9 -0
- package/lib/view/spendManagement/chargeCards/chargeCardList/fetchChargeCardListPageEpic.js +51 -0
- package/lib/view/spendManagement/chargeCards/chargeCardList/fetchCreditAccountEpic.d.ts +7 -0
- package/lib/view/spendManagement/chargeCards/chargeCardList/fetchCreditAccountEpic.js +23 -0
- package/lib/view/spendManagement/chargeCards/chargeCardList/issueChargeCardEpic.d.ts +11 -0
- package/lib/view/spendManagement/chargeCards/chargeCardList/issueChargeCardEpic.js +65 -0
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewPayload.d.ts +6 -0
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewPayload.js +2 -0
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewSelector.d.ts +18 -0
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewSelector.js +33 -0
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/epic/acceptChargeCardTermsEpic.d.ts +11 -0
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/epic/acceptChargeCardTermsEpic.js +44 -0
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/epic/fetchChargeCardSetupViewEpic.d.ts +16 -0
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/epic/fetchChargeCardSetupViewEpic.js +70 -0
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/types/chargeCardTerms.d.ts +10 -0
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/types/chargeCardTerms.js +2 -0
- package/lib/view/spendManagement/commonHistoryView/fetchEntityHistoryEpic.d.ts +7 -0
- package/lib/view/spendManagement/commonHistoryView/fetchEntityHistoryEpic.js +61 -0
- package/lib/view/spendManagement/commonSetup/epic/paymentAccounts/getPaymentAccountsEpic.d.ts +9 -0
- package/lib/view/spendManagement/commonSetup/epic/paymentAccounts/getPaymentAccountsEpic.js +33 -0
- package/lib/view/spendManagement/commonSetup/epic/paymentAccounts/updatePaymentAccountEpic.d.ts +9 -0
- package/lib/view/spendManagement/commonSetup/epic/paymentAccounts/updatePaymentAccountEpic.js +31 -0
- package/lib/view/spendManagement/commonSetup/epic/paymentAccounts/updatePaymentAccountLoginStatusEpic.d.ts +10 -0
- package/lib/view/spendManagement/commonSetup/epic/paymentAccounts/updatePaymentAccountLoginStatusEpic.js +37 -0
- package/lib/view/spendManagement/commonSetup/epic/paymentAccounts/updatePaymentAccountStatusEpic.d.ts +10 -0
- package/lib/view/spendManagement/commonSetup/epic/paymentAccounts/updatePaymentAccountStatusEpic.js +37 -0
- package/lib/view/spendManagement/commonSetup/epic/plaidConnection/establishPlaidConnectionEpic.d.ts +13 -0
- package/lib/view/spendManagement/commonSetup/epic/plaidConnection/establishPlaidConnectionEpic.js +70 -0
- package/lib/view/spendManagement/commonSetup/epic/plaidConnection/getPlaidLinkTokenEpic.d.ts +15 -0
- package/lib/view/spendManagement/commonSetup/epic/plaidConnection/getPlaidLinkTokenEpic.js +52 -0
- package/lib/view/spendManagement/commonSetup/epic/setup/enableSetupEpic.d.ts +10 -0
- package/lib/view/spendManagement/commonSetup/epic/setup/enableSetupEpic.js +52 -0
- package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.d.ts +25 -0
- package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +248 -0
- package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.d.ts +14 -0
- package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +135 -0
- package/lib/view/spendManagement/commonSetup/setupViewPayload.d.ts +21 -0
- package/lib/view/spendManagement/commonSetup/setupViewPayload.js +2 -0
- package/lib/view/spendManagement/commonSetup/types/paymentAccount.d.ts +10 -0
- package/lib/view/spendManagement/commonSetup/types/paymentAccount.js +2 -0
- package/lib/view/spendManagement/commonSetup/types/plaidConnection.d.ts +6 -0
- package/lib/view/spendManagement/commonSetup/types/plaidConnection.js +2 -0
- package/lib/view/spendManagement/merchantList/fetchMerchantListEpic.d.ts +10 -0
- package/lib/view/spendManagement/merchantList/fetchMerchantListEpic.js +31 -0
- package/lib/view/spendManagement/realTimeApprovalView/realTimeApprovalPayload.d.ts +8 -0
- package/lib/view/spendManagement/realTimeApprovalView/realTimeApprovalPayload.js +2 -0
- package/lib/view/spendManagement/realTimeApprovalView/saveRealTimeApprovalEpic.d.ts +11 -0
- package/lib/view/spendManagement/realTimeApprovalView/saveRealTimeApprovalEpic.js +127 -0
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchCurrencyConversionValueEpic.d.ts +7 -0
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchCurrencyConversionValueEpic.js +63 -0
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchEditRemiDetailPageEpic.d.ts +13 -0
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchEditRemiDetailPageEpic.js +78 -0
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRecommendationsAndUpdateMerchantRecommendationsEpic.d.ts +16 -0
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRecommendationsAndUpdateMerchantRecommendationsEpic.js +127 -0
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.d.ts +12 -0
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.js +56 -0
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/parseReceiptsToRemiEpic.d.ts +10 -0
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/parseReceiptsToRemiEpic.js +165 -0
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/saveRemiDetailEpic.d.ts +15 -0
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/saveRemiDetailEpic.js +123 -0
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/fetchReimbursementConfigEpic.d.ts +8 -0
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/fetchReimbursementConfigEpic.js +25 -0
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/approveOrRejectRemiEpic.d.ts +11 -0
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/approveOrRejectRemiEpic.js +57 -0
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/cancelAndDeleteRemiEpic.d.ts +9 -0
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/cancelAndDeleteRemiEpic.js +66 -0
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/deleteRemiEpic.d.ts +9 -0
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/deleteRemiEpic.js +55 -0
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/fetchDuplicateReimbursementEpic.d.ts +7 -0
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/fetchDuplicateReimbursementEpic.js +66 -0
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/fetchRemiDetailEpic.d.ts +19 -0
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/fetchRemiDetailEpic.js +116 -0
- package/lib/view/spendManagement/reimbursement/remiListView/fetchRemiListEpic.d.ts +7 -0
- package/lib/view/spendManagement/reimbursement/remiListView/fetchRemiListEpic.js +42 -0
- package/lib/view/spendManagement/reimbursement/remiListView/fetchRemiListPerTabEpic.d.ts +10 -0
- package/lib/view/spendManagement/reimbursement/remiListView/fetchRemiListPerTabEpic.js +51 -0
- package/lib/view/spendManagement/reimbursement/remiListView/remiListDownloadSelector.d.ts +14 -0
- package/lib/view/spendManagement/reimbursement/remiListView/remiListDownloadSelector.js +75 -0
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/deleteRemiApprovalRuleEpic.d.ts +10 -0
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/deleteRemiApprovalRuleEpic.js +40 -0
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiApproversDetailsEpic.d.ts +7 -0
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiApproversDetailsEpic.js +29 -0
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiApproversListEpic.d.ts +10 -0
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiApproversListEpic.js +40 -0
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiSetupApproverViewEpic.d.ts +9 -0
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiSetupApproverViewEpic.js +42 -0
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/initializeRemiSetupApproverViewUpdateDataEpic.d.ts +5 -0
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/initializeRemiSetupApproverViewUpdateDataEpic.js +37 -0
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/saveRemiSetupApproverViewUpdatesEpic.d.ts +10 -0
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/saveRemiSetupApproverViewUpdatesEpic.js +67 -0
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewPayload.d.ts +14 -0
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewPayload.js +2 -0
- package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/fetchRemiSetupViewEpic.d.ts +16 -0
- package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/fetchRemiSetupViewEpic.js +72 -0
- package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/updateMileageDetailsEpic.d.ts +16 -0
- package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/updateMileageDetailsEpic.js +80 -0
- package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/updateRemiSetupViewLocalStoreDataEpic.d.ts +13 -0
- package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/updateRemiSetupViewLocalStoreDataEpic.js +41 -0
- package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiTerms/acceptEmployeeRemiTermsEpic.d.ts +9 -0
- package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiTerms/acceptEmployeeRemiTermsEpic.js +38 -0
- package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiTerms/acceptRemiTermsEpic.d.ts +11 -0
- package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiTerms/acceptRemiTermsEpic.js +44 -0
- package/lib/view/spendManagement/reimbursement/remiSetupView/remiSetupViewPayload.d.ts +6 -0
- package/lib/view/spendManagement/reimbursement/remiSetupView/remiSetupViewPayload.js +2 -0
- package/lib/view/spendManagement/reimbursement/remiSetupView/remiSetupViewSelector.d.ts +26 -0
- package/lib/view/spendManagement/reimbursement/remiSetupView/remiSetupViewSelector.js +44 -0
- package/lib/view/spendManagement/reimbursement/remiSetupView/types/remiTerms.d.ts +14 -0
- package/lib/view/spendManagement/reimbursement/remiSetupView/types/remiTerms.js +2 -0
- package/lib/view/spendManagement/zeniAccounts/checkDeposit/checkDepositEpic.d.ts +8 -0
- package/lib/view/spendManagement/zeniAccounts/checkDeposit/checkDepositEpic.js +49 -0
- package/lib/view/spendManagement/zeniAccounts/checkDeposit/checkDepositSelector.d.ts +15 -0
- package/lib/view/spendManagement/zeniAccounts/checkDeposit/checkDepositSelector.js +32 -0
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/depositAccountDetailSelector.d.ts +26 -0
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/depositAccountDetailSelector.js +87 -0
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountDetailEpic.d.ts +11 -0
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountDetailEpic.js +53 -0
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountEpic.d.ts +8 -0
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountEpic.js +36 -0
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountHistoryEpic.d.ts +7 -0
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountHistoryEpic.js +38 -0
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/updateDepositAccountEpic.d.ts +9 -0
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/updateDepositAccountEpic.js +68 -0
- package/lib/view/spendManagement/zeniAccounts/depositAccountList/fetchDepositAccountListEpic.d.ts +9 -0
- package/lib/view/spendManagement/zeniAccounts/depositAccountList/fetchDepositAccountListEpic.js +38 -0
- package/lib/view/spendManagement/zeniAccounts/depositAccountTransactionList/depositAccountTransactionListPayload.d.ts +17 -0
- package/lib/view/spendManagement/zeniAccounts/depositAccountTransactionList/depositAccountTransactionListPayload.js +2 -0
- package/lib/view/spendManagement/zeniAccounts/depositAccountTransactionList/depositAccountTransactionListSelector.d.ts +9 -0
- package/lib/view/spendManagement/zeniAccounts/depositAccountTransactionList/depositAccountTransactionListSelector.js +26 -0
- package/lib/view/spendManagement/zeniAccounts/depositAccountTransactionList/fetchDepositAccountTransactionListEpic.d.ts +8 -0
- package/lib/view/spendManagement/zeniAccounts/depositAccountTransactionList/fetchDepositAccountTransactionListEpic.js +58 -0
- package/lib/view/spendManagement/zeniAccounts/paymentAccountList/fetchPaymentAccountListEpic.d.ts +9 -0
- package/lib/view/spendManagement/zeniAccounts/paymentAccountList/fetchPaymentAccountListEpic.js +35 -0
- package/lib/view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountListPayload.d.ts +3 -0
- package/lib/view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountListPayload.js +2 -0
- package/lib/view/spendManagement/zeniAccounts/paymentAccountList/unlinkPaymentAccountEpic.d.ts +8 -0
- package/lib/view/spendManagement/zeniAccounts/paymentAccountList/unlinkPaymentAccountEpic.js +54 -0
- package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailPayload.d.ts +9 -0
- package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailPayload.js +2 -0
- package/lib/view/spendManagement/zeniAccounts/transferDetail/transferMoneyEpic.d.ts +9 -0
- package/lib/view/spendManagement/zeniAccounts/transferDetail/transferMoneyEpic.js +58 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/createCheckingAccountEpic.d.ts +10 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/createCheckingAccountEpic.js +69 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/fetchZeniAccountListPageEpic.d.ts +9 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/fetchZeniAccountListPageEpic.js +38 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.d.ts +22 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.js +59 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/epic/acceptZeniAccountTermsEpic.d.ts +11 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/epic/acceptZeniAccountTermsEpic.js +45 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/epic/fetchZeniAccountSetupViewEpic.d.ts +16 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/epic/fetchZeniAccountSetupViewEpic.js +71 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/types/zeniAccountTerms.d.ts +10 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/types/zeniAccountTerms.js +2 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewPayload.d.ts +6 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewPayload.js +2 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewSelector.d.ts +18 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewSelector.js +33 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/fetchZeniAccountsConfigEpic.d.ts +8 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/fetchZeniAccountsConfigEpic.js +33 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.d.ts +14 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.js +23 -0
- package/lib/view/subscriptionView/epic/fetchSubscriptionAddOnsEpic.d.ts +8 -0
- package/lib/view/subscriptionView/epic/fetchSubscriptionAddOnsEpic.js +39 -0
- package/lib/view/subscriptionView/epic/fetchSubscriptionCouponsEpic.d.ts +8 -0
- package/lib/view/subscriptionView/epic/fetchSubscriptionCouponsEpic.js +39 -0
- package/lib/view/subscriptionView/epic/fetchSubscriptionCreateEstimateEpic.d.ts +7 -0
- package/lib/view/subscriptionView/epic/fetchSubscriptionCreateEstimateEpic.js +49 -0
- package/lib/view/subscriptionView/epic/fetchSubscriptionDetailsEpic.d.ts +12 -0
- package/lib/view/subscriptionView/epic/fetchSubscriptionDetailsEpic.js +73 -0
- package/lib/view/subscriptionView/epic/fetchSubscriptionListEpic.d.ts +22 -0
- package/lib/view/subscriptionView/epic/fetchSubscriptionListEpic.js +87 -0
- package/lib/view/subscriptionView/epic/fetchSubscriptionPlansEpic.d.ts +8 -0
- package/lib/view/subscriptionView/epic/fetchSubscriptionPlansEpic.js +38 -0
- package/lib/view/subscriptionView/epic/fetchSubscriptionUpdateEstimateEpic.d.ts +7 -0
- package/lib/view/subscriptionView/epic/fetchSubscriptionUpdateEstimateEpic.js +52 -0
- package/lib/view/subscriptionView/epic/initializeSubscriptionLocalDataEpic.d.ts +5 -0
- package/lib/view/subscriptionView/epic/initializeSubscriptionLocalDataEpic.js +44 -0
- package/lib/view/subscriptionView/epic/saveSubscriptionNotesUpdatesEpic.d.ts +7 -0
- package/lib/view/subscriptionView/epic/saveSubscriptionNotesUpdatesEpic.js +36 -0
- package/lib/view/subscriptionView/epic/saveSubscriptionUpdatesEpic.d.ts +11 -0
- package/lib/view/subscriptionView/epic/saveSubscriptionUpdatesEpic.js +92 -0
- package/lib/view/subscriptionView/reduceSubscriptionViewFetchState.d.ts +3 -0
- package/lib/view/subscriptionView/reduceSubscriptionViewFetchState.js +49 -0
- package/lib/view/subscriptionView/selectorHelpers.d.ts +4 -0
- package/lib/view/subscriptionView/selectorHelpers.js +33 -0
- package/lib/view/subscriptionView/subscriptionViewPayload.d.ts +78 -0
- package/lib/view/subscriptionView/subscriptionViewPayload.js +42 -0
- package/lib/view/subscriptionView/subscriptionViewSelector.d.ts +7 -0
- package/lib/view/subscriptionView/subscriptionViewSelector.js +416 -0
- package/lib/view/subscriptionView/subscriptionViewSelectorTypes.d.ts +56 -0
- package/lib/view/subscriptionView/subscriptionViewSelectorTypes.js +2 -0
- package/lib/view/taskManager/taskDetailView/epics/archiveTaskEpic.d.ts +15 -0
- package/lib/view/taskManager/taskDetailView/epics/archiveTaskEpic.js +69 -0
- package/lib/view/taskManager/taskDetailView/epics/deleteTaskEpic.d.ts +7 -0
- package/lib/view/taskManager/taskDetailView/epics/deleteTaskEpic.js +46 -0
- package/lib/view/taskManager/taskDetailView/epics/fetchTaskDetailEpic.d.ts +9 -0
- package/lib/view/taskManager/taskDetailView/epics/fetchTaskDetailEpic.js +66 -0
- package/lib/view/taskManager/taskDetailView/epics/fetchTaskDetailPageEpic.d.ts +8 -0
- package/lib/view/taskManager/taskDetailView/epics/fetchTaskDetailPageEpic.js +38 -0
- package/lib/view/taskManager/taskDetailView/epics/fetchTaskHistoryEpic.d.ts +7 -0
- package/lib/view/taskManager/taskDetailView/epics/fetchTaskHistoryEpic.js +54 -0
- package/lib/view/taskManager/taskDetailView/epics/initializeTaskToLocalStoreEpic.d.ts +6 -0
- package/lib/view/taskManager/taskDetailView/epics/initializeTaskToLocalStoreEpic.js +36 -0
- package/lib/view/taskManager/taskDetailView/epics/saveTaskDetailEpic.d.ts +8 -0
- package/lib/view/taskManager/taskDetailView/epics/saveTaskDetailEpic.js +79 -0
- package/lib/view/taskManager/taskDetailView/taskDetailSelector.d.ts +25 -0
- package/lib/view/taskManager/taskDetailView/taskDetailSelector.js +182 -0
- package/lib/view/taskManager/taskListView/fetchTaskListEpic.d.ts +8 -0
- package/lib/view/taskManager/taskListView/fetchTaskListEpic.js +33 -0
- package/lib/view/taskManager/taskListView/fetchTaskListPageEpic.d.ts +8 -0
- package/lib/view/taskManager/taskListView/fetchTaskListPageEpic.js +32 -0
- package/lib/view/taskManager/taskListView/taskListPayload.d.ts +6 -0
- package/lib/view/taskManager/taskListView/taskListPayload.js +2 -0
- package/lib/view/tasksCard/fetchTasksCardEpic.d.ts +14 -0
- package/lib/view/tasksCard/fetchTasksCardEpic.js +19 -0
- package/lib/view/tasksCard/tasksCardSelector.d.ts +20 -0
- package/lib/view/tasksCard/tasksCardSelector.js +53 -0
- package/lib/view/topEx/topExSelector.d.ts +38 -0
- package/lib/view/topEx/topExSelector.js +69 -0
- package/lib/view/topEx/topExSelectorTypes.d.ts +35 -0
- package/lib/view/topEx/topExSelectorTypes.js +2 -0
- package/lib/view/transactionDetail/epics/initializeTransactionDetailLocalDataEpic.d.ts +5 -0
- package/lib/view/transactionDetail/epics/initializeTransactionDetailLocalDataEpic.js +28 -0
- package/lib/view/transactionDetail/epics/markTransactionAsNotMiscategorizedEpic.d.ts +8 -0
- package/lib/view/transactionDetail/epics/markTransactionAsNotMiscategorizedEpic.js +52 -0
- package/lib/view/transactionDetail/epics/saveTransactionDetailEpic.d.ts +5 -0
- package/lib/view/transactionDetail/epics/saveTransactionDetailEpic.js +32 -0
- package/lib/view/transactionDetail/epics/saveTransactionHelper.d.ts +21 -0
- package/lib/view/transactionDetail/epics/saveTransactionHelper.js +288 -0
- package/lib/view/transactionDetail/epics/transactionDetailEpic.d.ts +14 -0
- package/lib/view/transactionDetail/epics/transactionDetailEpic.js +130 -0
- package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.d.ts +9 -0
- package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +214 -0
- package/lib/view/transactionDetail/epics/uploadMissingReceiptSuccessEpic.d.ts +10 -0
- package/lib/view/transactionDetail/epics/uploadMissingReceiptSuccessEpic.js +15 -0
- package/lib/view/transactionDetail/transactionDetailPayload.d.ts +34 -0
- package/lib/view/transactionDetail/transactionDetailPayload.js +2 -0
- package/lib/view/transactionDetail/transactionDetailSelector.d.ts +34 -0
- package/lib/view/transactionDetail/transactionDetailSelector.js +168 -0
- package/lib/view/transactionList/fetchTransactionListByAccountEpic.d.ts +8 -0
- package/lib/view/transactionList/fetchTransactionListByAccountEpic.js +58 -0
- package/lib/view/transactionList/fetchTransactionListByClassEpic.d.ts +8 -0
- package/lib/view/transactionList/fetchTransactionListByClassEpic.js +53 -0
- package/lib/view/transactionList/fetchTransactionListByEntityEpic.d.ts +8 -0
- package/lib/view/transactionList/fetchTransactionListByEntityEpic.js +53 -0
- package/lib/view/transactionList/fetchTransactionsListByCategoryTypeEpic.d.ts +8 -0
- package/lib/view/transactionList/fetchTransactionsListByCategoryTypeEpic.js +71 -0
- package/lib/view/transactionList/parallelFetchClassTransactionListEpic.d.ts +12 -0
- package/lib/view/transactionList/parallelFetchClassTransactionListEpic.js +84 -0
- package/lib/view/transactionList/parallelFetchEntityTransactionListEpic.d.ts +14 -0
- package/lib/view/transactionList/parallelFetchEntityTransactionListEpic.js +90 -0
- package/lib/view/transactionList/parallelFetchTransactionListByCategoryTypeEpic.d.ts +6 -0
- package/lib/view/transactionList/parallelFetchTransactionListByCategoryTypeEpic.js +36 -0
- package/lib/view/transactionList/transactionListByAccountSelector.d.ts +21 -0
- package/lib/view/transactionList/transactionListByAccountSelector.js +65 -0
- package/lib/view/transactionList/transactionListByCategoryTypeSelector.d.ts +15 -0
- package/lib/view/transactionList/transactionListByCategoryTypeSelector.js +54 -0
- package/lib/view/transactionList/transactionListByClassSelector.d.ts +22 -0
- package/lib/view/transactionList/transactionListByClassSelector.js +66 -0
- package/lib/view/trend/fetchExpenseTrendEpic.d.ts +8 -0
- package/lib/view/trend/fetchExpenseTrendEpic.js +59 -0
- package/lib/view/trend/fetchIncomeTrendEpic.d.ts +7 -0
- package/lib/view/trend/fetchIncomeTrendEpic.js +56 -0
- package/lib/view/trendWithTransactions/fetchTransactionsForEntityEpic.d.ts +7 -0
- package/lib/view/trendWithTransactions/fetchTransactionsForEntityEpic.js +18 -0
- package/lib/view/trendWithTransactions/fetchTrendForEntityEpic.d.ts +7 -0
- package/lib/view/trendWithTransactions/fetchTrendForEntityEpic.js +20 -0
- package/lib/view/twoFactorAuthentication/resendOtpEpic.d.ts +10 -0
- package/lib/view/twoFactorAuthentication/resendOtpEpic.js +90 -0
- package/lib/view/twoFactorAuthentication/sendOtpEpic.d.ts +10 -0
- package/lib/view/twoFactorAuthentication/sendOtpEpic.js +93 -0
- package/lib/view/twoFactorAuthentication/verifyOtpEpic.d.ts +10 -0
- package/lib/view/twoFactorAuthentication/verifyOtpEpic.js +90 -0
- package/lib/view/userFinancialAccount/fetchUserFinancialAccountEpic.d.ts +12 -0
- package/lib/view/userFinancialAccount/fetchUserFinancialAccountEpic.js +55 -0
- package/lib/view/userFinancialAccount/userFinancialAccountSelector.d.ts +14 -0
- package/lib/view/userFinancialAccount/userFinancialAccountSelector.js +35 -0
- package/lib/view/userListView/fetchUserListByTypeEpic.d.ts +30 -0
- package/lib/view/userListView/fetchUserListByTypeEpic.js +55 -0
- package/lib/view/userListView/userListViewPayload.d.ts +8 -0
- package/lib/view/userListView/userListViewPayload.js +2 -0
- package/lib/view/userRoleConfigView/userRoleConfigEpic.d.ts +7 -0
- package/lib/view/userRoleConfigView/userRoleConfigEpic.js +29 -0
- package/lib/view/userRoleConfigView/userRoleConfigSelector.d.ts +12 -0
- package/lib/view/userRoleConfigView/userRoleConfigSelector.js +12 -0
- package/lib/view/vendorList/fetchVendorsListEpic.d.ts +17 -0
- package/lib/view/vendorList/fetchVendorsListEpic.js +95 -0
- package/lib/view/vendorList/vendorListSelector.d.ts +29 -0
- package/lib/view/vendorList/vendorListSelector.js +78 -0
- package/lib/view/vendorReviewView/vendorFirstReviewView/epics/fetchVendorFirstReviewViewEpic.d.ts +17 -0
- package/lib/view/vendorReviewView/vendorFirstReviewView/epics/fetchVendorFirstReviewViewEpic.js +94 -0
- package/lib/view/vendorReviewView/vendorFirstReviewView/epics/saveVendorFirstReviewViewEpic.d.ts +10 -0
- package/lib/view/vendorReviewView/vendorFirstReviewView/epics/saveVendorFirstReviewViewEpic.js +201 -0
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewSelector.d.ts +39 -0
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewSelector.js +97 -0
- package/lib/view/vendorReviewView/vendorGlobalReviewView/epics/approveVendorGlobalReviewEpic.d.ts +7 -0
- package/lib/view/vendorReviewView/vendorGlobalReviewView/epics/approveVendorGlobalReviewEpic.js +119 -0
- package/lib/view/vendorReviewView/vendorGlobalReviewView/epics/fetchVendorGlobalReviewViewEpic.d.ts +17 -0
- package/lib/view/vendorReviewView/vendorGlobalReviewView/epics/fetchVendorGlobalReviewViewEpic.js +96 -0
- package/lib/view/vendorReviewView/vendorGlobalReviewView/epics/rejectVendorGlobalReviewEpic.d.ts +7 -0
- package/lib/view/vendorReviewView/vendorGlobalReviewView/epics/rejectVendorGlobalReviewEpic.js +92 -0
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewSelector.d.ts +22 -0
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewSelector.js +58 -0
- package/lib/view/vendorTypeList/vendorTypeListEpic.d.ts +7 -0
- package/lib/view/vendorTypeList/vendorTypeListEpic.js +23 -0
- package/lib/view/vendorTypeList/vendorTypeSelector.d.ts +12 -0
- package/lib/view/vendorTypeList/vendorTypeSelector.js +12 -0
- package/lib/view/zeniAccStatementList/fetchZeniAccStatementListEpic.d.ts +7 -0
- package/lib/view/zeniAccStatementList/fetchZeniAccStatementListEpic.js +37 -0
- package/lib/view/zeniAccStatementList/fetchZeniAccStatementPageEpic.d.ts +7 -0
- package/lib/view/zeniAccStatementList/fetchZeniAccStatementPageEpic.js +37 -0
- package/lib/view/zeniAccStatementList/zeniAccStatementListSelector.d.ts +10 -0
- package/lib/view/zeniAccStatementList/zeniAccStatementListSelector.js +40 -0
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardEpic.d.ts +13 -0
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardEpic.js +20 -0
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardSelector.d.ts +14 -0
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardSelector.js +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.initializeBillToLocalStoreEpic = exports.getLineRecommendationsLocalData = void 0;
|
|
7
|
+
const rxjs_1 = require("rxjs");
|
|
8
|
+
const operators_1 = require("rxjs/operators");
|
|
9
|
+
const get_1 = __importDefault(require("lodash/get"));
|
|
10
|
+
const editBillViewReducer_1 = require("../editBillViewReducer");
|
|
11
|
+
const billDetailViewState_1 = require("../../billDetailView/billDetailViewState");
|
|
12
|
+
const vendorSelector_1 = require("../../../../../entity/vendor/vendorSelector");
|
|
13
|
+
const editBillViewState_1 = require("../editBillViewState");
|
|
14
|
+
const editBillViewSelector_1 = require("../editBillViewSelector");
|
|
15
|
+
const accountListSelector_1 = require("../../../../accountList/accountListSelector");
|
|
16
|
+
const classListSelector_1 = require("../../../../classList/classListSelector");
|
|
17
|
+
const workingDayHelper_1 = require("../../../../../commonStateTypes/workingDayHelper");
|
|
18
|
+
const zeniDayJS_1 = require("../../../../../zeniDayJS");
|
|
19
|
+
const companySelector_1 = require("../../../../../entity/company/companySelector");
|
|
20
|
+
const isClassRecommendation = (recommendations, classObj) => {
|
|
21
|
+
if (classObj == null) {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
return Boolean(recommendations.find((rec) => { var _a; return ((_a = rec.class) === null || _a === void 0 ? void 0 : _a.classId) === classObj.classId; }));
|
|
25
|
+
};
|
|
26
|
+
const isCategoryRecommendation = (recommendations, account) => {
|
|
27
|
+
if (account == null) {
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
return Boolean(recommendations.find((rec) => { var _a; return ((_a = rec.account) === null || _a === void 0 ? void 0 : _a.qboId) === account.qboId; }));
|
|
31
|
+
};
|
|
32
|
+
const getLineRecommendationsLocalData = (lineId, line, recommendations, accountList, classList, vendorDetails) => {
|
|
33
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
34
|
+
const lineDetails = line;
|
|
35
|
+
let recommendationForLine = (_a = recommendations === null || recommendations === void 0 ? void 0 : recommendations[lineId]) !== null && _a !== void 0 ? _a : [];
|
|
36
|
+
if (recommendationForLine.length === 0 &&
|
|
37
|
+
(vendorDetails === null || vendorDetails === void 0 ? void 0 : vendorDetails.recommendations) != null &&
|
|
38
|
+
(vendorDetails === null || vendorDetails === void 0 ? void 0 : vendorDetails.recommendations.length) > 0) {
|
|
39
|
+
recommendationForLine = vendorDetails === null || vendorDetails === void 0 ? void 0 : vendorDetails.recommendations;
|
|
40
|
+
}
|
|
41
|
+
if (recommendationForLine.length === 0) {
|
|
42
|
+
return Object.assign(Object.assign({}, lineDetails), editBillViewState_1.defaultRecommendationStateObj);
|
|
43
|
+
}
|
|
44
|
+
const [firstRecommendations] = recommendationForLine;
|
|
45
|
+
const firstRecommendationForCategory = firstRecommendations === null || firstRecommendations === void 0 ? void 0 : firstRecommendations.account;
|
|
46
|
+
const firstRecommendationForClass = firstRecommendations === null || firstRecommendations === void 0 ? void 0 : firstRecommendations.class;
|
|
47
|
+
// Check the existing values for class and category, if they exist, set those values in the retainedClass
|
|
48
|
+
let originalCategory = lineDetails === null || lineDetails === void 0 ? void 0 : lineDetails.account;
|
|
49
|
+
let originalClass = lineDetails === null || lineDetails === void 0 ? void 0 : lineDetails.class;
|
|
50
|
+
if (Boolean(originalCategory === null || originalCategory === void 0 ? void 0 : originalCategory.qboId) === false) {
|
|
51
|
+
originalCategory = undefined;
|
|
52
|
+
}
|
|
53
|
+
if (Boolean(originalClass === null || originalClass === void 0 ? void 0 : originalClass.classId) === false) {
|
|
54
|
+
originalClass = undefined;
|
|
55
|
+
}
|
|
56
|
+
let newClass = undefined;
|
|
57
|
+
let newAccount = undefined;
|
|
58
|
+
if (originalCategory == null && vendorDetails != null) {
|
|
59
|
+
const vendorAccount = accountList.accounts.find((acc) => acc.qboId === vendorDetails.qboId);
|
|
60
|
+
if (firstRecommendationForCategory != null) {
|
|
61
|
+
newAccount = firstRecommendationForCategory;
|
|
62
|
+
}
|
|
63
|
+
else if (vendorAccount != null) {
|
|
64
|
+
newAccount = vendorAccount !== null && vendorAccount !== void 0 ? vendorAccount : (_b = vendorDetails.recommendations[0]) === null || _b === void 0 ? void 0 : _b.account;
|
|
65
|
+
}
|
|
66
|
+
else if (((_c = vendorDetails.recommendations[0]) === null || _c === void 0 ? void 0 : _c.account) != null) {
|
|
67
|
+
newAccount = (_d = vendorDetails.recommendations[0]) === null || _d === void 0 ? void 0 : _d.account;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
if (originalClass == null && vendorDetails != null) {
|
|
71
|
+
const vendorClass = classList.classes.find((classObj) => classObj.classId === vendorDetails.classId);
|
|
72
|
+
if (firstRecommendationForClass != null) {
|
|
73
|
+
newClass = firstRecommendationForClass;
|
|
74
|
+
}
|
|
75
|
+
else if (vendorClass != null) {
|
|
76
|
+
newClass = vendorClass !== null && vendorClass !== void 0 ? vendorClass : (_e = vendorDetails.recommendations[0]) === null || _e === void 0 ? void 0 : _e.class;
|
|
77
|
+
}
|
|
78
|
+
else if (((_f = vendorDetails.recommendations[0]) === null || _f === void 0 ? void 0 : _f.class) != null) {
|
|
79
|
+
newClass = (_g = vendorDetails.recommendations[0]) === null || _g === void 0 ? void 0 : _g.class;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
const isOriginalClassRecommendation = isClassRecommendation(recommendationForLine, originalClass);
|
|
83
|
+
const isOriginalCategoryRecommendation = isCategoryRecommendation(recommendationForLine, originalCategory);
|
|
84
|
+
// first time auto-fill only once on init, no need for condition to check
|
|
85
|
+
// if both category and class are already autofilled(true) don't auto-fill
|
|
86
|
+
const newViewStateValues = Object.assign(Object.assign({}, lineDetails), { recommendedCategory: firstRecommendationForCategory, isCategoryFirstTimeAutofilled: Boolean(firstRecommendationForCategory === null || firstRecommendationForCategory === void 0 ? void 0 : firstRecommendationForCategory.qboId), isCategoryUpdateSelected: false, isRetainedCategorySelected: false, retainedCategory: isOriginalCategoryRecommendation
|
|
87
|
+
? undefined
|
|
88
|
+
: originalCategory, account: originalCategory !== null && originalCategory !== void 0 ? originalCategory : newAccount, recommendedClass: firstRecommendationForClass, isClassFirstTimeAutofilled: Boolean(firstRecommendationForClass === null || firstRecommendationForClass === void 0 ? void 0 : firstRecommendationForClass.classId), isClassUpdateSelected: false, isRetainedClassSelected: false, retainedClass: isOriginalClassRecommendation ? undefined : originalClass, class: originalClass !== null && originalClass !== void 0 ? originalClass : newClass, isCategoryOrClassUpdated: false, updateAllCheckbox: false });
|
|
89
|
+
return newViewStateValues;
|
|
90
|
+
};
|
|
91
|
+
exports.getLineRecommendationsLocalData = getLineRecommendationsLocalData;
|
|
92
|
+
const initializeBillToLocalStoreEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(editBillViewReducer_1.initializeBillToLocalStore.match), (0, operators_1.mergeMap)((action) => {
|
|
93
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
94
|
+
const { billId } = action.payload;
|
|
95
|
+
const state = state$.value;
|
|
96
|
+
const detailKey = (0, billDetailViewState_1.getBillTransactionDetailKey)(billId);
|
|
97
|
+
const editBillState = (0, get_1.default)(state.editBillDetailViewState.editBillStateById, detailKey, undefined);
|
|
98
|
+
const billDetail = (0, get_1.default)(state.billDetailViewState.billDetailById, detailKey, undefined);
|
|
99
|
+
const transaction = (0, get_1.default)(state.billTransactionState.transactionById, billId, undefined);
|
|
100
|
+
const { accountListState, accountState, classListState, classState, recurringBillState, depositAccountState, paymentAccountState, } = state;
|
|
101
|
+
const accountList = (0, accountListSelector_1.getAccountList)(accountState, accountListState, 'billPayAccountList');
|
|
102
|
+
const classList = (0, classListSelector_1.getClassList)(classState, classListState);
|
|
103
|
+
const recommendations = transaction === null || transaction === void 0 ? void 0 : transaction.recommendations;
|
|
104
|
+
/* check vendor info is present in local store or not.
|
|
105
|
+
if vendor is not in local it means it's first visit
|
|
106
|
+
and we have to initialize local store
|
|
107
|
+
or updatesByLineId is empty that means we are toggling edit button
|
|
108
|
+
and we have to initialize line items data
|
|
109
|
+
else don't initialize again the local store.*/
|
|
110
|
+
if (billDetail != null &&
|
|
111
|
+
transaction != null &&
|
|
112
|
+
((editBillState === null || editBillState === void 0 ? void 0 : editBillState.billDetailLocalData.vendor) == null ||
|
|
113
|
+
(transaction.lines != null &&
|
|
114
|
+
transaction.lines.length > 0 &&
|
|
115
|
+
Object.keys((_a = editBillState === null || editBillState === void 0 ? void 0 : editBillState.billDetailLocalData.updatesByLineId) !== null && _a !== void 0 ? _a : {}).length === 0))) {
|
|
116
|
+
let vendor = (0, vendorSelector_1.getVendorByQboId)(state.vendorState, (_c = (_b = transaction.vendor) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : '');
|
|
117
|
+
if (vendor == null) {
|
|
118
|
+
//get suggestedVendorIdFromParsedInvoice
|
|
119
|
+
//search vendor with this vendor id
|
|
120
|
+
//check match score if it is greater than 85 assign it as final vendor
|
|
121
|
+
const suggestedVendorIdFromParsedInvoice = state.editBillDetailViewState.newBillState
|
|
122
|
+
.suggestedVendorIdFromParsedInvoice;
|
|
123
|
+
if (suggestedVendorIdFromParsedInvoice != null) {
|
|
124
|
+
const suggestedVendor = (0, vendorSelector_1.getVendorByVendorId)(state.vendorState, suggestedVendorIdFromParsedInvoice);
|
|
125
|
+
const matchScore = (_d = suggestedVendor === null || suggestedVendor === void 0 ? void 0 : suggestedVendor.matchScore) !== null && _d !== void 0 ? _d : 0;
|
|
126
|
+
if (matchScore > 85) {
|
|
127
|
+
vendor = suggestedVendor;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
const { tenantState, companyState } = state;
|
|
132
|
+
const { currentTenantId } = tenantState;
|
|
133
|
+
const companyId = currentTenantId != null
|
|
134
|
+
? (_f = (_e = tenantState.tenantsById) === null || _e === void 0 ? void 0 : _e[currentTenantId]) === null || _f === void 0 ? void 0 : _f.companyId
|
|
135
|
+
: undefined;
|
|
136
|
+
const currentCompany = (0, companySelector_1.getCompanyByCompanyId)(companyState, companyId !== null && companyId !== void 0 ? companyId : '');
|
|
137
|
+
const bookCloseDate = currentCompany === null || currentCompany === void 0 ? void 0 : currentCompany.company.companyInfo.bookCloseDate;
|
|
138
|
+
const whatForSection = {
|
|
139
|
+
invoiceNumber: transaction.documentId,
|
|
140
|
+
billDueDate: transaction.dueDate != null && transaction.date != null
|
|
141
|
+
? (0, editBillViewSelector_1.getDueDate)(transaction.dueDate, transaction.date, bookCloseDate)
|
|
142
|
+
: transaction.dueDate,
|
|
143
|
+
invoiceDate: (0, editBillViewSelector_1.getInvoiceDate)(transaction.date, bookCloseDate),
|
|
144
|
+
memo: transaction.memo,
|
|
145
|
+
currencyCode: transaction.amount.currencyCode,
|
|
146
|
+
isInvoiceDateAutoUpdated: transaction.date != null && bookCloseDate != null
|
|
147
|
+
? transaction.date.isBefore(bookCloseDate)
|
|
148
|
+
: false,
|
|
149
|
+
};
|
|
150
|
+
const updatesByLineId = {};
|
|
151
|
+
(_g = transaction.lines) === null || _g === void 0 ? void 0 : _g.forEach((line) => {
|
|
152
|
+
updatesByLineId[line.id] = Object.assign(Object.assign({}, line), (0, exports.getLineRecommendationsLocalData)(line.id, line, recommendations, accountList, classList, vendor));
|
|
153
|
+
});
|
|
154
|
+
const payNowCutOffTime = currentCompany === null || currentCompany === void 0 ? void 0 : currentCompany.company.companyBillPayInfo.payNowCutOffTimeByMethod.ach;
|
|
155
|
+
const isPayNowEnabled = payNowCutOffTime != null
|
|
156
|
+
? (0, zeniDayJS_1.dateNow)().isSameOrBefore(payNowCutOffTime)
|
|
157
|
+
: false;
|
|
158
|
+
const paymentDetailsSection = {
|
|
159
|
+
paymentType: (0, editBillViewSelector_1.getPaymentMethodType)(state.billPayConfigState, (_h = transaction.billPayInfo.fromAccount.billAccountType) !== null && _h !== void 0 ? _h : 'depositAccount', transaction.billPayInfo.billPaymentMethodType, transaction.billPayInfo.internationalTransferFeeBearerPaymentMethod),
|
|
160
|
+
paymentDate: (_j = transaction.billPayInfo.paymentDate) !== null && _j !== void 0 ? _j : (0, zeniDayJS_1.date)((0, workingDayHelper_1.getNextNthWorkingDay)((0, zeniDayJS_1.dateNow)().toDate(), [0, 6], isPayNowEnabled ? 0 : 1).toISOString()),
|
|
161
|
+
withdrawFrom: (0, editBillViewSelector_1.getWithdrawFrom)(paymentAccountState, depositAccountState, (_k = transaction.billPayInfo.fromAccount.billAccountId) !== null && _k !== void 0 ? _k : '', (_l = transaction.billPayInfo.fromAccount.billAccountType) !== null && _l !== void 0 ? _l : ''),
|
|
162
|
+
paymentTo: transaction.billPayInfo.toAccount.billAccountId != null &&
|
|
163
|
+
transaction.billPayInfo.toAccount.billAccountId.length > 0
|
|
164
|
+
? transaction.billPayInfo.toAccount.billAccountId
|
|
165
|
+
: undefined,
|
|
166
|
+
internationalTransferFeeBearerPaymentMethod: transaction.billPayInfo.internationalTransferFeeBearerPaymentMethod,
|
|
167
|
+
};
|
|
168
|
+
const totalAmount = transaction.amount;
|
|
169
|
+
const isCancelled = transaction.billPayInfo.isCancelled;
|
|
170
|
+
const file = (_m = transaction.attachments) === null || _m === void 0 ? void 0 : _m[0];
|
|
171
|
+
const candidateVendorname = transaction.candidateVendorName;
|
|
172
|
+
const toAccountVendorEmail = transaction.billPayInfo.toAccountVendorEmail;
|
|
173
|
+
const isCollectToAccountInfoFromVendorContact = transaction.billPayInfo.isCollectToAccountInfoFromVendorContact;
|
|
174
|
+
const isRecurring = transaction.isRecurring;
|
|
175
|
+
let recurringConfig;
|
|
176
|
+
let recurringBillInstances = undefined;
|
|
177
|
+
if (isRecurring) {
|
|
178
|
+
const { recurringConfigLocalData, recurringBillInstancesLocalData } = (0, editBillViewSelector_1.getRecurringBillLocalData)(recurringBillState, transaction);
|
|
179
|
+
recurringConfig = recurringConfigLocalData;
|
|
180
|
+
recurringBillInstances = recurringBillInstancesLocalData;
|
|
181
|
+
}
|
|
182
|
+
const billDetailLocalData = {
|
|
183
|
+
showVendorGptRecommendationText: false,
|
|
184
|
+
vendor,
|
|
185
|
+
whatForSection,
|
|
186
|
+
updatesByLineId,
|
|
187
|
+
paymentDetailsSection,
|
|
188
|
+
totalAmount,
|
|
189
|
+
isCancelled,
|
|
190
|
+
file,
|
|
191
|
+
candidateVendorname,
|
|
192
|
+
toAccountVendorEmail,
|
|
193
|
+
isCollectToAccountInfoFromVendorContact,
|
|
194
|
+
isRecurring,
|
|
195
|
+
recurringConfig,
|
|
196
|
+
recurringBillInstances,
|
|
197
|
+
};
|
|
198
|
+
const actions = [
|
|
199
|
+
(0, editBillViewReducer_1.saveBillUpdatesToLocalStore)({ billDetailLocalData, billId }),
|
|
200
|
+
(0, editBillViewReducer_1.updateEditBillFetchStateCompleted)({ billId }),
|
|
201
|
+
];
|
|
202
|
+
if ((vendor === null || vendor === void 0 ? void 0 : vendor.vendorCurrencyCode) != null &&
|
|
203
|
+
vendor.vendorCurrencyCode !== 'USD') {
|
|
204
|
+
actions.push((0, editBillViewReducer_1.convertAmountToHomeCurrency)(true, {
|
|
205
|
+
amount: totalAmount.amount,
|
|
206
|
+
currencyCode: vendor.vendorCurrencyCode,
|
|
207
|
+
currencySymbol: vendor.vendorCurrencySymbol,
|
|
208
|
+
}, 'USD', billId));
|
|
209
|
+
}
|
|
210
|
+
return (0, rxjs_1.from)(actions);
|
|
211
|
+
}
|
|
212
|
+
return (0, rxjs_1.from)([(0, editBillViewReducer_1.updateEditBillFetchStateCompleted)({ billId })]);
|
|
213
|
+
}));
|
|
214
|
+
exports.initializeBillToLocalStoreEpic = initializeBillToLocalStoreEpic;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { parseInvoiceToBill, saveBillUpdatesToLocalStore, updateAddBillAutoFields, updateBillUploadFetchState, updateShowAutofill } from '../editBillViewReducer';
|
|
4
|
+
import { RootState } from '../../../../../reducer';
|
|
5
|
+
import { fetchClassList } from '../../../../classList/classListReducer';
|
|
6
|
+
import { BillTransactionPayload } from '../../../../../entity/billPay/billTransaction/billTransactionPayload';
|
|
7
|
+
import { AddBillAutoFields, BillDetailLocalData } from '../editBillViewState';
|
|
8
|
+
import { Vendor } from '../../../../../entity/vendor/vendorState';
|
|
9
|
+
import { fetchPreviousBills } from '../../previousBills/previousBillsReducer';
|
|
10
|
+
import { fetchDuplicateBill } from '../../billPayReview/billPayReviewReducer';
|
|
11
|
+
export declare type ActionType = ReturnType<typeof parseInvoiceToBill> | ReturnType<typeof saveBillUpdatesToLocalStore> | ReturnType<typeof fetchClassList> | ReturnType<typeof fetchPreviousBills> | ReturnType<typeof fetchDuplicateBill> | ReturnType<typeof updateShowAutofill> | ReturnType<typeof updateAddBillAutoFields> | ReturnType<typeof updateBillUploadFetchState>;
|
|
12
|
+
export declare const parseInvoiceToBillEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
|
|
13
|
+
export declare const toBillDetailLocalData: (state: RootState, showVendorGptRecommendationText: boolean, billPayload: Partial<BillTransactionPayload>, vendor: Vendor | undefined, recommendedVendorId?: string | undefined) => BillDetailLocalData;
|
|
14
|
+
export declare const getAutoFieldsData: (finalBill: BillDetailLocalData, isVendorWithNewCurrency: boolean, tentativeVendorName?: string | undefined, currencyInInvoice?: string | undefined, vendorCurrency?: string | undefined) => AddBillAutoFields;
|
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAutoFieldsData = exports.toBillDetailLocalData = exports.parseInvoiceToBillEpic = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const editBillViewReducer_1 = require("../editBillViewReducer");
|
|
7
|
+
const editBillViewState_1 = require("../editBillViewState");
|
|
8
|
+
const zeniDayJS_1 = require("../../../../../zeniDayJS");
|
|
9
|
+
const transactionLinePayload_1 = require("../../../../../entity/transaction/payloadTypes/transactionLinePayload");
|
|
10
|
+
const amount_1 = require("../../../../../commonStateTypes/amount");
|
|
11
|
+
const previousBillsReducer_1 = require("../../previousBills/previousBillsReducer");
|
|
12
|
+
const accountSelector_1 = require("../../../../../entity/account/accountSelector");
|
|
13
|
+
const classSelector_1 = require("../../../../../entity/class/classSelector");
|
|
14
|
+
const attachmentPayload_1 = require("../../../../../entity/transaction/payloadTypes/attachmentPayload");
|
|
15
|
+
const billPayConfigSelector_1 = require("../../billPayConfig/billPayConfigSelector");
|
|
16
|
+
const billPayConfigState_1 = require("../../billPayConfig/billPayConfigState");
|
|
17
|
+
const vendorListSelector_1 = require("../../../../vendorList/vendorListSelector");
|
|
18
|
+
const vendorSelector_1 = require("../../../../../entity/vendor/vendorSelector");
|
|
19
|
+
const billPayReviewReducer_1 = require("../../billPayReview/billPayReviewReducer");
|
|
20
|
+
const classPayload_1 = require("../../../../../entity/class/classPayload");
|
|
21
|
+
const accountPayload_1 = require("../../../../../entity/account/accountPayload");
|
|
22
|
+
const editBillViewSelector_1 = require("../editBillViewSelector");
|
|
23
|
+
const classListSelector_1 = require("../../../../classList/classListSelector");
|
|
24
|
+
const accountListSelector_1 = require("../../../../accountList/accountListSelector");
|
|
25
|
+
const initializeBillToLocalStoreEpic_1 = require("./initializeBillToLocalStoreEpic");
|
|
26
|
+
const transactionPayload_1 = require("../../../../../entity/transaction/payloadTypes/transactionPayload");
|
|
27
|
+
const billPayConfigPayload_1 = require("../../billPayConfig/billPayConfigPayload");
|
|
28
|
+
const billTransactionState_1 = require("../../../../../entity/billPay/billTransaction/billTransactionState");
|
|
29
|
+
const workingDayHelper_1 = require("../../../../../commonStateTypes/workingDayHelper");
|
|
30
|
+
const companySelector_1 = require("../../../../../entity/company/companySelector");
|
|
31
|
+
const parseInvoiceToBillEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(editBillViewReducer_1.parseInvoiceToBill.match), (0, operators_1.mergeMap)((action) => {
|
|
32
|
+
var _a, _b, _c, _d, _e, _f;
|
|
33
|
+
const { invoiceProcessingPayload, isVendorRecommendationFeatureEnabled } = action.payload;
|
|
34
|
+
const state = state$.value;
|
|
35
|
+
const showSkipAutofill = state.editBillDetailViewState.newBillState.showSkipAutofill;
|
|
36
|
+
if (!showSkipAutofill) {
|
|
37
|
+
const file = (0, attachmentPayload_1.mapFiletoAttachment)(invoiceProcessingPayload.files[0]);
|
|
38
|
+
return (0, rxjs_1.of)((0, editBillViewReducer_1.saveBillUpdatesToLocalStore)({
|
|
39
|
+
billDetailLocalData: Object.assign(Object.assign({}, editBillViewState_1.initialBillDetail.billDetailLocalData), { file: file }),
|
|
40
|
+
}), (0, editBillViewReducer_1.updateAddBillAutoFields)(editBillViewState_1.initialBillDetail.addBillAutoFields), (0, editBillViewReducer_1.updateBillUploadFetchState)({
|
|
41
|
+
fetchState: 'Completed',
|
|
42
|
+
error: undefined,
|
|
43
|
+
}));
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
let finalVendor = editBillViewState_1.initialBillDetail.billDetailLocalData.vendor;
|
|
47
|
+
let isVendorWithNewCurrency = false;
|
|
48
|
+
const vendorNameFromInvoice = invoiceProcessingPayload.vendors.length > 0
|
|
49
|
+
? (_a = invoiceProcessingPayload.vendors[0].vendor_name) !== null && _a !== void 0 ? _a : ''
|
|
50
|
+
: undefined;
|
|
51
|
+
const currencyInInvoice = invoiceProcessingPayload.bills.length > 0
|
|
52
|
+
? invoiceProcessingPayload.bills[0].currency_code
|
|
53
|
+
: 'USD';
|
|
54
|
+
let vendorCurrency = '';
|
|
55
|
+
const vendors = (0, vendorListSelector_1.getVendorList)(state).vendors;
|
|
56
|
+
let recommendedVendorId;
|
|
57
|
+
let showVendorGptRecommendationText = false;
|
|
58
|
+
let suggestedVendor;
|
|
59
|
+
if (vendorNameFromInvoice != null && vendorNameFromInvoice.length > 0) {
|
|
60
|
+
finalVendor = vendors.filter((vendor) => vendor.name.toLowerCase() === vendorNameFromInvoice.toLowerCase())[0];
|
|
61
|
+
if (finalVendor == null) {
|
|
62
|
+
//get suggestedVendorIdFromParsedInvoice
|
|
63
|
+
//search vendor with this vendor id
|
|
64
|
+
//check match score if it is greater than 85 assign it as final vendor
|
|
65
|
+
const suggestedVendorIdFromParsedInvoice = state.editBillDetailViewState.newBillState
|
|
66
|
+
.suggestedVendorIdFromParsedInvoice;
|
|
67
|
+
if (suggestedVendorIdFromParsedInvoice != null) {
|
|
68
|
+
suggestedVendor = (0, vendorSelector_1.getVendorByVendorId)(state.vendorState, suggestedVendorIdFromParsedInvoice);
|
|
69
|
+
const matchScore = (_b = suggestedVendor === null || suggestedVendor === void 0 ? void 0 : suggestedVendor.matchScore) !== null && _b !== void 0 ? _b : 0;
|
|
70
|
+
vendorCurrency = (_c = suggestedVendor === null || suggestedVendor === void 0 ? void 0 : suggestedVendor.vendorCurrencyCode) !== null && _c !== void 0 ? _c : 'USD';
|
|
71
|
+
if (!isVendorRecommendationFeatureEnabled) {
|
|
72
|
+
if (matchScore > 85) {
|
|
73
|
+
if (vendorCurrency === currencyInInvoice) {
|
|
74
|
+
finalVendor = suggestedVendor;
|
|
75
|
+
showVendorGptRecommendationText = true;
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
isVendorWithNewCurrency = true;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
else if ((suggestedVendor === null || suggestedVendor === void 0 ? void 0 : suggestedVendor.name.toLowerCase()) ===
|
|
83
|
+
vendorNameFromInvoice.toLowerCase()) {
|
|
84
|
+
if (vendorCurrency === currencyInInvoice) {
|
|
85
|
+
finalVendor = suggestedVendor;
|
|
86
|
+
showVendorGptRecommendationText = true;
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
isVendorWithNewCurrency = true;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
recommendedVendorId = suggestedVendor === null || suggestedVendor === void 0 ? void 0 : suggestedVendor.id;
|
|
94
|
+
finalVendor = suggestedVendor;
|
|
95
|
+
showVendorGptRecommendationText = true;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
const file = (0, attachmentPayload_1.mapFiletoAttachment)(invoiceProcessingPayload.files[0]);
|
|
101
|
+
const finalBill = Object.assign(Object.assign({}, (0, exports.toBillDetailLocalData)(state, showVendorGptRecommendationText, invoiceProcessingPayload.bills[0], finalVendor, recommendedVendorId)), { file: file });
|
|
102
|
+
const addBillAutoFields = (0, exports.getAutoFieldsData)(finalBill, isVendorWithNewCurrency, vendorNameFromInvoice, currencyInInvoice, vendorCurrency);
|
|
103
|
+
if (finalVendor != null) {
|
|
104
|
+
return (0, rxjs_1.of)((0, editBillViewReducer_1.saveBillUpdatesToLocalStore)({ billDetailLocalData: finalBill }), (0, previousBillsReducer_1.fetchPreviousBills)(finalVendor.qboId, false), (0, billPayReviewReducer_1.fetchDuplicateBill)(finalVendor.name, finalVendor.id, (_e = (_d = finalBill.totalAmount) === null || _d === void 0 ? void 0 : _d.amount) !== null && _e !== void 0 ? _e : 0, (_f = finalBill.whatForSection) === null || _f === void 0 ? void 0 : _f.invoiceNumber), (0, editBillViewReducer_1.updateShowAutofill)(false), (0, editBillViewReducer_1.updateAddBillAutoFields)(addBillAutoFields), (0, editBillViewReducer_1.updateBillUploadFetchState)({
|
|
105
|
+
fetchState: 'Completed',
|
|
106
|
+
error: undefined,
|
|
107
|
+
}));
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
const actions = [
|
|
111
|
+
(0, editBillViewReducer_1.saveBillUpdatesToLocalStore)({ billDetailLocalData: finalBill }),
|
|
112
|
+
(0, editBillViewReducer_1.updateShowAutofill)(false),
|
|
113
|
+
(0, editBillViewReducer_1.updateAddBillAutoFields)(addBillAutoFields),
|
|
114
|
+
(0, editBillViewReducer_1.updateBillUploadFetchState)({
|
|
115
|
+
fetchState: 'Completed',
|
|
116
|
+
error: undefined,
|
|
117
|
+
}),
|
|
118
|
+
];
|
|
119
|
+
if (recommendedVendorId != null && suggestedVendor != null) {
|
|
120
|
+
actions.push((0, previousBillsReducer_1.fetchPreviousBills)(suggestedVendor.qboId, false));
|
|
121
|
+
}
|
|
122
|
+
return (0, rxjs_1.from)(actions);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}));
|
|
126
|
+
exports.parseInvoiceToBillEpic = parseInvoiceToBillEpic;
|
|
127
|
+
const toBillDetailLocalData = (state, showVendorGptRecommendationText, billPayload, vendor, recommendedVendorId) => {
|
|
128
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
|
|
129
|
+
const currency = {
|
|
130
|
+
currencyCode: (_a = billPayload.currency_code) !== null && _a !== void 0 ? _a : '',
|
|
131
|
+
currencySymbol: (_b = billPayload.currency_symbol) !== null && _b !== void 0 ? _b : '', //api not returning symbol
|
|
132
|
+
};
|
|
133
|
+
const linesById = {};
|
|
134
|
+
const vendorCategoryId = vendor === null || vendor === void 0 ? void 0 : vendor.accountId;
|
|
135
|
+
const recommendations = (0, transactionPayload_1.getRecommendationsPerLine)(billPayload.lines, billPayload.recommendations);
|
|
136
|
+
const lineDetailOfFirstItem = (_d = (_c = billPayload.lines) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.line_detail;
|
|
137
|
+
let isCategorySameAcrossLineItems = true;
|
|
138
|
+
let isClassSameAcrossLineItems = true;
|
|
139
|
+
(_e = billPayload.lines) === null || _e === void 0 ? void 0 : _e.forEach((line) => {
|
|
140
|
+
var _a, _b, _c;
|
|
141
|
+
if (line.line_detail.account
|
|
142
|
+
.account_id !== lineDetailOfFirstItem.account.account_id) {
|
|
143
|
+
isCategorySameAcrossLineItems = false;
|
|
144
|
+
}
|
|
145
|
+
if (line.line_detail.class
|
|
146
|
+
.accounting_class_id !== lineDetailOfFirstItem.class.accounting_class_id) {
|
|
147
|
+
isClassSameAcrossLineItems = false;
|
|
148
|
+
}
|
|
149
|
+
const vendorCategory = (0, accountSelector_1.getAccountBase)(state.accountState, vendorCategoryId !== null && vendorCategoryId !== void 0 ? vendorCategoryId : '', 'account_list');
|
|
150
|
+
const vendorClass = (0, classSelector_1.getClassById)(state.classState, {
|
|
151
|
+
classId: (_a = vendor === null || vendor === void 0 ? void 0 : vendor.classId) !== null && _a !== void 0 ? _a : '',
|
|
152
|
+
reportId: 'class_list',
|
|
153
|
+
});
|
|
154
|
+
const lineState = (0, transactionLinePayload_1.toTransactionWithAccountAndClassLine)(line, currency);
|
|
155
|
+
const { accountListState, accountState, classListState, classState } = state;
|
|
156
|
+
const classList = (0, classListSelector_1.getClassList)(classState, classListState);
|
|
157
|
+
const accountList = (0, accountListSelector_1.getAccountList)(accountState, accountListState, 'billPayAccountList');
|
|
158
|
+
const lineWithRecommendations = (0, initializeBillToLocalStoreEpic_1.getLineRecommendationsLocalData)(line.line_id, lineState, recommendations, accountList, classList, vendor);
|
|
159
|
+
linesById[line.line_id] = Object.assign(Object.assign({}, lineWithRecommendations), { account: ((_b = lineWithRecommendations.account) === null || _b === void 0 ? void 0 : _b.accountId) === '' &&
|
|
160
|
+
vendorCategory != null
|
|
161
|
+
? vendorCategory
|
|
162
|
+
: lineWithRecommendations.account, class: ((_c = lineWithRecommendations.class) === null || _c === void 0 ? void 0 : _c.classId) === '' && vendorClass != null
|
|
163
|
+
? vendorClass
|
|
164
|
+
: lineWithRecommendations.class });
|
|
165
|
+
});
|
|
166
|
+
if (billPayload.tax != null && billPayload.tax > 0) {
|
|
167
|
+
addLineItem(billPayload.tax, currency, 'Tax', isCategorySameAcrossLineItems, isClassSameAcrossLineItems, linesById);
|
|
168
|
+
}
|
|
169
|
+
if (billPayload.discount != null && billPayload.discount > 0) {
|
|
170
|
+
addLineItem(-billPayload.discount, currency, 'Discount', isCategorySameAcrossLineItems, isClassSameAcrossLineItems, linesById);
|
|
171
|
+
}
|
|
172
|
+
const paymentMethodCode = (_f = billPayload.bill_pay_info) === null || _f === void 0 ? void 0 : _f.bill_payment_method_type.code;
|
|
173
|
+
const paymentMethodSubCode = (_g = billPayload.bill_pay_info) === null || _g === void 0 ? void 0 : _g.bill_payment_method_type.sub_code;
|
|
174
|
+
const internationalTransferFeeBearerPaymentMethod = (_h = billPayload.bill_pay_info) === null || _h === void 0 ? void 0 : _h.international_transfer_fee_bearer_payment_method;
|
|
175
|
+
const { internationalCode, internationalSubCode } = (0, billPayConfigSelector_1.getInternationalMethodCode)(paymentMethodSubCode != null
|
|
176
|
+
? (0, billPayConfigState_1.toBillPaymentSubConfigCodeType)(paymentMethodSubCode)
|
|
177
|
+
: undefined, internationalTransferFeeBearerPaymentMethod != null
|
|
178
|
+
? (0, billTransactionState_1.toInternationalTransferFeeBearerPaymentMethod)(internationalTransferFeeBearerPaymentMethod)
|
|
179
|
+
: undefined);
|
|
180
|
+
const { tenantState, companyState } = state;
|
|
181
|
+
const { currentTenantId } = tenantState;
|
|
182
|
+
const companyId = currentTenantId != null
|
|
183
|
+
? (_k = (_j = tenantState.tenantsById) === null || _j === void 0 ? void 0 : _j[currentTenantId]) === null || _k === void 0 ? void 0 : _k.companyId
|
|
184
|
+
: undefined;
|
|
185
|
+
const currentCompany = (0, companySelector_1.getCompanyByCompanyId)(companyState, companyId !== null && companyId !== void 0 ? companyId : '');
|
|
186
|
+
const payNowCutOffTime = currentCompany === null || currentCompany === void 0 ? void 0 : currentCompany.company.companyBillPayInfo.payNowCutOffTimeByMethod.ach;
|
|
187
|
+
const isPayNowEnabled = payNowCutOffTime != null
|
|
188
|
+
? (0, zeniDayJS_1.dateNow)().isSameOrBefore(payNowCutOffTime)
|
|
189
|
+
: false;
|
|
190
|
+
const fromAccountType = (0, billPayConfigPayload_1.getAccountTypeSubConfigCodeKey)((0, billPayConfigState_1.toAccType)((_m = (_l = billPayload.bill_pay_info) === null || _l === void 0 ? void 0 : _l.from_account.account_type) !== null && _m !== void 0 ? _m : ''));
|
|
191
|
+
const bookCloseDate = currentCompany === null || currentCompany === void 0 ? void 0 : currentCompany.company.companyInfo.bookCloseDate;
|
|
192
|
+
const invoiceDate = Boolean(billPayload.transaction_date) === true
|
|
193
|
+
? (0, editBillViewSelector_1.getInvoiceDate)((0, zeniDayJS_1.date)(billPayload.transaction_date), bookCloseDate)
|
|
194
|
+
: undefined;
|
|
195
|
+
const dueDate = Boolean(billPayload.due_date) === true
|
|
196
|
+
? Boolean(billPayload.transaction_date) === true
|
|
197
|
+
? (0, editBillViewSelector_1.getDueDate)((0, zeniDayJS_1.date)(billPayload.due_date), (0, zeniDayJS_1.date)(billPayload.transaction_date), bookCloseDate)
|
|
198
|
+
: (0, zeniDayJS_1.date)(billPayload.due_date)
|
|
199
|
+
: undefined;
|
|
200
|
+
return {
|
|
201
|
+
recommendedVendorId,
|
|
202
|
+
showVendorGptRecommendationText,
|
|
203
|
+
lastRecommendedVendorName: recommendedVendorId != null ? vendor === null || vendor === void 0 ? void 0 : vendor.name : undefined,
|
|
204
|
+
vendor: vendor,
|
|
205
|
+
whatForSection: {
|
|
206
|
+
invoiceNumber: billPayload.invoice_number,
|
|
207
|
+
billDueDate: dueDate,
|
|
208
|
+
memo: billPayload.transaction_memo,
|
|
209
|
+
invoiceDate: invoiceDate,
|
|
210
|
+
isInvoiceDateAutoUpdated: Boolean(billPayload.transaction_date) === true && bookCloseDate != null
|
|
211
|
+
? (0, zeniDayJS_1.date)(billPayload.transaction_date).isBefore(bookCloseDate)
|
|
212
|
+
: false,
|
|
213
|
+
currencyCode: billPayload.currency_code,
|
|
214
|
+
},
|
|
215
|
+
updatesByLineId: linesById,
|
|
216
|
+
paymentDetailsSection: {
|
|
217
|
+
paymentTo: vendor != null ? vendor.bankAccountIds[0] : undefined,
|
|
218
|
+
paymentType: paymentMethodCode != null && paymentMethodSubCode != null
|
|
219
|
+
? (0, billPayConfigSelector_1.getBillPayConfigByKey)(state.billPayConfigState, (0, billPayConfigState_1.getBillPayConfigMethodKey)((0, billPayConfigState_1.toBillPaymentMethodCodeType)(paymentMethodCode), (0, billPayConfigState_1.toBillPaymentSubConfigCodeKeyType)((0, billPayConfigPayload_1.getBillPaymentSubConfigCodeKey)((0, billPayConfigState_1.toBillPaymentSubConfigCodeType)(paymentMethodSubCode))), fromAccountType, internationalCode != null
|
|
220
|
+
? (0, billPayConfigPayload_1.getInternationalWireMethodCodeKey)(internationalCode)
|
|
221
|
+
: undefined, internationalSubCode != null
|
|
222
|
+
? (0, billPayConfigPayload_1.getInternationalSubConfigCodeKey)(internationalSubCode)
|
|
223
|
+
: undefined))
|
|
224
|
+
: undefined,
|
|
225
|
+
paymentDate: ((_o = billPayload.bill_pay_info) === null || _o === void 0 ? void 0 : _o.payment_date) != null
|
|
226
|
+
? (0, zeniDayJS_1.date)((_p = billPayload.bill_pay_info) === null || _p === void 0 ? void 0 : _p.payment_date)
|
|
227
|
+
: (0, zeniDayJS_1.date)((0, workingDayHelper_1.getNextNthWorkingDay)((0, zeniDayJS_1.dateNow)().toDate(), [0, 6], isPayNowEnabled ? 0 : 1).toISOString()),
|
|
228
|
+
withdrawFrom: (0, editBillViewSelector_1.getWithdrawFrom)(state.paymentAccountState, state.depositAccountState, (_r = (_q = billPayload.bill_pay_info) === null || _q === void 0 ? void 0 : _q.from_account.account_id) !== null && _r !== void 0 ? _r : '', (_t = (_s = billPayload.bill_pay_info) === null || _s === void 0 ? void 0 : _s.from_account.account_type) !== null && _t !== void 0 ? _t : ''),
|
|
229
|
+
internationalTransferFeeBearerPaymentMethod: ((_u = billPayload.bill_pay_info) === null || _u === void 0 ? void 0 : _u.international_transfer_fee_bearer_payment_method) != null
|
|
230
|
+
? (0, billTransactionState_1.toInternationalTransferFeeBearerPaymentMethod)((_v = billPayload.bill_pay_info) === null || _v === void 0 ? void 0 : _v.international_transfer_fee_bearer_payment_method)
|
|
231
|
+
: undefined,
|
|
232
|
+
},
|
|
233
|
+
totalAmount: billPayload.amount != null
|
|
234
|
+
? (0, amount_1.toAmountWC)(billPayload.amount, {
|
|
235
|
+
currencyCode: (_w = billPayload.currency_code) !== null && _w !== void 0 ? _w : 'USD',
|
|
236
|
+
currencySymbol: (_x = billPayload.currency_symbol) !== null && _x !== void 0 ? _x : '$',
|
|
237
|
+
})
|
|
238
|
+
: undefined,
|
|
239
|
+
isCancelled: false,
|
|
240
|
+
toAccountVendorEmail: (_z = (_y = billPayload.bill_pay_info) === null || _y === void 0 ? void 0 : _y.to_account_vendor_email) !== null && _z !== void 0 ? _z : undefined,
|
|
241
|
+
isCollectToAccountInfoFromVendorContact: (_1 = (_0 = billPayload.bill_pay_info) === null || _0 === void 0 ? void 0 : _0.is_collect_to_account_info_from_vendor_contact) !== null && _1 !== void 0 ? _1 : false,
|
|
242
|
+
isRecurring: (_2 = billPayload.is_recurring) !== null && _2 !== void 0 ? _2 : false,
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
exports.toBillDetailLocalData = toBillDetailLocalData;
|
|
246
|
+
const getAutoFieldsData = (finalBill, isVendorWithNewCurrency, tentativeVendorName, currencyInInvoice, vendorCurrency) => {
|
|
247
|
+
const autoFilledFields = {};
|
|
248
|
+
Object.keys(finalBill).forEach((item) => {
|
|
249
|
+
switch (item) {
|
|
250
|
+
case 'vendor':
|
|
251
|
+
if (tentativeVendorName != null) {
|
|
252
|
+
autoFilledFields.tentativeVendorName = tentativeVendorName;
|
|
253
|
+
autoFilledFields.tentativeVendorName =
|
|
254
|
+
tentativeVendorName +
|
|
255
|
+
(isVendorWithNewCurrency === true ? ' - ' + currencyInInvoice : '');
|
|
256
|
+
autoFilledFields.currencyInInvoice = currencyInInvoice;
|
|
257
|
+
autoFilledFields.vendorCurrency = vendorCurrency;
|
|
258
|
+
}
|
|
259
|
+
autoFilledFields.isVendorWithNewCurrency = isVendorWithNewCurrency;
|
|
260
|
+
if (finalBill[item]) {
|
|
261
|
+
autoFilledFields.vendor = 'vendor';
|
|
262
|
+
}
|
|
263
|
+
break;
|
|
264
|
+
case 'whatForSection':
|
|
265
|
+
if (finalBill.whatForSection != null) {
|
|
266
|
+
const whatForSectionFields = [];
|
|
267
|
+
Object.keys(finalBill.whatForSection).forEach((sectionField) => {
|
|
268
|
+
var _a, _b, _c, _d, _e;
|
|
269
|
+
switch (sectionField) {
|
|
270
|
+
case 'invoiceNumber':
|
|
271
|
+
if (((_a = finalBill.whatForSection) === null || _a === void 0 ? void 0 : _a.invoiceNumber) != null) {
|
|
272
|
+
whatForSectionFields.push('invoiceNumber');
|
|
273
|
+
}
|
|
274
|
+
break;
|
|
275
|
+
case 'invoiceDate':
|
|
276
|
+
if (((_b = finalBill.whatForSection) === null || _b === void 0 ? void 0 : _b.invoiceDate) != null) {
|
|
277
|
+
whatForSectionFields.push('invoiceDate');
|
|
278
|
+
}
|
|
279
|
+
break;
|
|
280
|
+
case 'billDueDate':
|
|
281
|
+
if (((_c = finalBill.whatForSection) === null || _c === void 0 ? void 0 : _c.billDueDate) != null) {
|
|
282
|
+
whatForSectionFields.push('billDueDate');
|
|
283
|
+
}
|
|
284
|
+
break;
|
|
285
|
+
case 'memo':
|
|
286
|
+
if (((_d = finalBill.whatForSection) === null || _d === void 0 ? void 0 : _d.memo) != null &&
|
|
287
|
+
((_e = finalBill.whatForSection) === null || _e === void 0 ? void 0 : _e.memo) != '') {
|
|
288
|
+
whatForSectionFields.push('memo');
|
|
289
|
+
}
|
|
290
|
+
break;
|
|
291
|
+
default:
|
|
292
|
+
break;
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
if (whatForSectionFields.length > 0) {
|
|
296
|
+
whatForSectionFields.push('currency');
|
|
297
|
+
}
|
|
298
|
+
autoFilledFields.whatForSectionFields = whatForSectionFields;
|
|
299
|
+
}
|
|
300
|
+
break;
|
|
301
|
+
case 'updatesByLineId':
|
|
302
|
+
if (finalBill.updatesByLineId != null) {
|
|
303
|
+
const linesFields = {};
|
|
304
|
+
Object.keys(finalBill.updatesByLineId).forEach((lineId) => {
|
|
305
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
306
|
+
const singleLine = [];
|
|
307
|
+
const lineDetail = finalBill.updatesByLineId[lineId];
|
|
308
|
+
if ((_b = (_a = lineDetail.amount) === null || _a === void 0 ? void 0 : _a.amount) !== null && _b !== void 0 ? _b : 0) {
|
|
309
|
+
singleLine.push('amount');
|
|
310
|
+
}
|
|
311
|
+
if (lineDetail.lineDescription != null) {
|
|
312
|
+
singleLine.push('lineDescription');
|
|
313
|
+
}
|
|
314
|
+
if (((_c = lineDetail.account) === null || _c === void 0 ? void 0 : _c.accountName) != null &&
|
|
315
|
+
((_d = lineDetail.account) === null || _d === void 0 ? void 0 : _d.accountName.length) > 0) {
|
|
316
|
+
singleLine.push('account');
|
|
317
|
+
}
|
|
318
|
+
if (((_e = lineDetail.class) === null || _e === void 0 ? void 0 : _e.className) != null &&
|
|
319
|
+
((_f = lineDetail.class) === null || _f === void 0 ? void 0 : _f.className.length) > 0) {
|
|
320
|
+
singleLine.push('class');
|
|
321
|
+
}
|
|
322
|
+
if ((_g = lineDetail.billable) !== null && _g !== void 0 ? _g : undefined) {
|
|
323
|
+
singleLine.push('billable');
|
|
324
|
+
}
|
|
325
|
+
linesFields[lineId] = singleLine;
|
|
326
|
+
});
|
|
327
|
+
autoFilledFields.linesFields = linesFields;
|
|
328
|
+
}
|
|
329
|
+
break;
|
|
330
|
+
case 'paymentDetailsSection':
|
|
331
|
+
if (finalBill.paymentDetailsSection != null) {
|
|
332
|
+
const paymentDetailsSectionFields = [];
|
|
333
|
+
Object.keys(finalBill.paymentDetailsSection).forEach((sectionField) => {
|
|
334
|
+
var _a, _b, _c, _d;
|
|
335
|
+
switch (sectionField) {
|
|
336
|
+
case 'paymentType':
|
|
337
|
+
if (((_a = finalBill.paymentDetailsSection) === null || _a === void 0 ? void 0 : _a.paymentType) != null) {
|
|
338
|
+
paymentDetailsSectionFields.push('paymentType');
|
|
339
|
+
}
|
|
340
|
+
break;
|
|
341
|
+
case 'paymentDate':
|
|
342
|
+
if (((_b = finalBill.paymentDetailsSection) === null || _b === void 0 ? void 0 : _b.paymentDate) != null) {
|
|
343
|
+
paymentDetailsSectionFields.push('paymentDate');
|
|
344
|
+
}
|
|
345
|
+
break;
|
|
346
|
+
case 'withdrawFrom':
|
|
347
|
+
if (((_c = finalBill.paymentDetailsSection) === null || _c === void 0 ? void 0 : _c.withdrawFrom) != null) {
|
|
348
|
+
paymentDetailsSectionFields.push('withdrawFrom');
|
|
349
|
+
}
|
|
350
|
+
break;
|
|
351
|
+
case 'paymentTo':
|
|
352
|
+
if (((_d = finalBill.paymentDetailsSection) === null || _d === void 0 ? void 0 : _d.paymentTo) != null) {
|
|
353
|
+
paymentDetailsSectionFields.push('paymentTo');
|
|
354
|
+
}
|
|
355
|
+
break;
|
|
356
|
+
default:
|
|
357
|
+
break;
|
|
358
|
+
}
|
|
359
|
+
});
|
|
360
|
+
autoFilledFields.paymentDetailsSectionFields =
|
|
361
|
+
paymentDetailsSectionFields;
|
|
362
|
+
}
|
|
363
|
+
break;
|
|
364
|
+
default:
|
|
365
|
+
break;
|
|
366
|
+
}
|
|
367
|
+
});
|
|
368
|
+
return autoFilledFields;
|
|
369
|
+
};
|
|
370
|
+
exports.getAutoFieldsData = getAutoFieldsData;
|
|
371
|
+
const addLineItem = (taxAmount, currency, description, isCategorySameAcrossLineItems, isClassSameAcrossLineItems, linesById) => {
|
|
372
|
+
const taxLineIndex = Object.keys(linesById).length;
|
|
373
|
+
const classData = isClassSameAcrossLineItems && taxLineIndex > 0
|
|
374
|
+
? linesById[0].class
|
|
375
|
+
: (0, classPayload_1.mapClassBasePayloadToClassBase)({
|
|
376
|
+
accounting_class_id: '',
|
|
377
|
+
accounting_class_name: '',
|
|
378
|
+
});
|
|
379
|
+
const accountData = isCategorySameAcrossLineItems && taxLineIndex > 0
|
|
380
|
+
? linesById[0].account
|
|
381
|
+
: (0, accountPayload_1.mapAccountBasePayloadToAccountBase)({
|
|
382
|
+
account_id: '',
|
|
383
|
+
account_name: '',
|
|
384
|
+
labels: [],
|
|
385
|
+
});
|
|
386
|
+
linesById[taxLineIndex] = {
|
|
387
|
+
class: classData,
|
|
388
|
+
account: accountData,
|
|
389
|
+
amount: (0, amount_1.toAmountWC)(taxAmount, currency),
|
|
390
|
+
billable: 'not_billable',
|
|
391
|
+
lineDescription: description,
|
|
392
|
+
isCategoryMiscategorized: false,
|
|
393
|
+
isClassMiscategorized: false,
|
|
394
|
+
id: `${taxLineIndex}`,
|
|
395
|
+
platformLineDetailType: 'account_based_expense_line_detail',
|
|
396
|
+
type: 'transaction_with_account_and_class_line',
|
|
397
|
+
isCategoryUpdateSelected: false,
|
|
398
|
+
isCategoryFirstTimeAutofilled: classData != null && Boolean(classData.classId),
|
|
399
|
+
isRetainedCategorySelected: false,
|
|
400
|
+
isClassUpdateSelected: false,
|
|
401
|
+
isClassFirstTimeAutofilled: accountData != null && Boolean(accountData.accountId),
|
|
402
|
+
isRetainedClassSelected: false,
|
|
403
|
+
isCategoryOrClassUpdated: false,
|
|
404
|
+
updateAllCheckbox: false,
|
|
405
|
+
};
|
|
406
|
+
};
|