@zeniai/client-epic-state 4.7.86 → 4.7.87
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/epic.d.ts +2 -1
- package/lib/epic.js +2 -1
- package/lib/index.d.ts +4 -4
- package/lib/index.js +9 -6
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewReducer.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewReducer.js +1 -1
- package/lib/view/spendManagement/billPay/editBillView/epics/fetchBillAndInitializeLocalStoreEpic.js +3 -3
- package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.d.ts +3 -0
- package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.js +5 -2
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/saveRemiDetailEpic.d.ts +2 -2
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/saveRemiDetailEpic.js +2 -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 +2 -2
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/fetchRemiDetailEpic.js +4 -1
- package/lib/view/spendManagement/reimbursement/remiDetailView/remiDetailViewPayload.d.ts +11 -0
- package/lib/view/spendManagement/reimbursement/remiDetailView/remiDetailViewReducer.d.ts +12 -2
- package/lib/view/spendManagement/reimbursement/remiDetailView/remiDetailViewReducer.js +50 -2
- package/lib/view/spendManagement/reimbursement/remiDetailView/remiDetailViewSelector.d.ts +3 -0
- package/lib/view/spendManagement/reimbursement/remiDetailView/remiDetailViewSelector.js +4 -0
- package/lib/view/spendManagement/reimbursement/remiDetailView/remiDetailViewState.d.ts +11 -0
- package/lib/view/spendManagement/reimbursement/remiDetailView/remiDetailViewState.js +12 -1
- package/package.json +1 -1
package/lib/epic.d.ts
CHANGED
|
@@ -145,6 +145,7 @@ import { ActionType as FetchReimbursementCardEpicActionType } from './view/reimb
|
|
|
145
145
|
import { ActionType as FetchBillListPerTabEpicActionType } from './view/spendManagement/billPay/billList/fetchBillListPerTabEpic';
|
|
146
146
|
import { ActionType as FetchBillDetailEpicActionType } from './view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic';
|
|
147
147
|
import { ActionType as FetchRemiDetailEpicActionType } from './view/spendManagement/reimbursement/remiDetailView/epics/fetchRemiDetailEpic';
|
|
148
|
+
import { ActionType as FetchDuplicateReimbursementEpicActionType } from './view/spendManagement/reimbursement/remiDetailView/epics/fetchDuplicateReimbursementEpic';
|
|
148
149
|
import { ActionType as ApproveOrRejectRemiEpicActionType } from './view/spendManagement/reimbursement/remiDetailView/epics/approveOrRejectRemiEpic';
|
|
149
150
|
import { ActionType as DeleteRemiEpicActionType } from './view/spendManagement/reimbursement/remiDetailView/epics/deleteRemiEpic';
|
|
150
151
|
import { ActionType as CancelAndDeleteRemiEpicActionType } from './view/spendManagement/reimbursement/remiDetailView/epics/cancelAndDeleteRemiEpic';
|
|
@@ -319,6 +320,6 @@ import { ActionType as InitializeTaskToLocalStoreActionType } from './view/taskM
|
|
|
319
320
|
import { ActionType as FetchTaskHistoryActionType } from './view/taskManager/taskDetailView/epics/fetchTaskHistoryEpic';
|
|
320
321
|
import { ActionType as FetchCollaborationAuthTokenActionType } from './view/authenticationView/epics/fetchCollaborationAuthTokenEpic';
|
|
321
322
|
/** Root action type is union of all the epic action type */
|
|
322
|
-
export declare type RootActionType = AcceptBillPayTermsActionType | AcceptBillPayUpdatedTermsActionType | AcceptChargeCardTermsActionType | AcceptEmployeeRemiTermsActionType | AcceptRemiTermsActionType | AcceptZeniAccountTermsActionType | ApproveOrRejectBillActionType | ApproveOrRejectRemiEpicActionType | ApproveVendorGlobalReviewActionType | BalanceSheetActionType | BalanceSheetForTimeframeActionType | CancelAndDeleteBillEpicActionType | CancelAndDeleteRemiEpicActionType | CardBalanceActionType | CashBalanceActionType | CashFlowActionType | CashFlowForTimeframeActionType | CashInCashOutActionType | CashPositionActionType | ChangeZeniPersonRolesActionType | CheckDepositEpicActionType | ClearAllActionType | CombinedStatementActionType | CompanyManagementSavePendingUpdatesActionType | CompanyManagementSaveUpdatesActionType | CreateAddressActionType | CreateBankAccountActionType | CreateCheckingAccountEpicActionType | CreateCompanyAddressActionType | CreateCompanyOfficersEpicActionType | CreateCompanyUserAddressActionType | CreateGlobalMerchantActionType | CreatePaymentInstrumentActionType | CreateUserBankAccountActionType | CurrencyConversionEpicActionType | DeleteBankAccountActionType | DeleteBillEpicActionType | DeleteBillPayApprovalRuleActionType | DeleteFileEpicActionType | DeleteFileListEpicActionType | DeletePaymentInstrumentActionType | DeletePersonActionType | DeleteRemiApprovalRuleActionType | DeleteRemiEpicActionType | DeleteTaskActionType | DeleteUserBankAccountActionType | DepositAccountTransactionListEpicActionType | EnableSetupActionType | EstablishOnboardingPlaidConnectionActionType | EstablishPlaidConnectionActionType | FetchAccountHistoryActionType | FetchAccountListActionType | FetchAccountListForAccountTypesActionType | FetchActiveTenantActionType | FetchAddressActionType | FetchAllCockpitViewsEpicActionType | FetchAllPeopleRequiredActionType | FetchAllTenantsActionType | FetchApAgingActionType | FetchApAgingDetailActionType | FetchArAgingActionType | FetchArAgingDetailActionType | FetchBankAccountsListEpic | FetchBankConnectionsViewActionType | FetchBankCountryNameByIbanEpicActionType | FetchBankNameByRoutingEpicActionType | FetchBankNameBySwiftEpicActionType | FetchBillAndInitializeLocalStoreActionType | FetchBillDetailEpicActionType | FetchBillListEpicActionType | FetchBillListPerTabEpicActionType | FetchBillPayApproversDetailsActionType | FetchBillPayApproversListActionType | FetchBillPayCardEpicActionType | FetchBillPayConfigActionType | FetchBillPaySetupApproverViewActionType | FetchBillPaySetupViewActionType | FetchChargeCardConfigActionType | FetchChargeCardDetailActionType | FetchChargeCardDetailPageActionType | FetchChargeCardListActionType | FetchChargeCardListPageActionType | FetchChargeCardSetupViewActionType | FetchChargeCardTransactionListActionType | FetchClassListActionType | FetchCollaborationAuthTokenActionType | FetchCompanyConfigActionType | FetchCompanyHealthMetricViewEpicActionType | FetchCompanyManagementActionType | FetchCompanyMonthEndReportViewActionType | FetchCompanyOnboardingViewActionType | FetchCompanyPassportViewActionType | FetchCompanyPortfolioActionType | FetchCreditAccountActionType | FetchCurrencyConversionValueEpicActionType | FetchDashboardActionType | FetchDepositAccountActionType | FetchDepositAccountDetailEpicActionType | FetchDepositAccountListActionType | FetchDepositAccStatementListActionType | FetchDuplicateBillEpicActionType | FetchEditBillDetailPageEpicActionType | FetchEditRemiDetailPageEpicActionType | FetchEntityAutoCompleteActionType | FetchEntityHistoryActionType | FetchExcludedResourcesActionType | FetchExpenseTrendActionType | FetchExternalConnectionsActionType | FetchFileActionType | FetchFileListEpicActionType | FetchForecastListActionType | FetchGlobalMerchantAutoCompleteActionType | FetchGlobalMerchantRecommendationActionType | FetchIncomeTrendActionType | FetchInternationalWireDynamicFormActionType | FetchMagicLinkBankNameByRoutingEpicActionType | FetchMagicLinkBankNameBySwiftEpicActionType | FetchMagicLinkBillEpicActionType | FetchMagicLinkTenantEpicActionType | FetchManagementActionType | FetchMerchantListEpicActionType | FetchMyProfileActionType | FetchMyProfileViewActionType | FetchNetBurnOrIncomeStoryCardActionType | FetchNetBurnOrIncomeWithForecastActionType | FetchOnboardingActionType | FetchOnboardingCompletedCompaniesActionType | FetchOnboardingCustomerSetupViewActionType | FetchOnboardingCustomerViewActionType | FetchOpExWithForecastActionType | FetchOwnerListActionType | FetchParentSubsidiaryManagementActionType | FetchPaymentAccountListActionType | FetchPortfolioActionType | FetchPreviousBillsEpicActionType | FetchRecommendationByEntityIdActionType | FetchRecommendationByEntityNameActionType | FetchRecommendationByEntityQboIdActionType | FetchRecommendationsAndUpdateMerchantRecommendationsEpicActionType | FetchRecommendationsAndUpdateVendorRecommendationsEpicActionType | FetchReimbursementCardEpicActionType | FetchReimbursementConfigEpicActionType | FetchRemiAndInitializeLocalStoreEpicActionType | FetchRemiApproversDetailsActionType | FetchRemiApproversListActionType | FetchRemiDetailEpicActionType | FetchRemiListEpicActionType | FetchRemiListPerTabEpicActionType | FetchRemiSetupApproverViewActionType | FetchRemiSetupViewActionType | FetchRevenueWithForecastActionType | FetchReviewCompanyActionType | FetchSubscriptionActionType | FetchSubscriptionAddOnsEpicActionType | FetchSubscriptionCouponsActionType | FetchSubscriptionCreateEstimateActionType | FetchSubscriptionDetailsActionType | FetchSubscriptionListActionType | FetchSubscriptionPlansActionType | FetchSubscriptionSummaryForTenantActionType | FetchSubscriptionUpdateEstimateActionType | FetchTaskDetailActionType | FetchTaskDetailPageActionType | FetchTaskListActionType | FetchTaskListPageActionType | FetchTasksCardActionType | FetchTaskHistoryActionType | FetchTransactionDetailActionType | FetchTransactionListByAccountActionType | FetchTransactionListByClassActionType | FetchTransactionListByEntityActionType | FetchTransactionsForEntityActionType | FetchTransactionsListByCategoryTypeEpicActionType | FetchTrendForEntityActionType | FetchUserDetailActionType | FetchUserFinancialAccountActionType | FetchUserListByTypeActionType | FetchUserRoleConfigActionType | FetchVendorActionType | FetchVendorByNameAndParseInvoiceActionType | FetchVendorDetailsEpicActionType | FetchVendorFirstReviewViewActionType | FetchVendorGlobalReviewViewActionType | FetchVendorsActionType | FetchVendorTypeListEpicActionType | FetchZeniAccountListPageActionType | FetchZeniAccountsConfigActionType | FetchZeniAccountSetupViewActionType | FetchZeniAccStatePageActionType | FetchZeniUsersActionType | GetOnboardingEmailGroupActionType | GetOnboardingPlaidLinkTokenActionType | GetPaymentAccountsActionType | GetPlaidLinkTokenActionType | ImproveUsingZeniGPTActionType | InitializeAccountMappingViewActionType | InitializeBillPaySetupApproverViewUpdateDataActionType | InitializeBillToLocalStoreEpicActionType | initializeCompanyHealthMetricViewLocalDataEpicActionType | InitializeEditPersonActionType | InitializeInternationalWireLocalDataActionType | InitializeOnboardingCustomerViewUpdateDataActionType | InitializeRemiSetupApproverViewUpdateDataActionType | InitializeRemiToLocalStoreEpicActionType | InitializeSubscriptionLocalDataActionType | InitializeTaskToLocalStoreActionType | InitializeTransactionDetailLocalDataActionType | InitializeVendorAddressActionType | InsightsCardActionType | InvitePeopleActionType | InviteZeniPeopleActionType | IssueChargeCardActionType | MarkTransactionAsNotMiscategorizedActionType | NetBurnOrIncomeActionType | NetBurnOrIncomeClassesViewActionType | NetBurnOrIncomeForTimeframeActionType | NetBurnOrIncomeForTimeframeClassesViewActionType | OpExActionType | OpExByVendorReportActionType | OpExByVendorReportForTimeframeActionType | OpExByVendorReportSummaryActionType | OpExClassesViewActionType | OpExForTimeframeClassesViewActionType | OpExForTimeframeViewActionType | ParallelFetchAccountTransactionListActionType | ParallelFetchClassTransactionListActionType | ParallelFetchEntityTransactionListActionType | ParallelFetchTransactionListByCategoryTypeEpicActionType | ParseInvoiceToBillEpicActionType | ParseReceiptsToRemiEpicActionType | PeopleActionType | PeoplePageActionType | PeopleSaveUpdatesActionType | ProfitAndLossActionType | ProfitAndLossClassesViewActionType | ProfitAndLossForTimeframeActionType | ProfitAndLossForTimeframeClassesViewActionType | RecommendationForAccountTypeActionType | ResendInviteActionType | ResendOtpActionType | ResetTransactionVendorLocalDataEpicActionType | ResetVendorDetailLocalDataEpicActionType | RetryBankAccountConnectionActionType | RetryBankAccountConnectionForOnboardingActionType | RevenueActionType | RevenueClassesViewActionType | RevenueForTimeframeClassesViewActionType | RevenueForTimeframeViewActionType | SaveAccountMappingViewActionType | SaveAddressActionType | SaveBillDetailEpicActionType | SaveBillPaySetupApproverViewUpdatesActionType | SaveCompanyHealthMetricByIdEpicActionType | SaveCompanyMonthEndReportActionType | SaveCompanyPassportDetailsActionType | SaveExternalConnectionActionType | SaveMagicLinkBankAccountEpicActionType | SaveOnboardingCustomerCompletedStatusActionType | SaveOnboardingCustomerNotesActionType | SaveOnboardingCustomerViewUpdatesActionType | SaveRealTimeApprovalActionType | SaveRemiDetailEpicActionType | SaveRemiSetupApproverViewUpdatesActionType | SaveSubscriptionNotesUpdatesActionType | SaveSubscriptionUpdatesActionType | SaveTaskDetailActionType | SaveTranactionVendorActionType | SaveTransactionDetailActionType | SaveVendorActionType | SaveVendorFirstReviewViewActionType | SendCompanyMonthEndReportActionType | SendOnboardingCustomerViewInviteActionType | SendOtpActionType | SignInActionType | SignOutActionType | StatementCloseDayActionType | ToggleReportUIOptionForecastModeEpicActionType | TopExActionType | TransferMoneyEpicActionType | UnlinkPaymentAccountActionType | UpdateAddressActionType | UpdateBusinessVerificationDetailsActionType | UpdateChargeCardDetailActionType | UpdateCompanyDetailsActionType | UpdateCompanyOfficerActionType | UpdateCompanyPassportLocalStoreDataActionType | UpdateDepositAccountActionType | UpdateDynamicFormActionType | UpdateFileNameEpicActionType | UpdateFilesMetadataEpicActionType | UpdateMileageDetailsActionType | UpdateNetBurnOrIncomeStoryCardSettingsActionType | UpdateOnboardingCustomerViewActionType | UpdateOnboardingCustomerViewCompleteStatusActionType | UpdateOnboardingCustomerViewLocalStoreDataActionType | UpdateOnboardingPaymentAccountLoginStatusActionType | UpdateOnboardingPaymentAccountStatusActionType | UpdatePaymentAccountActionType | UpdatePaymentAccountLoginStatusActionType | UpdatePaymentAccountStatusActionType | UpdatePrimaryContactActionType | UpdateRemiSetupViewLocalStoreDataActionType | UpdateReportUIOptionCOABalancesRangeEpicActionType | UpdateReportUIOptionIsCompareModeEpicActionType | UpdateReportUIOptionIsCompareModeOnEpicActionType | UpdateReportUIOptionThisPeriodActionType | UpdateReportUIOptionTimeFrameActionType | UpdateSectionAccountsViewActionType | UpdateSectionClassesViewV2ActionType | UpdateSelectedVendorForCreateFlowActionType | UpdateSetupViewLocalStoreDataActionType | UpdateTransactionDetailActionType | UpdateTransactionOnUploadSuccessActionType | UpdateVendorContactEpicActionType | VendorsTabFetchVendorActionType | VendorsTabFetchVendorDetailPageViewEpicActionType | VendorsTabFetchVendorDetailsEpicActionType | VendorsTabResetVendorDetailLocalDataEpicActionType | VendorsTabSaveVendorActionType | VerifyOtpActionType | VerifyUserActionType | WiseRedirectEpicActionType;
|
|
323
|
+
export declare type RootActionType = AcceptBillPayTermsActionType | AcceptBillPayUpdatedTermsActionType | AcceptChargeCardTermsActionType | AcceptEmployeeRemiTermsActionType | AcceptRemiTermsActionType | AcceptZeniAccountTermsActionType | ApproveOrRejectBillActionType | ApproveOrRejectRemiEpicActionType | ApproveVendorGlobalReviewActionType | BalanceSheetActionType | BalanceSheetForTimeframeActionType | CancelAndDeleteBillEpicActionType | CancelAndDeleteRemiEpicActionType | CardBalanceActionType | CashBalanceActionType | CashFlowActionType | CashFlowForTimeframeActionType | CashInCashOutActionType | CashPositionActionType | ChangeZeniPersonRolesActionType | CheckDepositEpicActionType | ClearAllActionType | CombinedStatementActionType | CompanyManagementSavePendingUpdatesActionType | CompanyManagementSaveUpdatesActionType | CreateAddressActionType | CreateBankAccountActionType | CreateCheckingAccountEpicActionType | CreateCompanyAddressActionType | CreateCompanyOfficersEpicActionType | CreateCompanyUserAddressActionType | CreateGlobalMerchantActionType | CreatePaymentInstrumentActionType | CreateUserBankAccountActionType | CurrencyConversionEpicActionType | DeleteBankAccountActionType | DeleteBillEpicActionType | DeleteBillPayApprovalRuleActionType | DeleteFileEpicActionType | DeleteFileListEpicActionType | DeletePaymentInstrumentActionType | DeletePersonActionType | DeleteRemiApprovalRuleActionType | DeleteRemiEpicActionType | DeleteTaskActionType | DeleteUserBankAccountActionType | DepositAccountTransactionListEpicActionType | EnableSetupActionType | EstablishOnboardingPlaidConnectionActionType | EstablishPlaidConnectionActionType | FetchAccountHistoryActionType | FetchAccountListActionType | FetchAccountListForAccountTypesActionType | FetchActiveTenantActionType | FetchAddressActionType | FetchAllCockpitViewsEpicActionType | FetchAllPeopleRequiredActionType | FetchAllTenantsActionType | FetchApAgingActionType | FetchApAgingDetailActionType | FetchArAgingActionType | FetchArAgingDetailActionType | FetchBankAccountsListEpic | FetchBankConnectionsViewActionType | FetchBankCountryNameByIbanEpicActionType | FetchBankNameByRoutingEpicActionType | FetchBankNameBySwiftEpicActionType | FetchBillAndInitializeLocalStoreActionType | FetchBillDetailEpicActionType | FetchBillListEpicActionType | FetchBillListPerTabEpicActionType | FetchBillPayApproversDetailsActionType | FetchBillPayApproversListActionType | FetchBillPayCardEpicActionType | FetchBillPayConfigActionType | FetchBillPaySetupApproverViewActionType | FetchBillPaySetupViewActionType | FetchChargeCardConfigActionType | FetchChargeCardDetailActionType | FetchChargeCardDetailPageActionType | FetchChargeCardListActionType | FetchChargeCardListPageActionType | FetchChargeCardSetupViewActionType | FetchChargeCardTransactionListActionType | FetchClassListActionType | FetchCollaborationAuthTokenActionType | FetchCompanyConfigActionType | FetchCompanyHealthMetricViewEpicActionType | FetchCompanyManagementActionType | FetchCompanyMonthEndReportViewActionType | FetchCompanyOnboardingViewActionType | FetchCompanyPassportViewActionType | FetchCompanyPortfolioActionType | FetchCreditAccountActionType | FetchCurrencyConversionValueEpicActionType | FetchDashboardActionType | FetchDepositAccountActionType | FetchDepositAccountDetailEpicActionType | FetchDepositAccountListActionType | FetchDepositAccStatementListActionType | FetchDuplicateBillEpicActionType | FetchDuplicateReimbursementEpicActionType | FetchEditBillDetailPageEpicActionType | FetchEditRemiDetailPageEpicActionType | FetchEntityAutoCompleteActionType | FetchEntityHistoryActionType | FetchExcludedResourcesActionType | FetchExpenseTrendActionType | FetchExternalConnectionsActionType | FetchFileActionType | FetchFileListEpicActionType | FetchForecastListActionType | FetchGlobalMerchantAutoCompleteActionType | FetchGlobalMerchantRecommendationActionType | FetchIncomeTrendActionType | FetchInternationalWireDynamicFormActionType | FetchMagicLinkBankNameByRoutingEpicActionType | FetchMagicLinkBankNameBySwiftEpicActionType | FetchMagicLinkBillEpicActionType | FetchMagicLinkTenantEpicActionType | FetchManagementActionType | FetchMerchantListEpicActionType | FetchMyProfileActionType | FetchMyProfileViewActionType | FetchNetBurnOrIncomeStoryCardActionType | FetchNetBurnOrIncomeWithForecastActionType | FetchOnboardingActionType | FetchOnboardingCompletedCompaniesActionType | FetchOnboardingCustomerSetupViewActionType | FetchOnboardingCustomerViewActionType | FetchOpExWithForecastActionType | FetchOwnerListActionType | FetchParentSubsidiaryManagementActionType | FetchPaymentAccountListActionType | FetchPortfolioActionType | FetchPreviousBillsEpicActionType | FetchRecommendationByEntityIdActionType | FetchRecommendationByEntityNameActionType | FetchRecommendationByEntityQboIdActionType | FetchRecommendationsAndUpdateMerchantRecommendationsEpicActionType | FetchRecommendationsAndUpdateVendorRecommendationsEpicActionType | FetchReimbursementCardEpicActionType | FetchReimbursementConfigEpicActionType | FetchRemiAndInitializeLocalStoreEpicActionType | FetchRemiApproversDetailsActionType | FetchRemiApproversListActionType | FetchRemiDetailEpicActionType | FetchRemiListEpicActionType | FetchRemiListPerTabEpicActionType | FetchRemiSetupApproverViewActionType | FetchRemiSetupViewActionType | FetchRevenueWithForecastActionType | FetchReviewCompanyActionType | FetchSubscriptionActionType | FetchSubscriptionAddOnsEpicActionType | FetchSubscriptionCouponsActionType | FetchSubscriptionCreateEstimateActionType | FetchSubscriptionDetailsActionType | FetchSubscriptionListActionType | FetchSubscriptionPlansActionType | FetchSubscriptionSummaryForTenantActionType | FetchSubscriptionUpdateEstimateActionType | FetchTaskDetailActionType | FetchTaskDetailPageActionType | FetchTaskListActionType | FetchTaskListPageActionType | FetchTasksCardActionType | FetchTaskHistoryActionType | FetchTransactionDetailActionType | FetchTransactionListByAccountActionType | FetchTransactionListByClassActionType | FetchTransactionListByEntityActionType | FetchTransactionsForEntityActionType | FetchTransactionsListByCategoryTypeEpicActionType | FetchTrendForEntityActionType | FetchUserDetailActionType | FetchUserFinancialAccountActionType | FetchUserListByTypeActionType | FetchUserRoleConfigActionType | FetchVendorActionType | FetchVendorByNameAndParseInvoiceActionType | FetchVendorDetailsEpicActionType | FetchVendorFirstReviewViewActionType | FetchVendorGlobalReviewViewActionType | FetchVendorsActionType | FetchVendorTypeListEpicActionType | FetchZeniAccountListPageActionType | FetchZeniAccountsConfigActionType | FetchZeniAccountSetupViewActionType | FetchZeniAccStatePageActionType | FetchZeniUsersActionType | GetOnboardingEmailGroupActionType | GetOnboardingPlaidLinkTokenActionType | GetPaymentAccountsActionType | GetPlaidLinkTokenActionType | ImproveUsingZeniGPTActionType | InitializeAccountMappingViewActionType | InitializeBillPaySetupApproverViewUpdateDataActionType | InitializeBillToLocalStoreEpicActionType | initializeCompanyHealthMetricViewLocalDataEpicActionType | InitializeEditPersonActionType | InitializeInternationalWireLocalDataActionType | InitializeOnboardingCustomerViewUpdateDataActionType | InitializeRemiSetupApproverViewUpdateDataActionType | InitializeRemiToLocalStoreEpicActionType | InitializeSubscriptionLocalDataActionType | InitializeTaskToLocalStoreActionType | InitializeTransactionDetailLocalDataActionType | InitializeVendorAddressActionType | InsightsCardActionType | InvitePeopleActionType | InviteZeniPeopleActionType | IssueChargeCardActionType | MarkTransactionAsNotMiscategorizedActionType | NetBurnOrIncomeActionType | NetBurnOrIncomeClassesViewActionType | NetBurnOrIncomeForTimeframeActionType | NetBurnOrIncomeForTimeframeClassesViewActionType | OpExActionType | OpExByVendorReportActionType | OpExByVendorReportForTimeframeActionType | OpExByVendorReportSummaryActionType | OpExClassesViewActionType | OpExForTimeframeClassesViewActionType | OpExForTimeframeViewActionType | ParallelFetchAccountTransactionListActionType | ParallelFetchClassTransactionListActionType | ParallelFetchEntityTransactionListActionType | ParallelFetchTransactionListByCategoryTypeEpicActionType | ParseInvoiceToBillEpicActionType | ParseReceiptsToRemiEpicActionType | PeopleActionType | PeoplePageActionType | PeopleSaveUpdatesActionType | ProfitAndLossActionType | ProfitAndLossClassesViewActionType | ProfitAndLossForTimeframeActionType | ProfitAndLossForTimeframeClassesViewActionType | RecommendationForAccountTypeActionType | ResendInviteActionType | ResendOtpActionType | ResetTransactionVendorLocalDataEpicActionType | ResetVendorDetailLocalDataEpicActionType | RetryBankAccountConnectionActionType | RetryBankAccountConnectionForOnboardingActionType | RevenueActionType | RevenueClassesViewActionType | RevenueForTimeframeClassesViewActionType | RevenueForTimeframeViewActionType | SaveAccountMappingViewActionType | SaveAddressActionType | SaveBillDetailEpicActionType | SaveBillPaySetupApproverViewUpdatesActionType | SaveCompanyHealthMetricByIdEpicActionType | SaveCompanyMonthEndReportActionType | SaveCompanyPassportDetailsActionType | SaveExternalConnectionActionType | SaveMagicLinkBankAccountEpicActionType | SaveOnboardingCustomerCompletedStatusActionType | SaveOnboardingCustomerNotesActionType | SaveOnboardingCustomerViewUpdatesActionType | SaveRealTimeApprovalActionType | SaveRemiDetailEpicActionType | SaveRemiSetupApproverViewUpdatesActionType | SaveSubscriptionNotesUpdatesActionType | SaveSubscriptionUpdatesActionType | SaveTaskDetailActionType | SaveTranactionVendorActionType | SaveTransactionDetailActionType | SaveVendorActionType | SaveVendorFirstReviewViewActionType | SendCompanyMonthEndReportActionType | SendOnboardingCustomerViewInviteActionType | SendOtpActionType | SignInActionType | SignOutActionType | StatementCloseDayActionType | ToggleReportUIOptionForecastModeEpicActionType | TopExActionType | TransferMoneyEpicActionType | UnlinkPaymentAccountActionType | UpdateAddressActionType | UpdateBusinessVerificationDetailsActionType | UpdateChargeCardDetailActionType | UpdateCompanyDetailsActionType | UpdateCompanyOfficerActionType | UpdateCompanyPassportLocalStoreDataActionType | UpdateDepositAccountActionType | UpdateDynamicFormActionType | UpdateFileNameEpicActionType | UpdateFilesMetadataEpicActionType | UpdateMileageDetailsActionType | UpdateNetBurnOrIncomeStoryCardSettingsActionType | UpdateOnboardingCustomerViewActionType | UpdateOnboardingCustomerViewCompleteStatusActionType | UpdateOnboardingCustomerViewLocalStoreDataActionType | UpdateOnboardingPaymentAccountLoginStatusActionType | UpdateOnboardingPaymentAccountStatusActionType | UpdatePaymentAccountActionType | UpdatePaymentAccountLoginStatusActionType | UpdatePaymentAccountStatusActionType | UpdatePrimaryContactActionType | UpdateRemiSetupViewLocalStoreDataActionType | UpdateReportUIOptionCOABalancesRangeEpicActionType | UpdateReportUIOptionIsCompareModeEpicActionType | UpdateReportUIOptionIsCompareModeOnEpicActionType | UpdateReportUIOptionThisPeriodActionType | UpdateReportUIOptionTimeFrameActionType | UpdateSectionAccountsViewActionType | UpdateSectionClassesViewV2ActionType | UpdateSelectedVendorForCreateFlowActionType | UpdateSetupViewLocalStoreDataActionType | UpdateTransactionDetailActionType | UpdateTransactionOnUploadSuccessActionType | UpdateVendorContactEpicActionType | VendorsTabFetchVendorActionType | VendorsTabFetchVendorDetailPageViewEpicActionType | VendorsTabFetchVendorDetailsEpicActionType | VendorsTabResetVendorDetailLocalDataEpicActionType | VendorsTabSaveVendorActionType | VerifyOtpActionType | VerifyUserActionType | WiseRedirectEpicActionType;
|
|
323
324
|
declare const rootEpic: Epic<RootActionType>;
|
|
324
325
|
export default rootEpic;
|
package/lib/epic.js
CHANGED
|
@@ -152,6 +152,7 @@ const fetchReimbursementCardEpic_1 = require("./view/reimbursementCard/fetchReim
|
|
|
152
152
|
const fetchBillListPerTabEpic_1 = require("./view/spendManagement/billPay/billList/fetchBillListPerTabEpic");
|
|
153
153
|
const fetchBillDetailEpic_1 = require("./view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic");
|
|
154
154
|
const fetchRemiDetailEpic_1 = require("./view/spendManagement/reimbursement/remiDetailView/epics/fetchRemiDetailEpic");
|
|
155
|
+
const fetchDuplicateReimbursementEpic_1 = require("./view/spendManagement/reimbursement/remiDetailView/epics/fetchDuplicateReimbursementEpic");
|
|
155
156
|
const approveOrRejectRemiEpic_1 = require("./view/spendManagement/reimbursement/remiDetailView/epics/approveOrRejectRemiEpic");
|
|
156
157
|
const deleteRemiEpic_1 = require("./view/spendManagement/reimbursement/remiDetailView/epics/deleteRemiEpic");
|
|
157
158
|
const cancelAndDeleteRemiEpic_1 = require("./view/spendManagement/reimbursement/remiDetailView/epics/cancelAndDeleteRemiEpic");
|
|
@@ -326,7 +327,7 @@ const initializeTaskToLocalStoreEpic_1 = require("./view/taskManager/taskDetailV
|
|
|
326
327
|
const fetchTaskHistoryEpic_1 = require("./view/taskManager/taskDetailView/epics/fetchTaskHistoryEpic");
|
|
327
328
|
const fetchCollaborationAuthTokenEpic_1 = require("./view/authenticationView/epics/fetchCollaborationAuthTokenEpic");
|
|
328
329
|
// Note: Please maintain strict alphabetical order
|
|
329
|
-
const combinedEpics = (0, redux_observable_1.combineEpics)(acceptBillPayTermsEpic_1.acceptBillPayTermsEpic, acceptBillPayUpdatedTermsEpic_1.acceptBillPayUpdatedTermsEpic, acceptChargeCardTermsEpic_1.acceptChargeCardTermsEpic, acceptEmployeeRemiTermsEpic_1.acceptEmployeeRemiTermsEpic, acceptRemiTermsEpic_1.acceptRemiTermsEpic, acceptZeniAccountTermsEpic_1.acceptZeniAccountTermsEpic, approveOrRejectBillEpic_1.approveOrRejectBillEpic, approveOrRejectRemiEpic_1.approveOrRejectRemiEpic, approveVendorGlobalReviewEpic_1.approveVendorGlobalReviewEpic, cancelAndDeleteBillEpic_1.cancelAndDeleteBillEpic, cancelAndDeleteRemiEpic_1.cancelAndDeleteRemiEpic, changeZeniPersonRolesEpic_1.changeZeniPersonRolesEpic, checkDepositEpic_1.checkDepositEpic, clearAllEpic_1.clearAllEpic, companyManagementSavePendingUpdates_1.companyManagementSavePendingUpdatesEpic, companyManagementSaveUpdatesEpic_1.companyManagementSaveUpdatesEpic, convertAmountToHomeCurrencyEpic_1.convertAmountToHomeCurrencyEpic, createAddressEpic_1.createAddressEpic, createBankAccountEpic_1.createBankAccountEpic, createCheckingAccountEpic_1.createCheckingAccountEpic, createCompanyAddressEpic_1.createCompanyAddressEpic, createCompanyOfficersEpic_1.createCompanyOfficersEpic, createCompanyUserAddressEpic_1.createCompanyUserAddressEpic, createGlobalMerchantEpic_1.createGlobalMerchantEpic, createInternationalPaymentInstrumentEpic_1.createPaymentInstrumentEpic, createUserBankAccountEpic_1.createUserBankAccountEpic, deleteBankAccountEpic_1.deleteBankAccountEpic, deleteBillEpic_1.deleteBillEpic, deleteBillPayApprovalRuleEpic_1.deleteBillPayApprovalRuleEpic, deleteFileEpic_1.deleteFileEpic, deleteFileListEpic_1.deleteFileListEpic, deletePaymentInstrumentEpic_1.deletePaymentInstrumentEpic, deletePersonEpic_1.deletePersonEpic, deleteRemiApprovalRuleEpic_1.deleteRemiApprovalRuleEpic, deleteRemiEpic_1.deleteRemiEpic, deleteTaskEpic_1.deleteTaskEpic, deleteUserBankAccountEpic_1.deleteUserBankAccountEpic, signInUserEpic_1.doSignInEpic, signOutUserEpic_1.doSignOutEpic, enableSetupEpic_1.enableSetupEpic, establishOnboardingPlaidConnectionEpic_1.establishOnboardingPlaidConnectionEpic, establishPlaidConnectionEpic_1.establishPlaidConnectionEpic, fetchAccountListEpic_1.fetchAccountListEpic, fetchAccountListForAccountTypesEpic_1.fetchAccountListForAccountTypesEpic, fetchActiveTenantEpic_1.fetchActiveTenantEpic, fetchAddressEpic_1.fetchAddressEpic, fetchAllCockpitViewsEpic_1.fetchAllCockpitViewsEpic, fetchAllPeopleRequiredViewsEpic_1.fetchAllPeopleRequiredViewsEpic, fetchAllTenantsEpic_1.fetchAllTenantsEpic, fetchAndUpdateVendorRecommendationsEpic_1.fetchAndUpdateVendorRecommendationsEpic, fetchApAgingDetailEpic_1.fetchApAgingDetailEpic, fetchApAgingEpic_1.fetchApAgingEpic, fetchArAgingDetailEpic_1.fetchArAgingDetailEpic, fetchArAgingEpic_1.fetchArAgingEpic, balanceSheetEpic_1.fetchBalanceSheetEpic, balanceSheetForTimeframeEpic_1.fetchBalanceSheetForTimeframeEpic, fetchBankAccountsListEpic_1.fetchBankAccountsListEpic, fetchBankConnectionsViewEpic_1.fetchBankConnectionsViewEpic, fetchBankCountryNameByIbanEpic_1.fetchBankCountryNameByIbanEpic, fetchBankNameByRoutingEpic_1.fetchBankNameByRoutingEpic, fetchBankNameBySwiftEpic_1.fetchBankNameBySwiftEpic, fetchBillAndInitializeLocalStoreEpic_1.fetchBillAndInitializeLocalStoreEpic, fetchBillDetailEpic_1.fetchBillDetailEpic, fetchBillListEpic_1.fetchBillListEpic, fetchBillListPerTabEpic_1.fetchBillListPerTabEpic, fetchBillPayApproversDetailsEpic_1.fetchBillPayApproversDetailsEpic, fetchBillPayApproversListEpic_1.fetchBillPayApproversListEpic, fetchBillPayCardEpic_1.fetchBillPayCardEpic, fetchBillPayConfigEpic_1.fetchBillPayConfigEpic, fetchBillPaySetupApproverViewEpic_1.fetchBillPaySetupApproverViewEpic, fetchBillPaySetupViewEpic_1.fetchBillPaySetupViewEpic, cardBalanceEpic_1.fetchCardBalanceEpic, cashBalanceEpic_1.fetchCashBalanceEpic, cashFlowEpic_1.fetchCashFlowEpic, cashFlowForTimeframeEpic_1.fetchCashFlowForTimeframeEpic, cashInCashOutEpic_1.fetchCashInCashOutEpic, cashPositionEpic_1.fetchCashPositionEpic, fetchChargeCardConfigEpic_1.fetchChargeCardConfigEpic, fetchChargeCardDetailEpic_1.fetchChargeCardDetailEpic, fetchChargeCardDetailPageEpic_1.fetchChargeCardDetailPageEpic, fetchChargeCardListEpic_1.fetchChargeCardListEpic, fetchChargeCardListPageEpic_1.fetchChargeCardListPageEpic, fetchChargeCardSetupViewEpic_1.fetchChargeCardSetupViewEpic, fetchChargeCardTransactionListEpic_1.fetchChargeCardTransactionListEpic, fetchClassListEpic_1.fetchClassListEpic, fetchCollaborationAuthTokenEpic_1.fetchCollaborationAuthTokenEpic, companyConfigEpic_1.fetchCompanyConfigEpic, fetchCompanyHealthMetricViewEpic_1.fetchCompanyHealthMetricViewEpic, fetchCompanyManagementViewEpic_1.fetchCompanyManagementViewEpic, fetchCompanyMonthEndReportViewEpic_1.fetchCompanyMonthEndReportViewEpic, fetchCompanyOnboardingViewEpic_1.fetchCompanyOnboardingViewEpic, fetchCompanyPassportViewEpic_1.fetchCompanyPassportViewEpic, fetchCompanyPortfolioViewEpic_1.fetchCompanyPortfolioViewEpic, fetchCreditAccountEpic_1.fetchCreditAccountEpic, fetchCurrencyConversionValueEpic_1.fetchCurrencyConversionValueEpic, dashboardEpic_1.fetchDashboardEpic, fetchDepositAccountDetailEpic_1.fetchDepositAccountDetailEpic, fetchDepositAccountEpic_1.fetchDepositAccountEpic, fetchDepositAccountHistoryEpic_1.fetchDepositAccountHistoryEpic, fetchDepositAccountListEpic_1.fetchDepositAccountListEpic, fetchDepositAccountTransactionListEpic_1.fetchDepositAccountTransactionListEpic, fetchDuplicateBillEpic_1.fetchDuplicateBillPayReviewEpic, fetchEditBillDetailPageEpic_1.fetchEditBillDetailPageEpic, fetchEditRemiDetailPageEpic_1.fetchEditRemiDetailPageEpic, fetchEntityAutoCompleteEpic_1.fetchEntityAutoCompleteEpic, fetchEntityHistoryEpic_1.fetchEntityHistoryEpic, fetchExcludedResourcesEpic_1.fetchExcludedResourcesEpic, fetchExpenseTrendEpic_1.fetchExpenseTrendEpic, fetchExternalConnectionsEpic_1.fetchExternalConnectionsEpic, fetchFileEpic_1.fetchFileEpic, fetchFileListEpic_1.fetchFileListEpic, financeStatementEpic_1.fetchFinanceStatementEpic, fetchForecastListEpic_1.fetchForecastListEpic, fetchGlobalMerchantAutoCompleteViewEpic_1.fetchGlobalMerchantAutoCompleteViewEpic, fetchGlobalMerchantRecommendationEpic_1.fetchGlobalMerchantRecommendationEpic, fetchIncomeTrendEpic_1.fetchIncomeTrendEpic, insightsCardEpic_1.fetchInsightsCardEpic, fetchInternationalWireDynamicFormEpic_1.fetchInternationalWireDynamicFormEpic, fetchMagicLinkBankNameByRoutingEpic_1.fetchMagicLinkBankNameByRoutingEpic, fetchMagicLinkBankNameBySwiftEpic_1.fetchMagicLinkBankNameBySwiftEpic, fetchMagicLinkBillEpic_1.fetchMagicLinkBillEpic, fetchMagicLinkTenantEpic_1.fetchMagicLinkTenantEpic, fetchManagementViewEpic_1.fetchManagementViewEpic, fetchMerchantListEpic_1.fetchMerchantListEpic, fetchMyProfileEpic_1.fetchMyProfileEpic, fetchMyProfileViewEpic_1.fetchMyProfileViewEpic, netBurnOrIncomeClassesViewEpic_1.fetchNetBurnOrIncomeClassesViewEpic, netBurnOrIncomeEpic_1.fetchNetBurnOrIncomeEpic, netBurnOrIncomeForTimeframeClassesViewEpic_1.fetchNetBurnOrIncomeForTimeframeClassesViewEpic, netBurnOrIncomeForTimeframeEpic_1.fetchNetBurnOrIncomeForTimeframeEpic, fetchNetBurnOrIncomeStoryCardEpic_1.fetchNetBurnOrIncomeStoryCardEpic, fetchNetBurnOrIncomeWithForecastEpic_1.fetchNetBurnOrIncomeWithForecastEpic, fetchOnboardingCompletedCompaniesEpic_1.fetchOnboardingCompletedCompaniesEpic, fetchOnboardingCustomerSetupViewEpic_1.fetchOnboardingCustomerSetupViewEpic, fetchOnboardingCustomerViewEpic_1.fetchOnboardingCustomerViewEpic, fetchOnboardingViewEpic_1.fetchOnboardingViewEpic, fetchOpExByVendorReportEpic_1.fetchOpExByVendorEpic, fetchOpExByVendorReportForTimeframeEpic_1.fetchOpExByVendorReportForTimeframeEpic, fetchOpExByVendorReportSummaryEpic_1.fetchOpExByVendorReportSummaryEpic, opExClassesViewEpic_1.fetchOpExClassesViewEpic, opExEpic_1.fetchOpExEpic, opExForTimeframeClassesViewEpic_1.fetchOpExForTimeframeClassesViewEpic, opExForTimeFrameEpic_1.fetchOpExReportForTimeframeEpic, fetchOpExWithForecastEpic_1.fetchOpExWithForecastEpic, fetchOwnerListEpic_1.fetchOwnerListEpic, fetchParentSubsidiaryManagementViewEpic_1.fetchParentSubsidiaryManagementViewEpic, fetchPaymentAccountListEpic_1.fetchPaymentAccountListEpic, fetchPeopleEpic_1.fetchPeopleEpic, peoplePageEpic_1.fetchPeoplePageEpic, fetchPortfolioViewEpic_1.fetchPortfolioViewEpic, fetchPreviousBillsEpic_1.fetchPreviousBillsEpic, profitAndLossClassesViewEpic_1.fetchProfitAndLossClassesViewEpic, profitAndLossEpic_1.fetchProfitAndLossEpic, profitAndLossForTimeframeClassesViewEpic_1.fetchProfitAndLossForTimeframeClassesViewEpic, profitAndLossForTimeframeEpic_1.fetchProfitAndLossForTimeframeEpic, fetchRecommendationByEntityIdEpic_1.fetchRecommendationByEntityIdEpic, fetchRecommendationByEntityNameEpic_1.fetchRecommendationByEntityNameEpic, fetchRecommendationByEntityQboIdEpic_1.fetchRecommendationByEntityQboIdEpic, fetchRecommendationForAccountTypeEpic_1.fetchRecommendationForAccountTypeEpic, fetchRecommendationsAndUpdateMerchantRecommendationsEpic_1.fetchRecommendationsAndUpdateMerchantRecommendationsEpic, fetchReimbursementCardEpic_1.fetchReimbursementCardEpic, fetchReimbursementConfigEpic_1.fetchReimbursementConfigEpic, fetchRemiAndInitializeLocalStoreEpic_1.fetchRemiAndInitializeLocalStoreEpic, fetchRemiApproversDetailsEpic_1.fetchRemiApproversDetailsEpic, fetchRemiApproversListEpic_1.fetchRemiApproversListEpic, fetchRemiDetailEpic_1.fetchRemiDetailEpic, fetchRemiListEpic_1.fetchRemiListEpic, fetchRemiListPerTabEpic_1.fetchRemiListPerTabEpic, fetchRemiSetupApproverViewEpic_1.fetchRemiSetupApproverViewEpic, fetchRemiSetupViewEpic_1.fetchRemiSetupViewEpic, revenueClassesViewEpic_1.fetchRevenueClassesViewEpic, revenueEpic_1.fetchRevenueEpic, revenueForTimeframeClassesViewEpic_1.fetchRevenueForTimeframeClassesViewEpic, revenueForTimeframeEpic_1.fetchRevenueForTimeframeEpic, fetchRevenueWithForecastEpic_1.fetchRevenueWithForecastEpic, fetchReviewCompanyViewEpic_1.fetchReviewCompanyViewEpic, fetchSubscriptionAddOnsEpic_1.fetchSubscriptionAddOnsEpic, fetchSubscriptionCouponsEpic_1.fetchSubscriptionCouponsEpic, fetchSubscriptionCreateEstimateEpic_1.fetchSubscriptionCreateEstimateEpic, fetchSubscriptionDetailsEpic_1.fetchSubscriptionDetailsEpic, fetchSubscriptionListEpic_1.fetchSubscriptionListEpic, fetchSubscriptionPlansEpic_1.fetchSubscriptionPlansEpic, fetchSubscriptionSummaryForTenantEpic_1.fetchSubscriptionSummaryForTenantEpic, fetchSubscriptionUpdateEstimateEpic_1.fetchSubscriptionUpdateEstimateEpic, fetchSubscriptionViewEpic_1.fetchSubscriptionViewEpic, fetchTaskDetailEpic_1.fetchTaskDetailEpic, fetchTaskDetailPageEpic_1.fetchTaskDetailPageEpic, fetchTaskHistoryEpic_1.fetchTaskHistoryEpic, fetchTaskListEpic_1.fetchTaskListEpic, fetchTaskListPageEpic_1.fetchTaskListPageEpic, fetchTasksCardEpic_1.fetchTasksCardEpic, topExEpic_1.fetchTopExEpic, transactionDetailEpic_1.fetchTransactionDetailEpic, fetchTransactionListByAccountEpic_1.fetchTransactionListByAccountEpic, fetchTransactionListByClassEpic_1.fetchTransactionListByClassEpic, fetchTransactionListByEntityEpic_1.fetchTransactionListByEntityEpic, fetchTransactionsForEntityEpic_1.fetchTransactionsForEntityEpic, fetchTransactionsListByCategoryTypeEpic_1.fetchTransactionsListByCategoryTypeEpic, fetchTrendForEntityEpic_1.fetchTrendForEntityEpic, fetchUserDetailEpic_1.fetchUserDetailEpic, fetchUserFinancialAccountEpic_1.fetchUserFinancialAccountEpic, fetchUserListByTypeEpic_1.fetchUserListByTypeEpic, userRoleConfigEpic_1.fetchUserRoleConfigEpic, fetchVendorByNameAndParseInvoice_1.fetchVendorByNameAndParseInvoiceEpic, fetchVendorDetailsEpic_1.fetchVendorDetailsEpic, fetchVendorEpic_1.fetchVendorEpic, fetchVendorFirstReviewViewEpic_1.fetchVendorFirstReviewViewEpic, fetchVendorGlobalReviewViewEpic_1.fetchVendorGlobalReviewViewEpic, fetchVendorsListEpic_1.fetchVendorsListEpic, fetchVendorsTabVendorDetailPageViewEpic_1.fetchVendorsTabVendorDetailPageViewEpic, fetchVendorsTabVendorDetailsEpic_1.fetchVendorsTabVendorDetailsEpic, fetchVendorsTabVendorEpic_1.fetchVendorsTabVendorEpic, vendorTypeListEpic_1.fetchVendorTypeListEpic, vendorTypeListEpic_1.fetchVendorTypeListEpic, fetchZeniAccountListPageEpic_1.fetchZeniAccountListEpic, fetchZeniAccountsConfigEpic_1.fetchZeniAccountsConfigEpic, fetchZeniAccountSetupViewEpic_1.fetchZeniAccountSetupViewEpic, fetchZeniAccStatementListEpic_1.fetchZeniAccStatementListEpic, fetchZeniAccStatementPageEpic_1.fetchZeniAccStatementPageEpic, fetchZeniUsersEpic_1.fetchZeniUsersEpic, getOnboardingEmailGroupEpic_1.getOnboardingEmailGroupEpic, getOnboardingPlaidLinkTokenEpic_1.getOnboardingPlaidLinkTokenEpic, getPaymentAccountsEpic_1.getPaymentAccountsEpic, getPlaidLinkTokenEpic_1.getPlaidLinkTokenEpic, improveUsingZeniGPTEpic_1.improveUsingZeniGPTEpic, initializeAccountMappingViewEpic_1.initializeAccountMappingViewEpic, initializeBillPaySetupApproverViewUpdateDataEpic_1.initializeBillPaySetupApproverViewUpdateDataEpic, initializeBillToLocalStoreEpic_1.initializeBillToLocalStoreEpic, initializeCompanyHealthMetricViewLocalData_1.initializeCompanyHealthMetricViewLocalDataEpic, initializeDynamicFormEpic_1.initializeDynamicFormEpic, initializeEditPersonEpic_1.initializeEditPersonEpic, initializeInternationalWireLocalDataEpic_1.initializeInternationalWireLocalDataEpic, initializeOnboardingCustomerViewUpdateDataEpic_1.initializeOnboardingCustomerViewUpdateDataEpic, initializeRemiSetupApproverViewUpdateDataEpic_1.initializeRemiSetupApproverViewUpdateDataEpic, initializeRemiToLocalStoreEpic_1.initializeRemiToLocalStoreEpic, initializeSubscriptionLocalDataEpic_1.initializeSubscriptionLocalDataEpic, initializeTaskToLocalStoreEpic_1.initializeTaskToLocalStoreEpic, initializeTransactionDetailLocalDataEpic_1.initializeTransactionDetailLocalDataEpic, initializeVendorAddressEpic_1.initializeVendorAddressEpic, invitePeopleEpic_1.invitePeopleEpic, inviteZeniPeopleEpic_1.inviteZeniPeopleEpic, issueChargeCardEpic_1.issueChargeCardEpic, markTransactionAsNotMiscategorizedEpic_1.markTransactionAsNotMiscategorizedEpic, parallelFetchAccountTransactionListEpic_1.parallelFetchAccountTransactionListEpic, parallelFetchClassTransactionListEpic_1.parallelFetchClassTransactionListEpic, parallelFetchEntityTransactionListEpic_1.parallelFetchEntityTransactionListEpic, parallelFetchTransactionListByCategoryTypeEpic_1.parallelFetchTransactionListByCategoryTypeEpic, parseInvoiceToBillEpic_1.parseInvoiceToBillEpic, parseReceiptsToRemiEpic_1.parseReceiptsToRemiEpic, peopleSaveUpdatesEpic_1.peopleSaveUpdatesEpic, resendInviteEpic_1.resendInviteEpic, resendOtpEpic_1.resendOtpEpic, resetTransactionVendorLocalDataEpic_1.resetTransactionVendorLocalDataEpic, resetVendorDetailLocalDataEpic_1.resetVendorDetailLocalDataEpic, resetVendorsTabVendorDetailLocalDataEpic_1.resetVendorsTabVendorDetailLocalDataEpic, retryBankAccountConnectionEpic_1.retryBankAccountConnectionEpic, retryBankAccountConnectionForOnboardingEpic_1.retryBankAccountConnectionForOnboardingEpic, saveAccountMappingViewEpic_1.saveAccountMappingViewEpic, saveBillDetailEpic_1.saveBillDetailEpic, saveBillPaySetupApproverViewUpdatesEpic_1.saveBillPaySetupApproverViewUpdatesEpic, saveCompanyHealthMetricByIdEpic_1.saveCompanyHealthMetricByIdEpic, saveCompanyMonthEndReportEpic_1.saveCompanyMonthEndReportEpic, saveCompanyPassportDetailsEpic_1.saveCompanyPassportDetailsEpic, saveExternalConnectionEpic_1.saveExternalConnectionEpic, saveMagicLinkBankAccountEpic_1.saveMagicLinkBankAccountEpic, saveNewAddressEpic_1.saveNewAddressEpic, saveOnboardingCustomerCompletedStatusEpic_1.saveOnboardingCustomerCompletedStatusEpic, saveOnboardingCustomerNotesEpic_1.saveOnboardingCustomerNotesEpic, saveOnboardingCustomerViewUpdatesEpic_1.saveOnboardingCustomerViewUpdatesEpic, saveRealTimeApprovalEpic_1.saveRealTimeApprovalEpic, saveRemiDetailEpic_1.saveRemiDetailEpic, saveRemiSetupApproverViewUpdatesEpic_1.saveRemiSetupApproverViewUpdatesEpic, saveSubscriptionNotesUpdatesEpic_1.saveSubscriptionNotesUpdatesEpic, saveSubscriptionUpdatesEpic_1.saveSubscriptionUpdatesEpic, saveTaskDetailEpic_1.saveTaskDetailEpic, saveTransactionDetailEpic_1.saveTransactionDetailEpic, saveTransactionVendorEpic_1.saveTransactionVendorEpic, saveVendorEpic_1.saveVendorEpic, saveVendorFirstReviewViewEpic_1.saveVendorFirstReviewViewEpic, saveVendorsTabVendorEpic_1.saveVendorsTabVendorEpic, sendCompanyMonthEndReportEpic_1.sendCompanyMonthEndReportEpic, sendOnboardingCustomerViewInviteEpic_1.sendOnboardingCustomerViewInviteEpic, sendOtpEpic_1.sendOtpEpic, statementCloseDayEpic_1.statementCloseDayEpic, toggleReportUIOptionForecastModeEpic_1.toggleReportUIOptionForecastModeEpic, transferMoneyEpic_1.transferMoneyEpic, unlinkPaymentAccountEpic_1.unlinkPaymentAccountEpic, updateAddressEpic_1.updateAddressEpic, updateBusinessVerificationDetailsEpic_1.updateBusinessVerificationDetailsEpic, updateChargeCardDetailEpic_1.updateChargeCardDetailEpic, updateCompanyDetailsEpic_1.updateCompanyDetailsEpic, updateCompanyOfficerEpic_1.updateCompanyOfficerEpic, updateCompanyPassportLocalStoreDataEpic_1.updateCompanyPassportLocalStoreDataEpic, updateDepositAccountEpic_1.updateDepositAccountEpic, updateFileNameEpic_1.updateFileNameEpic, updateFilesMetadataEpic_1.updateFilesMetadataEpic, updateMileageDetailsEpic_1.updateMileageDetailsEpic, updateNetBurnOrIncomeStoryCardSettingsEpic_1.updateNetBurnOrIncomeStoryCardSettingsEpic, updateOnboardingCustomerViewCompleteStatusEpic_1.updateOnboardingCustomerViewCompleteStatusEpic, updateOnboardingCustomerViewEpic_1.updateOnboardingCustomerViewEpic, updateOnboardingCustomerViewLocalStoreDataEpic_1.updateOnboardingCustomerViewLocalStoreDataEpic, updateOnboardingPaymentAccountLoginStatusEpic_1.updateOnboardingPaymentAccountLoginStatusEpic, updateOnboardingPaymentAccountStatusEpic_1.updateOnboardingPaymentAccountStatusEpic, updatePaymentAccountEpic_1.updatePaymentAccountEpic, updatePaymentAccountLoginStatusEpic_1.updatePaymentAccountLoginStatusEpic, updatePaymentAccountStatusEpic_1.updatePaymentAccountStatusEpic, updatePrimaryContactEpic_1.updatePrimaryContactEpic, updateRemiSetupViewLocalStoreDataEpic_1.updateRemiSetupViewLocalStoreDataEpic, updateReportUIOptionCOABalancesRangeEpic_1.updateReportUIOptionCOABalancesRangeEpic, updateReportUIOptionCompareModeEpic_1.updateReportUIOptionIsCompareModeEpic, updateReportUIOptionIsCompareModeOnEpic_1.updateReportUIOptionIsCompareModeOnEpic, updateReportUIOptionThisPeriodEpic_1.updateReportUIOptionThisPeriodEpic, updateReportUIOptionTimeFrameEpic_1.updateReportUIOptionTimeFrameEpic, sectionAccountsViewEpic_1.updateSectionAccountsViewEpic, sectionClassesViewEpic_1.updateSectionClassesViewEpic, updateSelectedVendorForCreateFlowEpic_1.updateSelectedVendorForCreateFlowEpic, updateSetupViewLocalStoreDataEpic_1.updateSetupViewLocalStoreDataEpic, updateTransactionDetailEpic_1.updateTransactionDetailEpic, updateVendorContactEpic_1.updateVendorContactEpic, uploadMissingReceiptSuccessEpic_1.uploadMissingReceiptSuccessEpic, verifyOtpEpic_1.verifyOtpEpic, verifyUserEpic_1.verifyUserEpic, fetchBillAndInitializeLocalStoreEpic_1.waitForBillDetailThenInitializeLocalStoreEpic, fetchNetBurnOrIncomeWithForecastEpic_1.waitForForecastListThenFetchNetBurnOrIncomeWithForecastEpic, fetchOpExWithForecastEpic_1.waitForForecastListThenFetchOpExWithForecastEpic, fetchRevenueWithForecastEpic_1.waitForForecastListThenFetchRevenueWithForecastEpic, fetchRecommendationsAndUpdateMerchantRecommendationsEpic_1.waitForMerchantRecommendationFetchThenUpdateRecommendationInMerchantEpic, fetchVendorByNameAndParseInvoice_1.waitForVendorByNameThenParsetoLocalStoreEpic, fetchBillDetailEpic_1.waitForVendorByNameThenUpdateBillDetailEpic, fetchAndUpdateVendorRecommendationsEpic_1.waitForVendorRecommendationFetchThenUpdateRecommendationInBillEpic, wiseRedirectEpic_1.wiseRedirectEpic);
|
|
330
|
+
const combinedEpics = (0, redux_observable_1.combineEpics)(acceptBillPayTermsEpic_1.acceptBillPayTermsEpic, acceptBillPayUpdatedTermsEpic_1.acceptBillPayUpdatedTermsEpic, acceptChargeCardTermsEpic_1.acceptChargeCardTermsEpic, acceptEmployeeRemiTermsEpic_1.acceptEmployeeRemiTermsEpic, acceptRemiTermsEpic_1.acceptRemiTermsEpic, acceptZeniAccountTermsEpic_1.acceptZeniAccountTermsEpic, approveOrRejectBillEpic_1.approveOrRejectBillEpic, approveOrRejectRemiEpic_1.approveOrRejectRemiEpic, approveVendorGlobalReviewEpic_1.approveVendorGlobalReviewEpic, cancelAndDeleteBillEpic_1.cancelAndDeleteBillEpic, cancelAndDeleteRemiEpic_1.cancelAndDeleteRemiEpic, changeZeniPersonRolesEpic_1.changeZeniPersonRolesEpic, checkDepositEpic_1.checkDepositEpic, clearAllEpic_1.clearAllEpic, companyManagementSavePendingUpdates_1.companyManagementSavePendingUpdatesEpic, companyManagementSaveUpdatesEpic_1.companyManagementSaveUpdatesEpic, convertAmountToHomeCurrencyEpic_1.convertAmountToHomeCurrencyEpic, createAddressEpic_1.createAddressEpic, createBankAccountEpic_1.createBankAccountEpic, createCheckingAccountEpic_1.createCheckingAccountEpic, createCompanyAddressEpic_1.createCompanyAddressEpic, createCompanyOfficersEpic_1.createCompanyOfficersEpic, createCompanyUserAddressEpic_1.createCompanyUserAddressEpic, createGlobalMerchantEpic_1.createGlobalMerchantEpic, createInternationalPaymentInstrumentEpic_1.createPaymentInstrumentEpic, createUserBankAccountEpic_1.createUserBankAccountEpic, deleteBankAccountEpic_1.deleteBankAccountEpic, deleteBillEpic_1.deleteBillEpic, deleteBillPayApprovalRuleEpic_1.deleteBillPayApprovalRuleEpic, deleteFileEpic_1.deleteFileEpic, deleteFileListEpic_1.deleteFileListEpic, deletePaymentInstrumentEpic_1.deletePaymentInstrumentEpic, deletePersonEpic_1.deletePersonEpic, deleteRemiApprovalRuleEpic_1.deleteRemiApprovalRuleEpic, deleteRemiEpic_1.deleteRemiEpic, deleteTaskEpic_1.deleteTaskEpic, deleteUserBankAccountEpic_1.deleteUserBankAccountEpic, signInUserEpic_1.doSignInEpic, signOutUserEpic_1.doSignOutEpic, enableSetupEpic_1.enableSetupEpic, establishOnboardingPlaidConnectionEpic_1.establishOnboardingPlaidConnectionEpic, establishPlaidConnectionEpic_1.establishPlaidConnectionEpic, fetchAccountListEpic_1.fetchAccountListEpic, fetchAccountListForAccountTypesEpic_1.fetchAccountListForAccountTypesEpic, fetchActiveTenantEpic_1.fetchActiveTenantEpic, fetchAddressEpic_1.fetchAddressEpic, fetchAllCockpitViewsEpic_1.fetchAllCockpitViewsEpic, fetchAllPeopleRequiredViewsEpic_1.fetchAllPeopleRequiredViewsEpic, fetchAllTenantsEpic_1.fetchAllTenantsEpic, fetchAndUpdateVendorRecommendationsEpic_1.fetchAndUpdateVendorRecommendationsEpic, fetchApAgingDetailEpic_1.fetchApAgingDetailEpic, fetchApAgingEpic_1.fetchApAgingEpic, fetchArAgingDetailEpic_1.fetchArAgingDetailEpic, fetchArAgingEpic_1.fetchArAgingEpic, balanceSheetEpic_1.fetchBalanceSheetEpic, balanceSheetForTimeframeEpic_1.fetchBalanceSheetForTimeframeEpic, fetchBankAccountsListEpic_1.fetchBankAccountsListEpic, fetchBankConnectionsViewEpic_1.fetchBankConnectionsViewEpic, fetchBankCountryNameByIbanEpic_1.fetchBankCountryNameByIbanEpic, fetchBankNameByRoutingEpic_1.fetchBankNameByRoutingEpic, fetchBankNameBySwiftEpic_1.fetchBankNameBySwiftEpic, fetchBillAndInitializeLocalStoreEpic_1.fetchBillAndInitializeLocalStoreEpic, fetchBillDetailEpic_1.fetchBillDetailEpic, fetchBillListEpic_1.fetchBillListEpic, fetchBillListPerTabEpic_1.fetchBillListPerTabEpic, fetchBillPayApproversDetailsEpic_1.fetchBillPayApproversDetailsEpic, fetchBillPayApproversListEpic_1.fetchBillPayApproversListEpic, fetchBillPayCardEpic_1.fetchBillPayCardEpic, fetchBillPayConfigEpic_1.fetchBillPayConfigEpic, fetchBillPaySetupApproverViewEpic_1.fetchBillPaySetupApproverViewEpic, fetchBillPaySetupViewEpic_1.fetchBillPaySetupViewEpic, cardBalanceEpic_1.fetchCardBalanceEpic, cashBalanceEpic_1.fetchCashBalanceEpic, cashFlowEpic_1.fetchCashFlowEpic, cashFlowForTimeframeEpic_1.fetchCashFlowForTimeframeEpic, cashInCashOutEpic_1.fetchCashInCashOutEpic, cashPositionEpic_1.fetchCashPositionEpic, fetchChargeCardConfigEpic_1.fetchChargeCardConfigEpic, fetchChargeCardDetailEpic_1.fetchChargeCardDetailEpic, fetchChargeCardDetailPageEpic_1.fetchChargeCardDetailPageEpic, fetchChargeCardListEpic_1.fetchChargeCardListEpic, fetchChargeCardListPageEpic_1.fetchChargeCardListPageEpic, fetchChargeCardSetupViewEpic_1.fetchChargeCardSetupViewEpic, fetchChargeCardTransactionListEpic_1.fetchChargeCardTransactionListEpic, fetchClassListEpic_1.fetchClassListEpic, fetchCollaborationAuthTokenEpic_1.fetchCollaborationAuthTokenEpic, companyConfigEpic_1.fetchCompanyConfigEpic, fetchCompanyHealthMetricViewEpic_1.fetchCompanyHealthMetricViewEpic, fetchCompanyManagementViewEpic_1.fetchCompanyManagementViewEpic, fetchCompanyMonthEndReportViewEpic_1.fetchCompanyMonthEndReportViewEpic, fetchCompanyOnboardingViewEpic_1.fetchCompanyOnboardingViewEpic, fetchCompanyPassportViewEpic_1.fetchCompanyPassportViewEpic, fetchCompanyPortfolioViewEpic_1.fetchCompanyPortfolioViewEpic, fetchCreditAccountEpic_1.fetchCreditAccountEpic, fetchCurrencyConversionValueEpic_1.fetchCurrencyConversionValueEpic, dashboardEpic_1.fetchDashboardEpic, fetchDepositAccountDetailEpic_1.fetchDepositAccountDetailEpic, fetchDepositAccountEpic_1.fetchDepositAccountEpic, fetchDepositAccountHistoryEpic_1.fetchDepositAccountHistoryEpic, fetchDepositAccountListEpic_1.fetchDepositAccountListEpic, fetchDepositAccountTransactionListEpic_1.fetchDepositAccountTransactionListEpic, fetchDuplicateBillEpic_1.fetchDuplicateBillPayReviewEpic, fetchDuplicateReimbursementEpic_1.fetchDuplicateReimbursementEpic, fetchEditBillDetailPageEpic_1.fetchEditBillDetailPageEpic, fetchEditRemiDetailPageEpic_1.fetchEditRemiDetailPageEpic, fetchEntityAutoCompleteEpic_1.fetchEntityAutoCompleteEpic, fetchEntityHistoryEpic_1.fetchEntityHistoryEpic, fetchExcludedResourcesEpic_1.fetchExcludedResourcesEpic, fetchExpenseTrendEpic_1.fetchExpenseTrendEpic, fetchExternalConnectionsEpic_1.fetchExternalConnectionsEpic, fetchFileEpic_1.fetchFileEpic, fetchFileListEpic_1.fetchFileListEpic, financeStatementEpic_1.fetchFinanceStatementEpic, fetchForecastListEpic_1.fetchForecastListEpic, fetchGlobalMerchantAutoCompleteViewEpic_1.fetchGlobalMerchantAutoCompleteViewEpic, fetchGlobalMerchantRecommendationEpic_1.fetchGlobalMerchantRecommendationEpic, fetchIncomeTrendEpic_1.fetchIncomeTrendEpic, insightsCardEpic_1.fetchInsightsCardEpic, fetchInternationalWireDynamicFormEpic_1.fetchInternationalWireDynamicFormEpic, fetchMagicLinkBankNameByRoutingEpic_1.fetchMagicLinkBankNameByRoutingEpic, fetchMagicLinkBankNameBySwiftEpic_1.fetchMagicLinkBankNameBySwiftEpic, fetchMagicLinkBillEpic_1.fetchMagicLinkBillEpic, fetchMagicLinkTenantEpic_1.fetchMagicLinkTenantEpic, fetchManagementViewEpic_1.fetchManagementViewEpic, fetchMerchantListEpic_1.fetchMerchantListEpic, fetchMyProfileEpic_1.fetchMyProfileEpic, fetchMyProfileViewEpic_1.fetchMyProfileViewEpic, netBurnOrIncomeClassesViewEpic_1.fetchNetBurnOrIncomeClassesViewEpic, netBurnOrIncomeEpic_1.fetchNetBurnOrIncomeEpic, netBurnOrIncomeForTimeframeClassesViewEpic_1.fetchNetBurnOrIncomeForTimeframeClassesViewEpic, netBurnOrIncomeForTimeframeEpic_1.fetchNetBurnOrIncomeForTimeframeEpic, fetchNetBurnOrIncomeStoryCardEpic_1.fetchNetBurnOrIncomeStoryCardEpic, fetchNetBurnOrIncomeWithForecastEpic_1.fetchNetBurnOrIncomeWithForecastEpic, fetchOnboardingCompletedCompaniesEpic_1.fetchOnboardingCompletedCompaniesEpic, fetchOnboardingCustomerSetupViewEpic_1.fetchOnboardingCustomerSetupViewEpic, fetchOnboardingCustomerViewEpic_1.fetchOnboardingCustomerViewEpic, fetchOnboardingViewEpic_1.fetchOnboardingViewEpic, fetchOpExByVendorReportEpic_1.fetchOpExByVendorEpic, fetchOpExByVendorReportForTimeframeEpic_1.fetchOpExByVendorReportForTimeframeEpic, fetchOpExByVendorReportSummaryEpic_1.fetchOpExByVendorReportSummaryEpic, opExClassesViewEpic_1.fetchOpExClassesViewEpic, opExEpic_1.fetchOpExEpic, opExForTimeframeClassesViewEpic_1.fetchOpExForTimeframeClassesViewEpic, opExForTimeFrameEpic_1.fetchOpExReportForTimeframeEpic, fetchOpExWithForecastEpic_1.fetchOpExWithForecastEpic, fetchOwnerListEpic_1.fetchOwnerListEpic, fetchParentSubsidiaryManagementViewEpic_1.fetchParentSubsidiaryManagementViewEpic, fetchPaymentAccountListEpic_1.fetchPaymentAccountListEpic, fetchPeopleEpic_1.fetchPeopleEpic, peoplePageEpic_1.fetchPeoplePageEpic, fetchPortfolioViewEpic_1.fetchPortfolioViewEpic, fetchPreviousBillsEpic_1.fetchPreviousBillsEpic, profitAndLossClassesViewEpic_1.fetchProfitAndLossClassesViewEpic, profitAndLossEpic_1.fetchProfitAndLossEpic, profitAndLossForTimeframeClassesViewEpic_1.fetchProfitAndLossForTimeframeClassesViewEpic, profitAndLossForTimeframeEpic_1.fetchProfitAndLossForTimeframeEpic, fetchRecommendationByEntityIdEpic_1.fetchRecommendationByEntityIdEpic, fetchRecommendationByEntityNameEpic_1.fetchRecommendationByEntityNameEpic, fetchRecommendationByEntityQboIdEpic_1.fetchRecommendationByEntityQboIdEpic, fetchRecommendationForAccountTypeEpic_1.fetchRecommendationForAccountTypeEpic, fetchRecommendationsAndUpdateMerchantRecommendationsEpic_1.fetchRecommendationsAndUpdateMerchantRecommendationsEpic, fetchReimbursementCardEpic_1.fetchReimbursementCardEpic, fetchReimbursementConfigEpic_1.fetchReimbursementConfigEpic, fetchRemiAndInitializeLocalStoreEpic_1.fetchRemiAndInitializeLocalStoreEpic, fetchRemiApproversDetailsEpic_1.fetchRemiApproversDetailsEpic, fetchRemiApproversListEpic_1.fetchRemiApproversListEpic, fetchRemiDetailEpic_1.fetchRemiDetailEpic, fetchRemiListEpic_1.fetchRemiListEpic, fetchRemiListPerTabEpic_1.fetchRemiListPerTabEpic, fetchRemiSetupApproverViewEpic_1.fetchRemiSetupApproverViewEpic, fetchRemiSetupViewEpic_1.fetchRemiSetupViewEpic, revenueClassesViewEpic_1.fetchRevenueClassesViewEpic, revenueEpic_1.fetchRevenueEpic, revenueForTimeframeClassesViewEpic_1.fetchRevenueForTimeframeClassesViewEpic, revenueForTimeframeEpic_1.fetchRevenueForTimeframeEpic, fetchRevenueWithForecastEpic_1.fetchRevenueWithForecastEpic, fetchReviewCompanyViewEpic_1.fetchReviewCompanyViewEpic, fetchSubscriptionAddOnsEpic_1.fetchSubscriptionAddOnsEpic, fetchSubscriptionCouponsEpic_1.fetchSubscriptionCouponsEpic, fetchSubscriptionCreateEstimateEpic_1.fetchSubscriptionCreateEstimateEpic, fetchSubscriptionDetailsEpic_1.fetchSubscriptionDetailsEpic, fetchSubscriptionListEpic_1.fetchSubscriptionListEpic, fetchSubscriptionPlansEpic_1.fetchSubscriptionPlansEpic, fetchSubscriptionSummaryForTenantEpic_1.fetchSubscriptionSummaryForTenantEpic, fetchSubscriptionUpdateEstimateEpic_1.fetchSubscriptionUpdateEstimateEpic, fetchSubscriptionViewEpic_1.fetchSubscriptionViewEpic, fetchTaskDetailEpic_1.fetchTaskDetailEpic, fetchTaskDetailPageEpic_1.fetchTaskDetailPageEpic, fetchTaskHistoryEpic_1.fetchTaskHistoryEpic, fetchTaskListEpic_1.fetchTaskListEpic, fetchTaskListPageEpic_1.fetchTaskListPageEpic, fetchTasksCardEpic_1.fetchTasksCardEpic, topExEpic_1.fetchTopExEpic, transactionDetailEpic_1.fetchTransactionDetailEpic, fetchTransactionListByAccountEpic_1.fetchTransactionListByAccountEpic, fetchTransactionListByClassEpic_1.fetchTransactionListByClassEpic, fetchTransactionListByEntityEpic_1.fetchTransactionListByEntityEpic, fetchTransactionsForEntityEpic_1.fetchTransactionsForEntityEpic, fetchTransactionsListByCategoryTypeEpic_1.fetchTransactionsListByCategoryTypeEpic, fetchTrendForEntityEpic_1.fetchTrendForEntityEpic, fetchUserDetailEpic_1.fetchUserDetailEpic, fetchUserFinancialAccountEpic_1.fetchUserFinancialAccountEpic, fetchUserListByTypeEpic_1.fetchUserListByTypeEpic, userRoleConfigEpic_1.fetchUserRoleConfigEpic, fetchVendorByNameAndParseInvoice_1.fetchVendorByNameAndParseInvoiceEpic, fetchVendorDetailsEpic_1.fetchVendorDetailsEpic, fetchVendorEpic_1.fetchVendorEpic, fetchVendorFirstReviewViewEpic_1.fetchVendorFirstReviewViewEpic, fetchVendorGlobalReviewViewEpic_1.fetchVendorGlobalReviewViewEpic, fetchVendorsListEpic_1.fetchVendorsListEpic, fetchVendorsTabVendorDetailPageViewEpic_1.fetchVendorsTabVendorDetailPageViewEpic, fetchVendorsTabVendorDetailsEpic_1.fetchVendorsTabVendorDetailsEpic, fetchVendorsTabVendorEpic_1.fetchVendorsTabVendorEpic, vendorTypeListEpic_1.fetchVendorTypeListEpic, vendorTypeListEpic_1.fetchVendorTypeListEpic, fetchZeniAccountListPageEpic_1.fetchZeniAccountListEpic, fetchZeniAccountsConfigEpic_1.fetchZeniAccountsConfigEpic, fetchZeniAccountSetupViewEpic_1.fetchZeniAccountSetupViewEpic, fetchZeniAccStatementListEpic_1.fetchZeniAccStatementListEpic, fetchZeniAccStatementPageEpic_1.fetchZeniAccStatementPageEpic, fetchZeniUsersEpic_1.fetchZeniUsersEpic, getOnboardingEmailGroupEpic_1.getOnboardingEmailGroupEpic, getOnboardingPlaidLinkTokenEpic_1.getOnboardingPlaidLinkTokenEpic, getPaymentAccountsEpic_1.getPaymentAccountsEpic, getPlaidLinkTokenEpic_1.getPlaidLinkTokenEpic, improveUsingZeniGPTEpic_1.improveUsingZeniGPTEpic, initializeAccountMappingViewEpic_1.initializeAccountMappingViewEpic, initializeBillPaySetupApproverViewUpdateDataEpic_1.initializeBillPaySetupApproverViewUpdateDataEpic, initializeBillToLocalStoreEpic_1.initializeBillToLocalStoreEpic, initializeCompanyHealthMetricViewLocalData_1.initializeCompanyHealthMetricViewLocalDataEpic, initializeDynamicFormEpic_1.initializeDynamicFormEpic, initializeEditPersonEpic_1.initializeEditPersonEpic, initializeInternationalWireLocalDataEpic_1.initializeInternationalWireLocalDataEpic, initializeOnboardingCustomerViewUpdateDataEpic_1.initializeOnboardingCustomerViewUpdateDataEpic, initializeRemiSetupApproverViewUpdateDataEpic_1.initializeRemiSetupApproverViewUpdateDataEpic, initializeRemiToLocalStoreEpic_1.initializeRemiToLocalStoreEpic, initializeSubscriptionLocalDataEpic_1.initializeSubscriptionLocalDataEpic, initializeTaskToLocalStoreEpic_1.initializeTaskToLocalStoreEpic, initializeTransactionDetailLocalDataEpic_1.initializeTransactionDetailLocalDataEpic, initializeVendorAddressEpic_1.initializeVendorAddressEpic, invitePeopleEpic_1.invitePeopleEpic, inviteZeniPeopleEpic_1.inviteZeniPeopleEpic, issueChargeCardEpic_1.issueChargeCardEpic, markTransactionAsNotMiscategorizedEpic_1.markTransactionAsNotMiscategorizedEpic, parallelFetchAccountTransactionListEpic_1.parallelFetchAccountTransactionListEpic, parallelFetchClassTransactionListEpic_1.parallelFetchClassTransactionListEpic, parallelFetchEntityTransactionListEpic_1.parallelFetchEntityTransactionListEpic, parallelFetchTransactionListByCategoryTypeEpic_1.parallelFetchTransactionListByCategoryTypeEpic, parseInvoiceToBillEpic_1.parseInvoiceToBillEpic, parseReceiptsToRemiEpic_1.parseReceiptsToRemiEpic, peopleSaveUpdatesEpic_1.peopleSaveUpdatesEpic, resendInviteEpic_1.resendInviteEpic, resendOtpEpic_1.resendOtpEpic, resetTransactionVendorLocalDataEpic_1.resetTransactionVendorLocalDataEpic, resetVendorDetailLocalDataEpic_1.resetVendorDetailLocalDataEpic, resetVendorsTabVendorDetailLocalDataEpic_1.resetVendorsTabVendorDetailLocalDataEpic, retryBankAccountConnectionEpic_1.retryBankAccountConnectionEpic, retryBankAccountConnectionForOnboardingEpic_1.retryBankAccountConnectionForOnboardingEpic, saveAccountMappingViewEpic_1.saveAccountMappingViewEpic, saveBillDetailEpic_1.saveBillDetailEpic, saveBillPaySetupApproverViewUpdatesEpic_1.saveBillPaySetupApproverViewUpdatesEpic, saveCompanyHealthMetricByIdEpic_1.saveCompanyHealthMetricByIdEpic, saveCompanyMonthEndReportEpic_1.saveCompanyMonthEndReportEpic, saveCompanyPassportDetailsEpic_1.saveCompanyPassportDetailsEpic, saveExternalConnectionEpic_1.saveExternalConnectionEpic, saveMagicLinkBankAccountEpic_1.saveMagicLinkBankAccountEpic, saveNewAddressEpic_1.saveNewAddressEpic, saveOnboardingCustomerCompletedStatusEpic_1.saveOnboardingCustomerCompletedStatusEpic, saveOnboardingCustomerNotesEpic_1.saveOnboardingCustomerNotesEpic, saveOnboardingCustomerViewUpdatesEpic_1.saveOnboardingCustomerViewUpdatesEpic, saveRealTimeApprovalEpic_1.saveRealTimeApprovalEpic, saveRemiDetailEpic_1.saveRemiDetailEpic, saveRemiSetupApproverViewUpdatesEpic_1.saveRemiSetupApproverViewUpdatesEpic, saveSubscriptionNotesUpdatesEpic_1.saveSubscriptionNotesUpdatesEpic, saveSubscriptionUpdatesEpic_1.saveSubscriptionUpdatesEpic, saveTaskDetailEpic_1.saveTaskDetailEpic, saveTransactionDetailEpic_1.saveTransactionDetailEpic, saveTransactionVendorEpic_1.saveTransactionVendorEpic, saveVendorEpic_1.saveVendorEpic, saveVendorFirstReviewViewEpic_1.saveVendorFirstReviewViewEpic, saveVendorsTabVendorEpic_1.saveVendorsTabVendorEpic, sendCompanyMonthEndReportEpic_1.sendCompanyMonthEndReportEpic, sendOnboardingCustomerViewInviteEpic_1.sendOnboardingCustomerViewInviteEpic, sendOtpEpic_1.sendOtpEpic, statementCloseDayEpic_1.statementCloseDayEpic, toggleReportUIOptionForecastModeEpic_1.toggleReportUIOptionForecastModeEpic, transferMoneyEpic_1.transferMoneyEpic, unlinkPaymentAccountEpic_1.unlinkPaymentAccountEpic, updateAddressEpic_1.updateAddressEpic, updateBusinessVerificationDetailsEpic_1.updateBusinessVerificationDetailsEpic, updateChargeCardDetailEpic_1.updateChargeCardDetailEpic, updateCompanyDetailsEpic_1.updateCompanyDetailsEpic, updateCompanyOfficerEpic_1.updateCompanyOfficerEpic, updateCompanyPassportLocalStoreDataEpic_1.updateCompanyPassportLocalStoreDataEpic, updateDepositAccountEpic_1.updateDepositAccountEpic, updateFileNameEpic_1.updateFileNameEpic, updateFilesMetadataEpic_1.updateFilesMetadataEpic, updateMileageDetailsEpic_1.updateMileageDetailsEpic, updateNetBurnOrIncomeStoryCardSettingsEpic_1.updateNetBurnOrIncomeStoryCardSettingsEpic, updateOnboardingCustomerViewCompleteStatusEpic_1.updateOnboardingCustomerViewCompleteStatusEpic, updateOnboardingCustomerViewEpic_1.updateOnboardingCustomerViewEpic, updateOnboardingCustomerViewLocalStoreDataEpic_1.updateOnboardingCustomerViewLocalStoreDataEpic, updateOnboardingPaymentAccountLoginStatusEpic_1.updateOnboardingPaymentAccountLoginStatusEpic, updateOnboardingPaymentAccountStatusEpic_1.updateOnboardingPaymentAccountStatusEpic, updatePaymentAccountEpic_1.updatePaymentAccountEpic, updatePaymentAccountLoginStatusEpic_1.updatePaymentAccountLoginStatusEpic, updatePaymentAccountStatusEpic_1.updatePaymentAccountStatusEpic, updatePrimaryContactEpic_1.updatePrimaryContactEpic, updateRemiSetupViewLocalStoreDataEpic_1.updateRemiSetupViewLocalStoreDataEpic, updateReportUIOptionCOABalancesRangeEpic_1.updateReportUIOptionCOABalancesRangeEpic, updateReportUIOptionCompareModeEpic_1.updateReportUIOptionIsCompareModeEpic, updateReportUIOptionIsCompareModeOnEpic_1.updateReportUIOptionIsCompareModeOnEpic, updateReportUIOptionThisPeriodEpic_1.updateReportUIOptionThisPeriodEpic, updateReportUIOptionTimeFrameEpic_1.updateReportUIOptionTimeFrameEpic, sectionAccountsViewEpic_1.updateSectionAccountsViewEpic, sectionClassesViewEpic_1.updateSectionClassesViewEpic, updateSelectedVendorForCreateFlowEpic_1.updateSelectedVendorForCreateFlowEpic, updateSetupViewLocalStoreDataEpic_1.updateSetupViewLocalStoreDataEpic, updateTransactionDetailEpic_1.updateTransactionDetailEpic, updateVendorContactEpic_1.updateVendorContactEpic, uploadMissingReceiptSuccessEpic_1.uploadMissingReceiptSuccessEpic, verifyOtpEpic_1.verifyOtpEpic, verifyUserEpic_1.verifyUserEpic, fetchBillAndInitializeLocalStoreEpic_1.waitForBillDetailThenInitializeLocalStoreEpic, fetchNetBurnOrIncomeWithForecastEpic_1.waitForForecastListThenFetchNetBurnOrIncomeWithForecastEpic, fetchOpExWithForecastEpic_1.waitForForecastListThenFetchOpExWithForecastEpic, fetchRevenueWithForecastEpic_1.waitForForecastListThenFetchRevenueWithForecastEpic, fetchRecommendationsAndUpdateMerchantRecommendationsEpic_1.waitForMerchantRecommendationFetchThenUpdateRecommendationInMerchantEpic, fetchVendorByNameAndParseInvoice_1.waitForVendorByNameThenParsetoLocalStoreEpic, fetchBillDetailEpic_1.waitForVendorByNameThenUpdateBillDetailEpic, fetchAndUpdateVendorRecommendationsEpic_1.waitForVendorRecommendationFetchThenUpdateRecommendationInBillEpic, wiseRedirectEpic_1.wiseRedirectEpic);
|
|
330
331
|
const rootEpic = (action$, store$, dependencies) => combinedEpics(action$, store$, dependencies).pipe((0, operators_1.map)(rxjs_1.identity), (0, operators_1.catchError)((error, source) => {
|
|
331
332
|
console.error(error);
|
|
332
333
|
return source;
|
package/lib/index.d.ts
CHANGED
|
@@ -425,13 +425,13 @@ import { ApprovalRuleWithUser as RemiApprovalRuleWithUser, RemiSetupApproverView
|
|
|
425
425
|
export { RemiApprovalRuleWithUser, RemiSetupApproverViewState, RemiSetupApproverView, RemiSetupApproverUpdateDataView, getRemiSetupApproverView, getRemiSetupApproverUpdateDataView, fetchRemiSetupApproverView, fetchRemiApproversList, fetchRemiApproversDetails, deleteRemiApprovalRule, saveRemiSetupApproverViewUpdateData, saveRemiSetupApproverViewUpdates, initializeRemiSetupApproverViewUpdateData, clearRemiSetupApproverViewUpdateData, clearRemiSetupApproverView, };
|
|
426
426
|
import { RemiDetailViewSelector, getRemiDetailView, RemiActivity, RemiDetails, checkApproveRejectBtnShow as checkApproveRejectBtnShowForRemi } from './view/spendManagement/reimbursement/remiDetailView/remiDetailViewSelector';
|
|
427
427
|
export { RemiDetailViewSelector, getRemiDetailView, RemiActivity, RemiDetails, checkApproveRejectBtnShowForRemi, };
|
|
428
|
-
import { RemiApprovalType, RemiDetailView } from './view/spendManagement/reimbursement/remiDetailView/remiDetailViewState';
|
|
429
|
-
export { RemiApprovalType, RemiDetailView };
|
|
428
|
+
import { RemiApprovalType, RemiDetailView, DuplicateLine } from './view/spendManagement/reimbursement/remiDetailView/remiDetailViewState';
|
|
429
|
+
export { RemiApprovalType, RemiDetailView, DuplicateLine };
|
|
430
430
|
import { RealTimeApprovalDetailLocalData, RealTimeStepsData } from './view/spendManagement/realTimeApprovalView/realTimeApprovalState';
|
|
431
431
|
import { saveRealTimeApproval, updateIsEditModeRealTimeApprovals } from './view/spendManagement/realTimeApprovalView/realTimeApprovalReducer';
|
|
432
432
|
export { saveRealTimeApproval, updateIsEditModeRealTimeApprovals, RealTimeApprovalDetailLocalData, RealTimeStepsData, };
|
|
433
|
-
import { deleteRemi, fetchRemiDetail, cancelAndDeleteRemi, approveOrRejectRemi, clearRemiDetailView } from './view/spendManagement/reimbursement/remiDetailView/remiDetailViewReducer';
|
|
434
|
-
export { deleteRemi, fetchRemiDetail, cancelAndDeleteRemi, approveOrRejectRemi, clearRemiDetailView, };
|
|
433
|
+
import { deleteRemi, fetchRemiDetail, cancelAndDeleteRemi, approveOrRejectRemi, clearRemiDetailView, fetchDuplicateReimbursement, clearDuplicateReimbursementDetail, removeDuplicateReimbursementByLineId } from './view/spendManagement/reimbursement/remiDetailView/remiDetailViewReducer';
|
|
434
|
+
export { deleteRemi, fetchRemiDetail, cancelAndDeleteRemi, approveOrRejectRemi, clearRemiDetailView, fetchDuplicateReimbursement, clearDuplicateReimbursementDetail, removeDuplicateReimbursementByLineId, };
|
|
435
435
|
import { ReceiptsProcessingPayload } from './view/spendManagement/reimbursement/editRemiView/editRemiViewPayload';
|
|
436
436
|
export { ReceiptsProcessingPayload };
|
|
437
437
|
import { EditRemiDetailSelectorView, ReimbursementLineWithAttachment, getEditRemiDetail } from './view/spendManagement/reimbursement/editRemiView/editRemiViewSelector';
|
package/lib/index.js
CHANGED
|
@@ -38,12 +38,12 @@ exports.deleteFileListSuccess = exports.deleteFileListFailure = exports.deleteFi
|
|
|
38
38
|
exports.fetchRemiListPerTab = exports.fetchRemiList = exports.getRemiDownloadList = exports.getRemiList = exports.toRemiTabTypeStrict = exports.toRemiTabType = exports.toRemiSubTabTypeStrict = exports.toRemiSubTabType = exports.deleteUserBankAccount = exports.createUserBankAccount = exports.resetCreateBankAccountDetails = exports.createBankAccount = exports.deleteBankAccount = exports.fetchBankCountryNameByIban = exports.fetchBankNameBySwift = exports.fetchBankNameByRouting = exports.fetchVendorDetailPageView = exports.fetchVendorDetails = exports.updateStatusForCreateBankAccountFlow = exports.clearBankAccountView = exports.updateInternationalBankAccountViewLocalStoreData = exports.updateBankAccountViewLocalStoreData = exports.initializeVendorAddress = exports.updateSelectedVendorForCreateFlow = exports.removeBankAccountsInVendorView = exports.saveVendor = exports.fetchVendor = exports.updateScrollYOffset = exports.fetchVendorsList = exports.vendorsTabResetVendorDetailLocalData = exports.vendorsTabUpdateVendorDetailLocalData = exports.vendorsTabSaveVendorSuccessOrFailure = exports.vendorsTabSaveVendor = exports.getVendorsTabDetailPageView = exports.fetchVendorsTabVendorDetailPageView = exports.getVendorDetailPageView = exports.getVendorView = exports.getAnalyticsDataOnVendorSave = exports.fetchTasksCard = exports.downloadFile = exports.mapFilePayloadToFile = exports.uploadFile = exports.getFileDeleteStatusById = exports.getFileUpdateNameStatusById = exports.getDeleteFileListWithStatus = exports.getFileListWithStatus = exports.clearFileViewList = exports.deleteFileSuccess = exports.deleteFileFailure = exports.deleteFile = void 0;
|
|
39
39
|
exports.verifyUser = exports.fetchUserDetails = exports.updateBillListSearchResult = exports.updateBillUploadFetchState = exports.updateContactsInVendorDetailLocalData = exports.resetVendorDetailLocalData = exports.updateVendorDetailLocalData = exports.BILL_PAY_FILTER_CATEGORIES = exports.updateBillListUIState = exports.saveVendorSuccessOrFailure = exports.updateShowAutofill = exports.fetchBillAndInitializeLocalStore = exports.getReviewPageBillDetail = exports.getEditBillDetail = exports.clearBillPayReview = exports.fetchDuplicateBill = exports.fetchAndUpdateVendorRecommendations = exports.fetchEditBillDetailPage = exports.fetchBillDetail = exports.getBillTransactionDetailKey = exports.checkApproveRejectBtnShowForBill = exports.getBillDetailView = exports.getBillDownloadList = exports.getBillList = exports.cancelAndDeleteBill = exports.deleteBill = exports.updateApprovalStatusOnSuccess = exports.approveOrRejectBill = exports.saveBillDetail = exports.discardBillUpdatesInLocalStore = exports.saveBillUpdatesToLocalStore = exports.fetchVendorByNameAndParseInvoice = exports.updateBillDetailSaveBillCode = exports.updateSelectedBillId = exports.updateSubTab = exports.updateTab = exports.fetchBillListPerTab = exports.fetchBillList = exports.getClassList = exports.updateBillListDownloadUIState = exports.updateRemiListDownloadUIState = exports.REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED = exports.REIMBURSEMENT_FILTER_CATEGORIES = exports.updateRemiListFilterResult = exports.updateBillListFilterResult = exports.updateRemiListSearchResult = exports.updateRemiListUIState = exports.updateRemiDetailSaveRemiCode = exports.updateRemiListSubTab = exports.updateRemiListTab = void 0;
|
|
40
40
|
exports.toAttributeTypeStrict = exports.isSuccessResponse = exports.getRemiBusinessVerificationDetails = exports.getRemiSetupViewDetails = exports.clearRemiSetupView = exports.acceptEmployeeRemiTerms = exports.acceptRemiTerms = exports.saveRemiSetupViewDataInLocalStore = exports.updateMileageDetails = exports.fetchRemiSetupView = exports.getUserFinancialAccount = exports.fetchUserFinancialAccount = exports.getIntegrationsView = exports.getBankConnectionsSetupViewDetails = exports.getApprovalRuleViewDetails = exports.getCommonSetupViewDetails = exports.getZeniAccountBusinessVerificationDetails = exports.getBillPayBusinessVerificationDetails = exports.getBusinessVerificationDetails = exports.getZeniAccountSetupViewDetails = exports.getBillPaySetupViewDetails = exports.verifyOtp = exports.resendOtp = exports.sendOtp = exports.clearZeniAccountSetupView = exports.clearBillPaySetupView = exports.clearSetupViewDataInLocalStore = exports.saveIndustryAndIncDateInLocalStore = exports.saveCompnayOfficerAdditionalDocumentsInLocalStore = exports.saveCompnayOfficerPhoneInLocalStore = exports.saveSetupViewDataInLocalStore = exports.acceptBillPayUpdatedTerms = exports.acceptZeniAccountTerms = exports.acceptBillPayTerms = exports.establishPlaidConnection = exports.updatePaymentAccountStatus = exports.updatePaymentAccountLoginStatus = exports.updatePaymentAccount = exports.updateBusinessVerificationDetails = exports.updateSetupViewLocalStoreData = exports.updateSelectedCompanyOfficer = exports.getPlaidLinkToken = exports.getPaymentAccounts = exports.enableSetup = exports.fetchZeniAccountSetupView = exports.fetchBillPaySetupView = exports.hideCreatedByFilter = exports.convertAmountToHomeCurrency = exports.toPaymentToOption = exports.updateVendorContact = void 0;
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.getAuthenticationView = exports.fetchCollaborationAuthToken = exports.discardTaskUpdatesInLocalStore = exports.deleteTask = exports.TASK_LIST_FILTER_CATEGORIES = exports.updateTaskFilters = exports.allTaskPriority = exports.allTaskStatus = exports.allTaskTags = exports.updateTaskListUIState = exports.updateTaskListSearchText = exports.saveTaskDetail = exports.saveTaskUpdatesToLocalStore = exports.fetchTaskDetailPage = exports.getTaskDetail = exports.fetchTaskListPage = exports.getAllTasks = exports.toRecurringBillFrequencyStrict = exports.toRecurringBillFrequency = exports.getArAgingDetailForCustomer = exports.getArAgingReport = exports.updateArAgingDetailUIState = exports.fetchArAgingDetail = exports.updateArAgingUIState = exports.fetchArAging = exports.toVendorGlobalReviewColumnSortKeyType = exports.getTenantMerchantByMerchantId = exports.getVendorGlobalReviewView = exports.updateVendorGlobalReviewViewUIState = exports.updateSelectedGlobalMerchant = exports.fetchVendorGlobalReviewView = exports.approveVendorGlobalReview = exports.getGlobalMerchantView = void 0;
|
|
41
|
+
exports.updateAddRemiAutoFields = exports.clearEditRemiViewDetail = exports.parseReceiptsToRemi = exports.saveRemiSuccessOrFailure = exports.saveRemiDetail = exports.removeFileFromRemiUpdatesInLocalStore = exports.discardRemiUpdatesInLocalStore = exports.fetchCurrencyConversionValue = exports.saveRemiUpdatesToLocalStore = exports.initializeRemiToLocalStore = exports.fetchRemiAndInitializeLocalStore = exports.fetchRecommendationsAndUpdateMerchantRecommendations = exports.fetchEditRemiDetailPage = exports.getEditRemiDetail = exports.removeDuplicateReimbursementByLineId = exports.clearDuplicateReimbursementDetail = exports.fetchDuplicateReimbursement = exports.clearRemiDetailView = exports.approveOrRejectRemi = exports.cancelAndDeleteRemi = exports.fetchRemiDetail = exports.deleteRemi = exports.updateIsEditModeRealTimeApprovals = exports.saveRealTimeApproval = exports.checkApproveRejectBtnShowForRemi = exports.getRemiDetailView = exports.clearRemiSetupApproverView = exports.clearRemiSetupApproverViewUpdateData = exports.initializeRemiSetupApproverViewUpdateData = exports.saveRemiSetupApproverViewUpdates = exports.saveRemiSetupApproverViewUpdateData = exports.deleteRemiApprovalRule = exports.fetchRemiApproversDetails = exports.fetchRemiApproversList = exports.fetchRemiSetupApproverView = exports.getRemiSetupApproverUpdateDataView = exports.getRemiSetupApproverView = exports.clearBillPaySetupApproverView = exports.clearBillPaySetupApproverViewUpdateData = exports.initializeBillPaySetupApproverViewUpdateData = exports.saveBillPaySetupApproverViewUpdates = exports.saveBillPaySetupApproverViewUpdateData = exports.deleteBillPayApprovalRule = exports.fetchBillPayApproversList = exports.fetchBillPayApproversDetails = exports.fetchBillPaySetupApproverView = exports.getBillPaySetupApproverUpdateDataView = exports.getBillPaySetupApproverView = exports.toRoleTypeStrict = exports.toAttributeOrRoleTypeStrict = void 0;
|
|
42
|
+
exports.SWIFT_OUR_INTERNATIONAL_METHOD_SUBTEXT = exports.NEW_INTERNATIONAL_METHOD_SUBTEXT = exports.BILL_NEW_PAYMENT_METHODS = exports.getInternationalSubConfigCodeKey = exports.shouldEnableCalendarPickerForLastReportSent = exports.canSendMonthEndEmailReport = exports.getSelectedCompanyOfficer = exports.getSpendManagementEffectiveListPeriod = exports.getSnackbar = exports.closeSnackbar = exports.openSnackbar = exports.getChangedLineItemCountFromLocalData = exports.getTransactionListUIStateByCategoryType = exports.getTransactionsListByCategoryType = exports.retryBankAccountConnectionForOnboarding = exports.sendOnboardingCustomerViewInvite = exports.resetNewOnboardedCustomerId = exports.updateOnboardingCustomerDataInLocalStore = exports.saveOnboardingCustomerDataInLocalStore = exports.saveOnboardingCustomerNotes = exports.saveOnboardingCustomerViewUpdates = exports.updateStatusAfterOnboardingCompleted = exports.updateCustomerCreationStatus = exports.updateOnboardingCustomerListUIState = exports.saveOnboardingCustomerViewUpdateData = exports.clearOnboardingCustomerViewUpdateData = exports.initializeOnboardingCustomerViewUpdateData = exports.getOnboardingEmailGroup = exports.getNewOnboardingCustomerView = exports.getOnboardingCockpitView = exports.saveOnboardingCustomerCompletedStatus = exports.fetchOnboardingCompletedCompanies = exports.fetchCompanyOnboardingView = exports.PAYMENT_BUSINESS_DAYS = exports.holidaysFormatted = exports.isHoliday = exports.getYearsList = exports.filterDays = exports.isHolidayToday = exports.getPreviousNthWorkingDay = exports.getNextNthWorkingDay = exports.toFileTypeStrict = exports.ALL_FILE_TYPES = exports.reduceAllFetchState = exports.reduceAnyFetchState = exports.reduceFetchState = exports.clearAddRemiAutoFields = exports.clearTentativeMerchantName = exports.updateTentativeMerchantNames = exports.updateUploadFetchState = void 0;
|
|
43
|
+
exports.isZeniClearingAccountReport = exports.getCompanyConfig = exports.fetchCompanyConfig = exports.clearTransactionVendorSaveStatus = exports.resetTransactionVendorLocalData = exports.updateTransactionVendorLocalData = exports.saveTransactionVendorSuccessOrFailure = exports.saveTransactionVendor = exports.getTransactionVendorView = exports.getZeniAccStatements = exports.fetchZeniAccStatementPage = exports.getDepositAccountTransactionList = exports.fetchDepositAccountTransactionList = exports.fetchDepositAccountHistoryFailure = exports.fetchDepositAccountHistorySuccess = exports.updateDepositAccount = exports.getCheckDepositDetail = exports.clearCheckDeposit = exports.updateCheckDepositLocalData = exports.depositCheck = exports.ZENI_ACCOUNTS_TAB = exports.fetchDepositAccountDetail = exports.clearTransferDetail = exports.getTransferDetail = exports.transferMoney = exports.updateDepositToLocalData = exports.updateTransferToLocalData = exports.updateTransferMoneyLocalData = exports.fetchZeniAccountsConfig = exports.fetchDepositAccount = exports.getDepositAccountDetailForPDF = exports.getDepositAccountDetail = exports.unlinkPaymentAccount = exports.fetchPaymentAccountList = exports.createCheckingAccount = exports.updateZeniAccountListTab = exports.fetchZeniAccountList = exports.getZeniAccountList = exports.getZeniAccountsConfigDetail = exports.fetchOwnerList = exports.fetchRecommendationByEntityName = exports.fetchRecommendationByEntityId = exports.fetchRecommendationByEntityQboId = exports.isVendorsTabVisible = exports.isColumnYTDSpend = exports.updateYTDSelectionUIState = exports.updatePageToken = exports.updateSortUiState = exports.getVendorList = exports.LOCAL_CURRENCY_INTERNATIONAL_METHOD_SUBTEXT = void 0;
|
|
44
|
+
exports.updateCompanyHealth = exports.updateCompaniesHealth = exports.getUserRoleConfig = exports.fetchUserRoleConfig = exports.clearInternationalWire = exports.deletePaymentInstrument = exports.createPaymentInstrumentUpdateStatus = exports.createPaymentInstrument = exports.fetchInternationalWireDynamicForm = exports.initializeDynamicForm = exports.updateInternationalWireLocalStoreData = exports.initializeInternationalWireLocalData = exports.getInternationalWireView = exports.fetchWiseRedirectStatus = exports.getWiseRedirect = exports.saveMagicLinkAddressInLocalStore = exports.fetchMagicLinkBankNameBySwift = exports.fetchMagicLinkBankNameByRouting = exports.updateMagicLinkInternationalBankAccountLocalStoreData = exports.updateMagicLinkBankAccountLocalStoreData = exports.saveBankAccount = exports.fetchBillAttachment = exports.fetchMagicLinkTenant = exports.getMagicLinkCurrentAddressState = exports.getMagicLinkBankAccountView = exports.getMagicLinkView = exports.initializeAccountMappingView = exports.getAccountMappingView = exports.clearAccountMappingLocalData = exports.saveAccountMappingLocalData = exports.saveAccountMapping = exports.getOnboardingCustomerView = exports.clearOnboardingCustomerViewDataInLocalStore = exports.clearOnboardingCustomerView = exports.saveOnboardingCustomerViewDataInLocalStore = exports.saveOnboardingCompnayOfficerPhoneInLocalStore = exports.updateOnboardingCustomerViewUIState = exports.updateCurrentStep = exports.updateOnboardingCustomerViewLocalStoreData = exports.updateOnboardingCustomerView = exports.updateOnboardingPaymentAccountStatus = exports.updateOnboardingPaymentAccountLoginStatus = exports.updateOnboardingCustomerViewCompleteStatus = exports.updateOnboardingCustomerViewAccountDetails = exports.establishOnboardingPlaidConnection = exports.getOnboardingPlaidLinkToken = exports.fetchOnboardingCustomerSetupView = exports.fetchOnboardingCustomerView = exports.isZeniClearingAccount = exports.ZENI_CLEARING_ACCOUNT = void 0;
|
|
45
|
+
exports.fetchGlobalMerchantRecommendation = exports.clearGlobalMerchantAutoCompleteResults = exports.fetchGlobalMerchantAutoCompleteView = exports.updateVendorFirstReviewSortUiState = exports.updateVendorFirstReviewViewLocalData = exports.saveVendorFirstReviewView = exports.clearRecentlySavedErroredVendorData = exports.updateVendorFirstReviewViewPageToken = exports.resetVendorFirstReviewLocalData = exports.updateVendorFirstReviewViewScrollYOffset = exports.fetchVendorFirstReviewView = exports.getVendorFirstReviewView = exports.getGlobalMerchantAutoCompleteResults = exports.toVendorFirstReviewViewColumnKeyType = exports.updateApAgingDetailUIState = exports.getApAgingDetailForVendor = exports.fetchApAgingDetail = exports.updateApAgingUIState = exports.getApAgingReport = exports.fetchApAging = exports.updateChargeCardDetail = exports.updateChargeCardListUIState = exports.updateChargeCardListSearchText = exports.resetIssueChargeCardForm = exports.updateChargeCardLocalStore = exports.issueChargeCard = exports.acceptChargeCardTerms = exports.fetchChargeCardSetupView = exports.getChargeCardSetupViewDetails = exports.toCreditLimitFrequencyCodeType = exports.toChargeCardSortKeyType = exports.fetchChargeCardTransactionList = exports.getChargeCardDetailView = exports.fetchChargeCardDetailPage = exports.getChargeCardListView = exports.fetchChargeCardListPage = exports.getChargeCardBusinessVerificationDetails = exports.companyHealthMetricDropDownOptions = exports.hasCompanyHealthMetricFormFieldChanged = exports.getCompanyHealthMetricView = exports.isCompanyRunwayInfinite = exports.updateCompanyHealthViewUIState = exports.updateCompanyHealthMetricViewSuccessStatus = exports.updateCompanyHealthMetricViewErrorStatus = exports.updateCompanyHealthMetricLocalStore = exports.saveCompanyHealthMetricById = exports.removeSelectedCompanyId = exports.initializeCompanyHealthMetricViewLocalData = exports.fetchCompanyHealthMetricView = exports.clearCompanyHealthMetricView = void 0;
|
|
46
|
+
exports.getAuthenticationView = exports.fetchCollaborationAuthToken = exports.discardTaskUpdatesInLocalStore = exports.deleteTask = exports.TASK_LIST_FILTER_CATEGORIES = exports.updateTaskFilters = exports.allTaskPriority = exports.allTaskStatus = exports.allTaskTags = exports.updateTaskListUIState = exports.updateTaskListSearchText = exports.saveTaskDetail = exports.saveTaskUpdatesToLocalStore = exports.fetchTaskDetailPage = exports.getTaskDetail = exports.fetchTaskListPage = exports.getAllTasks = exports.toRecurringBillFrequencyStrict = exports.toRecurringBillFrequency = exports.getArAgingDetailForCustomer = exports.getArAgingReport = exports.updateArAgingDetailUIState = exports.fetchArAgingDetail = exports.updateArAgingUIState = exports.fetchArAging = exports.toVendorGlobalReviewColumnSortKeyType = exports.getTenantMerchantByMerchantId = exports.getVendorGlobalReviewView = exports.updateVendorGlobalReviewViewUIState = exports.updateSelectedGlobalMerchant = exports.fetchVendorGlobalReviewView = exports.approveVendorGlobalReview = exports.getGlobalMerchantView = exports.clearGlobalMerchantView = exports.updateCreateGlobalMerchantLocalData = exports.createGlobalMerchant = void 0;
|
|
47
47
|
const zeniDayJS_1 = require("./zeniDayJS");
|
|
48
48
|
Object.defineProperty(exports, "Dayjs", { enumerable: true, get: function () { return zeniDayJS_1.Dayjs; } });
|
|
49
49
|
Object.defineProperty(exports, "updateZeniDateLocaleID", { enumerable: true, get: function () { return zeniDayJS_1.updateZeniDateLocaleID; } });
|
|
@@ -869,6 +869,9 @@ Object.defineProperty(exports, "fetchRemiDetail", { enumerable: true, get: funct
|
|
|
869
869
|
Object.defineProperty(exports, "cancelAndDeleteRemi", { enumerable: true, get: function () { return remiDetailViewReducer_1.cancelAndDeleteRemi; } });
|
|
870
870
|
Object.defineProperty(exports, "approveOrRejectRemi", { enumerable: true, get: function () { return remiDetailViewReducer_1.approveOrRejectRemi; } });
|
|
871
871
|
Object.defineProperty(exports, "clearRemiDetailView", { enumerable: true, get: function () { return remiDetailViewReducer_1.clearRemiDetailView; } });
|
|
872
|
+
Object.defineProperty(exports, "fetchDuplicateReimbursement", { enumerable: true, get: function () { return remiDetailViewReducer_1.fetchDuplicateReimbursement; } });
|
|
873
|
+
Object.defineProperty(exports, "clearDuplicateReimbursementDetail", { enumerable: true, get: function () { return remiDetailViewReducer_1.clearDuplicateReimbursementDetail; } });
|
|
874
|
+
Object.defineProperty(exports, "removeDuplicateReimbursementByLineId", { enumerable: true, get: function () { return remiDetailViewReducer_1.removeDuplicateReimbursementByLineId; } });
|
|
872
875
|
const editRemiViewSelector_1 = require("./view/spendManagement/reimbursement/editRemiView/editRemiViewSelector");
|
|
873
876
|
Object.defineProperty(exports, "getEditRemiDetail", { enumerable: true, get: function () { return editRemiViewSelector_1.getEditRemiDetail; } });
|
|
874
877
|
const editRemiViewReducer_1 = require("./view/spendManagement/reimbursement/editRemiView/editRemiViewReducer");
|
|
@@ -3,7 +3,7 @@ import { BillDetailViewState, BillApprovalType } from './billDetailViewState';
|
|
|
3
3
|
import { FetchState, ID } from '../../../../commonStateTypes/common';
|
|
4
4
|
import { BillDetailViewPayload } from './billDetailViewPayload';
|
|
5
5
|
export declare const initialState: BillDetailViewState;
|
|
6
|
-
export declare const fetchBillDetail: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[billId: string,
|
|
6
|
+
export declare const fetchBillDetail: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[billId: string, isShowDeletedBillsEnabled: boolean, cacheOverride?: any], {
|
|
7
7
|
billId: string;
|
|
8
8
|
cacheOverride: any;
|
|
9
9
|
isShowDeletedBillsEnabled: boolean;
|
|
@@ -25,7 +25,7 @@ const billDetailView = (0, toolkit_1.createSlice)({
|
|
|
25
25
|
draft.billDetailById[key] = Object.assign({}, billDetailViewState_1.initialBillDetailView);
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
-
prepare(billId, cacheOverride = false
|
|
28
|
+
prepare(billId, isShowDeletedBillsEnabled, cacheOverride = false) {
|
|
29
29
|
return {
|
|
30
30
|
payload: {
|
|
31
31
|
billId,
|
package/lib/view/spendManagement/billPay/editBillView/epics/fetchBillAndInitializeLocalStoreEpic.js
CHANGED
|
@@ -16,8 +16,8 @@ state$) => actions$.pipe((0, operators_1.filter)(editBillViewReducer_1.fetchBill
|
|
|
16
16
|
const { billId, cacheOverride, isShowDeletedBillsEnabled } = action.payload;
|
|
17
17
|
const state = state$.value;
|
|
18
18
|
const billDetailActions = [];
|
|
19
|
-
if (cacheOverride
|
|
20
|
-
billDetailActions.push((0, billDetailViewReducer_1.fetchBillDetail)(billId,
|
|
19
|
+
if (cacheOverride) {
|
|
20
|
+
billDetailActions.push((0, billDetailViewReducer_1.fetchBillDetail)(billId, isShowDeletedBillsEnabled, true));
|
|
21
21
|
billDetailActions.push(
|
|
22
22
|
//https://stackoverflow.com/questions/42276419/invoking-epics-from-within-other-epics
|
|
23
23
|
(0, editBillViewReducer_1.waitForBillDetailThenInitializeLocalStore)(billId));
|
|
@@ -32,7 +32,7 @@ state$) => actions$.pipe((0, operators_1.filter)(editBillViewReducer_1.fetchBill
|
|
|
32
32
|
(billDetail === null || billDetail === void 0 ? void 0 : billDetail.vendorId) == null // for https://app.clickup.com/t/10555925/POD2-3084
|
|
33
33
|
) {
|
|
34
34
|
actionCount++;
|
|
35
|
-
billDetailActions.push((0, billDetailViewReducer_1.fetchBillDetail)(billId,
|
|
35
|
+
billDetailActions.push((0, billDetailViewReducer_1.fetchBillDetail)(billId, isShowDeletedBillsEnabled, false));
|
|
36
36
|
}
|
|
37
37
|
if (actionCount == 0) {
|
|
38
38
|
billDetailActions.push((0, editBillViewReducer_1.initializeBillToLocalStore)(billId));
|
|
@@ -19,6 +19,7 @@ import { ActivityHistorySelectorView } from '../../commonHistoryView/commonHisto
|
|
|
19
19
|
import { CountryWithCurrency } from '../../../../entity/currency/currency';
|
|
20
20
|
import { NestedAccountHeirarchyForReport } from '../../../../commonStateTypes/accountView/nestedAccountID';
|
|
21
21
|
import { NestedClassHeirarchyForReport } from '../../../../commonStateTypes/classesView/nestedClassID';
|
|
22
|
+
import { DuplicateLine } from '../remiDetailView/remiDetailViewState';
|
|
22
23
|
export interface EditRemiDetailSelectorView extends BankAccountSelectorView, SelectorView {
|
|
23
24
|
remiId: ID | undefined;
|
|
24
25
|
whatForSection: WhatForSection;
|
|
@@ -32,6 +33,8 @@ export interface EditRemiDetailSelectorView extends BankAccountSelectorView, Sel
|
|
|
32
33
|
addRemiAutoFieldsByLineId: Record<ID, AutoFields>;
|
|
33
34
|
tentativeMerchantNameByLineId: Record<ID, string>;
|
|
34
35
|
remiStage: BillStageCodeType;
|
|
36
|
+
duplicateLineByLineId: Record<string, DuplicateLine>;
|
|
37
|
+
duplicateReimbursementStatus: FetchStateAndError;
|
|
35
38
|
remiStatus?: BillStatusCodeType;
|
|
36
39
|
deleteStatus: FetchStateAndError;
|
|
37
40
|
saveStatus: FetchStateAndError | undefined;
|
|
@@ -45,7 +45,7 @@ const getEditRemiDetail = (state, reimbursementId) => {
|
|
|
45
45
|
const sourceRemiDetail = reimbursementId != null
|
|
46
46
|
? (_a = editRemiDetailViewState.editRemiStateById) === null || _a === void 0 ? void 0 : _a[reimbursementId]
|
|
47
47
|
: editRemiDetailViewState.newRemiState;
|
|
48
|
-
let whatForSection;
|
|
48
|
+
let whatForSection = {};
|
|
49
49
|
let fetchState = 'Not-Started';
|
|
50
50
|
let isDeleted = false;
|
|
51
51
|
let addRemiAutoFieldsByLineId = {};
|
|
@@ -147,7 +147,10 @@ const getEditRemiDetail = (state, reimbursementId) => {
|
|
|
147
147
|
const accountsHeirarchyList = (0, accountListSelector_1.getNestedAccountListHeirarchy)(accountListState, 'reimbursementAccountList');
|
|
148
148
|
const classHeirarchyList = (0, classListSelector_1.getNestedClassListHeirarchy)(classListState);
|
|
149
149
|
const loggedInUserDepartmentId = (_m = (0, tenantSelector_1.getCurrentTenant)(state).accountingClassIDs) === null || _m === void 0 ? void 0 : _m[0];
|
|
150
|
-
|
|
150
|
+
const duplicateReimbursementStatus = remiDetailViewState.duplicateReimbursementFetchStatus;
|
|
151
|
+
const duplicateLineByLineId = remiDetailViewState.duplicateLineByLineId;
|
|
152
|
+
return Object.assign(Object.assign({}, bankAccount), { duplicateReimbursementStatus,
|
|
153
|
+
duplicateLineByLineId, bankAccountCreationState: {
|
|
151
154
|
fetchState: bankAccount.fetchState,
|
|
152
155
|
error: bankAccount.error,
|
|
153
156
|
}, remiId: reimbursementId, fetchState: fetchState, isDeleted, saveStatus: (_o = sourceRemiDetail === null || sourceRemiDetail === void 0 ? void 0 : sourceRemiDetail.saveStatus) !== null && _o !== void 0 ? _o : undefined, uploadStatus: (_p = sourceRemiDetail === null || sourceRemiDetail === void 0 ? void 0 : sourceRemiDetail.uploadFetchState) !== null && _p !== void 0 ? _p : 'Not-Started', error: (_r = (_q = sourceRemiDetail === null || sourceRemiDetail === void 0 ? void 0 : sourceRemiDetail.fetchStatus) === null || _q === void 0 ? void 0 : _q.error) !== null && _r !== void 0 ? _r : undefined, version: 0, whatForSection, lineDetailSection: lineDetailSection, paymentTo,
|
|
@@ -6,10 +6,10 @@ import { updateReimbursement } from '../../../../../entity/reimbursement/reimbur
|
|
|
6
6
|
import { updateAllUsers } from '../../../../../entity/user/userReducer';
|
|
7
7
|
import { updateApprovalRules } from '../../../../../entity/approvalRule/approvalRuleReducer';
|
|
8
8
|
import { updateEntityApprovalStatus } from '../../../../../entity/entityApprovalStatus/entityApprovalStatusReducer';
|
|
9
|
-
import { updateRemiDetail } from '../../remiDetailView/remiDetailViewReducer';
|
|
9
|
+
import { clearDuplicateReimbursementDetail, updateRemiDetail } from '../../remiDetailView/remiDetailViewReducer';
|
|
10
10
|
import { updateMerchants } from '../../../../../entity/merchant/merchantReducer';
|
|
11
11
|
import { updateMerchantListIds } from '../../../merchantList/merchantListReducer';
|
|
12
12
|
import { openSnackbar } from '../../../../../entity/snackbar/snackbarReducer';
|
|
13
13
|
import { updateRecommendationForEntity } from '../../../../recommendation/recommendationReducer';
|
|
14
|
-
export declare type ActionType = ReturnType<typeof saveRemiDetail> | ReturnType<typeof updateAllUsers> | ReturnType<typeof updateApprovalRules> | ReturnType<typeof updateEntityApprovalStatus> | ReturnType<typeof updateMerchants> | ReturnType<typeof updateRemiDetail> | ReturnType<typeof updateReimbursement> | ReturnType<typeof updateMerchantListIds> | ReturnType<typeof updateRecommendationForEntity> | ReturnType<typeof openSnackbar> | ReturnType<typeof saveRemiSuccessOrFailure>;
|
|
14
|
+
export declare type ActionType = ReturnType<typeof saveRemiDetail> | ReturnType<typeof updateAllUsers> | ReturnType<typeof updateApprovalRules> | ReturnType<typeof updateEntityApprovalStatus> | ReturnType<typeof updateMerchants> | ReturnType<typeof updateRemiDetail> | ReturnType<typeof updateReimbursement> | ReturnType<typeof updateMerchantListIds> | ReturnType<typeof updateRecommendationForEntity> | ReturnType<typeof clearDuplicateReimbursementDetail> | ReturnType<typeof openSnackbar> | ReturnType<typeof saveRemiSuccessOrFailure>;
|
|
15
15
|
export declare const saveRemiDetailEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<ActionType>;
|
|
@@ -14,6 +14,7 @@ const reimbursementReducer_1 = require("../../../../../entity/reimbursement/reim
|
|
|
14
14
|
const userReducer_1 = require("../../../../../entity/user/userReducer");
|
|
15
15
|
const approvalRuleReducer_1 = require("../../../../../entity/approvalRule/approvalRuleReducer");
|
|
16
16
|
const entityApprovalStatusReducer_1 = require("../../../../../entity/entityApprovalStatus/entityApprovalStatusReducer");
|
|
17
|
+
const remiDetailViewReducer_1 = require("../../remiDetailView/remiDetailViewReducer");
|
|
17
18
|
const merchantReducer_1 = require("../../../../../entity/merchant/merchantReducer");
|
|
18
19
|
const merchantListReducer_1 = require("../../../merchantList/merchantListReducer");
|
|
19
20
|
const snackbarReducer_1 = require("../../../../../entity/snackbar/snackbarReducer");
|
|
@@ -41,6 +42,7 @@ const saveRemiDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, oper
|
|
|
41
42
|
(0, entityApprovalStatusReducer_1.updateEntityApprovalStatus)(response.data.entity_approvals),
|
|
42
43
|
(0, merchantReducer_1.updateMerchants)(response.data.merchants),
|
|
43
44
|
(0, merchantListReducer_1.updateMerchantListIds)(response.data.merchants),
|
|
45
|
+
(0, remiDetailViewReducer_1.clearDuplicateReimbursementDetail)(),
|
|
44
46
|
(0, editRemiViewReducer_1.saveRemiSuccessOrFailure)('Completed', action.payload.reimbursementId),
|
|
45
47
|
(0, snackbarReducer_1.openSnackbar)({
|
|
46
48
|
messageSection: remiStageCode === 'pending_approval'
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { updateDuplicateReimbursementFailure, updateDuplicateReimbursementSuccess, fetchDuplicateReimbursement } from '../remiDetailViewReducer';
|
|
4
|
+
import { ZeniAPI } from '../../../../../zeniAPI';
|
|
5
|
+
import { RootState } from '../../../../../reducer';
|
|
6
|
+
export declare type ActionType = ReturnType<typeof fetchDuplicateReimbursement> | ReturnType<typeof updateDuplicateReimbursementSuccess> | ReturnType<typeof updateDuplicateReimbursementFailure>;
|
|
7
|
+
export declare const fetchDuplicateReimbursementEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchDuplicateReimbursementEpic = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const remiDetailViewReducer_1 = require("../remiDetailViewReducer");
|
|
7
|
+
const responsePayload_1 = require("../../../../../responsePayload");
|
|
8
|
+
const reimbursementPayload_1 = require("../../../../../entity/reimbursement/reimbursementPayload");
|
|
9
|
+
const fetchDuplicateReimbursementEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(remiDetailViewReducer_1.fetchDuplicateReimbursement.match), (0, operators_1.switchMap)((action) => {
|
|
10
|
+
var _a, _b, _c, _d;
|
|
11
|
+
const { reimbursementId, signedInUserId, isManuallyTriggered } = action.payload;
|
|
12
|
+
const { editRemiDetailViewState, reimbursementState } = state$.value;
|
|
13
|
+
let lines = [];
|
|
14
|
+
let createdByUserId = '';
|
|
15
|
+
//edit reimbursememnt case
|
|
16
|
+
if (isManuallyTriggered === true) {
|
|
17
|
+
//get lines detail from editRemiDetailViewState
|
|
18
|
+
//we can't use reimbursementState as from edit reimbursement page, user can change line details
|
|
19
|
+
lines =
|
|
20
|
+
reimbursementId != null
|
|
21
|
+
? Object.values(editRemiDetailViewState.editRemiStateById[reimbursementId]
|
|
22
|
+
.remiDetailLocalData.updatesByLineId).filter((value) => value != null)
|
|
23
|
+
: Object.values(editRemiDetailViewState.newRemiState.remiDetailLocalData
|
|
24
|
+
.updatesByLineId).filter((value) => value != null);
|
|
25
|
+
createdByUserId =
|
|
26
|
+
reimbursementId != null
|
|
27
|
+
? (_a = reimbursementState.reimbursementById[reimbursementId]) === null || _a === void 0 ? void 0 : _a.createdBy
|
|
28
|
+
: signedInUserId;
|
|
29
|
+
}
|
|
30
|
+
//reimbursement detail page case
|
|
31
|
+
else if (reimbursementId != null) {
|
|
32
|
+
//get from reimbursememntState
|
|
33
|
+
lines =
|
|
34
|
+
(_c = (_b = reimbursementState.reimbursementById[reimbursementId]) === null || _b === void 0 ? void 0 : _b.lines) !== null && _c !== void 0 ? _c : [];
|
|
35
|
+
createdByUserId = (_d = reimbursementState.reimbursementById[reimbursementId]) === null || _d === void 0 ? void 0 : _d.createdBy;
|
|
36
|
+
}
|
|
37
|
+
const payload = {
|
|
38
|
+
reimbursement_provider: 'zeni',
|
|
39
|
+
transaction_type: 'reimbursement',
|
|
40
|
+
created_by_user_id: createdByUserId,
|
|
41
|
+
transaction_id: reimbursementId !== null && reimbursementId !== void 0 ? reimbursementId : null,
|
|
42
|
+
lines: lines.map(reimbursementPayload_1.toReimbursementLinePayload),
|
|
43
|
+
};
|
|
44
|
+
return zeniAPI
|
|
45
|
+
.postAndGetJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/reimbursements/transactions/duplicates`, payload)
|
|
46
|
+
.pipe((0, operators_1.mergeMap)((response) => {
|
|
47
|
+
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
48
|
+
const updateActions = [];
|
|
49
|
+
updateActions.push((0, remiDetailViewReducer_1.updateDuplicateReimbursementSuccess)({
|
|
50
|
+
duplicateLinesPayload: response.data.lines,
|
|
51
|
+
}));
|
|
52
|
+
return (0, rxjs_1.from)(updateActions);
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
return (0, rxjs_1.of)((0, remiDetailViewReducer_1.updateDuplicateReimbursementFailure)({
|
|
56
|
+
status: response.status,
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
}), (0, operators_1.catchError)((error) => {
|
|
60
|
+
return (0, rxjs_1.of)((0, remiDetailViewReducer_1.updateDuplicateReimbursementFailure)({
|
|
61
|
+
status: (0, responsePayload_1.createZeniAPIStatus)('Unexpected error', 'Duplicate Reimbursement Rest API errored out' +
|
|
62
|
+
JSON.stringify(error)),
|
|
63
|
+
}));
|
|
64
|
+
}));
|
|
65
|
+
}));
|
|
66
|
+
exports.fetchDuplicateReimbursementEpic = fetchDuplicateReimbursementEpic;
|
package/lib/view/spendManagement/reimbursement/remiDetailView/epics/fetchRemiDetailEpic.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { fetchRemiDetail, updateRemiDetailFetchState, removeRemiDetail, updateRemiDetail } from '../remiDetailViewReducer';
|
|
3
|
+
import { fetchRemiDetail, updateRemiDetailFetchState, removeRemiDetail, updateRemiDetail, fetchDuplicateReimbursement } from '../remiDetailViewReducer';
|
|
4
4
|
import { ZeniAPI } from '../../../../../zeniAPI';
|
|
5
5
|
import { RootState } from '../../../../../reducer';
|
|
6
6
|
import { removeReimbursement, updateReimbursement } from '../../../../../entity/reimbursement/reimbursementReducer';
|
|
@@ -14,5 +14,5 @@ import { indicateReadyToInitializeRemiLocalStore } from '../../editRemiView/edit
|
|
|
14
14
|
import { updateMerchantListIds } from '../../../merchantList/merchantListReducer';
|
|
15
15
|
import { fetchEntityHistory } from '../../../commonHistoryView/commonHistoryReducer';
|
|
16
16
|
import { updateRecommendationForEntity } from '../../../../recommendation/recommendationReducer';
|
|
17
|
-
export declare type ActionType = ReturnType<typeof fetchRemiDetail> | ReturnType<typeof updateReimbursement> | ReturnType<typeof updateBankAccounts> | ReturnType<typeof updateRemiDetailFetchState> | ReturnType<typeof removeReimbursement> | ReturnType<typeof removeRemiDetail> | ReturnType<typeof updatePaymentAccounts> | ReturnType<typeof updateAllUsers> | ReturnType<typeof updateApprovalRules> | ReturnType<typeof updateMerchantListIds> | ReturnType<typeof updateEntityApprovalStatus> | ReturnType<typeof updateRecommendationForEntity> | ReturnType<typeof updateMerchants> | ReturnType<typeof indicateReadyToInitializeRemiLocalStore> | ReturnType<typeof updateRemiDetail> | ReturnType<typeof fetchEntityHistory>;
|
|
17
|
+
export declare type ActionType = ReturnType<typeof fetchRemiDetail> | ReturnType<typeof updateReimbursement> | ReturnType<typeof updateBankAccounts> | ReturnType<typeof updateRemiDetailFetchState> | ReturnType<typeof removeReimbursement> | ReturnType<typeof removeRemiDetail> | ReturnType<typeof updatePaymentAccounts> | ReturnType<typeof updateAllUsers> | ReturnType<typeof updateApprovalRules> | ReturnType<typeof updateMerchantListIds> | ReturnType<typeof updateEntityApprovalStatus> | ReturnType<typeof updateRecommendationForEntity> | ReturnType<typeof updateMerchants> | ReturnType<typeof fetchDuplicateReimbursement> | ReturnType<typeof indicateReadyToInitializeRemiLocalStore> | ReturnType<typeof updateRemiDetail> | ReturnType<typeof fetchEntityHistory>;
|
|
18
18
|
export declare const fetchRemiDetailEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -44,7 +44,7 @@ const fetchRemiDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, ope
|
|
|
44
44
|
const getTransactionDetail$ = zeniAPI
|
|
45
45
|
.getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/reimbursements/transactions/${reimbursementId}?query=${encodeURIComponent(JSON.stringify(query))}`)
|
|
46
46
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
47
|
-
var _a, _b, _c;
|
|
47
|
+
var _a, _b, _c, _d;
|
|
48
48
|
if ((0, responsePayload_1.isSuccessResponse)(response) &&
|
|
49
49
|
((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.transaction) === null || _b === void 0 ? void 0 : _b.transaction_id) != null) {
|
|
50
50
|
const transcationId = response.data.transaction.transaction_id;
|
|
@@ -78,6 +78,9 @@ const fetchRemiDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, ope
|
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
actions.push((0, editRemiViewReducer_1.indicateReadyToInitializeRemiLocalStore)()); // add dummy action
|
|
81
|
+
if (((_d = response.data.transaction) === null || _d === void 0 ? void 0 : _d.lines) != null &&
|
|
82
|
+
response.data.transaction.lines.length > 0)
|
|
83
|
+
actions.push((0, remiDetailViewReducer_1.fetchDuplicateReimbursement)(response.data.transaction.created_by_user_id, false, response.data.transaction.transaction_id));
|
|
81
84
|
return (0, rxjs_1.from)(actions);
|
|
82
85
|
}
|
|
83
86
|
else {
|
|
@@ -25,4 +25,15 @@ export interface RemiDetailQuery {
|
|
|
25
25
|
is_include_approval_info: boolean;
|
|
26
26
|
is_include_payment_accounts_info: boolean;
|
|
27
27
|
}
|
|
28
|
+
export interface DuplicateLinePayload {
|
|
29
|
+
line_id: string;
|
|
30
|
+
is_duplicate_exists: boolean;
|
|
31
|
+
is_duplicate_within_transaction: boolean;
|
|
32
|
+
duplicate_line_id: string | null;
|
|
33
|
+
duplicate_transaction_id: string | null;
|
|
34
|
+
}
|
|
28
35
|
export declare type RemiDetailViewResponse = ZeniAPIResponse<RemiDetailViewPayload>;
|
|
36
|
+
export interface DuplicateReimbursementPayload {
|
|
37
|
+
lines: DuplicateLinePayload[];
|
|
38
|
+
}
|
|
39
|
+
export declare type DuplicateReimbursementResponse = ZeniAPIResponse<DuplicateReimbursementPayload>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ZeniAPIStatus } from '../../../../responsePayload';
|
|
2
2
|
import { RemiDetailViewState, RemiApprovalType } from './remiDetailViewState';
|
|
3
3
|
import { FetchState, ID } from '../../../../commonStateTypes/common';
|
|
4
|
-
import { RemiDetailViewPayload } from './remiDetailViewPayload';
|
|
4
|
+
import { DuplicateLinePayload, RemiDetailViewPayload } from './remiDetailViewPayload';
|
|
5
5
|
export declare const initialState: RemiDetailViewState;
|
|
6
6
|
export declare const fetchRemiDetail: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[reimbursementId: string, cacheOverride: any, isShowDeletedReimbursementEnabled: any], {
|
|
7
7
|
reimbursementId: string;
|
|
@@ -38,6 +38,16 @@ export declare const fetchRemiDetail: import("@reduxjs/toolkit").ActionCreatorWi
|
|
|
38
38
|
reimbursementId: string;
|
|
39
39
|
isDeleteRemi: boolean | undefined;
|
|
40
40
|
error: ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
41
|
-
}, string, never, never>,
|
|
41
|
+
}, string, never, never>, fetchDuplicateReimbursement: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[signedInUserId: string, isManuallyTriggered: boolean, reimbursementId?: string | undefined], {
|
|
42
|
+
reimbursementId: string | undefined;
|
|
43
|
+
isManuallyTriggered: boolean;
|
|
44
|
+
signedInUserId: string;
|
|
45
|
+
}, string, never, never>, updateDuplicateReimbursementFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
46
|
+
status: ZeniAPIStatus;
|
|
47
|
+
}, string>, updateDuplicateReimbursementSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
48
|
+
duplicateLinesPayload: DuplicateLinePayload[];
|
|
49
|
+
}, string>, removeDuplicateReimbursementByLineId: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
50
|
+
lineId: string;
|
|
51
|
+
}, string>, clearDuplicateReimbursementDetail: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, clearRemiDetailView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
42
52
|
declare const _default: import("@reduxjs/toolkit").Reducer<RemiDetailViewState, import("@reduxjs/toolkit").AnyAction>;
|
|
43
53
|
export default _default;
|
|
@@ -4,12 +4,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
var _a;
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.clearRemiDetailView = exports.cancelAndDeleteRemiSuccessOrFailure = exports.cancelAndDeleteRemi = exports.deleteRemiSuccessOrFailure = exports.deleteRemi = exports.approveOrRejectRemiFailure = exports.approveOrRejectRemiSuccess = exports.approveOrRejectRemi = exports.removeRemiDetail = exports.updateRemiDetailFetchState = exports.updateRemiDetail = exports.fetchRemiDetail = exports.initialState = void 0;
|
|
7
|
+
exports.clearRemiDetailView = exports.clearDuplicateReimbursementDetail = exports.removeDuplicateReimbursementByLineId = exports.updateDuplicateReimbursementSuccess = exports.updateDuplicateReimbursementFailure = exports.fetchDuplicateReimbursement = exports.cancelAndDeleteRemiSuccessOrFailure = exports.cancelAndDeleteRemi = exports.deleteRemiSuccessOrFailure = exports.deleteRemi = exports.approveOrRejectRemiFailure = exports.approveOrRejectRemiSuccess = exports.approveOrRejectRemi = exports.removeRemiDetail = exports.updateRemiDetailFetchState = exports.updateRemiDetail = exports.fetchRemiDetail = exports.initialState = void 0;
|
|
8
8
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
9
9
|
const remiDetailViewState_1 = require("./remiDetailViewState");
|
|
10
10
|
const get_1 = __importDefault(require("lodash/get"));
|
|
11
11
|
exports.initialState = {
|
|
12
12
|
remiDetailById: {},
|
|
13
|
+
duplicateLineByLineId: {},
|
|
14
|
+
duplicateReimbursementFetchStatus: {
|
|
15
|
+
fetchState: 'Not-Started',
|
|
16
|
+
error: undefined,
|
|
17
|
+
},
|
|
13
18
|
};
|
|
14
19
|
const remiDetailView = (0, toolkit_1.createSlice)({
|
|
15
20
|
name: 'remiDetailView',
|
|
@@ -214,10 +219,53 @@ const remiDetailView = (0, toolkit_1.createSlice)({
|
|
|
214
219
|
};
|
|
215
220
|
},
|
|
216
221
|
},
|
|
222
|
+
fetchDuplicateReimbursement: {
|
|
223
|
+
reducer(draft) {
|
|
224
|
+
draft.duplicateReimbursementFetchStatus = {
|
|
225
|
+
fetchState: 'In-Progress',
|
|
226
|
+
error: undefined,
|
|
227
|
+
};
|
|
228
|
+
},
|
|
229
|
+
prepare(signedInUserId, isManuallyTriggered, reimbursementId) {
|
|
230
|
+
return {
|
|
231
|
+
payload: { reimbursementId, isManuallyTriggered, signedInUserId },
|
|
232
|
+
};
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
updateDuplicateReimbursementSuccess(draft, action) {
|
|
236
|
+
const { duplicateLinesPayload } = action.payload;
|
|
237
|
+
draft.duplicateLineByLineId = {};
|
|
238
|
+
duplicateLinesPayload.forEach((duplicateLinePayload) => {
|
|
239
|
+
draft.duplicateLineByLineId[duplicateLinePayload.line_id] =
|
|
240
|
+
(0, remiDetailViewState_1.toDuplicateLine)(duplicateLinePayload);
|
|
241
|
+
});
|
|
242
|
+
draft.duplicateReimbursementFetchStatus = {
|
|
243
|
+
fetchState: 'Completed',
|
|
244
|
+
error: undefined,
|
|
245
|
+
};
|
|
246
|
+
},
|
|
247
|
+
removeDuplicateReimbursementByLineId(draft, action) {
|
|
248
|
+
const { lineId } = action.payload;
|
|
249
|
+
delete draft.duplicateLineByLineId[lineId];
|
|
250
|
+
},
|
|
251
|
+
clearDuplicateReimbursementDetail(draft) {
|
|
252
|
+
draft.duplicateLineByLineId = {};
|
|
253
|
+
draft.duplicateReimbursementFetchStatus = {
|
|
254
|
+
fetchState: 'Not-Started',
|
|
255
|
+
error: undefined,
|
|
256
|
+
};
|
|
257
|
+
},
|
|
258
|
+
updateDuplicateReimbursementFailure(draft, action) {
|
|
259
|
+
draft.duplicateLineByLineId = {};
|
|
260
|
+
draft.duplicateReimbursementFetchStatus = {
|
|
261
|
+
fetchState: 'Error',
|
|
262
|
+
error: action.payload.status,
|
|
263
|
+
};
|
|
264
|
+
},
|
|
217
265
|
clearRemiDetailView(draft) {
|
|
218
266
|
Object.assign(draft, exports.initialState);
|
|
219
267
|
},
|
|
220
268
|
},
|
|
221
269
|
});
|
|
222
|
-
_a = remiDetailView.actions, exports.fetchRemiDetail = _a.fetchRemiDetail, exports.updateRemiDetail = _a.updateRemiDetail, exports.updateRemiDetailFetchState = _a.updateRemiDetailFetchState, exports.removeRemiDetail = _a.removeRemiDetail, exports.approveOrRejectRemi = _a.approveOrRejectRemi, exports.approveOrRejectRemiSuccess = _a.approveOrRejectRemiSuccess, exports.approveOrRejectRemiFailure = _a.approveOrRejectRemiFailure, exports.deleteRemi = _a.deleteRemi, exports.deleteRemiSuccessOrFailure = _a.deleteRemiSuccessOrFailure, exports.cancelAndDeleteRemi = _a.cancelAndDeleteRemi, exports.cancelAndDeleteRemiSuccessOrFailure = _a.cancelAndDeleteRemiSuccessOrFailure, exports.clearRemiDetailView = _a.clearRemiDetailView;
|
|
270
|
+
_a = remiDetailView.actions, exports.fetchRemiDetail = _a.fetchRemiDetail, exports.updateRemiDetail = _a.updateRemiDetail, exports.updateRemiDetailFetchState = _a.updateRemiDetailFetchState, exports.removeRemiDetail = _a.removeRemiDetail, exports.approveOrRejectRemi = _a.approveOrRejectRemi, exports.approveOrRejectRemiSuccess = _a.approveOrRejectRemiSuccess, exports.approveOrRejectRemiFailure = _a.approveOrRejectRemiFailure, exports.deleteRemi = _a.deleteRemi, exports.deleteRemiSuccessOrFailure = _a.deleteRemiSuccessOrFailure, exports.cancelAndDeleteRemi = _a.cancelAndDeleteRemi, exports.cancelAndDeleteRemiSuccessOrFailure = _a.cancelAndDeleteRemiSuccessOrFailure, exports.fetchDuplicateReimbursement = _a.fetchDuplicateReimbursement, exports.updateDuplicateReimbursementFailure = _a.updateDuplicateReimbursementFailure, exports.updateDuplicateReimbursementSuccess = _a.updateDuplicateReimbursementSuccess, exports.removeDuplicateReimbursementByLineId = _a.removeDuplicateReimbursementByLineId, exports.clearDuplicateReimbursementDetail = _a.clearDuplicateReimbursementDetail, exports.clearRemiDetailView = _a.clearRemiDetailView;
|
|
223
271
|
exports.default = remiDetailView.reducer;
|
|
@@ -3,6 +3,7 @@ import { SelectorView } from '../../../../commonStateTypes/viewAndReport/viewAnd
|
|
|
3
3
|
import { Reimbursement } from '../../../../entity/reimbursement/reimbursementState';
|
|
4
4
|
import { RootState } from '../../../../reducer';
|
|
5
5
|
import { ReimbursementLineWithAttachment } from '../editRemiView/editRemiViewSelector';
|
|
6
|
+
import { DuplicateLine } from './remiDetailViewState';
|
|
6
7
|
import { AttributeType, Criteria } from '../../../../entity/approvalRule/approvalRuleState';
|
|
7
8
|
import { ZeniDate } from '../../../../zeniDayJS';
|
|
8
9
|
import { ActivityStatus, Actor, EntityType } from '../../../../entity/entityApprovalStatus/entityApprovalStatusState';
|
|
@@ -19,6 +20,8 @@ export interface RemiDetailViewSelector extends SelectorView {
|
|
|
19
20
|
cancelAndDeleteStatus: FetchStateAndError;
|
|
20
21
|
cancelStatus: FetchStateAndError;
|
|
21
22
|
approvalUpdateStatus: FetchStateAndError;
|
|
23
|
+
duplicateLineByLineId: Record<ID, DuplicateLine>;
|
|
24
|
+
duplicateReimbursementStatus: FetchStateAndError;
|
|
22
25
|
remiActivities: RemiActivity[];
|
|
23
26
|
remiHistory: ActivityHistorySelectorView;
|
|
24
27
|
realTimeApproval: ActivityRealTimeApprovalSelectorView;
|
|
@@ -70,7 +70,9 @@ const getRemiDetailView = (state, reimbursementId) => {
|
|
|
70
70
|
const cancelStatus = (_g = remiTransactionDetails === null || remiTransactionDetails === void 0 ? void 0 : remiTransactionDetails.cancelStatus) !== null && _g !== void 0 ? _g : remiDetailViewState_1.initialRemiDetailView.cancelStatus;
|
|
71
71
|
const cancelAndDeleteStatus = (_h = remiTransactionDetails === null || remiTransactionDetails === void 0 ? void 0 : remiTransactionDetails.cancelAndDeleteStatus) !== null && _h !== void 0 ? _h : remiDetailViewState_1.initialRemiDetailView.cancelAndDeleteStatus;
|
|
72
72
|
const approvalUpdateStatus = (_j = remiTransactionDetails === null || remiTransactionDetails === void 0 ? void 0 : remiTransactionDetails.approvalUpdateStatus) !== null && _j !== void 0 ? _j : remiDetailViewState_1.initialRemiDetailView.approvalUpdateStatus;
|
|
73
|
+
const duplicateReimbursementStatus = remiDetailViewState.duplicateReimbursementFetchStatus;
|
|
73
74
|
const { classIds } = classListState;
|
|
75
|
+
const duplicateLineByLineId = remiDetailViewState.duplicateLineByLineId;
|
|
74
76
|
const allAccountingClasses = (0, classSelector_1.getClassesByIds)(classState, {
|
|
75
77
|
classIds: classIds,
|
|
76
78
|
reportId: 'class_list',
|
|
@@ -84,6 +86,8 @@ const getRemiDetailView = (state, reimbursementId) => {
|
|
|
84
86
|
cancelStatus,
|
|
85
87
|
cancelAndDeleteStatus,
|
|
86
88
|
approvalUpdateStatus,
|
|
89
|
+
duplicateLineByLineId,
|
|
90
|
+
duplicateReimbursementStatus,
|
|
87
91
|
createdBy,
|
|
88
92
|
remiActivities,
|
|
89
93
|
filteredApprovers,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FetchedState, FetchStateAndError, ID } from '../../../../commonStateTypes/common';
|
|
2
|
+
import { DuplicateLinePayload } from './remiDetailViewPayload';
|
|
2
3
|
export declare type RemiApprovalType = 'approved' | 'rejected';
|
|
3
4
|
export interface RemiDetailView extends FetchedState {
|
|
4
5
|
reimbursementId: ID;
|
|
@@ -13,5 +14,15 @@ export interface RemiDetailView extends FetchedState {
|
|
|
13
14
|
export interface RemiDetailViewState {
|
|
14
15
|
remiDetailById: Record<ID, RemiDetailView>;
|
|
15
16
|
approvalType?: RemiApprovalType;
|
|
17
|
+
duplicateLineByLineId: Record<ID, DuplicateLine>;
|
|
18
|
+
duplicateReimbursementFetchStatus: FetchStateAndError;
|
|
16
19
|
}
|
|
17
20
|
export declare const initialRemiDetailView: RemiDetailView;
|
|
21
|
+
export interface DuplicateLine {
|
|
22
|
+
lineId: string;
|
|
23
|
+
isDuplicateExists: boolean;
|
|
24
|
+
isDuplicateWithinTransaction: boolean;
|
|
25
|
+
duplicateLineId?: string;
|
|
26
|
+
duplicateTransactionId?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const toDuplicateLine: (duplicateLinePayload: DuplicateLinePayload) => DuplicateLine;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.initialRemiDetailView = void 0;
|
|
3
|
+
exports.toDuplicateLine = exports.initialRemiDetailView = void 0;
|
|
4
4
|
exports.initialRemiDetailView = {
|
|
5
5
|
fetchState: 'Not-Started',
|
|
6
6
|
error: undefined,
|
|
@@ -27,3 +27,14 @@ exports.initialRemiDetailView = {
|
|
|
27
27
|
entityApprovalIds: [],
|
|
28
28
|
approvalRuleIds: [],
|
|
29
29
|
};
|
|
30
|
+
const toDuplicateLine = (duplicateLinePayload) => {
|
|
31
|
+
var _a, _b;
|
|
32
|
+
return {
|
|
33
|
+
lineId: duplicateLinePayload.line_id,
|
|
34
|
+
isDuplicateExists: duplicateLinePayload.is_duplicate_exists,
|
|
35
|
+
isDuplicateWithinTransaction: duplicateLinePayload.is_duplicate_within_transaction,
|
|
36
|
+
duplicateLineId: (_a = duplicateLinePayload.duplicate_line_id) !== null && _a !== void 0 ? _a : undefined,
|
|
37
|
+
duplicateTransactionId: (_b = duplicateLinePayload.duplicate_transaction_id) !== null && _b !== void 0 ? _b : undefined,
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
exports.toDuplicateLine = toDuplicateLine;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.87",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|