@zeniai/client-epic-state 5.2.32-betaAK7 → 5.2.32
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/commonStateTypes/fiscalYearHelpers/getFYMonths.d.ts +2 -2
- package/lib/commonStateTypes/fiscalYearHelpers/getFYQuarterAndYear.d.ts +2 -2
- package/lib/commonStateTypes/timePeriod.d.ts +4 -4
- package/lib/commonStateTypes/viewAndReport/viewAndReport.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/forecast/forecastState.d.ts +1 -1
- 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/sectionProjectView/sectionProjectView.d.ts +1 -1
- package/lib/entity/sectionProjectView/sectionProjectViewReducer.d.ts +2 -2
- package/lib/entity/tenant/tenantSelector.d.ts +1 -1
- package/lib/epic.d.ts +24 -24
- package/lib/epic.js +28 -28
- package/lib/esm/epic.js +28 -28
- package/lib/esm/view/companyMonthEndReportView/epics/saveCompanyMonthEndReportEpic.js +1 -1
- package/lib/esm/view/companyMonthEndReportView/epics/sendCompanyMonthEndReportEpic.js +1 -1
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/newSchedule/createOneTimeAccrualEpic.js +1 -1
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/newSchedule/saveNewScheduleEpic.js +2 -2
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/revertJeScheduleEpic.js +2 -2
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/backgroundRefetchReviewTabEpic.js +2 -1
- package/lib/esm/view/expenseAutomationView/helpers/newScheduleLocalDataHelper.js +1 -1
- package/lib/esm/view/expenseAutomationView/helpers/reconciliationHelpers.js +2 -2
- package/lib/esm/view/invoicing/couponView/couponViewSelector.js +1 -1
- package/lib/esm/view/invoicing/couponView/fetchInvoicingCouponCountsEpic.js +1 -1
- package/lib/esm/view/invoicing/customerPaymentMethod/sendInvoicingPaymentLinkEpic.js +2 -2
- package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/fetchInvoicingCatalogItemDetailEpic.js +4 -1
- package/lib/esm/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewReducer.js +4 -1
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.js +4 -4
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/fetchInvoicingCustomerDetailPageEpic.js +4 -1
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/fetchInvoicingPaymentLinkEmailPreviewEpic.js +1 -1
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.js +2 -2
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/fetchInvoicingSubscriptionDetailPageEpic.js +8 -2
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/seedInvoicingSubscriptionFormDraftEpic.js +1 -1
- package/lib/esm/view/invoicing/invoiceDetail/invoiceDetailSelector.js +2 -2
- package/lib/esm/view/invoicing/invoiceDetail/updateInvoicingInvoiceEpic.js +1 -1
- package/lib/esm/view/invoicing/invoiceList/invoiceListSelector.js +1 -1
- package/lib/esm/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewReducer.js +4 -1
- package/lib/esm/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector.js +1 -1
- package/lib/esm/view/invoicing/settingsView/initializeInvoicingBrandingAddressEpic.js +1 -1
- package/lib/esm/view/invoicing/settingsView/submitInvoicingBrandingFormEpic.js +1 -1
- package/lib/view/addressView/addressViewSelector.d.ts +1 -1
- package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
- package/lib/view/billPayCard/billPayCardSelector.d.ts +2 -2
- package/lib/view/cardBalance/cardBalanceSelector.d.ts +2 -2
- package/lib/view/cashBalance/cashBalanceSelector.d.ts +2 -2
- package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +2 -2
- package/lib/view/cashPosition/cashPositionSelector.d.ts +2 -2
- package/lib/view/commonVendorView/transactionVendorView/transactionVendorViewPayload.d.ts +1 -1
- package/lib/view/commonVendorView/vendorView/vendorViewPayload.d.ts +1 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewPayload.d.ts +1 -1
- package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.d.ts +1 -1
- package/lib/view/companyMonthEndReportView/epics/saveCompanyMonthEndReportEpic.js +1 -1
- package/lib/view/companyMonthEndReportView/epics/sendCompanyMonthEndReportEpic.js +1 -1
- package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/createOneTimeAccrualEpic.js +1 -1
- package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/saveNewScheduleEpic.d.ts +1 -1
- package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/saveNewScheduleEpic.js +2 -2
- package/lib/view/expenseAutomationView/epics/jeSchedule/revertJeScheduleEpic.d.ts +1 -1
- package/lib/view/expenseAutomationView/epics/jeSchedule/revertJeScheduleEpic.js +2 -2
- package/lib/view/expenseAutomationView/epics/transactionCategorization/backgroundRefetchReviewTabEpic.js +2 -1
- package/lib/view/expenseAutomationView/helpers/newScheduleLocalDataHelper.js +1 -1
- package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.js +2 -2
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +1 -1
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
- package/lib/view/invoicing/couponView/couponViewSelector.js +1 -1
- package/lib/view/invoicing/customerPaymentMethod/sendInvoicingPaymentLinkEpic.js +2 -2
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewReducer.d.ts +2 -2
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/fetchInvoicingCatalogItemDetailEpic.js +4 -1
- package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewReducer.js +4 -1
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer.d.ts +1 -1
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.d.ts +3 -3
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.js +4 -4
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewState.d.ts +1 -1
- package/lib/view/invoicing/editInvoicingCustomerDetailView/fetchInvoicingCustomerDetailPageEpic.js +4 -1
- package/lib/view/invoicing/editInvoicingCustomerDetailView/fetchInvoicingPaymentLinkEmailPreviewEpic.js +1 -1
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewReducer.d.ts +1 -1
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.js +1 -1
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/fetchInvoicingSubscriptionDetailPageEpic.js +8 -2
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/seedInvoicingSubscriptionFormDraftEpic.js +1 -1
- package/lib/view/invoicing/invoiceDetail/invoiceDetailReducer.d.ts +1 -1
- package/lib/view/invoicing/invoiceDetail/invoiceDetailSelector.js +2 -2
- package/lib/view/invoicing/invoiceList/invoiceListSelector.js +1 -1
- package/lib/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewReducer.d.ts +1 -1
- package/lib/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewReducer.js +4 -1
- package/lib/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewSelector.d.ts +1 -1
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector.js +1 -1
- package/lib/view/opExByVendor/refreshOpExByVendorReportEpic.d.ts +1 -1
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +2 -2
- package/lib/view/reportUIOptions/reportUIOptionsReducer.d.ts +8 -8
- package/lib/view/reportsResync/reportsResyncReducer.d.ts +2 -2
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
- package/lib/view/tasksCard/fetchTasksCardEpic.d.ts +1 -1
- package/lib/view/tasksCard/tasksCardSelector.d.ts +2 -2
- package/lib/view/topEx/topExSelector.d.ts +2 -2
- package/package.json +1 -1
|
@@ -12,10 +12,10 @@ export declare const getCashInCashOut: (accountState: AccountState, accountGroup
|
|
|
12
12
|
cashOut: Section;
|
|
13
13
|
netCashFlow: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesSlice;
|
|
14
14
|
allTimeframeTicks: TimeframeTickWithMetaData[];
|
|
15
|
-
firstMonthOfFY: 1 | 2 | 3 | 4 | 5 |
|
|
15
|
+
firstMonthOfFY: 1 | 2 | 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: "
|
|
18
|
+
reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "cash_flow_by_classes" | "cash_flow_by_projects" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "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" | "zeni_treasury" | "charge_cards" | "other_connection" | "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" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts";
|
|
19
19
|
reportTitle: string;
|
|
20
20
|
version: string | number | undefined;
|
|
21
21
|
status: import("../..").Status | undefined;
|
|
@@ -9,10 +9,10 @@ export declare const getCashPosition: (accountState: AccountState, cashPositionS
|
|
|
9
9
|
filter: COABalancesFilter;
|
|
10
10
|
cashPosition: SectionWithAccountOnly;
|
|
11
11
|
allTimeframeTicks: TimeframeTickWithMetaData[];
|
|
12
|
-
firstMonthOfFY: 1 | 2 | 3 | 4 | 5 |
|
|
12
|
+
firstMonthOfFY: 1 | 2 | 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: "
|
|
15
|
+
reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "cash_flow_by_classes" | "cash_flow_by_projects" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "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" | "zeni_treasury" | "charge_cards" | "other_connection" | "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" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts";
|
|
16
16
|
reportTitle: string;
|
|
17
17
|
version: string | number | undefined;
|
|
18
18
|
status: import("../..").Status | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { AccountBasePayload } from '../../../entity/account/accountPayload';
|
|
3
3
|
import { ClassBasePayload } from '../../../entity/class/classPayload';
|
|
4
|
-
import { RootState } from '../../../rootStateTypes';
|
|
5
4
|
import { ZeniAPIResponse } from '../../../responsePayload';
|
|
5
|
+
import { RootState } from '../../../rootStateTypes';
|
|
6
6
|
import { FetchAllVendorsPayload } from '../../vendorList/vendorListPayload';
|
|
7
7
|
import { TransactionVendorLocalData } from './transactionVendorViewState';
|
|
8
8
|
export type VendorCreationResponse = ZeniAPIResponse<FetchAllVendorsPayload>;
|
|
@@ -3,8 +3,8 @@ import { AccountBasePayload } from '../../../entity/account/accountPayload';
|
|
|
3
3
|
import { ContactPayload } from '../../../entity/billPay/contact/contactPayload';
|
|
4
4
|
import { ClassBasePayload } from '../../../entity/class/classPayload';
|
|
5
5
|
import { Filing1099TinType } from '../../../entity/vendor/vendorType';
|
|
6
|
-
import { RootState } from '../../../rootStateTypes';
|
|
7
6
|
import { ZeniAPIResponse } from '../../../responsePayload';
|
|
7
|
+
import { RootState } from '../../../rootStateTypes';
|
|
8
8
|
import { AddressUpdatableInfoPayload } from '../../addressView/addressViewPayload';
|
|
9
9
|
import { FetchAllVendorsPayload } from '../../vendorList/vendorListPayload';
|
|
10
10
|
import { VendorDetailLocalData } from './vendorViewState';
|
|
@@ -3,8 +3,8 @@ import { AccountBasePayload } from '../../../entity/account/accountPayload';
|
|
|
3
3
|
import { ContactPayload } from '../../../entity/billPay/contact/contactPayload';
|
|
4
4
|
import { ClassBasePayload } from '../../../entity/class/classPayload';
|
|
5
5
|
import { Filing1099TinType } from '../../../entity/vendor/vendorType';
|
|
6
|
-
import { RootState } from '../../../rootStateTypes';
|
|
7
6
|
import { ZeniAPIResponse } from '../../../responsePayload';
|
|
7
|
+
import { RootState } from '../../../rootStateTypes';
|
|
8
8
|
import { AddressUpdatableInfoPayload } from '../../addressView/addressViewPayload';
|
|
9
9
|
import { FetchAllVendorsPayload } from '../../vendorList/vendorListPayload';
|
|
10
10
|
import { VendorsTabVendorDetailLocalData } from './vendorsTabVendorViewState';
|
|
@@ -5,8 +5,8 @@ import { SelectorView } from '../../commonStateTypes/viewAndReport/viewAndReport
|
|
|
5
5
|
import { Company } from '../../entity/company/companyStateTypes';
|
|
6
6
|
import { CompanyHealthMetric, CompanyRunway } from '../../entity/companyHealthMetric/companyHealthMetricState';
|
|
7
7
|
import { User } from '../../entity/user/userState';
|
|
8
|
-
import { RootState } from '../../rootStateTypes';
|
|
9
8
|
import { ZeniAPIStatus } from '../../responsePayload';
|
|
9
|
+
import { RootState } from '../../rootStateTypes';
|
|
10
10
|
import { CompanyHealthMetricsLocalData, CompanyHealthViewUIState, EditCompanyHealthMetrics } from './companyHealthMetricView';
|
|
11
11
|
export declare const ALL_FREQUENCY_LABEL_TYPE: readonly ["Low", "Very Low", "Mid", "High", "Very High"];
|
|
12
12
|
declare const toFrequencyLabelType: (v: string) => "High" | "Low" | "Very Low" | "Mid" | "Very High";
|
|
@@ -9,8 +9,8 @@ const fileSelector_1 = require("../../../entity/file/fileSelector");
|
|
|
9
9
|
const snackbarReducer_1 = require("../../../entity/snackbar/snackbarReducer");
|
|
10
10
|
const responsePayload_1 = require("../../../responsePayload");
|
|
11
11
|
const zeniDayJS_1 = require("../../../zeniDayJS");
|
|
12
|
-
const monthEndTemplateData_1 = require("../monthEndTemplateData");
|
|
13
12
|
const companyMonthEndReportViewReducer_1 = require("../companyMonthEndReportViewReducer");
|
|
13
|
+
const monthEndTemplateData_1 = require("../monthEndTemplateData");
|
|
14
14
|
const saveCompanyMonthEndReportEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(companyMonthEndReportViewReducer_1.saveCompanyMonthEndReport.match), (0, operators_1.mergeMap)((action) => {
|
|
15
15
|
const { agentInsightEdits, companyId, recipientEmailList, subject, isPreview, fileId, zeniRequestsHtml, tenantId, } = action.payload;
|
|
16
16
|
const state = state$.value;
|
|
@@ -10,8 +10,8 @@ const snackbarReducer_1 = require("../../../entity/snackbar/snackbarReducer");
|
|
|
10
10
|
const responsePayload_1 = require("../../../responsePayload");
|
|
11
11
|
const zeniDayJS_1 = require("../../../zeniDayJS");
|
|
12
12
|
const companyViewReducer_1 = require("../../companyView/companyViewReducer");
|
|
13
|
-
const monthEndTemplateData_1 = require("../monthEndTemplateData");
|
|
14
13
|
const companyMonthEndReportViewReducer_1 = require("../companyMonthEndReportViewReducer");
|
|
14
|
+
const monthEndTemplateData_1 = require("../monthEndTemplateData");
|
|
15
15
|
const sendCompanyMonthEndReportEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(companyMonthEndReportViewReducer_1.sendCompanyMonthEndReport.match), (0, operators_1.mergeMap)((action) => {
|
|
16
16
|
const { companyId, fileId, tenantId } = action.payload;
|
|
17
17
|
const state = state$.value;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { DashboardState } from './dashboardState';
|
|
2
2
|
export declare const initialState: DashboardState;
|
|
3
|
-
export declare const fetchDashboard: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userId: string, companyId: string, tenantId: string, fetchFullReport?: any, cacheOverride?: any, excludeResources?: ("
|
|
3
|
+
export declare const fetchDashboard: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userId: string, companyId: string, tenantId: string, fetchFullReport?: any, cacheOverride?: any, excludeResources?: ("cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "cash_flow_by_classes" | "cash_flow_by_projects" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "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" | "zeni_treasury" | "charge_cards" | "other_connection" | "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" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts")[] | undefined], {
|
|
4
4
|
userId: string;
|
|
5
5
|
companyId: string;
|
|
6
6
|
tenantId: string;
|
|
7
7
|
fetchFullReport: any;
|
|
8
8
|
cacheOverride: any;
|
|
9
|
-
excludeResources: ("
|
|
9
|
+
excludeResources: ("cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "cash_flow_by_classes" | "cash_flow_by_projects" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "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" | "zeni_treasury" | "charge_cards" | "other_connection" | "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" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts")[];
|
|
10
10
|
}, "dashboard/fetchDashboard", never, never>;
|
|
11
11
|
declare const _default: import("redux").Reducer<DashboardState>;
|
|
12
12
|
export default _default;
|
package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/createOneTimeAccrualEpic.js
CHANGED
|
@@ -7,8 +7,8 @@ const timePeriod_1 = require("../../../../../commonStateTypes/timePeriod");
|
|
|
7
7
|
const jeSchedulesReducer_1 = require("../../../../../entity/jeSchedules/jeSchedulesReducer");
|
|
8
8
|
const snackbarReducer_1 = require("../../../../../entity/snackbar/snackbarReducer");
|
|
9
9
|
const tenantSelector_1 = require("../../../../../entity/tenant/tenantSelector");
|
|
10
|
-
const rootActions_1 = require("../../../../../rootActions");
|
|
11
10
|
const responsePayload_1 = require("../../../../../responsePayload");
|
|
11
|
+
const rootActions_1 = require("../../../../../rootActions");
|
|
12
12
|
const jeSchedulesPayload_1 = require("../../../payload/jeSchedulesPayload");
|
|
13
13
|
const jeSchedulesViewReducer_1 = require("../../../reducers/jeSchedulesViewReducer");
|
|
14
14
|
const createOneTimeAccrualEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(jeSchedulesViewReducer_1.createOneTimeAccrual.match), (0, operators_1.mergeMap)((action) => {
|
package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/saveNewScheduleEpic.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
-
import { clearAll } from '../../../../../rootActions';
|
|
3
2
|
import { updateJESchedules, updateJESchedulesDetails } from '../../../../../entity/jeSchedules/jeSchedulesReducer';
|
|
4
3
|
import { openSnackbar } from '../../../../../entity/snackbar/snackbarReducer';
|
|
5
4
|
import { RootState } from '../../../../../reducer';
|
|
5
|
+
import { clearAll } from '../../../../../rootActions';
|
|
6
6
|
import { ZeniAPI } from '../../../../../zeniAPI';
|
|
7
7
|
import { fetchJeSchedules, resetNewScheduleLocalData, saveNewSchedule, saveNewScheduleFailure, saveNewScheduleSuccess } from '../../../reducers/jeSchedulesViewReducer';
|
|
8
8
|
export type ActionType = ReturnType<typeof saveNewSchedule> | ReturnType<typeof saveNewScheduleSuccess> | ReturnType<typeof saveNewScheduleFailure> | ReturnType<typeof updateJESchedules> | ReturnType<typeof updateJESchedulesDetails> | ReturnType<typeof resetNewScheduleLocalData> | ReturnType<typeof fetchJeSchedules> | ReturnType<typeof clearAll> | ReturnType<typeof openSnackbar>;
|
|
@@ -4,13 +4,13 @@ exports.saveNewScheduleEpic = void 0;
|
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
6
|
const timePeriod_1 = require("../../../../../commonStateTypes/timePeriod");
|
|
7
|
-
const tenantSelector_1 = require("../../../../../entity/tenant/tenantSelector");
|
|
8
|
-
const rootActions_1 = require("../../../../../rootActions");
|
|
9
7
|
const jeSchedulesReducer_1 = require("../../../../../entity/jeSchedules/jeSchedulesReducer");
|
|
10
8
|
const jeSchedulesTypes_1 = require("../../../../../entity/jeSchedules/jeSchedulesTypes");
|
|
11
9
|
const snackbarReducer_1 = require("../../../../../entity/snackbar/snackbarReducer");
|
|
10
|
+
const tenantSelector_1 = require("../../../../../entity/tenant/tenantSelector");
|
|
12
11
|
const transactionSelector_1 = require("../../../../../entity/transaction/transactionSelector");
|
|
13
12
|
const responsePayload_1 = require("../../../../../responsePayload");
|
|
13
|
+
const rootActions_1 = require("../../../../../rootActions");
|
|
14
14
|
const newScheduleLocalDataHelper_1 = require("../../../helpers/newScheduleLocalDataHelper");
|
|
15
15
|
const jeSchedulesViewReducer_1 = require("../../../reducers/jeSchedulesViewReducer");
|
|
16
16
|
const FAILURE_REASON_MESSAGES = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
2
|
import { updateJESchedules, updateJESchedulesDetails } from '../../../../entity/jeSchedules/jeSchedulesReducer';
|
|
3
|
-
import { openSnackbar } from '../../../../entity/snackbar/snackbarReducer';
|
|
4
3
|
import { JEScheduleKey, JEScheduleTransactionKey } from '../../../../entity/jeSchedules/jeSchedulesTypes';
|
|
4
|
+
import { openSnackbar } from '../../../../entity/snackbar/snackbarReducer';
|
|
5
5
|
import { RootState } from '../../../../reducer';
|
|
6
6
|
import { clearAll } from '../../../../rootActions';
|
|
7
7
|
import { ZeniAPI } from '../../../../zeniAPI';
|
|
@@ -5,8 +5,8 @@ const rxjs_1 = require("rxjs");
|
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
6
|
const snackbarReducer_1 = require("../../../../entity/snackbar/snackbarReducer");
|
|
7
7
|
const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
|
|
8
|
-
const rootActions_1 = require("../../../../rootActions");
|
|
9
8
|
const responsePayload_1 = require("../../../../responsePayload");
|
|
9
|
+
const rootActions_1 = require("../../../../rootActions");
|
|
10
10
|
const monthEndCloseChecksViewReducer_1 = require("../../../monthEndCloseChecksView/monthEndCloseChecksViewReducer");
|
|
11
11
|
const jeSchedulesViewReducer_1 = require("../../reducers/jeSchedulesViewReducer");
|
|
12
12
|
/**
|
|
@@ -25,7 +25,7 @@ const jeSchedulesViewReducer_1 = require("../../reducers/jeSchedulesViewReducer"
|
|
|
25
25
|
const revertJeScheduleEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(jeSchedulesViewReducer_1.revertJeSchedule.match), (0, operators_1.mergeMap)((action) => {
|
|
26
26
|
const state = state$.value;
|
|
27
27
|
const { expenseAutomationViewState: { selectedPeriodByTenantId }, } = state;
|
|
28
|
-
const { jeScheduleId, jeScheduleTransactionKey, reason, note, scheduleType } = action.payload;
|
|
28
|
+
const { jeScheduleId, jeScheduleTransactionKey, reason, note, scheduleType, } = action.payload;
|
|
29
29
|
const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state);
|
|
30
30
|
const selectedPeriod = selectedPeriodByTenantId[currentTenant.tenantId];
|
|
31
31
|
// Feedback nested under je_schedules[0], the same shape ignore takes -- the two endpoints were
|
|
@@ -30,7 +30,8 @@ const backgroundRefetchReviewTabEpic = (actions$, state$, zeniAPI) => actions$.p
|
|
|
30
30
|
page_token: pageToken,
|
|
31
31
|
page_size: PAGE_SIZE,
|
|
32
32
|
search_text: reviewUiState.searchString,
|
|
33
|
-
transaction_group: state.expenseAutomationTransactionsViewState
|
|
33
|
+
transaction_group: state.expenseAutomationTransactionsViewState
|
|
34
|
+
.selectedTransactionGroup,
|
|
34
35
|
};
|
|
35
36
|
return zeniAPI.getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/expense-automation/transactions?query=${encodeURIComponent(JSON.stringify(queryParam))}`);
|
|
36
37
|
};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.prepareNewSchedulePayload = exports.computeNewScheduleJeDetails = void 0;
|
|
4
4
|
const amount_1 = require("../../../commonStateTypes/amount");
|
|
5
|
-
const timePeriod_1 = require("../../../commonStateTypes/timePeriod");
|
|
6
5
|
const formatZeniDateFY_1 = require("../../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
|
|
6
|
+
const timePeriod_1 = require("../../../commonStateTypes/timePeriod");
|
|
7
7
|
const timePeriod_2 = require("../../../commonStateTypes/timePeriod");
|
|
8
8
|
const scheduleDetailLocalDataHelper_1 = require("../../scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper");
|
|
9
9
|
const scheduleDetailPayload_1 = require("../../scheduleView/scheduleDetailView/scheduleDetailPayload");
|
|
@@ -25,8 +25,8 @@ function resolveCombinedStatementGroupId(accountRecon) {
|
|
|
25
25
|
return (accountRecon?.combinedStatementGroupId ??
|
|
26
26
|
accountRecon?.parsedStatementData?.statementUpload.statementMeta
|
|
27
27
|
.combinedStatementGroupId ??
|
|
28
|
-
accountRecon?.parsedStatementData?.statementUpload
|
|
29
|
-
|
|
28
|
+
accountRecon?.parsedStatementData?.statementUpload.combinedStatementDetails
|
|
29
|
+
?.combinedStatementGroupId ??
|
|
30
30
|
'');
|
|
31
31
|
}
|
|
32
32
|
const isReviewTransactionBillPaymentType = (transaction) => {
|
|
@@ -20,7 +20,7 @@ import { TransactionDetailKey } from '../../transactionDetail/transactionDetailS
|
|
|
20
20
|
import { TransactionFilters } from '../transactionFilterTypes';
|
|
21
21
|
import { CompletedSubTab } from './completedSubTab';
|
|
22
22
|
import { TransactionGroup } from './transactionGroup';
|
|
23
|
-
export declare const toTransactionsSortKey: (v: string) => "
|
|
23
|
+
export declare const toTransactionsSortKey: (v: string) => "date" | "project" | "vendor" | "category" | "class" | "amount" | "payment_account" | "transaction_type" | "memo_and_receipt";
|
|
24
24
|
export type TransactionsSortKey = ReturnType<typeof toTransactionsSortKey>;
|
|
25
25
|
export declare const TRANSACTIONS_TABS: readonly ["review", "autoCategorized"];
|
|
26
26
|
export declare const toTransactionsTabKey: (v: string) => "review" | "autoCategorized";
|
|
@@ -17,7 +17,7 @@ export declare const fetchFinanceStatement: import("@reduxjs/toolkit").ActionCre
|
|
|
17
17
|
firstMonthOfFY: Month;
|
|
18
18
|
maxNumOfPeriodsToHighlight: number;
|
|
19
19
|
thisPeriod: TimeframeTick;
|
|
20
|
-
}, "financeStatement/updateFinanceStatementThisPeriod">, updateCOABalancesRange: import("@reduxjs/toolkit").ActionCreatorWithPayload<COABalancesRange, "financeStatement/updateCOABalancesRange">, updateSelectedReportId: import("@reduxjs/toolkit").ActionCreatorWithPayload<"
|
|
20
|
+
}, "financeStatement/updateFinanceStatementThisPeriod">, updateCOABalancesRange: import("@reduxjs/toolkit").ActionCreatorWithPayload<COABalancesRange, "financeStatement/updateCOABalancesRange">, updateSelectedReportId: import("@reduxjs/toolkit").ActionCreatorWithPayload<"cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "cash_flow_by_classes" | "cash_flow_by_projects" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "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" | "zeni_treasury" | "charge_cards" | "other_connection" | "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" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts", "financeStatement/updateSelectedReportId">, updateFinanceStatementAdditionalBalancesSelection: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
21
21
|
additionalBalances: COABalanceType[];
|
|
22
22
|
coaBalances: COABalance[];
|
|
23
23
|
firstMonthOfFY: Month;
|
|
@@ -3,9 +3,9 @@ import { ZeniAPIStatus } from '../../responsePayload';
|
|
|
3
3
|
import { VendorReviewViewAllRecommendationsPayload } from '../vendorReviewView/common/payload/commonTypesPayloadShapes';
|
|
4
4
|
import { GlobalMerchantViewState, GlobalRecommendationFetchSource, NewGlobalMerchantCurrentSelection } from './globalMerchantViewState';
|
|
5
5
|
export declare const initialState: GlobalMerchantViewState;
|
|
6
|
-
export declare const createGlobalMerchant: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[merchantId?: string | undefined, context?: "
|
|
6
|
+
export declare const createGlobalMerchant: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[merchantId?: string | undefined, context?: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "cash_flow_by_classes" | "cash_flow_by_projects" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "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" | "zeni_treasury" | "charge_cards" | "other_connection" | "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" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts" | undefined], {
|
|
7
7
|
merchantId: string | undefined;
|
|
8
|
-
context: "
|
|
8
|
+
context: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "operating_expenses_by_projects" | "revenue" | "revenue_by_classes" | "revenue_by_projects" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "net_burn_or_income_by_projects" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "balance_sheet_by_classes" | "balance_sheet_by_projects" | "cash_flow" | "cash_flow_by_classes" | "cash_flow_by_projects" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "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" | "zeni_treasury" | "charge_cards" | "other_connection" | "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" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts" | undefined;
|
|
9
9
|
}, "globalMerchantView/createGlobalMerchant", never, never>, createGlobalMerchantSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
10
10
|
merchantId: ID;
|
|
11
11
|
}, "globalMerchantView/createGlobalMerchantSuccess">, createGlobalMerchantFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getInvoicingCouponListView = exports.getInvoicingCouponCounts = exports.getInvoicingCouponListFilters = exports.getInvoicingCouponListHasMore = exports.getInvoicingCouponListNextCursor = exports.getInvoicingCouponListFetchState = exports.getInvoicingCouponListItems = void 0;
|
|
4
4
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
5
|
-
const runningInvoicingActionId_1 = require("../runningInvoicingActionId");
|
|
6
5
|
const invoicingTabHelper_1 = require("../invoicingTabHelper");
|
|
6
|
+
const runningInvoicingActionId_1 = require("../runningInvoicingActionId");
|
|
7
7
|
const couponViewState_1 = require("./couponViewState");
|
|
8
8
|
const getInvoicingCouponListItems = (state) => state.invoicingCouponViewState.ids
|
|
9
9
|
.map((id) => state.invoicingCouponState.couponByID[id])
|
|
@@ -8,7 +8,7 @@ const customerPaymentMethodReducer_1 = require("./customerPaymentMethodReducer")
|
|
|
8
8
|
const sendInvoicingPaymentLinkEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(customerPaymentMethodReducer_1.sendInvoicingPaymentLink.match), (0, operators_1.mergeMap)((action) => {
|
|
9
9
|
const { body, customerId, email, subject } = action.payload;
|
|
10
10
|
const apiUrl = `${zeniAPI.apiEndPoints.invoicingMicroServiceBaseUrl}/1.0/customers/${encodeURIComponent(customerId)}/payment-link`;
|
|
11
|
-
return zeniAPI
|
|
11
|
+
return (zeniAPI
|
|
12
12
|
// subject/body are omitted rather than sent empty, so the backend
|
|
13
13
|
// falls back to its own defaults for anything the user left alone.
|
|
14
14
|
.postAndGetJSON(apiUrl, {
|
|
@@ -25,6 +25,6 @@ const sendInvoicingPaymentLinkEpic = (actions$, _state$, zeniAPI) => actions$.pi
|
|
|
25
25
|
}
|
|
26
26
|
return (0, rxjs_1.of)((0, customerPaymentMethodReducer_1.sendInvoicingPaymentLinkFailure)(response.status));
|
|
27
27
|
}), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, customerPaymentMethodReducer_1.sendInvoicingPaymentLinkFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Send payment link REST API call errored out ' +
|
|
28
|
-
JSON.stringify(error))))));
|
|
28
|
+
JSON.stringify(error)))))));
|
|
29
29
|
}));
|
|
30
30
|
exports.sendInvoicingPaymentLinkEpic = sendInvoicingPaymentLinkEpic;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ID } from '../../../commonStateTypes/common';
|
|
2
|
-
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
3
2
|
import { InvoicingCatalogItemLifecycleAction, InvoicingCatalogProductLifecycleAction } from '../../../entity/invoicing/invoicingCommonPayload';
|
|
4
|
-
import {
|
|
3
|
+
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
4
|
+
import { EditInvoicingCatalogItemDetailViewState, InvoicingCatalogItemFormLocalData, InvoicingCatalogItemKind } from './editInvoicingCatalogItemDetailViewState';
|
|
5
5
|
/** Push the full form draft into CES (edit tree when `id` is present). */
|
|
6
6
|
export interface UpdateInvoicingCatalogItemFormDraftPayload {
|
|
7
7
|
localData: InvoicingCatalogItemFormLocalData;
|
package/lib/view/invoicing/editInvoicingCatalogItemDetailView/fetchInvoicingCatalogItemDetailEpic.js
CHANGED
|
@@ -16,7 +16,10 @@ const fetchInvoicingCatalogItemDetailEpic = (actions$, _state$, zeniAPI) => acti
|
|
|
16
16
|
(0, editInvoicingCatalogItemDetailViewReducer_1.updateInvoicingCatalogItemDetail)({ id: response.data.id, kind }),
|
|
17
17
|
];
|
|
18
18
|
}
|
|
19
|
-
return (0, rxjs_1.of)((0, editInvoicingCatalogItemDetailViewReducer_1.updateInvoicingCatalogItemDetailFailure)({
|
|
19
|
+
return (0, rxjs_1.of)((0, editInvoicingCatalogItemDetailViewReducer_1.updateInvoicingCatalogItemDetailFailure)({
|
|
20
|
+
error: response.status,
|
|
21
|
+
id,
|
|
22
|
+
}));
|
|
20
23
|
}), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, editInvoicingCatalogItemDetailViewReducer_1.updateInvoicingCatalogItemDetailFailure)({
|
|
21
24
|
error: (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Fetch catalog item detail REST API call errored out ' +
|
|
22
25
|
JSON.stringify(error)),
|
package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewReducer.js
CHANGED
|
@@ -65,7 +65,10 @@ const editInvoicingCouponDetailView = (0, toolkit_1.createSlice)({
|
|
|
65
65
|
},
|
|
66
66
|
prepare(payload) {
|
|
67
67
|
return {
|
|
68
|
-
payload: {
|
|
68
|
+
payload: {
|
|
69
|
+
cacheOverride: payload.cacheOverride ?? false,
|
|
70
|
+
id: payload.id,
|
|
71
|
+
},
|
|
69
72
|
};
|
|
70
73
|
},
|
|
71
74
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
3
|
-
import { EditInvoicingCustomerDetailViewState, InvoicingCustomerFormLocalData } from './editInvoicingCustomerDetailViewState';
|
|
4
3
|
import { InvoicingPaymentLinkEmailPreviewData } from './editInvoicingCustomerDetailViewPayload';
|
|
4
|
+
import { EditInvoicingCustomerDetailViewState, InvoicingCustomerFormLocalData } from './editInvoicingCustomerDetailViewState';
|
|
5
5
|
/** Add promotional credits to a customer. */
|
|
6
6
|
export interface SubmitAddPromotionalCreditsPayload {
|
|
7
7
|
amount: number;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FetchStateAndError, ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { SelectorView } from '../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
3
|
+
import { InvoicingInvoice } from '../../../entity/invoicing/invoice/invoiceState';
|
|
3
4
|
import { InvoicingFieldHelpByCode, InvoicingNamedOption } from '../../../entity/invoicing/invoicingCommonPayload';
|
|
5
|
+
import { InvoicingCustomer, InvoicingCustomerPaymentMethod } from '../../../entity/invoicing/invoicingCustomer/invoicingCustomerState';
|
|
4
6
|
import { RootState } from '../../../rootStateTypes';
|
|
7
|
+
import { InvoicingSetupIntent } from '../customerPaymentMethod/customerPaymentMethodState';
|
|
5
8
|
import { InvoicingPaymentLinkEmailPreviewData } from './editInvoicingCustomerDetailViewPayload';
|
|
6
9
|
import { InvoicingCustomerFormLocalData } from './editInvoicingCustomerDetailViewState';
|
|
7
|
-
import { InvoicingInvoice } from '../../../entity/invoicing/invoice/invoiceState';
|
|
8
|
-
import { InvoicingCustomer, InvoicingCustomerPaymentMethod } from '../../../entity/invoicing/invoicingCustomer/invoicingCustomerState';
|
|
9
|
-
import { InvoicingSetupIntent } from '../customerPaymentMethod/customerPaymentMethodState';
|
|
10
10
|
/**
|
|
11
11
|
* Read-only view for the customer detail page: the customer entity + its fetch
|
|
12
12
|
* state, plus everything the page renders in view mode — recent invoices, the
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getInvoicingCustomerFormView = exports.getInvoicingCustomerRecord = void 0;
|
|
4
4
|
const reduceFetchState_1 = require("../../../commonStateTypes/reduceFetchState");
|
|
5
|
-
const invoicingCustomerSelector_1 = require("../../../entity/invoicing/invoicingCustomer/invoicingCustomerSelector");
|
|
6
|
-
const addressViewSelector_1 = require("../../addressView/addressViewSelector");
|
|
7
|
-
const invoicingConfigViewSelector_1 = require("../invoicingConfigView/invoicingConfigViewSelector");
|
|
8
|
-
const invoicingCustomerFormConfig_1 = require("./invoicingCustomerFormConfig");
|
|
9
5
|
const invoiceSelector_1 = require("../../../entity/invoicing/invoice/invoiceSelector");
|
|
6
|
+
const invoicingCustomerSelector_1 = require("../../../entity/invoicing/invoicingCustomer/invoicingCustomerSelector");
|
|
10
7
|
const invoicingCustomerSelector_2 = require("../../../entity/invoicing/invoicingCustomer/invoicingCustomerSelector");
|
|
8
|
+
const addressViewSelector_1 = require("../../addressView/addressViewSelector");
|
|
11
9
|
const customerPaymentMethodSelector_1 = require("../customerPaymentMethod/customerPaymentMethodSelector");
|
|
10
|
+
const invoicingConfigViewSelector_1 = require("../invoicingConfigView/invoicingConfigViewSelector");
|
|
12
11
|
const invoicingSettingsHelpers_1 = require("../settingsView/invoicingSettingsHelpers");
|
|
13
12
|
const settingsViewSelector_1 = require("../settingsView/settingsViewSelector");
|
|
13
|
+
const invoicingCustomerFormConfig_1 = require("./invoicingCustomerFormConfig");
|
|
14
14
|
/**
|
|
15
15
|
* `invoicingCustomerID` is absent in create mode, where there is no record to
|
|
16
16
|
* resolve — the view still renders, off an empty record.
|
package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewState.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InvoicingPaymentLinkEmailPreviewData } from './editInvoicingCustomerDetailViewPayload';
|
|
2
1
|
import { FetchStateAndError, FetchedState, ID } from '../../../commonStateTypes/common';
|
|
2
|
+
import { InvoicingPaymentLinkEmailPreviewData } from './editInvoicingCustomerDetailViewPayload';
|
|
3
3
|
/**
|
|
4
4
|
* Draft form state for the create/edit customer form. Held in CES so the form
|
|
5
5
|
* flows its data from here (mirrors the bill-pay / reimbursement pattern). The
|
package/lib/view/invoicing/editInvoicingCustomerDetailView/fetchInvoicingCustomerDetailPageEpic.js
CHANGED
|
@@ -49,7 +49,10 @@ const fetchInvoicingCustomerDetailPageEpic = (actions$, state$) => actions$.pipe
|
|
|
49
49
|
// preview on first paint. Deliberately not part of the page's fetch
|
|
50
50
|
// state — the page must not wait on it, and its own guard makes the
|
|
51
51
|
// later open a no-op.
|
|
52
|
-
pageActions.push((0, editInvoicingCustomerDetailViewReducer_1.fetchInvoicingPaymentLinkEmailPreviewPage)({
|
|
52
|
+
pageActions.push((0, editInvoicingCustomerDetailViewReducer_1.fetchInvoicingPaymentLinkEmailPreviewPage)({
|
|
53
|
+
cacheOverride,
|
|
54
|
+
customerId: id,
|
|
55
|
+
}));
|
|
53
56
|
return (0, rxjs_1.concat)((0, rxjs_1.from)(pageActions));
|
|
54
57
|
}));
|
|
55
58
|
exports.fetchInvoicingCustomerDetailPageEpic = fetchInvoicingCustomerDetailPageEpic;
|
|
@@ -4,8 +4,8 @@ exports.fetchInvoicingPaymentLinkEmailPreviewEpic = void 0;
|
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
6
|
const responsePayload_1 = require("../../../responsePayload");
|
|
7
|
-
const editInvoicingCustomerDetailViewReducer_1 = require("./editInvoicingCustomerDetailViewReducer");
|
|
8
7
|
const editInvoicingCustomerDetailViewPayload_1 = require("./editInvoicingCustomerDetailViewPayload");
|
|
8
|
+
const editInvoicingCustomerDetailViewReducer_1 = require("./editInvoicingCustomerDetailViewReducer");
|
|
9
9
|
/**
|
|
10
10
|
* Renders the payment-link email once, server-side, with sentinel tokens where
|
|
11
11
|
* the subject and body go. The composer splices the draft into those tokens as
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
3
|
+
import { InvoicingSubscriptionActionBody } from './editInvoicingSubscriptionDetailViewPayload';
|
|
3
4
|
import { EditInvoicingSubscriptionDetailViewState, InvoicingSubscriptionFormLocalData } from './editInvoicingSubscriptionDetailViewState';
|
|
4
5
|
/** Push the full form draft into CES (edit tree when `id` is present). */
|
|
5
6
|
export interface UpdateInvoicingSubscriptionFormDraftPayload {
|
|
@@ -20,7 +21,6 @@ export interface SyncInvoicingSubscriptionCouponsPayload {
|
|
|
20
21
|
previousCouponCode: string;
|
|
21
22
|
subscriptionId: string;
|
|
22
23
|
}
|
|
23
|
-
import { InvoicingSubscriptionActionBody } from './editInvoicingSubscriptionDetailViewPayload';
|
|
24
24
|
export interface RunInvoicingSubscriptionActionPayload {
|
|
25
25
|
action: string;
|
|
26
26
|
id: ID;
|
|
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getInvoicingSubscriptionFormView = exports.getEditInvoicingSubscriptionDetailViewState = void 0;
|
|
4
4
|
const reduceFetchState_1 = require("../../../commonStateTypes/reduceFetchState");
|
|
5
5
|
const invoicingSubscriptionSelector_1 = require("../../../entity/invoicing/invoicingSubscription/invoicingSubscriptionSelector");
|
|
6
|
-
const invoicingSubscriptionFormConfig_1 = require("./invoicingSubscriptionFormConfig");
|
|
7
6
|
const addressViewSelector_1 = require("../../addressView/addressViewSelector");
|
|
8
7
|
const couponViewSelector_1 = require("../couponView/couponViewSelector");
|
|
9
8
|
const invoicingCatalogListViewSelector_1 = require("../invoicingCatalogListView/invoicingCatalogListViewSelector");
|
|
10
9
|
const invoicingConfigViewSelector_1 = require("../invoicingConfigView/invoicingConfigViewSelector");
|
|
11
10
|
const invoicingCustomerListViewSelector_1 = require("../invoicingCustomerListView/invoicingCustomerListViewSelector");
|
|
11
|
+
const invoicingSubscriptionFormConfig_1 = require("./invoicingSubscriptionFormConfig");
|
|
12
12
|
const invoicingSubscriptionFormConfig_2 = require("./invoicingSubscriptionFormConfig");
|
|
13
13
|
const getEditInvoicingSubscriptionDetailViewState = (state, invoicingSubscriptionID) => {
|
|
14
14
|
const { error, fetchState, savedSubscriptionId } = state.editInvoicingSubscriptionDetailViewState;
|
|
@@ -41,14 +41,20 @@ const fetchInvoicingSubscriptionDetailPageEpic = (actions$, state$) => actions$.
|
|
|
41
41
|
// Plan and coupon lists back the names the page renders for its line
|
|
42
42
|
// items; both list slices cache, so this only refetches when asked to.
|
|
43
43
|
const catalogListState = state.invoicingCatalogListViewState;
|
|
44
|
-
if (shouldFetch({
|
|
44
|
+
if (shouldFetch({
|
|
45
|
+
error: catalogListState.error,
|
|
46
|
+
fetchState: catalogListState.fetchState,
|
|
47
|
+
}, cacheOverride)) {
|
|
45
48
|
pageActions.push((0, invoicingCatalogListViewReducer_1.fetchInvoicingCatalogPlanList)({
|
|
46
49
|
filters: { type: 'plan' },
|
|
47
50
|
keepExistingListItems: false,
|
|
48
51
|
}));
|
|
49
52
|
}
|
|
50
53
|
const couponListState = state.invoicingCouponViewState;
|
|
51
|
-
if (shouldFetch({
|
|
54
|
+
if (shouldFetch({
|
|
55
|
+
error: couponListState.error,
|
|
56
|
+
fetchState: couponListState.fetchState,
|
|
57
|
+
}, cacheOverride)) {
|
|
52
58
|
pageActions.push((0, couponViewReducer_1.fetchInvoicingCouponList)({ filters: {}, keepExistingListItems: false }));
|
|
53
59
|
}
|
|
54
60
|
return pageActions.length > 0 ? (0, rxjs_1.from)(pageActions) : rxjs_1.EMPTY;
|
|
@@ -4,8 +4,8 @@ exports.seedInvoicingSubscriptionFormDraftEpic = void 0;
|
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
6
|
const editInvoicingSubscriptionDetailViewReducer_1 = require("./editInvoicingSubscriptionDetailViewReducer");
|
|
7
|
-
const invoicingSubscriptionFormConfig_1 = require("./invoicingSubscriptionFormConfig");
|
|
8
7
|
const invoicingSubscriptionDetailHelper_1 = require("./invoicingSubscriptionDetailHelper");
|
|
8
|
+
const invoicingSubscriptionFormConfig_1 = require("./invoicingSubscriptionFormConfig");
|
|
9
9
|
/**
|
|
10
10
|
* Seeds the edit draft from the record the moment the detail fetch lands, so
|
|
11
11
|
* the form has its values before it mounts. The reducer ignores the seed when a
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FetchState, ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
3
|
-
import { InvoiceDetail, InvoiceDetailState } from './invoiceDetailState';
|
|
4
3
|
import { InvoicingInvoiceActionBody } from './invoiceDetailPayload';
|
|
4
|
+
import { InvoiceDetail, InvoiceDetailState } from './invoiceDetailState';
|
|
5
5
|
export type InvoicingInvoiceActionKind = 'apply-excess' | 'collect' | 'issue-credit-note' | 'record-payment' | 'refund-excess' | 'regenerate' | 'remove-payment' | 'payment-schedule' | 'send' | 'send-reminder' | 'void' | 'write-off';
|
|
6
6
|
export interface RunInvoicingInvoiceActionPayload {
|
|
7
7
|
action: InvoicingInvoiceActionKind;
|
|
@@ -33,8 +33,8 @@ const getInvoiceDetail = (state, invoiceId) => {
|
|
|
33
33
|
shippingAddress: invoice?.shippingAddressId != null
|
|
34
34
|
? (0, addressSelector_1.getAddressByAddressId)(state.addressState, invoice.shippingAddressId)
|
|
35
35
|
: undefined,
|
|
36
|
-
actionState:
|
|
37
|
-
NOT_STARTED_ACTION
|
|
36
|
+
actionState: state.invoicingInvoiceDetailState.actionStateByInvoiceId[invoiceId] ??
|
|
37
|
+
NOT_STARTED_ACTION,
|
|
38
38
|
fetchState: detail?.fetchState ?? 'Not-Started',
|
|
39
39
|
error: detail?.error,
|
|
40
40
|
version: 1.0,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getInvoiceListView = void 0;
|
|
4
4
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
5
|
-
const runningInvoicingActionId_1 = require("../runningInvoicingActionId");
|
|
6
5
|
const invoicingTabHelper_1 = require("../invoicingTabHelper");
|
|
6
|
+
const runningInvoicingActionId_1 = require("../runningInvoicingActionId");
|
|
7
7
|
const invoiceListState_1 = require("./invoiceListState");
|
|
8
8
|
/**
|
|
9
9
|
* Bundled read view for the invoices list page: the denormalized invoice rows
|
package/lib/view/invoicing/invoicingDunningCaseDetailView/invoicingDunningCaseDetailViewReducer.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
3
|
-
import { InvoicingDunningCaseDetailViewState, InvoicingDunningEmailPreview, InvoicingDunningEmailPreviewState } from './invoicingDunningCaseDetailViewState';
|
|
4
3
|
import { InvoicingDunningActionBody } from './invoicingDunningCaseDetailViewPayload';
|
|
4
|
+
import { InvoicingDunningCaseDetailViewState, InvoicingDunningEmailPreview, InvoicingDunningEmailPreviewState } from './invoicingDunningCaseDetailViewState';
|
|
5
5
|
/** Run a lifecycle action on a dunning case. */
|
|
6
6
|
export interface RunInvoicingDunningActionPayload {
|
|
7
7
|
action: string;
|