dromo-uploader-js 2.0.13 → 2.0.15

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.
@@ -40,7 +40,14 @@ export type IRequireWithValuesValidator = {
40
40
  [x: string]: any;
41
41
  };
42
42
  };
43
- export type IValidatorField = IRequiredValidator | IUniqueValidator | IUniqueWithValidator | IRegexValidator | IRequireWithValidator | IRequireWithValuesValidator;
43
+ export type ILengthValidator = {
44
+ errorMessage?: string | undefined;
45
+ level?: ("info" | "warning" | "error") | undefined;
46
+ validate: "length";
47
+ min?: number | undefined;
48
+ max?: number | undefined;
49
+ };
50
+ export type IValidatorField = IRequiredValidator | IUniqueValidator | IUniqueWithValidator | IRegexValidator | IRequireWithValidator | IRequireWithValuesValidator | ILengthValidator;
44
51
  export type IStringField = {
45
52
  label: string;
46
53
  key: string;
@@ -199,6 +206,8 @@ export type INumberField = {
199
206
  lowPrecision?: boolean | undefined;
200
207
  roundingFunction?: ((args0: number, ...args1: unknown[]) => number) | undefined;
201
208
  } | undefined;
209
+ min?: number | undefined;
210
+ max?: number | undefined;
202
211
  })
203
212
  ];
204
213
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dromo-uploader-js",
3
- "version": "2.0.13",
3
+ "version": "2.0.15",
4
4
  "description": "Easy to use data (CSV, TSV, Excel) importer",
5
5
  "author": "ankitgoyal100",
6
6
  "license": "MIT",