skyflow-js 1.37.1 → 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.
- package/README.md +29 -3
- package/dist/sdkNodeBuild/index.js +1 -1
- package/dist/sdkNodeBuild/index.js.gz +0 -0
- package/package.json +1 -1
- package/types/core/internal/iframe-form/index.d.ts +3 -0
- package/types/core-utils/collect.d.ts +2 -0
- package/types/libs/element-options.d.ts +1 -1
- package/types/skyflow.d.ts +1 -1
- package/types/utils/constants.d.ts +4 -0
- package/types/utils/helpers/index.d.ts +4 -0
- package/types/utils/logs.d.ts +1 -1
|
Binary file
|
package/package.json
CHANGED
|
@@ -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[]
|
|
6
|
+
export declare const formatValidations: (validations?: IValidationRule[]) => IValidationRule[];
|
|
7
7
|
export declare const formatOptions: (elementType: any, options: any, logLevel: any) => any;
|
package/types/skyflow.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ declare class Skyflow {
|
|
|
19
19
|
#private;
|
|
20
20
|
constructor(config: ISkyflow);
|
|
21
21
|
static init(config: ISkyflow): Skyflow;
|
|
22
|
-
container(type: ContainerType, options?: Record<string, any>): CollectContainer |
|
|
22
|
+
container(type: ContainerType, options?: Record<string, any>): CollectContainer | ComposableContainer | RevealContainer;
|
|
23
23
|
insert(records: IInsertRecordInput, options?: IInsertOptions): Promise<any>;
|
|
24
24
|
detokenize(detokenizeInput: IDetokenizeInput): Promise<IRevealResponseType>;
|
|
25
25
|
getById(getByIdInput: IGetByIdInput): Promise<unknown>;
|
|
@@ -53,4 +53,8 @@ export declare function checkAndSetForCustomUrl(config: ISkyflow): void;
|
|
|
53
53
|
export declare const generateUploadFileName: (fileName: string) => string;
|
|
54
54
|
export declare const getValueFromName: (name: string, index: number) => string;
|
|
55
55
|
export declare const getAtobValue: (encodedValue: string) => string;
|
|
56
|
+
export declare const getSDKLanguageAndVersion: () => {
|
|
57
|
+
sdkLanguageAndVersion: string;
|
|
58
|
+
sdkOwner: string;
|
|
59
|
+
};
|
|
56
60
|
export {};
|
package/types/utils/logs.d.ts
CHANGED
|
@@ -161,7 +161,6 @@ declare const logs: {
|
|
|
161
161
|
INVALID_FORMAT_VALUE_REVEAL: string;
|
|
162
162
|
INVALID_REDACTION_TYPE_REVEAL: string;
|
|
163
163
|
ELEMENTS_NOT_MOUNTED_REVEAL: string;
|
|
164
|
-
ELEMENT_NOT_MOUNTED_RENDER: string;
|
|
165
164
|
EMPTY_TABLE_IN_ADDITIONAL_FIELDS: string;
|
|
166
165
|
EMPTY_FIELDS_IN_ADDITIONAL_FIELDS: string;
|
|
167
166
|
EMPTY_TOKEN_IN_DETOKENIZE: string;
|
|
@@ -178,6 +177,7 @@ declare const logs: {
|
|
|
178
177
|
MISSING_TABLE_IN_COLLECT: string;
|
|
179
178
|
EMPTY_TABLE_IN_COLLECT: string;
|
|
180
179
|
EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS: string;
|
|
180
|
+
EMPTY_SKYFLOW_ID_COLLECT: string;
|
|
181
181
|
INVALID_TABLE_IN_COLLECT: string;
|
|
182
182
|
INVALID_SKYFLOWID_IN_COLLECT: string;
|
|
183
183
|
MISSING_COLUMN_IN_COLLECT: string;
|