skyflow-js 1.20.0 → 1.21.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 +4 -0
- package/README.md +0 -3
- package/dist/sdkNodeBuild/index.js +1 -1
- package/dist/sdkNodeBuild/index.js.LICENSE.txt +0 -48
- package/dist/sdkNodeBuild/index.js.gz +0 -0
- package/package.json +3 -3
- package/types/client/index.d.ts +1 -1
- package/types/core/constants.d.ts +0 -14
- package/types/core/external/collect/{CollectContainer.d.ts → collect-container.d.ts} +2 -2
- package/types/core/external/collect/{CollectElement.d.ts → collect-element.d.ts} +1 -1
- package/types/core/external/common/{Container.d.ts → container.d.ts} +0 -0
- package/types/core/external/common/{IFrame.d.ts → iframe.d.ts} +0 -0
- package/types/core/external/common/{SkyflowElement.d.ts → skyflow-element.d.ts} +0 -0
- package/types/core/external/reveal/{RevealContainer.d.ts → reveal-container.d.ts} +2 -2
- package/types/core/external/reveal/{RevealElement.d.ts → reveal-element.d.ts} +2 -2
- package/types/core/external/{SkyflowContainer.d.ts → skyflow-container.d.ts} +1 -3
- package/types/core/internal/{FrameElements.d.ts → frame-elements.d.ts} +0 -0
- package/types/core/internal/{iFrameForm → iframe-form}/index.d.ts +0 -0
- package/types/core/internal/index.d.ts +1 -1
- package/types/core/internal/reveal/{RevealFrameController.d.ts → reveal-frame-controller.d.ts} +0 -0
- package/types/core/internal/reveal/{RevealFrame.d.ts → reveal-frame.d.ts} +0 -0
- package/types/core/internal/{SkyflowFrame/SkyflowFrameController.d.ts → skyflow-frame/skyflow-frame-controller.d.ts} +0 -3
- package/types/index-node.d.ts +1 -1
- package/types/libs/{Bus.d.ts → bus.d.ts} +0 -0
- package/types/libs/{deepClone.d.ts → deep-clone.d.ts} +0 -0
- package/types/libs/element-options.d.ts +1 -1
- package/types/libs/{SkyflowError.d.ts → skyflow-error.d.ts} +0 -0
- package/types/{Skyflow.d.ts → skyflow.d.ts} +3 -5
- package/types/utils/bus-events/index.d.ts +2 -0
- package/types/utils/common/index.d.ts +0 -15
- package/types/utils/constants.d.ts +0 -124
- package/types/utils/helpers/index.d.ts +0 -20
- package/types/utils/{jwtUtils → jwt-utils}/index.d.ts +0 -0
- package/types/utils/{logsHelper → logs-helper}/index.d.ts +0 -0
- package/types/utils/logs.d.ts +0 -40
- package/types/utils/validators/index.d.ts +4 -9
- package/dist/sdkNodeBuild/index.js.LICENSE.txt.gz +0 -0
- package/types/libs/objectParse.d.ts +0 -6
- package/types/utils/busEvents/index.d.ts +0 -4
|
@@ -4,51 +4,3 @@
|
|
|
4
4
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
5
5
|
* @license MIT
|
|
6
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
|
-
|
|
15
|
-
/*!
|
|
16
|
-
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
17
|
-
*
|
|
18
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
19
|
-
* Released under the MIT License.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/*!
|
|
23
|
-
* is-primitive <https://github.com/jonschlinkert/is-primitive>
|
|
24
|
-
*
|
|
25
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
26
|
-
* Released under the MIT License.
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
/*!
|
|
30
|
-
* isobject <https://github.com/jonschlinkert/isobject>
|
|
31
|
-
*
|
|
32
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
33
|
-
* Released under the MIT License.
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
/*!
|
|
37
|
-
* set-value <https://github.com/jonschlinkert/set-value>
|
|
38
|
-
*
|
|
39
|
-
* Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
|
|
40
|
-
* Released under the MIT License.
|
|
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
|
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.21.0",
|
|
6
6
|
"author": "Skyflow",
|
|
7
7
|
"description": "Skyflow JavaScript SDK",
|
|
8
8
|
"homepage": "https://github.com/skyflowapi/skyflow-js",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"type-check:watch": "npm run type-check -- --watch",
|
|
24
24
|
"build:types": "tsc --emitDeclarationOnly",
|
|
25
25
|
"dev": "webpack serve --config=webpack.dev.js --open --hot ",
|
|
26
|
-
"build-browser-sdk": "webpack --config=webpack.
|
|
27
|
-
"build-node-sdk": "webpack --config=webpack.
|
|
26
|
+
"build-browser-sdk": "webpack --config=webpack.skyflow-browser.js",
|
|
27
|
+
"build-node-sdk": "webpack --config=webpack.skyflow-node.js",
|
|
28
28
|
"build-iframe": "webpack --config=webpack.iframe.js",
|
|
29
29
|
"test": "jest --config=jest.config.json"
|
|
30
30
|
},
|
package/types/client/index.d.ts
CHANGED
|
@@ -7,8 +7,6 @@ export declare const PUREJS_TYPES: {
|
|
|
7
7
|
INSERT: string;
|
|
8
8
|
DETOKENIZE: string;
|
|
9
9
|
GET_BY_SKYFLOWID: string;
|
|
10
|
-
INVOKE_CONNECTION: string;
|
|
11
|
-
INVOKE_SOAP_CONNECTION: string;
|
|
12
10
|
};
|
|
13
11
|
export declare const ELEMENT_EVENTS_TO_CLIENT: {
|
|
14
12
|
CHANGE: string;
|
|
@@ -309,7 +307,6 @@ export declare const COLLECT_ELEMENT_LABEL_DEFAULT_STYLES: {
|
|
|
309
307
|
marginBottom: string;
|
|
310
308
|
};
|
|
311
309
|
};
|
|
312
|
-
export declare const connectionConfigParseKeys: string[];
|
|
313
310
|
export declare const CARD_TYPE_REGEX: {
|
|
314
311
|
VISA: {
|
|
315
312
|
regex: RegExp;
|
|
@@ -402,17 +399,6 @@ export declare const DEFAULT_EXPIRATION_DATE_FORMAT = "MM/YY";
|
|
|
402
399
|
export declare const ALLOWED_EXPIRY_DATE_FORMATS: string[];
|
|
403
400
|
export declare const DEFAULT_EXPIRATION_YEAR_FORMAT = "YY";
|
|
404
401
|
export declare const ALLOWED_EXPIRY_YEAR_FORMATS: string[];
|
|
405
|
-
export declare const soapReqXmlErrors: {
|
|
406
|
-
code: number;
|
|
407
|
-
description: string;
|
|
408
|
-
}[];
|
|
409
|
-
export declare const soapResXmlErrors: {
|
|
410
|
-
code: number;
|
|
411
|
-
description: string;
|
|
412
|
-
}[];
|
|
413
|
-
export declare const PATH_NOT_FOUND_IN_RES_XML = "skyflow: Path not found";
|
|
414
|
-
export declare const FORMAT_REGEX = ":FORMAT_REGEX:";
|
|
415
|
-
export declare const REPLACE_TEXT = ":REPLACE_TEXT:";
|
|
416
402
|
export declare enum ContentType {
|
|
417
403
|
APPLICATIONORJSON = "application/json",
|
|
418
404
|
TEXTORPLAIN = "text/plain",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IValidationRule, IInsertRecordInput } from '../../../utils/common';
|
|
2
2
|
import { ElementType } from '../../constants';
|
|
3
|
-
import Container from '../common/
|
|
4
|
-
import CollectElement from './
|
|
3
|
+
import Container from '../common/container';
|
|
4
|
+
import CollectElement from './collect-element';
|
|
5
5
|
export interface CollectElementInput {
|
|
6
6
|
table?: string;
|
|
7
7
|
column?: string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RedactionType } from '../../../utils/common';
|
|
2
|
-
import Container from '../common/
|
|
3
|
-
import RevealElement from './
|
|
2
|
+
import Container from '../common/container';
|
|
3
|
+
import RevealElement from './reveal-element';
|
|
4
4
|
export interface IRevealElementInput {
|
|
5
5
|
token?: string;
|
|
6
6
|
redaction?: RedactionType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context } from '../../../utils/common';
|
|
2
|
-
import SkyflowElement from '../common/
|
|
3
|
-
import { IRevealElementInput, IRevealElementOptions } from './
|
|
2
|
+
import SkyflowElement from '../common/skyflow-element';
|
|
3
|
+
import { IRevealElementInput, IRevealElementOptions } from './reveal-container';
|
|
4
4
|
declare class RevealElement extends SkyflowElement {
|
|
5
5
|
#private;
|
|
6
6
|
constructor(record: IRevealElementInput, options: IRevealElementOptions | undefined, metaData: any, containerId: string, elementId: string, context: Context);
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { IDetokenizeInput, IGetByIdInput
|
|
1
|
+
import { IDetokenizeInput, IGetByIdInput } from '../../utils/common';
|
|
2
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>;
|
|
9
|
-
invokeConnection(config: IConnectionConfig): Promise<unknown>;
|
|
10
8
|
}
|
|
11
9
|
export default SkyflowContainer;
|
|
File without changes
|
|
File without changes
|
package/types/core/internal/reveal/{RevealFrameController.d.ts → reveal-frame-controller.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { IConnectionConfig, ISoapConnectionConfig } from '../../../utils/common';
|
|
2
1
|
declare class SkyflowFrameController {
|
|
3
2
|
#private;
|
|
4
3
|
constructor(clientId: any);
|
|
5
4
|
static init(clientId: any): SkyflowFrameController;
|
|
6
5
|
insertData(records: any, options: any): Promise<unknown>;
|
|
7
|
-
sendInvokeConnectionRequest(config: IConnectionConfig): Promise<unknown>;
|
|
8
|
-
invokeSoapConnectionRequest(config: ISoapConnectionConfig): Promise<unknown>;
|
|
9
6
|
}
|
|
10
7
|
export default SkyflowFrameController;
|
package/types/index-node.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Skyflow from './
|
|
1
|
+
import Skyflow from './skyflow';
|
|
2
2
|
export default Skyflow;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollectElementInput } from '../core/external/collect/
|
|
1
|
+
import { CollectElementInput } from '../core/external/collect/collect-container';
|
|
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;
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElementType } from './core/constants';
|
|
2
|
-
import RevealContainer from './core/external/reveal/
|
|
3
|
-
import CollectContainer from './core/external/collect/
|
|
4
|
-
import { IRevealResponseType,
|
|
2
|
+
import RevealContainer from './core/external/reveal/reveal-container';
|
|
3
|
+
import CollectContainer from './core/external/collect/collect-container';
|
|
4
|
+
import { IRevealResponseType, RequestMethod, IInsertRecordInput, IDetokenizeInput, IGetByIdInput, RedactionType, EventName, Env, LogLevel, ValidationRuleType } from './utils/common';
|
|
5
5
|
export declare enum ContainerType {
|
|
6
6
|
COLLECT = "COLLECT",
|
|
7
7
|
REVEAL = "REVEAL"
|
|
@@ -20,8 +20,6 @@ declare class Skyflow {
|
|
|
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
|
-
invokeConnection(config: IConnectionConfig): Promise<unknown>;
|
|
24
|
-
invokeSoapConnection(config: ISoapConnectionConfig): Promise<unknown>;
|
|
25
23
|
static get ContainerType(): typeof ContainerType;
|
|
26
24
|
static get ElementType(): typeof ElementType;
|
|
27
25
|
static get RedactionType(): typeof RedactionType;
|
|
@@ -67,22 +67,7 @@ export interface Context {
|
|
|
67
67
|
logLevel: LogLevel;
|
|
68
68
|
env: Env;
|
|
69
69
|
}
|
|
70
|
-
export interface IConnectionConfig {
|
|
71
|
-
connectionURL: string;
|
|
72
|
-
methodName: RequestMethod;
|
|
73
|
-
pathParams?: any;
|
|
74
|
-
queryParams?: any;
|
|
75
|
-
requestBody?: any;
|
|
76
|
-
requestHeader?: any;
|
|
77
|
-
responseBody?: any;
|
|
78
|
-
}
|
|
79
70
|
export interface IValidationRule {
|
|
80
71
|
type: ValidationRuleType;
|
|
81
72
|
params: any;
|
|
82
73
|
}
|
|
83
|
-
export interface ISoapConnectionConfig {
|
|
84
|
-
connectionURL: string;
|
|
85
|
-
httpHeaders?: any;
|
|
86
|
-
requestXML: any;
|
|
87
|
-
responseXML?: any;
|
|
88
|
-
}
|
|
@@ -255,10 +255,6 @@ declare const SKYFLOW_ERROR_CODE: {
|
|
|
255
255
|
code: number;
|
|
256
256
|
description: string;
|
|
257
257
|
};
|
|
258
|
-
ELEMENT_MUST_HAVE_TOKEN: {
|
|
259
|
-
code: number;
|
|
260
|
-
description: string;
|
|
261
|
-
};
|
|
262
258
|
DUPLICATE_ELEMENT: {
|
|
263
259
|
code: number;
|
|
264
260
|
description: string;
|
|
@@ -283,38 +279,6 @@ declare const SKYFLOW_ERROR_CODE: {
|
|
|
283
279
|
code: number;
|
|
284
280
|
description: string;
|
|
285
281
|
};
|
|
286
|
-
MISSING_CONNECTION_CONFIG: {
|
|
287
|
-
code: number;
|
|
288
|
-
description: string;
|
|
289
|
-
};
|
|
290
|
-
EMPTY_CONNECTION_URL: {
|
|
291
|
-
code: number;
|
|
292
|
-
description: string;
|
|
293
|
-
};
|
|
294
|
-
MISSING_CONNECTION_URL: {
|
|
295
|
-
code: number;
|
|
296
|
-
description: string;
|
|
297
|
-
};
|
|
298
|
-
INVALID_CONNECTION_URL_TYPE: {
|
|
299
|
-
code: number;
|
|
300
|
-
description: string;
|
|
301
|
-
};
|
|
302
|
-
ELEMENTS_NOT_MOUNTED_INVOKE_CONNECTION: {
|
|
303
|
-
code: number;
|
|
304
|
-
description: string;
|
|
305
|
-
};
|
|
306
|
-
INVALID_CONNECTION_URL: {
|
|
307
|
-
code: number;
|
|
308
|
-
description: string;
|
|
309
|
-
};
|
|
310
|
-
MISSING_METHODNAME_KEY: {
|
|
311
|
-
code: number;
|
|
312
|
-
description: string;
|
|
313
|
-
};
|
|
314
|
-
INVALID_METHODNAME_VALUE: {
|
|
315
|
-
code: number;
|
|
316
|
-
description: string;
|
|
317
|
-
};
|
|
318
282
|
FRAME_NOT_FOUND: {
|
|
319
283
|
code: number;
|
|
320
284
|
description: string;
|
|
@@ -355,10 +319,6 @@ declare const SKYFLOW_ERROR_CODE: {
|
|
|
355
319
|
code: number;
|
|
356
320
|
description: string;
|
|
357
321
|
};
|
|
358
|
-
RESPONSE_BODY_KEY_MISSING: {
|
|
359
|
-
code: number;
|
|
360
|
-
description: string;
|
|
361
|
-
};
|
|
362
322
|
INVALID_VALIDATIONS_TYPE: {
|
|
363
323
|
code: number;
|
|
364
324
|
description: string;
|
|
@@ -411,90 +371,6 @@ declare const SKYFLOW_ERROR_CODE: {
|
|
|
411
371
|
code: number;
|
|
412
372
|
description: string;
|
|
413
373
|
};
|
|
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
|
-
};
|
|
490
|
-
INVALID_FORMAT_REGEX: {
|
|
491
|
-
code: number;
|
|
492
|
-
description: string;
|
|
493
|
-
};
|
|
494
|
-
INVALID_REPLACE_TEXT_TYPE: {
|
|
495
|
-
code: number;
|
|
496
|
-
description: string;
|
|
497
|
-
};
|
|
498
374
|
INVALID_FILE_TYPE: {
|
|
499
375
|
code: number;
|
|
500
376
|
description: string;
|
|
@@ -1,28 +1,8 @@
|
|
|
1
|
-
import { IConnectionConfig } from '../common';
|
|
2
1
|
export declare const flattenObject: (obj: any, roots?: any, sep?: string) => any;
|
|
3
|
-
export declare function deletePropertyPath(obj: any, path: any): void;
|
|
4
|
-
export declare function clearEmpties(o: any): void;
|
|
5
2
|
export declare function formatFrameNameToId(name: string): string;
|
|
6
|
-
export declare function fillUrlWithPathAndQueryParams(url: string, pathParams?: object, queryParams?: object): string;
|
|
7
3
|
export declare function removeSpaces(inputString: string): string;
|
|
8
4
|
export declare function formatVaultURL(vaultURL: any): any;
|
|
9
5
|
export declare function checkIfDuplicateExists(arr: any): boolean;
|
|
10
|
-
export declare function replaceIdInXml(xml: string, elementLookup: any, errors: any): string;
|
|
11
|
-
export declare function replaceIdInResponseXml(xml: string, elementLookup: any, errors: any): string;
|
|
12
|
-
export declare function getIframeNamesInSoapRequest(requestXml: string): string[] | undefined;
|
|
13
|
-
export declare function replaceIframeNameWithValues(requestXml: string, elementValuesLookup: any): string;
|
|
14
|
-
export declare function lowercaseKeys(obj: {
|
|
15
|
-
[key: string]: any;
|
|
16
|
-
}): any;
|
|
17
|
-
export declare function updateRequestBodyInConnection(config: IConnectionConfig): {
|
|
18
|
-
connectionURL: string;
|
|
19
|
-
methodName: import("../common").RequestMethod;
|
|
20
|
-
pathParams?: any;
|
|
21
|
-
queryParams?: any;
|
|
22
|
-
requestBody?: any;
|
|
23
|
-
requestHeader?: any;
|
|
24
|
-
responseBody?: any;
|
|
25
|
-
};
|
|
26
6
|
export declare const appendZeroToOne: (value: any) => any;
|
|
27
7
|
export declare const getReturnValue: (value: string | Blob, element: string, doesReturnValue: boolean) => string | Blob | undefined;
|
|
28
8
|
export declare const copyToClipboard: (text: string) => void;
|
|
File without changes
|
|
File without changes
|
package/types/utils/logs.d.ts
CHANGED
|
@@ -9,8 +9,6 @@ declare const logs: {
|
|
|
9
9
|
VALIDATE_RECORDS: string;
|
|
10
10
|
VALIDATE_DETOKENIZE_INPUT: string;
|
|
11
11
|
VALIDATE_GET_BY_ID_INPUT: string;
|
|
12
|
-
VALIDATE_CONNECTION_CONFIG: string;
|
|
13
|
-
VALIDATE_SOAP_CONNECTION_CONFIG: string;
|
|
14
12
|
VALIDATE_COLLECT_RECORDS: string;
|
|
15
13
|
VALIDATE_REVEAL_RECORDS: string;
|
|
16
14
|
CREATED_ELEMENT: string;
|
|
@@ -31,8 +29,6 @@ declare const logs: {
|
|
|
31
29
|
INSERT_TRIGGERED: string;
|
|
32
30
|
DETOKENIZE_TRIGGERED: string;
|
|
33
31
|
GET_BY_ID_TRIGGERED: string;
|
|
34
|
-
INVOKE_CONNECTION_TRIGGERED: string;
|
|
35
|
-
INVOKE_SOAP_CONNECTION_TRIGGERED: string;
|
|
36
32
|
EMIT_PURE_JS_REQUEST: string;
|
|
37
33
|
CAPTURE_PURE_JS_REQUEST: string;
|
|
38
34
|
LISTEN_PURE_JS_REQUEST: string;
|
|
@@ -40,8 +36,6 @@ declare const logs: {
|
|
|
40
36
|
FETCH_RECORDS_RESOLVED: string;
|
|
41
37
|
INSERT_RECORDS_RESOLVED: string;
|
|
42
38
|
GET_BY_SKYFLOWID_RESOLVED: string;
|
|
43
|
-
SEND_INVOKE_CONNECTION_RESOLVED: string;
|
|
44
|
-
SEND_SOAP_INVOKE_CONNECTION_RESOLVED: string;
|
|
45
39
|
EMIT_EVENT: string;
|
|
46
40
|
CAPTURE_EVENT: string;
|
|
47
41
|
LISTEN_COLLECT_FRAME_READY: string;
|
|
@@ -129,8 +123,6 @@ declare const logs: {
|
|
|
129
123
|
FETCH_RECORDS_REJECTED: string;
|
|
130
124
|
INSERT_RECORDS_REJECTED: string;
|
|
131
125
|
GET_BY_SKYFLOWID_REJECTED: string;
|
|
132
|
-
SEND_INVOKE_CONNECTION_REJECTED: string;
|
|
133
|
-
SEND_INVOKE_SOAP_CONNECTION_REJECTED: string;
|
|
134
126
|
FAILED_REVEAL: string;
|
|
135
127
|
MISSING_TABLE_IN_COLLECT: string;
|
|
136
128
|
EMPTY_TABLE_IN_COLLECT: string;
|
|
@@ -147,15 +139,6 @@ declare const logs: {
|
|
|
147
139
|
INVALID_ELEMENT_TYPE: string;
|
|
148
140
|
INVALID_ELEMENT_SELECTOR: string;
|
|
149
141
|
CANNOT_CHANGE_ELEMENT: string;
|
|
150
|
-
MISSING_CONNECTION_CONFIG: string;
|
|
151
|
-
MISSING_CONNECTION_URL: string;
|
|
152
|
-
EMPTY_CONNECTION_URL: string;
|
|
153
|
-
INVALID_CONNECTION_URL_TYPE: string;
|
|
154
|
-
INVALID_CONNECTION_URL: string;
|
|
155
|
-
MISSING_METHODNAME_KEY: string;
|
|
156
|
-
INVALID_METHODNAME_VALUE: string;
|
|
157
|
-
ELEMENTS_NOT_MOUNTED_INVOKE_CONNECTION: string;
|
|
158
|
-
ELEMENT_MUST_HAVE_TOKEN: string;
|
|
159
142
|
INVALID_IFRAME: string;
|
|
160
143
|
INVALID_FIELD: string;
|
|
161
144
|
FRAME_NOT_FOUND: string;
|
|
@@ -169,7 +152,6 @@ declare const logs: {
|
|
|
169
152
|
NETWORK_ERROR: string;
|
|
170
153
|
CONNECTION_ERROR: string;
|
|
171
154
|
ERROR_OCCURED: string;
|
|
172
|
-
RESPONSE_BODY_KEY_MISSING: string;
|
|
173
155
|
INVALID_VALIDATIONS_TYPE: string;
|
|
174
156
|
MISSING_VALIDATION_RULE_TYPE: string;
|
|
175
157
|
INVALID_VALIDATION_RULE_TYPE: string;
|
|
@@ -184,27 +166,6 @@ declare const logs: {
|
|
|
184
166
|
EMPTY_ELEMENT_IN_MOUNT: string;
|
|
185
167
|
VALIDATION_FAILED: string;
|
|
186
168
|
REVEAL_ELEMENT_ERROR_STATE: string;
|
|
187
|
-
MISSING_SOAP_CONNECTION_CONFIG: string;
|
|
188
|
-
MISSING_SOAP_CONNECTION_URL: string;
|
|
189
|
-
EMPTY_SOAP_CONNECTION_URL: string;
|
|
190
|
-
INVALID_SOAP_CONNECTION_URL_TYPE: string;
|
|
191
|
-
INVALID_SOAP_CONNECTION_URL: string;
|
|
192
|
-
INVALID_ELEMENT_ID_IN_SOAP_REQUEST_XML: string;
|
|
193
|
-
INVALID_ELEMENT_ID_IN_SOAP_RESPONSE_XML: string;
|
|
194
|
-
DUPLICATE_ELEMENT_IN_SOAP_RESPONSE_XML: string;
|
|
195
|
-
ELEMENT_NOT_MOUNTED_IN_SOAP_RESPONSE_XML: string;
|
|
196
|
-
ELEMENT_NOT_MOUNTED_IN_SOAP_REQUEST_XML: string;
|
|
197
|
-
MISSING_SOAP_REQUEST_XML: string;
|
|
198
|
-
EMPTY_SOAP_REQUEST_XML: string;
|
|
199
|
-
INVALID_SOAP_REQUEST_XML_TYPE: string;
|
|
200
|
-
INVALID_SOAP_RESPONSE_XML_TYPE: string;
|
|
201
|
-
INVALID_HTTP_HEADERS_TYPE: string;
|
|
202
|
-
INVALID_SOAP_REQUEST_XML: string;
|
|
203
|
-
INVALID_SOAP_RESPONSE_XML: string;
|
|
204
|
-
INVALID_PATH_IN_RES_XML: string;
|
|
205
|
-
INVALID_PATH_IN_ARRAY_RES_XML: string;
|
|
206
|
-
INVALID_FORMAT_REGEX: string;
|
|
207
|
-
INVALID_REPLACE_TEXT_TYPE: string;
|
|
208
169
|
INVALID_FILE_TYPE: string;
|
|
209
170
|
};
|
|
210
171
|
warnLogs: {
|
|
@@ -214,7 +175,6 @@ declare const logs: {
|
|
|
214
175
|
UNABLE_TO_CLEAR_VALUE_IN_PROD_ENV: string;
|
|
215
176
|
COLLECT_ALT_TEXT_DEPERECATED: string;
|
|
216
177
|
NO_MATCH_FOUND_FOR_FORMAT_REGEX: string;
|
|
217
|
-
DEPRECATE_INVOKE_CONNECTION: string;
|
|
218
178
|
};
|
|
219
179
|
};
|
|
220
180
|
export default logs;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CardType } from '../../core/constants';
|
|
2
|
-
import { CollectElementInput } from '../../core/external/collect/
|
|
3
|
-
import { IRevealElementInput
|
|
4
|
-
import { ISkyflow } from '../../
|
|
5
|
-
import { IInsertRecordInput, IDetokenizeInput, IGetByIdInput
|
|
2
|
+
import { CollectElementInput } from '../../core/external/collect/collect-container';
|
|
3
|
+
import { IRevealElementInput } from '../../core/external/reveal/reveal-container';
|
|
4
|
+
import { ISkyflow } from '../../skyflow';
|
|
5
|
+
import { IInsertRecordInput, IDetokenizeInput, IGetByIdInput } 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;
|
|
@@ -17,11 +17,6 @@ export declare const validateGetByIdInput: (getByIdInput: IGetByIdInput) => void
|
|
|
17
17
|
export declare const validateRevealElementRecords: (records: IRevealElementInput[]) => void;
|
|
18
18
|
export declare const isValidURL: (url: string) => boolean;
|
|
19
19
|
export declare const isValidRegExp: (input: any) => boolean;
|
|
20
|
-
export declare const validateRevealOptions: (options: IRevealElementOptions) => void;
|
|
21
|
-
export declare const validateConnectionConfig: (config: IConnectionConfig, initConfig: ISkyflow) => void;
|
|
22
20
|
export declare const validateCardNumberLengthCheck: (cardNumber?: string) => boolean;
|
|
23
21
|
export declare const validateInitConfig: (initConfig: ISkyflow) => void;
|
|
24
|
-
export declare const validateInitConfigInConnections: (initConfig: ISkyflow) => void;
|
|
25
22
|
export declare const validateCollectElementInput: (input: CollectElementInput, logLevel: any) => void;
|
|
26
|
-
export declare const isValidXml: (xml: string) => boolean;
|
|
27
|
-
export declare const validateSoapConnectionConfig: (config: ISoapConnectionConfig, initConfig: ISkyflow) => void;
|
|
Binary file
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import Client from '../client';
|
|
2
|
-
export declare function connectionConfigParser(data: any, configKey: any): void;
|
|
3
|
-
export declare function constructInvokeConnectionRequest(data: any, client: Client): Promise<any>;
|
|
4
|
-
export declare function constructSoapConnectionRequestXml(requestXml: string, client: Client): Promise<string>;
|
|
5
|
-
export declare function extractSkyflowTagsFromResponseBody(responseBody: any, path: string, skyflowTags: any, connectionResponse: any): void;
|
|
6
|
-
export declare function soapResponseBodyParser(mainTags: any, connectionResponse: any): void;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare function getCollectElementValue(key: any, elementIframename: any): Promise<unknown>;
|
|
2
|
-
export declare function getRevealElementValue(key: any, revealFrameName: any, client: any): Promise<unknown>;
|
|
3
|
-
export declare function getAccessToken(clientId: any): Promise<unknown>;
|
|
4
|
-
export declare function updateElementState(frameName: string, value: any): void;
|