skyflow-js 1.8.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 +6 -0
- package/README.md +161 -2
- 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 +5 -2
- package/types/Skyflow.d.ts +6 -5
- package/types/{container → core}/constants.d.ts +11 -1
- package/types/{container/external/PureJsController.d.ts → core/external/SkyflowContainer.d.ts} +4 -3
- package/types/{container/external → core/external/collect}/CollectContainer.d.ts +7 -6
- package/types/{container/external/element/index.d.ts → core/external/collect/CollectElement.d.ts} +5 -3
- package/types/core/external/common/Container.d.ts +3 -0
- package/types/{container/external/element → core/external/common}/IFrame.d.ts +0 -0
- package/types/core/external/common/SkyflowElement.d.ts +9 -0
- package/types/{container/external → core/external/reveal}/RevealContainer.d.ts +5 -4
- package/types/{container → core}/external/reveal/RevealElement.d.ts +5 -3
- package/types/{container → core}/internal/FrameElements.d.ts +0 -0
- package/types/core/internal/SkyflowFrame/SkyflowFrameController.d.ts +10 -0
- package/types/{container → core}/internal/iFrameForm/index.d.ts +0 -0
- package/types/{container → core}/internal/index.d.ts +0 -0
- package/types/{container → core}/internal/reveal/RevealFrame.d.ts +0 -0
- package/types/{container → core}/internal/reveal/RevealFrameController.d.ts +0 -0
- package/types/{core → core-utils}/collect.d.ts +0 -0
- package/types/{core → core-utils}/reveal.d.ts +0 -0
- package/types/libs/element-options.d.ts +1 -1
- package/types/libs/objectParse.d.ts +3 -0
- package/types/utils/common/index.d.ts +6 -0
- package/types/utils/constants.d.ts +76 -0
- package/types/utils/helpers/index.d.ts +4 -0
- package/types/utils/logs.d.ts +23 -0
- package/types/utils/validators/index.d.ts +6 -4
- package/types/container/internal/pureJs/PureJsFrameController.d.ts +0 -9
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* The buffer module from node.js, for the browser.
|
|
3
|
+
*
|
|
4
|
+
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/*!
|
|
9
|
+
* The buffer module from node.js, for the browser.
|
|
10
|
+
*
|
|
11
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
12
|
+
* @license MIT
|
|
13
|
+
*/
|
|
14
|
+
|
|
1
15
|
/*!
|
|
2
16
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
3
17
|
*
|
|
@@ -25,3 +39,16 @@
|
|
|
25
39
|
* Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
|
|
26
40
|
* Released under the MIT License.
|
|
27
41
|
*/
|
|
42
|
+
|
|
43
|
+
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
|
|
44
|
+
|
|
45
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @license
|
|
49
|
+
* Lodash <https://lodash.com/>
|
|
50
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
51
|
+
* Released under MIT license <https://lodash.com/license>
|
|
52
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
53
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
54
|
+
*/
|
|
Binary file
|
|
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.
|
|
5
|
+
"version": "1.9.0",
|
|
6
6
|
"author": "Skyflow",
|
|
7
7
|
"description": "Skyflow JavaScript SDK",
|
|
8
8
|
"homepage": "https://github.com/skyflowapi/skyflow-js",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"core-js": "^3.6.5",
|
|
36
|
+
"easy-soap-request": "^4.5.0",
|
|
36
37
|
"framebus": "^4.0.0",
|
|
37
38
|
"inject-stylesheet": "^2.0.0",
|
|
38
39
|
"jquery": "^3.5.1",
|
|
@@ -41,8 +42,10 @@
|
|
|
41
42
|
"jss-preset-default": "^10.7.1",
|
|
42
43
|
"jwt-decode": "^3.1.2",
|
|
43
44
|
"lodash": "^4.17.21",
|
|
45
|
+
"node-polyfill-webpack-plugin": "^1.1.4",
|
|
44
46
|
"regex-parser": "^2.2.11",
|
|
45
|
-
"set-value": "^4.0.1"
|
|
47
|
+
"set-value": "^4.0.1",
|
|
48
|
+
"xml-js": "^1.6.11"
|
|
46
49
|
},
|
|
47
50
|
"engines": {
|
|
48
51
|
"node": ">=12.0",
|
package/types/Skyflow.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ElementType } from './
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { IRevealResponseType, IConnectionConfig, RequestMethod, IInsertRecordInput, IDetokenizeInput, IGetByIdInput, RedactionType, EventName, Env, LogLevel, ValidationRuleType } from './utils/common';
|
|
1
|
+
import { ElementType } from './core/constants';
|
|
2
|
+
import RevealContainer from './core/external/reveal/RevealContainer';
|
|
3
|
+
import CollectContainer from './core/external/collect/CollectContainer';
|
|
4
|
+
import { IRevealResponseType, IConnectionConfig, RequestMethod, IInsertRecordInput, IDetokenizeInput, IGetByIdInput, RedactionType, EventName, Env, LogLevel, ValidationRuleType, ISoapConnectionConfig } from './utils/common';
|
|
5
5
|
export declare enum ContainerType {
|
|
6
6
|
COLLECT = "COLLECT",
|
|
7
7
|
REVEAL = "REVEAL"
|
|
@@ -16,11 +16,12 @@ declare class Skyflow {
|
|
|
16
16
|
#private;
|
|
17
17
|
constructor(config: ISkyflow);
|
|
18
18
|
static init(config: ISkyflow): Skyflow;
|
|
19
|
-
container(type: ContainerType, options?: Record<string, any>):
|
|
19
|
+
container(type: ContainerType, options?: Record<string, any>): CollectContainer | RevealContainer;
|
|
20
20
|
insert(records: IInsertRecordInput, options?: Record<string, any>): Promise<any>;
|
|
21
21
|
detokenize(detokenizeInput: IDetokenizeInput): Promise<IRevealResponseType>;
|
|
22
22
|
getById(getByIdInput: IGetByIdInput): Promise<unknown>;
|
|
23
23
|
invokeConnection(config: IConnectionConfig): Promise<unknown>;
|
|
24
|
+
invokeSoapConnection(config: ISoapConnectionConfig): Promise<unknown>;
|
|
24
25
|
static get ContainerType(): typeof ContainerType;
|
|
25
26
|
static get ElementType(): typeof ElementType;
|
|
26
27
|
static get RedactionType(): typeof RedactionType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const COLLECT_FRAME_CONTROLLER = "collect_controller";
|
|
2
2
|
export declare const REVEAL_FRAME_CONTROLLER = "reveal_controller";
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const SKYFLOW_FRAME_CONTROLLER = "skyflow_controller";
|
|
4
4
|
export declare const FRAME_REVEAL = "reveal";
|
|
5
5
|
export declare const FRAME_ELEMENT = "element";
|
|
6
6
|
export declare const PUREJS_TYPES: {
|
|
@@ -8,6 +8,7 @@ export declare const PUREJS_TYPES: {
|
|
|
8
8
|
DETOKENIZE: string;
|
|
9
9
|
GET_BY_SKYFLOWID: string;
|
|
10
10
|
INVOKE_CONNECTION: string;
|
|
11
|
+
INVOKE_SOAP_CONNECTION: string;
|
|
11
12
|
};
|
|
12
13
|
export declare const ELEMENT_EVENTS_TO_CLIENT: {
|
|
13
14
|
CHANGE: string;
|
|
@@ -469,3 +470,12 @@ export declare const EXPIRY_DATE_MASK: {
|
|
|
469
470
|
};
|
|
470
471
|
export declare const DEFAULT_EXPIRATION_DATE_FORMAT = "MM/YY";
|
|
471
472
|
export declare const ALLOWED_EXPIRY_DATE_FORMATS: string[];
|
|
473
|
+
export declare const soapReqXmlErrors: {
|
|
474
|
+
code: number;
|
|
475
|
+
description: string;
|
|
476
|
+
}[];
|
|
477
|
+
export declare const soapResXmlErrors: {
|
|
478
|
+
code: number;
|
|
479
|
+
description: string;
|
|
480
|
+
}[];
|
|
481
|
+
export declare const PATH_NOT_FOUND_IN_RES_XML = "skyflow: Path not found";
|
package/types/{container/external/PureJsController.d.ts → core/external/SkyflowContainer.d.ts}
RENAMED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { IDetokenizeInput, IGetByIdInput, IConnectionConfig } from '../../utils/common';
|
|
2
|
-
declare class
|
|
1
|
+
import { IDetokenizeInput, IGetByIdInput, IConnectionConfig, ISoapConnectionConfig } from '../../utils/common';
|
|
2
|
+
declare class SkyflowContainer {
|
|
3
3
|
#private;
|
|
4
4
|
constructor(client: any, context: any);
|
|
5
5
|
detokenize(detokenizeInput: IDetokenizeInput): Promise<any>;
|
|
6
6
|
insert(records: any, options: any): Promise<any>;
|
|
7
7
|
getById(getByIdInput: IGetByIdInput): Promise<unknown>;
|
|
8
|
+
invokeSoapConnection(config: ISoapConnectionConfig, skyflowElements: any): Promise<unknown>;
|
|
8
9
|
invokeConnection(config: IConnectionConfig): Promise<unknown>;
|
|
9
10
|
}
|
|
10
|
-
export default
|
|
11
|
+
export default SkyflowContainer;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { IValidationRule, IInsertRecordInput } from '../../../utils/common';
|
|
2
|
+
import { ElementType } from '../../constants';
|
|
3
|
+
import Container from '../common/Container';
|
|
4
|
+
import CollectElement from './CollectElement';
|
|
4
5
|
export interface CollectElementInput {
|
|
5
6
|
table?: string;
|
|
6
7
|
column?: string;
|
|
@@ -17,10 +18,10 @@ interface ICollectOptions {
|
|
|
17
18
|
tokens?: boolean;
|
|
18
19
|
additionalFields?: IInsertRecordInput;
|
|
19
20
|
}
|
|
20
|
-
declare class CollectContainer {
|
|
21
|
+
declare class CollectContainer extends Container {
|
|
21
22
|
#private;
|
|
22
|
-
constructor(options: any, metaData: any, context: any);
|
|
23
|
-
create: (input: CollectElementInput, options?: any) =>
|
|
23
|
+
constructor(options: any, metaData: any, skyflowElements: any, context: any);
|
|
24
|
+
create: (input: CollectElementInput, options?: any) => CollectElement;
|
|
24
25
|
collect: (options?: ICollectOptions) => Promise<unknown>;
|
|
25
26
|
}
|
|
26
27
|
export default CollectContainer;
|
package/types/{container/external/element/index.d.ts → core/external/collect/CollectElement.d.ts}
RENAMED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Context } from '../../../utils/common';
|
|
2
|
-
|
|
2
|
+
import SkyflowElement from '../common/SkyflowElement';
|
|
3
|
+
declare class CollectElement extends SkyflowElement {
|
|
3
4
|
#private;
|
|
4
5
|
elementType: string;
|
|
5
6
|
containerId: string;
|
|
6
|
-
constructor(elementGroup: any, metaData: any, containerId: string, isSingleElementAPI: boolean | undefined, destroyCallback: Function, updateCallback: Function, context: Context);
|
|
7
|
+
constructor(elementId: string, elementGroup: any, metaData: any, containerId: string, isSingleElementAPI: boolean | undefined, destroyCallback: Function, updateCallback: Function, context: Context);
|
|
8
|
+
getID: () => string;
|
|
7
9
|
mount: (domElement: any) => void;
|
|
8
10
|
unmount: () => void;
|
|
9
11
|
update: (group: any) => void;
|
|
@@ -24,4 +26,4 @@ declare class Element {
|
|
|
24
26
|
setValue(elementValue: string): void;
|
|
25
27
|
clearValue(): void;
|
|
26
28
|
}
|
|
27
|
-
export default
|
|
29
|
+
export default CollectElement;
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare abstract class SkyflowElement {
|
|
2
|
+
abstract mount(domElementSelector: any): any;
|
|
3
|
+
abstract unmount(): any;
|
|
4
|
+
abstract setError(clientErrorText: string): any;
|
|
5
|
+
abstract resetError(): any;
|
|
6
|
+
abstract iframeName(): any;
|
|
7
|
+
abstract getID(): any;
|
|
8
|
+
}
|
|
9
|
+
export default SkyflowElement;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { RedactionType } from '../../../utils/common';
|
|
2
|
+
import Container from '../common/Container';
|
|
3
|
+
import RevealElement from './RevealElement';
|
|
3
4
|
export interface IRevealElementInput {
|
|
4
5
|
token?: string;
|
|
5
6
|
redaction?: RedactionType;
|
|
@@ -9,9 +10,9 @@ export interface IRevealElementInput {
|
|
|
9
10
|
altText?: string;
|
|
10
11
|
errorTextStyles?: object;
|
|
11
12
|
}
|
|
12
|
-
declare class RevealContainer {
|
|
13
|
+
declare class RevealContainer extends Container {
|
|
13
14
|
#private;
|
|
14
|
-
constructor(metaData: any, context: any);
|
|
15
|
+
constructor(metaData: any, skyflowElements: any, context: any);
|
|
15
16
|
create(record: IRevealElementInput): RevealElement;
|
|
16
17
|
reveal(): Promise<unknown>;
|
|
17
18
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { IRevealElementInput } from '../RevealContainer';
|
|
2
1
|
import { Context } from '../../../utils/common';
|
|
3
|
-
|
|
2
|
+
import SkyflowElement from '../common/SkyflowElement';
|
|
3
|
+
import { IRevealElementInput } from './RevealContainer';
|
|
4
|
+
declare class RevealElement extends SkyflowElement {
|
|
4
5
|
#private;
|
|
5
|
-
constructor(record: IRevealElementInput, metaData: any, containerId: string, context: Context);
|
|
6
|
+
constructor(record: IRevealElementInput, metaData: any, containerId: string, elementId: string, context: Context);
|
|
7
|
+
getID(): string;
|
|
6
8
|
mount(domElementSelector: any): void;
|
|
7
9
|
iframeName(): string;
|
|
8
10
|
isMounted(): boolean;
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IConnectionConfig, ISoapConnectionConfig } from '../../../utils/common';
|
|
2
|
+
declare class SkyflowFrameController {
|
|
3
|
+
#private;
|
|
4
|
+
constructor();
|
|
5
|
+
static init(): SkyflowFrameController;
|
|
6
|
+
insertData(records: any, options: any): Promise<unknown>;
|
|
7
|
+
sendInvokeConnectionRequest(config: IConnectionConfig): Promise<unknown>;
|
|
8
|
+
invokeSoapConnectionRequest(config: ISoapConnectionConfig): Promise<unknown>;
|
|
9
|
+
}
|
|
10
|
+
export default SkyflowFrameController;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollectElementInput } from '../
|
|
1
|
+
import { CollectElementInput } from '../core/external/collect/CollectContainer';
|
|
2
2
|
import { IValidationRule } from '../utils/common';
|
|
3
3
|
export declare function validateElementOptions(elementType: string, oldOptions: any, newOptions?: any): void;
|
|
4
4
|
export declare function validateAndSetupGroupOptions(oldGroup: any, newGroup?: any, setup?: boolean): any;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
export declare function connectionConfigParser(data: any, configKey: any): void;
|
|
2
2
|
export declare function constructInvokeConnectionRequest(data: any): Promise<any>;
|
|
3
|
+
export declare function constructSoapConnectionRequestXml(requestXml: string): Promise<string>;
|
|
4
|
+
export declare function extractSkyflowTagsFromResponseBody(responseBody: any, path: string, skyflowTags: any, connectionResponse: any): void;
|
|
5
|
+
export declare function soapResponseBodyParser(mainTags: any, connectionResponse: any): void;
|
|
@@ -411,5 +411,81 @@ declare const SKYFLOW_ERROR_CODE: {
|
|
|
411
411
|
code: number;
|
|
412
412
|
description: string;
|
|
413
413
|
};
|
|
414
|
+
MISSING_SOAP_CONNECTION_CONFIG: {
|
|
415
|
+
code: number;
|
|
416
|
+
description: string;
|
|
417
|
+
};
|
|
418
|
+
MISSING_SOAP_CONNECTION_URL: {
|
|
419
|
+
code: number;
|
|
420
|
+
description: string;
|
|
421
|
+
};
|
|
422
|
+
EMPTY_SOAP_CONNECTION_URL: {
|
|
423
|
+
code: number;
|
|
424
|
+
description: string;
|
|
425
|
+
};
|
|
426
|
+
INVALID_SOAP_CONNECTION_URL_TYPE: {
|
|
427
|
+
code: number;
|
|
428
|
+
description: string;
|
|
429
|
+
};
|
|
430
|
+
INVALID_SOAP_CONNECTION_URL: {
|
|
431
|
+
code: number;
|
|
432
|
+
description: string;
|
|
433
|
+
};
|
|
434
|
+
INVALID_ELEMENT_ID_IN_SOAP_REQUEST_XML: {
|
|
435
|
+
code: number;
|
|
436
|
+
description: string;
|
|
437
|
+
};
|
|
438
|
+
ELEMENT_NOT_MOUNTED_IN_SOAP_REQUEST_XML: {
|
|
439
|
+
code: number;
|
|
440
|
+
description: string;
|
|
441
|
+
};
|
|
442
|
+
ELEMENT_NOT_MOUNTED_IN_SOAP_RESPONSE_XML: {
|
|
443
|
+
code: number;
|
|
444
|
+
description: string;
|
|
445
|
+
};
|
|
446
|
+
DUPLICATE_ELEMENT_IN_SOAP_RESPONSE_XML: {
|
|
447
|
+
code: number;
|
|
448
|
+
description: string;
|
|
449
|
+
};
|
|
450
|
+
INVALID_ELEMENT_ID_IN_SOAP_RESPONSE_XML: {
|
|
451
|
+
code: number;
|
|
452
|
+
description: string;
|
|
453
|
+
};
|
|
454
|
+
MISSING_SOAP_REQUEST_XML: {
|
|
455
|
+
code: number;
|
|
456
|
+
description: string;
|
|
457
|
+
};
|
|
458
|
+
EMPTY_SOAP_REQUEST_XML: {
|
|
459
|
+
code: number;
|
|
460
|
+
description: string;
|
|
461
|
+
};
|
|
462
|
+
INVALID_SOAP_REQUEST_XML_TYPE: {
|
|
463
|
+
code: number;
|
|
464
|
+
description: string;
|
|
465
|
+
};
|
|
466
|
+
INVALID_SOAP_RESPONSE_XML_TYPE: {
|
|
467
|
+
code: number;
|
|
468
|
+
description: string;
|
|
469
|
+
};
|
|
470
|
+
INVALID_SOAP_REQUEST_XML: {
|
|
471
|
+
code: number;
|
|
472
|
+
description: string;
|
|
473
|
+
};
|
|
474
|
+
INVALID_SOAP_RESPONSE_XML: {
|
|
475
|
+
code: number;
|
|
476
|
+
description: string;
|
|
477
|
+
};
|
|
478
|
+
INVALID_HTTP_HEADERS_TYPE: {
|
|
479
|
+
code: number;
|
|
480
|
+
description: string;
|
|
481
|
+
};
|
|
482
|
+
INVALID_PATH_IN_RES_XML: {
|
|
483
|
+
code: number;
|
|
484
|
+
description: string;
|
|
485
|
+
};
|
|
486
|
+
INVALID_PATH_IN_ARRAY_RES_XML: {
|
|
487
|
+
code: number;
|
|
488
|
+
description: string;
|
|
489
|
+
};
|
|
414
490
|
};
|
|
415
491
|
export default SKYFLOW_ERROR_CODE;
|
|
@@ -5,3 +5,7 @@ export declare function formatFrameNameToId(name: string): string;
|
|
|
5
5
|
export declare function fillUrlWithPathAndQueryParams(url: string, pathParams?: object, queryParams?: object): string;
|
|
6
6
|
export declare function removeSpaces(inputString: string): string;
|
|
7
7
|
export declare function formatVaultURL(vaultURL: any): any;
|
|
8
|
+
export declare function checkIfDuplicateExists(arr: any): boolean;
|
|
9
|
+
export declare function replaceIdInXml(xml: string, elementLookup: any, errors: any): string;
|
|
10
|
+
export declare function getIframeNamesInSoapRequest(requestXml: string): string[] | undefined;
|
|
11
|
+
export declare function replaceIframeNameWithValues(requestXml: string, elementValuesLookup: any): string;
|
package/types/utils/logs.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ declare const logs: {
|
|
|
10
10
|
VALIDATE_DETOKENIZE_INPUT: string;
|
|
11
11
|
VALIDATE_GET_BY_ID_INPUT: string;
|
|
12
12
|
VALIDATE_CONNECTION_CONFIG: string;
|
|
13
|
+
VALIDATE_SOAP_CONNECTION_CONFIG: string;
|
|
13
14
|
VALIDATE_COLLECT_RECORDS: string;
|
|
14
15
|
VALIDATE_REVEAL_RECORDS: string;
|
|
15
16
|
CREATED_ELEMENT: string;
|
|
@@ -31,6 +32,7 @@ declare const logs: {
|
|
|
31
32
|
DETOKENIZE_TRIGGERED: string;
|
|
32
33
|
GET_BY_ID_TRIGGERED: string;
|
|
33
34
|
INVOKE_CONNECTION_TRIGGERED: string;
|
|
35
|
+
INVOKE_SOAP_CONNECTION_TRIGGERED: string;
|
|
34
36
|
EMIT_PURE_JS_REQUEST: string;
|
|
35
37
|
CAPTURE_PURE_JS_REQUEST: string;
|
|
36
38
|
LISTEN_PURE_JS_REQUEST: string;
|
|
@@ -39,6 +41,7 @@ declare const logs: {
|
|
|
39
41
|
INSERT_RECORDS_RESOLVED: string;
|
|
40
42
|
GET_BY_SKYFLOWID_RESOLVED: string;
|
|
41
43
|
SEND_INVOKE_CONNECTION_RESOLVED: string;
|
|
44
|
+
SEND_SOAP_INVOKE_CONNECTION_RESOLVED: string;
|
|
42
45
|
EMIT_EVENT: string;
|
|
43
46
|
CAPTURE_EVENT: string;
|
|
44
47
|
LISTEN_COLLECT_FRAME_READY: string;
|
|
@@ -126,6 +129,7 @@ declare const logs: {
|
|
|
126
129
|
INSERT_RECORDS_REJECTED: string;
|
|
127
130
|
GET_BY_SKYFLOWID_REJECTED: string;
|
|
128
131
|
SEND_INVOKE_CONNECTION_REJECTED: string;
|
|
132
|
+
SEND_INVOKE_SOAP_CONNECTION_REJECTED: string;
|
|
129
133
|
FAILED_REVEAL: string;
|
|
130
134
|
MISSING_TABLE_IN_COLLECT: string;
|
|
131
135
|
EMPTY_TABLE_IN_COLLECT: string;
|
|
@@ -179,6 +183,25 @@ declare const logs: {
|
|
|
179
183
|
EMPTY_ELEMENT_IN_MOUNT: string;
|
|
180
184
|
VALIDATION_FAILED: string;
|
|
181
185
|
REVEAL_ELEMENT_ERROR_STATE: string;
|
|
186
|
+
MISSING_SOAP_CONNECTION_CONFIG: string;
|
|
187
|
+
MISSING_SOAP_CONNECTION_URL: string;
|
|
188
|
+
EMPTY_SOAP_CONNECTION_URL: string;
|
|
189
|
+
INVALID_SOAP_CONNECTION_URL_TYPE: string;
|
|
190
|
+
INVALID_SOAP_CONNECTION_URL: string;
|
|
191
|
+
INVALID_ELEMENT_ID_IN_SOAP_REQUEST_XML: string;
|
|
192
|
+
INVALID_ELEMENT_ID_IN_SOAP_RESPONSE_XML: string;
|
|
193
|
+
DUPLICATE_ELEMENT_IN_SOAP_RESPONSE_XML: string;
|
|
194
|
+
ELEMENT_NOT_MOUNTED_IN_SOAP_RESPONSE_XML: string;
|
|
195
|
+
ELEMENT_NOT_MOUNTED_IN_SOAP_REQUEST_XML: string;
|
|
196
|
+
MISSING_SOAP_REQUEST_XML: string;
|
|
197
|
+
EMPTY_SOAP_REQUEST_XML: string;
|
|
198
|
+
INVALID_SOAP_REQUEST_XML_TYPE: string;
|
|
199
|
+
INVALID_SOAP_RESPONSE_XML_TYPE: string;
|
|
200
|
+
INVALID_HTTP_HEADERS_TYPE: string;
|
|
201
|
+
INVALID_SOAP_REQUEST_XML: string;
|
|
202
|
+
INVALID_SOAP_RESPONSE_XML: string;
|
|
203
|
+
INVALID_PATH_IN_RES_XML: string;
|
|
204
|
+
INVALID_PATH_IN_ARRAY_RES_XML: string;
|
|
182
205
|
};
|
|
183
206
|
warnLogs: {
|
|
184
207
|
INVALID_EXPIRATION_DATE_FORMAT: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CardType } from '../../
|
|
2
|
-
import { CollectElementInput } from '../../
|
|
3
|
-
import { IRevealElementInput } from '../../
|
|
1
|
+
import { CardType } from '../../core/constants';
|
|
2
|
+
import { CollectElementInput } from '../../core/external/collect/CollectContainer';
|
|
3
|
+
import { IRevealElementInput } from '../../core/external/reveal/RevealContainer';
|
|
4
4
|
import { ISkyflow } from '../../Skyflow';
|
|
5
|
-
import { IInsertRecordInput, IDetokenizeInput, IGetByIdInput, IConnectionConfig } from '../common';
|
|
5
|
+
import { IInsertRecordInput, IDetokenizeInput, IGetByIdInput, IConnectionConfig, ISoapConnectionConfig } from '../common';
|
|
6
6
|
export declare const validateCreditCardNumber: (cardNumber: string) => boolean;
|
|
7
7
|
export declare const detectCardType: (cardNumber: string) => CardType.DEFAULT;
|
|
8
8
|
export declare const validateExpiryDate: (date: string, format: string) => boolean;
|
|
@@ -18,3 +18,5 @@ export declare const validateConnectionConfig: (config: IConnectionConfig) => vo
|
|
|
18
18
|
export declare const validateCardNumberLengthCheck: (cardNumber: string) => boolean;
|
|
19
19
|
export declare const validateInitConfig: (initConfig: ISkyflow) => void;
|
|
20
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,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;
|