@socotra/ec-react-utils 2.3.0-next.3 → 2.3.0-next.4

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 CHANGED
@@ -76,6 +76,28 @@ export declare const extractElementFromQuote: (quote: QuoteResponse, elementLoca
76
76
  } & any)[];
77
77
  });
78
78
 
79
+ export declare const extractElementsFromQuote: (elements: Array<ElementResponse>, elementType: string) => ({
80
+ locator: string;
81
+ type: string;
82
+ staticLocator: string;
83
+ data?: Record<string, any> | undefined;
84
+ coverageTerms?: Record<string, string> | undefined;
85
+ rootLocator?: string | undefined;
86
+ tenantLocator?: string | undefined;
87
+ parentLocator?: string | undefined;
88
+ } & {
89
+ elements?: ({
90
+ locator: string;
91
+ type: string;
92
+ staticLocator: string;
93
+ data?: Record<string, any> | undefined;
94
+ coverageTerms?: Record<string, string> | undefined;
95
+ rootLocator?: string | undefined;
96
+ tenantLocator?: string | undefined;
97
+ parentLocator?: string | undefined;
98
+ } & any)[];
99
+ })[];
100
+
79
101
  /**
80
102
  * The function `extractProductDataModel` extracts product data model based on the product name from a
81
103
  * given data model.
@@ -98,9 +120,9 @@ export declare const extractProductDataModel: ({ dataModel, element: { productNa
98
120
  * elements related to coverages, exposures, policy lines, and exposure groups that are available based
99
121
  * on the provided `dataModel` and `productDataModel`.
100
122
  */
101
- export declare const extractProductElements: ({ dataModel, productDataModel, }: {
123
+ export declare const extractProductElements: ({ dataModel, contents, }: {
102
124
  dataModel: DataModel;
103
- productDataModel: ProductConfig;
125
+ contents: string[];
104
126
  }) => ProductElementMap;
105
127
 
106
128
  /**