skyflow-js 2.0.0 → 2.1.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.
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": "2.0.0",
5
+ "version": "2.1.0",
6
6
  "author": "Skyflow",
7
7
  "description": "Skyflow JavaScript SDK",
8
8
  "homepage": "https://github.com/skyflowapi/skyflow-js",
@@ -0,0 +1,19 @@
1
+ export interface ThreeDSBrowserDetails {
2
+ browser_accept_header: string;
3
+ browser_ip?: string;
4
+ browser_language: string;
5
+ browser_color_depth: string;
6
+ browser_screen_height: number;
7
+ browser_screen_width: number;
8
+ browser_tz: number;
9
+ browser_user_agent: string;
10
+ challenge_window_size?: string;
11
+ browser_java_enabled?: boolean;
12
+ browser_javascript_enabled?: boolean;
13
+ }
14
+ declare class ThreeDS {
15
+ #private;
16
+ static getBrowserDetails(): ThreeDSBrowserDetails;
17
+ static showChallenge: (acsUrl: string, cReq: string, challengeWindowSize?: string, container?: HTMLElement) => HTMLIFrameElement;
18
+ }
19
+ export default ThreeDS;
@@ -4,6 +4,7 @@ import CollectContainer from './core/external/collect/collect-container';
4
4
  import SkyflowError from './libs/skyflow-error';
5
5
  import { IRevealResponseType, RequestMethod, IInsertRecordInput, IDetokenizeInput, IGetInput, RedactionType, EventName, Env, LogLevel, ValidationRuleType, IGetByIdInput, IInsertOptions, IDeleteRecordInput, IDeleteOptions, IGetOptions } from './utils/common';
6
6
  import ComposableContainer from './core/external/collect/compose-collect-container';
7
+ import ThreeDS from './core/external/threeds/threeds';
7
8
  export declare enum ContainerType {
8
9
  COLLECT = "COLLECT",
9
10
  REVEAL = "REVEAL",
@@ -35,5 +36,6 @@ declare class Skyflow {
35
36
  static get ValidationRuleType(): typeof ValidationRuleType;
36
37
  static get CardType(): typeof CardType;
37
38
  static get Error(): typeof SkyflowError;
39
+ static get ThreeDS(): typeof ThreeDS;
38
40
  }
39
41
  export default Skyflow;
@@ -711,5 +711,9 @@ declare const SKYFLOW_ERROR_CODE: {
711
711
  code: number;
712
712
  description: string;
713
713
  };
714
+ INVALID_FIELD_SHOW_3DS_CHALLEGNGE: {
715
+ code: number;
716
+ description: string;
717
+ };
714
718
  };
715
719
  export default SKYFLOW_ERROR_CODE;
@@ -272,6 +272,7 @@ declare const logs: {
272
272
  INVALID_ALLOWED_FILETYPE_ARRAY: string;
273
273
  INVALID_OPTION_CARD_METADATA: string;
274
274
  INVALID_OPTION_CARD_SCHEME: string;
275
+ INVALID_FIELD_SHOW_3DS_CHALLEGNGE: string;
275
276
  };
276
277
  warnLogs: {
277
278
  INVALID_EXPIRATION_DATE_FORMAT: string;