@socotra/ec-react-utils 2.23.1-next.0 → 2.23.1-next.1
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 +1 -0
- package/dist/index.d.ts +12 -1
- package/dist/index.es.js +14907 -12498
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -87,6 +87,7 @@ Follow instructions in the `ec-react/packages/docs/README.md` file to build the
|
|
|
87
87
|
| `getDefaultInitializedTransactionValues` | Generates default values for an initialized transaction form. | `object` |
|
|
88
88
|
| `getDefaultPolicyValues` | Generates default values for a new policy. | `object` |
|
|
89
89
|
| `getDefaultQuoteValues` | Generates default values for a new quote. | `object` |
|
|
90
|
+
| `getCoverageTermFields` | Generates a JsonSchema for a coverage term field. | `object` |
|
|
90
91
|
|
|
91
92
|
### API Request Builders
|
|
92
93
|
|
package/dist/index.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ import { QuoteRequest } from '@socotra/ec-react-schemas';
|
|
|
26
26
|
import { QuoteResponse } from '@socotra/ec-react-schemas';
|
|
27
27
|
import { SegmentResponse } from '@socotra/ec-react-schemas';
|
|
28
28
|
import { TransactionSnapshotResponse } from '@socotra/ec-react-schemas';
|
|
29
|
-
import { z } from 'zod';
|
|
29
|
+
import { z } from 'zod/v3';
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* The type `QuoteRequestAdvancedFields` is a zod infererred type that represents the advanced fields of a quote request.
|
|
@@ -348,6 +348,15 @@ export declare function getAccountRequest(params: {
|
|
|
348
348
|
account?: undefined;
|
|
349
349
|
}): AccountCreateRequest;
|
|
350
350
|
|
|
351
|
+
/**
|
|
352
|
+
* Generates JSON schema fields for coverage terms based on the provided configuration.
|
|
353
|
+
* @param coverageTerms - Array of coverage term strings
|
|
354
|
+
* @param coverageTermDataModel - Configuration record for coverage terms
|
|
355
|
+
* @param coverageTermsTitle - Optional title for the coverage terms section
|
|
356
|
+
* @returns JSON schema object for coverage term fields
|
|
357
|
+
*/
|
|
358
|
+
export declare const getCoverageTermFields: (coverageTerms: string[], coverageTermDataModel?: CoverageTermsConfigRecord, coverageTermsTitle?: string) => JsonSchema7;
|
|
359
|
+
|
|
351
360
|
/**
|
|
352
361
|
* The `getCoverageTermsDefaultValues` function extracts default coverage terms values from a
|
|
353
362
|
* `CoverageTermsConfigRecord` object and sets them based on certain conditions.
|
|
@@ -569,6 +578,8 @@ export declare function getRemoveDataFieldValues(originalObj: AnyObject, modifie
|
|
|
569
578
|
|
|
570
579
|
export declare const getUpdatedDataFromConstraints: (newData: Record<string, PrimitiveValue>, evaluatedConstraintMap: EvaluateConstraintsResponse | undefined, elementLocator: string) => Record<string, PrimitiveValue>;
|
|
571
580
|
|
|
581
|
+
export { JsonSchema7 }
|
|
582
|
+
|
|
572
583
|
export declare const parseToPrimitive: (str: string) => any;
|
|
573
584
|
|
|
574
585
|
/**
|