@zeniai/client-epic-state 5.1.35-betaAK5 → 5.1.35-betaAK6
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/esm/index.js +1 -0
- package/lib/esm/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector.js +3 -0
- package/lib/esm/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState.js +18 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +6 -3
- package/lib/tsconfig.mocks.tsbuildinfo +1 -0
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector.d.ts +4 -1
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector.js +3 -0
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState.d.ts +15 -0
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState.js +20 -0
- package/package.json +1 -1
package/lib/esm/index.js
CHANGED
|
@@ -750,6 +750,7 @@ export { INVOICING_LIST_PAGE_SIZE } from './view/invoicing/invoicingApiHelper';
|
|
|
750
750
|
// ── Invoicing: customers ──────────────────────────────────────────────────────
|
|
751
751
|
export { clearAllInvoicingCustomers, removeInvoicingCustomer, updateInvoicingCustomers, } from './entity/invoicing/invoicingCustomer/invoicingCustomerReducer';
|
|
752
752
|
export { clearInvoicingCustomerListView, fetchInvoicingCustomerCounts, fetchInvoicingCustomerList, fetchInvoicingCustomerListPage, updateInvoicingCustomerFilters, } from './view/invoicing/invoicingCustomerListView/invoicingCustomerListViewReducer';
|
|
753
|
+
export { ALL_INVOICING_CUSTOMER_SORT_KEYS, INVOICING_CUSTOMER_COLUMNS, } from './view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState';
|
|
753
754
|
export { getInvoicingCustomerListView } from './view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector';
|
|
754
755
|
export { clearInvoicingCustomerDetailView, fetchInvoicingCustomerDetail, fetchInvoicingCustomerDetailPage, } from './view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewReducer';
|
|
755
756
|
export { getInvoicingCustomerDetail } from './view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewSelector';
|
package/lib/esm/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createSelector } from '@reduxjs/toolkit';
|
|
2
2
|
import { getInvoicingCustomersByIds } from '../../../entity/invoicing/invoicingCustomer/invoicingCustomerSelector';
|
|
3
|
+
import { INVOICING_CUSTOMER_COLUMNS, } from './invoicingCustomerListViewState';
|
|
3
4
|
/**
|
|
4
5
|
* Memoized so the denormalized `customers` array (and the wrapping view object)
|
|
5
6
|
* keep referential identity until the customer entity slice or the list-view
|
|
@@ -7,10 +8,12 @@ import { getInvoicingCustomersByIds } from '../../../entity/invoicing/invoicingC
|
|
|
7
8
|
* every unrelated redux action because a fresh array was built each call.
|
|
8
9
|
*/
|
|
9
10
|
export const getInvoicingCustomerListView = createSelector((state) => state.invoicingCustomerState, (state) => state.invoicingCustomerListViewState, (customerState, listViewState) => ({
|
|
11
|
+
columns: INVOICING_CUSTOMER_COLUMNS,
|
|
10
12
|
customers: getInvoicingCustomersByIds(customerState, listViewState.ids),
|
|
11
13
|
fetchState: listViewState.fetchState,
|
|
12
14
|
error: listViewState.error,
|
|
13
15
|
nextCursor: listViewState.nextCursor,
|
|
14
16
|
filters: listViewState.filters,
|
|
15
17
|
count: listViewState.counts,
|
|
18
|
+
sort: listViewState.sort,
|
|
16
19
|
}));
|
|
@@ -1 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
import { stringToUnion } from '../../../commonStateTypes/stringToUnion';
|
|
2
|
+
export const ALL_INVOICING_CUSTOMER_SORT_KEYS = [
|
|
3
|
+
'name',
|
|
4
|
+
'email',
|
|
5
|
+
'billingAddress',
|
|
6
|
+
'cardStatus',
|
|
7
|
+
'autoCollect',
|
|
8
|
+
'status',
|
|
9
|
+
];
|
|
10
|
+
export const toInvoicingCustomerSortKey = (v) => stringToUnion(v, ALL_INVOICING_CUSTOMER_SORT_KEYS);
|
|
11
|
+
export const INVOICING_CUSTOMER_COLUMNS = [
|
|
12
|
+
{ key: 'name', sortable: true },
|
|
13
|
+
{ key: 'email', sortable: true },
|
|
14
|
+
{ key: 'billingAddress', sortable: false },
|
|
15
|
+
{ key: 'cardStatus', sortable: true },
|
|
16
|
+
{ key: 'autoCollect', sortable: true },
|
|
17
|
+
{ key: 'status', sortable: true },
|
|
18
|
+
];
|
package/lib/index.d.ts
CHANGED
|
@@ -1082,7 +1082,8 @@ export { INVOICING_LIST_PAGE_SIZE } from './view/invoicing/invoicingApiHelper';
|
|
|
1082
1082
|
export type { InvoicingListSort } from './view/invoicing/invoicingApiHelper';
|
|
1083
1083
|
export { clearAllInvoicingCustomers, removeInvoicingCustomer, updateInvoicingCustomers, } from './entity/invoicing/invoicingCustomer/invoicingCustomerReducer';
|
|
1084
1084
|
export { clearInvoicingCustomerListView, fetchInvoicingCustomerCounts, fetchInvoicingCustomerList, fetchInvoicingCustomerListPage, updateInvoicingCustomerFilters, } from './view/invoicing/invoicingCustomerListView/invoicingCustomerListViewReducer';
|
|
1085
|
-
export
|
|
1085
|
+
export { ALL_INVOICING_CUSTOMER_SORT_KEYS, INVOICING_CUSTOMER_COLUMNS, } from './view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState';
|
|
1086
|
+
export type { InvoicingCustomerColumnConfig, InvoicingCustomerFilters, InvoicingCustomerSortKey, } from './view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState';
|
|
1086
1087
|
export { getInvoicingCustomerListView } from './view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector';
|
|
1087
1088
|
export type { InvoicingCustomerListView } from './view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector';
|
|
1088
1089
|
export { clearInvoicingCustomerDetailView, fetchInvoicingCustomerDetail, fetchInvoicingCustomerDetailPage, } from './view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewReducer';
|
package/lib/index.js
CHANGED
|
@@ -78,9 +78,9 @@ exports.clearCardPolicyDetail = exports.getCardPolicyTemplateIds = exports.getCa
|
|
|
78
78
|
exports.getAutoSweepFlow = exports.updateCashManagementSettingsFetchStatus = exports.updateCashManagementSettings = exports.updateAutoSweepSettingsFetchStatus = exports.updateAutoSweepRisk = exports.updateAutoSweepDraft = exports.saveAutoSweepSettings = exports.clearAutoSweepFlow = exports.fetchCashManagementOverviewPage = exports.fetchCashManagementBanner = exports.toKycProvidedDocumentTypeFromAllowed = exports.toKycProvidedDocumentType = exports.DEFAULT_SESSION_CONFIG = exports.SessionManager = exports.getTransactionActivityLogView = exports.fetchTransactionActivityLog = exports.BULK_UPLOAD_BAR_COMPLETE_HOLD_MS = exports.BULK_UPLOAD_AUTOMATCHING_TIMEOUT_MS = exports.getAutoTransferRuleHistory = exports.getAutoTransferRuleById = exports.getAutoTransferRules = exports.clearRuleUpdateLocalData = exports.updateRuleLocalData = exports.fetchAutoTransferReviewDetail = exports.fetchAutoTransferRuleHistory = exports.deleteAutoTransferRule = exports.updateAutoTransferRule = exports.createAutoTransferRule = exports.fetchAutoTransferRules = exports.getTreasuryTaxLetters = exports.fetchTreasuryTaxLetterList = exports.getTreasuryStatements = exports.fetchTreasuryStatementList = exports.getTreasuryTransferMoney = exports.clearTreasuryTransferMoney = exports.updateTreasuryTransferMoneyLocalData = exports.executeTreasuryTransferMoney = exports.getTreasuryDetail = exports.updateTreasuryTransactionListUIState = exports.fetchTreasuryTransactionList = exports.fetchTreasuryOverviewDetail = exports.getUpdateCardPolicyFetchState = exports.getCardPolicyFormDraft = exports.getCardPolicyDetailView = exports.getCardPolicyDetailFetchState = exports.updateCardPolicyFormDraft = exports.updateCardPolicyFetchStatus = exports.updateCardPolicyDetailFetchStatus = exports.updateCardPolicy = exports.fetchCardPolicyDetail = void 0;
|
|
79
79
|
exports.getEditInvoicingCatalogItemDetailViewState = exports.saveInvoicingCatalogItem = exports.resetEditInvoicingCatalogItemDetailView = exports.getInvoicingSubscriptionFormView = exports.getEditInvoicingSubscriptionDetailViewState = exports.saveInvoicingSubscription = exports.resetEditInvoicingSubscriptionDetailView = exports.fetchInvoicingSubscriptionFormPage = exports.getEditInvoicingCustomerDetailViewState = exports.saveInvoicingCustomer = exports.resetEditInvoicingCustomerDetailView = exports.getRecordedTransactionId = exports.getRecordPaymentFetchState = exports.getCreatedInvoiceId = exports.getCreateInvoiceFormView = exports.getCreateInvoiceFetchState = exports.getInvoicingAuditLogNextCursor = exports.getInvoicingAuditLogItems = exports.getInvoicingAuditLogHasMore = exports.getInvoicingAuditLogFilters = exports.getInvoicingAuditLogFetchState = exports.fetchInvoicingAuditLog = exports.clearInvoicingAuditView = exports.getInvoicingOverview = exports.buildPeriodOptions = exports.fetchInvoicingOverview = exports.clearInvoicingOverview = exports.resetRecordPayment = exports.recordPayment = exports.resetCreateInvoice = exports.createInvoice = exports.getInvoiceDetail = exports.fetchInvoiceDetail = exports.clearAllInvoiceDetail = exports.getInvoiceListView = exports.updateInvoiceListFilters = exports.fetchInvoiceListPage = exports.fetchInvoiceList = exports.fetchInvoiceKPIs = exports.fetchInvoiceCounts = exports.clearInvoiceList = exports.getInvoicesByIds = exports.getInvoiceById = exports.updateInvoices = exports.removeInvoice = exports.clearAllInvoices = exports.getCashManagementOverviewBanner = exports.getCashManagementOverview = exports.bufferAmountToRisk = exports.RISK_BUFFER_AMOUNT = void 0;
|
|
80
80
|
exports.clearAllInvoicingCustomers = exports.INVOICING_LIST_PAGE_SIZE = exports.getInvoicingDataImportActionState = exports.uploadInvoicingMigrationFiles = exports.startInvoicingMigration = exports.rollbackInvoicingMigration = exports.retryInvoicingMigration = exports.connectInvoicingChargebee = exports.clearAllInvoicingDataImportActions = exports.getInvoicingMigrationSessionsFetchState = exports.getInvoicingMigrationSessions = exports.getInvoicingMigrationSessionById = exports.getInvoicingDataImportStatusRows = exports.getInvoicingDataImportStatusFetchState = exports.getInvoicingActiveMigrationSessionId = exports.setInvoicingActiveMigrationSessionId = exports.fetchInvoicingMigrationSessions = exports.fetchInvoicingMigrationSession = exports.fetchInvoicingDataImportStatus = exports.clearInvoicingDataImportView = exports.getInvoicingApprovalActionState = exports.runInvoicingApprovalAction = exports.clearInvoicingApprovalAction = exports.getInvoicingApprovalsNextCursor = exports.getInvoicingApprovalsHasMore = exports.getInvoicingApprovalsFilters = exports.getInvoicingApprovalsFetchState = exports.getInvoicingApprovals = exports.fetchInvoicingApprovals = exports.clearInvoicingApprovalsView = exports.getInvoicingPaymentActionState = exports.runInvoicingPaymentAction = exports.clearInvoicingPaymentAction = exports.getInvoicingDunningActionState = exports.runInvoicingDunningAction = exports.clearInvoicingDunningAction = exports.getInvoicingSubscriptionActionState = exports.runInvoicingSubscriptionAction = exports.clearInvoicingSubscriptionAction = exports.getInvoicingInvoiceActionState = exports.updateInvoicingInvoice = exports.runInvoicingInvoiceAction = exports.clearInvoicingInvoiceAction = exports.getInvoicingCouponFormView = exports.getEditInvoicingCouponDetailViewState = exports.saveInvoicingCoupon = exports.resetEditInvoicingCouponDetailView = exports.getSavedInvoicingCatalogItemKind = exports.getSavedInvoicingCatalogItemId = exports.getInvoicingCatalogItemFormView = void 0;
|
|
81
|
-
exports.
|
|
82
|
-
exports.
|
|
83
|
-
exports.getInvoicingStripeConnectState = exports.getInvoicingSettingsSaveState = exports.getInvoicingSettingsFetchState = exports.getInvoicingSettings = exports.updateInvoicingSettings = exports.saveInvoicingSettings = exports.resetSaveInvoicingSettings = exports.fetchInvoicingSettings = exports.disconnectInvoicingStripe = exports.connectInvoicingStripe = exports.clearInvoicingSettings = exports.getInvoicingProductById = exports.getInvoicingPlanById = exports.getInvoicingCatalogItemDetail = exports.fetchInvoicingCatalogItemDetail = exports.clearInvoicingCatalogItemDetailView = exports.getInvoicingCatalogListView = exports.updateInvoicingCatalogProductFilters = exports.updateInvoicingCatalogPlanFilters = exports.fetchInvoicingCatalogProductList = exports.fetchInvoicingCatalogPlanList = exports.fetchInvoicingCatalogListPage = exports.fetchInvoicingCatalogKPIs = exports.fetchInvoicingCatalogCounts = exports.clearInvoicingCatalogListView = exports.updateInvoicingProducts = exports.removeInvoicingProduct = exports.clearAllInvoicingProducts = exports.updateInvoicingPlans = exports.removeInvoicingPlan = void 0;
|
|
81
|
+
exports.fetchInvoicingTransactionDetail = exports.clearInvoicingTransactionDetailView = exports.getInvoicingTransactionListView = exports.updateInvoicingTransactionFilters = exports.fetchInvoicingTransactionListPage = exports.fetchInvoicingTransactionList = exports.fetchInvoicingTransactionKPIs = exports.clearInvoicingTransactionListView = exports.updateInvoicingTransactions = exports.removeInvoicingTransaction = exports.clearAllInvoicingTransactions = exports.getInvoicingSubscriptionDetail = exports.getInvoicingSubscriptionById = exports.fetchInvoicingSubscriptionDetail = exports.clearInvoicingSubscriptionDetailView = exports.getInvoicingSubscriptionListView = exports.updateInvoicingSubscriptionFilters = exports.fetchInvoicingSubscriptionListPage = exports.fetchInvoicingSubscriptionList = exports.fetchInvoicingSubscriptionCounts = exports.clearInvoicingSubscriptionListView = exports.updateInvoicingSubscriptions = exports.removeInvoicingSubscription = exports.clearAllInvoicingSubscriptions = exports.getInvoicingSetupIntentFetchState = exports.getInvoicingSetupIntent = exports.getInvoicingSentPaymentLinkEmail = exports.getInvoicingPlaidLinkTokenFetchState = exports.getInvoicingPlaidLinkToken = exports.getInvoicingPaymentMethodSaveState = exports.getInvoicingPaymentLinkSendState = exports.sendInvoicingPaymentLink = exports.saveInvoicingPaymentMethod = exports.resetInvoicingCustomerPaymentMethod = exports.fetchInvoicingPlaidLinkToken = exports.createInvoicingSetupIntent = exports.getInvoicingCustomerDetail = exports.fetchInvoicingCustomerDetailPage = exports.fetchInvoicingCustomerDetail = exports.clearInvoicingCustomerDetailView = exports.getInvoicingCustomerListView = exports.INVOICING_CUSTOMER_COLUMNS = exports.ALL_INVOICING_CUSTOMER_SORT_KEYS = exports.updateInvoicingCustomerFilters = exports.fetchInvoicingCustomerListPage = exports.fetchInvoicingCustomerList = exports.fetchInvoicingCustomerCounts = exports.clearInvoicingCustomerListView = exports.updateInvoicingCustomers = exports.removeInvoicingCustomer = void 0;
|
|
82
|
+
exports.getInvoicingDunningCaseById = exports.fetchInvoicingDunningCaseDetail = exports.clearInvoicingDunningCaseDetailView = exports.getInvoicingDunningCaseListView = exports.updateInvoicingDunningCaseFilters = exports.fetchInvoicingDunningCaseListPage = exports.fetchInvoicingDunningCaseList = exports.fetchInvoicingDunningCaseKPIs = exports.fetchInvoicingDunningCaseCounts = exports.clearInvoicingDunningCaseListView = exports.updateInvoicingDunningCases = exports.removeInvoicingDunningCase = exports.clearAllInvoicingDunningCases = exports.getInvoicingCouponDetail = exports.fetchInvoicingCouponDetail = exports.clearInvoicingCouponDetailView = exports.getInvoicingCouponById = exports.getInvoicingCouponListView = exports.getInvoicingCouponListNextCursor = exports.getInvoicingCouponListItems = exports.getInvoicingCouponListHasMore = exports.getInvoicingCouponListFilters = exports.getInvoicingCouponListFetchState = exports.getInvoicingCouponKPIs = exports.getInvoicingCouponCounts = exports.updateInvoicingCouponFilters = exports.fetchInvoicingCouponListPage = exports.fetchInvoicingCouponList = exports.fetchInvoicingCouponKPIs = exports.fetchInvoicingCouponCounts = exports.clearInvoicingCouponView = exports.updateInvoicingCoupons = exports.removeInvoicingCoupon = exports.clearAllInvoicingCoupons = exports.getInvoicingCreditNoteDetail = exports.getInvoicingCreditNoteById = exports.fetchInvoicingCreditNoteDetail = exports.clearInvoicingCreditNoteDetailView = exports.getInvoicingCreditNoteListView = exports.updateInvoicingCreditNoteFilters = exports.fetchInvoicingCreditNoteListPage = exports.fetchInvoicingCreditNoteList = exports.fetchInvoicingCreditNoteKPIs = exports.fetchInvoicingCreditNoteCounts = exports.clearInvoicingCreditNoteListView = exports.updateInvoicingCreditNotes = exports.removeInvoicingCreditNote = exports.clearAllInvoicingCreditNotes = exports.getInvoicingTransactionDetail = exports.getInvoicingTransactionById = void 0;
|
|
83
|
+
exports.getInvoicingStripeConnectState = exports.getInvoicingSettingsSaveState = exports.getInvoicingSettingsFetchState = exports.getInvoicingSettings = exports.updateInvoicingSettings = exports.saveInvoicingSettings = exports.resetSaveInvoicingSettings = exports.fetchInvoicingSettings = exports.disconnectInvoicingStripe = exports.connectInvoicingStripe = exports.clearInvoicingSettings = exports.getInvoicingProductById = exports.getInvoicingPlanById = exports.getInvoicingCatalogItemDetail = exports.fetchInvoicingCatalogItemDetail = exports.clearInvoicingCatalogItemDetailView = exports.getInvoicingCatalogListView = exports.updateInvoicingCatalogProductFilters = exports.updateInvoicingCatalogPlanFilters = exports.fetchInvoicingCatalogProductList = exports.fetchInvoicingCatalogPlanList = exports.fetchInvoicingCatalogListPage = exports.fetchInvoicingCatalogKPIs = exports.fetchInvoicingCatalogCounts = exports.clearInvoicingCatalogListView = exports.updateInvoicingProducts = exports.removeInvoicingProduct = exports.clearAllInvoicingProducts = exports.updateInvoicingPlans = exports.removeInvoicingPlan = exports.clearAllInvoicingPlans = exports.getInvoicingDunningCaseDetail = void 0;
|
|
84
84
|
const allowedValue_1 = require("./commonStateTypes/allowedValue");
|
|
85
85
|
Object.defineProperty(exports, "isAllowedValueWithCode", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithCode; } });
|
|
86
86
|
Object.defineProperty(exports, "isAllowedValueWithID", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithID; } });
|
|
@@ -2748,6 +2748,9 @@ Object.defineProperty(exports, "fetchInvoicingCustomerCounts", { enumerable: tru
|
|
|
2748
2748
|
Object.defineProperty(exports, "fetchInvoicingCustomerList", { enumerable: true, get: function () { return invoicingCustomerListViewReducer_1.fetchInvoicingCustomerList; } });
|
|
2749
2749
|
Object.defineProperty(exports, "fetchInvoicingCustomerListPage", { enumerable: true, get: function () { return invoicingCustomerListViewReducer_1.fetchInvoicingCustomerListPage; } });
|
|
2750
2750
|
Object.defineProperty(exports, "updateInvoicingCustomerFilters", { enumerable: true, get: function () { return invoicingCustomerListViewReducer_1.updateInvoicingCustomerFilters; } });
|
|
2751
|
+
var invoicingCustomerListViewState_1 = require("./view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState");
|
|
2752
|
+
Object.defineProperty(exports, "ALL_INVOICING_CUSTOMER_SORT_KEYS", { enumerable: true, get: function () { return invoicingCustomerListViewState_1.ALL_INVOICING_CUSTOMER_SORT_KEYS; } });
|
|
2753
|
+
Object.defineProperty(exports, "INVOICING_CUSTOMER_COLUMNS", { enumerable: true, get: function () { return invoicingCustomerListViewState_1.INVOICING_CUSTOMER_COLUMNS; } });
|
|
2751
2754
|
var invoicingCustomerListViewSelector_1 = require("./view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector");
|
|
2752
2755
|
Object.defineProperty(exports, "getInvoicingCustomerListView", { enumerable: true, get: function () { return invoicingCustomerListViewSelector_1.getInvoicingCustomerListView; } });
|
|
2753
2756
|
var invoicingCustomerDetailViewReducer_1 = require("./view/invoicing/invoicingCustomerDetailView/invoicingCustomerDetailViewReducer");
|