@socotra/ec-react-utils 2.8.1-next.0 → 2.8.1-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 +24 -0
- package/dist/index.es.js +2746 -2946
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AccountConfigRecord } from '@socotra/ec-react-schemas';
|
|
1
2
|
import { AccountResponse } from '@socotra/ec-react-schemas';
|
|
2
3
|
import { ConstraintEvaluationResponse } from '@socotra/ec-react-schemas';
|
|
3
4
|
import { CoverageTermsConfigRecord } from '@socotra/ec-react-schemas';
|
|
@@ -38,11 +39,14 @@ declare interface DataModelToJsonSchemaProps {
|
|
|
38
39
|
dataTypes?: DataTypeConfigRecord;
|
|
39
40
|
evaluatedConstraints?: ConstraintEvaluationResponse;
|
|
40
41
|
constraintDependencyMap?: QuoteDependencyMapResponse;
|
|
42
|
+
ignoreConstraints?: boolean;
|
|
41
43
|
scope: Array<'P' | 'Q' | 'QQ'>;
|
|
42
44
|
rootDisplayName?: string;
|
|
43
45
|
account?: AccountResponse;
|
|
44
46
|
quote?: QuoteResponse;
|
|
45
47
|
element?: ElementResponse;
|
|
48
|
+
transactionElement?: ElementResponse;
|
|
49
|
+
customDataTypeKey?: string;
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
/**
|
|
@@ -213,6 +217,26 @@ export declare const getCoverageTermsDefaultValues: ({ coverageTermOptions, cove
|
|
|
213
217
|
coverageTermDataModel?: CoverageTermsConfigRecord;
|
|
214
218
|
}) => Record<string, string>;
|
|
215
219
|
|
|
220
|
+
export declare const getDefaultAccountFormValues: ({ defaultValues, accountType, account, }: {
|
|
221
|
+
accountType: keyof AccountConfigRecord;
|
|
222
|
+
defaultValues?: Partial<AccountResponse> & {
|
|
223
|
+
autoValidate?: boolean;
|
|
224
|
+
};
|
|
225
|
+
account?: AccountResponse;
|
|
226
|
+
}) => {
|
|
227
|
+
data: Record<string, any>;
|
|
228
|
+
type: string;
|
|
229
|
+
advanced: {
|
|
230
|
+
autoRenewalPlanName: string | undefined;
|
|
231
|
+
delinquencyPlanName: string | undefined;
|
|
232
|
+
excessCreditPlanName: string | undefined;
|
|
233
|
+
shortfallTolerancePlanName: string | undefined;
|
|
234
|
+
billingLevel: "account" | "policy" | undefined;
|
|
235
|
+
invoiceDocument: string | undefined;
|
|
236
|
+
};
|
|
237
|
+
saveAsDraft: boolean;
|
|
238
|
+
};
|
|
239
|
+
|
|
216
240
|
export declare const getDefaultDraftTransactionValues: ({ transactionSnapshot, paramsChangeInstruction, modifyChangeInstruction, coverageTerms, }: {
|
|
217
241
|
transactionSnapshot: TransactionSnapshotResponse;
|
|
218
242
|
paramsChangeInstruction: ParamsChangeInstructionCreateRequest;
|