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

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