skyflow-js 1.8.0 → 1.11.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +177 -2
  3. package/dist/sdkNodeBuild/index.js +1 -1
  4. package/dist/sdkNodeBuild/index.js.LICENSE.txt +27 -0
  5. package/dist/sdkNodeBuild/index.js.LICENSE.txt.gz +0 -0
  6. package/dist/sdkNodeBuild/index.js.gz +0 -0
  7. package/package.json +7 -4
  8. package/types/Skyflow.d.ts +6 -5
  9. package/types/{container → core}/constants.d.ts +13 -123
  10. package/types/{container/external/PureJsController.d.ts → core/external/SkyflowContainer.d.ts} +4 -3
  11. package/types/{container/external → core/external/collect}/CollectContainer.d.ts +7 -6
  12. package/types/{container/external/element/index.d.ts → core/external/collect/CollectElement.d.ts} +5 -3
  13. package/types/core/external/common/Container.d.ts +3 -0
  14. package/types/{container/external/element → core/external/common}/IFrame.d.ts +0 -0
  15. package/types/core/external/common/SkyflowElement.d.ts +9 -0
  16. package/types/core/external/reveal/RevealContainer.d.ts +23 -0
  17. package/types/{container → core}/external/reveal/RevealElement.d.ts +5 -3
  18. package/types/{container → core}/internal/FrameElements.d.ts +0 -0
  19. package/types/core/internal/SkyflowFrame/SkyflowFrameController.d.ts +10 -0
  20. package/types/{container → core}/internal/iFrameForm/index.d.ts +0 -0
  21. package/types/{container → core}/internal/index.d.ts +0 -0
  22. package/types/{container → core}/internal/reveal/RevealFrame.d.ts +0 -0
  23. package/types/{container → core}/internal/reveal/RevealFrameController.d.ts +0 -0
  24. package/types/{core → core-utils}/collect.d.ts +0 -0
  25. package/types/{core → core-utils}/reveal.d.ts +1 -0
  26. package/types/libs/element-options.d.ts +1 -1
  27. package/types/libs/objectParse.d.ts +5 -1
  28. package/types/utils/busEvents/index.d.ts +1 -1
  29. package/types/utils/common/index.d.ts +6 -0
  30. package/types/utils/constants.d.ts +84 -0
  31. package/types/utils/helpers/index.d.ts +5 -0
  32. package/types/utils/logs.d.ts +26 -0
  33. package/types/utils/validators/index.d.ts +9 -5
  34. package/types/container/external/RevealContainer.d.ts +0 -18
  35. 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
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "skyflow-js",
3
3
  "preferGlobal": true,
4
4
  "analyze": false,
5
- "version": "1.8.0",
5
+ "version": "1.11.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.6.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",
@@ -70,13 +73,13 @@
70
73
  "eslint-config-airbnb-typescript": "^14.0.0",
71
74
  "eslint-plugin-import": "^2.24.2",
72
75
  "fork-ts-checker-webpack-plugin": "^6.3.2",
73
- "html-webpack-plugin": "^5.3.2",
76
+ "html-webpack-plugin": "^5.5.0",
74
77
  "jest": "^27.2.1",
75
78
  "typescript": "^3.9.3",
76
79
  "webpack": "^5.51.1",
77
80
  "webpack-bundle-analyzer": "^4.4.2",
78
81
  "webpack-cli": "^4.8.0",
79
- "webpack-dev-server": "^4.2.1",
82
+ "webpack-dev-server": "^4.7.3",
80
83
  "webpack-manifest-plugin": "^4.0.2",
81
84
  "webpack-merge": "^5.8.0"
82
85
  }
@@ -1,7 +1,7 @@
1
- import { ElementType } from './container/constants';
2
- import CollectContainer from './container/external/CollectContainer';
3
- import RevealContainer from './container/external/RevealContainer';
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>): RevealContainer | CollectContainer;
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 PUREJS_FRAME_CONTROLLER = "purejs_controller";
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;
@@ -103,13 +104,6 @@ export declare const CARD_NUMBER_MASK: {
103
104
  })[];
104
105
  };
