@socotra/ec-react-utils 2.21.0-next.1 → 2.21.0-next.2

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/README.md CHANGED
@@ -73,6 +73,7 @@ Follow instructions in the `ec-react/packages/docs/README.md` file to build the
73
73
  | `extractElementsFromTransactionSegment` | Extracts all elements from a transaction segment's exposures. | `Element[]` |
74
74
  | `extractProductDataModel` | Extracts the data model for a specific product from a policy or quote. | `object` or `undefined` |
75
75
  | `extractProductElements` | Extracts all elements associated with a product from a policy or quote. | `Element[]` |
76
+ | `shouldEvaluateConstraints` | Checks if the constraints should be evaluated based on the original and new data. | `boolean` |
76
77
 
77
78
  ### Default Value Getters
78
79
 
package/dist/index.d.ts CHANGED
@@ -595,6 +595,8 @@ export declare type QuoteRequestAdvancedFields = z.infer<typeof advancedFieldSch
595
595
  */
596
596
  export declare type QuoteRequestDefaultFields = z.infer<typeof defaultFieldSchema>;
597
597
 
598
+ export declare const shouldEvaluateConstraints: (data: Record<string, unknown>, localData: Record<string, unknown>, constraintFieldNames: string[]) => boolean;
599
+
598
600
  /**
599
601
  * The function `splitInputAndQuantifier` takes a string input, removes certain characters from it, and
600
602
  * extracts a quantifier if present.