@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
|
@@ -60,20 +60,17 @@ const scheduleDetailView = (0, toolkit_1.createSlice)({
|
|
|
60
60
|
name: 'scheduleDetailView',
|
|
61
61
|
initialState: exports.initialState,
|
|
62
62
|
reducers: {
|
|
63
|
-
createNewSchedules:
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
reducer() {
|
|
70
|
-
// Do nothing
|
|
71
|
-
},
|
|
63
|
+
createNewSchedules: (
|
|
64
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
65
|
+
_draft,
|
|
66
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
67
|
+
_action) => {
|
|
68
|
+
// nothing to do here
|
|
72
69
|
},
|
|
73
70
|
fetchScheduleDetailsPage: {
|
|
74
|
-
prepare(scheduleType, selectedJeScheduleDetailId
|
|
71
|
+
prepare(scheduleType, selectedJeScheduleDetailId) {
|
|
75
72
|
return {
|
|
76
|
-
payload: { scheduleType, selectedJeScheduleDetailId
|
|
73
|
+
payload: { scheduleType, selectedJeScheduleDetailId },
|
|
77
74
|
};
|
|
78
75
|
},
|
|
79
76
|
reducer() {
|
|
@@ -81,9 +78,9 @@ const scheduleDetailView = (0, toolkit_1.createSlice)({
|
|
|
81
78
|
},
|
|
82
79
|
},
|
|
83
80
|
fetchScheduleDetails: {
|
|
84
|
-
prepare(scheduleType, selectedJeScheduleDetailId
|
|
81
|
+
prepare(scheduleType, selectedJeScheduleDetailId) {
|
|
85
82
|
return {
|
|
86
|
-
payload: { scheduleType, selectedJeScheduleDetailId
|
|
83
|
+
payload: { scheduleType, selectedJeScheduleDetailId },
|
|
87
84
|
};
|
|
88
85
|
},
|
|
89
86
|
reducer(draft, action) {
|
|
@@ -111,13 +108,9 @@ const scheduleDetailView = (0, toolkit_1.createSlice)({
|
|
|
111
108
|
},
|
|
112
109
|
// Fire this action to save the latest schedule data in local store in ZENI Platform.
|
|
113
110
|
saveScheduleDetails: {
|
|
114
|
-
prepare(scheduleType, selectedJeScheduleDetailId
|
|
111
|
+
prepare(scheduleType, selectedJeScheduleDetailId) {
|
|
115
112
|
return {
|
|
116
|
-
payload: {
|
|
117
|
-
scheduleType,
|
|
118
|
-
selectedJeScheduleDetailId,
|
|
119
|
-
isUpdatingVendorCategoryOrClass,
|
|
120
|
-
},
|
|
113
|
+
payload: { scheduleType, selectedJeScheduleDetailId },
|
|
121
114
|
};
|
|
122
115
|
},
|
|
123
116
|
reducer(draft) {
|
|
@@ -32,4 +32,3 @@ export interface ScheduleDetailsView extends SelectorView {
|
|
|
32
32
|
selectedJELinkRowIndex?: number;
|
|
33
33
|
}
|
|
34
34
|
export declare const getScheduleDetailsView: (state: RootState, scheduleType: ScheduleTypes) => ScheduleDetailsView;
|
|
35
|
-
export declare const filterNestedAccountHierarchyById: (accountList: NestedAccountHierarchyForReport[], targetIds: string[]) => NestedAccountHierarchyForReport[];
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.getScheduleDetailsView = void 0;
|
|
7
7
|
const omit_1 = __importDefault(require("lodash/omit"));
|
|
8
8
|
const jeSchedulesSelector_1 = require("../../../entity/jeSchedules/jeSchedulesSelector");
|
|
9
9
|
const accountListSelector_1 = require("../../accountList/accountListSelector");
|
|
@@ -62,7 +62,7 @@ const getScheduleDetailsView = (state, scheduleType) => {
|
|
|
62
62
|
const accountListNestedAccountHierarchy = (0, accountListSelector_1.getNestedAccountListHierarchy)(accountListState, accountTypes.accountListKey).filter((account) => account.accountId[0] != null &&
|
|
63
63
|
scheduleDetailAccountIds.includes(account.accountId[0]));
|
|
64
64
|
const depAccountListNestedAccountHierarchy = (0, accountListSelector_1.getNestedAccountListHierarchy)(accountListState, accountTypes.accountListKey);
|
|
65
|
-
const filteredDepAccountListNestedAccountHierarchy =
|
|
65
|
+
const filteredDepAccountListNestedAccountHierarchy = filterNestedAccountHierarchyById(depAccountListNestedAccountHierarchy, filteredDepAccounts.map((account) => account.accountId));
|
|
66
66
|
const classListNestedAccountHierarchy = (0, classListSelector_1.getNestedClassListHierarchy)(classListState);
|
|
67
67
|
const selectedJeScheduleDetailId = jeScheduleTransactionState === null || jeScheduleTransactionState === void 0 ? void 0 : jeScheduleTransactionState.jeScheduleId;
|
|
68
68
|
const scheduleDetailsLocalData = Object.assign({}, scheduleDetailReducer_1.initialScheduleDetailsLocalData);
|
|
@@ -108,7 +108,7 @@ const filterNestedAccountHierarchyById = (accountList, targetIds) => {
|
|
|
108
108
|
for (const account of accountList) {
|
|
109
109
|
const presentInTargetIds = targetIds.includes(account.accountId[0]);
|
|
110
110
|
// Recursively filter the children
|
|
111
|
-
const filteredChildren =
|
|
111
|
+
const filteredChildren = filterNestedAccountHierarchyById(account.children, targetIds);
|
|
112
112
|
// Include the current account if:
|
|
113
113
|
// - It matches the targetIds, OR
|
|
114
114
|
// - It has children that match targetIds
|
|
@@ -122,4 +122,3 @@ const filterNestedAccountHierarchyById = (accountList, targetIds) => {
|
|
|
122
122
|
}
|
|
123
123
|
return result;
|
|
124
124
|
};
|
|
125
|
-
exports.filterNestedAccountHierarchyById = filterNestedAccountHierarchyById;
|
|
@@ -4,7 +4,6 @@ import { SortOrder } from '../../../commonStateTypes/selectorTypes/sortOrderType
|
|
|
4
4
|
import { ScheduleDaysOfMonth } from '../../../commonStateTypes/timePeriod';
|
|
5
5
|
import { JEScheduleTransactionKey, ScheduleJournalEntryStatusCodeType, ScheduleTypes } from '../../../entity/jeSchedules/jeSchedulesTypes';
|
|
6
6
|
import { TransactionID } from '../../../entity/transaction/stateTypes/transaction';
|
|
7
|
-
import { VendorBase } from '../../../entity/vendor/vendorState';
|
|
8
7
|
import { ZeniDate } from '../../../zeniDayJS';
|
|
9
8
|
import { ScheduleDetailSortKey } from './scheduleDetailTypes';
|
|
10
9
|
export declare type JELinkType = 'recommended' | 'linked' | 'unknown' | 'qbourl';
|
|
@@ -31,7 +30,6 @@ export interface JEScheduleDetailsLocalData {
|
|
|
31
30
|
export interface ScheduleDetailsLocalData {
|
|
32
31
|
scheduleType: ScheduleTypes;
|
|
33
32
|
jeScheduleDetails: JEScheduleDetailsLocalData[];
|
|
34
|
-
selectedVendor?: VendorBase;
|
|
35
33
|
selectedDate?: ZeniDate;
|
|
36
34
|
selectedMonths?: number;
|
|
37
35
|
selectedAccount?: ID;
|
|
@@ -7,7 +7,7 @@ export declare const getScheduleListKey: (selectedCategory: ID, selectedTimefram
|
|
|
7
7
|
export declare type ScheduleListKey = ReturnType<typeof getScheduleListKey>;
|
|
8
8
|
export declare const toScheduleSubTabType: (v: string) => "all" | "new" | "completed" | "ongoing";
|
|
9
9
|
export declare type ScheduleSubTabType = ReturnType<typeof toScheduleSubTabType>;
|
|
10
|
-
declare const toScheduleSortKeyType: (v: string) => "status" | "user" | "months" | "amount" | "vendor" | "class" | "balanceAsOfToday" | "
|
|
10
|
+
declare const toScheduleSortKeyType: (v: string) => "status" | "user" | "months" | "amount" | "vendor" | "class" | "balanceAsOfToday" | "createTime" | "memo" | "transactionDate" | "transactionType" | "accruedExpenseCategory" | "scheduleCategory" | "expenseCategory" | "accumulatedDepreciationCategory" | "startMonth" | "endMonth" | "assetId";
|
|
11
11
|
export declare type ScheduleListSortKey = ReturnType<typeof toScheduleSortKeyType>;
|
|
12
12
|
export interface DownloadJEScheduleTabOptions {
|
|
13
13
|
timezone: string;
|
|
@@ -18,7 +18,7 @@ export declare const saveNotificationSettingsEpic: (actions$: ActionsObservable<
|
|
|
18
18
|
type: string;
|
|
19
19
|
} | {
|
|
20
20
|
payload: {
|
|
21
|
-
messageSection: "bill_pay_setup" | "reimbursement_setup" | "charge_card_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "
|
|
21
|
+
messageSection: "bill_pay_setup" | "reimbursement_setup" | "charge_card_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "create_schedule" | "save_schedule" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation";
|
|
22
22
|
messageText: "failed" | "success" | "notification";
|
|
23
23
|
type: import("../../..").SnackbarMessageType;
|
|
24
24
|
showStatusIcon?: boolean | undefined;
|
|
@@ -19,7 +19,6 @@ const formatZeniDateFY_1 = require("../../../commonStateTypes/fiscalYearHelpers/
|
|
|
19
19
|
const userSelector_1 = require("../../../entity/user/userSelector");
|
|
20
20
|
const addressViewSelector_1 = require("../../addressView/addressViewSelector");
|
|
21
21
|
const addressSelector_1 = require("../../../entity/address/addressSelector");
|
|
22
|
-
const toAddressViewLocalData_1 = require("../../addressView/toAddressViewLocalData");
|
|
23
22
|
const updateMyProfileEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(settingsViewReducer_1.updateMyProfile.match), (0, operators_1.switchMap)((action) => {
|
|
24
23
|
var _a;
|
|
25
24
|
const userId = (_a = state$.value.tenantState.loggedInUser) === null || _a === void 0 ? void 0 : _a.userId;
|
|
@@ -80,9 +79,8 @@ const toMyProfileUpdatePayload = (payload, user, userAddress) => {
|
|
|
80
79
|
returnValue = Object.assign(Object.assign({}, returnValue), { phone, phone_verification: { otp_challenge: otpChallenge } });
|
|
81
80
|
}
|
|
82
81
|
return origin === 'CardUserOnboarding'
|
|
83
|
-
? Object.assign(Object.assign({}, returnValue), { is_card_issue_fulfilment_request: phone != null &&
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
: undefined }) : returnValue;
|
|
82
|
+
? Object.assign(Object.assign({}, returnValue), { is_card_issue_fulfilment_request: phone != null &&
|
|
83
|
+
otpChallenge != null &&
|
|
84
|
+
birthday != null &&
|
|
85
|
+
address != null }) : returnValue;
|
|
88
86
|
};
|
|
@@ -2,7 +2,6 @@ import { Amount, Currency } from '../../../../commonStateTypes/amount';
|
|
|
2
2
|
import { FetchedState, ID } from '../../../../commonStateTypes/common';
|
|
3
3
|
import { AccountBase } from '../../../../entity/account/accountState';
|
|
4
4
|
import { ClassBase } from '../../../../entity/class/classState';
|
|
5
|
-
import { Country } from '../../../countryList/countryListState';
|
|
6
5
|
export declare const getBillPayConfigKey: (method: string, subMethod: string) => string;
|
|
7
6
|
declare type BillPayConfigKey = ReturnType<typeof getBillPayConfigKey>;
|
|
8
7
|
export declare const getBillPayConfigMethodKey: (method: BillPaymentConfigCodeType, subMethod: BillPaymentSubConfigCodeKeyType, accType?: "depositAccount" | "paymentAccount" | undefined, internationalMethod?: "usdToLocalCurrency" | "usdToUsd" | undefined, internationalSubMethod?: "swiftOur" | "swiftSha" | undefined) => string;
|
|
@@ -28,6 +27,10 @@ export interface VendorCurrency extends Currency {
|
|
|
28
27
|
currencyName: string;
|
|
29
28
|
countryCode: string;
|
|
30
29
|
}
|
|
30
|
+
export interface Country {
|
|
31
|
+
countryCode: string;
|
|
32
|
+
countryName: string;
|
|
33
|
+
}
|
|
31
34
|
export interface BillPayConfig {
|
|
32
35
|
minPeriod: ConfigPeriod;
|
|
33
36
|
maxPeriod: ConfigPeriod;
|
|
@@ -26,7 +26,6 @@ import { AccountBase, RecommendedAccountBase } from '../../../../entity/account/
|
|
|
26
26
|
import { ClassBase, RecommendedClassBase } from '../../../../entity/class/classState';
|
|
27
27
|
import { RecurringBillState } from '../../../../entity/billPay/recurringBills/recurringBillsState';
|
|
28
28
|
import { FundingAccount } from '../../commonSetup/setupViewSelector';
|
|
29
|
-
import { AllowedValueWithCode } from '../../../../commonStateTypes/allowedValue';
|
|
30
29
|
export declare type PaymentToOption = {
|
|
31
30
|
id: ID;
|
|
32
31
|
type: PaymentModeType;
|
|
@@ -108,7 +107,6 @@ export interface EditBillDetailSelectorView extends SelectorView {
|
|
|
108
107
|
recurringConfig?: RecurringBillConfigLocalData;
|
|
109
108
|
recurringBillInstances?: RecurringBillInstance[];
|
|
110
109
|
isBillMarkedForRetry?: boolean;
|
|
111
|
-
internationalWireOnboardingStatus?: AllowedValueWithCode;
|
|
112
110
|
}
|
|
113
111
|
export interface EditBillInitialDetails {
|
|
114
112
|
vendor?: Vendor;
|
|
@@ -315,8 +315,6 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, isZeniAc
|
|
|
315
315
|
const classHierarchyList = (0, classListSelector_1.getNestedClassListHierarchy)(classListState);
|
|
316
316
|
const duplicateBills = (0, billPayReviewSelector_1.getDuplicateBills)(state, billId);
|
|
317
317
|
const isProcessing = (0, helpers_1.isBulkProcessing)((_1 = transaction === null || transaction === void 0 ? void 0 : transaction.bulkProcessingDetail) === null || _1 === void 0 ? void 0 : _1.type);
|
|
318
|
-
const companyView = (0, getCompanyView_1.getCompanyView)(state, companyId !== null && companyId !== void 0 ? companyId : '', []);
|
|
319
|
-
const internationalWireOnboardingStatus = companyView === null || companyView === void 0 ? void 0 : companyView.company.company.companyBillPayInfo.internationalWireOnboardingStatus;
|
|
320
318
|
return {
|
|
321
319
|
showVendorGptRecommendationText,
|
|
322
320
|
recommendedVendor,
|
|
@@ -366,7 +364,6 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, isZeniAc
|
|
|
366
364
|
recurringConfig,
|
|
367
365
|
isProcessing,
|
|
368
366
|
isBillMarkedForRetry,
|
|
369
|
-
internationalWireOnboardingStatus,
|
|
370
367
|
};
|
|
371
368
|
};
|
|
372
369
|
exports.getEditBillDetail = getEditBillDetail;
|
|
@@ -34,7 +34,7 @@ const parseInvoiceToBillEpic = (actions$, state$) => actions$.pipe((0, operators
|
|
|
34
34
|
const state = state$.value;
|
|
35
35
|
const showSkipAutofill = state.editBillDetailViewState.newBillState.showSkipAutofill;
|
|
36
36
|
if (!showSkipAutofill) {
|
|
37
|
-
const file = (0, attachmentPayload_1.
|
|
37
|
+
const file = (0, attachmentPayload_1.mapFiletoAttachment)(invoiceProcessingPayload.files[0]);
|
|
38
38
|
return (0, rxjs_1.of)((0, editBillViewReducer_1.saveBillUpdatesToLocalStore)({
|
|
39
39
|
billDetailLocalData: Object.assign(Object.assign({}, editBillViewState_1.initialBillDetail.billDetailLocalData), { file: file }),
|
|
40
40
|
}), (0, editBillViewReducer_1.updateAddBillAutoFields)(editBillViewState_1.initialBillDetail.addBillAutoFields), (0, editBillViewReducer_1.updateBillUploadFetchState)({
|
|
@@ -98,7 +98,7 @@ const parseInvoiceToBillEpic = (actions$, state$) => actions$.pipe((0, operators
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
const file = (0, attachmentPayload_1.
|
|
101
|
+
const file = (0, attachmentPayload_1.mapFiletoAttachment)(invoiceProcessingPayload.files[0]);
|
|
102
102
|
const finalBill = Object.assign(Object.assign({}, (0, exports.toBillDetailLocalData)(state, showVendorGptRecommendationText, invoiceProcessingPayload.bills[0], finalVendor, recommendedVendorId)), { file: file });
|
|
103
103
|
const addBillAutoFields = (0, exports.getAutoFieldsData)(finalBill, isVendorWithNewCurrency, vendorNameFromInvoice, currencyInInvoice, vendorCurrency);
|
|
104
104
|
if (finalVendor != null) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SelectorView } from '../../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
2
2
|
import { RootState } from '../../../../reducer';
|
|
3
|
-
import { Country } from '
|
|
4
|
-
import { VendorCurrency } from '../billPayConfig/billPayConfigState';
|
|
3
|
+
import { Country, VendorCurrency } from '../billPayConfig/billPayConfigState';
|
|
5
4
|
import { CreateInternationalWireDetails, DynamicFormField, SupportedAccountType } from './internationalWire';
|
|
6
5
|
export interface InternationalWireSelectorView extends SelectorView {
|
|
7
6
|
dynamicForm: DynamicFormField[];
|
package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer.d.ts
CHANGED
|
@@ -8,8 +8,6 @@ export declare const initializeCardUserOnboardingLocalData: import("@reduxjs/too
|
|
|
8
8
|
localData: CardUserOnboardingLocalData;
|
|
9
9
|
}, string>, sendOtpCardUserOnboarding: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, sendOtpCardUserOnboardingSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
10
10
|
otpChallenge: string;
|
|
11
|
-
}, string>, sendOtpCardUserOnboardingFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, resendOtpCardUserOnboarding: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, verifyOtpCardUserOnboarding: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, verifyOtpCardUserOnboardingSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, verifyOtpCardUserOnboardingFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, saveCardOnboardingUserDetails: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, startActivationWait: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, completeActivationWait: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setFirstViewAfterActivation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setFirstViewCompleteAfterActivation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>,
|
|
12
|
-
cardId: ID;
|
|
13
|
-
}, string>, clearCardUserOnboarding: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
11
|
+
}, string>, sendOtpCardUserOnboardingFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, resendOtpCardUserOnboarding: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, verifyOtpCardUserOnboarding: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, verifyOtpCardUserOnboardingSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, verifyOtpCardUserOnboardingFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, saveCardOnboardingUserDetails: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, startActivationWait: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, completeActivationWait: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setFirstViewAfterActivation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setFirstViewCompleteAfterActivation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, clearCardUserOnboarding: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
14
12
|
declare const _default: import("@reduxjs/toolkit").Reducer<CardUserOnboardingState, import("@reduxjs/toolkit").AnyAction>;
|
|
15
13
|
export default _default;
|
package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.clearCardUserOnboarding = exports.
|
|
4
|
+
exports.clearCardUserOnboarding = exports.setFirstViewCompleteAfterActivation = exports.setFirstViewAfterActivation = exports.completeActivationWait = exports.startActivationWait = exports.saveCardOnboardingUserDetails = exports.verifyOtpCardUserOnboardingFailure = exports.verifyOtpCardUserOnboardingSuccess = exports.verifyOtpCardUserOnboarding = exports.resendOtpCardUserOnboarding = exports.sendOtpCardUserOnboardingFailure = exports.sendOtpCardUserOnboardingSuccess = exports.sendOtpCardUserOnboarding = exports.updateCardUserOnboardingLocalData = exports.initializeCardUserOnboardingLocalData = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
exports.initialState = {
|
|
7
7
|
cardUserOnboardingLocalData: undefined,
|
|
@@ -68,10 +68,6 @@ const cardUserOnboarding = (0, toolkit_1.createSlice)({
|
|
|
68
68
|
draft.verifyOtpStatus.fetchState = 'Error';
|
|
69
69
|
draft.verifyOtpStatus.error = action.payload;
|
|
70
70
|
},
|
|
71
|
-
setCurrentDisplayedCardId(draft, action) {
|
|
72
|
-
const { cardId } = action.payload;
|
|
73
|
-
draft.currentDisplayedCardId = cardId;
|
|
74
|
-
},
|
|
75
71
|
saveCardOnboardingUserDetails(
|
|
76
72
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
77
73
|
_draft) {
|
|
@@ -94,5 +90,5 @@ const cardUserOnboarding = (0, toolkit_1.createSlice)({
|
|
|
94
90
|
},
|
|
95
91
|
},
|
|
96
92
|
});
|
|
97
|
-
_a = cardUserOnboarding.actions, exports.initializeCardUserOnboardingLocalData = _a.initializeCardUserOnboardingLocalData, exports.updateCardUserOnboardingLocalData = _a.updateCardUserOnboardingLocalData, exports.sendOtpCardUserOnboarding = _a.sendOtpCardUserOnboarding, exports.sendOtpCardUserOnboardingSuccess = _a.sendOtpCardUserOnboardingSuccess, exports.sendOtpCardUserOnboardingFailure = _a.sendOtpCardUserOnboardingFailure, exports.resendOtpCardUserOnboarding = _a.resendOtpCardUserOnboarding, exports.verifyOtpCardUserOnboarding = _a.verifyOtpCardUserOnboarding, exports.verifyOtpCardUserOnboardingSuccess = _a.verifyOtpCardUserOnboardingSuccess, exports.verifyOtpCardUserOnboardingFailure = _a.verifyOtpCardUserOnboardingFailure, exports.saveCardOnboardingUserDetails = _a.saveCardOnboardingUserDetails, exports.startActivationWait = _a.startActivationWait, exports.completeActivationWait = _a.completeActivationWait, exports.setFirstViewAfterActivation = _a.setFirstViewAfterActivation, exports.setFirstViewCompleteAfterActivation = _a.setFirstViewCompleteAfterActivation, exports.
|
|
93
|
+
_a = cardUserOnboarding.actions, exports.initializeCardUserOnboardingLocalData = _a.initializeCardUserOnboardingLocalData, exports.updateCardUserOnboardingLocalData = _a.updateCardUserOnboardingLocalData, exports.sendOtpCardUserOnboarding = _a.sendOtpCardUserOnboarding, exports.sendOtpCardUserOnboardingSuccess = _a.sendOtpCardUserOnboardingSuccess, exports.sendOtpCardUserOnboardingFailure = _a.sendOtpCardUserOnboardingFailure, exports.resendOtpCardUserOnboarding = _a.resendOtpCardUserOnboarding, exports.verifyOtpCardUserOnboarding = _a.verifyOtpCardUserOnboarding, exports.verifyOtpCardUserOnboardingSuccess = _a.verifyOtpCardUserOnboardingSuccess, exports.verifyOtpCardUserOnboardingFailure = _a.verifyOtpCardUserOnboardingFailure, exports.saveCardOnboardingUserDetails = _a.saveCardOnboardingUserDetails, exports.startActivationWait = _a.startActivationWait, exports.completeActivationWait = _a.completeActivationWait, exports.setFirstViewAfterActivation = _a.setFirstViewAfterActivation, exports.setFirstViewCompleteAfterActivation = _a.setFirstViewCompleteAfterActivation, exports.clearCardUserOnboarding = _a.clearCardUserOnboarding;
|
|
98
94
|
exports.default = cardUserOnboarding.reducer;
|
package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingSelector.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { View } from '../../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
2
2
|
import { RootState } from '../../../../reducer';
|
|
3
3
|
import { CardUserOnboardingLocalData } from './cardUserOnboardingState';
|
|
4
|
-
import { FetchStateAndError
|
|
4
|
+
import { FetchStateAndError } from '../../../../commonStateTypes/common';
|
|
5
|
+
import { NewAddressData } from '../../../addressView/addressViewState';
|
|
5
6
|
import { TwoFactorAuthenticationView } from '../../../twoFactorAuthentication/twoFactorAuthenticationSelector';
|
|
6
7
|
export interface CardUserOnboardingView extends View {
|
|
7
8
|
cardUserOnboardingLocalData?: CardUserOnboardingLocalData;
|
|
@@ -12,6 +13,6 @@ export interface CardUserOnboardingView extends View {
|
|
|
12
13
|
updateStatus: FetchStateAndError;
|
|
13
14
|
sendOtpStatus: FetchStateAndError;
|
|
14
15
|
verifyOtpStatus: FetchStateAndError;
|
|
15
|
-
|
|
16
|
+
addressData?: NewAddressData;
|
|
16
17
|
}
|
|
17
18
|
export declare const getCardUserOnboardingView: (state: RootState) => CardUserOnboardingView;
|
package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingSelector.js
CHANGED
|
@@ -5,8 +5,8 @@ const toolkit_1 = require("@reduxjs/toolkit");
|
|
|
5
5
|
const twoFactorAuthenticationSelector_1 = require("../../../twoFactorAuthentication/twoFactorAuthenticationSelector");
|
|
6
6
|
const reduceFetchState_1 = require("../../../../commonStateTypes/reduceFetchState");
|
|
7
7
|
const userSelector_1 = require("../../../../entity/user/userSelector");
|
|
8
|
-
exports.getCardUserOnboardingView = (0, toolkit_1.createSelector)((state) => state, (state) => state.cardUserOnboardingState, (state) => state.settingsViewState, (state) => state.tenantState, (state) => state.userState, (state, cardUserOnboardingState, settingsViewState, tenantState, userState) => {
|
|
9
|
-
var _a;
|
|
8
|
+
exports.getCardUserOnboardingView = (0, toolkit_1.createSelector)((state) => state, (state) => state.addressViewState, (state) => state.cardUserOnboardingState, (state) => state.settingsViewState, (state) => state.tenantState, (state) => state.userState, (state, addressViewState, cardUserOnboardingState, settingsViewState, tenantState, userState) => {
|
|
9
|
+
var _a, _b;
|
|
10
10
|
const twoFAView = (0, twoFactorAuthenticationSelector_1.getTwoFactorAuthenticationView)(state);
|
|
11
11
|
const updateStatus = (0, reduceFetchState_1.reduceAllFetchState)([
|
|
12
12
|
settingsViewState.profile.updateStatus,
|
|
@@ -22,6 +22,7 @@ exports.getCardUserOnboardingView = (0, toolkit_1.createSelector)((state) => sta
|
|
|
22
22
|
const isDOBPresent = (user === null || user === void 0 ? void 0 : user.birthday) != null;
|
|
23
23
|
return {
|
|
24
24
|
cardUserOnboardingLocalData: cardUserOnboardingState.cardUserOnboardingLocalData,
|
|
25
|
+
addressData: (_b = addressViewState.newAddressState) === null || _b === void 0 ? void 0 : _b['user_address'],
|
|
25
26
|
onboardingProgressStatus: updateStatus,
|
|
26
27
|
updateStatus: settingsViewState.profile.updateStatus,
|
|
27
28
|
sendOtpStatus: cardUserOnboardingState.sendOtpStatus,
|
|
@@ -29,6 +30,5 @@ exports.getCardUserOnboardingView = (0, toolkit_1.createSelector)((state) => sta
|
|
|
29
30
|
twoFAView,
|
|
30
31
|
isDOBPresent,
|
|
31
32
|
firstViewAfterActivation: cardUserOnboardingState.firstViewAfterActivation,
|
|
32
|
-
currentDisplayedCardId: cardUserOnboardingState.currentDisplayedCardId,
|
|
33
33
|
};
|
|
34
34
|
});
|
package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingState.d.ts
CHANGED
|
@@ -2,6 +2,9 @@ import { FetchStateAndError, ID } from '../../../../commonStateTypes/common';
|
|
|
2
2
|
import { ZeniDate } from '../../../../zeniDayJS';
|
|
3
3
|
export interface CardUserOnboardingLocalData {
|
|
4
4
|
userId: ID;
|
|
5
|
+
firstName: string;
|
|
6
|
+
lastName: string;
|
|
7
|
+
email: string;
|
|
5
8
|
phone?: string;
|
|
6
9
|
isPhoneVerified?: boolean;
|
|
7
10
|
otpChallenge?: string;
|
|
@@ -14,5 +17,4 @@ export interface CardUserOnboardingState {
|
|
|
14
17
|
verifyOtpStatus: FetchStateAndError;
|
|
15
18
|
activationWaitStatus: FetchStateAndError;
|
|
16
19
|
firstViewAfterActivation: boolean;
|
|
17
|
-
currentDisplayedCardId?: ID;
|
|
18
20
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { RootState } from '../../../../../reducer';
|
|
4
|
+
import { newAddressInLocalStore, resetNewAddressDataInLocalStore } from '../../../../addressView/addressViewReducer';
|
|
4
5
|
import { initializeCardUserOnboardingLocalData, updateCardUserOnboardingLocalData } from '../cardUserOnboardingReducer';
|
|
5
|
-
export declare type ActionType = ReturnType<typeof initializeCardUserOnboardingLocalData> | ReturnType<typeof updateCardUserOnboardingLocalData>;
|
|
6
|
+
export declare type ActionType = ReturnType<typeof initializeCardUserOnboardingLocalData> | ReturnType<typeof updateCardUserOnboardingLocalData> | ReturnType<typeof newAddressInLocalStore> | ReturnType<typeof resetNewAddressDataInLocalStore>;
|
|
6
7
|
export declare const initializeCardUserOnboardingLocalDataEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
|
|
@@ -3,16 +3,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.initializeCardUserOnboardingLocalDataEpic = void 0;
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const addressSelector_1 = require("../../../../../entity/address/addressSelector");
|
|
7
|
+
const addressViewReducer_1 = require("../../../../addressView/addressViewReducer");
|
|
6
8
|
const cardUserOnboardingReducer_1 = require("../cardUserOnboardingReducer");
|
|
7
9
|
const userRoleSelector_1 = require("../../../../../entity/userRole/userRoleSelector");
|
|
8
10
|
const userSelector_1 = require("../../../../../entity/user/userSelector");
|
|
11
|
+
const chargeCardSelector_1 = require("../../../../../entity/chargeCard/chargeCardSelector");
|
|
9
12
|
const initializeCardUserOnboardingLocalDataEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(cardUserOnboardingReducer_1.initializeCardUserOnboardingLocalData.match), (0, operators_1.mergeMap)((action) => {
|
|
10
13
|
const { userId } = action.payload;
|
|
14
|
+
const actions = [
|
|
15
|
+
(0, addressViewReducer_1.resetNewAddressDataInLocalStore)('user_address'),
|
|
16
|
+
];
|
|
11
17
|
const userState = state$.value.userState;
|
|
12
18
|
const userRoleState = state$.value.userRoleState;
|
|
13
19
|
const user = (0, userSelector_1.getUserByUserId)(userState, userId);
|
|
14
20
|
const userRole = (0, userRoleSelector_1.getUserRoleByUserId)(userRoleState, userId);
|
|
15
|
-
const
|
|
21
|
+
const userCards = (0, chargeCardSelector_1.getChargeCardsByHolderUserId)(state$.value.chargeCardState, userId);
|
|
22
|
+
const userAddress = (userRole === null || userRole === void 0 ? void 0 : userRole.addressId) != null
|
|
23
|
+
? (0, addressSelector_1.getAddressByAddressId)(state$.value.addressState, userRole.addressId)
|
|
24
|
+
: userCards.length > 0
|
|
25
|
+
? (0, addressSelector_1.getAddressByAddressId)(state$.value.addressState, userCards[0].billingAddressId)
|
|
26
|
+
: undefined;
|
|
27
|
+
if (userAddress != null) {
|
|
28
|
+
actions.push((0, addressViewReducer_1.newAddressInLocalStore)({
|
|
29
|
+
addressType: 'user_address',
|
|
30
|
+
addressToCreate: userAddress,
|
|
31
|
+
}));
|
|
32
|
+
}
|
|
16
33
|
if (user != null && userRole != null) {
|
|
17
34
|
const dateOfBirth = user.birthday;
|
|
18
35
|
const phoneNumber = user.phone;
|
|
@@ -20,6 +37,9 @@ const initializeCardUserOnboardingLocalDataEpic = (actions$, state$) => actions$
|
|
|
20
37
|
const syncToken = user === null || user === void 0 ? void 0 : user.syncToken;
|
|
21
38
|
const cardUserOnboardingLocalData = {
|
|
22
39
|
userId,
|
|
40
|
+
firstName: user.firstName,
|
|
41
|
+
lastName: user.lastName,
|
|
42
|
+
email: user.email,
|
|
23
43
|
dateOfBirth,
|
|
24
44
|
phone: phoneNumber,
|
|
25
45
|
isPhoneVerified,
|
|
@@ -6,9 +6,11 @@ const operators_1 = require("rxjs/operators");
|
|
|
6
6
|
const cardUserOnboardingReducer_1 = require("../cardUserOnboardingReducer");
|
|
7
7
|
const settingsViewReducer_1 = require("../../../../settingsView/settingsViewReducer");
|
|
8
8
|
const saveCardOnboardingUserDetailsEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(cardUserOnboardingReducer_1.saveCardOnboardingUserDetails.match), (0, operators_1.mergeMap)(() => {
|
|
9
|
+
var _a;
|
|
9
10
|
const localData = state$.value.cardUserOnboardingState.cardUserOnboardingLocalData;
|
|
11
|
+
const address = (_a = state$.value.addressViewState.newAddressState) === null || _a === void 0 ? void 0 : _a.user_address.addressToCreate;
|
|
10
12
|
return (0, rxjs_1.from)([
|
|
11
|
-
(0, settingsViewReducer_1.updateMyProfile)('CardUserOnboarding', localData === null || localData === void 0 ? void 0 : localData.phone, localData === null || localData === void 0 ? void 0 : localData.otpChallenge, localData === null || localData === void 0 ? void 0 : localData.dateOfBirth),
|
|
13
|
+
(0, settingsViewReducer_1.updateMyProfile)('CardUserOnboarding', localData === null || localData === void 0 ? void 0 : localData.phone, localData === null || localData === void 0 ? void 0 : localData.otpChallenge, localData === null || localData === void 0 ? void 0 : localData.dateOfBirth, address),
|
|
12
14
|
]);
|
|
13
15
|
}));
|
|
14
16
|
exports.saveCardOnboardingUserDetailsEpic = saveCardOnboardingUserDetailsEpic;
|
|
@@ -9,7 +9,6 @@ interface ChargeCardDetail extends FetchedState {
|
|
|
9
9
|
id: ID;
|
|
10
10
|
transactionList: ChargeCardDetailTransactionList;
|
|
11
11
|
updateStatus: FetchStateAndError;
|
|
12
|
-
updatePhysicalChargeCardAttemptFetchState: FetchStateAndError;
|
|
13
12
|
}
|
|
14
13
|
export declare const toChargeCardTransactionSortKeyType: (v: string) => "type" | "amount" | "merchant" | "paymentDate" | "receipts";
|
|
15
14
|
export declare type ChargeCardTransactionSortKey = ReturnType<typeof toChargeCardTransactionSortKeyType>;
|
|
@@ -42,14 +42,7 @@ export declare const fetchChargeCardDetailPage: import("@reduxjs/toolkit").Actio
|
|
|
42
42
|
cardId: ID;
|
|
43
43
|
transactionId: ID;
|
|
44
44
|
status: ZeniAPIStatus;
|
|
45
|
-
}, string>,
|
|
46
|
-
chargeCardId: ID;
|
|
47
|
-
fetchState: FetchState;
|
|
48
|
-
error?: ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
49
|
-
}, string>, updatePhysicalChargeCardAttempt: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chargeCardId: string, statusCode: "failed" | "success"], {
|
|
50
|
-
chargeCardId: string;
|
|
51
|
-
statusCode: "failed" | "success";
|
|
52
|
-
}, string, never, never>, updateChargeCardTransactionReceiptsShowTickFetchStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
45
|
+
}, string>, updateChargeCardTransactionReceiptsShowTickFetchStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
53
46
|
transactionId: ID;
|
|
54
47
|
chargeCardId: ID;
|
|
55
48
|
shouldShowTick: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.clearChargeCardDetail = exports.updateChargeCardDetailUpdateStatus = exports.updateChargeCardDetail = exports.updateChargeCardTransactionListFailure = exports.updateChargeCardTransactionAttachmentsInCardDetail = exports.updateChargeCardTransactionReceiptsShowTickFetchStatus = exports.
|
|
4
|
+
exports.clearChargeCardDetail = exports.updateChargeCardDetailUpdateStatus = exports.updateChargeCardDetail = exports.updateChargeCardTransactionListFailure = exports.updateChargeCardTransactionAttachmentsInCardDetail = exports.updateChargeCardTransactionReceiptsShowTickFetchStatus = exports.updateChargeCardTransactionAttachmentsFailure = exports.updateChargeCardTransactionIsViewReceiptClicked = exports.fetchChargeCardTransactionAttachments = exports.updateChargeCardTransactionUploadReceiptsFetchStatus = exports.updateChargeCardTransactionList = exports.updateChargeCardDetailUIState = exports.fetchChargeCardTransactionList = exports.updateChargeCardDetailFetchState = exports.fetchChargeCardDetail = exports.fetchChargeCardDetailPage = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const sortOrderPayload_1 = require("../../../../commonPayloadTypes/sortOrderPayload");
|
|
7
7
|
const attachmentPayload_1 = require("../../../../entity/transaction/payloadTypes/attachmentPayload");
|
|
@@ -94,29 +94,6 @@ const chargeCardDetail = (0, toolkit_1.createSlice)({
|
|
|
94
94
|
const existingCardDetail = draft.detailById[chargeCardId];
|
|
95
95
|
draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { transactionList: Object.assign(Object.assign({}, existingCardDetail.transactionList), { fetchState: 'Error', error }) });
|
|
96
96
|
},
|
|
97
|
-
updatePhysicalChargeCardAttempt: {
|
|
98
|
-
reducer(draft, action) {
|
|
99
|
-
const { chargeCardId } = action.payload;
|
|
100
|
-
const existingCardDetail = draft.detailById[chargeCardId];
|
|
101
|
-
draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { updatePhysicalChargeCardAttemptFetchState: {
|
|
102
|
-
fetchState: 'In-Progress',
|
|
103
|
-
error: undefined,
|
|
104
|
-
} });
|
|
105
|
-
},
|
|
106
|
-
prepare(chargeCardId, statusCode) {
|
|
107
|
-
return {
|
|
108
|
-
payload: { chargeCardId, statusCode },
|
|
109
|
-
};
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
updatePhysicalChargeCardAttemptSuccessOrFailure(draft, action) {
|
|
113
|
-
const { chargeCardId, fetchState, error } = action.payload;
|
|
114
|
-
const existingCardDetail = draft.detailById[chargeCardId];
|
|
115
|
-
draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { updatePhysicalChargeCardAttemptFetchState: {
|
|
116
|
-
fetchState,
|
|
117
|
-
error,
|
|
118
|
-
} });
|
|
119
|
-
},
|
|
120
97
|
updateChargeCardDetail: {
|
|
121
98
|
reducer(draft, action) {
|
|
122
99
|
const { chargeCardId } = action.payload;
|
|
@@ -204,5 +181,5 @@ const chargeCardDetail = (0, toolkit_1.createSlice)({
|
|
|
204
181
|
},
|
|
205
182
|
},
|
|
206
183
|
});
|
|
207
|
-
_a = chargeCardDetail.actions, exports.fetchChargeCardDetailPage = _a.fetchChargeCardDetailPage, exports.fetchChargeCardDetail = _a.fetchChargeCardDetail, exports.updateChargeCardDetailFetchState = _a.updateChargeCardDetailFetchState, exports.fetchChargeCardTransactionList = _a.fetchChargeCardTransactionList, exports.updateChargeCardDetailUIState = _a.updateChargeCardDetailUIState, exports.updateChargeCardTransactionList = _a.updateChargeCardTransactionList, exports.updateChargeCardTransactionUploadReceiptsFetchStatus = _a.updateChargeCardTransactionUploadReceiptsFetchStatus, exports.fetchChargeCardTransactionAttachments = _a.fetchChargeCardTransactionAttachments, exports.updateChargeCardTransactionIsViewReceiptClicked = _a.updateChargeCardTransactionIsViewReceiptClicked, exports.updateChargeCardTransactionAttachmentsFailure = _a.updateChargeCardTransactionAttachmentsFailure, exports.
|
|
184
|
+
_a = chargeCardDetail.actions, exports.fetchChargeCardDetailPage = _a.fetchChargeCardDetailPage, exports.fetchChargeCardDetail = _a.fetchChargeCardDetail, exports.updateChargeCardDetailFetchState = _a.updateChargeCardDetailFetchState, exports.fetchChargeCardTransactionList = _a.fetchChargeCardTransactionList, exports.updateChargeCardDetailUIState = _a.updateChargeCardDetailUIState, exports.updateChargeCardTransactionList = _a.updateChargeCardTransactionList, exports.updateChargeCardTransactionUploadReceiptsFetchStatus = _a.updateChargeCardTransactionUploadReceiptsFetchStatus, exports.fetchChargeCardTransactionAttachments = _a.fetchChargeCardTransactionAttachments, exports.updateChargeCardTransactionIsViewReceiptClicked = _a.updateChargeCardTransactionIsViewReceiptClicked, exports.updateChargeCardTransactionAttachmentsFailure = _a.updateChargeCardTransactionAttachmentsFailure, exports.updateChargeCardTransactionReceiptsShowTickFetchStatus = _a.updateChargeCardTransactionReceiptsShowTickFetchStatus, exports.updateChargeCardTransactionAttachmentsInCardDetail = _a.updateChargeCardTransactionAttachmentsInCardDetail, exports.updateChargeCardTransactionListFailure = _a.updateChargeCardTransactionListFailure, exports.updateChargeCardDetail = _a.updateChargeCardDetail, exports.updateChargeCardDetailUpdateStatus = _a.updateChargeCardDetailUpdateStatus, exports.clearChargeCardDetail = _a.clearChargeCardDetail;
|
|
208
185
|
exports.default = chargeCardDetail.reducer;
|
|
@@ -18,7 +18,6 @@ export interface ChargeCardDetailSelectorView extends SelectorView {
|
|
|
18
18
|
twoFAView: TwoFactorAuthenticationView;
|
|
19
19
|
loggedInUserPhone: string;
|
|
20
20
|
updateFetchState: FetchStateAndError;
|
|
21
|
-
updatePhysicalChargeCardAttemptFetchState: FetchStateAndError;
|
|
22
21
|
chargeCard?: ChargeCardWithUser;
|
|
23
22
|
}
|
|
24
23
|
export declare const getChargeCardDetailView: (state: RootState, chargeCardId: ID) => ChargeCardDetailSelectorView;
|
|
@@ -15,7 +15,7 @@ const userRoleSelector_1 = require("../../../../entity/userRole/userRoleSelector
|
|
|
15
15
|
const chargeCardDetail_1 = require("./chargeCardDetail");
|
|
16
16
|
const twoFactorAuthenticationSelector_1 = require("../../../twoFactorAuthentication/twoFactorAuthenticationSelector");
|
|
17
17
|
const getChargeCardDetailView = (state, chargeCardId) => {
|
|
18
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
18
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
19
19
|
const { tenantState, addressState, chargeCardDetailState, chargeCardState, classState, userState, userRoleState, chargeCardConfigState, chargeCardTransactionState, } = state;
|
|
20
20
|
const twoFactorAuthenticationView = (0, twoFactorAuthenticationSelector_1.getTwoFactorAuthenticationView)(state);
|
|
21
21
|
const loggedInUserId = (_b = (_a = tenantState.loggedInUser) === null || _a === void 0 ? void 0 : _a.userId) !== null && _b !== void 0 ? _b : '';
|
|
@@ -79,17 +79,13 @@ const getChargeCardDetailView = (state, chargeCardId) => {
|
|
|
79
79
|
fetchState: 'Not-Started',
|
|
80
80
|
error: undefined,
|
|
81
81
|
},
|
|
82
|
-
updatePhysicalChargeCardAttemptFetchState: (_g = chargeCardDetail === null || chargeCardDetail === void 0 ? void 0 : chargeCardDetail.updatePhysicalChargeCardAttemptFetchState) !== null && _g !== void 0 ? _g : {
|
|
83
|
-
fetchState: 'Not-Started',
|
|
84
|
-
error: undefined,
|
|
85
|
-
},
|
|
86
82
|
chargeCard: chargeCardWithUser,
|
|
87
83
|
error: reducedFetchState.error,
|
|
88
84
|
chargeCardConfig: chargeCardConfigState,
|
|
89
85
|
transactions,
|
|
90
|
-
uploadReceiptsFetchStateByTransactionId: (
|
|
91
|
-
uploadReceiptsShowTickByTransactionId: (
|
|
92
|
-
isViewReceiptClickedImmediatelyAfterUploadTransactionId: (
|
|
86
|
+
uploadReceiptsFetchStateByTransactionId: (_g = chargeCardDetail === null || chargeCardDetail === void 0 ? void 0 : chargeCardDetail.transactionList.uploadReceiptsFetchStateByTransactionId) !== null && _g !== void 0 ? _g : {},
|
|
87
|
+
uploadReceiptsShowTickByTransactionId: (_h = chargeCardDetail === null || chargeCardDetail === void 0 ? void 0 : chargeCardDetail.transactionList.uploadReceiptsShowTickByTransactionId) !== null && _h !== void 0 ? _h : {},
|
|
88
|
+
isViewReceiptClickedImmediatelyAfterUploadTransactionId: (_j = chargeCardDetail === null || chargeCardDetail === void 0 ? void 0 : chargeCardDetail.transactionList.isViewReceiptClickedImmediatelyAfterUploadTransactionId) !== null && _j !== void 0 ? _j : {},
|
|
93
89
|
uiState,
|
|
94
90
|
transactionListFetchState,
|
|
95
91
|
twoFAView: twoFactorAuthenticationView,
|
|
@@ -26,8 +26,7 @@ const fetchChargeCardDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((
|
|
|
26
26
|
fetchState: 'In-Progress',
|
|
27
27
|
}));
|
|
28
28
|
const getChargeCardDetail$ = zeniAPI
|
|
29
|
-
.getJSON(`${zeniAPI.apiEndPoints.cardMicroServiceBaseUrl}/1.0/cards/${chargeCardId}
|
|
30
|
-
"is_include_card_activation_events":true}`)
|
|
29
|
+
.getJSON(`${zeniAPI.apiEndPoints.cardMicroServiceBaseUrl}/1.0/cards/${chargeCardId}`)
|
|
31
30
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
32
31
|
if ((0, responsePayload_1.isSuccessStatus)(response) && response.data != null) {
|
|
33
32
|
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, addressReducer_1.updateAddresses)(response.data.addresses), (0, chargeCardDetailReducer_1.updateChargeCardDetailFetchState)({
|