105
106
  export declare const ELEMENTS: {
106
- text: {
107
- name: string;
108
- attributes: {
109
- type: string;
110
- };
111
- sensitive: boolean;
112
- };
113
107
  textarea: {
114
108
  name: string;
115
109
  attributes: {
@@ -131,20 +125,6 @@ export declare const ELEMENTS: {
131
125
  };
132
126
  sensitive: boolean;
133
127
  };
134
- password: {
135
- name: string;
136
- attributes: {
137
- type: string;
138
- };
139
- sensitive: boolean;
140
- };
141
- number: {
142
- name: string;
143
- attributes: {
144
- type: string;
145
- };
146
- sensitive: boolean;
147
- };
148
128
  dropdown: {
149
129
  name: string;
150
130
  attributes: {
@@ -152,107 +132,6 @@ export declare const ELEMENTS: {
152
132
  };
153
133
  sensitive: boolean;
154
134
  };
155
- firstName: {
156
- name: string;
157
- attributes: {
158
- type: string;
159
- };
160
- sensitive: boolean;
161
- replacePattern: string[];
162
- regex: RegExp;
163
- };
164
- lastName: {
165
- name: string;
166
- attributes: {
167
- type: string;
168
- };
169
- sensitive: boolean;
170
- replacePattern: string[];
171
- regex: RegExp;
172
- };
173
- email: {
174
- name: string;
175
- attributes: {
176
- type: string;
177
- };
178
- sensitive: boolean;
179
- regex: RegExp;
180
- };
181
- dob: {
182
- name: string;
183
- attributes: {
184
- type: string;
185
- pattern: string;
186
- };
187
- sensitive: boolean;
188
- regex: RegExp;
189
- };
190
- mobileNumber: {
191
- name: string;
192
- attributes: {
193
- type: string;
194
- };
195
- replacePattern: string[];
196
- sensitive: boolean;
197
- regex: RegExp;
198
- };
199
- ssn: {
200
- name: string;
201
- attributes: {
202
- type: string;
203
- };
204
- sensitive: boolean;
205
- replacePattern: string[];
206
- regex: RegExp;
207
- };
208
- address: {
209
- name: string;
210
- attributes: {
211
- type: string;
212
- };
213
- sensitive: boolean;
214
- regex: RegExp;
215
- };
216
- street: {
217
- name: string;
218
- attributes: {
219
- type: string;
220
- };
221
- sensitive: boolean;
222
- };
223
- zipCode: {
224
- name: string;
225
- attributes: {
226
- type: string;
227
- };
228
- sensitive: boolean;
229
- replacePattern: string[];
230
- regex: RegExp;
231
- };
232
- city: {
233
- name: string;
234
- attributes: {
235
- type: string;
236
- };
237
- sensitive: boolean;
238
- regex: RegExp;
239
- };
240
- state: {
241
- name: string;
242
- attributes: {
243
- type: string;
244
- };
245
- sensitive: boolean;
246
- regex: RegExp;
247
- };
248
- income: {
249
- name: string;
250
- attributes: {
251
- type: string;
252
- };
253
- sensitive: boolean;
254
- regex: RegExp;
255
- };
256
135
  CARDHOLDER_NAME: {
257
136
  name: string;
258
137
  attributes: {
@@ -469,3 +348,14 @@ export declare const EXPIRY_DATE_MASK: {
469
348
  };
470
349
  export declare const DEFAULT_EXPIRATION_DATE_FORMAT = "MM/YY";
471
350
  export declare const ALLOWED_EXPIRY_DATE_FORMATS: string[];
351
+ export declare const soapReqXmlErrors: {
352
+ code: number;
353
+ description: string;
354
+ }[];
355
+ export declare const soapResXmlErrors: {
356
+ code: number;
357
+ description: string;
358
+ }[];
359
+ export declare const PATH_NOT_FOUND_IN_RES_XML = "skyflow: Path not found";
360
+ export declare const FORMAT_REGEX = ":FORMAT_REGEX:";
361
+ export declare const REPLACE_TEXT = ":REPLACE_TEXT:";
@@ -1,10 +1,11 @@
1
- import { IDetokenizeInput, IGetByIdInput, IConnectionConfig } from '../../utils/common';
2
- declare class PureJsController {
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 PureJsController;
11
+ export default SkyflowContainer;
@@ -1,6 +1,7 @@
1
- import { ElementType } from '../constants';
2
- import Element from './element';
3
- import { IInsertRecordInput, IValidationRule } from '../../utils/common';
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) => Element;
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;
@@ -1,9 +1,11 @@
1
1
  import { Context } from '../../../utils/common';
2
- declare class Element {
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 Element;
29
+ export default CollectElement;
@@ -0,0 +1,3 @@
1
+ declare abstract class Container {
2
+ }
3
+ export default Container;
@@ -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;
@@ -0,0 +1,23 @@
1
+ import { RedactionType } from '../../../utils/common';
2
+ import Container from '../common/Container';
3
+ import RevealElement from './RevealElement';
4
+ export interface IRevealElementInput {
5
+ token?: string;
6
+ redaction?: RedactionType;
7
+ inputStyles?: object;
8
+ label?: string;
9
+ labelStyles?: object;
10
+ altText?: string;
11
+ errorTextStyles?: object;
12
+ }
13
+ export interface IRevealElementOptions {
14
+ formatRegex?: string | object;
15
+ replaceText?: string;
16
+ }
17
+ declare class RevealContainer extends Container {
18
+ #private;
19
+ constructor(metaData: any, skyflowElements: any, context: any);
20
+ create(record: IRevealElementInput, options?: IRevealElementOptions): RevealElement;
21
+ reveal(): Promise<unknown>;
22
+ }
23
+ export default RevealContainer;
@@ -1,8 +1,10 @@
1
- import { IRevealElementInput } from '../RevealContainer';
2
1
  import { Context } from '../../../utils/common';
3
- declare class RevealElement {
2
+ import SkyflowElement from '../common/SkyflowElement';
3
+ import { IRevealElementInput, IRevealElementOptions } 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, options: IRevealElementOptions | undefined, 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;
@@ -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
@@ -2,6 +2,7 @@ import Client from '../client';
2
2
  import { ISkyflowIdRecord, IRevealRecord, IRevealResponseType } from '../utils/common';
3
3
  export declare const fetchRecordsByTokenId: (tokenIdRecords: IRevealRecord[], client: Client) => Promise<IRevealResponseType>;
4
4
  export declare const formatRecordsForIframe: (response: IRevealResponseType) => Record<string, string>;
5
+ export declare const applyFormatRegex: (formattedResult: object, revealRecords: any) => {};
5
6
  export declare const formatRecordsForClient: (response: IRevealResponseType) => {
6
7
  success: {
7
8
  token: string;
@@ -1,4 +1,4 @@
1
- import { CollectElementInput } from '../container/external/CollectContainer';
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,6 @@
1
+ import Client from '../client';
1
2
  export declare function connectionConfigParser(data: any, configKey: any): void;
2
- export declare function constructInvokeConnectionRequest(data: any): Promise<any>;
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,3 +1,3 @@
1
1
  export declare function getCollectElementValue(key: any, elementIframename: any): Promise<unknown>;
2
- export declare function getRevealElementValue(key: any, revealFrameName: any): Promise<unknown>;
2
+ export declare function getRevealElementValue(key: any, revealFrameName: any, client: any): Promise<unknown>;
3
3
  export declare function getAccessToken(): Promise<unknown>;
@@ -80,3 +80,9 @@ export interface IValidationRule {
80
80
  type: ValidationRuleType;
81
81
  params: any;
82
82
  }
83
+ export interface ISoapConnectionConfig {
84
+ connectionURL: string;
85
+ httpHeaders?: any;
86
+ requestXML: any;
87
+ responseXML?: any;
88
+ }
@@ -411,5 +411,89 @@ 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
+ };
490
+ INVALID_FORMAT_REGEX: {
491
+ code: number;
492
+ description: string;
493
+ };
494
+ INVALID_REPLACE_TEXT_TYPE: {
495
+ code: number;
496
+ description: string;
497
+ };
414
498
  };
415
499
  export default SKYFLOW_ERROR_CODE;
@@ -5,3 +5,8 @@ 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 replaceIdInResponseXml(xml: string, elementLookup: any, errors: any): string;
11
+ export declare function getIframeNamesInSoapRequest(requestXml: string): string[] | undefined;
12
+ export declare function replaceIframeNameWithValues(requestXml: string, elementValuesLookup: any): string;
@@ -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,12 +183,34 @@ 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;
205
+ INVALID_FORMAT_REGEX: string;
206
+ INVALID_REPLACE_TEXT_TYPE: string;
182
207
  };
183
208
  warnLogs: {
184
209
  INVALID_EXPIRATION_DATE_FORMAT: string;
185
210
  UNABLE_TO_SET_VALUE_IN_PROD_ENV: string;
186
211
  UNABLE_TO_CLEAR_VALUE_IN_PROD_ENV: string;
187
212
  COLLECT_ALT_TEXT_DEPERECATED: string;
213
+ NO_MATCH_FOUND_FOR_FORMAT_REGEX: string;
188
214
  };
189
215
  };
190
216
  export default logs;
@@ -1,8 +1,8 @@
1
- import { CardType } from '../../container/constants';
2
- import { CollectElementInput } from '../../container/external/CollectContainer';
3
- import { IRevealElementInput } from '../../container/external/RevealContainer';
1
+ import { CardType } from '../../core/constants';
2
+ import { CollectElementInput } from '../../core/external/collect/CollectContainer';
3
+ import { IRevealElementInput, IRevealElementOptions } 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;
@@ -14,7 +14,11 @@ export declare const validateGetByIdInput: (getByIdInput: IGetByIdInput) => void
14
14
  export declare const validateRevealElementRecords: (records: IRevealElementInput[]) => void;
15
15
  export declare const isValidURL: (url: string) => boolean;
16
16
  export declare const isValidRegExp: (input: any) => boolean;
17
- export declare const validateConnectionConfig: (config: IConnectionConfig) => void;
17
+ export declare const validateRevealOptions: (options: IRevealElementOptions) => void;
18
+ export declare const validateConnectionConfig: (config: IConnectionConfig, initConfig: ISkyflow) => void;
18
19
  export declare const validateCardNumberLengthCheck: (cardNumber: string) => boolean;
19
20
  export declare const validateInitConfig: (initConfig: ISkyflow) => void;
21
+ export declare const validateInitConfigInConnections: (initConfig: ISkyflow) => void;
20
22
  export declare const validateCollectElementInput: (input: CollectElementInput, logLevel: any) => void;
23
+ export declare const isValidXml: (xml: string) => boolean;
24
+ export declare const validateSoapConnectionConfig: (config: ISoapConnectionConfig, initConfig: ISkyflow) => void;