@moneytree/mt-link-javascript-sdk 4.4.0 → 5.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.
package/dist/typings.d.ts CHANGED
@@ -7,6 +7,7 @@ export interface PrivateParams {
7
7
  export interface PrivateConfigsOptions {
8
8
  sdkPlatform?: 'ios' | 'android' | 'js';
9
9
  sdkVersion?: string;
10
+ emailToken?: string;
10
11
  }
11
12
  export declare const supportedAuthnMethod: readonly ["passwordless", "sso", "credentials", "otp"];
12
13
  export type AuthnMethod = typeof supportedAuthnMethod[number];
@@ -46,7 +47,10 @@ export type VaultViewConnectionDelete = {
46
47
  export type VaultViewCustomerSupport = {
47
48
  view: 'customer-support';
48
49
  };
49
- export type VaultServiceTypes = VaultViewServiceList | VaultViewServiceConnection | VaultViewConnectionSetting | VaultViewConnectionUpdate | VaultViewConnectionDelete | VaultViewCustomerSupport;
50
+ export type VaultViewOnboarding = {
51
+ view: 'onboarding';
52
+ };
53
+ export type VaultServiceTypes = VaultViewServiceList | VaultViewServiceConnection | VaultViewConnectionSetting | VaultViewConnectionUpdate | VaultViewConnectionDelete | VaultViewCustomerSupport | VaultViewOnboarding;
50
54
  export interface VaultSpecificOptions {
51
55
  showBackBarOn?: Pick<VaultViewServiceList, 'view'> | VaultViewConnectionSetting;
52
56
  }
@@ -63,16 +67,18 @@ export type VaultOpenServiceViewConnectionSetting = VaultOpenServiceOptions & Va
63
67
  export type VaultOpenServiceViewConnectionUpdate = VaultOpenServiceOptions & VaultViewConnectionUpdate;
64
68
  export type VaultOpenServiceViewConnectionDelete = VaultOpenServiceOptions & VaultViewConnectionDelete;
65
69
  export type VaultOpenServiceViewCustomerSupport = VaultOpenServiceOptions & VaultViewCustomerSupport;
70
+ export type VaultOpenServiceViewOnboarding = ConfigsOptions & VaultViewOnboarding;
66
71
  export type VaultOpenServiceUrlViewServiceList = VaultOpenServiceUrlOptions & VaultViewServiceList;
67
72
  export type VaultOpenServiceUrlViewServiceConnection = VaultOpenServiceUrlOptions & VaultViewServiceConnection;
68
73
  export type VaultOpenServiceUrlViewConnectionSetting = VaultOpenServiceUrlOptions & VaultViewConnectionSetting;
69
74
  export type VaultOpenServiceUrlViewConnectionUpdate = VaultOpenServiceUrlOptions & VaultViewConnectionUpdate;
70
75
  export type VaultOpenServiceUrlViewConnectionDelete = VaultOpenServiceUrlOptions & VaultViewConnectionDelete;
71
76
  export type VaultOpenServiceUrlViewCustomerSupport = VaultOpenServiceUrlOptions & VaultViewCustomerSupport;
77
+ export type VaultOpenServiceUrlViewOnboarding = ConfigsOptionsWithoutIsNewTab & VaultViewOnboarding;
72
78
  export type LinkKitOpenServiceOptions = ConfigsOptions;
73
79
  export type LinkKitOpenServiceUrlOptions = ConfigsOptionsWithoutIsNewTab;
74
- export type OpenServiceOptions = MyAccountOpenServiceOptions | VaultOpenServiceOptions | VaultOpenServiceViewServiceList | VaultOpenServiceViewConnectionSetting | VaultOpenServiceViewConnectionUpdate | VaultOpenServiceViewConnectionDelete | VaultOpenServiceViewCustomerSupport | LinkKitOpenServiceOptions;
75
- export type OpenServiceUrlOptions = MyAccountOpenServiceUrlOptions | VaultOpenServiceUrlOptions | VaultOpenServiceUrlViewServiceList | VaultOpenServiceUrlViewConnectionSetting | VaultOpenServiceUrlViewConnectionUpdate | VaultOpenServiceUrlViewConnectionDelete | VaultOpenServiceUrlViewCustomerSupport | LinkKitOpenServiceUrlOptions;
80
+ export type OpenServiceOptions = MyAccountOpenServiceOptions | VaultOpenServiceOptions | VaultOpenServiceViewServiceList | VaultOpenServiceViewConnectionSetting | VaultOpenServiceViewConnectionUpdate | VaultOpenServiceViewConnectionDelete | VaultOpenServiceViewCustomerSupport | VaultOpenServiceViewOnboarding | LinkKitOpenServiceOptions;
81
+ export type OpenServiceUrlOptions = MyAccountOpenServiceUrlOptions | VaultOpenServiceUrlOptions | VaultOpenServiceUrlViewServiceList | VaultOpenServiceUrlViewConnectionSetting | VaultOpenServiceUrlViewConnectionUpdate | VaultOpenServiceUrlViewConnectionDelete | VaultOpenServiceUrlViewCustomerSupport | VaultOpenServiceUrlViewOnboarding | LinkKitOpenServiceUrlOptions;
76
82
  export type Scopes = string | string[];
77
83
  interface AuthorizeConfigsOptions {
78
84
  forceLogout?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneytree/mt-link-javascript-sdk",
3
- "version": "4.4.0",
3
+ "version": "5.1.0",
4
4
  "description": "Moneytree Link JavaScript SDK",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -19,6 +19,7 @@
19
19
  "createChangelog": "conventional-changelog -i CHANGELOG.md -s && git add CHANGELOG.md",
20
20
  "version": "npm run prepareRelease && npm run createChangelog",
21
21
  "test": "jest --no-cache",
22
+ "test:dev": "jest --watch",
22
23
  "lint:js": "eslint '**/*.js'",
23
24
  "lint:ts": "eslint -c './.eslintrc-ts.js' '**/*.ts'",
24
25
  "lint": "yarn lint:js; yarn lint:ts",