skyflow-js 1.7.0 → 1.10.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 (36) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +342 -16
  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 +8 -7
  9. package/types/{container → core}/constants.d.ts +87 -14
  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} +9 -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 +22 -0
  17. package/types/core/external/reveal/RevealElement.d.ts +22 -0
  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 +4 -0
  21. package/types/{container → core}/internal/index.d.ts +2 -0
  22. package/types/{container → core}/internal/reveal/RevealFrame.d.ts +3 -0
  23. package/types/{container → core}/internal/reveal/RevealFrameController.d.ts +0 -0
  24. package/types/{core → core-utils}/collect.d.ts +2 -1
  25. package/types/{core → core-utils}/reveal.d.ts +5 -8
  26. package/types/libs/element-options.d.ts +2 -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 +298 -22
  31. package/types/utils/helpers/index.d.ts +7 -0
  32. package/types/utils/logs.d.ts +104 -37
  33. package/types/utils/validators/index.d.ts +16 -6
  34. package/types/container/external/RevealContainer.d.ts +0 -18
  35. package/types/container/external/reveal/RevealElement.d.ts +0 -11
  36. 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.7.0",
5
+ "version": "1.10.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,14 +1,14 @@
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"
8
8
  }
9
9
  export interface ISkyflow {
10
- vaultID: string;
11
- vaultURL: string;
10
+ vaultID?: string;
11
+ vaultURL?: string;
12
12
  getBearerToken: () => Promise<string>;
13
13
  options?: Record<string, any>;
14
14
  }
@@ -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;
@@ -38,6 +39,13 @@ export declare const ELEMENT_EVENTS_TO_IFRAME: {
38
39
  GET_BEARER_TOKEN: string;
39
40
  GET_COLLECT_ELEMENT: string;
40
41
  GET_REVEAL_ELEMENT: string;
42
+ COLLECT_ELEMENT_SET_ERROR: string;
43
+ REVEAL_ELEMENT_SET_ERROR: string;
44
+ REVEAL_ELEMENT_UPDATE_OPTIONS: string;
45
+ };
46
+ export declare const REVEAL_ELEMENT_OPTIONS_TYPES: {
47
+ TOKEN: string;
48
+ ALT_TEXT: string;
41
49
  };
