@socotra/ec-react-utils 2.2.6-alpha.0 → 2.3.0-next.0
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/dist/index.d.ts +9 -8
- package/dist/index.es.js +321 -320
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -29,8 +29,8 @@ export declare const extractElementDataModel: ({ dataModel, quote, elementLocato
|
|
|
29
29
|
}) => ElementConfig | false;
|
|
30
30
|
|
|
31
31
|
export declare const extractElementFromQuote: (quote: QuoteResponse, elementLocator: string) => false | ({
|
|
32
|
-
type: string;
|
|
33
32
|
locator: string;
|
|
33
|
+
type: string;
|
|
34
34
|
staticLocator: string;
|
|
35
35
|
data?: Record<string, any> | undefined;
|
|
36
36
|
coverageTerms?: Record<string, string> | undefined;
|
|
@@ -39,8 +39,8 @@ export declare const extractElementFromQuote: (quote: QuoteResponse, elementLoca
|
|
|
39
39
|
parentLocator?: string | undefined;
|
|
40
40
|
} & {
|
|
41
41
|
elements?: ({
|
|
42
|
-
type: string;
|
|
43
42
|
locator: string;
|
|
43
|
+
type: string;
|
|
44
44
|
staticLocator: string;
|
|
45
45
|
data?: Record<string, any> | undefined;
|
|
46
46
|
coverageTerms?: Record<string, string> | undefined;
|
|
@@ -64,7 +64,7 @@ export declare const extractProductElements: ({ dataModel, productDataModel, }:
|
|
|
64
64
|
|
|
65
65
|
export declare const getDefaultElementValues: (element: ElementResponse) => Partial<ElementResponse>;
|
|
66
66
|
|
|
67
|
-
export declare const getDefaultQuoteValues: (quote: QuoteResponse) => {
|
|
67
|
+
export declare const getDefaultQuoteValues: (quote: QuoteResponse, productModel: ProductConfig, dataModel: DataModel) => {
|
|
68
68
|
default: {
|
|
69
69
|
expirationTime?: string | undefined;
|
|
70
70
|
endTime?: string | undefined;
|
|
@@ -73,10 +73,11 @@ export declare const getDefaultQuoteValues: (quote: QuoteResponse) => {
|
|
|
73
73
|
advanced: {
|
|
74
74
|
currency: string | undefined;
|
|
75
75
|
timezone: string | undefined;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
durationBasis:
|
|
76
|
+
billingLevel: string | undefined;
|
|
77
|
+
billingTrigger: string | undefined;
|
|
78
|
+
durationBasis: string | undefined;
|
|
79
79
|
delinquencyPlanName: string | undefined;
|
|
80
|
+
autoRenewalPlanName: string | undefined;
|
|
80
81
|
};
|
|
81
82
|
};
|
|
82
83
|
|
|
@@ -138,16 +139,16 @@ export declare function retrieveDataModelFromElement(element: ElementResponse, d
|
|
|
138
139
|
abstract?: boolean | undefined;
|
|
139
140
|
extend?: string | undefined;
|
|
140
141
|
data?: Record<string, {
|
|
142
|
+
options?: string[] | undefined;
|
|
143
|
+
type?: string | undefined;
|
|
141
144
|
displayName?: string | undefined;
|
|
142
145
|
defaultValue?: string | undefined;
|
|
143
|
-
type?: string | undefined;
|
|
144
146
|
minLength?: number | undefined;
|
|
145
147
|
maxLength?: number | undefined;
|
|
146
148
|
regex?: string | undefined;
|
|
147
149
|
min?: string | undefined;
|
|
148
150
|
multiline?: boolean | undefined;
|
|
149
151
|
max?: string | undefined;
|
|
150
|
-
options?: string[] | undefined;
|
|
151
152
|
overrides?: string | undefined;
|
|
152
153
|
scope?: string | undefined;
|
|
153
154
|
inherited?: boolean | undefined;
|