@zeniai/client-epic-state 5.2.32-betaAK0 → 5.2.32-betaAK2
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 +3 -8
- package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector.js +6 -0
- package/lib/esm/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewSelector.js +8 -0
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.js +3 -0
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.js +3 -0
- package/lib/esm/view/invoicing/invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewSelector.js +0 -1
- package/lib/esm/view/invoicing/invoicingCouponRecordView/invoicingCouponRecordViewSelector.js +0 -1
- package/lib/esm/view/invoicing/invoicingCustomerRecordView/invoicingCustomerRecordViewSelector.js +0 -1
- package/lib/esm/view/invoicing/invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewSelector.js +0 -1
- package/lib/index.d.ts +3 -12
- package/lib/index.js +5 -18
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector.d.ts +5 -0
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector.js +6 -0
- package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewSelector.d.ts +5 -5
- package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewSelector.js +8 -0
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.d.ts +5 -1
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.js +3 -0
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.d.ts +4 -0
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.js +3 -0
- package/lib/view/invoicing/invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewSelector.d.ts +2 -3
- package/lib/view/invoicing/invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewSelector.js +0 -1
- package/lib/view/invoicing/invoicingCouponRecordView/invoicingCouponRecordViewSelector.d.ts +2 -3
- package/lib/view/invoicing/invoicingCouponRecordView/invoicingCouponRecordViewSelector.js +0 -1
- package/lib/view/invoicing/invoicingCustomerRecordView/invoicingCustomerRecordViewSelector.d.ts +1 -2
- package/lib/view/invoicing/invoicingCustomerRecordView/invoicingCustomerRecordViewSelector.js +0 -1
- package/lib/view/invoicing/invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewSelector.d.ts +1 -2
- package/lib/view/invoicing/invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewSelector.js +0 -1
- package/package.json +38 -71
package/lib/esm/index.js
CHANGED
|
@@ -775,16 +775,14 @@ export { INVOICING_SUBSCRIPTION_SHIPPING_ADDRESS_TYPE, entityToInvoicingSubscrip
|
|
|
775
775
|
export { getEditInvoicingSubscriptionDetailViewState, getInvoicingSubscriptionFormView, } from './view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector';
|
|
776
776
|
export { archiveInvoicingCatalogSubFamily, resetEditInvoicingCatalogItemDetailView, submitInvoicingCatalogItemForm, updateInvoicingCatalogItemFormDraft, } from './view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewReducer';
|
|
777
777
|
export { INVOICING_CATALOG_APPLICABILITY_VALUES, INVOICING_CATALOG_PRICING_MODEL_VALUES, INVOICING_CATALOG_PRORATION_VALUES, INVOICING_CATALOG_TIER_TYPE_VALUES, blankInvoicingCatalogSubFamily, blankInvoicingCatalogTier, entityToInvoicingCatalogItemFormLocalData, invoicingProductToCatalogItemFormSubFamily, initialInvoicingCatalogItemFormLocalData, isTieredCatalogPricingModel, } from './view/invoicing/editInvoicingCatalogItemDetailView/invoicingCatalogItemFormConfig';
|
|
778
|
-
export {
|
|
778
|
+
export { getInvoicingApplicableCatalogItemOptions, getInvoicingCatalogItemFormView, getSavedInvoicingCatalogItemId, getSavedInvoicingCatalogItemKind, } from './view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector';
|
|
779
779
|
export { resetEditInvoicingCouponDetailView, saveInvoicingCoupon, submitInvoicingCouponForm, updateInvoicingCouponFormDraft, } from './view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewReducer';
|
|
780
780
|
export { entityToInvoicingCouponFormLocalData, initialInvoicingCouponFormLocalData, } from './view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewState';
|
|
781
781
|
export { getEditInvoicingCouponDetailViewState, getInvoicingCouponFormView, } from './view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewSelector';
|
|
782
782
|
export { runInvoicingInvoiceAction, updateInvoicingInvoice, } from './view/invoicing/invoiceAction/invoiceActionReducer';
|
|
783
783
|
export { getInvoicingInvoiceActionState } from './view/invoicing/invoiceAction/invoiceActionSelector';
|
|
784
784
|
export { runInvoicingCatalogPlanAction, runInvoicingCatalogProductAction, } from './view/invoicing/catalogAction/catalogActionReducer';
|
|
785
|
-
export { getInvoicingCatalogActionState } from './view/invoicing/catalogAction/catalogActionSelector';
|
|
786
785
|
export { runInvoicingDiscountAction } from './view/invoicing/discountAction/discountActionReducer';
|
|
787
|
-
export { getInvoicingDiscountActionState } from './view/invoicing/discountAction/discountActionSelector';
|
|
788
786
|
export { runInvoicingSubscriptionAction } from './view/invoicing/subscriptionAction/subscriptionActionReducer';
|
|
789
787
|
export { getInvoicingSubscriptionActionState } from './view/invoicing/subscriptionAction/subscriptionActionSelector';
|
|
790
788
|
export { runInvoicingDunningAction } from './view/invoicing/dunningAction/dunningActionReducer';
|
|
@@ -802,10 +800,9 @@ export { fetchInvoicingCustomerCounts, fetchInvoicingCustomerList, fetchInvoicin
|
|
|
802
800
|
export { ALL_INVOICING_CUSTOMER_SORT_KEYS, ALL_INVOICING_CUSTOMER_TAB_IDS, INVOICING_CUSTOMER_COLUMNS, } from './view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState';
|
|
803
801
|
export { getInvoicingCustomerListView } from './view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector';
|
|
804
802
|
export { fetchInvoicingCustomerDetail, fetchInvoicingCustomerDetailPage, } from './view/invoicing/invoicingCustomerRecordView/invoicingCustomerRecordViewReducer';
|
|
805
|
-
export { getInvoicingCustomerRecord } from './view/invoicing/invoicingCustomerRecordView/invoicingCustomerRecordViewSelector';
|
|
806
803
|
// ── Invoicing: customer payment methods ───────────────────────────────────────
|
|
807
804
|
export { createInvoicingSetupIntent, fetchInvoicingPlaidLinkToken, resetInvoicingCustomerPaymentMethod, saveInvoicingPaymentMethod, sendInvoicingPaymentLink, } from './view/invoicing/customerPaymentMethod/customerPaymentMethodReducer';
|
|
808
|
-
export { getInvoicingPaymentLinkSendState, getInvoicingPaymentMethodSaveState, getInvoicingPlaidLinkToken,
|
|
805
|
+
export { getInvoicingPaymentLinkSendState, getInvoicingPaymentMethodSaveState, getInvoicingPlaidLinkToken, getInvoicingSentPaymentLinkEmail, getInvoicingSentPaymentLinkMagicUrl, getInvoicingSetupIntent, getInvoicingSetupIntentFetchState, } from './view/invoicing/customerPaymentMethod/customerPaymentMethodSelector';
|
|
809
806
|
// ── Invoicing: promotional credits ───────────────────────────────────────────
|
|
810
807
|
export { submitAddPromotionalCredits, resetPromotionalCreditAction, } from './view/invoicing/promotionalCreditAction/promotionalCreditActionReducer';
|
|
811
808
|
// ── Invoicing: subscriptions ──────────────────────────────────────────────────
|
|
@@ -814,7 +811,7 @@ export { fetchInvoicingSubscriptionCounts, fetchInvoicingSubscriptionList, fetch
|
|
|
814
811
|
export { ALL_INVOICING_SUBSCRIPTION_SORT_KEYS, ALL_INVOICING_SUBSCRIPTION_TAB_IDS, INVOICING_SUBSCRIPTION_COLUMNS, } from './view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewState';
|
|
815
812
|
export { getInvoicingSubscriptionListView } from './view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector';
|
|
816
813
|
export { fetchInvoicingSubscriptionDetail } from './view/invoicing/invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewReducer';
|
|
817
|
-
export { getInvoicingSubscriptionById,
|
|
814
|
+
export { getInvoicingSubscriptionById, } from './view/invoicing/invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewSelector';
|
|
818
815
|
// ── Invoicing: payments (transactions) ────────────────────────────────────────
|
|
819
816
|
export { removeInvoicingTransaction, updateInvoicingTransactions, } from './entity/invoicing/invoicingTransaction/invoicingTransactionReducer';
|
|
820
817
|
export { fetchInvoicingTransactionList, fetchInvoicingTransactionListPage, setInvoicingTransactionActiveTab, updateInvoicingTransactionFilters, } from './view/invoicing/invoicingTransactionListView/invoicingTransactionListViewReducer';
|
|
@@ -836,7 +833,6 @@ export { ALL_INVOICING_COUPON_SORT_KEYS, ALL_INVOICING_COUPON_TAB_IDS, INVOICING
|
|
|
836
833
|
export { getInvoicingCouponCounts, getInvoicingCouponListFetchState, getInvoicingCouponListFilters, getInvoicingCouponListHasMore, getInvoicingCouponListItems, getInvoicingCouponListNextCursor, getInvoicingCouponListView, } from './view/invoicing/couponView/couponViewSelector';
|
|
837
834
|
export { getInvoicingCouponById } from './entity/invoicing/coupon/couponSelector';
|
|
838
835
|
export { fetchInvoicingCouponDetail } from './view/invoicing/invoicingCouponRecordView/invoicingCouponRecordViewReducer';
|
|
839
|
-
export { getInvoicingCouponRecord } from './view/invoicing/invoicingCouponRecordView/invoicingCouponRecordViewSelector';
|
|
840
836
|
// ── Invoicing: dunning ────────────────────────────────────────────────────────
|
|
841
837
|
export { removeInvoicingDunningCase, updateInvoicingDunningCases, } from './entity/invoicing/dunningCase/dunningCaseReducer';
|
|
842
838
|
export { fetchInvoicingDunningCaseCounts, fetchInvoicingDunningCaseList, fetchInvoicingDunningCaseListPage, setInvoicingDunningCaseActiveTab, updateInvoicingDunningCaseFilters, } from './view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewReducer';
|
|
@@ -851,7 +847,6 @@ export { fetchInvoicingCatalogCounts, fetchInvoicingCatalogListPage, fetchInvoic
|
|
|
851
847
|
export { ALL_INVOICING_PRODUCT_SORT_KEYS, INVOICING_PRODUCT_COLUMNS, } from './view/invoicing/invoicingCatalogListView/invoicingCatalogListViewState';
|
|
852
848
|
export { getInvoicingCatalogListView } from './view/invoicing/invoicingCatalogListView/invoicingCatalogListViewSelector';
|
|
853
849
|
export { fetchInvoicingCatalogItemDetail } from './view/invoicing/invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewReducer';
|
|
854
|
-
export { getInvoicingCatalogItemRecord } from './view/invoicing/invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewSelector';
|
|
855
850
|
export { getInvoicingPlanById } from './entity/invoicing/plan/planSelector';
|
|
856
851
|
export { getInvoicingProductById } from './entity/invoicing/product/productSelector';
|
|
857
852
|
// ── Invoicing: settings ───────────────────────────────────────────────────────
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createSelector } from '@reduxjs/toolkit';
|
|
2
|
+
import { getInvoicingCatalogActionState } from '../catalogAction/catalogActionSelector';
|
|
2
3
|
import { getInvoicingPlanById, getInvoicingPlansByIds, } from '../../../entity/invoicing/plan/planSelector';
|
|
3
4
|
import { getInvoicingCatalogItemRecord, } from '../invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewSelector';
|
|
4
5
|
import { getInvoicingConfigView, invoicingFieldHelpForGroup, } from '../invoicingConfigView/invoicingConfigViewSelector';
|
|
@@ -39,6 +40,10 @@ export const getInvoicingApplicableCatalogItemOptions = createSelector((state) =
|
|
|
39
40
|
...listViewState.planIds,
|
|
40
41
|
...listViewState.productIds,
|
|
41
42
|
])));
|
|
43
|
+
const NOT_STARTED = {
|
|
44
|
+
error: undefined,
|
|
45
|
+
fetchState: 'Not-Started',
|
|
46
|
+
};
|
|
42
47
|
export const getInvoicingCatalogItemFormView = (state, id) => {
|
|
43
48
|
const { editDraftById, error, fetchState, newItemDraft, savedItemId, savedKind, } = state.editInvoicingCatalogItemDetailViewState;
|
|
44
49
|
const plan = id != null ? getInvoicingPlanById(state.invoicingPlanState, id) : undefined;
|
|
@@ -58,6 +63,7 @@ export const getInvoicingCatalogItemFormView = (state, id) => {
|
|
|
58
63
|
// consulted when editing an existing item.
|
|
59
64
|
const recordView = id != null ? getInvoicingCatalogItemRecord(state, 'plan', id) : undefined;
|
|
60
65
|
return {
|
|
66
|
+
actionState: id != null ? getInvoicingCatalogActionState(id)(state) : NOT_STARTED,
|
|
61
67
|
catalogItemLifecycleActionOptions: recordView?.catalogItemLifecycleActionOptions ?? [],
|
|
62
68
|
catalogProductLifecycleActionOptions: recordView?.catalogProductLifecycleActionOptions ?? [],
|
|
63
69
|
recordState: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getInvoicingCouponById } from '../../../entity/invoicing/coupon/couponSelector';
|
|
2
2
|
import { toInvoicingFormOption, } from '../../../entity/invoicing/invoicingCommonPayload';
|
|
3
3
|
import { getInvoicingConfigView, invoicingFieldHelpForGroup, } from '../invoicingConfigView/invoicingConfigViewSelector';
|
|
4
|
+
import { getInvoicingDiscountActionState } from '../discountAction/discountActionSelector';
|
|
4
5
|
import { getInvoicingCouponRecord } from '../invoicingCouponRecordView/invoicingCouponRecordViewSelector';
|
|
5
6
|
import { entityToInvoicingCouponFormLocalData, } from './editInvoicingCouponDetailViewState';
|
|
6
7
|
/**
|
|
@@ -8,6 +9,10 @@ import { entityToInvoicingCouponFormLocalData, } from './editInvoicingCouponDeta
|
|
|
8
9
|
* the id of the coupon last saved, and — when a `couponId` is passed (edit
|
|
9
10
|
* mode) — the existing coupon entity to prefill the form.
|
|
10
11
|
*/
|
|
12
|
+
const NOT_STARTED = {
|
|
13
|
+
error: undefined,
|
|
14
|
+
fetchState: 'Not-Started',
|
|
15
|
+
};
|
|
11
16
|
export const getEditInvoicingCouponDetailViewState = (state, couponId) => {
|
|
12
17
|
const { error, fetchState, savedCouponId } = state.editInvoicingCouponDetailViewState;
|
|
13
18
|
const { discountLifecycleActionOptions, fetchState: configFetchState } = getInvoicingConfigView(state);
|
|
@@ -15,6 +20,9 @@ export const getEditInvoicingCouponDetailViewState = (state, couponId) => {
|
|
|
15
20
|
// consulted when editing an existing coupon.
|
|
16
21
|
const readView = couponId != null ? getInvoicingCouponRecord(state, couponId) : undefined;
|
|
17
22
|
return {
|
|
23
|
+
actionState: couponId != null
|
|
24
|
+
? getInvoicingDiscountActionState(couponId)(state)
|
|
25
|
+
: NOT_STARTED,
|
|
18
26
|
configFetchState,
|
|
19
27
|
discountLifecycleActionOptions,
|
|
20
28
|
fieldHelp: invoicingFieldHelpForGroup(state, 'discount'),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { getInvoicingCustomerById } from '../../../entity/invoicing/invoicingCustomer/invoicingCustomerSelector';
|
|
2
2
|
import { getFormattedAddress } from '../../addressView/addressViewSelector';
|
|
3
|
+
import { getInvoicingPlaidLinkTokenFetchState } from '../customerPaymentMethod/customerPaymentMethodSelector';
|
|
3
4
|
import { getInvoicingCustomerRecord, } from '../invoicingCustomerRecordView/invoicingCustomerRecordViewSelector';
|
|
4
5
|
import { getInvoicingConfigView, invoicingFieldHelpForGroup, } from '../invoicingConfigView/invoicingConfigViewSelector';
|
|
5
6
|
import { INVOICING_CUSTOMER_BILLING_ADDRESS_TYPE, entityToInvoicingCustomerFormLocalData, } from './invoicingCustomerFormConfig';
|
|
@@ -30,6 +31,8 @@ export const getInvoicingCustomerFormView = (state, invoicingCustomerID) => {
|
|
|
30
31
|
: undefined;
|
|
31
32
|
const { customerTypeOptions, netTermDayOptions, taxabilityOptions } = getInvoicingConfigView(state);
|
|
32
33
|
return {
|
|
34
|
+
plaidTokenFetchState: getInvoicingPlaidLinkTokenFetchState(state),
|
|
35
|
+
promotionalCreditSubmitState: state.invoicingPromotionalCreditActionState.submitFetchState,
|
|
33
36
|
record: getInvoicingCustomerRecord(state, invoicingCustomerID ?? ''),
|
|
34
37
|
fieldHelp: invoicingFieldHelpForGroup(state, 'customer'),
|
|
35
38
|
customerTypeOptions,
|
|
@@ -53,6 +53,9 @@ export const getInvoicingSubscriptionFormView = (state, invoicingSubscriptionID)
|
|
|
53
53
|
fetchState: 'Not-Started',
|
|
54
54
|
},
|
|
55
55
|
cancelReasonCodeOptions: getInvoicingConfigView(state).subscriptionCancelReasonCodeOptions,
|
|
56
|
+
subscriptionCommercialEditAllowedFromStatuses: getInvoicingConfigView(state).subscriptionCommercialEditAllowedFromStatuses,
|
|
57
|
+
subscriptionLifecycleActionOptions: getInvoicingConfigView(state).subscriptionLifecycleActionOptions,
|
|
58
|
+
subscriptionMetadataEditAllowedFromStatuses: getInvoicingConfigView(state).subscriptionMetadataEditAllowedFromStatuses,
|
|
56
59
|
recordState: {
|
|
57
60
|
error: recordView?.error,
|
|
58
61
|
fetchState: recordView?.fetchState ?? 'Not-Started',
|
package/lib/esm/view/invoicing/invoicingCustomerRecordView/invoicingCustomerRecordViewSelector.js
CHANGED
|
@@ -29,6 +29,5 @@ export const getInvoicingCustomerRecord = (state, invoicingCustomerID) => {
|
|
|
29
29
|
stripeConnected: isStripeConnectedFromSettings(settings),
|
|
30
30
|
fetchState: invoicingCustomerDetail?.fetchState ?? 'Not-Started',
|
|
31
31
|
error: invoicingCustomerDetail?.error,
|
|
32
|
-
version: 1.0,
|
|
33
32
|
};
|
|
34
33
|
};
|
package/lib/index.d.ts
CHANGED
|
@@ -1133,7 +1133,7 @@ export type { ArchiveInvoicingCatalogSubFamilyPayload, SubmitInvoicingCatalogIte
|
|
|
1133
1133
|
export type { InvoicingCatalogAccountingLookup } from './view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewPayload';
|
|
1134
1134
|
export type { InvoicingCatalogItemFormLocalData, InvoicingCatalogItemFormSubFamily, InvoicingCatalogItemFormTier, } from './view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewState';
|
|
1135
1135
|
export { INVOICING_CATALOG_APPLICABILITY_VALUES, INVOICING_CATALOG_PRICING_MODEL_VALUES, INVOICING_CATALOG_PRORATION_VALUES, INVOICING_CATALOG_TIER_TYPE_VALUES, blankInvoicingCatalogSubFamily, blankInvoicingCatalogTier, entityToInvoicingCatalogItemFormLocalData, invoicingProductToCatalogItemFormSubFamily, initialInvoicingCatalogItemFormLocalData, isTieredCatalogPricingModel, } from './view/invoicing/editInvoicingCatalogItemDetailView/invoicingCatalogItemFormConfig';
|
|
1136
|
-
export {
|
|
1136
|
+
export { getInvoicingApplicableCatalogItemOptions, getInvoicingCatalogItemFormView, getSavedInvoicingCatalogItemId, getSavedInvoicingCatalogItemKind, } from './view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector';
|
|
1137
1137
|
export type { ApplicableCatalogItemOption, InvoicingCatalogItemFormView, } from './view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector';
|
|
1138
1138
|
export { resetEditInvoicingCouponDetailView, saveInvoicingCoupon, submitInvoicingCouponForm, updateInvoicingCouponFormDraft, } from './view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewReducer';
|
|
1139
1139
|
export type { SaveInvoicingCouponPayload, SubmitInvoicingCouponFormPayload, UpdateInvoicingCouponFormDraftPayload, } from './view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewReducer';
|
|
@@ -1148,11 +1148,9 @@ export { getInvoicingInvoiceActionState } from './view/invoicing/invoiceAction/i
|
|
|
1148
1148
|
export { runInvoicingCatalogPlanAction, runInvoicingCatalogProductAction, } from './view/invoicing/catalogAction/catalogActionReducer';
|
|
1149
1149
|
export type { InvoicingCatalogActionState } from './view/invoicing/catalogAction/catalogActionState';
|
|
1150
1150
|
export type { RunInvoicingCatalogPlanActionPayload, RunInvoicingCatalogProductActionPayload, } from './view/invoicing/catalogAction/catalogActionReducer';
|
|
1151
|
-
export { getInvoicingCatalogActionState } from './view/invoicing/catalogAction/catalogActionSelector';
|
|
1152
1151
|
export { runInvoicingDiscountAction } from './view/invoicing/discountAction/discountActionReducer';
|
|
1153
1152
|
export type { InvoicingDiscountActionState } from './view/invoicing/discountAction/discountActionState';
|
|
1154
1153
|
export type { RunInvoicingDiscountActionPayload } from './view/invoicing/discountAction/discountActionReducer';
|
|
1155
|
-
export { getInvoicingDiscountActionState } from './view/invoicing/discountAction/discountActionSelector';
|
|
1156
1154
|
export { runInvoicingSubscriptionAction } from './view/invoicing/subscriptionAction/subscriptionActionReducer';
|
|
1157
1155
|
export type { InvoicingSubscriptionActionState } from './view/invoicing/subscriptionAction/subscriptionActionState';
|
|
1158
1156
|
export type { RunInvoicingSubscriptionActionPayload } from './view/invoicing/subscriptionAction/subscriptionActionReducer';
|
|
@@ -1182,11 +1180,9 @@ export type { InvoicingCustomerColumnConfig, InvoicingCustomerFilters, Invoicing
|
|
|
1182
1180
|
export { getInvoicingCustomerListView } from './view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector';
|
|
1183
1181
|
export type { InvoicingCustomerListView } from './view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector';
|
|
1184
1182
|
export { fetchInvoicingCustomerDetail, fetchInvoicingCustomerDetailPage, } from './view/invoicing/invoicingCustomerRecordView/invoicingCustomerRecordViewReducer';
|
|
1185
|
-
export { getInvoicingCustomerRecord } from './view/invoicing/invoicingCustomerRecordView/invoicingCustomerRecordViewSelector';
|
|
1186
|
-
export type { InvoicingCustomerRecordView } from './view/invoicing/invoicingCustomerRecordView/invoicingCustomerRecordViewSelector';
|
|
1187
1183
|
export { createInvoicingSetupIntent, fetchInvoicingPlaidLinkToken, resetInvoicingCustomerPaymentMethod, saveInvoicingPaymentMethod, sendInvoicingPaymentLink, } from './view/invoicing/customerPaymentMethod/customerPaymentMethodReducer';
|
|
1188
1184
|
export type { InvoicingSetupIntent } from './view/invoicing/customerPaymentMethod/customerPaymentMethodState';
|
|
1189
|
-
export { getInvoicingPaymentLinkSendState, getInvoicingPaymentMethodSaveState, getInvoicingPlaidLinkToken,
|
|
1185
|
+
export { getInvoicingPaymentLinkSendState, getInvoicingPaymentMethodSaveState, getInvoicingPlaidLinkToken, getInvoicingSentPaymentLinkEmail, getInvoicingSentPaymentLinkMagicUrl, getInvoicingSetupIntent, getInvoicingSetupIntentFetchState, } from './view/invoicing/customerPaymentMethod/customerPaymentMethodSelector';
|
|
1190
1186
|
export { submitAddPromotionalCredits, resetPromotionalCreditAction, } from './view/invoicing/promotionalCreditAction/promotionalCreditActionReducer';
|
|
1191
1187
|
export type { PromotionalCreditActionState } from './view/invoicing/promotionalCreditAction/promotionalCreditActionState';
|
|
1192
1188
|
export { removeInvoicingSubscription, updateInvoicingSubscriptions, } from './entity/invoicing/invoicingSubscription/invoicingSubscriptionReducer';
|
|
@@ -1196,8 +1192,7 @@ export type { InvoicingSubscriptionColumnConfig, InvoicingSubscriptionFilters, I
|
|
|
1196
1192
|
export { getInvoicingSubscriptionListView } from './view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector';
|
|
1197
1193
|
export type { InvoicingSubscriptionListView } from './view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewSelector';
|
|
1198
1194
|
export { fetchInvoicingSubscriptionDetail } from './view/invoicing/invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewReducer';
|
|
1199
|
-
export { getInvoicingSubscriptionById,
|
|
1200
|
-
export type { InvoicingSubscriptionRecordView } from './view/invoicing/invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewSelector';
|
|
1195
|
+
export { getInvoicingSubscriptionById, } from './view/invoicing/invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewSelector';
|
|
1201
1196
|
export { removeInvoicingTransaction, updateInvoicingTransactions, } from './entity/invoicing/invoicingTransaction/invoicingTransactionReducer';
|
|
1202
1197
|
export { fetchInvoicingTransactionList, fetchInvoicingTransactionListPage, setInvoicingTransactionActiveTab, updateInvoicingTransactionFilters, } from './view/invoicing/invoicingTransactionListView/invoicingTransactionListViewReducer';
|
|
1203
1198
|
export { ALL_INVOICING_TRANSACTION_SORT_KEYS, ALL_INVOICING_TRANSACTION_TAB_IDS, INVOICING_TRANSACTION_COLUMNS, } from './view/invoicing/invoicingTransactionListView/invoicingTransactionListViewState';
|
|
@@ -1224,8 +1219,6 @@ export { getInvoicingCouponCounts, getInvoicingCouponListFetchState, getInvoicin
|
|
|
1224
1219
|
export type { InvoicingCouponListView } from './view/invoicing/couponView/couponViewSelector';
|
|
1225
1220
|
export { getInvoicingCouponById } from './entity/invoicing/coupon/couponSelector';
|
|
1226
1221
|
export { fetchInvoicingCouponDetail } from './view/invoicing/invoicingCouponRecordView/invoicingCouponRecordViewReducer';
|
|
1227
|
-
export { getInvoicingCouponRecord } from './view/invoicing/invoicingCouponRecordView/invoicingCouponRecordViewSelector';
|
|
1228
|
-
export type { InvoicingCouponRecordView } from './view/invoicing/invoicingCouponRecordView/invoicingCouponRecordViewSelector';
|
|
1229
1222
|
export { removeInvoicingDunningCase, updateInvoicingDunningCases, } from './entity/invoicing/dunningCase/dunningCaseReducer';
|
|
1230
1223
|
export { fetchInvoicingDunningCaseCounts, fetchInvoicingDunningCaseList, fetchInvoicingDunningCaseListPage, setInvoicingDunningCaseActiveTab, updateInvoicingDunningCaseFilters, } from './view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewReducer';
|
|
1231
1224
|
export { ALL_INVOICING_DUNNING_CASE_SORT_KEYS, ALL_INVOICING_DUNNING_CASE_TAB_IDS, INVOICING_DUNNING_CASE_COLUMNS, } from './view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewState';
|
|
@@ -1245,10 +1238,8 @@ export { getInvoicingCatalogListView } from './view/invoicing/invoicingCatalogLi
|
|
|
1245
1238
|
export type { InvoicingCatalogListView } from './view/invoicing/invoicingCatalogListView/invoicingCatalogListViewSelector';
|
|
1246
1239
|
export { fetchInvoicingCatalogItemDetail } from './view/invoicing/invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewReducer';
|
|
1247
1240
|
export type { InvoicingCatalogItemKind } from './view/invoicing/invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewState';
|
|
1248
|
-
export { getInvoicingCatalogItemRecord } from './view/invoicing/invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewSelector';
|
|
1249
1241
|
export { getInvoicingPlanById } from './entity/invoicing/plan/planSelector';
|
|
1250
1242
|
export { getInvoicingProductById } from './entity/invoicing/product/productSelector';
|
|
1251
|
-
export type { InvoicingCatalogItemRecordView } from './view/invoicing/invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewSelector';
|
|
1252
1243
|
export { connectInvoicingStripe, disconnectInvoicingStripe, fetchInvoicingSettings, resetInvoicingBrandingFormDraft, resetInvoicingQboSettingsDraft, resetSaveInvoicingSettings, saveInvoicingSettings, submitInvoicingBrandingForm, submitInvoicingQboSettings, updateInvoicingBrandingFormDraft, updateInvoicingQboSettingsDraft, updateInvoicingSettings, } from './view/invoicing/settingsView/settingsViewReducer';
|
|
1253
1244
|
export { getInvoicingBrandingFormView, getInvoicingQboSettingsFormView, getInvoicingSettings, getInvoicingSettingsFetchState, getInvoicingSettingsHubView, getInvoicingSettingsView, } from './view/invoicing/settingsView/settingsViewSelector';
|
|
1254
1245
|
export type { InvoicingBrandingFormView, InvoicingQboSettingsFormView, InvoicingSettingsHubView, InvoicingSettingsView, } from './view/invoicing/settingsView/settingsViewSelector';
|
package/lib/index.js
CHANGED
|
@@ -80,11 +80,11 @@ exports.getLastCreatedCardPolicyTemplateIds = exports.getLastCreatedCardPolicyTe
|
|
|
80
80
|
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 = exports.getCardPolicyTemplateIds = exports.getCardPolicyListView = exports.getCardPolicyListFetchState = exports.getArchiveCardPolicyFetchState = exports.updateCardPolicyListFetchStatus = exports.updateArchiveCardPolicyFetchStatus = exports.prependCardPolicyTemplateIds = exports.fetchCardPolicyList = exports.archiveCardPolicy = exports.toManualCardPolicyTemplateRequestFromDraft = exports.toBulkCardPolicyTemplateRequestsFromDraft = exports.toCardPolicyTemplateRequestFromDraft = exports.applyAiCardPolicyFormDraftUpdate = exports.deriveAiPolicyReviewRowsFromInputs = exports.buildManualCardPolicyFormDraftSeed = exports.buildUploadReviewRows = exports.buildEmptyLimitRows = exports.buildAiCardPolicyFormDraftSeed = exports.toVendorChipFieldValue = exports.toMccCategoryChipFieldValue = exports.buildVendorChipId = exports.buildMccCategoryChipId = exports.VENDOR_CHIP_ID_PREFIX = exports.MCC_CHIP_ID_PREFIX = exports.toMccCategoryLike = exports.CARD_POLICY_LIMIT_ROW_ID_TRANSACTION = exports.CARD_POLICY_LIMIT_ROW_ID_REQUIRE_RECEIPT = exports.getManualCardPolicyFormDraft = void 0;
|
|
81
81
|
exports.getInvoiceDetail = exports.fetchInvoiceDetail = exports.getInvoiceListView = exports.ALL_INVOICING_INVOICE_TAB_IDS = exports.updateInvoiceListFilters = exports.setInvoiceActiveTab = exports.fetchInvoiceListPage = exports.fetchInvoiceList = exports.fetchInvoiceKPIs = exports.fetchInvoiceCounts = exports.getInvoicesByIds = exports.getInvoiceById = exports.updateInvoices = exports.removeInvoice = exports.mapAuditLogEntry = exports.toAuditLogEntityRouteOption = exports.isInvoicingEntityLinkable = exports.buildInvoicingEntityPath = exports.toInvoicingDiscountLifecycleActionOption = exports.toInvoicingDiscountLifecycleAction = exports.toInvoicingCatalogProductLifecycleActionOption = exports.toInvoicingCatalogItemLifecycleActionOption = exports.toInvoicingCatalogProductLifecycleAction = exports.toInvoicingCatalogItemLifecycleAction = exports.toInvoicingSubscriptionLifecycleActionOption = exports.toInvoicingSubscriptionLifecycleAction = exports.toInvoicingDunningAction = exports.INVOICING_DISCOUNT_LIFECYCLE_ACTIONS = exports.INVOICING_CATALOG_PRODUCT_LIFECYCLE_ACTIONS = exports.INVOICING_CATALOG_ITEM_LIFECYCLE_ACTIONS = exports.INVOICING_SUBSCRIPTION_LIFECYCLE_ACTIONS = exports.INVOICING_DUNNING_ACTIONS = 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 = void 0;
|
|
82
82
|
exports.submitInvoicingCustomerFormSuccess = exports.submitInvoicingCustomerFormFailure = exports.submitInvoicingCustomerForm = exports.resetEditInvoicingCustomerDetailView = exports.initializeInvoicingCustomerAddress = exports.getRecordPaymentView = exports.getRecordPaymentInvoiceOptions = exports.getRecordPaymentFormView = exports.getCreateInvoiceFormView = exports.getInvoicingAuditView = exports.fetchInvoicingAuditLog = exports.getInvoicingOverview = exports.buildPeriodOptions = exports.fetchInvoicingOverview = exports.clearInvoicingOverview = exports.initialRecordPaymentFormLocalData = exports.localDataToRecordPaymentPayload = exports.localDataToInvoiceRecordPaymentBody = exports.initializeRecordPaymentDraftFromInvoice = exports.getCreateCreditNoteView = exports.getCreateCreditNoteFormView = exports.initialCreateCreditNoteFormLocalData = exports.localDataToCreateCreditNotePayload = exports.updateCreateCreditNoteFormDraft = exports.submitCreateCreditNote = exports.resetCreateCreditNote = exports.createCreditNoteSuccess = exports.createCreditNoteFailure = exports.getIssueCreditNoteView = exports.initialIssueCreditNoteFormLocalData = exports.localDataToIssueCreditNotePayload = exports.initializeIssueCreditNoteDraftFromInvoice = exports.computeIssueCreditNoteTotal = exports.updateIssueCreditNoteFormDraft = exports.submitIssueCreditNote = exports.resetIssueCreditNote = exports.issueCreditNoteSuccess = exports.issueCreditNoteFailure = exports.initializeIssueCreditNoteDraft = exports.updateRecordPaymentFormDraft = exports.submitRecordPayment = exports.initializeRecordPaymentDraft = exports.resetRecordPayment = exports.initialInvoicingCreateInvoiceFormLocalData = exports.createInvoiceFormLocalDataToRequest = exports.blankInvoicingCreateInvoiceLineItem = exports.updateInvoicingCreateInvoiceFormDraft = exports.resetCreateInvoice = exports.fetchCreateInvoiceFormPage = exports.createInvoice = void 0;
|
|
83
|
-
exports.
|
|
84
|
-
exports.resetPromotionalCreditAction = exports.submitAddPromotionalCredits = exports.getInvoicingSetupIntentFetchState = exports.getInvoicingSetupIntent = exports.getInvoicingSentPaymentLinkMagicUrl = exports.getInvoicingSentPaymentLinkEmail = exports.
|
|
85
|
-
exports.ALL_INVOICING_COUPON_TAB_IDS = exports.ALL_INVOICING_COUPON_SORT_KEYS = exports.updateInvoicingCouponFilters = exports.setInvoicingCouponActiveTab = exports.fetchInvoicingCouponListPage = exports.fetchInvoicingCouponList = exports.fetchInvoicingCouponCounts = exports.updateInvoicingCoupons = exports.removeInvoicingCoupon = exports.getInvoicingCreditNoteDetail = exports.getInvoicingCreditNoteById = exports.fetchInvoicingCreditNoteDetail = exports.getInvoicingCreditNoteListView = exports.INVOICING_CREDIT_NOTE_COLUMNS = exports.ALL_INVOICING_CREDIT_NOTE_TAB_IDS = exports.ALL_INVOICING_CREDIT_NOTE_SORT_KEYS = exports.updateInvoicingCreditNoteFilters = exports.setInvoicingCreditNoteActiveTab = exports.fetchInvoicingCreditNoteListPage = exports.fetchInvoicingCreditNoteList = exports.fetchInvoicingCreditNoteCounts = exports.updateInvoicingCreditNotes = exports.removeInvoicingCreditNote = exports.getInvoicingTransactionDetail = exports.getInvoicingTransactionById = exports.fetchInvoicingTransactionDetail = exports.getInvoicingTransactionListView = exports.INVOICING_TRANSACTION_COLUMNS = exports.ALL_INVOICING_TRANSACTION_TAB_IDS = exports.ALL_INVOICING_TRANSACTION_SORT_KEYS = exports.updateInvoicingTransactionFilters = exports.setInvoicingTransactionActiveTab = exports.fetchInvoicingTransactionListPage = exports.fetchInvoicingTransactionList = exports.updateInvoicingTransactions = exports.removeInvoicingTransaction = exports.
|
|
86
|
-
exports.fetchInvoicingSettings = exports.disconnectInvoicingStripe = exports.connectInvoicingStripe = exports.getInvoicingProductById = exports.getInvoicingPlanById = exports.
|
|
87
|
-
exports.isPendingReviewRow = exports.isRenderableOneTimeAccrual = exports.isOneTimeAccrualRow = exports.isExistingTabRow = exports.isAiAccountantSchedule = exports.isAccruedScheduleRow = exports.getJEScheduleRowType = exports.getExpenseAutomationJEOneTimeAccrualDetailView = exports.getInvoicingOnboardingGateView = exports.getInvoicingConfigView = exports.updateInvoicingConfig = exports.resetInvoicingConfigActionStates = exports.fetchInvoicingConfig = exports.enableInvoicing = exports.acceptInvoicingTerms = exports.toInvoicingQboCustomerMatchingMode = exports.toInvoicingNamedOptionsByKey = exports.getInvoicingQboAccountMappingId = exports.INVOICING_QBO_CUSTOMER_MATCHING_MODES = exports.getInvoicingQboView = exports.invoicingAccountsForQboAccountTypes = exports.startInvoicingQboBackfill = exports.retryInvoicingQboSyncTask = exports.fetchInvoicingQboSyncHealth = exports.fetchInvoicingQboConnection = exports.fetchInvoicingAccountingPickers = exports.isStripeConnectedFromSettings = exports.initialInvoicingBrandingFormLocalData = exports.entityToInvoicingBrandingFormLocalData = exports.INVOICING_BUSINESS_ADDRESS_TYPE = exports.invoicingQboSettingsLocalDataToPayload = exports.initialInvoicingQboSettingsLocalData = exports.entityToInvoicingQboSettingsLocalData = exports.getInvoicingSettingsView = exports.getInvoicingSettingsHubView = exports.getInvoicingSettingsFetchState = exports.getInvoicingSettings = exports.getInvoicingQboSettingsFormView = exports.getInvoicingBrandingFormView = exports.updateInvoicingSettings =
|
|
83
|
+
exports.runInvoicingSubscriptionAction = exports.runInvoicingDiscountAction = exports.runInvoicingCatalogProductAction = exports.runInvoicingCatalogPlanAction = exports.getInvoicingInvoiceActionState = exports.updateInvoicingInvoice = exports.runInvoicingInvoiceAction = exports.getInvoicingCouponFormView = exports.getEditInvoicingCouponDetailViewState = exports.initialInvoicingCouponFormLocalData = exports.entityToInvoicingCouponFormLocalData = exports.updateInvoicingCouponFormDraft = exports.submitInvoicingCouponForm = exports.saveInvoicingCoupon = exports.resetEditInvoicingCouponDetailView = exports.getSavedInvoicingCatalogItemKind = exports.getSavedInvoicingCatalogItemId = exports.getInvoicingCatalogItemFormView = exports.getInvoicingApplicableCatalogItemOptions = exports.isTieredCatalogPricingModel = exports.initialInvoicingCatalogItemFormLocalData = exports.invoicingProductToCatalogItemFormSubFamily = exports.entityToInvoicingCatalogItemFormLocalData = exports.blankInvoicingCatalogTier = exports.blankInvoicingCatalogSubFamily = exports.INVOICING_CATALOG_TIER_TYPE_VALUES = exports.INVOICING_CATALOG_PRORATION_VALUES = exports.INVOICING_CATALOG_PRICING_MODEL_VALUES = exports.INVOICING_CATALOG_APPLICABILITY_VALUES = exports.updateInvoicingCatalogItemFormDraft = exports.submitInvoicingCatalogItemForm = exports.resetEditInvoicingCatalogItemDetailView = exports.archiveInvoicingCatalogSubFamily = exports.getInvoicingSubscriptionFormView = exports.getEditInvoicingSubscriptionDetailViewState = exports.toInvoicingSubscriptionQuantity = exports.invoicingSubscriptionTodayIso = exports.initialInvoicingSubscriptionFormLocalData = exports.entityToInvoicingSubscriptionFormLocalData = exports.INVOICING_SUBSCRIPTION_SHIPPING_ADDRESS_TYPE = exports.updateInvoicingSubscriptionFormDraft = exports.submitInvoicingSubscriptionForm = exports.resetEditInvoicingSubscriptionDetailView = exports.initializeInvoicingSubscriptionAddress = exports.fetchInvoicingSubscriptionFormPage = exports.getInvoicingCustomerFormView = exports.initialInvoicingCustomerFormLocalData = exports.entityToInvoicingCustomerFormLocalData = exports.INVOICING_CUSTOMER_BILLING_ADDRESS_TYPE = exports.updateInvoicingCustomerFormDraft = void 0;
|
|
84
|
+
exports.fetchInvoicingSubscriptionListPage = exports.fetchInvoicingSubscriptionList = exports.fetchInvoicingSubscriptionCounts = exports.updateInvoicingSubscriptions = exports.removeInvoicingSubscription = exports.resetPromotionalCreditAction = exports.submitAddPromotionalCredits = exports.getInvoicingSetupIntentFetchState = exports.getInvoicingSetupIntent = exports.getInvoicingSentPaymentLinkMagicUrl = exports.getInvoicingSentPaymentLinkEmail = exports.getInvoicingPlaidLinkToken = exports.getInvoicingPaymentMethodSaveState = exports.getInvoicingPaymentLinkSendState = exports.sendInvoicingPaymentLink = exports.saveInvoicingPaymentMethod = exports.resetInvoicingCustomerPaymentMethod = exports.fetchInvoicingPlaidLinkToken = exports.createInvoicingSetupIntent = exports.fetchInvoicingCustomerDetailPage = exports.fetchInvoicingCustomerDetail = exports.getInvoicingCustomerListView = exports.INVOICING_CUSTOMER_COLUMNS = exports.ALL_INVOICING_CUSTOMER_TAB_IDS = exports.ALL_INVOICING_CUSTOMER_SORT_KEYS = exports.updateInvoicingCustomerFilters = exports.setInvoicingCustomerActiveTab = exports.fetchInvoicingCustomerListPage = exports.fetchInvoicingCustomerList = exports.fetchInvoicingCustomerCounts = exports.updateInvoicingCustomers = exports.removeInvoicingCustomer = exports.INVOICING_LIST_PAGE_SIZE = exports.getInvoicingDataImportActionState = exports.uploadInvoicingMigrationFiles = exports.startInvoicingMigration = exports.rollbackInvoicingMigration = exports.retryInvoicingMigration = exports.connectInvoicingChargebee = exports.getInvoicingDataImportView = exports.setInvoicingActiveMigrationSessionId = exports.fetchInvoicingMigrationSessions = exports.fetchInvoicingMigrationSession = exports.fetchInvoicingMigrationDiagnostics = exports.fetchInvoicingDataImportStatus = exports.getInvoicingPaymentActionState = exports.runInvoicingPaymentAction = exports.getInvoicingDunningActionState = exports.runInvoicingDunningAction = exports.getInvoicingSubscriptionActionState = void 0;
|
|
85
|
+
exports.getInvoicingCouponListItems = exports.getInvoicingCouponListHasMore = exports.getInvoicingCouponListFilters = exports.getInvoicingCouponListFetchState = exports.getInvoicingCouponCounts = exports.INVOICING_COUPON_COLUMNS = exports.ALL_INVOICING_COUPON_TAB_IDS = exports.ALL_INVOICING_COUPON_SORT_KEYS = exports.updateInvoicingCouponFilters = exports.setInvoicingCouponActiveTab = exports.fetchInvoicingCouponListPage = exports.fetchInvoicingCouponList = exports.fetchInvoicingCouponCounts = exports.updateInvoicingCoupons = exports.removeInvoicingCoupon = exports.getInvoicingCreditNoteDetail = exports.getInvoicingCreditNoteById = exports.fetchInvoicingCreditNoteDetail = exports.getInvoicingCreditNoteListView = exports.INVOICING_CREDIT_NOTE_COLUMNS = exports.ALL_INVOICING_CREDIT_NOTE_TAB_IDS = exports.ALL_INVOICING_CREDIT_NOTE_SORT_KEYS = exports.updateInvoicingCreditNoteFilters = exports.setInvoicingCreditNoteActiveTab = exports.fetchInvoicingCreditNoteListPage = exports.fetchInvoicingCreditNoteList = exports.fetchInvoicingCreditNoteCounts = exports.updateInvoicingCreditNotes = exports.removeInvoicingCreditNote = exports.getInvoicingTransactionDetail = exports.getInvoicingTransactionById = exports.fetchInvoicingTransactionDetail = exports.getInvoicingTransactionListView = exports.INVOICING_TRANSACTION_COLUMNS = exports.ALL_INVOICING_TRANSACTION_TAB_IDS = exports.ALL_INVOICING_TRANSACTION_SORT_KEYS = exports.updateInvoicingTransactionFilters = exports.setInvoicingTransactionActiveTab = exports.fetchInvoicingTransactionListPage = exports.fetchInvoicingTransactionList = exports.updateInvoicingTransactions = exports.removeInvoicingTransaction = exports.getInvoicingSubscriptionById = exports.fetchInvoicingSubscriptionDetail = exports.getInvoicingSubscriptionListView = exports.INVOICING_SUBSCRIPTION_COLUMNS = exports.ALL_INVOICING_SUBSCRIPTION_TAB_IDS = exports.ALL_INVOICING_SUBSCRIPTION_SORT_KEYS = exports.updateInvoicingSubscriptionFilters = exports.setInvoicingSubscriptionActiveTab = void 0;
|
|
86
|
+
exports.updateInvoicingQboSettingsDraft = exports.updateInvoicingBrandingFormDraft = exports.submitInvoicingQboSettings = exports.submitInvoicingBrandingForm = exports.saveInvoicingSettings = exports.resetSaveInvoicingSettings = exports.resetInvoicingQboSettingsDraft = exports.resetInvoicingBrandingFormDraft = exports.fetchInvoicingSettings = exports.disconnectInvoicingStripe = exports.connectInvoicingStripe = exports.getInvoicingProductById = exports.getInvoicingPlanById = exports.fetchInvoicingCatalogItemDetail = exports.getInvoicingCatalogListView = exports.INVOICING_PRODUCT_COLUMNS = exports.ALL_INVOICING_PRODUCT_SORT_KEYS = exports.updateInvoicingCatalogProductFilters = exports.updateInvoicingCatalogPlanFilters = exports.fetchInvoicingCatalogProductList = exports.fetchInvoicingCatalogPlanList = exports.fetchInvoicingCatalogListPage = exports.fetchInvoicingCatalogCounts = exports.updateInvoicingProducts = exports.removeInvoicingProduct = exports.updateInvoicingPlans = exports.removeInvoicingPlan = exports.mergeInvoicingPlanSubFamily = exports.getInvoicingDunningEmailPreview = exports.getInvoicingDunningCaseDetail = exports.getInvoicingDunningCaseById = exports.invalidateInvoicingDunningEmailPreview = exports.fetchInvoicingDunningEmailPreviewPage = exports.fetchInvoicingDunningCaseDetail = exports.clearInvoicingDunningCaseDetailView = exports.getInvoicingDunningCaseListView = exports.INVOICING_DUNNING_CASE_COLUMNS = exports.ALL_INVOICING_DUNNING_CASE_TAB_IDS = exports.ALL_INVOICING_DUNNING_CASE_SORT_KEYS = exports.updateInvoicingDunningCaseFilters = exports.setInvoicingDunningCaseActiveTab = exports.fetchInvoicingDunningCaseListPage = exports.fetchInvoicingDunningCaseList = exports.fetchInvoicingDunningCaseCounts = exports.updateInvoicingDunningCases = exports.removeInvoicingDunningCase = exports.fetchInvoicingCouponDetail = exports.getInvoicingCouponById = exports.getInvoicingCouponListView = exports.getInvoicingCouponListNextCursor = void 0;
|
|
87
|
+
exports.isPendingReviewRow = exports.isRenderableOneTimeAccrual = exports.isOneTimeAccrualRow = exports.isExistingTabRow = exports.isAiAccountantSchedule = exports.isAccruedScheduleRow = exports.getJEScheduleRowType = exports.getExpenseAutomationJEOneTimeAccrualDetailView = exports.getInvoicingOnboardingGateView = exports.getInvoicingConfigView = exports.updateInvoicingConfig = exports.resetInvoicingConfigActionStates = exports.fetchInvoicingConfig = exports.enableInvoicing = exports.acceptInvoicingTerms = exports.toInvoicingQboCustomerMatchingMode = exports.toInvoicingNamedOptionsByKey = exports.getInvoicingQboAccountMappingId = exports.INVOICING_QBO_CUSTOMER_MATCHING_MODES = exports.getInvoicingQboView = exports.invoicingAccountsForQboAccountTypes = exports.startInvoicingQboBackfill = exports.retryInvoicingQboSyncTask = exports.fetchInvoicingQboSyncHealth = exports.fetchInvoicingQboConnection = exports.fetchInvoicingAccountingPickers = exports.isStripeConnectedFromSettings = exports.initialInvoicingBrandingFormLocalData = exports.entityToInvoicingBrandingFormLocalData = exports.INVOICING_BUSINESS_ADDRESS_TYPE = exports.invoicingQboSettingsLocalDataToPayload = exports.initialInvoicingQboSettingsLocalData = exports.entityToInvoicingQboSettingsLocalData = exports.getInvoicingSettingsView = exports.getInvoicingSettingsHubView = exports.getInvoicingSettingsFetchState = exports.getInvoicingSettings = exports.getInvoicingQboSettingsFormView = exports.getInvoicingBrandingFormView = exports.updateInvoicingSettings = void 0;
|
|
88
88
|
const allowedValue_1 = require("./commonStateTypes/allowedValue");
|
|
89
89
|
Object.defineProperty(exports, "isAllowedValueWithCode", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithCode; } });
|
|
90
90
|
Object.defineProperty(exports, "isAllowedValueWithID", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithID; } });
|
|
@@ -2895,7 +2895,6 @@ Object.defineProperty(exports, "invoicingProductToCatalogItemFormSubFamily", { e
|
|
|
2895
2895
|
Object.defineProperty(exports, "initialInvoicingCatalogItemFormLocalData", { enumerable: true, get: function () { return invoicingCatalogItemFormConfig_1.initialInvoicingCatalogItemFormLocalData; } });
|
|
2896
2896
|
Object.defineProperty(exports, "isTieredCatalogPricingModel", { enumerable: true, get: function () { return invoicingCatalogItemFormConfig_1.isTieredCatalogPricingModel; } });
|
|
2897
2897
|
var editInvoicingCatalogItemDetailViewSelector_1 = require("./view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector");
|
|
2898
|
-
Object.defineProperty(exports, "getEditInvoicingCatalogItemDetailViewState", { enumerable: true, get: function () { return editInvoicingCatalogItemDetailViewSelector_1.getEditInvoicingCatalogItemDetailViewState; } });
|
|
2899
2898
|
Object.defineProperty(exports, "getInvoicingApplicableCatalogItemOptions", { enumerable: true, get: function () { return editInvoicingCatalogItemDetailViewSelector_1.getInvoicingApplicableCatalogItemOptions; } });
|
|
2900
2899
|
Object.defineProperty(exports, "getInvoicingCatalogItemFormView", { enumerable: true, get: function () { return editInvoicingCatalogItemDetailViewSelector_1.getInvoicingCatalogItemFormView; } });
|
|
2901
2900
|
Object.defineProperty(exports, "getSavedInvoicingCatalogItemId", { enumerable: true, get: function () { return editInvoicingCatalogItemDetailViewSelector_1.getSavedInvoicingCatalogItemId; } });
|
|
@@ -2919,12 +2918,8 @@ Object.defineProperty(exports, "getInvoicingInvoiceActionState", { enumerable: t
|
|
|
2919
2918
|
var catalogActionReducer_1 = require("./view/invoicing/catalogAction/catalogActionReducer");
|
|
2920
2919
|
Object.defineProperty(exports, "runInvoicingCatalogPlanAction", { enumerable: true, get: function () { return catalogActionReducer_1.runInvoicingCatalogPlanAction; } });
|
|
2921
2920
|
Object.defineProperty(exports, "runInvoicingCatalogProductAction", { enumerable: true, get: function () { return catalogActionReducer_1.runInvoicingCatalogProductAction; } });
|
|
2922
|
-
var catalogActionSelector_1 = require("./view/invoicing/catalogAction/catalogActionSelector");
|
|
2923
|
-
Object.defineProperty(exports, "getInvoicingCatalogActionState", { enumerable: true, get: function () { return catalogActionSelector_1.getInvoicingCatalogActionState; } });
|
|
2924
2921
|
var discountActionReducer_1 = require("./view/invoicing/discountAction/discountActionReducer");
|
|
2925
2922
|
Object.defineProperty(exports, "runInvoicingDiscountAction", { enumerable: true, get: function () { return discountActionReducer_1.runInvoicingDiscountAction; } });
|
|
2926
|
-
var discountActionSelector_1 = require("./view/invoicing/discountAction/discountActionSelector");
|
|
2927
|
-
Object.defineProperty(exports, "getInvoicingDiscountActionState", { enumerable: true, get: function () { return discountActionSelector_1.getInvoicingDiscountActionState; } });
|
|
2928
2923
|
var subscriptionActionReducer_1 = require("./view/invoicing/subscriptionAction/subscriptionActionReducer");
|
|
2929
2924
|
Object.defineProperty(exports, "runInvoicingSubscriptionAction", { enumerable: true, get: function () { return subscriptionActionReducer_1.runInvoicingSubscriptionAction; } });
|
|
2930
2925
|
var subscriptionActionSelector_1 = require("./view/invoicing/subscriptionAction/subscriptionActionSelector");
|
|
@@ -2974,8 +2969,6 @@ Object.defineProperty(exports, "getInvoicingCustomerListView", { enumerable: tru
|
|
|
2974
2969
|
var invoicingCustomerRecordViewReducer_1 = require("./view/invoicing/invoicingCustomerRecordView/invoicingCustomerRecordViewReducer");
|
|
2975
2970
|
Object.defineProperty(exports, "fetchInvoicingCustomerDetail", { enumerable: true, get: function () { return invoicingCustomerRecordViewReducer_1.fetchInvoicingCustomerDetail; } });
|
|
2976
2971
|
Object.defineProperty(exports, "fetchInvoicingCustomerDetailPage", { enumerable: true, get: function () { return invoicingCustomerRecordViewReducer_1.fetchInvoicingCustomerDetailPage; } });
|
|
2977
|
-
var invoicingCustomerRecordViewSelector_1 = require("./view/invoicing/invoicingCustomerRecordView/invoicingCustomerRecordViewSelector");
|
|
2978
|
-
Object.defineProperty(exports, "getInvoicingCustomerRecord", { enumerable: true, get: function () { return invoicingCustomerRecordViewSelector_1.getInvoicingCustomerRecord; } });
|
|
2979
2972
|
// ── Invoicing: customer payment methods ───────────────────────────────────────
|
|
2980
2973
|
var customerPaymentMethodReducer_1 = require("./view/invoicing/customerPaymentMethod/customerPaymentMethodReducer");
|
|
2981
2974
|
Object.defineProperty(exports, "createInvoicingSetupIntent", { enumerable: true, get: function () { return customerPaymentMethodReducer_1.createInvoicingSetupIntent; } });
|
|
@@ -2987,7 +2980,6 @@ var customerPaymentMethodSelector_1 = require("./view/invoicing/customerPaymentM
|
|
|
2987
2980
|
Object.defineProperty(exports, "getInvoicingPaymentLinkSendState", { enumerable: true, get: function () { return customerPaymentMethodSelector_1.getInvoicingPaymentLinkSendState; } });
|
|
2988
2981
|
Object.defineProperty(exports, "getInvoicingPaymentMethodSaveState", { enumerable: true, get: function () { return customerPaymentMethodSelector_1.getInvoicingPaymentMethodSaveState; } });
|
|
2989
2982
|
Object.defineProperty(exports, "getInvoicingPlaidLinkToken", { enumerable: true, get: function () { return customerPaymentMethodSelector_1.getInvoicingPlaidLinkToken; } });
|
|
2990
|
-
Object.defineProperty(exports, "getInvoicingPlaidLinkTokenFetchState", { enumerable: true, get: function () { return customerPaymentMethodSelector_1.getInvoicingPlaidLinkTokenFetchState; } });
|
|
2991
2983
|
Object.defineProperty(exports, "getInvoicingSentPaymentLinkEmail", { enumerable: true, get: function () { return customerPaymentMethodSelector_1.getInvoicingSentPaymentLinkEmail; } });
|
|
2992
2984
|
Object.defineProperty(exports, "getInvoicingSentPaymentLinkMagicUrl", { enumerable: true, get: function () { return customerPaymentMethodSelector_1.getInvoicingSentPaymentLinkMagicUrl; } });
|
|
2993
2985
|
Object.defineProperty(exports, "getInvoicingSetupIntent", { enumerable: true, get: function () { return customerPaymentMethodSelector_1.getInvoicingSetupIntent; } });
|
|
@@ -3016,7 +3008,6 @@ var invoicingSubscriptionRecordViewReducer_1 = require("./view/invoicing/invoici
|
|
|
3016
3008
|
Object.defineProperty(exports, "fetchInvoicingSubscriptionDetail", { enumerable: true, get: function () { return invoicingSubscriptionRecordViewReducer_1.fetchInvoicingSubscriptionDetail; } });
|
|
3017
3009
|
var invoicingSubscriptionRecordViewSelector_1 = require("./view/invoicing/invoicingSubscriptionRecordView/invoicingSubscriptionRecordViewSelector");
|
|
3018
3010
|
Object.defineProperty(exports, "getInvoicingSubscriptionById", { enumerable: true, get: function () { return invoicingSubscriptionRecordViewSelector_1.getInvoicingSubscriptionById; } });
|
|
3019
|
-
Object.defineProperty(exports, "getInvoicingSubscriptionRecord", { enumerable: true, get: function () { return invoicingSubscriptionRecordViewSelector_1.getInvoicingSubscriptionRecord; } });
|
|
3020
3011
|
// ── Invoicing: payments (transactions) ────────────────────────────────────────
|
|
3021
3012
|
var invoicingTransactionReducer_1 = require("./entity/invoicing/invoicingTransaction/invoicingTransactionReducer");
|
|
3022
3013
|
Object.defineProperty(exports, "removeInvoicingTransaction", { enumerable: true, get: function () { return invoicingTransactionReducer_1.removeInvoicingTransaction; } });
|
|
@@ -3084,8 +3075,6 @@ var couponSelector_1 = require("./entity/invoicing/coupon/couponSelector");
|
|
|
3084
3075
|
Object.defineProperty(exports, "getInvoicingCouponById", { enumerable: true, get: function () { return couponSelector_1.getInvoicingCouponById; } });
|
|
3085
3076
|
var invoicingCouponRecordViewReducer_1 = require("./view/invoicing/invoicingCouponRecordView/invoicingCouponRecordViewReducer");
|
|
3086
3077
|
Object.defineProperty(exports, "fetchInvoicingCouponDetail", { enumerable: true, get: function () { return invoicingCouponRecordViewReducer_1.fetchInvoicingCouponDetail; } });
|
|
3087
|
-
var invoicingCouponRecordViewSelector_1 = require("./view/invoicing/invoicingCouponRecordView/invoicingCouponRecordViewSelector");
|
|
3088
|
-
Object.defineProperty(exports, "getInvoicingCouponRecord", { enumerable: true, get: function () { return invoicingCouponRecordViewSelector_1.getInvoicingCouponRecord; } });
|
|
3089
3078
|
// ── Invoicing: dunning ────────────────────────────────────────────────────────
|
|
3090
3079
|
var dunningCaseReducer_1 = require("./entity/invoicing/dunningCase/dunningCaseReducer");
|
|
3091
3080
|
Object.defineProperty(exports, "removeInvoicingDunningCase", { enumerable: true, get: function () { return dunningCaseReducer_1.removeInvoicingDunningCase; } });
|
|
@@ -3133,8 +3122,6 @@ var invoicingCatalogListViewSelector_1 = require("./view/invoicing/invoicingCata
|
|
|
3133
3122
|
Object.defineProperty(exports, "getInvoicingCatalogListView", { enumerable: true, get: function () { return invoicingCatalogListViewSelector_1.getInvoicingCatalogListView; } });
|
|
3134
3123
|
var invoicingCatalogItemRecordViewReducer_1 = require("./view/invoicing/invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewReducer");
|
|
3135
3124
|
Object.defineProperty(exports, "fetchInvoicingCatalogItemDetail", { enumerable: true, get: function () { return invoicingCatalogItemRecordViewReducer_1.fetchInvoicingCatalogItemDetail; } });
|
|
3136
|
-
var invoicingCatalogItemRecordViewSelector_1 = require("./view/invoicing/invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewSelector");
|
|
3137
|
-
Object.defineProperty(exports, "getInvoicingCatalogItemRecord", { enumerable: true, get: function () { return invoicingCatalogItemRecordViewSelector_1.getInvoicingCatalogItemRecord; } });
|
|
3138
3125
|
var planSelector_1 = require("./entity/invoicing/plan/planSelector");
|
|
3139
3126
|
Object.defineProperty(exports, "getInvoicingPlanById", { enumerable: true, get: function () { return planSelector_1.getInvoicingPlanById; } });
|
|
3140
3127
|
var productSelector_1 = require("./entity/invoicing/product/productSelector");
|
|
@@ -31,6 +31,11 @@ export declare const getInvoicingApplicableCatalogItemOptions: (state: RootState
|
|
|
31
31
|
* the id/kind last saved — so the consumer wires a single selector.
|
|
32
32
|
*/
|
|
33
33
|
export interface InvoicingCatalogItemFormView extends SelectorView {
|
|
34
|
+
/**
|
|
35
|
+
* The in-flight lifecycle action (archive, activate, …) for this item, so the
|
|
36
|
+
* screen does not reach for the action slice itself.
|
|
37
|
+
*/
|
|
38
|
+
actionState: FetchStateAndError;
|
|
34
39
|
applicabilityValues: readonly string[];
|
|
35
40
|
applicableItemOptions: ApplicableCatalogItemOption[];
|
|
36
41
|
/** Lifecycle option lists, folded in from the record view. */
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getInvoicingCatalogItemFormView = exports.getInvoicingApplicableCatalogItemOptions = exports.getSavedInvoicingCatalogItemKind = exports.getSavedInvoicingCatalogItemId = exports.getEditInvoicingCatalogItemDetailViewState = void 0;
|
|
4
4
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
5
|
+
const catalogActionSelector_1 = require("../catalogAction/catalogActionSelector");
|
|
5
6
|
const planSelector_1 = require("../../../entity/invoicing/plan/planSelector");
|
|
6
7
|
const invoicingCatalogItemRecordViewSelector_1 = require("../invoicingCatalogItemRecordView/invoicingCatalogItemRecordViewSelector");
|
|
7
8
|
const invoicingConfigViewSelector_1 = require("../invoicingConfigView/invoicingConfigViewSelector");
|
|
@@ -45,6 +46,10 @@ exports.getInvoicingApplicableCatalogItemOptions = (0, toolkit_1.createSelector)
|
|
|
45
46
|
...listViewState.planIds,
|
|
46
47
|
...listViewState.productIds,
|
|
47
48
|
])));
|
|
49
|
+
const NOT_STARTED = {
|
|
50
|
+
error: undefined,
|
|
51
|
+
fetchState: 'Not-Started',
|
|
52
|
+
};
|
|
48
53
|
const getInvoicingCatalogItemFormView = (state, id) => {
|
|
49
54
|
const { editDraftById, error, fetchState, newItemDraft, savedItemId, savedKind, } = state.editInvoicingCatalogItemDetailViewState;
|
|
50
55
|
const plan = id != null ? (0, planSelector_1.getInvoicingPlanById)(state.invoicingPlanState, id) : undefined;
|
|
@@ -64,6 +69,7 @@ const getInvoicingCatalogItemFormView = (state, id) => {
|
|
|
64
69
|
// consulted when editing an existing item.
|
|
65
70
|
const recordView = id != null ? (0, invoicingCatalogItemRecordViewSelector_1.getInvoicingCatalogItemRecord)(state, 'plan', id) : undefined;
|
|
66
71
|
return {
|
|
72
|
+
actionState: id != null ? (0, catalogActionSelector_1.getInvoicingCatalogActionState)(id)(state) : NOT_STARTED,
|
|
67
73
|
catalogItemLifecycleActionOptions: recordView?.catalogItemLifecycleActionOptions ?? [],
|
|
68
74
|
catalogProductLifecycleActionOptions: recordView?.catalogProductLifecycleActionOptions ?? [],
|
|
69
75
|
recordState: {
|
package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewSelector.d.ts
CHANGED
|
@@ -5,6 +5,11 @@ import { InvoicingDiscountLifecycleActionOption, InvoicingFieldHelpByCode, Invoi
|
|
|
5
5
|
import { RootState } from '../../../rootStateTypes';
|
|
6
6
|
import { InvoicingCouponFormLocalData } from './editInvoicingCouponDetailViewState';
|
|
7
7
|
export interface EditInvoicingCouponDetailView extends SelectorView {
|
|
8
|
+
/**
|
|
9
|
+
* The in-flight lifecycle action (archive, activate, …) for this coupon, so
|
|
10
|
+
* the screen does not reach for the action slice itself.
|
|
11
|
+
*/
|
|
12
|
+
actionState: FetchStateAndError;
|
|
8
13
|
/** Config-owned; folded in so the screen reads one selector. */
|
|
9
14
|
configFetchState: FetchState;
|
|
10
15
|
discountLifecycleActionOptions: InvoicingDiscountLifecycleActionOption[];
|
|
@@ -22,11 +27,6 @@ export interface EditInvoicingCouponDetailView extends SelectorView {
|
|
|
22
27
|
coupon?: InvoicingCoupon;
|
|
23
28
|
savedCouponId?: ID;
|
|
24
29
|
}
|
|
25
|
-
/**
|
|
26
|
-
* Bundled view for the discount create/edit form: the save fetch state/error,
|
|
27
|
-
* the id of the coupon last saved, and — when a `couponId` is passed (edit
|
|
28
|
-
* mode) — the existing coupon entity to prefill the form.
|
|
29
|
-
*/
|
|
30
30
|
export declare const getEditInvoicingCouponDetailViewState: (state: RootState, couponId?: ID) => EditInvoicingCouponDetailView;
|
|
31
31
|
export interface InvoicingCouponFormView extends EditInvoicingCouponDetailView {
|
|
32
32
|
applyOnOptions: InvoicingFormOption[];
|
package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewSelector.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.getInvoicingCouponFormView = exports.getEditInvoicingCouponDetailViewSta
|
|
|
4
4
|
const couponSelector_1 = require("../../../entity/invoicing/coupon/couponSelector");
|
|
5
5
|
const invoicingCommonPayload_1 = require("../../../entity/invoicing/invoicingCommonPayload");
|
|
6
6
|
const invoicingConfigViewSelector_1 = require("../invoicingConfigView/invoicingConfigViewSelector");
|
|
7
|
+
const discountActionSelector_1 = require("../discountAction/discountActionSelector");
|
|
7
8
|
const invoicingCouponRecordViewSelector_1 = require("../invoicingCouponRecordView/invoicingCouponRecordViewSelector");
|
|
8
9
|
const editInvoicingCouponDetailViewState_1 = require("./editInvoicingCouponDetailViewState");
|
|
9
10
|
/**
|
|
@@ -11,6 +12,10 @@ const editInvoicingCouponDetailViewState_1 = require("./editInvoicingCouponDetai
|
|
|
11
12
|
* the id of the coupon last saved, and — when a `couponId` is passed (edit
|
|
12
13
|
* mode) — the existing coupon entity to prefill the form.
|
|
13
14
|
*/
|
|
15
|
+
const NOT_STARTED = {
|
|
16
|
+
error: undefined,
|
|
17
|
+
fetchState: 'Not-Started',
|
|
18
|
+
};
|
|
14
19
|
const getEditInvoicingCouponDetailViewState = (state, couponId) => {
|
|
15
20
|
const { error, fetchState, savedCouponId } = state.editInvoicingCouponDetailViewState;
|
|
16
21
|
const { discountLifecycleActionOptions, fetchState: configFetchState } = (0, invoicingConfigViewSelector_1.getInvoicingConfigView)(state);
|
|
@@ -18,6 +23,9 @@ const getEditInvoicingCouponDetailViewState = (state, couponId) => {
|
|
|
18
23
|
// consulted when editing an existing coupon.
|
|
19
24
|
const readView = couponId != null ? (0, invoicingCouponRecordViewSelector_1.getInvoicingCouponRecord)(state, couponId) : undefined;
|
|
20
25
|
return {
|
|
26
|
+
actionState: couponId != null
|
|
27
|
+
? (0, discountActionSelector_1.getInvoicingDiscountActionState)(couponId)(state)
|
|
28
|
+
: NOT_STARTED,
|
|
21
29
|
configFetchState,
|
|
22
30
|
discountLifecycleActionOptions,
|
|
23
31
|
fieldHelp: (0, invoicingConfigViewSelector_1.invoicingFieldHelpForGroup)(state, 'discount'),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ID } from '../../../commonStateTypes/common';
|
|
1
|
+
import { FetchStateAndError, ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { SelectorView } from '../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
3
3
|
import { InvoicingFieldHelpByCode, InvoicingNamedOption } from '../../../entity/invoicing/invoicingCommonPayload';
|
|
4
4
|
import { RootState } from '../../../rootStateTypes';
|
|
@@ -14,6 +14,10 @@ export interface InvoicingCustomerFormView extends SelectorView {
|
|
|
14
14
|
localData: InvoicingCustomerFormLocalData;
|
|
15
15
|
mode: 'create' | 'edit';
|
|
16
16
|
netTermDayOptions: InvoicingNamedOption[];
|
|
17
|
+
/** Plaid link-token fetch, folded in so the screen reads one selector. */
|
|
18
|
+
plaidTokenFetchState: FetchStateAndError;
|
|
19
|
+
/** Promotional-credit submit, folded in so the screen reads one selector. */
|
|
20
|
+
promotionalCreditSubmitState: FetchStateAndError;
|
|
17
21
|
/**
|
|
18
22
|
* The record and everything the detail page renders alongside it — invoices,
|
|
19
23
|
* payment methods, branding, Stripe state. Nested rather than flattened: it
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getInvoicingCustomerFormView = void 0;
|
|
4
4
|
const invoicingCustomerSelector_1 = require("../../../entity/invoicing/invoicingCustomer/invoicingCustomerSelector");
|
|
5
5
|
const addressViewSelector_1 = require("../../addressView/addressViewSelector");
|
|
6
|
+
const customerPaymentMethodSelector_1 = require("../customerPaymentMethod/customerPaymentMethodSelector");
|
|
6
7
|
const invoicingCustomerRecordViewSelector_1 = require("../invoicingCustomerRecordView/invoicingCustomerRecordViewSelector");
|
|
7
8
|
const invoicingConfigViewSelector_1 = require("../invoicingConfigView/invoicingConfigViewSelector");
|
|
8
9
|
const invoicingCustomerFormConfig_1 = require("./invoicingCustomerFormConfig");
|
|
@@ -33,6 +34,8 @@ const getInvoicingCustomerFormView = (state, invoicingCustomerID) => {
|
|
|
33
34
|
: undefined;
|
|
34
35
|
const { customerTypeOptions, netTermDayOptions, taxabilityOptions } = (0, invoicingConfigViewSelector_1.getInvoicingConfigView)(state);
|
|
35
36
|
return {
|
|
37
|
+
plaidTokenFetchState: (0, customerPaymentMethodSelector_1.getInvoicingPlaidLinkTokenFetchState)(state),
|
|
38
|
+
promotionalCreditSubmitState: state.invoicingPromotionalCreditActionState.submitFetchState,
|
|
36
39
|
record: (0, invoicingCustomerRecordViewSelector_1.getInvoicingCustomerRecord)(state, invoicingCustomerID ?? ''),
|
|
37
40
|
fieldHelp: (0, invoicingConfigViewSelector_1.invoicingFieldHelpForGroup)(state, 'customer'),
|
|
38
41
|
customerTypeOptions,
|
|
@@ -50,6 +50,10 @@ export interface InvoicingSubscriptionFormView extends SelectorView {
|
|
|
50
50
|
* which tracks the save. Folded in so a screen reads one selector.
|
|
51
51
|
*/
|
|
52
52
|
recordState: FetchStateAndError;
|
|
53
|
+
/** Config-owned edit/lifecycle rules, folded in so the screen reads one selector. */
|
|
54
|
+
subscriptionCommercialEditAllowedFromStatuses: string[];
|
|
55
|
+
subscriptionLifecycleActionOptions: InvoicingSubscriptionLifecycleActionOption[];
|
|
56
|
+
subscriptionMetadataEditAllowedFromStatuses: string[];
|
|
53
57
|
savedSubscriptionId?: ID;
|
|
54
58
|
shippingAddressLabel?: string;
|
|
55
59
|
subscription?: InvoicingSubscription;
|
|
@@ -57,6 +57,9 @@ const getInvoicingSubscriptionFormView = (state, invoicingSubscriptionID) => {
|
|
|
57
57
|
fetchState: 'Not-Started',
|
|
58
58
|
},
|
|
59
59
|
cancelReasonCodeOptions: (0, invoicingConfigViewSelector_1.getInvoicingConfigView)(state).subscriptionCancelReasonCodeOptions,
|
|
60
|
+
subscriptionCommercialEditAllowedFromStatuses: (0, invoicingConfigViewSelector_1.getInvoicingConfigView)(state).subscriptionCommercialEditAllowedFromStatuses,
|
|
61
|
+
subscriptionLifecycleActionOptions: (0, invoicingConfigViewSelector_1.getInvoicingConfigView)(state).subscriptionLifecycleActionOptions,
|
|
62
|
+
subscriptionMetadataEditAllowedFromStatuses: (0, invoicingConfigViewSelector_1.getInvoicingConfigView)(state).subscriptionMetadataEditAllowedFromStatuses,
|
|
60
63
|
recordState: {
|
|
61
64
|
error: recordView?.error,
|
|
62
65
|
fetchState: recordView?.fetchState ?? 'Not-Started',
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { FetchState, ID } from '../../../commonStateTypes/common';
|
|
2
|
-
import { SelectorView } from '../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
1
|
+
import { FetchState, FetchStateAndError, ID } from '../../../commonStateTypes/common';
|
|
3
2
|
import { InvoicingCatalogItemLifecycleAction, InvoicingCatalogLifecycleActionOption, InvoicingCatalogProductLifecycleAction, InvoicingFieldHelpByCode, InvoicingNamedOption, InvoicingNamedOptionsByKey } from '../../../entity/invoicing/invoicingCommonPayload';
|
|
4
3
|
import { InvoicingPlan } from '../../../entity/invoicing/plan/planState';
|
|
5
4
|
import { RootState } from '../../../rootStateTypes';
|
|
@@ -16,7 +15,7 @@ import { InvoicingCatalogItemKind } from './invoicingCatalogItemRecordViewState'
|
|
|
16
15
|
* `fetchState` because they track different requests — the screen gates a config
|
|
17
16
|
* refetch on the former while rendering off the latter.
|
|
18
17
|
*/
|
|
19
|
-
export interface InvoicingCatalogItemRecordView extends
|
|
18
|
+
export interface InvoicingCatalogItemRecordView extends FetchStateAndError {
|
|
20
19
|
catalogItemLifecycleActionOptions: InvoicingCatalogLifecycleActionOption<InvoicingCatalogItemLifecycleAction>[];
|
|
21
20
|
catalogProductLifecycleActionOptions: InvoicingCatalogLifecycleActionOption<InvoicingCatalogProductLifecycleAction>[];
|
|
22
21
|
configFetchState: FetchState;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ID } from '../../../commonStateTypes/common';
|
|
2
|
-
import { SelectorView } from '../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
1
|
+
import { FetchStateAndError, ID } from '../../../commonStateTypes/common';
|
|
3
2
|
import { InvoicingCoupon } from '../../../entity/invoicing/coupon/couponState';
|
|
4
3
|
import type { InvoicingFieldHelpByCode } from '../../../entity/invoicing/invoicingCommonPayload';
|
|
5
4
|
import { RootState } from '../../../rootStateTypes';
|
|
@@ -7,7 +6,7 @@ import { RootState } from '../../../rootStateTypes';
|
|
|
7
6
|
* Read-only view for the discount detail page: the coupon entity + its per-id
|
|
8
7
|
* fetch state. Lets the detail screen depend on this single read selector.
|
|
9
8
|
*/
|
|
10
|
-
export interface InvoicingCouponRecordView extends
|
|
9
|
+
export interface InvoicingCouponRecordView extends FetchStateAndError {
|
|
11
10
|
/**
|
|
12
11
|
* Backend help copy for this screen's field group, keyed by field code.
|
|
13
12
|
* Folded in here so the screen never reaches for the config view itself.
|
|
@@ -14,7 +14,6 @@ const getInvoicingCouponRecord = (state, id) => {
|
|
|
14
14
|
coupon: (0, couponSelector_1.getInvoicingCouponById)(state.invoicingCouponState, id),
|
|
15
15
|
fetchState: detail?.fetchState ?? 'Not-Started',
|
|
16
16
|
error: detail?.error,
|
|
17
|
-
version: 1.0,
|
|
18
17
|
};
|
|
19
18
|
};
|
|
20
19
|
exports.getInvoicingCouponRecord = getInvoicingCouponRecord;
|
package/lib/view/invoicing/invoicingCustomerRecordView/invoicingCustomerRecordViewSelector.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FetchStateAndError, ID } from '../../../commonStateTypes/common';
|
|
2
|
-
import { SelectorView } from '../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
3
2
|
import { InvoicingInvoice } from '../../../entity/invoicing/invoice/invoiceState';
|
|
4
3
|
import type { InvoicingFieldHelpByCode } from '../../../entity/invoicing/invoicingCommonPayload';
|
|
5
4
|
import { InvoicingCustomer, InvoicingCustomerPaymentMethod } from '../../../entity/invoicing/invoicingCustomer/invoicingCustomerState';
|
|
@@ -13,7 +12,7 @@ import { InvoicingSetupIntent } from '../customerPaymentMethod/customerPaymentMe
|
|
|
13
12
|
* whether Stripe is connected. Lets the detail screen depend on this single
|
|
14
13
|
* read selector.
|
|
15
14
|
*/
|
|
16
|
-
export interface InvoicingCustomerRecordView extends
|
|
15
|
+
export interface InvoicingCustomerRecordView extends FetchStateAndError {
|
|
17
16
|
/**
|
|
18
17
|
* Backend help copy for this screen's field group, keyed by field code.
|
|
19
18
|
* Folded in here so the screen never reaches for the config view itself.
|
package/lib/view/invoicing/invoicingCustomerRecordView/invoicingCustomerRecordViewSelector.js
CHANGED
|
@@ -35,7 +35,6 @@ const getInvoicingCustomerRecord = (state, invoicingCustomerID) => {
|
|
|
35
35
|
stripeConnected: (0, invoicingSettingsHelpers_1.isStripeConnectedFromSettings)(settings),
|
|
36
36
|
fetchState: invoicingCustomerDetail?.fetchState ?? 'Not-Started',
|
|
37
37
|
error: invoicingCustomerDetail?.error,
|
|
38
|
-
version: 1.0,
|
|
39
38
|
};
|
|
40
39
|
};
|
|
41
40
|
exports.getInvoicingCustomerRecord = getInvoicingCustomerRecord;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FetchStateAndError, ID } from '../../../commonStateTypes/common';
|
|
2
|
-
import { SelectorView } from '../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
3
2
|
import type { InvoicingFieldHelpByCode, InvoicingNamedOption } from '../../../entity/invoicing/invoicingCommonPayload';
|
|
4
3
|
import { InvoicingSubscription } from '../../../entity/invoicing/invoicingSubscription/invoicingSubscriptionState';
|
|
5
4
|
import { RootState } from '../../../rootStateTypes';
|
|
@@ -8,7 +7,7 @@ import { RootState } from '../../../rootStateTypes';
|
|
|
8
7
|
* fetch state, plus the per-subscription action run-state (cancel/pause/resume)
|
|
9
8
|
* folded in so the detail screen depends on this single read selector.
|
|
10
9
|
*/
|
|
11
|
-
export interface InvoicingSubscriptionRecordView extends
|
|
10
|
+
export interface InvoicingSubscriptionRecordView extends FetchStateAndError {
|
|
12
11
|
actionState: FetchStateAndError;
|
|
13
12
|
/** Cancel reasons from `/1.0/config`, so the dialog hardcodes nothing. */
|
|
14
13
|
cancelReasonCodeOptions: InvoicingNamedOption[];
|
|
@@ -15,7 +15,6 @@ const getInvoicingSubscriptionRecord = (state, invoicingSubscriptionID) => {
|
|
|
15
15
|
subscription: (0, exports.getInvoicingSubscriptionById)(state, invoicingSubscriptionID),
|
|
16
16
|
fetchState,
|
|
17
17
|
error,
|
|
18
|
-
version: 1.0,
|
|
19
18
|
};
|
|
20
19
|
};
|
|
21
20
|
exports.getInvoicingSubscriptionRecord = getInvoicingSubscriptionRecord;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.2.32-
|
|
3
|
+
"version": "5.2.32-betaAK2",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
@@ -33,44 +33,6 @@
|
|
|
33
33
|
"require": "./lib/view/*.js"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"scripts": {
|
|
37
|
-
"clean": "rimraf lib",
|
|
38
|
-
"test:typecheck": "echo 'Typechecking test files...' && NODE_OPTIONS=--max-old-space-size=4096 time tsc -p tsconfig.typecheck.json",
|
|
39
|
-
"test:typecheck-modified-files": "chmod +x ./scripts/tsc-modified-files.sh && SINCE_DAYS=30 ./scripts/tsc-modified-files.sh master tsconfig.typecheck.json",
|
|
40
|
-
"test:typecheck-mocks": "echo 'Typechecking mock files...' && NODE_OPTIONS=--max-old-space-size=4096 time tsc -p tsconfig.mocks.json",
|
|
41
|
-
"test:typecheck-mocks-modified-files": "chmod +x ./scripts/tsc-modified-files.sh && SINCE_DAYS=30 ./scripts/tsc-modified-files.sh master tsconfig.mocks.json",
|
|
42
|
-
"test": "pnpm lint-modified-files && pnpm test:typecheck-modified-files && pnpm test:typecheck-mocks-modified-files && vitest run --typecheck",
|
|
43
|
-
"test:full": "pnpm test:typecheck-modified-files && pnpm test:typecheck-mocks-modified-files && vitest run --typecheck",
|
|
44
|
-
"lint": "eslint . --ext .js,.jsx,.ts,.tsx --max-warnings 0 --fix",
|
|
45
|
-
"lint-modified-files": "chmod +x ./scripts/lint-modified-files.sh && ./scripts/lint-modified-files.sh",
|
|
46
|
-
"lint:fix-modified-files": "chmod +x ./scripts/lint-modified-files.sh && LINT_FIX=true ./scripts/lint-modified-files.sh",
|
|
47
|
-
"tsc-modified-files": "chmod +x ./scripts/tsc-modified-files.sh && ./scripts/tsc-modified-files.sh",
|
|
48
|
-
"typecheck": "tsc --noEmit",
|
|
49
|
-
"circular-dependency": "madge --circular --extensions ts ./src",
|
|
50
|
-
"circular-dependency-modified-files": "chmod +x ./scripts/circular-dependency-modified-files.sh && ./scripts/circular-dependency-modified-files.sh",
|
|
51
|
-
"build": "chmod +x ./scripts/run_build.sh && ./scripts/run_build.sh && rimraf \"lib/**/__mocks__\" \"lib/**/__testHelpers__\"",
|
|
52
|
-
"only-build": "eslint . --ext .js,.jsx,.ts,.tsx && time tsc && tsc -p tsconfig.esm.json && rimraf \"lib/**/__mocks__\" \"lib/**/__testHelpers__\"",
|
|
53
|
-
"only-build-dev": "eslint . --ext .js,.jsx,.ts,.tsx && time tsc -p tsconfig.dev.json && tsc -p tsconfig.esm.dev.json && rimraf \"lib/**/__mocks__\" \"lib/**/__testHelpers__\"",
|
|
54
|
-
"format": "prettier --write --ignore-unknown \"src/**/*\" && pnpm lint",
|
|
55
|
-
"format-watch": "bash ./scripts/run-format-watch.sh",
|
|
56
|
-
"check-version": "node ./scripts/check_version.js",
|
|
57
|
-
"prepublishOnly": "chmod +x ./scripts/branch_validation.sh && ./scripts/branch_validation.sh && pnpm update-slack-group-topic && pnpm run check-version && pnpm clean && pnpm build",
|
|
58
|
-
"version": "git add -A src",
|
|
59
|
-
"postversion": "git push && git push --tags",
|
|
60
|
-
"check-dependencies": "node ./scripts/check_dependencies.js",
|
|
61
|
-
"clean-overrides": "node ./scripts/clean_overrides.js",
|
|
62
|
-
"create-or-update-release-branch": "chmod +x ./scripts/create_or_update_release_branch.sh && ./scripts/create_or_update_release_branch.sh",
|
|
63
|
-
"bump-versions-master": "chmod +x ./scripts/bump_versions_master.sh && ./scripts/bump_versions_master.sh",
|
|
64
|
-
"bump-versions-beta": "chmod +x ./scripts/bump_versions_beta.sh && ./scripts/bump_versions_beta.sh",
|
|
65
|
-
"bump-update-web-app-cockpit-beta": "chmod +x ./scripts/bump_and_update_web_app_ui_beta.sh && ./scripts/bump_and_update_web_app_ui_beta.sh",
|
|
66
|
-
"send-release-notes": "chmod +x ./scripts/send_release_notes.sh && ./scripts/send_release_notes.sh",
|
|
67
|
-
"update-slack-group-topic": "chmod +x ./scripts/update-slack-group-topic.sh && ./scripts/update-slack-group-topic.sh",
|
|
68
|
-
"build-beta-and-copy": "chmod +x ./scripts/build_and_copy.sh && ./scripts/build_and_copy.sh",
|
|
69
|
-
"pr-approvals-update": "chmod +x ./scripts/pr_approvals.sh && ./scripts/pr_approvals.sh",
|
|
70
|
-
"raise-pr-automation": "chmod +x ./scripts/raise_pr_automation.sh && ./scripts/raise_pr_automation.sh",
|
|
71
|
-
"test:file": "bash ./scripts/test-file.sh",
|
|
72
|
-
"find-unused-code": "knip"
|
|
73
|
-
},
|
|
74
36
|
"files": [
|
|
75
37
|
"lib/**/*"
|
|
76
38
|
],
|
|
@@ -138,36 +100,41 @@
|
|
|
138
100
|
"dayjs": "^1.10.7",
|
|
139
101
|
"url-parse": "^1.5.10"
|
|
140
102
|
},
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
103
|
+
"scripts": {
|
|
104
|
+
"clean": "rimraf lib",
|
|
105
|
+
"test:typecheck": "echo 'Typechecking test files...' && NODE_OPTIONS=--max-old-space-size=4096 time tsc -p tsconfig.typecheck.json",
|
|
106
|
+
"test:typecheck-modified-files": "chmod +x ./scripts/tsc-modified-files.sh && SINCE_DAYS=30 ./scripts/tsc-modified-files.sh master tsconfig.typecheck.json",
|
|
107
|
+
"test:typecheck-mocks": "echo 'Typechecking mock files...' && NODE_OPTIONS=--max-old-space-size=4096 time tsc -p tsconfig.mocks.json",
|
|
108
|
+
"test:typecheck-mocks-modified-files": "chmod +x ./scripts/tsc-modified-files.sh && SINCE_DAYS=30 ./scripts/tsc-modified-files.sh master tsconfig.mocks.json",
|
|
109
|
+
"test": "pnpm lint-modified-files && pnpm test:typecheck-modified-files && pnpm test:typecheck-mocks-modified-files && vitest run --typecheck",
|
|
110
|
+
"test:full": "pnpm test:typecheck-modified-files && pnpm test:typecheck-mocks-modified-files && vitest run --typecheck",
|
|
111
|
+
"lint": "eslint . --ext .js,.jsx,.ts,.tsx --max-warnings 0 --fix",
|
|
112
|
+
"lint-modified-files": "chmod +x ./scripts/lint-modified-files.sh && ./scripts/lint-modified-files.sh",
|
|
113
|
+
"lint:fix-modified-files": "chmod +x ./scripts/lint-modified-files.sh && LINT_FIX=true ./scripts/lint-modified-files.sh",
|
|
114
|
+
"tsc-modified-files": "chmod +x ./scripts/tsc-modified-files.sh && ./scripts/tsc-modified-files.sh",
|
|
115
|
+
"typecheck": "tsc --noEmit",
|
|
116
|
+
"circular-dependency": "madge --circular --extensions ts ./src",
|
|
117
|
+
"circular-dependency-modified-files": "chmod +x ./scripts/circular-dependency-modified-files.sh && ./scripts/circular-dependency-modified-files.sh",
|
|
118
|
+
"build": "chmod +x ./scripts/run_build.sh && ./scripts/run_build.sh && rimraf \"lib/**/__mocks__\" \"lib/**/__testHelpers__\"",
|
|
119
|
+
"only-build": "eslint . --ext .js,.jsx,.ts,.tsx && time tsc && tsc -p tsconfig.esm.json && rimraf \"lib/**/__mocks__\" \"lib/**/__testHelpers__\"",
|
|
120
|
+
"only-build-dev": "eslint . --ext .js,.jsx,.ts,.tsx && time tsc -p tsconfig.dev.json && tsc -p tsconfig.esm.dev.json && rimraf \"lib/**/__mocks__\" \"lib/**/__testHelpers__\"",
|
|
121
|
+
"format": "prettier --write --ignore-unknown \"src/**/*\" && pnpm lint",
|
|
122
|
+
"format-watch": "bash ./scripts/run-format-watch.sh",
|
|
123
|
+
"check-version": "node ./scripts/check_version.js",
|
|
124
|
+
"version": "git add -A src",
|
|
125
|
+
"postversion": "git push && git push --tags",
|
|
126
|
+
"check-dependencies": "node ./scripts/check_dependencies.js",
|
|
127
|
+
"clean-overrides": "node ./scripts/clean_overrides.js",
|
|
128
|
+
"create-or-update-release-branch": "chmod +x ./scripts/create_or_update_release_branch.sh && ./scripts/create_or_update_release_branch.sh",
|
|
129
|
+
"bump-versions-master": "chmod +x ./scripts/bump_versions_master.sh && ./scripts/bump_versions_master.sh",
|
|
130
|
+
"bump-versions-beta": "chmod +x ./scripts/bump_versions_beta.sh && ./scripts/bump_versions_beta.sh",
|
|
131
|
+
"bump-update-web-app-cockpit-beta": "chmod +x ./scripts/bump_and_update_web_app_ui_beta.sh && ./scripts/bump_and_update_web_app_ui_beta.sh",
|
|
132
|
+
"send-release-notes": "chmod +x ./scripts/send_release_notes.sh && ./scripts/send_release_notes.sh",
|
|
133
|
+
"update-slack-group-topic": "chmod +x ./scripts/update-slack-group-topic.sh && ./scripts/update-slack-group-topic.sh",
|
|
134
|
+
"build-beta-and-copy": "chmod +x ./scripts/build_and_copy.sh && ./scripts/build_and_copy.sh",
|
|
135
|
+
"pr-approvals-update": "chmod +x ./scripts/pr_approvals.sh && ./scripts/pr_approvals.sh",
|
|
136
|
+
"raise-pr-automation": "chmod +x ./scripts/raise_pr_automation.sh && ./scripts/raise_pr_automation.sh",
|
|
137
|
+
"test:file": "bash ./scripts/test-file.sh",
|
|
138
|
+
"find-unused-code": "knip"
|
|
172
139
|
}
|
|
173
|
-
}
|
|
140
|
+
}
|