@zeniai/client-epic-state 4.13.11 → 4.13.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonPayloadTypes/commonPayload.d.ts +0 -7
- package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.d.ts +0 -0
- package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.js +1 -0
- package/lib/commonStateTypes/common.d.ts +0 -2
- package/lib/commonStateTypes/common.js +1 -5
- package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.d.ts +0 -1
- package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.js +1 -2
- package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.d.ts +0 -0
- package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.js +1 -0
- package/lib/commonStateTypes/timePeriod.d.ts +0 -16
- package/lib/commonStateTypes/timePeriod.js +1 -31
- package/lib/commonStateTypes/viewAndReport/reportIDHelper.d.ts +0 -1
- package/lib/commonStateTypes/viewAndReport/reportIDHelper.js +1 -3
- package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +0 -2
- package/lib/entity/account/accountState.d.ts +1 -1
- package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
- package/lib/entity/chargeCard/chargeCard.d.ts +2 -16
- package/lib/entity/chargeCard/chargeCard.js +1 -18
- package/lib/entity/chargeCard/chargeCardPayload.d.ts +5 -14
- package/lib/entity/chargeCard/chargeCardPayload.js +7 -24
- package/lib/entity/class/classReducer.d.ts +4 -4
- package/lib/entity/class/classState.d.ts +1 -1
- package/lib/entity/company/companyPayload.d.ts +0 -4
- package/lib/entity/company/companyPayload.js +3 -6
- package/lib/entity/company/companyReducer.d.ts +1 -4
- package/lib/entity/company/companyReducer.js +2 -6
- package/lib/entity/company/companyStateTypes.d.ts +1 -5
- package/lib/entity/file/fileState.d.ts +3 -3
- package/lib/entity/file/fileState.js +0 -2
- package/lib/entity/forecast/forecastState.d.ts +1 -1
- package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +0 -1
- package/lib/entity/jeSchedules/jeSchedulesPayload.js +1 -7
- package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +2 -2
- package/lib/entity/jeSchedules/jeSchedulesSelector.d.ts +1 -3
- package/lib/entity/jeSchedules/jeSchedulesSelector.js +1 -2
- package/lib/entity/jeSchedules/jeSchedulesState.d.ts +1 -3
- package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +0 -2
- package/lib/entity/jeSchedules/jeSchedulesTypes.js +1 -12
- package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +0 -3
- package/lib/entity/tenant/clearAllEpic.d.ts +2 -12
- package/lib/entity/tenant/clearAllEpic.js +0 -20
- package/lib/entity/tenant/epic/fetchActiveTenantEpic.d.ts +1 -2
- package/lib/entity/tenant/epic/fetchActiveTenantEpic.js +1 -9
- package/lib/entity/tenant/epic/fetchAllTenantsEpic.d.ts +1 -7
- package/lib/entity/tenant/epic/fetchAllTenantsEpic.js +2 -34
- package/lib/entity/tenant/tenantPayload.d.ts +0 -1
- package/lib/entity/tenant/tenantReducer.js +0 -3
- package/lib/entity/tenant/tenantState.d.ts +0 -1
- package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
- package/lib/entity/transaction/payloadTypes/attachmentPayload.d.ts +1 -1
- package/lib/entity/transaction/payloadTypes/attachmentPayload.js +3 -3
- package/lib/entity/transaction/stateTypes/transactionType.d.ts +2 -2
- package/lib/entity/transaction/transactionSelector.d.ts +0 -1
- package/lib/entity/transaction/transactionSelector.js +1 -7
- package/lib/entity/user/userPayload.d.ts +0 -1
- package/lib/entity/user/userReducer.js +8 -9
- package/lib/entity/user/userState.d.ts +0 -1
- package/lib/entity/vendor/__mocks__/vendorStateMocks.d.ts +0 -1
- package/lib/entity/vendor/__mocks__/vendorStateMocks.js +1 -35
- package/lib/entity/vendor/vendorPayload.js +2 -3
- package/lib/entity/vendor/vendorState.d.ts +3 -3
- package/lib/entity/vendor/vendorType.d.ts +2 -0
- package/lib/entity/vendor/vendorType.js +4 -1
- package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
- package/lib/entity/vendorExpense/vendorExpenseSelector.js +0 -1
- package/lib/epic.d.ts +2 -18
- package/lib/epic.js +2 -18
- package/lib/index.d.ts +21 -65
- package/lib/index.js +28 -102
- package/lib/reducer.d.ts +1 -31
- package/lib/reducer.js +1 -31
- package/lib/view/addressView/__mocks__/json/createCompanyAddressSuccess.json +1 -7
- package/lib/view/addressView/__mocks__/json/createCompanyUserAddressSuccess.json +1 -7
- package/lib/view/addressView/addressViewState.d.ts +1 -1
- package/lib/view/addressView/toAddressViewLocalData.d.ts +0 -2
- package/lib/view/addressView/toAddressViewLocalData.js +3 -9
- package/lib/view/auditReportView/auditReportViewState.d.ts +2 -2
- package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
- package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
- package/lib/view/cardPayment/epic/addCardPaymentSourceEpic.d.ts +1 -1
- package/lib/view/cardPayment/epic/confirmCardSetupIntentEpic.d.ts +1 -1
- package/lib/view/cardPayment/epic/createCardSetupIntentEpic.d.ts +1 -1
- package/lib/view/cardPayment/epic/fetchPaymentSourcesEpic.d.ts +1 -1
- package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
- package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
- package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
- package/lib/view/commonVendorView/vendorView/vendorViewSelector.d.ts +1 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewReducer.d.ts +5 -10
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewReducer.js +7 -10
- package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportTemplatesEpic.js +4 -4
- package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportViewEpic.js +4 -4
- package/lib/view/companyMonthEndReportView/epics/improveUsingZeniGPTEpic.js +3 -5
- package/lib/view/companyMonthEndReportView/epics/saveCompanyMonthEndReportEpic.js +3 -3
- package/lib/view/companyMonthEndReportView/epics/sendCompanyMonthEndReportEpic.js +3 -3
- package/lib/view/companyView/epic/companyPassport/updateCompanyPassportLocalStoreDataEpic.js +6 -1
- package/lib/view/companyView/selectorHelpers/getCompanyView.js +0 -4
- package/lib/view/companyView/types/cockpitTypes.d.ts +2 -2
- package/lib/view/companyView/types/companyPassport/companyUsersLocalData.d.ts +0 -2
- package/lib/view/companyView/types/companyPassport/companyUsersLocalData.js +1 -7
- package/lib/view/companyView/types/companyView.d.ts +0 -1
- package/lib/view/dashboard/dashboardEpic.d.ts +1 -2
- package/lib/view/dashboard/dashboardEpic.js +2 -22
- package/lib/view/dashboard/dashboardReducer.d.ts +2 -3
- package/lib/view/dashboard/dashboardReducer.js +1 -2
- package/lib/view/dashboard/dashboardSelector.d.ts +0 -2
- package/lib/view/dashboard/dashboardSelector.js +2 -10
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
- package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerViewEpic.d.ts +1 -8
- package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerViewEpic.js +1 -3
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +4 -5
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +0 -2
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +3 -6
- package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
- package/lib/view/people/deletePersonEpic.d.ts +1 -1
- package/lib/view/people/invitePeopleEpic.d.ts +1 -1
- package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
- package/lib/view/people/resendInviteEpic.d.ts +1 -1
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
- package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +1 -1
- package/lib/view/scheduleView/scheduleAccruedDetailView/LinkBillExpenseView/linkBillExpense.d.ts +1 -1
- package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsEpic.js +2 -3
- package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsPageEpic.js +1 -1
- package/lib/view/scheduleView/scheduleDetailView/epics/saveScheduleDetailsEpic.js +2 -2
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.js +5 -19
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.d.ts +3 -8
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.js +57 -39
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +8 -13
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.js +12 -19
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.d.ts +0 -1
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.js +3 -4
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailState.d.ts +0 -2
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
- package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
- package/lib/view/settingsView/epic/updateMyProfileEpic.js +4 -6
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +4 -1
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +0 -2
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +0 -3
- package/lib/view/spendManagement/billPay/editBillView/epics/parseInvoiceToBillEpic.js +2 -2
- package/lib/view/spendManagement/billPay/internationalWire/internationalWireSelector.d.ts +1 -2
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer.d.ts +1 -3
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer.js +2 -6
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingSelector.d.ts +3 -2
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingSelector.js +3 -3
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingState.d.ts +3 -1
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/epics/initializeCardUserOnboardingLocalDataEpic.d.ts +2 -1
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/epics/initializeCardUserOnboardingLocalDataEpic.js +21 -1
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/epics/saveCardOnboardingUserDetailsEpic.js +3 -1
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +0 -1
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.js +0 -4
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.d.ts +1 -8
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js +2 -25
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.d.ts +0 -1
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.js +4 -8
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailEpic.js +1 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +14 -1
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +13 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.d.ts +6 -3
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +17 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.d.ts +2 -8
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +15 -55
- package/lib/view/spendManagement/chargeCards/{issueChargeCard → chargeCardList}/issueChargeCardEpic.d.ts +2 -3
- package/lib/view/spendManagement/chargeCards/{issueChargeCard → chargeCardList}/issueChargeCardEpic.js +18 -35
- package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.d.ts +1 -1
- package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +6 -31
- package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.d.ts +2 -2
- package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +2 -5
- package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +1 -4
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +2 -6
- package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +0 -1
- package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +0 -4
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/parseReceiptsToRemiEpic.js +2 -2
- package/lib/view/subscriptionView/types/subscriptionTypes.d.ts +1 -1
- package/lib/view/tagView/epics/createTagEpic.d.ts +1 -1
- package/lib/view/tagView/epics/deleteTagEpic.d.ts +1 -1
- package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
- package/lib/view/topEx/topExSelector.d.ts +1 -1
- package/lib/view/transactionDetail/epics/uploadMissingReceiptSuccessEpic.js +2 -2
- package/lib/view/transactionDetail/transactionDetailState.d.ts +2 -2
- package/lib/view/userListView/fetchUserListByTypeEpic.js +1 -4
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099ListMock.js +1 -1
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099ListSelectorMock.js +1 -1
- package/lib/view/vendorReviewView/common/state/commonTypes.d.ts +1 -1
- package/lib/view/vendorReviewView/vendorFirstReviewView/epics/saveVendorFirstReviewViewEpic.js +3 -34
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.d.ts +1 -1
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.js +2 -2
- package/lib/view/zeniAccStatementList/zeniAccStatementList.d.ts +5 -2
- package/package.json +1 -1
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksPayload.d.ts +0 -32
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksPayload.js +0 -60
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksReducer.d.ts +0 -12
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksReducer.js +0 -25
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksSelector.d.ts +0 -7
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksSelector.js +0 -36
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.d.ts +0 -38
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.js +0 -10
- package/lib/view/countryList/countryListReducer.d.ts +0 -17
- package/lib/view/countryList/countryListReducer.js +0 -58
- package/lib/view/countryList/countryListSelector.d.ts +0 -7
- package/lib/view/countryList/countryListSelector.js +0 -13
- package/lib/view/countryList/countryListState.d.ts +0 -12
- package/lib/view/countryList/countryListState.js +0 -2
- package/lib/view/countryList/epics/fetchCountryListEpic.d.ts +0 -6
- package/lib/view/countryList/epics/fetchCountryListEpic.js +0 -19
- package/lib/view/countryList/epics/fetchNationalityCountryListEpic.d.ts +0 -7
- package/lib/view/countryList/epics/fetchNationalityCountryListEpic.js +0 -38
- package/lib/view/countryList/payloads/countryListPayload.d.ts +0 -6
- package/lib/view/countryList/payloads/countryListPayload.js +0 -10
- package/lib/view/countryList/payloads/nationalityCountryListPayload.d.ts +0 -11
- package/lib/view/countryList/payloads/nationalityCountryListPayload.js +0 -2
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +0 -10
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +0 -72
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +0 -11
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +0 -53
- package/lib/view/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic.d.ts +0 -11
- package/lib/view/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic.js +0 -66
- package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.d.ts +0 -7
- package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.js +0 -39
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.d.ts +0 -7
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.js +0 -22
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.d.ts +0 -8
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +0 -59
- package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.d.ts +0 -8
- package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.js +0 -78
- package/lib/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.d.ts +0 -6
- package/lib/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.js +0 -28
- package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.d.ts +0 -9
- package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.js +0 -78
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMissingReceiptsEpic.d.ts +0 -8
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMissingReceiptsEpic.js +0 -58
- package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.d.ts +0 -10
- package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.js +0 -12
- package/lib/view/expenseAutomationView/expenseAutomationViewPayload.d.ts +0 -3
- package/lib/view/expenseAutomationView/expenseAutomationViewPayload.js +0 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +0 -17
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +0 -66
- package/lib/view/expenseAutomationView/expenseAutomationViewSelector.d.ts +0 -3
- package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +0 -97
- package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +0 -11
- package/lib/view/expenseAutomationView/expenseAutomationViewState.js +0 -14
- package/lib/view/expenseAutomationView/helpers/helpers.d.ts +0 -7
- package/lib/view/expenseAutomationView/helpers/helpers.js +0 -67
- package/lib/view/expenseAutomationView/payload/fluxAnalysisPayload.d.ts +0 -76
- package/lib/view/expenseAutomationView/payload/fluxAnalysisPayload.js +0 -9
- package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.d.ts +0 -36
- package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.js +0 -58
- package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.d.ts +0 -16
- package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.js +0 -2
- package/lib/view/expenseAutomationView/reducers/fluxAnalysisViewReducer.d.ts +0 -34
- package/lib/view/expenseAutomationView/reducers/fluxAnalysisViewReducer.js +0 -205
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +0 -53
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +0 -245
- package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.d.ts +0 -31
- package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +0 -130
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +0 -5
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +0 -45
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +0 -34
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +0 -44
- package/lib/view/expenseAutomationView/selectorTypes/fluxAnalysisViewSelectorTypes.d.ts +0 -32
- package/lib/view/expenseAutomationView/selectorTypes/fluxAnalysisViewSelectorTypes.js +0 -2
- package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.d.ts +0 -28
- package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.js +0 -2
- package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.d.ts +0 -11
- package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.js +0 -2
- package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.d.ts +0 -3
- package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.js +0 -55
- package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.d.ts +0 -7
- package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +0 -95
- package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.d.ts +0 -3
- package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.js +0 -61
- package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.d.ts +0 -53
- package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.js +0 -5
- package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +0 -31
- package/lib/view/expenseAutomationView/types/jeSchedulesViewState.js +0 -2
- package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +0 -20
- package/lib/view/expenseAutomationView/types/missingReceiptsViewState.js +0 -13
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +0 -28
- package/lib/view/expenseAutomationView/types/transactionsViewState.js +0 -15
- package/lib/view/monthEndCloseChecksView/epics/fetchMonthEndCloseChecksEpic.d.ts +0 -8
- package/lib/view/monthEndCloseChecksView/epics/fetchMonthEndCloseChecksEpic.js +0 -58
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewPayload.d.ts +0 -3
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewPayload.js +0 -2
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewReducer.d.ts +0 -16
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewReducer.js +0 -36
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewSelector.d.ts +0 -10
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewSelector.js +0 -27
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewState.d.ts +0 -5
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewState.js +0 -2
- package/lib/view/spendManagement/billPay/internationalWireVerification/epics/fetchIntlVerificationFormEpic.d.ts +0 -7
- package/lib/view/spendManagement/billPay/internationalWireVerification/epics/fetchIntlVerificationFormEpic.js +0 -36
- package/lib/view/spendManagement/billPay/internationalWireVerification/epics/initializeIntlVerificationFormEpic.d.ts +0 -6
- package/lib/view/spendManagement/billPay/internationalWireVerification/epics/initializeIntlVerificationFormEpic.js +0 -42
- package/lib/view/spendManagement/billPay/internationalWireVerification/epics/submitIntlVerificationEpic.d.ts +0 -9
- package/lib/view/spendManagement/billPay/internationalWireVerification/epics/submitIntlVerificationEpic.js +0 -67
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationPayload.d.ts +0 -26
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationPayload.js +0 -22
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer.d.ts +0 -22
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer.js +0 -89
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationSelector.d.ts +0 -15
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationSelector.js +0 -30
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationState.d.ts +0 -20
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationState.js +0 -2
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/updatePhysicalChargeCardAttemptEpic.d.ts +0 -11
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/updatePhysicalChargeCardAttemptEpic.js +0 -42
- package/lib/view/spendManagement/chargeCards/issueChargeCard/fetchIssueCardPageEpic.d.ts +0 -9
- package/lib/view/spendManagement/chargeCards/issueChargeCard/fetchIssueCardPageEpic.js +0 -44
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.d.ts +0 -15
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.js +0 -65
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.d.ts +0 -22
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.js +0 -76
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState.d.ts +0 -28
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState.js +0 -23
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { updateVerificationFormLocalData, initializeIntlVerificationForm } from '../internationalWireVerificationReducer';
|
|
4
|
-
import { RootState } from '../../../../../reducer';
|
|
5
|
-
export declare type ActionType = ReturnType<typeof updateVerificationFormLocalData> | ReturnType<typeof initializeIntlVerificationForm>;
|
|
6
|
-
export declare const initializeIntlVerificationFormEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.initializeIntlVerificationFormEpic = void 0;
|
|
4
|
-
const rxjs_1 = require("rxjs");
|
|
5
|
-
const operators_1 = require("rxjs/operators");
|
|
6
|
-
const internationalWireVerificationReducer_1 = require("../internationalWireVerificationReducer");
|
|
7
|
-
const initializeIntlVerificationFormEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(internationalWireVerificationReducer_1.initializeIntlVerificationForm.match), (0, operators_1.mergeMap)((action) => {
|
|
8
|
-
const { companyId, internationalWireFormPayload } = action.payload;
|
|
9
|
-
const actions = [];
|
|
10
|
-
const state = state$.value;
|
|
11
|
-
const onboardingDataFromCompanyInfo = state.companyState.companiesById[companyId].companyBillPayInfo
|
|
12
|
-
.internationalWireOnboardingDetails;
|
|
13
|
-
const localData = {};
|
|
14
|
-
Object.keys(internationalWireFormPayload).forEach((formFieldKey) => {
|
|
15
|
-
const values = onboardingDataFromCompanyInfo != null
|
|
16
|
-
? onboardingDataFromCompanyInfo[formFieldKey].values
|
|
17
|
-
: undefined;
|
|
18
|
-
if (values != null) {
|
|
19
|
-
localData[formFieldKey] =
|
|
20
|
-
internationalWireFormPayload[formFieldKey].type === 'enum'
|
|
21
|
-
? values.length === 1
|
|
22
|
-
? typeof values[0] === 'object' && 'code' in values[0]
|
|
23
|
-
? values[0].code
|
|
24
|
-
: ''
|
|
25
|
-
: values.map((value) => typeof value === 'object' && 'code' in value
|
|
26
|
-
? value.code
|
|
27
|
-
: '')
|
|
28
|
-
: values[0];
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
localData[formFieldKey] =
|
|
32
|
-
internationalWireFormPayload[formFieldKey].type === 'enum' &&
|
|
33
|
-
internationalWireFormPayload[formFieldKey]
|
|
34
|
-
.is_multiple_values_allowed === true
|
|
35
|
-
? []
|
|
36
|
-
: '';
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
actions.push((0, internationalWireVerificationReducer_1.updateVerificationFormLocalData)(localData));
|
|
40
|
-
return (0, rxjs_1.from)(actions);
|
|
41
|
-
}));
|
|
42
|
-
exports.initializeIntlVerificationFormEpic = initializeIntlVerificationFormEpic;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { ZeniAPI } from '../../../../../zeniAPI';
|
|
4
|
-
import { RootState } from '../../../../../reducer';
|
|
5
|
-
import { openSnackbar } from '../../../../../entity/snackbar/snackbarReducer';
|
|
6
|
-
import { submitInternationalVerificationForm, updateVerificationFormSubmissionStatus } from '../internationalWireVerificationReducer';
|
|
7
|
-
import { updateInternationalWireOnboardingStatus } from '../../../../../entity/company/companyReducer';
|
|
8
|
-
export declare type ActionType = ReturnType<typeof submitInternationalVerificationForm> | ReturnType<typeof updateVerificationFormSubmissionStatus> | ReturnType<typeof updateInternationalWireOnboardingStatus> | ReturnType<typeof openSnackbar>;
|
|
9
|
-
export declare const submitIntlVerificationEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.submitIntlVerificationEpic = void 0;
|
|
4
|
-
const rxjs_1 = require("rxjs");
|
|
5
|
-
const operators_1 = require("rxjs/operators");
|
|
6
|
-
const responsePayload_1 = require("../../../../../responsePayload");
|
|
7
|
-
const snackbarReducer_1 = require("../../../../../entity/snackbar/snackbarReducer");
|
|
8
|
-
const internationalWireVerificationReducer_1 = require("../internationalWireVerificationReducer");
|
|
9
|
-
const companyReducer_1 = require("../../../../../entity/company/companyReducer");
|
|
10
|
-
const submitIntlVerificationEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(internationalWireVerificationReducer_1.submitInternationalVerificationForm.match), (0, operators_1.switchMap)((action) => {
|
|
11
|
-
const { internationalWireVerificationState } = state$.value;
|
|
12
|
-
const { companyId } = action.payload;
|
|
13
|
-
const localData = internationalWireVerificationState.verificationFormLocalData;
|
|
14
|
-
if (localData != null) {
|
|
15
|
-
return zeniAPI
|
|
16
|
-
.postAndGetJSON(`${zeniAPI.apiEndPoints.payMicroServiceBaseUrl}/1.0/international-wire/onboarding`, toIntlWireVerificationPayload(localData))
|
|
17
|
-
.pipe((0, operators_1.mergeMap)((response) => {
|
|
18
|
-
var _a;
|
|
19
|
-
const actions = [];
|
|
20
|
-
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
21
|
-
actions.push((0, internationalWireVerificationReducer_1.updateVerificationFormSubmissionStatus)({
|
|
22
|
-
fetchState: 'Completed',
|
|
23
|
-
error: undefined,
|
|
24
|
-
}));
|
|
25
|
-
actions.push((0, snackbarReducer_1.openSnackbar)({
|
|
26
|
-
messageSection: 'business_verification_submit',
|
|
27
|
-
messageText: 'success',
|
|
28
|
-
type: 'success',
|
|
29
|
-
}));
|
|
30
|
-
if (response.data != null) {
|
|
31
|
-
actions.push((0, companyReducer_1.updateInternationalWireOnboardingStatus)({
|
|
32
|
-
companyId: companyId,
|
|
33
|
-
status: (_a = response.data) === null || _a === void 0 ? void 0 : _a.international_wire_onboarding_status,
|
|
34
|
-
}));
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
actions.push((0, internationalWireVerificationReducer_1.updateVerificationFormSubmissionStatus)({
|
|
39
|
-
fetchState: 'Error',
|
|
40
|
-
error: response.status,
|
|
41
|
-
}));
|
|
42
|
-
actions.push((0, snackbarReducer_1.openSnackbar)({
|
|
43
|
-
messageSection: 'business_verification_submit',
|
|
44
|
-
messageText: 'failed',
|
|
45
|
-
type: 'error',
|
|
46
|
-
}));
|
|
47
|
-
}
|
|
48
|
-
return (0, rxjs_1.from)(actions);
|
|
49
|
-
}), (0, operators_1.catchError)((error) => {
|
|
50
|
-
return (0, rxjs_1.of)((0, internationalWireVerificationReducer_1.updateVerificationFormSubmissionStatus)({
|
|
51
|
-
fetchState: 'Error',
|
|
52
|
-
error: (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Submit international wire verification REST API call errored out' +
|
|
53
|
-
JSON.stringify(error)),
|
|
54
|
-
}));
|
|
55
|
-
}));
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
return (0, rxjs_1.from)([]);
|
|
59
|
-
}
|
|
60
|
-
}));
|
|
61
|
-
exports.submitIntlVerificationEpic = submitIntlVerificationEpic;
|
|
62
|
-
const toIntlWireVerificationPayload = (localData) => {
|
|
63
|
-
return {
|
|
64
|
-
is_applicant_declaration: true,
|
|
65
|
-
form_details: localData,
|
|
66
|
-
};
|
|
67
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { AllowedValueWithCode } from '../../../../commonStateTypes/allowedValue';
|
|
2
|
-
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
3
|
-
import { VerificationFormField } from './internationalWireVerificationState';
|
|
4
|
-
export interface FieldPayload {
|
|
5
|
-
label: string;
|
|
6
|
-
type: string;
|
|
7
|
-
field_hint_text?: string;
|
|
8
|
-
field_values?: {
|
|
9
|
-
code: string;
|
|
10
|
-
description: string;
|
|
11
|
-
}[];
|
|
12
|
-
is_multiple_values_allowed?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const toDynamicFormField: (key: string, payload: FieldPayload) => VerificationFormField;
|
|
15
|
-
export declare type IntlVerificationFormResponse = ZeniAPIResponse<IntlVerificationFormPayload>;
|
|
16
|
-
export interface IntlVerificationFormPayload {
|
|
17
|
-
labels: Record<string, FieldPayload>;
|
|
18
|
-
create_time: string;
|
|
19
|
-
update_time: string;
|
|
20
|
-
}
|
|
21
|
-
interface SubmitIntlVerificationFormPayload {
|
|
22
|
-
international_wire_onboarding_status: AllowedValueWithCode;
|
|
23
|
-
status_remarks: string | null;
|
|
24
|
-
}
|
|
25
|
-
export declare type SubmitIntlVerificationFormResponse = ZeniAPIResponse<SubmitIntlVerificationFormPayload>;
|
|
26
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toDynamicFormField = void 0;
|
|
4
|
-
const toDynamicFormField = (key, payload) => {
|
|
5
|
-
var _a, _b;
|
|
6
|
-
return ({
|
|
7
|
-
name: key,
|
|
8
|
-
label: payload.label,
|
|
9
|
-
placeholder: (_a = payload.field_hint_text) !== null && _a !== void 0 ? _a : '',
|
|
10
|
-
isMultipleValuesAllowed: (_b = payload.is_multiple_values_allowed) !== null && _b !== void 0 ? _b : false,
|
|
11
|
-
type: payload.type,
|
|
12
|
-
fieldValues: payload.field_values != null && payload.field_values.length > 0
|
|
13
|
-
? payload.field_values.map((fieldValue) => {
|
|
14
|
-
return {
|
|
15
|
-
code: fieldValue.code,
|
|
16
|
-
description: fieldValue.description,
|
|
17
|
-
};
|
|
18
|
-
})
|
|
19
|
-
: [],
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
exports.toDynamicFormField = toDynamicFormField;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { FieldPayload } from './internationalWireVerificationPayload';
|
|
2
|
-
import { VerificationFormLocalData, InternationalWireVerificationState } from './internationalWireVerificationState';
|
|
3
|
-
import { FetchState } from '../../../../commonStateTypes/common';
|
|
4
|
-
import { ZeniAPIStatus } from '../../../../responsePayload';
|
|
5
|
-
export declare const initialState: InternationalWireVerificationState;
|
|
6
|
-
export declare const fetchInternationalVerificationForm: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string], {
|
|
7
|
-
companyId: string;
|
|
8
|
-
}, string, never, never>, updateInternationalVerificationForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
9
|
-
internationalWireFormPayload: Record<string, FieldPayload>;
|
|
10
|
-
}, string>, updateVerificationFormFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
11
|
-
error?: ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
12
|
-
}, string>, updateVerificationFormLocalData: import("@reduxjs/toolkit").ActionCreatorWithPayload<VerificationFormLocalData, string>, submitInternationalVerificationForm: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string], {
|
|
13
|
-
companyId: string;
|
|
14
|
-
}, string, never, never>, updateVerificationFormSubmissionStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
15
|
-
fetchState: FetchState;
|
|
16
|
-
error?: ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
17
|
-
}, string>, initializeIntlVerificationForm: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, internationalWireFormPayload: Record<string, FieldPayload>], {
|
|
18
|
-
companyId: string;
|
|
19
|
-
internationalWireFormPayload: Record<string, FieldPayload>;
|
|
20
|
-
}, string, never, never>, clearInternationalVerificationView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
21
|
-
declare const _default: import("@reduxjs/toolkit").Reducer<InternationalWireVerificationState, import("@reduxjs/toolkit").AnyAction>;
|
|
22
|
-
export default _default;
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.clearInternationalVerificationView = exports.initializeIntlVerificationForm = exports.updateVerificationFormSubmissionStatus = exports.submitInternationalVerificationForm = exports.updateVerificationFormLocalData = exports.updateVerificationFormFailure = exports.updateInternationalVerificationForm = exports.fetchInternationalVerificationForm = exports.initialState = void 0;
|
|
5
|
-
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
-
const internationalWireVerificationPayload_1 = require("./internationalWireVerificationPayload");
|
|
7
|
-
exports.initialState = {
|
|
8
|
-
verificationFormFetchState: {
|
|
9
|
-
fetchState: 'Not-Started',
|
|
10
|
-
},
|
|
11
|
-
verificationFormFields: [],
|
|
12
|
-
verificationFormLocalData: {},
|
|
13
|
-
verificationFormSubmitState: {
|
|
14
|
-
fetchState: 'Not-Started',
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
const internationalWireVerification = (0, toolkit_1.createSlice)({
|
|
18
|
-
name: 'internationalWireVerification',
|
|
19
|
-
initialState: exports.initialState,
|
|
20
|
-
reducers: {
|
|
21
|
-
fetchInternationalVerificationForm: {
|
|
22
|
-
reducer(draft) {
|
|
23
|
-
draft.verificationFormFetchState = {
|
|
24
|
-
fetchState: 'In-Progress',
|
|
25
|
-
error: undefined,
|
|
26
|
-
};
|
|
27
|
-
},
|
|
28
|
-
prepare(companyId) {
|
|
29
|
-
return {
|
|
30
|
-
payload: {
|
|
31
|
-
companyId,
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
updateInternationalVerificationForm(draft, action) {
|
|
37
|
-
const { internationalWireFormPayload } = action.payload;
|
|
38
|
-
const verificationFormFields = [];
|
|
39
|
-
Object.keys(internationalWireFormPayload).forEach((key) => {
|
|
40
|
-
verificationFormFields.push((0, internationalWireVerificationPayload_1.toDynamicFormField)(key, internationalWireFormPayload[key]));
|
|
41
|
-
});
|
|
42
|
-
draft.verificationFormFields = verificationFormFields;
|
|
43
|
-
draft.verificationFormFetchState.fetchState = 'Completed';
|
|
44
|
-
},
|
|
45
|
-
updateVerificationFormFailure(draft, action) {
|
|
46
|
-
const { error } = action.payload;
|
|
47
|
-
draft.verificationFormFetchState.fetchState = 'Error';
|
|
48
|
-
draft.verificationFormFetchState.error = error;
|
|
49
|
-
},
|
|
50
|
-
updateVerificationFormLocalData(draft, action) {
|
|
51
|
-
draft.verificationFormLocalData = Object.assign({}, action.payload);
|
|
52
|
-
},
|
|
53
|
-
submitInternationalVerificationForm: {
|
|
54
|
-
reducer(draft) {
|
|
55
|
-
draft.verificationFormSubmitState.fetchState = 'In-Progress';
|
|
56
|
-
draft.verificationFormSubmitState.error = undefined;
|
|
57
|
-
},
|
|
58
|
-
prepare(companyId) {
|
|
59
|
-
return {
|
|
60
|
-
payload: { companyId },
|
|
61
|
-
};
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
updateVerificationFormSubmissionStatus(draft, action) {
|
|
65
|
-
const { fetchState, error } = action.payload;
|
|
66
|
-
draft.verificationFormSubmitState.fetchState = fetchState;
|
|
67
|
-
draft.verificationFormSubmitState.error = error;
|
|
68
|
-
},
|
|
69
|
-
initializeIntlVerificationForm: {
|
|
70
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
71
|
-
reducer(_draft) {
|
|
72
|
-
// do nothing
|
|
73
|
-
},
|
|
74
|
-
prepare(companyId, internationalWireFormPayload) {
|
|
75
|
-
return {
|
|
76
|
-
payload: {
|
|
77
|
-
companyId,
|
|
78
|
-
internationalWireFormPayload,
|
|
79
|
-
},
|
|
80
|
-
};
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
clearInternationalVerificationView(draft) {
|
|
84
|
-
Object.assign(draft, exports.initialState);
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
});
|
|
88
|
-
_a = internationalWireVerification.actions, exports.fetchInternationalVerificationForm = _a.fetchInternationalVerificationForm, exports.updateInternationalVerificationForm = _a.updateInternationalVerificationForm, exports.updateVerificationFormFailure = _a.updateVerificationFormFailure, exports.updateVerificationFormLocalData = _a.updateVerificationFormLocalData, exports.submitInternationalVerificationForm = _a.submitInternationalVerificationForm, exports.updateVerificationFormSubmissionStatus = _a.updateVerificationFormSubmissionStatus, exports.initializeIntlVerificationForm = _a.initializeIntlVerificationForm, exports.clearInternationalVerificationView = _a.clearInternationalVerificationView;
|
|
89
|
-
exports.default = internationalWireVerification.reducer;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ID, FetchStateAndError } from '../../../../commonStateTypes/common';
|
|
2
|
-
import { RootState } from '../../../../reducer';
|
|
3
|
-
import { SelectorView } from '../../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
4
|
-
import { VerificationFormField, VerificationFormLocalData } from './internationalWireVerificationState';
|
|
5
|
-
import { File } from '../../../../entity/file/fileState';
|
|
6
|
-
export interface InternationalWireVerificationView extends SelectorView {
|
|
7
|
-
verificationFormFetchState: FetchStateAndError;
|
|
8
|
-
verificationFormFields: VerificationFormField[];
|
|
9
|
-
verificationFormLocalData: VerificationFormLocalData;
|
|
10
|
-
verificationFormSubmitState: FetchStateAndError;
|
|
11
|
-
userFiles: File[];
|
|
12
|
-
deleteFileStatusById: Record<ID, FetchStateAndError | undefined>;
|
|
13
|
-
updateFileStatusById: Record<ID, FetchStateAndError | undefined>;
|
|
14
|
-
}
|
|
15
|
-
export declare const getIntlWireVerificationView: (state: RootState) => InternationalWireVerificationView;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getIntlWireVerificationView = void 0;
|
|
4
|
-
const fileSelector_1 = require("../../../../entity/file/fileSelector");
|
|
5
|
-
const fileViewSelector_1 = require("../../../fileView/fileViewSelector");
|
|
6
|
-
const getIntlWireVerificationView = (state) => {
|
|
7
|
-
const deleteFileStatusById = {};
|
|
8
|
-
const updateFileStatusById = {};
|
|
9
|
-
// field with type = file
|
|
10
|
-
const fileField = state.internationalWireVerificationState.verificationFormFields.find((field) => field.type === 'file');
|
|
11
|
-
let fileId;
|
|
12
|
-
if (fileField != null) {
|
|
13
|
-
fileId = state.internationalWireVerificationState.verificationFormLocalData[fileField.name];
|
|
14
|
-
}
|
|
15
|
-
if (fileId != null) {
|
|
16
|
-
deleteFileStatusById[fileId] = (0, fileViewSelector_1.getFileDeleteStatusById)(state, fileId);
|
|
17
|
-
updateFileStatusById[fileId] = (0, fileViewSelector_1.getFileUpdateNameStatusById)(state, fileId);
|
|
18
|
-
}
|
|
19
|
-
let userFiles = [];
|
|
20
|
-
if (fileId != null) {
|
|
21
|
-
userFiles = (0, fileSelector_1.getFilesByFileIds)(state.fileState, [fileId]);
|
|
22
|
-
}
|
|
23
|
-
const fetchState = state.internationalWireVerificationState.verificationFormFetchState
|
|
24
|
-
.fetchState;
|
|
25
|
-
return Object.assign(Object.assign({}, state.internationalWireVerificationState), { deleteFileStatusById,
|
|
26
|
-
updateFileStatusById,
|
|
27
|
-
userFiles,
|
|
28
|
-
fetchState });
|
|
29
|
-
};
|
|
30
|
-
exports.getIntlWireVerificationView = getIntlWireVerificationView;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { FetchStateAndError } from '../../../../commonStateTypes/common';
|
|
2
|
-
export interface InternationalWireVerificationState {
|
|
3
|
-
verificationFormFetchState: FetchStateAndError;
|
|
4
|
-
verificationFormFields: VerificationFormField[];
|
|
5
|
-
verificationFormLocalData: VerificationFormLocalData;
|
|
6
|
-
verificationFormSubmitState: FetchStateAndError;
|
|
7
|
-
}
|
|
8
|
-
export declare type VerificationFormLocalData = Record<string, string | string[]>;
|
|
9
|
-
export interface FieldValueType {
|
|
10
|
-
code: string;
|
|
11
|
-
description: string;
|
|
12
|
-
}
|
|
13
|
-
export interface VerificationFormField {
|
|
14
|
-
name: string;
|
|
15
|
-
label: string;
|
|
16
|
-
placeholder: string;
|
|
17
|
-
fieldValues: FieldValueType[];
|
|
18
|
-
isMultipleValuesAllowed: boolean;
|
|
19
|
-
type: string;
|
|
20
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { RootState } from '../../../../reducer';
|
|
4
|
-
import { ZeniAPI } from '../../../../zeniAPI';
|
|
5
|
-
import { updatePhysicalChargeCardAttemptSuccessOrFailure, updatePhysicalChargeCardAttempt } from './chargeCardDetailReducer';
|
|
6
|
-
import { updateAllUsers } from '../../../../entity/user/userReducer';
|
|
7
|
-
import { updateUserRoles } from '../../../../entity/userRole/userRoleReducer';
|
|
8
|
-
import { updateChargeCard } from '../../../../entity/chargeCard/chargeCardReducer';
|
|
9
|
-
import { updateAddress, updateAddresses } from '../../../../entity/address/addressReducer';
|
|
10
|
-
export declare type ActionType = ReturnType<typeof updatePhysicalChargeCardAttempt> | ReturnType<typeof updatePhysicalChargeCardAttemptSuccessOrFailure> | ReturnType<typeof updateAllUsers> | ReturnType<typeof updateUserRoles> | ReturnType<typeof updateAddress> | ReturnType<typeof updateAddresses> | ReturnType<typeof updateChargeCard>;
|
|
11
|
-
export declare const updatePhysicalChargeCardAttemptEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
package/lib/view/spendManagement/chargeCards/chargeCardDetail/updatePhysicalChargeCardAttemptEpic.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updatePhysicalChargeCardAttemptEpic = void 0;
|
|
4
|
-
const rxjs_1 = require("rxjs");
|
|
5
|
-
const operators_1 = require("rxjs/operators");
|
|
6
|
-
const responsePayload_1 = require("../../../../responsePayload");
|
|
7
|
-
const chargeCardDetailReducer_1 = require("./chargeCardDetailReducer");
|
|
8
|
-
const userReducer_1 = require("../../../../entity/user/userReducer");
|
|
9
|
-
const userRoleReducer_1 = require("../../../../entity/userRole/userRoleReducer");
|
|
10
|
-
const chargeCardReducer_1 = require("../../../../entity/chargeCard/chargeCardReducer");
|
|
11
|
-
const updatePhysicalChargeCardAttemptEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(chargeCardDetailReducer_1.updatePhysicalChargeCardAttempt.match), (0, operators_1.switchMap)((action) => {
|
|
12
|
-
const { chargeCardId, statusCode } = action.payload;
|
|
13
|
-
const payload = {
|
|
14
|
-
status_code: statusCode,
|
|
15
|
-
is_card_activation_attempted: true,
|
|
16
|
-
};
|
|
17
|
-
return zeniAPI
|
|
18
|
-
.putAndGetJSON(`${zeniAPI.apiEndPoints.cardMicroServiceBaseUrl}/1.0/cards/${chargeCardId}`, payload)
|
|
19
|
-
.pipe((0, operators_1.mergeMap)((response) => {
|
|
20
|
-
if ((0, responsePayload_1.isSuccessStatus)(response) && response.data != null) {
|
|
21
|
-
return (0, rxjs_1.of)((0, chargeCardReducer_1.updateChargeCard)(response.data.card), (0, userReducer_1.updateAllUsers)({ users: response.data.users }), (0, userRoleReducer_1.updateUserRoles)(response.data.user_roles), (0, chargeCardDetailReducer_1.updatePhysicalChargeCardAttemptSuccessOrFailure)({
|
|
22
|
-
chargeCardId,
|
|
23
|
-
fetchState: 'Completed',
|
|
24
|
-
}));
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
return (0, rxjs_1.of)((0, chargeCardDetailReducer_1.updatePhysicalChargeCardAttemptSuccessOrFailure)({
|
|
28
|
-
chargeCardId,
|
|
29
|
-
fetchState: 'Error',
|
|
30
|
-
error: response.status,
|
|
31
|
-
}));
|
|
32
|
-
}
|
|
33
|
-
}), (0, operators_1.catchError)((error) => {
|
|
34
|
-
return (0, rxjs_1.of)((0, chargeCardDetailReducer_1.updatePhysicalChargeCardAttemptSuccessOrFailure)({
|
|
35
|
-
chargeCardId,
|
|
36
|
-
fetchState: 'Error',
|
|
37
|
-
error: (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Update physical card attempt API call errored out' +
|
|
38
|
-
JSON.stringify(error)),
|
|
39
|
-
}));
|
|
40
|
-
}));
|
|
41
|
-
}));
|
|
42
|
-
exports.updatePhysicalChargeCardAttemptEpic = updatePhysicalChargeCardAttemptEpic;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { RootState } from '../../../../reducer';
|
|
4
|
-
import { fetchUserListByType } from '../../../userListView/userListViewReducer';
|
|
5
|
-
import { fetchChargeCardConfig } from '../chargeCardConfig/chargeCardConfigReducer';
|
|
6
|
-
import { fetchIssueCardPage } from './issueChargeCardReducer';
|
|
7
|
-
import { fetchCreditAccount } from '../chargeCardList/chargeCardListReducer';
|
|
8
|
-
export declare type ActionType = ReturnType<typeof fetchIssueCardPage> | ReturnType<typeof fetchChargeCardConfig> | ReturnType<typeof fetchUserListByType> | ReturnType<typeof fetchCreditAccount>;
|
|
9
|
-
export declare const fetchIssueCardPageEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fetchIssueCardPageEpic = void 0;
|
|
4
|
-
const rxjs_1 = require("rxjs");
|
|
5
|
-
const operators_1 = require("rxjs/operators");
|
|
6
|
-
const userListViewReducer_1 = require("../../../userListView/userListViewReducer");
|
|
7
|
-
const chargeCardConfigReducer_1 = require("../chargeCardConfig/chargeCardConfigReducer");
|
|
8
|
-
const issueChargeCardReducer_1 = require("./issueChargeCardReducer");
|
|
9
|
-
const chargeCardListReducer_1 = require("../chargeCardList/chargeCardListReducer");
|
|
10
|
-
const fetchIssueCardPageEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(issueChargeCardReducer_1.fetchIssueCardPage.match), (0, operators_1.mergeMap)((action) => {
|
|
11
|
-
const { cacheOverride } = action.payload;
|
|
12
|
-
const issueCardPageAction = [];
|
|
13
|
-
const state = state$.value;
|
|
14
|
-
if (cacheOverride === true) {
|
|
15
|
-
issueCardPageAction.push((0, chargeCardConfigReducer_1.fetchChargeCardConfig)());
|
|
16
|
-
issueCardPageAction.push((0, chargeCardListReducer_1.fetchCreditAccount)());
|
|
17
|
-
issueCardPageAction.push((0, userListViewReducer_1.fetchUserListByType)('cardHolderCandidate', true));
|
|
18
|
-
issueCardPageAction.push((0, userListViewReducer_1.fetchUserListByType)('cardAdmin', true));
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
const chargeCardConfig = state.chargeCardConfigState;
|
|
22
|
-
if (chargeCardConfig.fetchState !== 'In-Progress' &&
|
|
23
|
-
chargeCardConfig.hasValidState() === false) {
|
|
24
|
-
issueCardPageAction.push((0, chargeCardConfigReducer_1.fetchChargeCardConfig)());
|
|
25
|
-
}
|
|
26
|
-
const chargeCardList = state.chargeCardListState;
|
|
27
|
-
if (chargeCardList.creditAccount.fetchState !== 'Completed' &&
|
|
28
|
-
chargeCardList.creditAccount.fetchState !== 'In-Progress') {
|
|
29
|
-
issueCardPageAction.push((0, chargeCardListReducer_1.fetchCreditAccount)());
|
|
30
|
-
}
|
|
31
|
-
const userList = state.userListViewState.userListByType.cardHolderCandidate;
|
|
32
|
-
if (userList.fetchState !== 'In-Progress' &&
|
|
33
|
-
userList.hasValidState() === false) {
|
|
34
|
-
issueCardPageAction.push((0, userListViewReducer_1.fetchUserListByType)('cardHolderCandidate', false));
|
|
35
|
-
}
|
|
36
|
-
const userAdminList = state.userListViewState.userListByType.cardAdmin;
|
|
37
|
-
if (userAdminList.fetchState !== 'In-Progress' &&
|
|
38
|
-
userAdminList.hasValidState() === false) {
|
|
39
|
-
issueCardPageAction.push((0, userListViewReducer_1.fetchUserListByType)('cardAdmin', false));
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return (0, rxjs_1.concat)((0, rxjs_1.from)(issueCardPageAction));
|
|
43
|
-
}));
|
|
44
|
-
exports.fetchIssueCardPageEpic = fetchIssueCardPageEpic;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ZeniAPIStatus } from '../../../../responsePayload';
|
|
2
|
-
import { FetchState, ID } from '../../../../commonStateTypes/common';
|
|
3
|
-
import { IssueChargeCardState, IssueChargeCardLocalData } from './issueChargeCardState';
|
|
4
|
-
export declare const initialState: IssueChargeCardState;
|
|
5
|
-
export declare const issueChargeCards: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[], {}, string, never, never>, updateChargeCardsLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<IssueChargeCardLocalData[], string>, issueChargeCardSuccessOrFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
6
|
-
fetchState: FetchState;
|
|
7
|
-
error?: ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
8
|
-
}, string>, resetIssueChargeCardForm: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateCustomAddressId: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
9
|
-
addressId: ID;
|
|
10
|
-
cardLineId: ID;
|
|
11
|
-
}, string>, fetchIssueCardPage: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride?: any], {
|
|
12
|
-
cacheOverride: any;
|
|
13
|
-
}, string, never, never>, clearIssueChargeCard: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
14
|
-
declare const _default: import("@reduxjs/toolkit").Reducer<IssueChargeCardState, import("@reduxjs/toolkit").AnyAction>;
|
|
15
|
-
export default _default;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.clearIssueChargeCard = exports.fetchIssueCardPage = exports.updateCustomAddressId = exports.resetIssueChargeCardForm = exports.issueChargeCardSuccessOrFailure = exports.updateChargeCardsLocalStore = exports.issueChargeCards = exports.initialState = void 0;
|
|
5
|
-
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
-
const issueChargeCardState_1 = require("./issueChargeCardState");
|
|
7
|
-
exports.initialState = {
|
|
8
|
-
localData: issueChargeCardState_1.initialIssueChargeCardLocalData,
|
|
9
|
-
fetchState: 'Not-Started',
|
|
10
|
-
error: undefined,
|
|
11
|
-
saveStatus: {
|
|
12
|
-
fetchState: 'Not-Started',
|
|
13
|
-
error: undefined,
|
|
14
|
-
},
|
|
15
|
-
hasValidState() {
|
|
16
|
-
return this.fetchState == 'Completed';
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
const issueChargeCard = (0, toolkit_1.createSlice)({
|
|
20
|
-
name: 'issueChargeCard',
|
|
21
|
-
initialState: exports.initialState,
|
|
22
|
-
reducers: {
|
|
23
|
-
fetchIssueCardPage: {
|
|
24
|
-
reducer() {
|
|
25
|
-
//do nothing
|
|
26
|
-
},
|
|
27
|
-
prepare(cacheOverride = false) {
|
|
28
|
-
return {
|
|
29
|
-
payload: { cacheOverride },
|
|
30
|
-
};
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
issueChargeCards: {
|
|
34
|
-
prepare() {
|
|
35
|
-
return { payload: {} };
|
|
36
|
-
},
|
|
37
|
-
reducer(draft) {
|
|
38
|
-
draft.saveStatus.fetchState = 'In-Progress';
|
|
39
|
-
draft.saveStatus.error = undefined;
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
updateChargeCardsLocalStore(draft, action) {
|
|
43
|
-
draft.localData = action.payload;
|
|
44
|
-
},
|
|
45
|
-
resetIssueChargeCardForm(draft) {
|
|
46
|
-
draft.localData = [...exports.initialState.localData];
|
|
47
|
-
},
|
|
48
|
-
issueChargeCardSuccessOrFailure(draft, action) {
|
|
49
|
-
draft.saveStatus.fetchState = action.payload.fetchState;
|
|
50
|
-
draft.saveStatus.error = action.payload.error;
|
|
51
|
-
},
|
|
52
|
-
updateCustomAddressId(draft, action) {
|
|
53
|
-
const { addressId, cardLineId } = action.payload;
|
|
54
|
-
const targetIndex = draft.localData.findIndex((lineItem) => lineItem.lineId === cardLineId);
|
|
55
|
-
if (targetIndex > -1) {
|
|
56
|
-
draft.localData[targetIndex] = Object.assign(Object.assign({}, draft.localData[targetIndex]), { physicalCard: Object.assign(Object.assign({}, draft.localData[targetIndex].physicalCard), { addressId: addressId }) });
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
clearIssueChargeCard(draft) {
|
|
60
|
-
Object.assign(draft, exports.initialState);
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
});
|
|
64
|
-
_a = issueChargeCard.actions, exports.issueChargeCards = _a.issueChargeCards, exports.updateChargeCardsLocalStore = _a.updateChargeCardsLocalStore, exports.issueChargeCardSuccessOrFailure = _a.issueChargeCardSuccessOrFailure, exports.resetIssueChargeCardForm = _a.resetIssueChargeCardForm, exports.updateCustomAddressId = _a.updateCustomAddressId, exports.fetchIssueCardPage = _a.fetchIssueCardPage, exports.clearIssueChargeCard = _a.clearIssueChargeCard;
|
|
65
|
-
exports.default = issueChargeCard.reducer;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { RootState } from '../../../../reducer';
|
|
2
|
-
import { FetchStateAndError, ID } from '../../../../commonStateTypes/common';
|
|
3
|
-
import { SelectorView } from '../../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
4
|
-
import { Address } from '../../../../entity/address/addressState';
|
|
5
|
-
import { Person } from '../../../people/peopleSelectorTypes';
|
|
6
|
-
import { Class } from '../../../../entity/class/classState';
|
|
7
|
-
import { IssueChargeCardLocalData } from './issueChargeCardState';
|
|
8
|
-
import { ChargeCardConfigState } from '../chargeCardConfig/chargeCardConfigState';
|
|
9
|
-
import { CreditAccount } from '../chargeCardList/chargeCardList';
|
|
10
|
-
export interface IssueChargeCardSelectorView extends SelectorView {
|
|
11
|
-
localData: IssueChargeCardLocalData[];
|
|
12
|
-
issueCardStatus: FetchStateAndError;
|
|
13
|
-
userList: Person[];
|
|
14
|
-
allAccountingClasses: Class[];
|
|
15
|
-
chargeCardConfig: ChargeCardConfigState;
|
|
16
|
-
creditAccount: CreditAccount;
|
|
17
|
-
customAddress: Record<ID, Address>;
|
|
18
|
-
customAddressStatus: Record<ID, FetchStateAndError>;
|
|
19
|
-
userAddress: Record<ID, Address>;
|
|
20
|
-
companyAddress?: Address;
|
|
21
|
-
}
|
|
22
|
-
export declare const getIssueChargeCardView: (state: RootState) => IssueChargeCardSelectorView;
|