42
50
  export declare const ELEMENT_EVENTS_TO_CONTAINER: {
43
51
  ELEMENT_MOUNTED: string;
@@ -51,6 +59,50 @@ export declare enum ElementType {
51
59
  INPUT_FIELD = "INPUT_FIELD",
52
60
  PIN = "PIN"
53
61
  }
62
+ export declare enum CardType {
63
+ VISA = "VISA",
64
+ MASTERCARD = "MASTERCARD",
65
+ AMEX = "AMEX",
66
+ DINERS_CLUB = "DINERS_CLUB",
67
+ DISCOVER = "DISCOVER",
68
+ JCB = "JCB",
69
+ MAESTRO = "MAESTRO",
70
+ UNIONPAY = "UNIONPAY",
71
+ HIPERCARD = "HIPERCARD",
72
+ DEFAULT = "DEFAULT"
73
+ }
74
+ export declare const CARD_NUMBER_MASK: {
75
+ AMEX: (string | {
76
+ X: string;
77
+ })[];
78
+ VISA: (string | {
79
+ X: string;
80
+ })[];
81
+ MASTERCARD: (string | {
82
+ X: string;
83
+ })[];
84
+ DISCOVER: (string | {
85
+ X: string;
86
+ })[];
87
+ DINERS_CLUB: (string | {
88
+ X: string;
89
+ })[];
90
+ JCB: (string | {
91
+ X: string;
92
+ })[];
93
+ MAESTRO: (string | {
94
+ X: string;
95
+ })[];
96
+ UNIONPAY: (string | {
97
+ X: string;
98
+ })[];
99
+ HIPERCARD: (string | {
100
+ X: string;
101
+ })[];
102
+ DEFAULT: (string | {
103
+ X: string;
104
+ })[];
105
+ };
54
106
  export declare const ELEMENTS: {
55
107
  text: {
56
108
  name: string;
@@ -216,6 +268,9 @@ export declare const ELEMENTS: {
216
268
  type: string;
217
269
  };
218
270
  sensitive: boolean;
271
+ mask: (string | {
272
+ X: string;
273
+ })[];
219
274
  regex: RegExp;
220
275
  };
221
276
  EXPIRATION_DATE: {
@@ -224,7 +279,6 @@ export declare const ELEMENTS: {
224
279
  type: string;
225
280
  };
226
281
  sensitive: boolean;
227
- regex: RegExp;
228
282
  };
229
283
  CVV: {
230
284
  name: string;
@@ -336,18 +390,6 @@ export declare const COLLECT_ELEMENT_LABEL_DEFAULT_STYLES: {
336
390
  };
337
391
  };
338
392
  export declare const connectionConfigParseKeys: string[];
339
- export declare enum CardType {
340
- VISA = "VISA",
341
- MASTERCARD = "MASTERCARD",
342
- AMEX = "AMEX",
343
- DINERS_CLUB = "DINERS_CLUB",
344
- DISCOVER = "DISCOVER",
345
- JCB = "JCB",
346
- MAESTRO = "MAESTRO",
347
- UNIONPAY = "UNIONPAY",
348
- HIPERCARD = "HIPERCARD",
349
- DEFAULT = "DEFAULT"
350
- }
351
393
  export declare const CARD_TYPE_REGEX: {
352
394
  VISA: {
353
395
  regex: RegExp;
@@ -408,3 +450,34 @@ export declare const CARD_ENCODED_ICONS: {
408
450
  UNIONPAY: string;
409
451
  VISA: string;
410
452
  };
453
+ export declare const EXPIRY_DATE_MASK: {
454
+ 'MM/YYYY': (string | {
455
+ X: string;
456
+ Y: string;
457
+ })[];
458
+ 'MM/YY': (string | {
459
+ X: string;
460
+ Y: string;
461
+ })[];
462
+ 'YYYY/MM': (string | {
463
+ X: string;
464
+ Y: string;
465
+ })[];
466
+ 'YY/MM': (string | {
467
+ X: string;
468
+ Y: string;
469
+ })[];
470
+ };
471
+ export declare const DEFAULT_EXPIRATION_DATE_FORMAT = "MM/YY";
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";
482
+ export declare const FORMAT_REGEX = ":FORMAT_REGEX:";
483
+ export declare const INVALID_FORMAT_REGEX_OPTION = "Invalid formatRegex";
@@ -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;
@@ -19,5 +21,9 @@ declare class Element {
19
21
  iframeName(): string;
20
22
  isMounted(): boolean;
21
23
  isValidElement(): boolean;
24
+ setError(clientErrorText: string): void;
25
+ resetError(): void;
26
+ setValue(elementValue: string): void;
27
+ clearValue(): void;
22
28
  }
23
- 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,22 @@
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
+ }
16
+ declare class RevealContainer extends Container {
17
+ #private;
18
+ constructor(metaData: any, skyflowElements: any, context: any);
19
+ create(record: IRevealElementInput, options?: IRevealElementOptions): RevealElement;
20
+ reveal(): Promise<unknown>;
21
+ }
22
+ export default RevealContainer;
@@ -0,0 +1,22 @@
1
+ import { Context } from '../../../utils/common';
2
+ import SkyflowElement from '../common/SkyflowElement';
3
+ import { IRevealElementInput, IRevealElementOptions } from './RevealContainer';
4
+ declare class RevealElement extends SkyflowElement {
5
+ #private;
6
+ constructor(record: IRevealElementInput, options: IRevealElementOptions | undefined, metaData: any, containerId: string, elementId: string, context: Context);
7
+ getID(): string;
8
+ mount(domElementSelector: any): void;
9
+ iframeName(): string;
10
+ isMounted(): boolean;
11
+ hasToken(): boolean;
12
+ isClientSetError(): boolean;
13
+ getRecordData(): any;
14
+ getFormatRegex(): any;
15
+ setError(clientErrorText: string): void;
16
+ resetError(): void;
17
+ setAltText(altText: string): void;
18
+ clearAltText(): void;
19
+ setToken(token: string): void;
20
+ unmount(): void;
21
+ }
22
+ export default RevealElement;
@@ -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;
@@ -22,12 +22,16 @@ export declare class IFrameFormElement extends EventEmitter {
22
22
  mask?: any;
23
23
  context: Context;
24
24
  label?: string;
25
+ doesClientHasError: boolean;
26
+ clientErrorText: string | undefined;
27
+ expirationDateFormat: string;
25
28
  constructor(name: string, label: string, metaData: any, context: Context);
26
29
  onFocusChange: (focus: boolean) => void;
27
30
  changeFocus: (focus: boolean) => void;
28
31
  setReplacePattern(pattern: string[]): void;
29
32
  setMask(mask: string[]): void;
30
33
  setValidation(validations: IValidationRule[] | undefined): void;
34
+ setExpirationDateFormat(format: string): void;
31
35
  setSensitive(sensitive?: boolean): void;
32
36
  setValue: (value?: string, valid?: boolean) => void;
33
37
  getValue: () => string | undefined;
@@ -6,6 +6,7 @@ export declare class FrameController {
6
6
  controller?: FrameController;
7
7
  controllerId: string;
8
8
  private clientDomain;
9
+ private CLASS_NAME;
9
10
  constructor(controllerId: string, logLevel: LogLevel);
10
11
  static init(uuid: string, logLevel: any): FrameController;
11
12
  }
@@ -34,4 +35,5 @@ export declare class FrameElement {
34
35
  }): void;
35
36
  setClass(types: string[], dom?: HTMLElement, preText?: string): void;
36
37
  updateOptions(options: any): void;
38
+ private applyMask;
37
39
  }
@@ -3,5 +3,8 @@ declare class RevealFrame {
3
3
  static revealFrame: RevealFrame;
4
4
  static init(): void;
5
5
  constructor(record: any, context: any);
6
+ private setRevealError;
7
+ private updateRevealElementOptions;
8
+ private updateDataView;
6
9
  }
7
10
  export default RevealFrame;
@@ -1,4 +1,4 @@
1
- import { IInsertRecordInput, IInsertRecord } from '../utils/common';
1
+ import { IInsertRecordInput, IInsertRecord, IValidationRule } from '../utils/common';
2
2
  export declare const constructInsertRecordRequest: (records: IInsertRecordInput, options?: Record<string, any>) => any;
3
3
  export declare const constructInsertRecordResponse: (responseBody: any, tokens: boolean, records: IInsertRecord[]) => {
4
4
  records: any;
@@ -6,3 +6,4 @@ export declare const constructInsertRecordResponse: (responseBody: any, tokens:
6
6
  export declare const constructElementsInsertReq: (req: any, options: any) => {
7
7
  records: IInsertRecord[];
8
8
  };
9
+ export declare const checkForElementMatchRule: (validations: IValidationRule[]) => boolean;
@@ -2,15 +2,12 @@ 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 formatRecordsForClient: (response: IRevealResponseType) => {
6
- success: {
7
- token: string;
8
- }[];
9
- errors: Record<string, any>[];
5
+ export declare const applyFormatRegex: (formattedResult: object, revealRecords: any) => {};
6
+ export declare const formatRecordsForClient: (response: IRevealResponseType, formattedResults: any) => {
7
+ success: any[];
8
+ errors: any;
10
9
  } | {
11
- success: {
12
- token: string;
13
- }[];
10
+ success: any[];
14
11
  errors?: undefined;
15
12
  } | {
16
13
  errors: Record<string, any>[] | undefined;
@@ -1,7 +1,8 @@
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;
5
5
  export declare const getElements: (group: any) => string[];
6
6
  export declare const getValueAndItsUnit: (string?: string, defaultValue?: string, defaultUnit?: string) => string[];
7
7
  export declare const formatValidations: (input: CollectElementInput) => IValidationRule[] | undefined;
8
+ export declare const formatOptions: (elementType: any, options: any, logLevel: any) => 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
+ }