@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
|
@@ -8,7 +8,6 @@ export interface CompanyOfficerVerificationPayload {
|
|
|
8
8
|
sync_token: string;
|
|
9
9
|
ssn: string;
|
|
10
10
|
birthday: string;
|
|
11
|
-
nationality_country_code: string;
|
|
12
11
|
title_at_company: string;
|
|
13
12
|
company_ownership: number;
|
|
14
13
|
document_type_for_verification: string;
|
|
@@ -32,7 +31,6 @@ export interface NewCompanyOfficerVerificationPayload {
|
|
|
32
31
|
title_at_company: string;
|
|
33
32
|
company_ownership: number;
|
|
34
33
|
document_type_for_verification: string;
|
|
35
|
-
nationality_country_code: string;
|
|
36
34
|
file_ids: ID[];
|
|
37
35
|
address: AddressUpdatableInfoPayload;
|
|
38
36
|
phone_verification?: {
|
|
@@ -57,8 +55,6 @@ export interface CompanyDetailsVerificationPayload {
|
|
|
57
55
|
file_ids: ID[];
|
|
58
56
|
sync_token: string;
|
|
59
57
|
address: AddressUpdatableInfoPayload;
|
|
60
|
-
registered_address: AddressUpdatableInfoPayload;
|
|
61
|
-
is_registered_address_same_as_company_address: boolean;
|
|
62
58
|
company_inc_type: string;
|
|
63
59
|
company_inc_date: string | null;
|
|
64
60
|
is_new_company_industry_verified: boolean;
|
package/lib/view/spendManagement/reimbursement/editRemiView/epics/parseReceiptsToRemiEpic.js
CHANGED
|
@@ -27,7 +27,7 @@ const parseReceiptsToRemiEpic = (actions$, state$) => actions$.pipe((0, operator
|
|
|
27
27
|
newUpdatesByLineId[currentLineId] = Object.assign(Object.assign({}, newUpdatesByLineId[currentLineId]), { type: 'out_of_pocket', fileId: (_a = receipt.file_id) !== null && _a !== void 0 ? _a : '', lineId: String(currentLineId) });
|
|
28
28
|
currentLineId++;
|
|
29
29
|
});
|
|
30
|
-
const files = receiptsProcessingPayload.files.map((file) => (0, attachmentPayload_1.
|
|
30
|
+
const files = receiptsProcessingPayload.files.map((file) => (0, attachmentPayload_1.mapFiletoAttachment)(file));
|
|
31
31
|
return (0, rxjs_1.of)((0, editRemiViewReducer_1.saveRemiUpdatesToLocalStore)({
|
|
32
32
|
remiDetailLocalData: Object.assign(Object.assign({}, remiState.remiDetailLocalData), { files: remiState.remiDetailLocalData.files != null
|
|
33
33
|
? [...remiState.remiDetailLocalData.files, ...files]
|
|
@@ -91,7 +91,7 @@ const parseReceiptsToRemiEpic = (actions$, state$) => actions$.pipe((0, operator
|
|
|
91
91
|
}
|
|
92
92
|
currentLineId++;
|
|
93
93
|
});
|
|
94
|
-
const files = receiptsProcessingPayload.files.map((file) => (0, attachmentPayload_1.
|
|
94
|
+
const files = receiptsProcessingPayload.files.map((file) => (0, attachmentPayload_1.mapFiletoAttachment)(file));
|
|
95
95
|
actions.push((0, editRemiViewReducer_1.saveRemiUpdatesToLocalStore)({
|
|
96
96
|
remiDetailLocalData: Object.assign(Object.assign({}, remiState.remiDetailLocalData), { files: remiState.remiDetailLocalData.files != null
|
|
97
97
|
? [...remiState.remiDetailLocalData.files, ...files]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toSubscriptionSortKeyType: (v: string) => "status" | "controller" | "companyName" | "monthlyRecurringRevenue" | "avg2MonthExpenses" | "
|
|
1
|
+
export declare const toSubscriptionSortKeyType: (v: string) => "status" | "controller" | "companyName" | "monthlyRecurringRevenue" | "avg2MonthExpenses" | "plans" | "planLowerLimit" | "planHigherLimit" | "addons" | "upgradeStatus" | "notes";
|
|
2
2
|
export declare type SubscriptionViewSortKey = ReturnType<typeof toSubscriptionSortKeyType>;
|
|
3
3
|
export declare const SUBSCRIPTION_STATUS_CODES: string[];
|
|
4
4
|
declare const toSubscriptionStatusCodeType: (v: string) => string;
|
|
@@ -8,7 +8,7 @@ import { updateCreatedTagToLocalStore } from '../../taskManager/taskDetailView/t
|
|
|
8
8
|
export declare type ActionType = ReturnType<typeof createTag> | ReturnType<typeof updateTagCreateStatus> | ReturnType<typeof openSnackbar> | ReturnType<typeof updateCreatedTagToLocalStore> | ReturnType<typeof updateTags>;
|
|
9
9
|
export declare const createTagEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
10
10
|
payload: {
|
|
11
|
-
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" | "
|
|
11
|
+
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";
|
|
12
12
|
messageText: "failed" | "success" | "notification";
|
|
13
13
|
type: import("../../..").SnackbarMessageType;
|
|
14
14
|
showStatusIcon?: boolean | undefined;
|
|
@@ -9,7 +9,7 @@ export declare const deleteTagEpic: (actions$: ActionsObservable<ActionType>, _s
|
|
|
9
9
|
type: string;
|
|
10
10
|
} | {
|
|
11
11
|
payload: {
|
|
12
|
-
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" | "
|
|
12
|
+
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";
|
|
13
13
|
messageText: "failed" | "success" | "notification";
|
|
14
14
|
type: import("../../..").SnackbarMessageType;
|
|
15
15
|
showStatusIcon?: boolean | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RootState } from '../../reducer';
|
|
2
2
|
export declare const getTasksCardReport: (state: RootState) => {
|
|
3
|
-
reportId: "cash_balance" | "card_balance" | "
|
|
3
|
+
reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing";
|
|
4
4
|
reportTitle: string;
|
|
5
5
|
version: string | number | undefined;
|
|
6
6
|
status: import("../..").Status | undefined;
|
|
@@ -5,7 +5,7 @@ import { AccountState } from '../../entity/account/accountState';
|
|
|
5
5
|
import { EntityOrder } from '../../commonStateTypes/selectorTypes/selectorTypes';
|
|
6
6
|
import { TopExReport, TopExTimePeriodWithMetaData } from './topExSelectorTypes';
|
|
7
7
|
export declare const getTopExpenses: (accountState: AccountState, topExState: TopExState, numberOfExpenses?: number | undefined) => {
|
|
8
|
-
reportId: "cash_balance" | "card_balance" | "
|
|
8
|
+
reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing";
|
|
9
9
|
reportTitle: string;
|
|
10
10
|
version: string | number | undefined;
|
|
11
11
|
status: import("../..").Status | undefined;
|
|
@@ -8,8 +8,8 @@ const transactionReducer_1 = require("../../../entity/transaction/transactionRed
|
|
|
8
8
|
const transactionDetailState_1 = require("../transactionDetailState");
|
|
9
9
|
const transactionIDPayload_1 = require("../../../entity/transaction/payloadTypes/transactionIDPayload");
|
|
10
10
|
const uploadMissingReceiptSuccessEpic = (actions$) => actions$.pipe((0, operators_1.filter)(transactionDetailReducer_1.uploadMissingReceiptSuccess.match), (0, operators_1.switchMap)((action) => {
|
|
11
|
-
const
|
|
12
|
-
const transactionDetailKeyForResponse = (0, transactionDetailState_1.getTransactionDetailKey)(
|
|
11
|
+
const transcationId = (0, transactionIDPayload_1.toTransactionID)(action.payload.payload);
|
|
12
|
+
const transactionDetailKeyForResponse = (0, transactionDetailState_1.getTransactionDetailKey)(transcationId);
|
|
13
13
|
return (0, rxjs_1.of)((0, transactionReducer_1.updateTransaction)(transactionDetailKeyForResponse, action.payload.payload));
|
|
14
14
|
}));
|
|
15
15
|
exports.uploadMissingReceiptSuccessEpic = uploadMissingReceiptSuccessEpic;
|
|
@@ -8,9 +8,9 @@ import { Transaction, TransactionID } from '../../entity/transaction/stateTypes/
|
|
|
8
8
|
import { VendorBase } from '../../entity/vendor/vendorState';
|
|
9
9
|
import { EntityRecommendationKey } from '../recommendation/recommendationState';
|
|
10
10
|
import { TransactionDetailLocalData } from './transactionDetailTypes';
|
|
11
|
-
export declare const getTransactionDetailKey: (transactionId: TransactionID) => `${string}
|
|
11
|
+
export declare const getTransactionDetailKey: (transactionId: TransactionID) => `${string}_expense` | `${string}_refund` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
|
|
12
12
|
export declare type TransactionDetailKey = ReturnType<typeof getTransactionDetailKey>;
|
|
13
|
-
export declare const getZeniTransactionDetailKey: (transactionId: TransactionID) => `${string}
|
|
13
|
+
export declare const getZeniTransactionDetailKey: (transactionId: TransactionID) => `${string}_expense` | `${string}_refund` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
|
|
14
14
|
export declare type ZeniTransactionDetailKey = ReturnType<typeof getTransactionDetailKey>;
|
|
15
15
|
export declare const getThirdPartyIdFromTransactionId: (transactionId: TransactionID) => string;
|
|
16
16
|
/**
|
|
@@ -46,10 +46,7 @@ const getQueryParam = (userType, isZeniTenant) => {
|
|
|
46
46
|
case 'manager':
|
|
47
47
|
return { is_manager_candidate: true };
|
|
48
48
|
case 'cardHolderCandidate':
|
|
49
|
-
return {
|
|
50
|
-
is_card_holder_candidate: true,
|
|
51
|
-
is_include_active_cards_count: true,
|
|
52
|
-
};
|
|
49
|
+
return { is_card_holder_candidate: true };
|
|
53
50
|
case 'taskManagerCandidate':
|
|
54
51
|
return { is_task_manager_candidate: true };
|
|
55
52
|
case 'cardAdmin':
|
|
@@ -149,7 +149,7 @@ exports.vendorFiling1099ListFailureState = {
|
|
|
149
149
|
exports.rootStateWithVendorFiling1099List = Object.assign({}, reducer_1.initialRootState, {
|
|
150
150
|
vendorState: {
|
|
151
151
|
vendorByID: {
|
|
152
|
-
'vendor_j12jh1g2g12jg3jh12:12': vendorStateMocks_1.
|
|
152
|
+
'vendor_j12jh1g2g12jg3jh12:12': vendorStateMocks_1.vendorStateMock7,
|
|
153
153
|
},
|
|
154
154
|
},
|
|
155
155
|
vendorFiling1099ListState: {
|
|
@@ -6,7 +6,7 @@ exports.vendorFiling1099ListSelectorMock = {
|
|
|
6
6
|
fetchState: 'Completed',
|
|
7
7
|
error: undefined,
|
|
8
8
|
version: 0,
|
|
9
|
-
vendors: [Object.assign({}, vendorStateMocks_1.
|
|
9
|
+
vendors: [Object.assign({}, vendorStateMocks_1.vendorStateMock7)],
|
|
10
10
|
lastRefreshSuccessTime: undefined,
|
|
11
11
|
uiState: {
|
|
12
12
|
sortKey: 'total',
|
|
@@ -2,7 +2,7 @@ import { GlobalMerchantBase } from '../../../../entity/globalMerchant/globalMerc
|
|
|
2
2
|
import { ID } from '../../../../commonStateTypes/common';
|
|
3
3
|
import { RecommendedNonExistingGlobalMerchant } from '../../vendorFirstReviewView/vendorFirstReviewViewState';
|
|
4
4
|
import { RecommendedNonExistingGlobalMerchantBasePayload, VendorReviewViewAllRecommendationsPayload } from '../payload/commonTypes';
|
|
5
|
-
export declare const toVendorFirstReviewViewStatusesTypeStrict: (v: string) => "pending" | "
|
|
5
|
+
export declare const toVendorFirstReviewViewStatusesTypeStrict: (v: string) => "pending" | "under_review" | "merge_in_qbo" | "reviewed" | "review_rejected" | undefined;
|
|
6
6
|
declare type VendorFirstReviewViewStatusesKey = ReturnType<typeof toVendorFirstReviewViewStatusesTypeStrict>;
|
|
7
7
|
export declare type ReviewStatus = {
|
|
8
8
|
code: VendorFirstReviewViewStatusesKey;
|
package/lib/view/vendorReviewView/vendorFirstReviewView/epics/saveVendorFirstReviewViewEpic.js
CHANGED
|
@@ -24,7 +24,7 @@ const saveVendorFirstReviewViewEpic = (actions$, state$, zeniAPI) => actions$.pi
|
|
|
24
24
|
const { vendorId, markAsEmployee, markAsLocalContractor } = action.payload;
|
|
25
25
|
const currentVendorLocalData = vendorFirstReviewViewState.vendorFirstReviewViewLocalDataById[vendorId]
|
|
26
26
|
.vendorFirstReviewViewLocalData;
|
|
27
|
-
const currentVendor = (0, vendorSelector_1.getVendorByVendorId)(vendorState, vendorId);
|
|
27
|
+
const currentVendor = (0, vendorSelector_1.getVendorByVendorId)(state$.value.vendorState, vendorId);
|
|
28
28
|
const { vendorName, selectedGlobalMerchant, recommendations, nonExistingRecommendations, } = getSaveVendorFirstReviewViewPayloadDetails(currentVendorLocalData, globalMerchantState, vendorState);
|
|
29
29
|
const payload = Object.assign({}, prepareSaveVendorFirstReviewViewPayload(vendorName, recommendations, nonExistingRecommendations, markAsEmployee, markAsLocalContractor, currentVendor === null || currentVendor === void 0 ? void 0 : currentVendor.qboId, selectedGlobalMerchant));
|
|
30
30
|
const queryParam = {
|
|
@@ -104,7 +104,7 @@ const saveVendorFirstReviewViewEpic = (actions$, state$, zeniAPI) => actions$.pi
|
|
|
104
104
|
actions.push((0, vendorFirstReviewViewReducer_1.updateRecentlySavedErroredVendorData)({
|
|
105
105
|
vendorId: action.payload.vendorId,
|
|
106
106
|
vendorNameSentForReview: vendorName,
|
|
107
|
-
|
|
107
|
+
isQBOMergeError: true,
|
|
108
108
|
}));
|
|
109
109
|
}
|
|
110
110
|
else if (response.status.details != null) {
|
|
@@ -122,44 +122,13 @@ const saveVendorFirstReviewViewEpic = (actions$, state$, zeniAPI) => actions$.pi
|
|
|
122
122
|
actions.push((0, vendorFirstReviewViewReducer_1.updateRecentlySavedErroredVendorData)({
|
|
123
123
|
vendorId: action.payload.vendorId,
|
|
124
124
|
vendorNameSentForReview: vendorName,
|
|
125
|
-
|
|
125
|
+
isQBOMergeError: false,
|
|
126
126
|
oldRecommendation,
|
|
127
127
|
newRecommendation,
|
|
128
128
|
}));
|
|
129
129
|
}
|
|
130
130
|
return (0, rxjs_1.from)(actions);
|
|
131
131
|
}
|
|
132
|
-
else if (response.status.code === 400 &&
|
|
133
|
-
response.status.message.includes('There is already a vendor using that entity name.')) {
|
|
134
|
-
const actions = [];
|
|
135
|
-
actions.push((0, vendorFirstReviewViewReducer_1.updateSavedVendorFirstReviewViewLocalData)({
|
|
136
|
-
vendorId,
|
|
137
|
-
vendors: response.data && response.data.vendors
|
|
138
|
-
? response.data.vendors
|
|
139
|
-
: [],
|
|
140
|
-
}));
|
|
141
|
-
actions.push((0, vendorFirstReviewViewReducer_1.saveVendorFirstReviewViewSuccessOrFailure)('Error', action.payload.vendorId, markAsEmployee, markAsLocalContractor, response.status));
|
|
142
|
-
actions.push((0, vendorReducer_1.updateVendors)((0, fetchVendorFirstReviewViewEpic_1.mapVendorsPayloadFromVendorFirstReviewViewResponse)(response.data && response.data.vendors
|
|
143
|
-
? response.data.vendors
|
|
144
|
-
: [])), (0, userReducer_1.updateAllUsers)({
|
|
145
|
-
users: (0, fetchVendorFirstReviewViewEpic_1.mapUsersPayloadFromVendorFirstReviewViewResponse)(response.data && response.data.vendors
|
|
146
|
-
? response.data.vendors
|
|
147
|
-
: []),
|
|
148
|
-
updateType: 'merge',
|
|
149
|
-
}), (0, globalMerchantReducer_1.updateGlobalMerchantsBase)({
|
|
150
|
-
globalMerchants: (0, fetchVendorFirstReviewViewEpic_1.mapGlobalMerchantsBasePayloadFromVendorFirstReviewViewResponse)(response.data && response.data.vendors
|
|
151
|
-
? response.data.vendors
|
|
152
|
-
: []),
|
|
153
|
-
}));
|
|
154
|
-
if (response.status.details == null) {
|
|
155
|
-
actions.push((0, vendorFirstReviewViewReducer_1.updateRecentlySavedErroredVendorData)({
|
|
156
|
-
vendorId: action.payload.vendorId,
|
|
157
|
-
vendorNameSentForReview: vendorName,
|
|
158
|
-
isVendorMergeError: true,
|
|
159
|
-
}));
|
|
160
|
-
}
|
|
161
|
-
return (0, rxjs_1.from)(actions);
|
|
162
|
-
}
|
|
163
132
|
else {
|
|
164
133
|
return (0, rxjs_1.of)((0, vendorFirstReviewViewReducer_1.saveVendorFirstReviewViewSuccessOrFailure)('Error', action.payload.vendorId, markAsEmployee, markAsLocalContractor, response.status), (0, snackbarReducer_1.openSnackbar)({
|
|
165
134
|
messageSection: 'save_vendor_sent_for_review',
|
|
@@ -43,7 +43,7 @@ export declare const fetchVendorFirstReviewAttachments: import("@reduxjs/toolkit
|
|
|
43
43
|
}, string>, updateRecentlySavedErroredVendorData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
44
44
|
vendorId: ID;
|
|
45
45
|
vendorNameSentForReview: string;
|
|
46
|
-
|
|
46
|
+
isQBOMergeError: boolean;
|
|
47
47
|
oldRecommendation?: RecommendedNonExistingGlobalMerchant | undefined;
|
|
48
48
|
newRecommendation?: RecommendedNonExistingGlobalMerchant | undefined;
|
|
49
49
|
}, string>, clearRecentlySavedErroredVendorData: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, saveVendorFirstReviewViewSuccessOrFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[fetchState: FetchState, vendorId: string, markAsEmployee: boolean, markAsLocalContractor: boolean, error?: ZeniAPIStatus<Record<string, unknown>> | undefined, reviewStatus?: ReviewStatusPayload | undefined], {
|
|
@@ -166,8 +166,8 @@ const vendorFirstReviewView = (0, toolkit_1.createSlice)({
|
|
|
166
166
|
};
|
|
167
167
|
},
|
|
168
168
|
updateRecentlySavedErroredVendorData(draft, action) {
|
|
169
|
-
const {
|
|
170
|
-
if (
|
|
169
|
+
const { isQBOMergeError, vendorId, oldRecommendation, newRecommendation, vendorNameSentForReview, } = action.payload;
|
|
170
|
+
if (isQBOMergeError) {
|
|
171
171
|
draft.recentlySavedErroredVendorData = {
|
|
172
172
|
vendorId,
|
|
173
173
|
vendorNameSentForReview,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FetchedState, ID } from '../../commonStateTypes/common';
|
|
2
|
-
import { MonthYearPeriod } from '../../commonStateTypes/timePeriod';
|
|
3
2
|
export interface ZeniAccStatementListState {
|
|
4
3
|
byDepositId: Record<ID, StatementState>;
|
|
5
4
|
}
|
|
@@ -8,7 +7,11 @@ interface StatementState extends FetchedState {
|
|
|
8
7
|
}
|
|
9
8
|
export interface Statement {
|
|
10
9
|
id: ID;
|
|
11
|
-
title:
|
|
10
|
+
title: StatementTitle;
|
|
11
|
+
}
|
|
12
|
+
interface StatementTitle {
|
|
13
|
+
month: number;
|
|
14
|
+
year: number;
|
|
12
15
|
}
|
|
13
16
|
export declare const initialStatements: StatementState;
|
|
14
17
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.13",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { MonthYearPeriod } from '../../commonStateTypes/timePeriod';
|
|
2
|
-
import { MonthEndCloseChecksInfo } from './monthEndCloseChecksState';
|
|
3
|
-
interface MonthCloseChecksPayload {
|
|
4
|
-
month_close_check_type: string;
|
|
5
|
-
month_close_check_title: string;
|
|
6
|
-
month_close_check_description: string;
|
|
7
|
-
progress_percentage: number;
|
|
8
|
-
action_frequency: string;
|
|
9
|
-
sequence: number;
|
|
10
|
-
}
|
|
11
|
-
interface MonthEndInsightsPayload {
|
|
12
|
-
zeni_ai_saved_amount: number;
|
|
13
|
-
zeni_ai_saved_hours: number;
|
|
14
|
-
count_account_auto_reconciled: number;
|
|
15
|
-
count_transactions_auto_categorised: number;
|
|
16
|
-
zeni_ai_efficiency_percentage: number;
|
|
17
|
-
count_review_efficiency_increase: number;
|
|
18
|
-
count_unique_vendors_in_flux_analysis: number;
|
|
19
|
-
}
|
|
20
|
-
interface MonthEndAuditSummaryPayload {
|
|
21
|
-
audit_score_percentage: number;
|
|
22
|
-
audit_report_last_generated_date: string;
|
|
23
|
-
}
|
|
24
|
-
export interface MonthEndCloseChecksPayload {
|
|
25
|
-
insights: MonthEndInsightsPayload;
|
|
26
|
-
audit_summary: MonthEndAuditSummaryPayload;
|
|
27
|
-
month_close_checks: MonthCloseChecksPayload[];
|
|
28
|
-
zeni_book_close_date: string;
|
|
29
|
-
history_month_and_year_flag: string[];
|
|
30
|
-
}
|
|
31
|
-
export declare const toMonthEndCloseChecksInfo: (payload: MonthEndCloseChecksPayload, period: MonthYearPeriod) => MonthEndCloseChecksInfo;
|
|
32
|
-
export {};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toMonthEndCloseChecksInfo = void 0;
|
|
4
|
-
const formatZeniDateFY_1 = require("../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
|
|
5
|
-
const timePeriod_1 = require("../../commonStateTypes/timePeriod");
|
|
6
|
-
const expenseAutomationViewState_1 = require("../../view/expenseAutomationView/expenseAutomationViewState");
|
|
7
|
-
const zeniDayJS_1 = require("../../zeniDayJS");
|
|
8
|
-
const monthEndCloseChecksState_1 = require("./monthEndCloseChecksState");
|
|
9
|
-
const toMonthEndCloseCheck = (monthCloseCheck) => {
|
|
10
|
-
return {
|
|
11
|
-
id: (0, expenseAutomationViewState_1.toExpenseAutomationViewType)(monthCloseCheck.month_close_check_type),
|
|
12
|
-
description: monthCloseCheck.month_close_check_description,
|
|
13
|
-
title: monthCloseCheck.month_close_check_title,
|
|
14
|
-
frequency: (0, monthEndCloseChecksState_1.toMonthEndCloseCheckFrequency)(monthCloseCheck.action_frequency),
|
|
15
|
-
progress: monthCloseCheck.progress_percentage,
|
|
16
|
-
sequence: monthCloseCheck.sequence,
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
const toMonthEndInsights = (monthEndStatisticsPayload) => {
|
|
20
|
-
return {
|
|
21
|
-
transactionsAutoCategorized: monthEndStatisticsPayload.count_transactions_auto_categorised,
|
|
22
|
-
vendorsWithFluctuations: monthEndStatisticsPayload.count_unique_vendors_in_flux_analysis,
|
|
23
|
-
efficiency: monthEndStatisticsPayload.count_review_efficiency_increase,
|
|
24
|
-
efficiencyPercentage: monthEndStatisticsPayload.zeni_ai_efficiency_percentage,
|
|
25
|
-
savedAmount: monthEndStatisticsPayload.zeni_ai_saved_amount,
|
|
26
|
-
savedHours: monthEndStatisticsPayload.zeni_ai_saved_hours,
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
const toMonthYearPeriods = (historicMonthYearPayload) => {
|
|
30
|
-
const historicMonthYears = historicMonthYearPayload.map((monthYearString) => {
|
|
31
|
-
const parsedDate = (0, zeniDayJS_1.date)(monthYearString, formatZeniDateFY_1.MM_YYYY_FORMAT);
|
|
32
|
-
return {
|
|
33
|
-
month: (0, timePeriod_1.toMonth)(parsedDate.month() + 1),
|
|
34
|
-
year: parsedDate.year(),
|
|
35
|
-
};
|
|
36
|
-
});
|
|
37
|
-
historicMonthYears.sort((a, b) => {
|
|
38
|
-
if (a.year !== b.year) {
|
|
39
|
-
return a.year - b.year; // Sort by year first
|
|
40
|
-
}
|
|
41
|
-
return a.month - b.month; // Then sort by month
|
|
42
|
-
});
|
|
43
|
-
return historicMonthYears;
|
|
44
|
-
};
|
|
45
|
-
const toMonthEndCloseChecksInfo = (payload, period) => ({
|
|
46
|
-
id: (0, timePeriod_1.toMonthYearPeriodId)(period),
|
|
47
|
-
insights: toMonthEndInsights(payload.insights),
|
|
48
|
-
monthEndCloseCheckList: payload.month_close_checks.map((monthCloseCheck) => toMonthEndCloseCheck(monthCloseCheck)),
|
|
49
|
-
auditSummary: {
|
|
50
|
-
auditScorePercentage: payload.audit_summary.audit_score_percentage,
|
|
51
|
-
auditReportLastGeneratedDate: payload.audit_summary.audit_report_last_generated_date != null
|
|
52
|
-
? (0, zeniDayJS_1.date)(payload.audit_summary.audit_report_last_generated_date)
|
|
53
|
-
: null,
|
|
54
|
-
},
|
|
55
|
-
zeniBookCloseDate: (0, zeniDayJS_1.date)(payload.zeni_book_close_date),
|
|
56
|
-
historicMonthYear: payload.history_month_and_year_flag != null
|
|
57
|
-
? toMonthYearPeriods(payload.history_month_and_year_flag)
|
|
58
|
-
: [],
|
|
59
|
-
});
|
|
60
|
-
exports.toMonthEndCloseChecksInfo = toMonthEndCloseChecksInfo;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ID } from '../../commonStateTypes/common';
|
|
2
|
-
import { MonthEndCloseChecksState } from './monthEndCloseChecksState';
|
|
3
|
-
import { MonthEndCloseChecksPayload } from './monthEndCloseChecksPayload';
|
|
4
|
-
import { MonthYearPeriod } from '../../commonStateTypes/timePeriod';
|
|
5
|
-
export declare const initialState: MonthEndCloseChecksState;
|
|
6
|
-
export declare const updateMonthEndCloseChecks: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
7
|
-
monthEndCloseChecksPayload: MonthEndCloseChecksPayload;
|
|
8
|
-
tenantId: ID;
|
|
9
|
-
period: MonthYearPeriod;
|
|
10
|
-
}, string>, clearAllMonthEndCloseChecks: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
11
|
-
declare const _default: import("@reduxjs/toolkit").Reducer<MonthEndCloseChecksState, import("@reduxjs/toolkit").AnyAction>;
|
|
12
|
-
export default _default;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.clearAllMonthEndCloseChecks = exports.updateMonthEndCloseChecks = exports.initialState = void 0;
|
|
5
|
-
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
-
const monthEndCloseChecksPayload_1 = require("./monthEndCloseChecksPayload");
|
|
7
|
-
exports.initialState = {
|
|
8
|
-
monthEndCloseChecksByTenantId: {},
|
|
9
|
-
};
|
|
10
|
-
const monthEndCloseChecks = (0, toolkit_1.createSlice)({
|
|
11
|
-
name: 'monthEndCloseChecks',
|
|
12
|
-
initialState: exports.initialState,
|
|
13
|
-
reducers: {
|
|
14
|
-
updateMonthEndCloseChecks(draft, action) {
|
|
15
|
-
const { monthEndCloseChecksPayload, tenantId, period } = action.payload;
|
|
16
|
-
const monthEndCloseChecks = (0, monthEndCloseChecksPayload_1.toMonthEndCloseChecksInfo)(monthEndCloseChecksPayload, period);
|
|
17
|
-
draft.monthEndCloseChecksByTenantId[tenantId] = Object.assign(Object.assign({}, draft.monthEndCloseChecksByTenantId[tenantId]), { [monthEndCloseChecks.id]: monthEndCloseChecks });
|
|
18
|
-
},
|
|
19
|
-
clearAllMonthEndCloseChecks(draft) {
|
|
20
|
-
draft.monthEndCloseChecksByTenantId = {};
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
_a = monthEndCloseChecks.actions, exports.updateMonthEndCloseChecks = _a.updateMonthEndCloseChecks, exports.clearAllMonthEndCloseChecks = _a.clearAllMonthEndCloseChecks;
|
|
25
|
-
exports.default = monthEndCloseChecks.reducer;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ID } from '../../commonStateTypes/common';
|
|
2
|
-
import { MonthEndCloseChecksInfo, MonthEndCloseChecksState } from './monthEndCloseChecksState';
|
|
3
|
-
import { MonthYearPeriod, MonthYearPeriodId } from '../../commonStateTypes/timePeriod';
|
|
4
|
-
export declare function getAllMonthEndCloseChecksForATenant(monthEndCloseChecksState: MonthEndCloseChecksState, tenantId: ID): MonthEndCloseChecksInfo[];
|
|
5
|
-
export declare function getMonthEndCloseChecksForATenantForSelectedPeriod(monthEndCloseChecksState: MonthEndCloseChecksState, tenantId: ID, monthYearPeriod: MonthYearPeriod): MonthEndCloseChecksInfo | undefined;
|
|
6
|
-
export declare function getMonthEndCloseChecksByTenantIds(monthEndCloseChecksState: MonthEndCloseChecksState, tenantIds: ID[], monthEndCloseChecksId: MonthYearPeriodId): MonthEndCloseChecksInfo[];
|
|
7
|
-
export declare function getMonthEndCloseChecksByTenantId(monthEndCloseChecksState: MonthEndCloseChecksState, tenantId: ID, monthEndCloseChecksId: MonthYearPeriodId): MonthEndCloseChecksInfo | undefined;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getMonthEndCloseChecksByTenantId = exports.getMonthEndCloseChecksByTenantIds = exports.getMonthEndCloseChecksForATenantForSelectedPeriod = exports.getAllMonthEndCloseChecksForATenant = void 0;
|
|
7
|
-
const get_1 = __importDefault(require("lodash/get"));
|
|
8
|
-
const timePeriod_1 = require("../../commonStateTypes/timePeriod");
|
|
9
|
-
function getAllMonthEndCloseChecksForATenant(monthEndCloseChecksState, tenantId) {
|
|
10
|
-
const allMonthEndCloseChecksForATenant = (0, get_1.default)(monthEndCloseChecksState.monthEndCloseChecksByTenantId, tenantId, undefined);
|
|
11
|
-
if (allMonthEndCloseChecksForATenant != null) {
|
|
12
|
-
return Object.values(allMonthEndCloseChecksForATenant);
|
|
13
|
-
}
|
|
14
|
-
return [];
|
|
15
|
-
}
|
|
16
|
-
exports.getAllMonthEndCloseChecksForATenant = getAllMonthEndCloseChecksForATenant;
|
|
17
|
-
function getMonthEndCloseChecksForATenantForSelectedPeriod(monthEndCloseChecksState, tenantId, monthYearPeriod) {
|
|
18
|
-
const monthYearPeriodId = (0, timePeriod_1.toMonthYearPeriodId)(monthYearPeriod);
|
|
19
|
-
const allMonthEndCloseChecksForATenant = (0, get_1.default)(monthEndCloseChecksState.monthEndCloseChecksByTenantId, tenantId, undefined);
|
|
20
|
-
if (allMonthEndCloseChecksForATenant != null) {
|
|
21
|
-
return allMonthEndCloseChecksForATenant[monthYearPeriodId];
|
|
22
|
-
}
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
25
|
-
exports.getMonthEndCloseChecksForATenantForSelectedPeriod = getMonthEndCloseChecksForATenantForSelectedPeriod;
|
|
26
|
-
function getMonthEndCloseChecksByTenantIds(monthEndCloseChecksState, tenantIds, monthEndCloseChecksId) {
|
|
27
|
-
const monthEndCloseChecks = tenantIds
|
|
28
|
-
.map((tenantId) => getMonthEndCloseChecksByTenantId(monthEndCloseChecksState, tenantId, monthEndCloseChecksId))
|
|
29
|
-
.filter((value) => value != null);
|
|
30
|
-
return monthEndCloseChecks;
|
|
31
|
-
}
|
|
32
|
-
exports.getMonthEndCloseChecksByTenantIds = getMonthEndCloseChecksByTenantIds;
|
|
33
|
-
function getMonthEndCloseChecksByTenantId(monthEndCloseChecksState, tenantId, monthEndCloseChecksId) {
|
|
34
|
-
return (0, get_1.default)((0, get_1.default)(monthEndCloseChecksState.monthEndCloseChecksByTenantId, tenantId, undefined), monthEndCloseChecksId, undefined);
|
|
35
|
-
}
|
|
36
|
-
exports.getMonthEndCloseChecksByTenantId = getMonthEndCloseChecksByTenantId;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ID } from '../../commonStateTypes/common';
|
|
2
|
-
import { MonthYearPeriod, MonthYearPeriodId } from '../../commonStateTypes/timePeriod';
|
|
3
|
-
import { ExpenseAutomationViewType } from '../../view/expenseAutomationView/expenseAutomationViewState';
|
|
4
|
-
import { ZeniDate } from '../../zeniDayJS';
|
|
5
|
-
export declare const ALL_MONTH_END_CLOSE_CHECKS_FREQUENCY: readonly ["Weekly", "Monthly"];
|
|
6
|
-
export declare const toMonthEndCloseCheckFrequency: (v?: string | undefined) => "Weekly" | "Monthly";
|
|
7
|
-
export declare type MonthEndCloseCheckFrequency = NonNullable<ReturnType<typeof toMonthEndCloseCheckFrequency>>;
|
|
8
|
-
export interface MonthEndCloseCheck {
|
|
9
|
-
id: ExpenseAutomationViewType;
|
|
10
|
-
title: string;
|
|
11
|
-
description: string;
|
|
12
|
-
progress: number;
|
|
13
|
-
frequency: MonthEndCloseCheckFrequency;
|
|
14
|
-
sequence: number;
|
|
15
|
-
}
|
|
16
|
-
export interface MonthEndInsights {
|
|
17
|
-
transactionsAutoCategorized: number;
|
|
18
|
-
vendorsWithFluctuations: number;
|
|
19
|
-
savedHours: number;
|
|
20
|
-
savedAmount: number;
|
|
21
|
-
efficiencyPercentage: number;
|
|
22
|
-
efficiency: number;
|
|
23
|
-
}
|
|
24
|
-
export interface MonthEndAuditSummary {
|
|
25
|
-
auditScorePercentage: number;
|
|
26
|
-
auditReportLastGeneratedDate: ZeniDate | null;
|
|
27
|
-
}
|
|
28
|
-
export interface MonthEndCloseChecksInfo {
|
|
29
|
-
insights: MonthEndInsights;
|
|
30
|
-
auditSummary: MonthEndAuditSummary;
|
|
31
|
-
monthEndCloseCheckList: MonthEndCloseCheck[];
|
|
32
|
-
id: MonthYearPeriodId;
|
|
33
|
-
zeniBookCloseDate: ZeniDate;
|
|
34
|
-
historicMonthYear: MonthYearPeriod[];
|
|
35
|
-
}
|
|
36
|
-
export interface MonthEndCloseChecksState {
|
|
37
|
-
monthEndCloseChecksByTenantId: Record<ID, Record<MonthYearPeriodId, MonthEndCloseChecksInfo>>;
|
|
38
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toMonthEndCloseCheckFrequency = exports.ALL_MONTH_END_CLOSE_CHECKS_FREQUENCY = void 0;
|
|
4
|
-
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
5
|
-
exports.ALL_MONTH_END_CLOSE_CHECKS_FREQUENCY = [
|
|
6
|
-
'Weekly',
|
|
7
|
-
'Monthly',
|
|
8
|
-
];
|
|
9
|
-
const toMonthEndCloseCheckFrequency = (v) => (0, stringToUnion_1.stringToUnion)(v !== null && v !== void 0 ? v : '', exports.ALL_MONTH_END_CLOSE_CHECKS_FREQUENCY);
|
|
10
|
-
exports.toMonthEndCloseCheckFrequency = toMonthEndCloseCheckFrequency;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { CountryList, CountryListKeyType, CountryListState } from './countryListState';
|
|
2
|
-
import { CountryListPayload } from './payloads/countryListPayload';
|
|
3
|
-
import { ZeniAPIStatus } from '../../responsePayload';
|
|
4
|
-
export declare const initialCountryList: CountryList;
|
|
5
|
-
export declare const initialState: CountryListState;
|
|
6
|
-
export declare const fetchCountryList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[countryListKey: "nationalityCountryList", cacheOverride?: any], {
|
|
7
|
-
countryListKey: "nationalityCountryList";
|
|
8
|
-
cacheOverride: any;
|
|
9
|
-
}, string, never, never>, fetchNationalityCountryList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateCountryList: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
10
|
-
countryListKey: CountryListKeyType;
|
|
11
|
-
countryListPayload: CountryListPayload[];
|
|
12
|
-
}, string>, updateCountryListFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
13
|
-
countryListKey: CountryListKeyType;
|
|
14
|
-
status: ZeniAPIStatus;
|
|
15
|
-
}, string>, clearCountryList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
16
|
-
declare const _default: import("@reduxjs/toolkit").Reducer<CountryListState, import("@reduxjs/toolkit").AnyAction>;
|
|
17
|
-
export default _default;
|