@zeniai/client-epic-state 5.1.97 → 5.1.99
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/entity/invoicing/invoicingCommonPayload.d.ts +12 -0
- package/lib/entity/invoicing/invoicingCommonPayload.js +18 -0
- package/lib/entity/invoicing/invoicingTransaction/invoicingTransactionPayload.d.ts +1 -1
- package/lib/epic.d.ts +1 -5
- package/lib/epic.js +1 -5
- package/lib/esm/entity/invoicing/invoicingCommonPayload.js +16 -0
- package/lib/esm/epic.js +1 -5
- package/lib/esm/index.js +16 -18
- package/lib/esm/reducer.js +0 -3
- package/lib/esm/view/dashboard/dashboardEpic.js +0 -20
- package/lib/esm/view/dashboard/dashboardReducer.js +1 -13
- package/lib/esm/view/dashboard/dashboardSelector.js +2 -7
- package/lib/esm/view/invoicing/auditView/auditViewSelector.js +4 -0
- package/lib/esm/view/invoicing/couponView/couponViewSelector.js +18 -8
- package/lib/esm/view/invoicing/couponView/couponViewState.js +0 -9
- package/lib/esm/view/invoicing/createCreditNote/createCreditNoteFormConfig.js +1 -0
- package/lib/esm/view/invoicing/createCreditNote/createCreditNotePayload.js +4 -1
- package/lib/esm/view/invoicing/createCreditNote/createCreditNoteSelector.js +4 -2
- package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector.js +7 -6
- package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/invoicingCatalogItemFormConfig.js +3 -19
- package/lib/esm/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewSelector.js +10 -5
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.js +6 -4
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/invoicingCustomerFormConfig.js +0 -17
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.js +5 -0
- package/lib/esm/view/invoicing/invoiceList/fetchInvoiceListPageEpic.js +2 -1
- package/lib/esm/view/invoicing/invoiceList/invoiceListReducer.js +18 -17
- package/lib/esm/view/invoicing/invoiceList/invoiceListSelector.js +12 -4
- package/lib/esm/view/invoicing/invoiceList/invoiceListState.js +13 -9
- package/lib/esm/view/invoicing/invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewSelector.js +5 -1
- package/lib/esm/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewSelector.js +2 -1
- package/lib/esm/view/invoicing/invoicingConfigView/invoicingConfigViewReducer.js +26 -0
- package/lib/esm/view/invoicing/invoicingConfigView/invoicingConfigViewSelector.js +9 -0
- package/lib/esm/view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewSelector.js +9 -3
- package/lib/esm/view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewState.js +0 -9
- package/lib/esm/view/invoicing/invoicingCustomerDetailView/fetchInvoicingCustomerDetailPageEpic.js +2 -2
- package/lib/esm/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewSelector.js +1 -1
- package/lib/esm/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector.js +9 -3
- package/lib/esm/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState.js +0 -9
- package/lib/esm/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewSelector.js +8 -3
- package/lib/esm/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewState.js +1 -9
- package/lib/esm/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector.js +11 -3
- package/lib/esm/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewState.js +0 -9
- package/lib/esm/view/invoicing/invoicingTabHelper.js +27 -0
- package/lib/esm/view/invoicing/invoicingTransactionListView/epics/fetchInvoicingTransactionListPageEpic.js +2 -1
- package/lib/esm/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewReducer.js +5 -5
- package/lib/esm/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewSelector.js +12 -4
- package/lib/esm/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewState.js +11 -9
- package/lib/esm/view/invoicing/issueCreditNote/issueCreditNoteFormConfig.js +1 -8
- package/lib/esm/view/invoicing/issueCreditNote/issueCreditNotePayload.js +5 -1
- package/lib/esm/view/invoicing/issueCreditNote/issueCreditNoteSelector.js +5 -2
- package/lib/esm/view/invoicing/recordPayment/recordPaymentFormConfig.js +0 -26
- package/lib/esm/view/invoicing/recordPayment/recordPaymentSelector.js +26 -6
- package/lib/esm/view/invoicing/settingsView/settingsViewSelector.js +8 -1
- package/lib/esm/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.js +1 -67
- package/lib/index.d.ts +17 -20
- package/lib/index.js +41 -65
- package/lib/reducer.d.ts +0 -3
- package/lib/reducer.js +0 -3
- package/lib/view/dashboard/dashboardEpic.d.ts +1 -3
- package/lib/view/dashboard/dashboardEpic.js +0 -20
- package/lib/view/dashboard/dashboardReducer.d.ts +1 -1
- package/lib/view/dashboard/dashboardReducer.js +2 -14
- package/lib/view/dashboard/dashboardSelector.d.ts +0 -1
- package/lib/view/dashboard/dashboardSelector.js +2 -7
- package/lib/view/dashboard/dashboardState.d.ts +0 -1
- package/lib/view/invoicing/auditView/auditViewSelector.d.ts +4 -0
- package/lib/view/invoicing/auditView/auditViewSelector.js +4 -0
- package/lib/view/invoicing/couponView/couponViewSelector.d.ts +5 -1
- package/lib/view/invoicing/couponView/couponViewSelector.js +17 -7
- package/lib/view/invoicing/couponView/couponViewState.d.ts +0 -7
- package/lib/view/invoicing/couponView/couponViewState.js +1 -10
- package/lib/view/invoicing/createCreditNote/createCreditNoteFormConfig.js +1 -0
- package/lib/view/invoicing/createCreditNote/createCreditNotePayload.js +4 -1
- package/lib/view/invoicing/createCreditNote/createCreditNoteSelector.d.ts +3 -1
- package/lib/view/invoicing/createCreditNote/createCreditNoteSelector.js +4 -2
- package/lib/view/invoicing/createCreditNote/createCreditNoteState.d.ts +6 -0
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector.d.ts +5 -5
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector.js +6 -5
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/invoicingCatalogItemFormConfig.d.ts +3 -6
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/invoicingCatalogItemFormConfig.js +4 -20
- package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewSelector.d.ts +9 -7
- package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewSelector.js +10 -5
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.d.ts +4 -3
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.js +5 -3
- package/lib/view/invoicing/editInvoicingCustomerDetailView/invoicingCustomerFormConfig.d.ts +0 -8
- package/lib/view/invoicing/editInvoicingCustomerDetailView/invoicingCustomerFormConfig.js +1 -18
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.d.ts +5 -0
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.js +5 -0
- package/lib/view/invoicing/invoiceList/fetchInvoiceListPageEpic.js +2 -1
- package/lib/view/invoicing/invoiceList/invoiceListReducer.js +17 -16
- package/lib/view/invoicing/invoiceList/invoiceListSelector.d.ts +3 -1
- package/lib/view/invoicing/invoiceList/invoiceListSelector.js +11 -3
- package/lib/view/invoicing/invoiceList/invoiceListState.d.ts +13 -9
- package/lib/view/invoicing/invoiceList/invoiceListState.js +15 -10
- package/lib/view/invoicing/invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewSelector.d.ts +9 -1
- package/lib/view/invoicing/invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewSelector.js +5 -1
- package/lib/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewSelector.d.ts +3 -1
- package/lib/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewSelector.js +2 -1
- package/lib/view/invoicing/invoicingConfigView/invoicingConfigViewPayload.d.ts +13 -0
- package/lib/view/invoicing/invoicingConfigView/invoicingConfigViewReducer.d.ts +1 -1
- package/lib/view/invoicing/invoicingConfigView/invoicingConfigViewReducer.js +26 -0
- package/lib/view/invoicing/invoicingConfigView/invoicingConfigViewSelector.d.ts +19 -1
- package/lib/view/invoicing/invoicingConfigView/invoicingConfigViewSelector.js +11 -1
- package/lib/view/invoicing/invoicingConfigView/invoicingConfigViewState.d.ts +13 -0
- package/lib/view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewSelector.d.ts +8 -1
- package/lib/view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewSelector.js +8 -2
- package/lib/view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewState.d.ts +0 -7
- package/lib/view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewState.js +1 -10
- package/lib/view/invoicing/invoicingCustomerDetailView/fetchInvoicingCustomerDetailPageEpic.js +2 -2
- package/lib/view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewSelector.js +1 -1
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector.d.ts +3 -1
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector.js +8 -2
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState.d.ts +0 -7
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState.js +1 -10
- package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewReducer.d.ts +1 -1
- package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewSelector.d.ts +3 -1
- package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewSelector.js +7 -2
- package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewState.d.ts +2 -9
- package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewState.js +2 -10
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector.d.ts +7 -1
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector.js +10 -2
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewState.d.ts +0 -7
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewState.js +1 -10
- package/lib/view/invoicing/invoicingTabHelper.d.ts +27 -0
- package/lib/view/invoicing/invoicingTabHelper.js +30 -0
- package/lib/view/invoicing/invoicingTransactionListView/epics/fetchInvoicingTransactionListPageEpic.js +2 -1
- package/lib/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewReducer.d.ts +1 -1
- package/lib/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewReducer.js +4 -4
- package/lib/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewSelector.d.ts +8 -0
- package/lib/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewSelector.js +11 -3
- package/lib/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewState.d.ts +10 -10
- package/lib/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewState.js +13 -10
- package/lib/view/invoicing/issueCreditNote/issueCreditNoteFormConfig.d.ts +0 -2
- package/lib/view/invoicing/issueCreditNote/issueCreditNoteFormConfig.js +2 -9
- package/lib/view/invoicing/issueCreditNote/issueCreditNotePayload.d.ts +2 -2
- package/lib/view/invoicing/issueCreditNote/issueCreditNotePayload.js +5 -1
- package/lib/view/invoicing/issueCreditNote/issueCreditNoteSelector.d.ts +3 -1
- package/lib/view/invoicing/issueCreditNote/issueCreditNoteSelector.js +4 -1
- package/lib/view/invoicing/issueCreditNote/issueCreditNoteState.d.ts +6 -0
- package/lib/view/invoicing/recordPayment/recordPaymentFormConfig.d.ts +0 -6
- package/lib/view/invoicing/recordPayment/recordPaymentFormConfig.js +1 -27
- package/lib/view/invoicing/recordPayment/recordPaymentSelector.d.ts +3 -2
- package/lib/view/invoicing/recordPayment/recordPaymentSelector.js +26 -6
- package/lib/view/invoicing/settingsView/settingsViewSelector.d.ts +12 -1
- package/lib/view/invoicing/settingsView/settingsViewSelector.js +8 -1
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.d.ts +1 -1
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.js +2 -68
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewState.d.ts +0 -3
- package/package.json +1 -1
- package/lib/entity/invoicing/coupon/couponConstants.d.ts +0 -11
- package/lib/entity/invoicing/coupon/couponConstants.js +0 -29
- package/lib/esm/entity/invoicing/coupon/couponConstants.js +0 -26
- package/lib/esm/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoIntroClosedByOutsideClickEpic.js +0 -18
- package/lib/esm/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoRemindMeLaterClickedEpic.js +0 -18
- package/lib/esm/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryVideoViewedEpic.js +0 -18
- package/lib/esm/view/zeniAccountsPromoCard/zeniAccountsPromoCardEpic.js +0 -16
- package/lib/esm/view/zeniAccountsPromoCard/zeniAccountsPromoCardPayload.js +0 -1
- package/lib/esm/view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer.js +0 -60
- package/lib/esm/view/zeniAccountsPromoCard/zeniAccountsPromoCardSelector.js +0 -12
- package/lib/esm/view/zeniAccountsPromoCard/zeniAccountsPromoCardState.js +0 -1
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoIntroClosedByOutsideClickEpic.d.ts +0 -8
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoIntroClosedByOutsideClickEpic.js +0 -22
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoRemindMeLaterClickedEpic.d.ts +0 -8
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoRemindMeLaterClickedEpic.js +0 -22
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryVideoViewedEpic.d.ts +0 -8
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryVideoViewedEpic.js +0 -22
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardEpic.d.ts +0 -13
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardEpic.js +0 -20
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardPayload.d.ts +0 -11
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardPayload.js +0 -2
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer.d.ts +0 -7
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer.js +0 -64
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardSelector.d.ts +0 -12
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardSelector.js +0 -15
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardState.d.ts +0 -9
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardState.js +0 -2
package/lib/esm/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewState.js
CHANGED
|
@@ -26,23 +26,25 @@ export const ALL_INVOICING_TRANSACTION_TAB_IDS = [
|
|
|
26
26
|
'refund',
|
|
27
27
|
'authorization',
|
|
28
28
|
'payment_reversal',
|
|
29
|
+
'excess_transfer',
|
|
29
30
|
];
|
|
30
31
|
export const toInvoicingTransactionTabId = (v) => stringToUnion(v, ALL_INVOICING_TRANSACTION_TAB_IDS);
|
|
31
|
-
/**
|
|
32
|
-
* Ordered filter-tab id set owned by CES so the transaction-list tabs live next
|
|
33
|
-
* to the model rather than being hardcoded in web-components. Tab labels and the
|
|
34
|
-
* per-tab count lookup stay in the view layer; this only carries the id set and
|
|
35
|
-
* display order.
|
|
36
|
-
*/
|
|
37
|
-
export const INVOICING_TRANSACTION_TABS = [
|
|
38
|
-
...ALL_INVOICING_TRANSACTION_TAB_IDS,
|
|
39
|
-
];
|
|
40
32
|
export const makeInvoicingTransactionTabState = () => ({
|
|
41
33
|
ids: [],
|
|
42
34
|
nextCursor: null,
|
|
43
35
|
fetchState: 'Not-Started',
|
|
44
36
|
error: undefined,
|
|
45
37
|
});
|
|
38
|
+
/** The cache entry for a tab, created on first use. */
|
|
39
|
+
export const invoicingTransactionTabStateFor = (byTab, tabId) => {
|
|
40
|
+
const existing = byTab[tabId];
|
|
41
|
+
if (existing != null) {
|
|
42
|
+
return existing;
|
|
43
|
+
}
|
|
44
|
+
const created = makeInvoicingTransactionTabState();
|
|
45
|
+
byTab[tabId] = created;
|
|
46
|
+
return created;
|
|
47
|
+
};
|
|
46
48
|
export const makeInvoicingTransactionIdsByTab = () => ALL_INVOICING_TRANSACTION_TAB_IDS.reduce((acc, tabId) => {
|
|
47
49
|
acc[tabId] = makeInvoicingTransactionTabState();
|
|
48
50
|
return acc;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
export const INVOICING_CREDIT_NOTE_REASON_CODES = [
|
|
2
|
-
'service_credit',
|
|
3
|
-
'billing_error',
|
|
4
|
-
'duplicate_charge',
|
|
5
|
-
'pricing_correction',
|
|
6
|
-
'goodwill',
|
|
7
|
-
'other',
|
|
8
|
-
];
|
|
9
1
|
export const initialIssueCreditNoteFormLocalData = (invoiceId = '') => ({
|
|
10
2
|
invoiceId,
|
|
11
3
|
lineItems: [],
|
|
12
4
|
reasonCode: '',
|
|
5
|
+
type: '',
|
|
13
6
|
});
|
|
@@ -23,15 +23,19 @@ export const localDataToIssueCreditNotePayload = (localData) => {
|
|
|
23
23
|
};
|
|
24
24
|
});
|
|
25
25
|
const reasonCode = localData.reasonCode.trim();
|
|
26
|
+
// Optional-chained: a draft persisted before this field existed has no
|
|
27
|
+
// `type`, and the draft survives navigation.
|
|
28
|
+
const type = localData.type?.trim() ?? '';
|
|
26
29
|
return {
|
|
27
30
|
line_items: lineItems,
|
|
28
|
-
type: 'adjustment',
|
|
29
31
|
...(reasonCode !== '' ? { reason_code: reasonCode } : {}),
|
|
32
|
+
...(type !== '' ? { type } : {}),
|
|
30
33
|
};
|
|
31
34
|
};
|
|
32
35
|
export const initializeIssueCreditNoteDraftFromInvoice = (invoice) => ({
|
|
33
36
|
invoiceId: invoice.id,
|
|
34
37
|
reasonCode: '',
|
|
38
|
+
type: '',
|
|
35
39
|
lineItems: (invoice.lineItems ?? []).map((lineItem) => ({
|
|
36
40
|
description: lineItem.description,
|
|
37
41
|
id: lineItem.id,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { getInvoiceDetail } from '../invoiceDetail/invoiceDetailSelector';
|
|
2
|
-
import {
|
|
2
|
+
import { getInvoicingConfigView } from '../invoicingConfigView/invoicingConfigViewSelector';
|
|
3
|
+
import { initialIssueCreditNoteFormLocalData } from './issueCreditNoteFormConfig';
|
|
3
4
|
/**
|
|
4
5
|
* The draft is a single global slice, so a draft seeded for a previously opened
|
|
5
6
|
* invoice can still be in state when another invoice's screen mounts. Anything
|
|
@@ -10,6 +11,7 @@ export const getIssueCreditNoteView = (state, invoiceId) => {
|
|
|
10
11
|
const invoiceView = getInvoiceDetail(state, invoiceId);
|
|
11
12
|
const { draft, error, fetchState, issuedCreditNoteId } = state.invoicingIssueCreditNoteState;
|
|
12
13
|
const isDraftForInvoice = draft.invoiceId === invoiceId;
|
|
14
|
+
const { creditNoteReasonCodeOptions, creditNoteTypeOptions } = getInvoicingConfigView(state);
|
|
13
15
|
return {
|
|
14
16
|
invoice: invoiceView.invoice,
|
|
15
17
|
isPageReady: invoiceView.fetchState === 'Completed' &&
|
|
@@ -19,8 +21,9 @@ export const getIssueCreditNoteView = (state, invoiceId) => {
|
|
|
19
21
|
localData: isDraftForInvoice
|
|
20
22
|
? draft
|
|
21
23
|
: initialIssueCreditNoteFormLocalData(invoiceId),
|
|
22
|
-
|
|
24
|
+
reasonCodeOptions: creditNoteReasonCodeOptions,
|
|
23
25
|
submitState: { error, fetchState },
|
|
26
|
+
typeOptions: creditNoteTypeOptions,
|
|
24
27
|
error: invoiceView.error,
|
|
25
28
|
fetchState: invoiceView.fetchState,
|
|
26
29
|
version: 1.0,
|
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Canonical value sets for the Record Payment form. CES owns the values;
|
|
3
|
-
* web-components maps each value to a localized label.
|
|
4
|
-
*/
|
|
5
|
-
export const INVOICING_PAYMENT_METHOD_VALUES = [
|
|
6
|
-
'card',
|
|
7
|
-
'cash',
|
|
8
|
-
'check',
|
|
9
|
-
'bank_transfer',
|
|
10
|
-
'direct_debit',
|
|
11
|
-
'paypal_express_checkout',
|
|
12
|
-
'apple_pay',
|
|
13
|
-
'google_pay',
|
|
14
|
-
'ach_credit',
|
|
15
|
-
'sepa_credit',
|
|
16
|
-
'other',
|
|
17
|
-
];
|
|
18
|
-
export const INVOICING_PAYMENT_GATEWAY_VALUES = [
|
|
19
|
-
'stripe',
|
|
20
|
-
'chargebee',
|
|
21
|
-
'braintree',
|
|
22
|
-
'paypal',
|
|
23
|
-
'adyen',
|
|
24
|
-
'razorpay',
|
|
25
|
-
'other',
|
|
26
|
-
];
|
|
27
1
|
export const initialRecordPaymentFormLocalData = {
|
|
28
2
|
comment: '',
|
|
29
3
|
customerId: '',
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { invoicingOptionCodes, } from '../../../entity/invoicing/invoicingCommonPayload';
|
|
1
2
|
import { getInvoiceListView } from '../invoiceList/invoiceListSelector';
|
|
2
|
-
import {
|
|
3
|
+
import { getInvoicingConfigView } from '../invoicingConfigView/invoicingConfigViewSelector';
|
|
3
4
|
/**
|
|
4
5
|
* Single bundled view for the record-payment submit lifecycle — carries the
|
|
5
6
|
* submit fetch state/error and the ids produced on success.
|
|
@@ -16,21 +17,39 @@ export const getRecordPaymentView = (state) => {
|
|
|
16
17
|
};
|
|
17
18
|
export const getRecordPaymentFormView = (state) => {
|
|
18
19
|
const { contextInvoiceId, error, fetchState, newPaymentDraft } = state.invoicingRecordPaymentState;
|
|
20
|
+
const { manualPaymentMethodOptions, paymentGatewayOptions } = getInvoicingConfigView(state);
|
|
19
21
|
return {
|
|
20
22
|
contextInvoiceId,
|
|
21
|
-
|
|
23
|
+
gatewayOptions: paymentGatewayOptions,
|
|
22
24
|
localData: newPaymentDraft,
|
|
23
|
-
|
|
25
|
+
paymentMethodOptions: manualPaymentMethodOptions,
|
|
24
26
|
fetchState,
|
|
25
27
|
error,
|
|
26
28
|
version: 1.0,
|
|
27
29
|
};
|
|
28
30
|
};
|
|
29
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Statuses that leave nothing to collect. Kept FE-local and expressed as an
|
|
33
|
+
* exclusion so that "unpaid" is derived from the config status list rather than
|
|
34
|
+
* an allowlist: a status the backend adds later counts as collectable and shows
|
|
35
|
+
* up in the picker instead of silently disappearing from it.
|
|
36
|
+
*/
|
|
37
|
+
const SETTLED_INVOICE_STATUSES = new Set([
|
|
38
|
+
'paid',
|
|
39
|
+
'voided',
|
|
40
|
+
]);
|
|
41
|
+
/** Fallback while `/1.0/config` has not landed, so the picker is never empty. */
|
|
42
|
+
const FALLBACK_UNPAID_INVOICE_STATUSES = [
|
|
30
43
|
'not_paid',
|
|
31
44
|
'partially_paid',
|
|
32
45
|
'payment_due',
|
|
33
|
-
]
|
|
46
|
+
];
|
|
47
|
+
const unpaidInvoiceStatuses = (invoiceStatusOptions) => {
|
|
48
|
+
if (invoiceStatusOptions.length === 0) {
|
|
49
|
+
return new Set(FALLBACK_UNPAID_INVOICE_STATUSES);
|
|
50
|
+
}
|
|
51
|
+
return new Set(invoicingOptionCodes(invoiceStatusOptions).filter((code) => !SETTLED_INVOICE_STATUSES.has(code)));
|
|
52
|
+
};
|
|
34
53
|
export const getRecordPaymentInvoiceOptions = (state, customerId) => {
|
|
35
54
|
if (customerId === '') {
|
|
36
55
|
return [];
|
|
@@ -39,8 +58,9 @@ export const getRecordPaymentInvoiceOptions = (state, customerId) => {
|
|
|
39
58
|
if (listView.filters.customerId !== customerId) {
|
|
40
59
|
return [];
|
|
41
60
|
}
|
|
61
|
+
const collectableStatuses = unpaidInvoiceStatuses(getInvoicingConfigView(state).invoiceStatusOptions);
|
|
42
62
|
return listView.invoices
|
|
43
|
-
.filter((invoice) =>
|
|
63
|
+
.filter((invoice) => collectableStatuses.has(invoice.status))
|
|
44
64
|
.filter((invoice) => (invoice.amountDue?.amount ?? 0) > 0)
|
|
45
65
|
.map((invoice) => ({
|
|
46
66
|
amountDue: invoice.amountDue?.amount ?? 0,
|
|
@@ -72,13 +72,20 @@ export function deriveInvoicingEnablePrerequisites(settings, isQboConnected, qbo
|
|
|
72
72
|
* and QBO slices read here are only fetched once a settings screen is mounted.
|
|
73
73
|
*/
|
|
74
74
|
export const getInvoicingSettingsHubView = (state) => {
|
|
75
|
-
const { enableState, qboAccountMappingKindOptions, status } = getInvoicingConfigView(state);
|
|
75
|
+
const { dunningScheduleActionOptions, enableState, error: configError, fetchState: configFetchState, qboAccountMappingKindOptions, qboCustomerMatchingOptions, qboSyncStatusOptions, status, } = getInvoicingConfigView(state);
|
|
76
76
|
const { canEnable, isQboConfigured, isStripeConnected } = deriveInvoicingEnablePrerequisites(state.invoicingSettingsViewState.settings, state.invoicingQboViewState.connection?.connected === true, qboAccountMappingKindOptions);
|
|
77
77
|
return {
|
|
78
78
|
canEnableInvoicing: status === 'settings' && canEnable,
|
|
79
|
+
configError,
|
|
80
|
+
configFetchState,
|
|
81
|
+
dunningScheduleActionOptions,
|
|
79
82
|
isEnablingInvoicing: enableState.fetchState === 'In-Progress',
|
|
83
|
+
qboAccountMappingKindOptions,
|
|
84
|
+
qboCustomerMatchingOptions,
|
|
85
|
+
qboSyncStatusOptions,
|
|
80
86
|
isQboConfigured,
|
|
81
87
|
isStripeConnected,
|
|
88
|
+
status,
|
|
82
89
|
};
|
|
83
90
|
};
|
|
84
91
|
/**
|
|
@@ -34,18 +34,6 @@ export const initialState = {
|
|
|
34
34
|
fetchState: 'Not-Started',
|
|
35
35
|
error: undefined,
|
|
36
36
|
},
|
|
37
|
-
updateTreasuryPromoIntroClosedByOutsideClickStatus: {
|
|
38
|
-
fetchState: 'Not-Started',
|
|
39
|
-
error: undefined,
|
|
40
|
-
},
|
|
41
|
-
updateTreasuryPromoRemindMeLaterClickedStatus: {
|
|
42
|
-
fetchState: 'Not-Started',
|
|
43
|
-
error: undefined,
|
|
44
|
-
},
|
|
45
|
-
updateTreasuryVideoViewedStatus: {
|
|
46
|
-
fetchState: 'Not-Started',
|
|
47
|
-
error: undefined,
|
|
48
|
-
},
|
|
49
37
|
hasValidState() {
|
|
50
38
|
return this.fetchState === 'Completed';
|
|
51
39
|
},
|
|
@@ -281,60 +269,6 @@ const treasurySetupView = createSlice({
|
|
|
281
269
|
updateFundAllocationLocalData(draft, action) {
|
|
282
270
|
draft.fundAllocationLocalData = action.payload;
|
|
283
271
|
},
|
|
284
|
-
updateTreasuryVideoViewed(draft) {
|
|
285
|
-
draft.updateTreasuryVideoViewedStatus = {
|
|
286
|
-
fetchState: 'In-Progress',
|
|
287
|
-
error: undefined,
|
|
288
|
-
};
|
|
289
|
-
},
|
|
290
|
-
updateTreasuryVideoViewedSuccess(draft) {
|
|
291
|
-
draft.updateTreasuryVideoViewedStatus = {
|
|
292
|
-
fetchState: 'Completed',
|
|
293
|
-
error: undefined,
|
|
294
|
-
};
|
|
295
|
-
},
|
|
296
|
-
updateTreasuryVideoViewedFailure(draft, action) {
|
|
297
|
-
draft.updateTreasuryVideoViewedStatus = {
|
|
298
|
-
fetchState: 'Error',
|
|
299
|
-
error: action.payload,
|
|
300
|
-
};
|
|
301
|
-
},
|
|
302
|
-
updateTreasuryPromoRemindMeLaterClicked(draft) {
|
|
303
|
-
draft.updateTreasuryPromoRemindMeLaterClickedStatus = {
|
|
304
|
-
fetchState: 'In-Progress',
|
|
305
|
-
error: undefined,
|
|
306
|
-
};
|
|
307
|
-
},
|
|
308
|
-
updateTreasuryPromoRemindMeLaterClickedSuccess(draft) {
|
|
309
|
-
draft.updateTreasuryPromoRemindMeLaterClickedStatus = {
|
|
310
|
-
fetchState: 'Completed',
|
|
311
|
-
error: undefined,
|
|
312
|
-
};
|
|
313
|
-
},
|
|
314
|
-
updateTreasuryPromoRemindMeLaterClickedFailure(draft, action) {
|
|
315
|
-
draft.updateTreasuryPromoRemindMeLaterClickedStatus = {
|
|
316
|
-
fetchState: 'Error',
|
|
317
|
-
error: action.payload,
|
|
318
|
-
};
|
|
319
|
-
},
|
|
320
|
-
updateTreasuryPromoIntroClosedByOutsideClick(draft) {
|
|
321
|
-
draft.updateTreasuryPromoIntroClosedByOutsideClickStatus = {
|
|
322
|
-
fetchState: 'In-Progress',
|
|
323
|
-
error: undefined,
|
|
324
|
-
};
|
|
325
|
-
},
|
|
326
|
-
updateTreasuryPromoIntroClosedByOutsideClickSuccess(draft) {
|
|
327
|
-
draft.updateTreasuryPromoIntroClosedByOutsideClickStatus = {
|
|
328
|
-
fetchState: 'Completed',
|
|
329
|
-
error: undefined,
|
|
330
|
-
};
|
|
331
|
-
},
|
|
332
|
-
updateTreasuryPromoIntroClosedByOutsideClickFailure(draft, action) {
|
|
333
|
-
draft.updateTreasuryPromoIntroClosedByOutsideClickStatus = {
|
|
334
|
-
fetchState: 'Error',
|
|
335
|
-
error: action.payload,
|
|
336
|
-
};
|
|
337
|
-
},
|
|
338
272
|
clearTreasurySetupView(draft) {
|
|
339
273
|
Object.assign(draft, initialState);
|
|
340
274
|
},
|
|
@@ -345,7 +279,7 @@ const treasurySetupView = createSlice({
|
|
|
345
279
|
});
|
|
346
280
|
},
|
|
347
281
|
});
|
|
348
|
-
export const { fetchTreasuryFunds, fetchTreasurySetupView, fetchTreasurySetupViewSuccess, fetchTreasurySetupViewFailure, acceptTreasuryTerms, acceptTreasuryTermsSuccess, acceptTreasuryTermsFailure, clearTreasurySetupView, updateTreasuryFundsSuccess, updateTreasuryFundsFailure, updatePortfolioAllocation, updatePortfolioAllocationSuccess, updatePortfolioAllocationFailure, fetchPortfolioAllocation, fetchPortfolioAllocationSuccess, fetchPortfolioAllocationFailure, updateFundAllocationLocalData,
|
|
282
|
+
export const { fetchTreasuryFunds, fetchTreasurySetupView, fetchTreasurySetupViewSuccess, fetchTreasurySetupViewFailure, acceptTreasuryTerms, acceptTreasuryTermsSuccess, acceptTreasuryTermsFailure, clearTreasurySetupView, updateTreasuryFundsSuccess, updateTreasuryFundsFailure, updatePortfolioAllocation, updatePortfolioAllocationSuccess, updatePortfolioAllocationFailure, fetchPortfolioAllocation, fetchPortfolioAllocationSuccess, fetchPortfolioAllocationFailure, updateFundAllocationLocalData, } = treasurySetupView.actions;
|
|
349
283
|
export default treasurySetupView.reducer;
|
|
350
284
|
function mapTreasuryFundsPayloadToFundData(fundsPayload) {
|
|
351
285
|
return fundsPayload.funds.map((fund) => ({
|
package/lib/index.d.ts
CHANGED
|
@@ -278,7 +278,7 @@ import { PortfolioUIState } from './view/companyView/types/companyPortfolioViewS
|
|
|
278
278
|
import { CompanyView } from './view/companyView/types/companyView';
|
|
279
279
|
import { UserAndRole } from './view/companyView/types/userAndRole';
|
|
280
280
|
import { clearTransferEntryRouteReplacement, createTransferEntry, createTransferEntryFailure, createTransferEntryReplacedTransaction, createTransferEntrySuccess, fetchAccountsForTransferFlow, resetCreateTransferEntryStatus } from './view/createTransferEntry/createTransferEntryReducer';
|
|
281
|
-
import { fetchDashboard
|
|
281
|
+
import { fetchDashboard } from './view/dashboard/dashboardReducer';
|
|
282
282
|
import { DashboardReport, getDashboard } from './view/dashboard/dashboardSelector';
|
|
283
283
|
import { updateDashboardLayout } from './view/dashboardLayout/dashboardLayoutReducer';
|
|
284
284
|
import uploadAccountStatementIntoDocumentAI from './view/expenseAutomationView/epics/accountRecon/uploadAccountStatementDocumentAIHelper';
|
|
@@ -548,7 +548,7 @@ import { MileageDenomination, MileageDetailsLocalData, RemiSetupViewLocalData, R
|
|
|
548
548
|
import { approveOrRejectRemisBulkAction, autoReviewPendingApprovalRemis, cancelOrDeleteRemisBulkAction, clearAllRemisFromBulkActionList, clearRemiBulkActionView, incrementRemiBulkActionProcessedCount, removeRemiFromBulkActionList, reviewDraftRemisBulkAction, submitDraftRemisBulkAction, updateRemisBulkActionList } from './view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewReducer';
|
|
549
549
|
import { RemisBulkReviewView, getRemisBulkOperationProgress, getRemisBulkReviewView } from './view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewSelector';
|
|
550
550
|
import { BillPayFilterCategoryDropdownOption, CategoryCombinationOperator, FilterCategoryType, MatchingOperatorDropdownOption, ReimbursementFilterCategoryDropdownOption, SpendManagementFilterCategoryDropdownOption, SpendManagementFilterEntityType, SpendManagementFiltersType, TaskFilterCategoryDropdownOption, hideCreatedByFilter } from './view/spendManagement/spendManagementFilterHelpers';
|
|
551
|
-
import { acceptTreasuryTerms, clearTreasurySetupView, fetchPortfolioAllocation, fetchTreasuryFunds, fetchTreasurySetupView, updateFundAllocationLocalData, updatePortfolioAllocation
|
|
551
|
+
import { acceptTreasuryTerms, clearTreasurySetupView, fetchPortfolioAllocation, fetchTreasuryFunds, fetchTreasurySetupView, updateFundAllocationLocalData, updatePortfolioAllocation } from './view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer';
|
|
552
552
|
import { TreasuryBusinessVerificationDetails, TreasurySetupView, getTreasuryBusinessVerificationDetails, getTreasurySetupViewDetails } from './view/spendManagement/treasury/treasurySetUp/treasurySetupViewSelector';
|
|
553
553
|
import { FundAllocationOption, FundComposition, FundData, getTreasuryFundsMaximumYield } from './view/spendManagement/treasury/treasurySetUp/treasurySetupViewState';
|
|
554
554
|
import { clearCheckDeposit, depositCheck, updateLocalStore as updateCheckDepositLocalData, updateDepositToLocalData } from './view/spendManagement/zeniAccounts/checkDeposit/checkDepositReducer';
|
|
@@ -660,9 +660,6 @@ import { VendorType } from './view/vendorTypeList/vendorTypeListPayload';
|
|
|
660
660
|
import { Statement } from './view/zeniAccStatementList/zeniAccStatementList';
|
|
661
661
|
import { fetchZeniAccStatementPage } from './view/zeniAccStatementList/zeniAccStatementListReducer';
|
|
662
662
|
import { ZeniAccStatementsSelectorView, getZeniAccStatements } from './view/zeniAccStatementList/zeniAccStatementListSelector';
|
|
663
|
-
import { fetchZeniAccountsPromoCard } from './view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer';
|
|
664
|
-
import { ZeniAccountsPromoCardReport, getZeniAccountsPromoCard } from './view/zeniAccountsPromoCard/zeniAccountsPromoCardSelector';
|
|
665
|
-
import { ZeniAccountsPromoCardState } from './view/zeniAccountsPromoCard/zeniAccountsPromoCardState';
|
|
666
663
|
import { OAuthParams, ParseOAuthParamsResult, parseOAuthParams } from './view/zeniOAuthView/zeniOAuthParamsParser';
|
|
667
664
|
import { ApproveOAuthConsentPayload, approveOAuthConsent, approveOAuthConsentFailure, approveOAuthConsentSuccess, clearZeniOAuthView } from './view/zeniOAuthView/zeniOAuthReducer';
|
|
668
665
|
import { getZeniOAuthApproveError, getZeniOAuthApproveFetchState, getZeniOAuthApproveRedirectUrl } from './view/zeniOAuthView/zeniOAuthSelector';
|
|
@@ -745,7 +742,7 @@ export { clearRevenueProjectView, fetchRevenueForTimeframeProjectView, fetchReve
|
|
|
745
742
|
export { fetchCashPosition, updateCashPositionCOABalancesRange, updateCashPositionDownloadState, updateCashPositionUIState, getCashPosition, getCashPositionUIState, getCashPositionForSelectedRange, getCashPositionForHighlightedRange, CashPositionReport, CashPositionUIStateSelectorView, };
|
|
746
743
|
export { fetchCashInCashOut, getCashInCashOut, getCashInCashOutUIState, getCashInCashOutForSelectedRange, getCashInCashOutForHighlightedRange, updateCashInCashOutCOABalancesRange, updateCashInCashOutDownloadState, updateCashInCashOutUIState, CashInCashOutReport, CashInCashOutUIStateSelectorView, CashInCashOutCalculatedSectionID, CashInCashOutSectionID, };
|
|
747
744
|
export { fetchTopEx, updateTopExTimeFrame, updateTopExDownloadState, getTopExpenses, getTop6Expenses, getAllTopExpenses, TopExpenses, TopExReport, TopExAccount, TopExTimePeriodWithMetaData, };
|
|
748
|
-
export { fetchDashboard, getDashboard, DashboardReport
|
|
745
|
+
export { fetchDashboard, getDashboard, DashboardReport };
|
|
749
746
|
export { updateDashboardLayout };
|
|
750
747
|
export { PandLWithForecastView, getPandLWithForecast, } from './view/profitAndLoss/pAndLWithForecast/pAndLWithForecastSelector';
|
|
751
748
|
export { fetchProfitAndLoss, resetProfitAndLossNodeCollapseState, updateProfitAndLossUIState, ProfitAndLossState, ProfitAndLossUIState, getProfitAndLossReport, ProfitAndLossReport, getPandLReportFetchState, fetchProfitAndLossForTimeframe, };
|
|
@@ -932,7 +929,6 @@ export { Tag, TagState, TagViewState, getAllTags, TagViewSelectorView, fetchTagL
|
|
|
932
929
|
export { CardPayment, CardPaymentViewState, SetupIntentData, CardPaymentSelectorView, getAllCardsAndBankPaymentMethods, createCardSetupIntent, confirmCardSetupIntent, addCardPaymentSource, fetchPaymentSources, resetCardPaymentErrorStatuses, clearCardPaymentView, AddCardPaymentSourceType, };
|
|
933
930
|
export { getAuditReportGroupViewSelectorView, getAuditRuleGroupViewSelectorView, getUserFromAllUsers, AuditReportGroupSelectorView, AuditReportGroupViewSelectorView, AuditRuleGroupViewSelectorView, fetchAuditRuleGroupView, fetchAuditReportGroupView, saveReasonForAuditRule, AuditRuleGroup, AuditRuleGroupReport, AuditReportRule, AuditRuleEntityType, AuditRuleEntityIdType, AuditRuleBypassReason, clearAuditReportGroupViewByCompanyId, };
|
|
934
931
|
export { AuthenticationFeatureType, AuthenticationDetails, AuthenticationViewState, fetchCollaborationAuthToken, getAuthenticationView, };
|
|
935
|
-
export { ZeniAccountsPromoCardState, getZeniAccountsPromoCard, ZeniAccountsPromoCardReport, fetchZeniAccountsPromoCard, };
|
|
936
932
|
export { ApproveOAuthConsentPayload, OAuthParams, ParseOAuthParamsResult, ZeniOAuthViewState, approveOAuthConsent, approveOAuthConsentFailure, approveOAuthConsentSuccess, clearZeniOAuthView, getZeniOAuthApproveError, getZeniOAuthApproveFetchState, getZeniOAuthApproveRedirectUrl, parseOAuthParams, };
|
|
937
933
|
export { ExternalNotificationData, NotificationGroup, NotificationActivityType, NotificationIdentifierType, NotificationUpdateValue, NotificationMode, NotificationStatus, Notification, NotificationWithAuthors, NotificationMetaData, NotificationEventData, NotificationActivity, NotificationUpdates, NotificationValueFormat, toNotificationModeStrict, updateCommentsNotifications, updateCommentsNotificationsStatuses, };
|
|
938
934
|
export { NotificationView, NotificationViewUIState, NotificationTabState, NotificationTabType, NotificationSubTabType, toNotificationSubTabTypeStrict, toNotificationTabTypeStrict, fetchNotificationView, fetchNotificationUnreadCount, fetchNotificationUnreadCountSuccess, updateNotificationViewAllNotificationsStatus, updateNotificationViewNotificationStatus, updateNotificationViewTabState, updateNotificationViewCurrentTabAndSubTab, updateNotificationViewSubTab, updateNotificationViewUIState, getNotificationView, getExternalNotificationsForSelectedSubTab, getNotificationsForSelectedSubTab, };
|
|
@@ -945,7 +941,7 @@ export { fetchCockpitContext, fetchCompanyTaskManagerView, fetchTaskManagerMetri
|
|
|
945
941
|
export { Country };
|
|
946
942
|
export { InternationalWireVerificationState, VerificationFormField, VerificationFormLocalData, FieldValueType, fetchInternationalVerificationForm, submitInternationalVerificationForm, updateVerificationFormLocalData, getIntlWireVerificationView, InternationalWireVerificationView, };
|
|
947
943
|
export { fetchExpressPayInitialDetails, updateExpressPayFormLocalData, submitExpressPay, resetExpressPayLocalData, ExpressPayFormLocalData, ExpressPayView, getExpressPayView, };
|
|
948
|
-
export { acceptTreasuryTerms, fetchTreasurySetupView, clearTreasurySetupView, fetchTreasuryFunds, updatePortfolioAllocation, fetchPortfolioAllocation, updateFundAllocationLocalData,
|
|
944
|
+
export { acceptTreasuryTerms, fetchTreasurySetupView, clearTreasurySetupView, fetchTreasuryFunds, updatePortfolioAllocation, fetchPortfolioAllocation, updateFundAllocationLocalData, FundAllocationOption, FundComposition, FundData, TreasurySetupView, getTreasurySetupViewDetails, getTreasuryFundsMaximumYield, };
|
|
949
945
|
export { AiAccountantCustomer, AiAccountantCustomerState, AiAccountantEnrollment, AiAccountantEnrollmentStatus, AiAccountantJob, AiAccountantJobStatus, AiAccountantOperationType, getAllowedOperationsForStatus, toAiAccountantEnrollmentStatus, toAiAccountantJobStatus, toAiAccountantOperationType, } from './entity/aiAccountantCustomer/aiAccountantCustomerState';
|
|
950
946
|
export { AiAccountantCustomerPayload, AiAccountantEnrollmentPayload, AiAccountantJobPayload, toAiAccountantCustomer, toAiAccountantEnrollment, toAiAccountantJob, } from './entity/aiAccountantCustomer/aiAccountantCustomerPayload';
|
|
951
947
|
export { AiAccountantCancelOnboardingResponse, AiAccountantCancelOnboardingResponseData, AiAccountantCustomersResponse, AiAccountantCustomersResponseData, AiAccountantJobsResponse, AiAccountantJobsResponseData, AiAccountantTriggerJobResponse, AiAccountantTriggerJobResponseData, } from './view/aiAccountantView/aiAccountantViewPayload';
|
|
@@ -1045,7 +1041,7 @@ export type { StripeConnectCredentials } from './view/invoicing/settingsView/set
|
|
|
1045
1041
|
export { clearAllInvoices, removeInvoice, updateInvoices, } from './entity/invoicing/invoice/invoiceReducer';
|
|
1046
1042
|
export { getInvoiceById, getInvoicesByIds, } from './entity/invoicing/invoice/invoiceSelector';
|
|
1047
1043
|
export { clearInvoiceList, fetchInvoiceCounts, fetchInvoiceKPIs, fetchInvoiceList, fetchInvoiceListPage, setInvoiceActiveTab, updateInvoiceListFilters, } from './view/invoicing/invoiceList/invoiceListReducer';
|
|
1048
|
-
export { ALL_INVOICING_INVOICE_TAB_IDS,
|
|
1044
|
+
export { ALL_INVOICING_INVOICE_TAB_IDS, } from './view/invoicing/invoiceList/invoiceListState';
|
|
1049
1045
|
export type { InvoiceListFilters, InvoiceListState, InvoicingInvoiceTabId, } from './view/invoicing/invoiceList/invoiceListState';
|
|
1050
1046
|
export { getInvoiceListView } from './view/invoicing/invoiceList/invoiceListSelector';
|
|
1051
1047
|
export type { InvoiceListView } from './view/invoicing/invoiceList/invoiceListSelector';
|
|
@@ -1061,8 +1057,7 @@ export { initializeIssueCreditNoteDraft, issueCreditNoteFailure, issueCreditNote
|
|
|
1061
1057
|
export type { IssueCreditNoteRequest, IssueCreditNoteResponse, CreateCreditNoteRequest, CreateCreditNoteResponse, } from './view/invoicing/issueCreditNote/issueCreditNotePayload';
|
|
1062
1058
|
export { computeIssueCreditNoteTotal, initializeIssueCreditNoteDraftFromInvoice, localDataToIssueCreditNotePayload, } from './view/invoicing/issueCreditNote/issueCreditNotePayload';
|
|
1063
1059
|
export type { IssueCreditNoteFormLocalData, IssueCreditNoteLineItemDraft, } from './view/invoicing/issueCreditNote/issueCreditNoteState';
|
|
1064
|
-
export {
|
|
1065
|
-
export type { InvoicingCreditNoteReasonCode } from './view/invoicing/issueCreditNote/issueCreditNoteFormConfig';
|
|
1060
|
+
export { initialIssueCreditNoteFormLocalData, } from './view/invoicing/issueCreditNote/issueCreditNoteFormConfig';
|
|
1066
1061
|
export { getIssueCreditNoteView } from './view/invoicing/issueCreditNote/issueCreditNoteSelector';
|
|
1067
1062
|
export type { IssueCreditNoteView } from './view/invoicing/issueCreditNote/issueCreditNoteSelector';
|
|
1068
1063
|
export { createCreditNoteFailure, createCreditNoteSuccess, resetCreateCreditNote, submitCreateCreditNote, updateCreateCreditNoteFormDraft, } from './view/invoicing/createCreditNote/createCreditNoteReducer';
|
|
@@ -1074,7 +1069,7 @@ export type { CreateCreditNoteFormView, InvoicingCreateCreditNoteView, } from '.
|
|
|
1074
1069
|
export type { InvoiceRecordPaymentRequest, RecordPaymentLinkedInvoice, RecordPaymentRequest, } from './view/invoicing/recordPayment/recordPaymentPayload';
|
|
1075
1070
|
export { initializeRecordPaymentDraftFromInvoice, localDataToInvoiceRecordPaymentBody, localDataToRecordPaymentPayload, } from './view/invoicing/recordPayment/recordPaymentPayload';
|
|
1076
1071
|
export type { RecordPaymentFormLocalData } from './view/invoicing/recordPayment/recordPaymentState';
|
|
1077
|
-
export {
|
|
1072
|
+
export { initialRecordPaymentFormLocalData, } from './view/invoicing/recordPayment/recordPaymentFormConfig';
|
|
1078
1073
|
export { clearInvoicingOverview, fetchInvoicingOverview, } from './view/invoicing/invoicingOverview/invoicingOverviewReducer';
|
|
1079
1074
|
export type { InvoicingOverviewData, InvoicingOverviewPeriod, } from './view/invoicing/invoicingOverview/invoicingOverviewState';
|
|
1080
1075
|
export { buildPeriodOptions, getInvoicingOverview, } from './view/invoicing/invoicingOverview/invoicingOverviewSelector';
|
|
@@ -1090,7 +1085,7 @@ export type { InvoicingRecordPaymentView, RecordPaymentFormView, RecordPaymentIn
|
|
|
1090
1085
|
export { initializeInvoicingCustomerAddress, resetEditInvoicingCustomerDetailView, submitInvoicingCustomerForm, submitInvoicingCustomerFormFailure, submitInvoicingCustomerFormSuccess, updateInvoicingCustomerFormDraft, } from './view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer';
|
|
1091
1086
|
export type { SubmitInvoicingCustomerFormPayload, UpdateInvoicingCustomerFormDraftPayload, } from './view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer';
|
|
1092
1087
|
export type { InvoicingCustomerFormLocalData } from './view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewState';
|
|
1093
|
-
export { INVOICING_CUSTOMER_BILLING_ADDRESS_TYPE,
|
|
1088
|
+
export { INVOICING_CUSTOMER_BILLING_ADDRESS_TYPE, entityToInvoicingCustomerFormLocalData, initialInvoicingCustomerFormLocalData, } from './view/invoicing/editInvoicingCustomerDetailView/invoicingCustomerFormConfig';
|
|
1094
1089
|
export { getInvoicingCustomerFormView } from './view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector';
|
|
1095
1090
|
export type { InvoicingCustomerFormView } from './view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector';
|
|
1096
1091
|
export { fetchInvoicingSubscriptionFormPage, initializeInvoicingSubscriptionAddress, resetEditInvoicingSubscriptionDetailView, submitInvoicingSubscriptionForm, updateInvoicingSubscriptionFormDraft, } from './view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewReducer';
|
|
@@ -1104,7 +1099,7 @@ export type { ArchiveInvoicingCatalogSubFamilyPayload, CreateInvoicingCatalogSub
|
|
|
1104
1099
|
export { catalogDetailEditValuesToSavePayload, createSubFamilyFormToPayload, planToCatalogDetailEditValues, productToCreateSubFamilyFormValues, } from './view/invoicing/editInvoicingCatalogItemDetailView/catalogDetailEditPayload';
|
|
1105
1100
|
export type { CatalogDetailEditValues, CatalogDetailProductUpdate, CatalogDetailSavePayload, CatalogDetailSubFamilyEditValues, CreateSubFamilyFormValues, } from './view/invoicing/editInvoicingCatalogItemDetailView/catalogDetailEditPayload';
|
|
1106
1101
|
export type { InvoicingCatalogItemFormLocalData, InvoicingCatalogItemFormSubFamily, InvoicingCatalogItemFormTier, } from './view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewState';
|
|
1107
|
-
export { INVOICING_CATALOG_APPLICABILITY_VALUES,
|
|
1102
|
+
export { INVOICING_CATALOG_APPLICABILITY_VALUES, INVOICING_CATALOG_PRICING_MODEL_VALUES, INVOICING_CATALOG_PRORATION_VALUES, INVOICING_CATALOG_TIER_TYPE_VALUES, blankInvoicingCatalogSubFamily, blankInvoicingCatalogTier, entityToInvoicingCatalogItemFormLocalData, initialInvoicingCatalogItemFormLocalData, isTieredCatalogPricingModel, } from './view/invoicing/editInvoicingCatalogItemDetailView/invoicingCatalogItemFormConfig';
|
|
1108
1103
|
export { getEditInvoicingCatalogItemDetailViewState, getInvoicingApplicableCatalogItemOptions, getInvoicingCatalogItemFormView, getSavedInvoicingCatalogItemId, getSavedInvoicingCatalogItemKind, } from './view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector';
|
|
1109
1104
|
export type { ApplicableCatalogItemOption, InvoicingCatalogItemFormView, } from './view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector';
|
|
1110
1105
|
export { resetEditInvoicingCouponDetailView, saveInvoicingCoupon, submitInvoicingCouponForm, updateInvoicingCouponFormDraft, } from './view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewReducer';
|
|
@@ -1148,7 +1143,7 @@ export { INVOICING_LIST_PAGE_SIZE } from './view/invoicing/invoicingApiHelper';
|
|
|
1148
1143
|
export type { InvoicingListSort } from './view/invoicing/invoicingApiHelper';
|
|
1149
1144
|
export { clearAllInvoicingCustomers, removeInvoicingCustomer, updateInvoicingCustomers, } from './entity/invoicing/invoicingCustomer/invoicingCustomerReducer';
|
|
1150
1145
|
export { clearInvoicingCustomerListView, fetchInvoicingCustomerCounts, fetchInvoicingCustomerList, fetchInvoicingCustomerListPage, setInvoicingCustomerActiveTab, updateInvoicingCustomerFilters, } from './view/invoicing/invoicingCustomerListView/invoicingCustomerListViewReducer';
|
|
1151
|
-
export { ALL_INVOICING_CUSTOMER_SORT_KEYS, ALL_INVOICING_CUSTOMER_TAB_IDS, INVOICING_CUSTOMER_COLUMNS,
|
|
1146
|
+
export { ALL_INVOICING_CUSTOMER_SORT_KEYS, ALL_INVOICING_CUSTOMER_TAB_IDS, INVOICING_CUSTOMER_COLUMNS, } from './view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState';
|
|
1152
1147
|
export type { InvoicingCustomerColumnConfig, InvoicingCustomerFilters, InvoicingCustomerSortKey, InvoicingCustomerTabId, } from './view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState';
|
|
1153
1148
|
export { getInvoicingCustomerListView } from './view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector';
|
|
1154
1149
|
export type { InvoicingCustomerListView } from './view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector';
|
|
@@ -1162,7 +1157,7 @@ export { submitAddPromotionalCredits, resetPromotionalCreditAction, } from './vi
|
|
|
1162
1157
|
export type { PromotionalCreditActionState } from './view/invoicing/promotionalCreditAction/promotionalCreditActionState';
|
|
1163
1158
|
export { clearAllInvoicingSubscriptions, removeInvoicingSubscription, updateInvoicingSubscriptions, } from './entity/invoicing/invoicingSubscription/invoicingSubscriptionReducer';
|
|
1164
1159
|
export { clearInvoicingSubscriptionListView, fetchInvoicingSubscriptionCounts, fetchInvoicingSubscriptionList, fetchInvoicingSubscriptionListPage, setInvoicingSubscriptionActiveTab, updateInvoicingSubscriptionFilters, } from './view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewReducer';
|
|
1165
|
-
export { ALL_INVOICING_SUBSCRIPTION_SORT_KEYS, ALL_INVOICING_SUBSCRIPTION_TAB_IDS, INVOICING_SUBSCRIPTION_COLUMNS,
|
|
1160
|
+
export { ALL_INVOICING_SUBSCRIPTION_SORT_KEYS, ALL_INVOICING_SUBSCRIPTION_TAB_IDS, INVOICING_SUBSCRIPTION_COLUMNS, } from './view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewState';
|
|
1166
1161
|
export type { InvoicingSubscriptionColumnConfig, InvoicingSubscriptionFilters, InvoicingSubscriptionSortKey, InvoicingSubscriptionTabId, } from './view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewState';
|
|
1167
1162
|
export { getInvoicingSubscriptionListView } from './view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector';
|
|
1168
1163
|
export type { InvoicingSubscriptionListView } from './view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector';
|
|
@@ -1171,7 +1166,7 @@ export { getInvoicingSubscriptionById, getInvoicingSubscriptionDetail, } from '.
|
|
|
1171
1166
|
export type { InvoicingSubscriptionDetailView } from './view/invoicing/invoicingSubscriptionDetailView/invoicingSubscriptionDetailViewSelector';
|
|
1172
1167
|
export { clearAllInvoicingTransactions, removeInvoicingTransaction, updateInvoicingTransactions, } from './entity/invoicing/invoicingTransaction/invoicingTransactionReducer';
|
|
1173
1168
|
export { clearInvoicingTransactionListView, fetchInvoicingTransactionList, fetchInvoicingTransactionListPage, setInvoicingTransactionActiveTab, updateInvoicingTransactionFilters, } from './view/invoicing/invoicingTransactionListView/invoicingTransactionListViewReducer';
|
|
1174
|
-
export { ALL_INVOICING_TRANSACTION_SORT_KEYS, ALL_INVOICING_TRANSACTION_TAB_IDS, INVOICING_TRANSACTION_COLUMNS,
|
|
1169
|
+
export { ALL_INVOICING_TRANSACTION_SORT_KEYS, ALL_INVOICING_TRANSACTION_TAB_IDS, INVOICING_TRANSACTION_COLUMNS, } from './view/invoicing/invoicingTransactionListView/invoicingTransactionListViewState';
|
|
1175
1170
|
export type { InvoicingTransactionColumnConfig, InvoicingTransactionFilters, InvoicingTransactionSortKey, InvoicingTransactionTabId, } from './view/invoicing/invoicingTransactionListView/invoicingTransactionListViewState';
|
|
1176
1171
|
export { getInvoicingTransactionListView } from './view/invoicing/invoicingTransactionListView/invoicingTransactionListViewSelector';
|
|
1177
1172
|
export type { InvoicingTransactionListView } from './view/invoicing/invoicingTransactionListView/invoicingTransactionListViewSelector';
|
|
@@ -1180,7 +1175,7 @@ export { getInvoicingTransactionById, getInvoicingTransactionDetail, } from './v
|
|
|
1180
1175
|
export type { InvoicingTransactionDetailView } from './view/invoicing/invoicingTransactionDetailView/invoicingTransactionDetailViewSelector';
|
|
1181
1176
|
export { clearAllInvoicingCreditNotes, removeInvoicingCreditNote, updateInvoicingCreditNotes, } from './entity/invoicing/creditNote/creditNoteReducer';
|
|
1182
1177
|
export { clearInvoicingCreditNoteListView, fetchInvoicingCreditNoteCounts, fetchInvoicingCreditNoteList, fetchInvoicingCreditNoteListPage, setInvoicingCreditNoteActiveTab, updateInvoicingCreditNoteFilters, } from './view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewReducer';
|
|
1183
|
-
export { ALL_INVOICING_CREDIT_NOTE_SORT_KEYS, ALL_INVOICING_CREDIT_NOTE_TAB_IDS, INVOICING_CREDIT_NOTE_COLUMNS,
|
|
1178
|
+
export { ALL_INVOICING_CREDIT_NOTE_SORT_KEYS, ALL_INVOICING_CREDIT_NOTE_TAB_IDS, INVOICING_CREDIT_NOTE_COLUMNS, } from './view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewState';
|
|
1184
1179
|
export type { InvoicingCreditNoteColumnConfig, InvoicingCreditNoteFilters, InvoicingCreditNoteSortKey, InvoicingCreditNoteTabId, } from './view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewState';
|
|
1185
1180
|
export { getInvoicingCreditNoteListView } from './view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewSelector';
|
|
1186
1181
|
export type { InvoicingCreditNoteListView } from './view/invoicing/invoicingCreditNoteListView/invoicingCreditNoteListViewSelector';
|
|
@@ -1189,7 +1184,7 @@ export { getInvoicingCreditNoteById, getInvoicingCreditNoteDetail, } from './vie
|
|
|
1189
1184
|
export type { InvoicingCreditNoteDetailView } from './view/invoicing/invoicingCreditNoteDetailView/invoicingCreditNoteDetailViewSelector';
|
|
1190
1185
|
export { clearAllInvoicingCoupons, removeInvoicingCoupon, updateInvoicingCoupons, } from './entity/invoicing/coupon/couponReducer';
|
|
1191
1186
|
export { clearInvoicingCouponView, fetchInvoicingCouponCounts, fetchInvoicingCouponList, fetchInvoicingCouponListPage, setInvoicingCouponActiveTab, updateInvoicingCouponFilters, } from './view/invoicing/couponView/couponViewReducer';
|
|
1192
|
-
export { ALL_INVOICING_COUPON_SORT_KEYS, ALL_INVOICING_COUPON_TAB_IDS, INVOICING_COUPON_COLUMNS,
|
|
1187
|
+
export { ALL_INVOICING_COUPON_SORT_KEYS, ALL_INVOICING_COUPON_TAB_IDS, INVOICING_COUPON_COLUMNS, } from './view/invoicing/couponView/couponViewState';
|
|
1193
1188
|
export type { InvoicingCouponColumnConfig, InvoicingCouponFilters, InvoicingCouponSortKey, InvoicingCouponTabId, } from './view/invoicing/couponView/couponViewState';
|
|
1194
1189
|
export { getInvoicingCouponCounts, getInvoicingCouponListFetchState, getInvoicingCouponListFilters, getInvoicingCouponListHasMore, getInvoicingCouponListItems, getInvoicingCouponListNextCursor, getInvoicingCouponListView, } from './view/invoicing/couponView/couponViewSelector';
|
|
1195
1190
|
export type { InvoicingCouponListView } from './view/invoicing/couponView/couponViewSelector';
|
|
@@ -1199,7 +1194,7 @@ export { getInvoicingCouponDetail } from './view/invoicing/invoicingCouponDetail
|
|
|
1199
1194
|
export type { InvoicingCouponDetailView } from './view/invoicing/invoicingCouponDetailView/invoicingCouponDetailViewSelector';
|
|
1200
1195
|
export { clearAllInvoicingDunningCases, removeInvoicingDunningCase, updateInvoicingDunningCases, } from './entity/invoicing/dunningCase/dunningCaseReducer';
|
|
1201
1196
|
export { clearInvoicingDunningCaseListView, fetchInvoicingDunningCaseCounts, fetchInvoicingDunningCaseList, fetchInvoicingDunningCaseListPage, setInvoicingDunningCaseActiveTab, updateInvoicingDunningCaseFilters, } from './view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewReducer';
|
|
1202
|
-
export { ALL_INVOICING_DUNNING_CASE_SORT_KEYS, ALL_INVOICING_DUNNING_CASE_TAB_IDS, INVOICING_DUNNING_CASE_COLUMNS,
|
|
1197
|
+
export { ALL_INVOICING_DUNNING_CASE_SORT_KEYS, ALL_INVOICING_DUNNING_CASE_TAB_IDS, INVOICING_DUNNING_CASE_COLUMNS, } from './view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewState';
|
|
1203
1198
|
export type { InvoicingDunningCaseColumnConfig, InvoicingDunningCaseFilters, InvoicingDunningCaseSortKey, InvoicingDunningCaseTabId, } from './view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewState';
|
|
1204
1199
|
export { getInvoicingDunningCaseListView } from './view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewSelector';
|
|
1205
1200
|
export type { InvoicingDunningCaseListView } from './view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewSelector';
|
|
@@ -1234,5 +1229,7 @@ export { INVOICING_QBO_CUSTOMER_MATCHING_MODES, getInvoicingQboAccountMappingId,
|
|
|
1234
1229
|
export type { InvoicingNamedOption, InvoicingNamedOptionsByKey, InvoicingQboAccountMappingKindOption, InvoicingQboAccountMappingsPayload, InvoicingQboCustomerMatchingMode, InvoicingQboSettingsPayload, } from './entity/invoicing/invoicingCommonPayload';
|
|
1235
1230
|
export { acceptInvoicingTerms, clearInvoicingConfig, enableInvoicing, fetchInvoicingConfig, resetInvoicingConfigActionStates, updateInvoicingConfig, } from './view/invoicing/invoicingConfigView/invoicingConfigViewReducer';
|
|
1236
1231
|
export { getInvoicingConfigView } from './view/invoicing/invoicingConfigView/invoicingConfigViewSelector';
|
|
1232
|
+
export { getInvoicingOnboardingGateView } from './view/invoicing/invoicingConfigView/invoicingConfigViewSelector';
|
|
1233
|
+
export type { InvoicingOnboardingGateView } from './view/invoicing/invoicingConfigView/invoicingConfigViewSelector';
|
|
1237
1234
|
export type { InvoicingConfigView } from './view/invoicing/invoicingConfigView/invoicingConfigViewSelector';
|
|
1238
1235
|
export type { InvoicingOnboardingStatus } from './view/invoicing/invoicingConfigView/invoicingConfigViewPayload';
|