skyflow-js 1.5.0 → 1.9.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/CHANGELOG.md +45 -0
- package/README.md +455 -24
- package/dist/sdkNodeBuild/index.js +1 -1
- package/dist/sdkNodeBuild/index.js.LICENSE.txt +27 -0
- package/dist/sdkNodeBuild/index.js.LICENSE.txt.gz +0 -0
- package/dist/sdkNodeBuild/index.js.gz +0 -0
- package/package.json +6 -2
- package/types/Skyflow.d.ts +8 -6
- package/types/{container → core}/constants.d.ts +120 -15
- package/types/{container/external/PureJsController.d.ts → core/external/SkyflowContainer.d.ts} +4 -3
- package/types/core/external/collect/CollectContainer.d.ts +27 -0
- package/types/{container/external/element/index.d.ts → core/external/collect/CollectElement.d.ts} +9 -3
- package/types/core/external/common/Container.d.ts +3 -0
- package/types/{container/external/element → core/external/common}/IFrame.d.ts +1 -1
- package/types/core/external/common/SkyflowElement.d.ts +9 -0
- package/types/{container/external → core/external/reveal}/RevealContainer.d.ts +5 -4
- package/types/core/external/reveal/RevealElement.d.ts +21 -0
- package/types/{container → core}/internal/FrameElements.d.ts +2 -1
- package/types/core/internal/SkyflowFrame/SkyflowFrameController.d.ts +10 -0
- package/types/{container → core}/internal/iFrameForm/index.d.ts +13 -4
- package/types/{container → core}/internal/index.d.ts +5 -2
- package/types/{container → core}/internal/reveal/RevealFrame.d.ts +3 -0
- package/types/{container → core}/internal/reveal/RevealFrameController.d.ts +0 -0
- package/types/{core → core-utils}/collect.d.ts +2 -1
- package/types/{core → core-utils}/reveal.d.ts +0 -0
- package/types/libs/element-options.d.ts +4 -0
- package/types/libs/objectParse.d.ts +3 -0
- package/types/utils/common/index.d.ts +15 -0
- package/types/utils/constants.d.ts +334 -22
- package/types/utils/helpers/index.d.ts +6 -0
- package/types/utils/logs.d.ts +132 -37
- package/types/utils/logsHelper/index.d.ts +1 -1
- package/types/utils/validators/index.d.ts +15 -5
- package/types/container/external/CollectContainer.d.ts +0 -25
- package/types/container/external/reveal/RevealElement.d.ts +0 -11
- package/types/container/internal/pureJs/PureJsFrameController.d.ts +0 -9
|
@@ -1,12 +1,22 @@
|
|
|
1
|
-
import { CardType } from '../../
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { CardType } from '../../core/constants';
|
|
2
|
+
import { CollectElementInput } from '../../core/external/collect/CollectContainer';
|
|
3
|
+
import { IRevealElementInput } from '../../core/external/reveal/RevealContainer';
|
|
4
|
+
import { ISkyflow } from '../../Skyflow';
|
|
5
|
+
import { IInsertRecordInput, IDetokenizeInput, IGetByIdInput, IConnectionConfig, ISoapConnectionConfig } from '../common';
|
|
4
6
|
export declare const validateCreditCardNumber: (cardNumber: string) => boolean;
|
|
5
7
|
export declare const detectCardType: (cardNumber: string) => CardType.DEFAULT;
|
|
6
|
-
export declare const validateExpiryDate: (date: string) => boolean;
|
|
7
|
-
export declare const
|
|
8
|
+
export declare const validateExpiryDate: (date: string, format: string) => boolean;
|
|
9
|
+
export declare const isValidExpiryDateFormat: (format: string) => boolean;
|
|
10
|
+
export declare const validateInsertRecords: (recordObj: IInsertRecordInput, options: any) => void;
|
|
11
|
+
export declare const validateAdditionalFieldsInCollect: (recordObj: IInsertRecordInput) => void;
|
|
8
12
|
export declare const validateDetokenizeInput: (detokenizeInput: IDetokenizeInput) => void;
|
|
9
13
|
export declare const validateGetByIdInput: (getByIdInput: IGetByIdInput) => void;
|
|
10
14
|
export declare const validateRevealElementRecords: (records: IRevealElementInput[]) => void;
|
|
11
15
|
export declare const isValidURL: (url: string) => boolean;
|
|
16
|
+
export declare const isValidRegExp: (input: any) => boolean;
|
|
12
17
|
export declare const validateConnectionConfig: (config: IConnectionConfig) => void;
|
|
18
|
+
export declare const validateCardNumberLengthCheck: (cardNumber: string) => boolean;
|
|
19
|
+
export declare const validateInitConfig: (initConfig: ISkyflow) => void;
|
|
20
|
+
export declare const validateCollectElementInput: (input: CollectElementInput, logLevel: any) => void;
|
|
21
|
+
export declare const isValidXml: (xml: string) => boolean;
|
|
22
|
+
export declare const validateSoapConnectionConfig: (config: ISoapConnectionConfig) => void;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ElementType } from '../constants';
|
|
2
|
-
import Element from './element';
|
|
3
|
-
import { IInsertRecordInput } from '../../utils/common';
|
|
4
|
-
interface CollectElementInput {
|
|
5
|
-
table?: string;
|
|
6
|
-
column?: string;
|
|
7
|
-
inputStyles?: object;
|
|
8
|
-
label?: string;
|
|
9
|
-
labelStyles?: object;
|
|
10
|
-
errorTextStyles?: object;
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
type: ElementType;
|
|
13
|
-
altText?: string;
|
|
14
|
-
}
|
|
15
|
-
interface ICollectOptions {
|
|
16
|
-
tokens?: boolean;
|
|
17
|
-
additionalFields?: IInsertRecordInput;
|
|
18
|
-
}
|
|
19
|
-
declare class CollectContainer {
|
|
20
|
-
#private;
|
|
21
|
-
constructor(options: any, metaData: any, context: any);
|
|
22
|
-
create: (input: CollectElementInput, options?: any) => Element;
|
|
23
|
-
collect: (options?: ICollectOptions) => Promise<unknown>;
|
|
24
|
-
}
|
|
25
|
-
export default CollectContainer;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IRevealElementInput } from '../RevealContainer';
|
|
2
|
-
import { Context } from '../../../utils/common';
|
|
3
|
-
declare class RevealElement {
|
|
4
|
-
#private;
|
|
5
|
-
constructor(record: IRevealElementInput, metaData: any, containerId: string, context: Context);
|
|
6
|
-
mount(domElementSelector: any): void;
|
|
7
|
-
iframeName(): string;
|
|
8
|
-
isMounted(): boolean;
|
|
9
|
-
hasToken(): boolean;
|
|
10
|
-
}
|
|
11
|
-
export default RevealElement;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IConnectionConfig } from '../../../utils/common';
|
|
2
|
-
declare class PureJsFrameController {
|
|
3
|
-
#private;
|
|
4
|
-
constructor();
|
|
5
|
-
static init(): PureJsFrameController;
|
|
6
|
-
insertData(records: any, options: any): Promise<unknown>;
|
|
7
|
-
sendInvokeConnectionRequest(config: IConnectionConfig): Promise<unknown>;
|
|
8
|
-
}
|
|
9
|
-
export default PureJsFrameController;
|