skyflow-js 2.7.7 → 2.7.8

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.
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "skyflow-js",
3
3
  "preferGlobal": true,
4
4
  "analyze": false,
5
- "version": "2.7.7",
5
+ "version": "2.7.8",
6
6
  "author": "Skyflow",
7
7
  "description": "Skyflow JavaScript SDK",
8
8
  "homepage": "https://github.com/skyflowapi/skyflow-js",
@@ -35,6 +35,8 @@ export default class IFrameFormElement extends EventEmitter {
35
35
  preserveFileName: boolean;
36
36
  allowedFileType: any;
37
37
  blockEmptyFiles: boolean;
38
+ maxFileSize: number;
39
+ maxFileCount: number;
38
40
  constructor(name: string, label: string, metaData: any, context: Context, skyflowID?: string);
39
41
  isMatchEqual(index: number, value: string, validation: IValidationRule): boolean;
40
42
  checkMatch(index: number, validation: IValidationRule): void;
@@ -277,6 +277,8 @@ export interface CollectElementOptions {
277
277
  preserveFileName?: boolean;
278
278
  allowedFileType?: string[];
279
279
  blockEmptyFiles?: boolean;
280
+ maxFileSize?: number;
281
+ maxFileCount?: number;
280
282
  masking?: boolean;
281
283
  maskingChar?: string;
282
284
  }
@@ -579,6 +579,22 @@ declare const SKYFLOW_ERROR_CODE: {
579
579
  code: number;
580
580
  description: string;
581
581
  };
582
+ FILE_COUNT_EXCEEDED: {
583
+ code: number;
584
+ description: string;
585
+ };
586
+ FILE_SIZE_EXCEEDED_SINGLE: {
587
+ code: number;
588
+ description: string;
589
+ };
590
+ FILE_SIZE_EXCEEDED_WITH_NAME: {
591
+ code: number;
592
+ description: string;
593
+ };
594
+ FILE_COUNT_AND_SIZE_EXCEEDED: {
595
+ code: number;
596
+ description: string;
597
+ };
582
598
  INVALID_TABLE_IN_UPSERT_OPTION: {
583
599
  code: number;
584
600
  description: string;
@@ -759,6 +775,10 @@ declare const SKYFLOW_ERROR_CODE: {
759
775
  code: number;
760
776
  description: string;
761
777
  };
778
+ INVALID_POSITIVE_NUMBER_OPTIONS: {
779
+ code: number;
780
+ description: string;
781
+ };
762
782
  INVALID_MASKING_CHARACTER: {
763
783
  code: number;
764
784
  description: string;
@@ -249,6 +249,10 @@ declare const logs: {
249
249
  INVALID_FILE_TYPE: string;
250
250
  INVALID_FILE_SIZE: string;
251
251
  NO_FILE_SELECTED: string;
252
+ FILE_COUNT_EXCEEDED: string;
253
+ FILE_SIZE_EXCEEDED_SINGLE: string;
254
+ FILE_SIZE_EXCEEDED_WITH_NAME: string;
255
+ FILE_COUNT_AND_SIZE_EXCEEDED: string;
252
256
  INVALID_UPSERT_OPTION_TYPE: string;
253
257
  EMPTY_UPSERT_OPTIONS_ARRAY: string;
254
258
  INVALID_UPSERT_OPTION_OBJECT_TYPE: string;
@@ -290,6 +294,7 @@ declare const logs: {
290
294
  INVALID_COMPOSABLE_CONTAINER_OPTIONS: string;
291
295
  COMPOSABLE_CONTAINER_NOT_MOUNTED: string;
292
296
  INVALID_BOOLEAN_OPTIONS: string;
297
+ INVALID_POSITIVE_NUMBER_OPTIONS: string;
293
298
  INVALID_MASKING_CHARACTER: string;
294
299
  INVALID_INPUT_OPTIONS_FORMAT: string;
295
300
  INVALID_INPUT_OPTIONS_TRANSLATION: string;