@socotra/ec-react-utils 2.3.0-next.6 → 2.3.0-next.7
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 +5 -16
- package/dist/index.es.js +269 -276
- 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
|
@@ -25,7 +25,7 @@ declare interface DataModelToJsonSchemaProps {
|
|
|
25
25
|
data: FieldConfigRecord;
|
|
26
26
|
dataTypes?: DataTypeConfigRecord;
|
|
27
27
|
scope: 'P' | 'Q';
|
|
28
|
-
rootDisplayName
|
|
28
|
+
rootDisplayName?: string;
|
|
29
29
|
account?: AccountResponse;
|
|
30
30
|
quote?: QuoteResponse;
|
|
31
31
|
element?: ElementResponse;
|
|
@@ -35,8 +35,6 @@ declare interface DataModelToJsonSchemaProps {
|
|
|
35
35
|
* The function `extractElementDataModel` extracts element data model based on a given quote, data
|
|
36
36
|
* model, and element locator.
|
|
37
37
|
* @param - - `quote`: A QuoteResponse object containing information about a quote.
|
|
38
|
-
* @param - - `dataModel`: A DataModel object containing information about a data model.
|
|
39
|
-
* @param - - `elementLocator`: A string containing the element locator.
|
|
40
38
|
* @returns The function `extractElementDataModel` returns either an `ElementConfig` object or `false`
|
|
41
39
|
* based on the provided parameters and data model.
|
|
42
40
|
*/
|
|
@@ -46,19 +44,6 @@ export declare const extractElementDataModel: ({ dataModel, quote, elementLocato
|
|
|
46
44
|
elementLocator: string;
|
|
47
45
|
}) => ElementConfig | false;
|
|
48
46
|
|
|
49
|
-
/**
|
|
50
|
-
* The function `extractElementDataModelFromType` extracts element data model given a data model and
|
|
51
|
-
* element type.
|
|
52
|
-
* @param - - `dataModel`: A DataModel object containing information about a data model.
|
|
53
|
-
* @param - - `elementType`: A string containing the element type.
|
|
54
|
-
* @returns The function `extractElementDataModelFromType` returns either an `ElementConfig` object or `false`
|
|
55
|
-
* based on the provided parameters and data model.
|
|
56
|
-
*/
|
|
57
|
-
export declare const extractElementDataModelFromType: ({ dataModel, elementType, }: {
|
|
58
|
-
dataModel: DataModel;
|
|
59
|
-
elementType: string;
|
|
60
|
-
}) => ElementConfig | false;
|
|
61
|
-
|
|
62
47
|
/**
|
|
63
48
|
* The function `extractElementFromQuote` takes a `QuoteResponse` object and an element locator string,
|
|
64
49
|
* and returns the element with the matching locator from the quote or its nested elements.
|
|
@@ -78,6 +63,7 @@ export declare const extractElementFromQuote: (quote: QuoteResponse, elementLoca
|
|
|
78
63
|
rootLocator?: string | undefined;
|
|
79
64
|
tenantLocator?: string | undefined;
|
|
80
65
|
parentLocator?: string | undefined;
|
|
66
|
+
originalEffectiveTime?: string | undefined;
|
|
81
67
|
} & {
|
|
82
68
|
elements?: ({
|
|
83
69
|
locator: string;
|
|
@@ -88,6 +74,7 @@ export declare const extractElementFromQuote: (quote: QuoteResponse, elementLoca
|
|
|
88
74
|
rootLocator?: string | undefined;
|
|
89
75
|
tenantLocator?: string | undefined;
|
|
90
76
|
parentLocator?: string | undefined;
|
|
77
|
+
originalEffectiveTime?: string | undefined;
|
|
91
78
|
} & any)[];
|
|
92
79
|
});
|
|
93
80
|
|
|
@@ -100,6 +87,7 @@ export declare const extractElementsFromQuote: (elements: Array<ElementResponse>
|
|
|
100
87
|
rootLocator?: string | undefined;
|
|
101
88
|
tenantLocator?: string | undefined;
|
|
102
89
|
parentLocator?: string | undefined;
|
|
90
|
+
originalEffectiveTime?: string | undefined;
|
|
103
91
|
} & {
|
|
104
92
|
elements?: ({
|
|
105
93
|
locator: string;
|
|
@@ -110,6 +98,7 @@ export declare const extractElementsFromQuote: (elements: Array<ElementResponse>
|
|
|
110
98
|
rootLocator?: string | undefined;
|
|
111
99
|
tenantLocator?: string | undefined;
|
|
112
100
|
parentLocator?: string | undefined;
|
|
101
|
+
originalEffectiveTime?: string | undefined;
|
|
113
102
|
} & any)[];
|
|
114
103
|
})[];
|
|
115
104
|
|