@zeniai/client-epic-state 5.1.97-betaAK0 → 5.1.97-betaAK1
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/view/invoicing/invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewSelector.js +5 -1
- package/lib/esm/view/invoicing/settingsView/settingsViewSelector.js +1 -0
- package/lib/view/invoicing/invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewSelector.d.ts +9 -1
- package/lib/view/invoicing/invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewSelector.js +5 -1
- package/lib/view/invoicing/settingsView/settingsViewSelector.d.ts +1 -0
- package/lib/view/invoicing/settingsView/settingsViewSelector.js +1 -0
- package/package.json +1 -1
|
@@ -2,13 +2,17 @@ import { getInvoicingPlanById } from '../../../entity/invoicing/plan/planSelecto
|
|
|
2
2
|
import { getInvoicingConfigView } from '../invoicingConfigView/invoicingConfigViewSelector';
|
|
3
3
|
export const getInvoicingCatalogItemDetail = (state, _kind, id) => {
|
|
4
4
|
const { error, fetchState } = state.invoicingCatalogItemDetailViewState;
|
|
5
|
-
const { catalogItemLifecycleActionOptions, catalogProductLifecycleActionOptions, catalogTierTypeOptionsByPricingModel, fetchState: configFetchState, } = getInvoicingConfigView(state);
|
|
5
|
+
const { billingPeriodUnitOptions, catalogItemLifecycleActionOptions, catalogItemTypeOptions, catalogProductLifecycleActionOptions, catalogTierTypeOptionsByPricingModel, catalogTrialEndActionOptions, catalogTrialUnitOptions, fetchState: configFetchState, } = getInvoicingConfigView(state);
|
|
6
6
|
return {
|
|
7
7
|
catalogItemLifecycleActionOptions,
|
|
8
8
|
catalogProductLifecycleActionOptions,
|
|
9
9
|
catalogTierTypeOptionsByPricingModel,
|
|
10
10
|
configFetchState,
|
|
11
|
+
periodUnitOptions: billingPeriodUnitOptions,
|
|
11
12
|
plan: getInvoicingPlanById(state.invoicingPlanState, id),
|
|
13
|
+
trialEndActionOptions: catalogTrialEndActionOptions,
|
|
14
|
+
trialUnitOptions: catalogTrialUnitOptions,
|
|
15
|
+
typeOptions: catalogItemTypeOptions,
|
|
12
16
|
fetchState,
|
|
13
17
|
error,
|
|
14
18
|
version: 1.0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FetchState, ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { SelectorView } from '../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
3
|
-
import { InvoicingCatalogItemLifecycleAction, InvoicingCatalogLifecycleActionOption, InvoicingCatalogProductLifecycleAction, InvoicingNamedOptionsByKey } from '../../../entity/invoicing/invoicingCommonPayload';
|
|
3
|
+
import { InvoicingCatalogItemLifecycleAction, InvoicingCatalogLifecycleActionOption, InvoicingCatalogProductLifecycleAction, InvoicingNamedOption, InvoicingNamedOptionsByKey } from '../../../entity/invoicing/invoicingCommonPayload';
|
|
4
4
|
import { InvoicingPlan } from '../../../entity/invoicing/plan/planState';
|
|
5
5
|
import { RootState } from '../../../reducer';
|
|
6
6
|
import { InvoicingCatalogItemKind } from './invoicingCatalogItemDetailViewState';
|
|
@@ -20,6 +20,14 @@ export interface InvoicingCatalogItemDetailView extends SelectorView {
|
|
|
20
20
|
catalogItemLifecycleActionOptions: InvoicingCatalogLifecycleActionOption<InvoicingCatalogItemLifecycleAction>[];
|
|
21
21
|
catalogProductLifecycleActionOptions: InvoicingCatalogLifecycleActionOption<InvoicingCatalogProductLifecycleAction>[];
|
|
22
22
|
configFetchState: FetchState;
|
|
23
|
+
/**
|
|
24
|
+
* Config option lists the detail page's inline pricing editor renders, so the
|
|
25
|
+
* screen reads them off this view instead of `getInvoicingConfigView`.
|
|
26
|
+
*/
|
|
27
|
+
periodUnitOptions: InvoicingNamedOption[];
|
|
28
|
+
trialEndActionOptions: InvoicingNamedOption[];
|
|
29
|
+
trialUnitOptions: InvoicingNamedOption[];
|
|
30
|
+
typeOptions: InvoicingNamedOption[];
|
|
23
31
|
catalogTierTypeOptionsByPricingModel?: InvoicingNamedOptionsByKey;
|
|
24
32
|
plan?: InvoicingPlan;
|
|
25
33
|
}
|
package/lib/view/invoicing/invoicingCatalogItemDetailView/invoicingCatalogItemDetailViewSelector.js
CHANGED
|
@@ -5,13 +5,17 @@ const planSelector_1 = require("../../../entity/invoicing/plan/planSelector");
|
|
|
5
5
|
const invoicingConfigViewSelector_1 = require("../invoicingConfigView/invoicingConfigViewSelector");
|
|
6
6
|
const getInvoicingCatalogItemDetail = (state, _kind, id) => {
|
|
7
7
|
const { error, fetchState } = state.invoicingCatalogItemDetailViewState;
|
|
8
|
-
const { catalogItemLifecycleActionOptions, catalogProductLifecycleActionOptions, catalogTierTypeOptionsByPricingModel, fetchState: configFetchState, } = (0, invoicingConfigViewSelector_1.getInvoicingConfigView)(state);
|
|
8
|
+
const { billingPeriodUnitOptions, catalogItemLifecycleActionOptions, catalogItemTypeOptions, catalogProductLifecycleActionOptions, catalogTierTypeOptionsByPricingModel, catalogTrialEndActionOptions, catalogTrialUnitOptions, fetchState: configFetchState, } = (0, invoicingConfigViewSelector_1.getInvoicingConfigView)(state);
|
|
9
9
|
return {
|
|
10
10
|
catalogItemLifecycleActionOptions,
|
|
11
11
|
catalogProductLifecycleActionOptions,
|
|
12
12
|
catalogTierTypeOptionsByPricingModel,
|
|
13
13
|
configFetchState,
|
|
14
|
+
periodUnitOptions: billingPeriodUnitOptions,
|
|
14
15
|
plan: (0, planSelector_1.getInvoicingPlanById)(state.invoicingPlanState, id),
|
|
16
|
+
trialEndActionOptions: catalogTrialEndActionOptions,
|
|
17
|
+
trialUnitOptions: catalogTrialUnitOptions,
|
|
18
|
+
typeOptions: catalogItemTypeOptions,
|
|
15
19
|
fetchState,
|
|
16
20
|
error,
|
|
17
21
|
version: 1.0,
|
|
@@ -49,6 +49,7 @@ export interface InvoicingSettingsHubView {
|
|
|
49
49
|
isEnablingInvoicing: boolean;
|
|
50
50
|
isQboConfigured: boolean;
|
|
51
51
|
isStripeConnected: boolean;
|
|
52
|
+
status: string | undefined;
|
|
52
53
|
}
|
|
53
54
|
/**
|
|
54
55
|
* The settings hub's composite of everything it derives from the store: whether
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.1.97-
|
|
3
|
+
"version": "5.1.97-betaAK1",
|
|
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",
|