@zeniai/client-epic-state 4.12.98 → 4.13.0
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 +7 -0
- package/lib/commonStateTypes/common.d.ts +2 -0
- package/lib/commonStateTypes/common.js +5 -1
- package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.d.ts +1 -0
- package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.js +2 -1
- package/lib/commonStateTypes/timePeriod.d.ts +16 -0
- package/lib/commonStateTypes/timePeriod.js +31 -1
- package/lib/commonStateTypes/viewAndReport/reportIDHelper.d.ts +1 -0
- package/lib/commonStateTypes/viewAndReport/reportIDHelper.js +3 -1
- package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +2 -0
- package/lib/entity/account/accountState.d.ts +1 -1
- package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
- 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 +4 -0
- package/lib/entity/company/companyPayload.js +6 -3
- package/lib/entity/company/companyReducer.d.ts +4 -1
- package/lib/entity/company/companyReducer.js +6 -2
- package/lib/entity/company/companyStateTypes.d.ts +5 -1
- package/lib/entity/file/fileState.d.ts +3 -3
- package/lib/entity/file/fileState.js +2 -0
- package/lib/entity/forecast/forecastState.d.ts +1 -1
- package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +1 -0
- package/lib/entity/jeSchedules/jeSchedulesPayload.js +7 -1
- package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +2 -2
- package/lib/entity/jeSchedules/jeSchedulesSelector.d.ts +3 -1
- package/lib/entity/jeSchedules/jeSchedulesSelector.js +2 -1
- package/lib/entity/jeSchedules/jeSchedulesState.d.ts +3 -1
- package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +2 -0
- package/lib/entity/jeSchedules/jeSchedulesTypes.js +12 -1
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksPayload.d.ts +32 -0
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksPayload.js +53 -0
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksReducer.d.ts +12 -0
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksReducer.js +25 -0
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksSelector.d.ts +7 -0
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksSelector.js +36 -0
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.d.ts +38 -0
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.js +10 -0
- 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/tenant/clearAllEpic.d.ts +11 -2
- package/lib/entity/tenant/clearAllEpic.js +18 -0
- package/lib/entity/tenant/epic/fetchAllTenantsEpic.d.ts +4 -1
- package/lib/entity/tenant/epic/fetchAllTenantsEpic.js +32 -2
- package/lib/entity/tenant/tenantPayload.d.ts +1 -0
- package/lib/entity/tenant/tenantReducer.js +3 -0
- package/lib/entity/tenant/tenantState.d.ts +1 -0
- 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 +1 -0
- package/lib/entity/transaction/transactionSelector.js +7 -1
- package/lib/entity/user/userPayload.d.ts +1 -0
- package/lib/entity/user/userReducer.js +9 -8
- package/lib/entity/user/userState.d.ts +1 -0
- package/lib/entity/vendor/__mocks__/vendorStateMocks.d.ts +1 -0
- package/lib/entity/vendor/__mocks__/vendorStateMocks.js +35 -1
- package/lib/entity/vendor/vendorPayload.js +3 -2
- package/lib/entity/vendor/vendorState.d.ts +3 -3
- package/lib/entity/vendor/vendorType.d.ts +0 -2
- package/lib/entity/vendor/vendorType.js +1 -4
- package/lib/epic.d.ts +15 -1
- package/lib/epic.js +15 -1
- package/lib/index.d.ts +52 -13
- package/lib/index.js +83 -25
- package/lib/reducer.d.ts +28 -1
- package/lib/reducer.js +28 -1
- package/lib/view/addressView/__mocks__/json/createCompanyAddressSuccess.json +7 -1
- package/lib/view/addressView/__mocks__/json/createCompanyUserAddressSuccess.json +7 -1
- package/lib/view/addressView/addressViewState.d.ts +1 -1
- package/lib/view/addressView/toAddressViewLocalData.js +5 -0
- 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/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/companyMonthEndReportView/companyMonthEndReportViewReducer.d.ts +10 -5
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewReducer.js +10 -7
- 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 +5 -3
- 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 +1 -6
- package/lib/view/companyView/selectorHelpers/getCompanyView.js +4 -0
- package/lib/view/companyView/types/cockpitTypes.d.ts +2 -2
- package/lib/view/companyView/types/companyPassport/companyUsersLocalData.d.ts +2 -0
- package/lib/view/companyView/types/companyPassport/companyUsersLocalData.js +7 -1
- package/lib/view/companyView/types/companyView.d.ts +1 -0
- package/lib/view/countryList/countryListReducer.d.ts +17 -0
- package/lib/view/countryList/countryListReducer.js +58 -0
- package/lib/view/countryList/countryListSelector.d.ts +7 -0
- package/lib/view/countryList/countryListSelector.js +13 -0
- package/lib/view/countryList/countryListState.d.ts +12 -0
- package/lib/view/countryList/countryListState.js +2 -0
- package/lib/view/countryList/epics/fetchCountryListEpic.d.ts +6 -0
- package/lib/view/countryList/epics/fetchCountryListEpic.js +19 -0
- package/lib/view/countryList/epics/fetchNationalityCountryListEpic.d.ts +7 -0
- package/lib/view/countryList/epics/fetchNationalityCountryListEpic.js +38 -0
- package/lib/view/countryList/payloads/countryListPayload.d.ts +6 -0
- package/lib/view/countryList/payloads/countryListPayload.js +10 -0
- package/lib/view/countryList/payloads/nationalityCountryListPayload.d.ts +11 -0
- package/lib/view/countryList/payloads/nationalityCountryListPayload.js +2 -0
- package/lib/view/dashboard/dashboardEpic.d.ts +2 -1
- package/lib/view/dashboard/dashboardEpic.js +22 -2
- package/lib/view/dashboard/dashboardReducer.d.ts +3 -2
- package/lib/view/dashboard/dashboardReducer.js +2 -1
- package/lib/view/dashboard/dashboardSelector.d.ts +2 -0
- package/lib/view/dashboard/dashboardSelector.js +10 -2
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +10 -0
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +72 -0
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +11 -0
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +53 -0
- package/lib/view/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic.d.ts +11 -0
- package/lib/view/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic.js +66 -0
- package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.d.ts +7 -0
- package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.js +39 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.d.ts +7 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.js +22 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.d.ts +8 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +59 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.d.ts +7 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.js +44 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.d.ts +6 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.js +28 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.d.ts +8 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.js +44 -0
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMissingReceiptsEpic.d.ts +8 -0
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMissingReceiptsEpic.js +58 -0
- package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.d.ts +10 -0
- package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.js +12 -0
- package/lib/view/expenseAutomationView/expenseAutomationViewPayload.d.ts +3 -0
- package/lib/view/expenseAutomationView/expenseAutomationViewPayload.js +2 -0
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +17 -0
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +66 -0
- package/lib/view/expenseAutomationView/expenseAutomationViewSelector.d.ts +3 -0
- package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +97 -0
- package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +11 -0
- package/lib/view/expenseAutomationView/expenseAutomationViewState.js +14 -0
- package/lib/view/expenseAutomationView/helpers/helpers.d.ts +7 -0
- package/lib/view/expenseAutomationView/helpers/helpers.js +67 -0
- package/lib/view/expenseAutomationView/payload/fluxAnalysisPayload.d.ts +76 -0
- package/lib/view/expenseAutomationView/payload/fluxAnalysisPayload.js +9 -0
- package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.d.ts +36 -0
- package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.js +58 -0
- package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.d.ts +16 -0
- package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.js +2 -0
- package/lib/view/expenseAutomationView/reducers/fluxAnalysisViewReducer.d.ts +34 -0
- package/lib/view/expenseAutomationView/reducers/fluxAnalysisViewReducer.js +205 -0
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +53 -0
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +245 -0
- package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.d.ts +31 -0
- package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +130 -0
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +5 -0
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +45 -0
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +35 -0
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +47 -0
- package/lib/view/expenseAutomationView/selectorTypes/fluxAnalysisViewSelectorTypes.d.ts +32 -0
- package/lib/view/expenseAutomationView/selectorTypes/fluxAnalysisViewSelectorTypes.js +2 -0
- package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.d.ts +28 -0
- package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.js +2 -0
- package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.d.ts +11 -0
- package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.js +2 -0
- package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.d.ts +3 -0
- package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.js +55 -0
- package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.d.ts +7 -0
- package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +95 -0
- package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.d.ts +3 -0
- package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.js +61 -0
- package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.d.ts +53 -0
- package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.js +5 -0
- package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +31 -0
- package/lib/view/expenseAutomationView/types/jeSchedulesViewState.js +2 -0
- package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +20 -0
- package/lib/view/expenseAutomationView/types/missingReceiptsViewState.js +13 -0
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +28 -0
- package/lib/view/expenseAutomationView/types/transactionsViewState.js +15 -0
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
- package/lib/view/monthEndCloseChecksView/epics/fetchMonthEndCloseChecksEpic.d.ts +8 -0
- package/lib/view/monthEndCloseChecksView/epics/fetchMonthEndCloseChecksEpic.js +58 -0
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewPayload.d.ts +3 -0
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewPayload.js +2 -0
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewReducer.d.ts +16 -0
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewReducer.js +36 -0
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewSelector.d.ts +10 -0
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewSelector.js +27 -0
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewState.d.ts +5 -0
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewState.js +2 -0
- package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerViewEpic.d.ts +8 -1
- package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerViewEpic.js +3 -1
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +5 -4
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +2 -0
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +6 -3
- 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 +3 -2
- 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 +19 -5
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.d.ts +8 -3
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.js +39 -57
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +13 -8
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.js +19 -12
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.d.ts +1 -0
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.js +4 -3
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailState.d.ts +2 -0
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +1 -4
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +2 -0
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +3 -0
- package/lib/view/spendManagement/billPay/editBillView/epics/parseInvoiceToBillEpic.js +2 -2
- package/lib/view/spendManagement/billPay/internationalWire/internationalWireSelector.d.ts +2 -1
- package/lib/view/spendManagement/billPay/internationalWireVerification/epics/fetchIntlVerificationFormEpic.d.ts +7 -0
- package/lib/view/spendManagement/billPay/internationalWireVerification/epics/fetchIntlVerificationFormEpic.js +36 -0
- package/lib/view/spendManagement/billPay/internationalWireVerification/epics/initializeIntlVerificationFormEpic.d.ts +6 -0
- package/lib/view/spendManagement/billPay/internationalWireVerification/epics/initializeIntlVerificationFormEpic.js +42 -0
- package/lib/view/spendManagement/billPay/internationalWireVerification/epics/submitIntlVerificationEpic.d.ts +9 -0
- package/lib/view/spendManagement/billPay/internationalWireVerification/epics/submitIntlVerificationEpic.js +67 -0
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationPayload.d.ts +26 -0
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationPayload.js +22 -0
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer.d.ts +22 -0
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer.js +89 -0
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationSelector.d.ts +15 -0
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationSelector.js +30 -0
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationState.d.ts +20 -0
- package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationState.js +2 -0
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +1 -1
- package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.d.ts +1 -1
- package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +31 -6
- package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.d.ts +2 -2
- package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +5 -2
- package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +4 -1
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +6 -2
- package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +1 -0
- package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +4 -0
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/parseReceiptsToRemiEpic.js +2 -2
- package/lib/view/subscriptionView/types/subscriptionTypes.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/vendorReviewView/common/state/commonTypes.d.ts +1 -1
- package/lib/view/zeniAccStatementList/zeniAccStatementList.d.ts +2 -5
- package/package.json +1 -1
- package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.d.ts +0 -0
- package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.js +0 -1
- package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.d.ts +0 -0
- package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.js +0 -1
package/lib/reducer.js
CHANGED
|
@@ -30,6 +30,13 @@ exports.initialRootState = void 0;
|
|
|
30
30
|
const redux_1 = require("redux");
|
|
31
31
|
const tenantReducer_1 = __importStar(require("./entity/tenant/tenantReducer"));
|
|
32
32
|
const accountReducer_1 = __importStar(require("./entity/account/accountReducer"));
|
|
33
|
+
const monthEndCloseChecksReducer_1 = __importStar(require("./entity/monthEndCloseChecks/monthEndCloseChecksReducer"));
|
|
34
|
+
const monthEndCloseChecksViewReducer_1 = __importStar(require("./view/monthEndCloseChecksView/monthEndCloseChecksViewReducer"));
|
|
35
|
+
const expenseAutomationViewReducer_1 = __importStar(require("./view/expenseAutomationView/expenseAutomationViewReducer"));
|
|
36
|
+
const transactionsViewReducer_1 = __importStar(require("./view/expenseAutomationView/reducers/transactionsViewReducer"));
|
|
37
|
+
const missingReceiptsViewReducer_1 = __importStar(require("./view/expenseAutomationView/reducers/missingReceiptsViewReducer"));
|
|
38
|
+
const jeSchedulesViewReducer_1 = __importStar(require("./view/expenseAutomationView/reducers/jeSchedulesViewReducer"));
|
|
39
|
+
const fluxAnalysisViewReducer_1 = __importStar(require("./view/expenseAutomationView/reducers/fluxAnalysisViewReducer"));
|
|
33
40
|
const customerIncomeTrendReducer_1 = __importStar(require("./entity/customerIncome/customerIncomeTrendReducer"));
|
|
34
41
|
const vendorExpenseReducer_1 = __importStar(require("./entity/vendorExpense/vendorExpenseReducer"));
|
|
35
42
|
const entityReducer_1 = __importStar(require("./entity/genericEntity/entityReducer"));
|
|
@@ -79,6 +86,7 @@ const companyViewReducer_1 = __importStar(require("./view/companyView/companyVie
|
|
|
79
86
|
const accountingSummaryReducer_1 = __importStar(require("./entity/portfolio/accountingSummary/accountingSummaryReducer"));
|
|
80
87
|
const addressViewReducer_1 = __importStar(require("./view/addressView/addressViewReducer"));
|
|
81
88
|
const accountListReducer_1 = __importStar(require("./view/accountList/accountListReducer"));
|
|
89
|
+
const countryListReducer_1 = __importStar(require("./view/countryList/countryListReducer"));
|
|
82
90
|
const merchantListReducer_1 = __importStar(require("./view/spendManagement/merchantList/merchantListReducer"));
|
|
83
91
|
const classListReducer_1 = __importStar(require("./view/classList/classListReducer"));
|
|
84
92
|
const classReducer_1 = __importStar(require("./entity/class/classReducer"));
|
|
@@ -206,6 +214,7 @@ const billsBulkActionViewReducer_1 = __importStar(require("./view/spendManagemen
|
|
|
206
214
|
const remisBulkActionViewReducer_1 = __importStar(require("./view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewReducer"));
|
|
207
215
|
const vendorFiling1099ListReducer_1 = __importStar(require("./view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListReducer"));
|
|
208
216
|
const vendorFiling1099UploadDetailsReducer_1 = __importStar(require("./view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsReducer"));
|
|
217
|
+
const internationalWireVerificationReducer_1 = __importStar(require("./view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer"));
|
|
209
218
|
// Note: Please maintain strict alphabetical order
|
|
210
219
|
const initialEntitiesState = {
|
|
211
220
|
accountGroupState: accountGroupReducer_1.initialState,
|
|
@@ -236,6 +245,7 @@ const initialEntitiesState = {
|
|
|
236
245
|
insightState: insightReducer_1.initialState,
|
|
237
246
|
jeSchedulesState: jeSchedulesReducer_1.initialState,
|
|
238
247
|
merchantState: merchantReducer_1.initialState,
|
|
248
|
+
monthEndCloseChecksState: monthEndCloseChecksReducer_1.initialState,
|
|
239
249
|
notificationState: notificationReducer_1.initialState,
|
|
240
250
|
onboardingCustomerState: onboardingCustomerReducer_1.initialState,
|
|
241
251
|
paymentAccountState: paymentAccountReducer_1.initialState,
|
|
@@ -307,6 +317,7 @@ const initialViewsState = {
|
|
|
307
317
|
companyMonthEndReportViewState: companyMonthEndReportViewReducer_1.initialState,
|
|
308
318
|
companyTaskManagerViewState: companyTaskManagerViewReducer_1.initialState,
|
|
309
319
|
companyViewState: companyViewReducer_1.initialState,
|
|
320
|
+
countryListState: countryListReducer_1.initialState,
|
|
310
321
|
dashboardState: dashboardReducer_1.initialState,
|
|
311
322
|
depositAccountListState: depositAccountListReducer_1.initialState,
|
|
312
323
|
depositAccountTransactionListState: depositAccountTransactionListReducer_1.initialState,
|
|
@@ -314,6 +325,11 @@ const initialViewsState = {
|
|
|
314
325
|
editRemiDetailViewState: editRemiViewReducer_1.initialState,
|
|
315
326
|
entityAutoCompleteState: entityAutoCompleteReducer_1.initialState,
|
|
316
327
|
entityRecommendationState: recommendationReducer_1.initialState,
|
|
328
|
+
expenseAutomationFluxAnalysisViewState: fluxAnalysisViewReducer_1.initialState,
|
|
329
|
+
expenseAutomationJESchedulesViewState: jeSchedulesViewReducer_1.initialState,
|
|
330
|
+
expenseAutomationMissingReceiptsViewState: missingReceiptsViewReducer_1.initialState,
|
|
331
|
+
expenseAutomationTransactionsViewState: transactionsViewReducer_1.initialState,
|
|
332
|
+
expenseAutomationViewState: expenseAutomationViewReducer_1.initialState,
|
|
317
333
|
fileViewState: fileViewState_1.initialFileViewState,
|
|
318
334
|
financeStatementState: financeStatementReducer_1.initialFinanceStatementState,
|
|
319
335
|
forecastListState: forecastListReducer_1.initialState,
|
|
@@ -321,8 +337,10 @@ const initialViewsState = {
|
|
|
321
337
|
globalMerchantViewState: globalMerchantViewReducer_1.initialState,
|
|
322
338
|
insightsCardState: insightsCardReducer_1.initialState,
|
|
323
339
|
internationalWireState: internationalWireReducer_1.initialState,
|
|
340
|
+
internationalWireVerificationState: internationalWireVerificationReducer_1.initialState,
|
|
324
341
|
magicLinkViewState: magicLinkViewReducer_1.initialState,
|
|
325
342
|
merchantListState: merchantListReducer_1.initialState,
|
|
343
|
+
monthEndCloseChecksViewState: monthEndCloseChecksViewReducer_1.initialState,
|
|
326
344
|
netBurnOrIncomeClassesViewState: netBurnOrIncomeClassesViewReducer_1.initialState,
|
|
327
345
|
netBurnOrIncomeState: netBurnOrIncomeReducer_1.initialState,
|
|
328
346
|
netBurnOrIncomeStoryCardState: netBurnOrIncomeStoryCardReducer_1.initialState,
|
|
@@ -422,8 +440,8 @@ const entityReducers = {
|
|
|
422
440
|
insightState: insightReducer_1.default,
|
|
423
441
|
jeSchedulesState: jeSchedulesReducer_1.default,
|
|
424
442
|
merchantState: merchantReducer_1.default,
|
|
443
|
+
monthEndCloseChecksState: monthEndCloseChecksReducer_1.default,
|
|
425
444
|
notificationState: notificationReducer_1.default,
|
|
426
|
-
toastNotificationState: toastNotificationReducer_1.default,
|
|
427
445
|
onboardingCustomerState: onboardingCustomerReducer_1.default,
|
|
428
446
|
paymentAccountState: paymentAccountReducer_1.default,
|
|
429
447
|
paymentInstrumentState: paymentInstrumentReducer_1.default,
|
|
@@ -444,6 +462,7 @@ const entityReducers = {
|
|
|
444
462
|
taskState: taskReducer_1.default,
|
|
445
463
|
taskSummaryState: taskSummaryReducer_1.default,
|
|
446
464
|
tenantState: tenantReducer_1.default,
|
|
465
|
+
toastNotificationState: toastNotificationReducer_1.default,
|
|
447
466
|
transactionState: transactionReducer_1.default,
|
|
448
467
|
userRoleState: userRoleReducer_1.default,
|
|
449
468
|
userState: userReducer_1.default,
|
|
@@ -492,6 +511,7 @@ const viewReducers = {
|
|
|
492
511
|
companyMonthEndReportViewState: companyMonthEndReportViewReducer_1.default,
|
|
493
512
|
companyTaskManagerViewState: companyTaskManagerViewReducer_1.default,
|
|
494
513
|
companyViewState: companyViewReducer_1.default,
|
|
514
|
+
countryListState: countryListReducer_1.default,
|
|
495
515
|
dashboardState: dashboardReducer_1.default,
|
|
496
516
|
depositAccountListState: depositAccountListReducer_1.default,
|
|
497
517
|
depositAccountTransactionListState: depositAccountTransactionListReducer_1.default,
|
|
@@ -499,6 +519,11 @@ const viewReducers = {
|
|
|
499
519
|
editRemiDetailViewState: editRemiViewReducer_1.default,
|
|
500
520
|
entityAutoCompleteState: entityAutoCompleteReducer_1.default,
|
|
501
521
|
entityRecommendationState: recommendationReducer_1.default,
|
|
522
|
+
expenseAutomationFluxAnalysisViewState: fluxAnalysisViewReducer_1.default,
|
|
523
|
+
expenseAutomationJESchedulesViewState: jeSchedulesViewReducer_1.default,
|
|
524
|
+
expenseAutomationMissingReceiptsViewState: missingReceiptsViewReducer_1.default,
|
|
525
|
+
expenseAutomationTransactionsViewState: transactionsViewReducer_1.default,
|
|
526
|
+
expenseAutomationViewState: expenseAutomationViewReducer_1.default,
|
|
502
527
|
fileViewState: fileViewReducer_1.default,
|
|
503
528
|
financeStatementState: financeStatementReducer_1.default,
|
|
504
529
|
forecastListState: forecastListReducer_1.default,
|
|
@@ -506,8 +531,10 @@ const viewReducers = {
|
|
|
506
531
|
globalMerchantViewState: globalMerchantViewReducer_1.default,
|
|
507
532
|
insightsCardState: insightsCardReducer_1.default,
|
|
508
533
|
internationalWireState: internationalWireReducer_1.default,
|
|
534
|
+
internationalWireVerificationState: internationalWireVerificationReducer_1.default,
|
|
509
535
|
magicLinkViewState: magicLinkViewReducer_1.default,
|
|
510
536
|
merchantListState: merchantListReducer_1.default,
|
|
537
|
+
monthEndCloseChecksViewState: monthEndCloseChecksViewReducer_1.default,
|
|
511
538
|
netBurnOrIncomeClassesViewState: netBurnOrIncomeClassesViewReducer_1.default,
|
|
512
539
|
netBurnOrIncomeState: netBurnOrIncomeReducer_1.default,
|
|
513
540
|
netBurnOrIncomeStoryCardState: netBurnOrIncomeStoryCardReducer_1.default,
|
|
@@ -53,7 +53,12 @@
|
|
|
53
53
|
"primary_funding_account": {
|
|
54
54
|
"account_id": null,
|
|
55
55
|
"account_type": null
|
|
56
|
-
}
|
|
56
|
+
},
|
|
57
|
+
"international_wire_onboarding_status": {
|
|
58
|
+
"code": "verified",
|
|
59
|
+
"name": "Verified"
|
|
60
|
+
},
|
|
61
|
+
"international_wire_onboarding_details": {}
|
|
57
62
|
},
|
|
58
63
|
"reimbursement_info": {
|
|
59
64
|
"is_reimbursement_enabled": true,
|
|
@@ -158,6 +163,7 @@
|
|
|
158
163
|
"company_monthly_expenses_max": 100000,
|
|
159
164
|
"phone": "+1 (732) 497-2351",
|
|
160
165
|
"company_address_id": "a_8a1498b2-ab42-4c46-bda1-3bd946ec3cc3",
|
|
166
|
+
"registered_address_id": "a_8a1498b2-ab42-4c46-bda1-3bd946ec3cc3",
|
|
161
167
|
"company_group": {
|
|
162
168
|
"id": "z4",
|
|
163
169
|
"name": null
|
|
@@ -135,7 +135,12 @@
|
|
|
135
135
|
"primary_funding_account": {
|
|
136
136
|
"account_id": null,
|
|
137
137
|
"account_type": null
|
|
138
|
-
}
|
|
138
|
+
},
|
|
139
|
+
"international_wire_onboarding_status": {
|
|
140
|
+
"code": "verified",
|
|
141
|
+
"name": "Verified"
|
|
142
|
+
},
|
|
143
|
+
"international_wire_onboarding_details": {}
|
|
139
144
|
},
|
|
140
145
|
"reimbursement_info": {
|
|
141
146
|
"is_reimbursement_enabled": true,
|
|
@@ -240,6 +245,7 @@
|
|
|
240
245
|
"company_monthly_expenses_max": 100000,
|
|
241
246
|
"phone": "+1 (732) 497-2351",
|
|
242
247
|
"company_address_id": "a_8a1498b2-ab42-4c46-bda1-3bd946ec3cc3",
|
|
248
|
+
"registered_address_id": "a_8a1498b2-ab42-4c46-bda1-3bd946ec3cc3",
|
|
243
249
|
"company_group": {
|
|
244
250
|
"id": "z4",
|
|
245
251
|
"name": null
|
|
@@ -2,7 +2,7 @@ import { FetchStateAndError, ID } from '../../commonStateTypes/common';
|
|
|
2
2
|
import { Address } from '../../entity/address/addressState';
|
|
3
3
|
import { OfficerType } from '../companyView/types/companyPassport/companyUsersLocalData';
|
|
4
4
|
export declare type AddressUpdatableInfo = Omit<Address, 'updateTime' | 'createTime' | 'addressId'>;
|
|
5
|
-
export declare type AddressType = 'company_address' | `officer_${OfficerType}_address` | 'vendor_address' | 'user_address';
|
|
5
|
+
export declare type AddressType = 'company_address' | 'company_registered_address' | `officer_${OfficerType}_address` | 'vendor_address' | 'user_address';
|
|
6
6
|
export interface NewAddressData {
|
|
7
7
|
addressType: AddressType;
|
|
8
8
|
parentEntityId?: {
|
|
@@ -20,6 +20,11 @@ function toAddressViewLocalData(companyView) {
|
|
|
20
20
|
company_address: getAddressUpdatableInfoFromAddress(companyView.companyAddress),
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
+
if (companyView.registeredAddress != null) {
|
|
24
|
+
newAddresses = Object.assign({}, newAddresses, {
|
|
25
|
+
company_registered_address: getAddressUpdatableInfoFromAddress(companyView.registeredAddress),
|
|
26
|
+
});
|
|
27
|
+
}
|
|
23
28
|
companyView.companyOfficers
|
|
24
29
|
.slice(0, companyUsersLocalData_1.ALL_OFFICERS.length)
|
|
25
30
|
.sort((a, b) => { var _a; return ((_a = a.user.createTime) === null || _a === void 0 ? void 0 : _a.isAfter(b.user.createTime)) === true ? 1 : -1; })
|
|
@@ -5,9 +5,9 @@ import { ZeniDate } from '../../zeniDayJS';
|
|
|
5
5
|
import { AuditSummary } from '../reviewCompanyView/reviewCompanyViewState';
|
|
6
6
|
export declare const toAuditRuleEntityType: (v: string) => "dashboard" | "transactions" | "reports";
|
|
7
7
|
export declare type AuditRuleEntityType = ReturnType<typeof toAuditRuleEntityType>;
|
|
8
|
-
declare const toAuditRuleEntityIdType: (v: string) => "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" | "uncategorized-expense" | "uncategorized-income";
|
|
8
|
+
declare const toAuditRuleEntityIdType: (v: string) => "cash_balance" | "card_balance" | "expense_automation_card" | "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" | "flux_analysis_operating_expense" | "uncategorized-expense" | "uncategorized-income";
|
|
9
9
|
export declare type AuditRuleEntityIdType = ReturnType<typeof toAuditRuleEntityIdType>;
|
|
10
|
-
export declare const toAuditRuleTypeIdType: (v: string) => "
|
|
10
|
+
export declare const toAuditRuleTypeIdType: (v: string) => "business" | "accounting";
|
|
11
11
|
declare type AuditRuleTypeIdType = ReturnType<typeof toAuditRuleTypeIdType>;
|
|
12
12
|
export declare const AUDIT_REPORT_ACTION_TYPES: readonly ["generate", "view"];
|
|
13
13
|
export declare const toAuditReportActionType: (v: string) => "view" | "generate";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RootState } from '../../reducer';
|
|
2
2
|
export declare const getBillPayCardReport: (state: RootState) => {
|
|
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";
|
|
3
|
+
reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "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" | "flux_analysis_operating_expense";
|
|
4
4
|
reportTitle: string;
|
|
5
5
|
version: string | number | undefined;
|
|
6
6
|
fetchState: import("../..").FetchState;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="url-parse" />
|
|
2
2
|
import { RootState } from '../../reducer';
|
|
3
3
|
export declare const getCardBalance: (state: RootState) => {
|
|
4
|
-
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
|
+
reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "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" | "flux_analysis_operating_expense";
|
|
5
5
|
reportTitle: string;
|
|
6
6
|
version: string | number | undefined;
|
|
7
7
|
status: import("../..").Status | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="url-parse" />
|
|
2
2
|
import { RootState } from '../../reducer';
|
|
3
3
|
export declare const getCashBalance: (state: RootState) => {
|
|
4
|
-
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
|
+
reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "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" | "flux_analysis_operating_expense";
|
|
5
5
|
reportTitle: string;
|
|
6
6
|
version: string | number | undefined;
|
|
7
7
|
status: import("../..").Status | undefined;
|
|
@@ -15,7 +15,7 @@ export declare const getCashInCashOut: (accountState: AccountState, accountGroup
|
|
|
15
15
|
firstMonthOfFY: 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
16
16
|
dataAvailable: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
|
|
17
17
|
availableNumberOfPeriods: number | undefined;
|
|
18
|
-
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";
|
|
18
|
+
reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "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" | "flux_analysis_operating_expense";
|
|
19
19
|
reportTitle: string;
|
|
20
20
|
version: string | number | undefined;
|
|
21
21
|
status: import("../..").Status | undefined;
|
|
@@ -12,7 +12,7 @@ export declare const getCashPosition: (accountState: AccountState, cashPositionS
|
|
|
12
12
|
firstMonthOfFY: 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
13
13
|
dataAvailable: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
|
|
14
14
|
availableNumberOfPeriods: number | undefined;
|
|
15
|
-
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";
|
|
15
|
+
reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "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" | "flux_analysis_operating_expense";
|
|
16
16
|
reportTitle: string;
|
|
17
17
|
version: string | number | undefined;
|
|
18
18
|
status: import("../..").Status | undefined;
|
|
@@ -9,7 +9,6 @@ import { ClassBase } from '../../../entity/class/classState';
|
|
|
9
9
|
import { BankAccount } from '../../../entity/bankAccount/bankAccount';
|
|
10
10
|
import { Contact } from '../../../entity/billPay/contact/contact';
|
|
11
11
|
import { Address } from '../../../entity/address/addressState';
|
|
12
|
-
import { Country } from '../../spendManagement/billPay/billPayConfig/billPayConfigState';
|
|
13
12
|
import { NewAddressData } from '../../addressView/addressViewState';
|
|
14
13
|
import { BankAccountSelectorView } from '../../bankAccountView/bankAccountViewSelector';
|
|
15
14
|
import { TrendWithTransactionsView } from '../../trendWithTransactions/trendWithTransactionsSelector';
|
|
@@ -21,6 +20,7 @@ import { VendorType } from '../../vendorTypeList/vendorTypeListPayload';
|
|
|
21
20
|
import { NestedAccountHierarchyForReport } from '../../../commonStateTypes/accountView/nestedAccountID';
|
|
22
21
|
import { NestedClassHierarchyForReport } from '../../../commonStateTypes/classesView/nestedClassID';
|
|
23
22
|
import { PaymentInstrument } from '../../../entity/paymentInstrument/paymentInstrument';
|
|
23
|
+
import { Country } from '../../countryList/countryListState';
|
|
24
24
|
export interface VendorDetails {
|
|
25
25
|
vendorBasic: VendorBasic | undefined;
|
|
26
26
|
bankAccountsUpdated: BankAccount[];
|
|
@@ -9,34 +9,38 @@ export declare const initialAuditSummaryData: AuditSummaryData;
|
|
|
9
9
|
export declare const initialCompanyMonthEndReportTemplatesData: CompanyMonthReportTemplates;
|
|
10
10
|
export declare const initialSendMonthEndReportStatus: FetchStateAndError;
|
|
11
11
|
export declare const initialImproveUsingZeniGPTStatus: FetchStateAndError;
|
|
12
|
-
export declare const fetchImproveUsingZeniGPT: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[text: string, companyId: string], {
|
|
12
|
+
export declare const fetchImproveUsingZeniGPT: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[text: string, companyId: string, tenantId?: string | undefined], {
|
|
13
13
|
text: string;
|
|
14
14
|
companyId: string;
|
|
15
|
+
tenantId: string | undefined;
|
|
15
16
|
}, string, never, never>, updateImproveUsingZeniGPTSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[text: string, companyId: string], {
|
|
16
17
|
text: string;
|
|
17
18
|
companyId: string;
|
|
18
19
|
}, string, never, never>, updateImproveUsingZeniGPTFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[status: ZeniAPIStatus<Record<string, unknown>>, companyId: string], {
|
|
19
20
|
status: ZeniAPIStatus<Record<string, unknown>>;
|
|
20
21
|
companyId: string;
|
|
21
|
-
}, string, never, never>, fetchCompanyMonthEndReportView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride: any, companyId: string], {
|
|
22
|
+
}, string, never, never>, fetchCompanyMonthEndReportView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride: any, companyId: string, tenantId?: string | undefined], {
|
|
22
23
|
cacheOverride: any;
|
|
23
24
|
companyId: string;
|
|
25
|
+
tenantId: string | undefined;
|
|
24
26
|
}, string, never, never>, updateCompanyMonthEndReportViewOnSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, data: CompanyMonthEndReportViewPayload], {
|
|
25
27
|
companyId: string;
|
|
26
28
|
data: CompanyMonthEndReportViewPayload;
|
|
27
29
|
}, string, never, never>, updateCompanyMonthEndReportViewOnFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, error: ZeniAPIStatus<Record<string, unknown>>], {
|
|
28
30
|
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
29
31
|
companyId: string;
|
|
30
|
-
}, string, never, never>, sendCompanyMonthEndReport: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, fileId?: string | undefined], {
|
|
32
|
+
}, string, never, never>, sendCompanyMonthEndReport: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, fileId?: string | undefined, tenantId?: string | undefined], {
|
|
31
33
|
companyId: string;
|
|
32
34
|
fileId: string | undefined;
|
|
33
|
-
|
|
35
|
+
tenantId: string | undefined;
|
|
36
|
+
}, string, never, never>, saveCompanyMonthEndReport: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[recipientEmailList: any, companyId: string, subject: string, isPreview: boolean, fileId?: string | undefined, zeniRequestsHtml?: string | undefined, tenantId?: string | undefined], {
|
|
34
37
|
recipientEmailList: any;
|
|
35
38
|
companyId: string;
|
|
36
39
|
subject: string;
|
|
37
40
|
isPreview: boolean;
|
|
38
41
|
fileId: string | undefined;
|
|
39
42
|
zeniRequestsHtml: string | undefined;
|
|
43
|
+
tenantId: string | undefined;
|
|
40
44
|
}, string, never, never>, updateStatusForSendCompanyMonthEndReport: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, status: FetchState, error?: ZeniAPIStatus<Record<string, unknown>> | undefined], {
|
|
41
45
|
companyId: string;
|
|
42
46
|
status: FetchState;
|
|
@@ -71,8 +75,9 @@ export declare const fetchImproveUsingZeniGPT: import("@reduxjs/toolkit").Action
|
|
|
71
75
|
companyId: ID;
|
|
72
76
|
reportSentDate: ZeniDate;
|
|
73
77
|
data: CompanyMonthEndHistoricReportPayload;
|
|
74
|
-
}, string>, fetchCompanyMonthEndReportTemplates: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string], {
|
|
78
|
+
}, string>, fetchCompanyMonthEndReportTemplates: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, tenantId?: string | undefined], {
|
|
75
79
|
companyId: string;
|
|
80
|
+
tenantId: string | undefined;
|
|
76
81
|
}, string, never, never>, updateCompanyMonthEndReportTemplatesOnFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
77
82
|
error: ZeniAPIStatus;
|
|
78
83
|
companyId: ID;
|
|
@@ -48,8 +48,8 @@ const companyMonthEndReportView = (0, toolkit_1.createSlice)({
|
|
|
48
48
|
initialState: exports.initialState,
|
|
49
49
|
reducers: {
|
|
50
50
|
fetchCompanyMonthEndReportView: {
|
|
51
|
-
prepare(cacheOverride = true, companyId) {
|
|
52
|
-
return { payload: { cacheOverride, companyId } };
|
|
51
|
+
prepare(cacheOverride = true, companyId, tenantId) {
|
|
52
|
+
return { payload: { cacheOverride, companyId, tenantId } };
|
|
53
53
|
},
|
|
54
54
|
reducer(draft, action) {
|
|
55
55
|
const companyId = action.payload.companyId;
|
|
@@ -90,7 +90,7 @@ const companyMonthEndReportView = (0, toolkit_1.createSlice)({
|
|
|
90
90
|
},
|
|
91
91
|
},
|
|
92
92
|
saveCompanyMonthEndReport: {
|
|
93
|
-
prepare(recipientEmailList, companyId, subject, isPreview, fileId, zeniRequestsHtml) {
|
|
93
|
+
prepare(recipientEmailList, companyId, subject, isPreview, fileId, zeniRequestsHtml, tenantId) {
|
|
94
94
|
return {
|
|
95
95
|
payload: {
|
|
96
96
|
recipientEmailList,
|
|
@@ -99,6 +99,7 @@ const companyMonthEndReportView = (0, toolkit_1.createSlice)({
|
|
|
99
99
|
isPreview,
|
|
100
100
|
fileId,
|
|
101
101
|
zeniRequestsHtml,
|
|
102
|
+
tenantId,
|
|
102
103
|
},
|
|
103
104
|
};
|
|
104
105
|
},
|
|
@@ -143,8 +144,8 @@ const companyMonthEndReportView = (0, toolkit_1.createSlice)({
|
|
|
143
144
|
},
|
|
144
145
|
},
|
|
145
146
|
sendCompanyMonthEndReport: {
|
|
146
|
-
prepare(companyId, fileId) {
|
|
147
|
-
return { payload: { companyId, fileId } };
|
|
147
|
+
prepare(companyId, fileId, tenantId) {
|
|
148
|
+
return { payload: { companyId, fileId, tenantId } };
|
|
148
149
|
},
|
|
149
150
|
reducer(draft, action) {
|
|
150
151
|
const { companyId } = action.payload;
|
|
@@ -165,11 +166,12 @@ const companyMonthEndReportView = (0, toolkit_1.createSlice)({
|
|
|
165
166
|
},
|
|
166
167
|
},
|
|
167
168
|
fetchImproveUsingZeniGPT: {
|
|
168
|
-
prepare(text, companyId) {
|
|
169
|
+
prepare(text, companyId, tenantId) {
|
|
169
170
|
return {
|
|
170
171
|
payload: {
|
|
171
172
|
text,
|
|
172
173
|
companyId,
|
|
174
|
+
tenantId,
|
|
173
175
|
},
|
|
174
176
|
};
|
|
175
177
|
},
|
|
@@ -278,10 +280,11 @@ const companyMonthEndReportView = (0, toolkit_1.createSlice)({
|
|
|
278
280
|
};
|
|
279
281
|
},
|
|
280
282
|
fetchCompanyMonthEndReportTemplates: {
|
|
281
|
-
prepare(companyId) {
|
|
283
|
+
prepare(companyId, tenantId) {
|
|
282
284
|
return {
|
|
283
285
|
payload: {
|
|
284
286
|
companyId,
|
|
287
|
+
tenantId,
|
|
285
288
|
},
|
|
286
289
|
};
|
|
287
290
|
},
|
|
@@ -6,16 +6,16 @@ const operators_1 = require("rxjs/operators");
|
|
|
6
6
|
const responsePayload_1 = require("../../../responsePayload");
|
|
7
7
|
const companyMonthEndReportViewReducer_1 = require("../companyMonthEndReportViewReducer");
|
|
8
8
|
const fetchCompanyMonthEndReportTemplatesEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(companyMonthEndReportViewReducer_1.fetchCompanyMonthEndReportTemplates.match), (0, operators_1.switchMap)((action) => {
|
|
9
|
-
const { companyId } = action.payload;
|
|
9
|
+
const { companyId, tenantId } = action.payload;
|
|
10
10
|
const state = state$.value;
|
|
11
|
-
const
|
|
11
|
+
const zeniTenantId = tenantId !== null && tenantId !== void 0 ? tenantId : state.companyState.companiesById[companyId].companyInfo.tenantId;
|
|
12
12
|
const queryParam = {
|
|
13
13
|
email_templates: true,
|
|
14
14
|
};
|
|
15
|
-
if (
|
|
15
|
+
if (zeniTenantId != null) {
|
|
16
16
|
return zeniAPI
|
|
17
17
|
.getJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/companies/${companyId}/emails/month-end?query=${encodeURIComponent(JSON.stringify(queryParam))}`, {
|
|
18
|
-
'zeni-tenant-id':
|
|
18
|
+
'zeni-tenant-id': zeniTenantId,
|
|
19
19
|
})
|
|
20
20
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
21
21
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
@@ -7,15 +7,15 @@ const responsePayload_1 = require("../../../responsePayload");
|
|
|
7
7
|
const companyMonthEndReportViewReducer_1 = require("../companyMonthEndReportViewReducer");
|
|
8
8
|
const fileReducer_1 = require("../../../entity/file/fileReducer");
|
|
9
9
|
const fetchCompanyMonthEndReportViewEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(companyMonthEndReportViewReducer_1.fetchCompanyMonthEndReportView.match), (0, operators_1.switchMap)((action) => {
|
|
10
|
-
const { cacheOverride, companyId } = action.payload;
|
|
10
|
+
const { cacheOverride, companyId, tenantId } = action.payload;
|
|
11
11
|
const state = state$.value;
|
|
12
12
|
const fetchState = state.companyMonthEndReportViewState.monthEndReportDataByCompanyId[companyId].fetchState;
|
|
13
|
-
const
|
|
14
|
-
if (
|
|
13
|
+
const zeniTenantId = tenantId !== null && tenantId !== void 0 ? tenantId : state.companyState.companiesById[companyId].companyInfo.tenantId;
|
|
14
|
+
if (zeniTenantId != null &&
|
|
15
15
|
(cacheOverride === true || fetchState !== 'Completed')) {
|
|
16
16
|
return zeniAPI
|
|
17
17
|
.getJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/companies/${companyId}/emails/month-end`, {
|
|
18
|
-
'zeni-tenant-id':
|
|
18
|
+
'zeni-tenant-id': zeniTenantId,
|
|
19
19
|
})
|
|
20
20
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
21
21
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
@@ -6,14 +6,16 @@ const operators_1 = require("rxjs/operators");
|
|
|
6
6
|
const companyMonthEndReportViewReducer_1 = require("../companyMonthEndReportViewReducer");
|
|
7
7
|
const responsePayload_1 = require("../../../responsePayload");
|
|
8
8
|
const improveUsingZeniGPTEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(companyMonthEndReportViewReducer_1.fetchImproveUsingZeniGPT.match), (0, operators_1.switchMap)((action) => {
|
|
9
|
-
const { companyId } = action.payload;
|
|
9
|
+
const { companyId, tenantId } = action.payload;
|
|
10
10
|
const state = state$.value;
|
|
11
11
|
const company = state.companyState.companiesById[companyId];
|
|
12
|
-
const
|
|
12
|
+
const zeniTenantId = tenantId !== null && tenantId !== void 0 ? tenantId : company.companyInfo.tenantId;
|
|
13
13
|
return zeniAPI
|
|
14
14
|
.postAndGetJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/ai-text-assist/emails/month-end`, {
|
|
15
15
|
text: action.payload.text,
|
|
16
|
-
}, Object.assign({}, (Boolean(
|
|
16
|
+
}, Object.assign({}, (Boolean(zeniTenantId) === true && {
|
|
17
|
+
'zeni-tenant-id': zeniTenantId,
|
|
18
|
+
})))
|
|
17
19
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
18
20
|
var _a;
|
|
19
21
|
if (((_a = response.data) === null || _a === void 0 ? void 0 : _a.text) != null) {
|
|
@@ -11,11 +11,11 @@ const companyReducer_1 = require("../../../entity/company/companyReducer");
|
|
|
11
11
|
const fileSelector_1 = require("../../../entity/file/fileSelector");
|
|
12
12
|
const formatZeniDateFY_1 = require("../../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
|
|
13
13
|
const saveCompanyMonthEndReportEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(companyMonthEndReportViewReducer_1.saveCompanyMonthEndReport.match), (0, operators_1.mergeMap)((action) => {
|
|
14
|
-
const { companyId, recipientEmailList, subject, isPreview, fileId, zeniRequestsHtml, } = action.payload;
|
|
14
|
+
const { companyId, recipientEmailList, subject, isPreview, fileId, zeniRequestsHtml, tenantId, } = action.payload;
|
|
15
15
|
const state = state$.value;
|
|
16
16
|
const company = state.companyState.companiesById[companyId];
|
|
17
17
|
const companyName = state.companyState.companiesById[companyId].companyInfo.name;
|
|
18
|
-
const
|
|
18
|
+
const zeniTenantId = tenantId !== null && tenantId !== void 0 ? tenantId : company.companyInfo.tenantId;
|
|
19
19
|
const lastReportSentBusinessDay = (0, zeniDayJS_1.getBusinessDayOfDate)((0, zeniDayJS_1.dateNow)());
|
|
20
20
|
const lastReportSentDate = (0, zeniDayJS_1.dateNow)();
|
|
21
21
|
const filePayload = [];
|
|
@@ -41,7 +41,7 @@ const saveCompanyMonthEndReportEpic = (actions$, state$, zeniAPI) => actions$.pi
|
|
|
41
41
|
const query = { is_preview: isPreview };
|
|
42
42
|
return zeniAPI
|
|
43
43
|
.putAndGetJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/companies/${companyId}/emails/month-end?query=${encodeURIComponent(JSON.stringify(query))}`, payload, {
|
|
44
|
-
'zeni-tenant-id':
|
|
44
|
+
'zeni-tenant-id': zeniTenantId,
|
|
45
45
|
})
|
|
46
46
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
47
47
|
if ((0, responsePayload_1.isSuccessStatus)(response) && response.data != null) {
|
|
@@ -12,14 +12,14 @@ const snackbarReducer_1 = require("../../../entity/snackbar/snackbarReducer");
|
|
|
12
12
|
const fileSelector_1 = require("../../../entity/file/fileSelector");
|
|
13
13
|
const formatZeniDateFY_1 = require("../../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
|
|
14
14
|
const sendCompanyMonthEndReportEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(companyMonthEndReportViewReducer_1.sendCompanyMonthEndReport.match), (0, operators_1.mergeMap)((action) => {
|
|
15
|
-
const { companyId, fileId } = action.payload;
|
|
15
|
+
const { companyId, fileId, tenantId } = action.payload;
|
|
16
16
|
const state = state$.value;
|
|
17
17
|
const recipientEmailList = state.companyMonthEndReportViewState.monthEndReportDataByCompanyId[companyId].companyMonthEndReportData.recipientEmailList;
|
|
18
18
|
const subject = state.companyMonthEndReportViewState.monthEndReportDataByCompanyId[companyId].companyMonthEndReportData.subject;
|
|
19
19
|
const zeniRequestsHtml = state.companyMonthEndReportViewState.monthEndReportDataByCompanyId[companyId].companyMonthEndReportData.zeniRequestsHtml;
|
|
20
20
|
const company = state.companyState.companiesById[companyId];
|
|
21
21
|
const companyName = state.companyState.companiesById[companyId].companyInfo.name;
|
|
22
|
-
const
|
|
22
|
+
const zeniTenantId = tenantId !== null && tenantId !== void 0 ? tenantId : company.companyInfo.tenantId;
|
|
23
23
|
const lastReportSentBusinessDay = (0, zeniDayJS_1.getBusinessDayOfDate)((0, zeniDayJS_1.dateNow)());
|
|
24
24
|
const lastReportSentDate = (0, zeniDayJS_1.dateNow)();
|
|
25
25
|
const filePayload = [];
|
|
@@ -44,7 +44,7 @@ const sendCompanyMonthEndReportEpic = (actions$, state$, zeniAPI) => actions$.pi
|
|
|
44
44
|
};
|
|
45
45
|
return zeniAPI
|
|
46
46
|
.postAndGetJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/companies/${companyId}/emails/month-end`, payload, {
|
|
47
|
-
'zeni-tenant-id':
|
|
47
|
+
'zeni-tenant-id': zeniTenantId,
|
|
48
48
|
})
|
|
49
49
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
50
50
|
if ((0, responsePayload_1.isSuccessStatus)(response)) {
|
package/lib/view/companyView/epic/companyPassport/updateCompanyPassportLocalStoreDataEpic.js
CHANGED
|
@@ -25,12 +25,7 @@ const updateCompanyPassportLocalStoreDataEpic = (actions$, state$) => actions$.p
|
|
|
25
25
|
const companyFiles = (0, fileSelector_1.getFilesByFileIds)(fileState, fileIds);
|
|
26
26
|
const companyLocalData = (0, companyPassportLocalData_1.toCompanyPassportLocalData)(companyView, companyFiles);
|
|
27
27
|
fetchActions.push((0, companyViewReducer_1.companyPassportClearDataInLocalStore)(), (0, companyViewReducer_1.companyPassportSaveDataInLocalStore)(companyLocalData));
|
|
28
|
-
|
|
29
|
-
const companyPassportAddressTypes = [
|
|
30
|
-
'company_address',
|
|
31
|
-
...officerAddressTypes,
|
|
32
|
-
];
|
|
33
|
-
fetchActions.push((0, addressViewReducer_1.resetNewAddressDataInLocalStoreForAddressTypes)(companyPassportAddressTypes));
|
|
28
|
+
fetchActions.push((0, addressViewReducer_1.resetNewAddressDataInLocalStoreForAddressTypes)(companyUsersLocalData_1.AllCompanyPassportAddressTypes));
|
|
34
29
|
const addresses = (0, toAddressViewLocalData_1.toAddressViewLocalData)(companyView);
|
|
35
30
|
if (addresses != null) {
|
|
36
31
|
Object.keys(addresses).forEach((addressType) => {
|
|
@@ -60,6 +60,9 @@ function getCompanyView(state, companyId, subscriptionIdsOfCompany, mergePending
|
|
|
60
60
|
const companyAddress = updatedManagegmentInfo.companyAddressId != null
|
|
61
61
|
? (0, addressSelector_1.getAddressByAddressId)(state.addressState, updatedManagegmentInfo.companyAddressId)
|
|
62
62
|
: undefined;
|
|
63
|
+
const registeredAddress = updatedManagegmentInfo.registeredAddressId != null
|
|
64
|
+
? (0, addressSelector_1.getAddressByAddressId)(state.addressState, updatedManagegmentInfo.registeredAddressId)
|
|
65
|
+
: undefined;
|
|
63
66
|
const primaryContact = updatedManagegmentInfo.primaryContactUserId != null
|
|
64
67
|
? (0, userAndRole_1.getUserAndUserRole)(state.userState, state.userRoleState, state.addressState, updatedManagegmentInfo.primaryContactUserId)
|
|
65
68
|
: undefined;
|
|
@@ -170,6 +173,7 @@ function getCompanyView(state, companyId, subscriptionIdsOfCompany, mergePending
|
|
|
170
173
|
return {
|
|
171
174
|
company,
|
|
172
175
|
companyAddress,
|
|
176
|
+
registeredAddress,
|
|
173
177
|
primaryContact,
|
|
174
178
|
companyOfficers,
|
|
175
179
|
companyContact,
|
|
@@ -4,9 +4,9 @@ import { SubscriptionViewSortKey } from '../../subscriptionView/types/subscripti
|
|
|
4
4
|
import { FilterCategoryValueType } from '../helpers/cockpitHelpers';
|
|
5
5
|
import { CockpitDownloadTabsID, CockpitTabsFileType } from './cockpitTabsID';
|
|
6
6
|
export declare const toPortfolioSortKeyType: (v: string) => "expenses" | "runway" | "cashBalance" | "netIncome" | "companyName" | "revenues";
|
|
7
|
-
export declare const toManagementSortKeyType: (v: string) => "status" | "group" | "bookCloseDate" | "controller" | "preparer" | "reviewer" | "companyName" | "monthlyRecurringRevenue" | "annualRecurringRevenue" | "taxStatus" | "
|
|
7
|
+
export declare const toManagementSortKeyType: (v: string) => "status" | "group" | "bookCloseDate" | "controller" | "preparer" | "reviewer" | "companyName" | "monthlyRecurringRevenue" | "annualRecurringRevenue" | "taxStatus" | "notes" | "plans" | "customerSuccessManager" | "task" | "apAnalyst" | "reportSent" | "taxLead" | "satisfaction";
|
|
8
8
|
export declare const toOnboardingSortKeyType: (v: string) => "companyName" | "notes" | "bankAccountLinked" | "qboLinked" | "identityVerified" | "businessVerified" | "groupCreated" | "customerCreated" | "enroller" | "invite";
|
|
9
|
-
export declare const toHealthSortKeyType: (v: string) => "group" | "runway" | "controller" | "companyName" | "monthlyRecurringRevenue" | "
|
|
9
|
+
export declare const toHealthSortKeyType: (v: string) => "group" | "runway" | "controller" | "companyName" | "monthlyRecurringRevenue" | "customerSatisfactionScore" | "netPromoterScore" | "customerSuccessManager" | "lastReportSent" | "externalProductServiceExposure" | "finOpsEngagementFrequency" | "companyEngagementMetricsUpdatedAt" | "issues" | "productVerticals" | "churnProbability" | "subscriptionDate" | "renewalDate";
|
|
10
10
|
export declare const toTaskManagerSortKeyType: (v: string) => "priority" | "name" | "status" | "dueDate" | "taskName" | "assignee" | "tags" | "createdBy";
|
|
11
11
|
export declare type PortfolioViewSortKey = ReturnType<typeof toPortfolioSortKeyType>;
|
|
12
12
|
export declare type ManagementViewSortKey = ReturnType<typeof toManagementSortKeyType>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ID } from '../../../../commonStateTypes/common';
|
|
2
|
+
import { AddressType } from '../../../addressView/addressViewState';
|
|
2
3
|
export interface PrimaryContactLocalData {
|
|
3
4
|
userId: ID | undefined;
|
|
4
5
|
firstName: string;
|
|
@@ -9,6 +10,7 @@ export declare const ALL_OFFICERS: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
|
9
10
|
declare const toOfficerType: (n: number) => 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
10
11
|
export declare type OfficerType = ReturnType<typeof toOfficerType>;
|
|
11
12
|
export declare type CompanyOfficerType = `Officer_${OfficerType}`;
|
|
13
|
+
export declare const AllCompanyPassportAddressTypes: AddressType[];
|
|
12
14
|
export interface CompanyOfficerLocalData {
|
|
13
15
|
officerType: CompanyOfficerType;
|
|
14
16
|
userId: ID | undefined;
|