@socotra/ec-react-utils 2.8.0-next.2 → 2.8.0-next.4

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,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,13 @@ 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;
46
49
  }
47
50
 
48
51
  /**
@@ -213,6 +216,26 @@ export declare const getCoverageTermsDefaultValues: ({ coverageTermOptions, cove
213
216
  coverageTermDataModel?: CoverageTermsConfigRecord;
214
217
  }) => Record<string, string>;
215
218
 
219
+ export declare const getDefaultAccountFormValues: ({ defaultValues, accountType, account, }: {
220
+ accountType: keyof AccountConfigRecord;
221
+ defaultValues?: Partial<AccountResponse> & {
222
+ autoValidate?: boolean;
223
+ };
224
+ account?: AccountResponse;
225
+ }) => {
226
+ data: Record<string, any>;
227
+ type: string;
228
+ advanced: {
229
+ autoRenewalPlanName: string | undefined;
230
+ delinquencyPlanName: string | undefined;
231
+ excessCreditPlanName: string | undefined;
232
+ shortfallTolerancePlanName: string | undefined;
233
+ billingLevel: "account" | "policy" | undefined;
234
+ invoiceDocument: string | undefined;
235
+ };
236
+ saveAsDraft: boolean;
237
+ };
238
+
216
239
  export declare const getDefaultDraftTransactionValues: ({ transactionSnapshot, paramsChangeInstruction, modifyChangeInstruction, coverageTerms, }: {
217
240
  transactionSnapshot: TransactionSnapshotResponse;
218
241
  paramsChangeInstruction: ParamsChangeInstructionCreateRequest;