@socotra/ec-react-components 2.13.1 → 2.13.2-next.0

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
@@ -36,49 +36,19 @@ import { TransactionSnapshotResponse } from '@socotra/ec-react-schemas';
36
36
  * AccountForm is a form for creating or updating an account. It required a resolved data model, custom data types, and an optional account object to put the form in update mode.
37
37
  */
38
38
  export declare const AccountForm: {
39
- ({ accountsModel, accountType, dataTypes, advancedOptions, disabled, handleSubmit, isSubmitting, preventFormResetOnDisabled, hideSubmitButton, validateOnSubmit, account, defaultValues, submitButtonText, id, titles, }: Props): JSX_2.Element;
39
+ ({ dataModel, accountType, disabled, handleSubmit, isSubmitting, preventFormResetOnDisabled, hideSubmitButton, validateOnSubmit, account, submitButtonText, id, titles, }: Props): JSX_2.Element;
40
40
  displayName: string;
41
41
  };
42
42
 
43
43
  declare type BaseProps = {
44
44
  /**
45
- * The resolved data model for **all** accounts retrieved from the data model response
45
+ * The resolved data model retrieved from data model response
46
46
  */
47
- accountsModel: AccountConfigRecord;
47
+ dataModel: DataModel;
48
48
  /**
49
49
  * The account type to use for the form, used to pick the correct data model from the accountsModel
50
50
  */
51
51
  accountType: keyof AccountConfigRecord;
52
- /**
53
- * The custom data types for the configuration that may be referenced by the account's data model
54
- */
55
- dataTypes?: DataTypeConfigRecord;
56
- advancedOptions?: {
57
- /**
58
- * The auto renewal plans for the account
59
- */
60
- autoRenewalPlans?: string[];
61
- /**
62
- * The delinquency plans available for the account
63
- */
64
- delinquencyPlans?: string[];
65
- /**
66
- * The excess credit plans available for the account
67
- */
68
- excessCreditPlans?: string[];
69
- /**
70
- * The shortfall tolerance plans available for the account
71
- */
72
- shortfallTolerancePlans?: string[];
73
- /**
74
- * The invoice documents available for the account
75
- */
76
- invoiceDocument?: string[];
77
- /**
78
- * The installment plans available for the account
79
- */
80
- installmentPlans?: string[];
81
- };
82
52
  /**
83
53
  * Set to true when the form is submitting to set fields to readonly and disable the submit button
84
54
  */
@@ -92,12 +62,6 @@ declare type BaseProps = {
92
62
  * default is true
93
63
  */
94
64
  preventFormResetOnDisabled?: boolean;
95
- /**
96
- * The default values for the form
97
- */
98
- defaultValues?: Partial<AccountResponse> & {
99
- autoValidate?: boolean;
100
- };
101
65
  /**
102
66
  * Hides the submit button
103
67
  */
@@ -379,6 +343,7 @@ declare type Props_2 = {
379
343
  autoRenewalPlanName?: string;
380
344
  truthyLabel?: string;
381
345
  falsyLabel?: string;
346
+ installmentPlanName?: string;
382
347
  };
383
348
  };
384
349