@socotra/ec-react-utils 2.21.1 → 2.22.0-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/dist/index.d.ts +14 -6
- package/dist/index.es.js +11885 -11573
- 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 +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ declare const advancedFieldSchema_3: z.ZodObject<{
|
|
|
47
47
|
invoiceDocument: z.ZodOptional<z.ZodString>;
|
|
48
48
|
installmentPlanName: z.ZodOptional<z.ZodString>;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
|
-
billingLevel?: "account" | "
|
|
50
|
+
billingLevel?: "account" | "policy" | "inherit" | undefined;
|
|
51
51
|
delinquencyPlanName?: string | undefined;
|
|
52
52
|
autoRenewalPlanName?: string | undefined;
|
|
53
53
|
installmentPlanName?: string | undefined;
|
|
@@ -55,7 +55,7 @@ declare const advancedFieldSchema_3: z.ZodObject<{
|
|
|
55
55
|
excessCreditPlanName?: string | undefined;
|
|
56
56
|
invoiceDocument?: string | undefined;
|
|
57
57
|
}, {
|
|
58
|
-
billingLevel?: "account" | "
|
|
58
|
+
billingLevel?: "account" | "policy" | "inherit" | undefined;
|
|
59
59
|
delinquencyPlanName?: string | undefined;
|
|
60
60
|
autoRenewalPlanName?: string | undefined;
|
|
61
61
|
installmentPlanName?: string | undefined;
|
|
@@ -102,6 +102,7 @@ declare interface DataModelToJsonSchemaProps {
|
|
|
102
102
|
rootDisplayName?: string;
|
|
103
103
|
account?: AccountResponse;
|
|
104
104
|
quote?: QuoteResponse;
|
|
105
|
+
policy?: PolicyResponse;
|
|
105
106
|
isStaticData?: boolean;
|
|
106
107
|
element?: ElementResponse;
|
|
107
108
|
transactionElement?: ElementResponse;
|
|
@@ -362,7 +363,7 @@ export declare const getDefaultAccountFormValues: ({ defaultValues, accountType,
|
|
|
362
363
|
delinquencyPlanName: string | undefined;
|
|
363
364
|
excessCreditPlanName: string | undefined;
|
|
364
365
|
shortfallTolerancePlanName: string | undefined;
|
|
365
|
-
billingLevel: "account" | "
|
|
366
|
+
billingLevel: "account" | "policy" | "inherit" | undefined;
|
|
366
367
|
invoiceDocument: string | undefined;
|
|
367
368
|
installmentPlanName: string | undefined;
|
|
368
369
|
};
|
|
@@ -402,16 +403,19 @@ export declare const getDefaultElementValues: (element: ElementResponse, coverag
|
|
|
402
403
|
* and returns the default initialized transaction values for the element.
|
|
403
404
|
* @param {ElementResponse} elementResponse - The `elementResponse` parameter is of type `ElementResponse`, which is an object
|
|
404
405
|
* containing information about an element.
|
|
406
|
+
* @param {PolicyResponse} policy - The `policy` parameter is of type `PolicyResponse`, which is an object
|
|
405
407
|
* @param {CoverageTermsConfigRecord} coverageTerms - The `coverageTerms` parameter is of type `CoverageTermsConfigRecord`, which is an object
|
|
406
408
|
* containing information about coverage terms.
|
|
407
409
|
* @returns The function `getDefaultInitializedTransactionValues` returns the default initialized transaction values for the element.
|
|
408
410
|
*/
|
|
409
|
-
export declare const getDefaultInitializedTransactionValues: ({ elementResponse, coverageTerms, coverageTermsDataModel, }: {
|
|
411
|
+
export declare const getDefaultInitializedTransactionValues: ({ elementResponse, policy, coverageTerms, coverageTermsDataModel, }: {
|
|
410
412
|
elementResponse: ElementResponse;
|
|
413
|
+
policy: PolicyResponse;
|
|
411
414
|
coverageTerms: string[];
|
|
412
415
|
coverageTermsDataModel?: CoverageTermsConfigRecord;
|
|
413
416
|
}) => {
|
|
414
417
|
coverageTerms?: Record<string, string> | undefined;
|
|
418
|
+
static: Record<string, any>;
|
|
415
419
|
};
|
|
416
420
|
|
|
417
421
|
/**
|
|
@@ -428,6 +432,10 @@ export declare const getDefaultInitializedTransactionValues: ({ elementResponse,
|
|
|
428
432
|
* `advanced`.
|
|
429
433
|
*/
|
|
430
434
|
export declare const getDefaultPolicyValues: (policy: PolicyResponse, productModel: ProductConfig, element: ElementResponse, dataModel: DataModel) => {
|
|
435
|
+
coverageTerms: Record<string, string>;
|
|
436
|
+
static?: {
|
|
437
|
+
[x: string]: any;
|
|
438
|
+
} | undefined;
|
|
431
439
|
default: {
|
|
432
440
|
currency: string;
|
|
433
441
|
timezone: string | undefined;
|
|
@@ -435,13 +443,13 @@ export declare const getDefaultPolicyValues: (policy: PolicyResponse, productMod
|
|
|
435
443
|
endTime: string;
|
|
436
444
|
};
|
|
437
445
|
advanced: {
|
|
438
|
-
billingLevel: "account" | "
|
|
446
|
+
billingLevel: "account" | "policy" | "inherit";
|
|
439
447
|
billingTrigger: "accept" | "issue";
|
|
440
448
|
durationBasis: "none" | "years" | "months" | "monthsE360" | "weeks" | "days" | "hours";
|
|
441
449
|
delinquencyPlanName: string | undefined;
|
|
442
450
|
autoRenewalPlanName: string | undefined;
|
|
443
451
|
};
|
|
444
|
-
|
|
452
|
+
data?: Record<string, any> | undefined;
|
|
445
453
|
};
|
|
446
454
|
|
|
447
455
|
/**
|