skyflow-js 1.38.0 → 1.38.1

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": "1.38.0",
5
+ "version": "1.38.1",
6
6
  "author": "Skyflow",
7
7
  "description": "Skyflow JavaScript SDK",
8
8
  "homepage": "https://github.com/skyflowapi/skyflow-js",
@@ -35,6 +35,9 @@ export declare class IFrameFormElement extends EventEmitter {
35
35
  preserveFileName: boolean;
36
36
  allowedFileType: any;
37
37
  constructor(name: string, label: string, metaData: any, context: Context, skyflowID?: string);
38
+ isMatchEqual(index: number, value: string, validation: IValidationRule): boolean;
39
+ checkMatch(index: number, validation: IValidationRule): void;
40
+ listenForMatchRule(): void;
38
41
  onFocusChange: (focus: boolean) => void;
39
42
  onDropdownSelect: (cardType: string) => void;
40
43
  changeFocus: (focus: boolean) => void;
@@ -1,5 +1,6 @@
1
1
  import Client from '../client';
2
2
  import { IInsertRecordInput, IInsertRecord, IValidationRule } from '../utils/common';
3
+ import { IFrameFormElement } from '../core/internal/iframe-form';
3
4
  export interface IUpsertOptions {
4
5
  table: string;
5
6
  column: string;
@@ -28,3 +29,4 @@ export declare const constructElementsInsertReq: (req: any, update: any, options
28
29
  })[];
29
30
  export declare const updateRecordsBySkyflowID: (skyflowIdRecords: any, client: Client, options: any) => Promise<unknown>;
30
31
  export declare const checkForElementMatchRule: (validations: IValidationRule[]) => boolean;
32
+ export declare const checkForValueMatch: (validations: IValidationRule[], element: IFrameFormElement) => boolean;
@@ -3,5 +3,5 @@ export declare function validateElementOptions(elementType: string, oldOptions:
3
3
  export declare function validateAndSetupGroupOptions(oldGroup: any, newGroup?: any, setup?: boolean): any;
4
4
  export declare const getElements: (group: any) => string[];
5
5
  export declare const getValueAndItsUnit: (string?: string, defaultValue?: string, defaultUnit?: string) => string[];
6
- export declare const formatValidations: (validations?: IValidationRule[]) => IValidationRule[] | undefined;
6
+ export declare const formatValidations: (validations?: IValidationRule[]) => IValidationRule[];
7
7
  export declare const formatOptions: (elementType: any, options: any, logLevel: any) => any;