@socotra/ec-react-utils 2.6.3-next.0 → 2.6.3-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/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { AccountResponse } from '@socotra/ec-react-schemas';
2
+ import { ConstraintEvaluationResponse } from '@socotra/ec-react-schemas';
2
3
  import { CoverageTermsConfigRecord } from '@socotra/ec-react-schemas';
3
4
  import { DataModel } from '@socotra/ec-react-schemas';
4
5
  import { DataTypeConfigRecord } from '@socotra/ec-react-schemas';
@@ -11,6 +12,7 @@ import { ModifyChangeInstructionCreateRequest } from '@socotra/ec-react-schemas'
11
12
  import { ParamsChangeInstructionCreateRequest } from '@socotra/ec-react-schemas';
12
13
  import { ProductConfig } from '@socotra/ec-react-schemas';
13
14
  import { Quantifiers } from '@socotra/ec-react-schemas';
15
+ import { QuoteDependencyMapResponse } from '@socotra/ec-react-schemas';
14
16
  import { QuoteRequest } from '@socotra/ec-react-schemas';
15
17
  import { QuoteResponse } from '@socotra/ec-react-schemas';
16
18
  import { SegmentResponse } from '@socotra/ec-react-schemas';
@@ -34,6 +36,8 @@ export declare const dataModelToJSONSchema: (args: DataModelToJsonSchemaProps) =
34
36
  declare interface DataModelToJsonSchemaProps {
35
37
  data: FieldConfigRecord;
36
38
  dataTypes?: DataTypeConfigRecord;
39
+ evaluatedConstraints?: ConstraintEvaluationResponse;
40
+ constraintDependencyMap?: QuoteDependencyMapResponse;
37
41
  scope: Array<'P' | 'Q' | 'QQ'>;
38
42
  rootDisplayName?: string;
39
43
  account?: AccountResponse;
@@ -370,6 +374,12 @@ export declare const getElementTransactionUpdateRequestFromFormData: ({ data, el
370
374
  setData?: Record<string, unknown> | undefined;
371
375
  };
372
376
 
377
+ export declare const getEvaluatedConstraintsRequest: ({ dependencyMap, locator, data, }: {
378
+ dependencyMap: QuoteDependencyMapResponse;
379
+ data: any;
380
+ locator: string;
381
+ }) => Record<string, Record<string, Record<string, string | Record<string, string>>>>;
382
+
373
383
  export declare const getModifyChangeInstructionCreateRequestFromFormData: ({ data, transactionSnapshot, staticLocator, }: TransactionFormData_2) => {
374
384
  staticLocator: string;
375
385
  action: "modify";