@socotra/ec-react-utils 2.6.2 → 2.6.3-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 CHANGED
@@ -10,6 +10,7 @@ import { JsonSchema7 } from '@jsonforms/core';
10
10
  import { ModifyChangeInstructionCreateRequest } from '@socotra/ec-react-schemas';
11
11
  import { ParamsChangeInstructionCreateRequest } from '@socotra/ec-react-schemas';
12
12
  import { ProductConfig } from '@socotra/ec-react-schemas';
13
+ import { Quantifiers } from '@socotra/ec-react-schemas';
13
14
  import { QuoteRequest } from '@socotra/ec-react-schemas';
14
15
  import { QuoteResponse } from '@socotra/ec-react-schemas';
15
16
  import { SegmentResponse } from '@socotra/ec-react-schemas';
@@ -256,7 +257,12 @@ export declare const extractProductDataModel: ({ dataModel, element: { productNa
256
257
  * on the provided `dataModel` and `productDataModel`.
257
258
  */
258
259
  export declare const extractProductElements: ({ dataModel, contents, }: {
259
- dataModel: DataModel;
260
+ dataModel: {
261
+ exposures?: DataModel["exposures"];
262
+ coverages?: DataModel["coverages"];
263
+ policyLines?: DataModel["policyLines"];
264
+ exposureGroups?: DataModel["exposures"];
265
+ };
260
266
  contents: string[];
261
267
  }) => ProductElementMap;
262
268
 
@@ -397,7 +403,9 @@ export declare const getQuoteRequest: ({ data }: QuoteFormData) => QuoteRequest;
397
403
  */
398
404
  export declare function getRemoveDataFieldValues(originalObj: AnyObject, modifiedObj: AnyObject): AnyObject;
399
405
 
400
- declare type ProductElement = Record<string, ElementConfig>;
406
+ declare type ProductElement = Record<string, ElementConfig & {
407
+ quantifier: Quantifiers;
408
+ }>;
401
409
 
402
410
  declare interface ProductElementMap {
403
411
  coverages: ProductElement;