@moneytree/mt-link-javascript-sdk 3.1.1 → 3.2.1

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
@@ -20,27 +20,42 @@ export interface ConfigsOptions extends PrivateConfigsOptions {
20
20
  forceLogout?: boolean;
21
21
  authnMethod?: AuthnMethod;
22
22
  }
23
- export declare type ServicesListType = {
24
- view?: 'services-list';
23
+ export declare type ConfigsOptionsWithoutIsNewTab = Omit<ConfigsOptions, 'isNewTab'>;
24
+ export declare type VaultViewServiceList = {
25
+ view: 'services-list';
25
26
  group?: 'grouping_bank' | 'grouping_bank_credit_card' | 'grouping_bank_dc_card' | 'grouping_corporate_credit_card' | 'grouping_credit_card' | 'grouping_credit_coop' | 'grouping_credit_union' | 'grouping_dc_pension_plan' | 'grouping_debit_card' | 'grouping_digital_money' | 'grouping_ja_bank' | 'grouping_life_insurance' | 'grouping_point' | 'grouping_regional_bank' | 'grouping_stock' | 'grouping_testing';
26
27
  type?: 'bank' | 'credit_card' | 'stored_value' | 'point' | 'corporate';
27
28
  search?: string;
28
29
  };
29
- export declare type ServiceConnectionType = {
30
- view?: 'service-connection';
30
+ export declare type VaultViewServiceConnection = {
31
+ view: 'service-connection';
31
32
  entityKey: string;
32
33
  };
33
- export declare type ConnectionSettingType = {
34
- view?: 'connection-setting';
34
+ export declare type VaultViewConnectionSetting = {
35
+ view: 'connection-setting';
35
36
  credentialId: string;
36
37
  };
37
- export declare type CustomerSupportType = {
38
- view?: 'customer-support';
38
+ export declare type VaultViewCustomerSupport = {
39
+ view: 'customer-support';
39
40
  };
40
- export declare type MyAccountPageType = {
41
- view?: LoginLinkTo;
41
+ export declare type VaultServiceTypes = VaultViewServiceList | VaultViewServiceConnection | VaultViewConnectionSetting | VaultViewCustomerSupport;
42
+ export declare type MyAccountServiceTypes = {
43
+ view: LoginLinkTo;
42
44
  };
43
- export declare type OpenServicesConfigsOptions = ConfigsOptions & (ServicesListType | ServiceConnectionType | ConnectionSettingType | CustomerSupportType | MyAccountPageType);
45
+ export declare type MyAccountOpenServiceOptions = ConfigsOptions | (ConfigsOptions & MyAccountServiceTypes);
46
+ export declare type MyAccountOpenServiceUrlOptions = ConfigsOptionsWithoutIsNewTab | (ConfigsOptionsWithoutIsNewTab & MyAccountServiceTypes);
47
+ export declare type VaultOpenServiceViewServiceList = ConfigsOptions & VaultViewServiceList;
48
+ export declare type VaultOpenServiceViewServiceConnection = ConfigsOptions & VaultViewServiceConnection;
49
+ export declare type VaultOpenServiceViewConnectionSetting = ConfigsOptions & VaultViewConnectionSetting;
50
+ export declare type VaultOpenServiceViewCustomerSupport = ConfigsOptions & VaultViewCustomerSupport;
51
+ export declare type VaultOpenServiceUrlViewServiceList = ConfigsOptionsWithoutIsNewTab & VaultViewServiceList;
52
+ export declare type VaultOpenServiceUrlViewServiceConnection = ConfigsOptionsWithoutIsNewTab & VaultViewServiceConnection;
53
+ export declare type VaultOpenServiceUrlViewConnectionSetting = ConfigsOptionsWithoutIsNewTab & VaultViewConnectionSetting;
54
+ export declare type VaultOpenServiceUrlViewCustomerSupport = ConfigsOptionsWithoutIsNewTab & VaultViewCustomerSupport;
55
+ export declare type LinkKitOpenServiceOptions = ConfigsOptions;
56
+ export declare type LinkKitOpenServiceUrlOptions = ConfigsOptionsWithoutIsNewTab;
57
+ export declare type OpenServiceOptions = MyAccountOpenServiceOptions | ConfigsOptions | VaultOpenServiceViewServiceList | VaultOpenServiceViewConnectionSetting | VaultOpenServiceViewCustomerSupport | LinkKitOpenServiceOptions;
58
+ export declare type OpenServiceUrlOptions = MyAccountOpenServiceUrlOptions | ConfigsOptionsWithoutIsNewTab | VaultOpenServiceUrlViewServiceList | VaultOpenServiceUrlViewConnectionSetting | VaultOpenServiceUrlViewCustomerSupport | LinkKitOpenServiceUrlOptions;
44
59
  export declare type Scopes = string | string[];
45
60
  interface AuthorizeConfigsOptions {
46
61
  forceLogout?: boolean;
@@ -54,6 +69,7 @@ export interface AuthorizeOptions extends OAuthSharedParams, ConfigsOptions, Aut
54
69
  codeChallenge?: string;
55
70
  pkce?: boolean;
56
71
  }
72
+ export declare type AuthorizeUrlOptions = Omit<AuthorizeOptions, 'isNewTab'>;
57
73
  export declare type Mode = 'production' | 'staging' | 'develop' | 'local';
58
74
  export declare type InitOptions = Omit<Omit<Omit<AuthorizeOptions, 'forceLogout'>, 'codeChallenge'>, 'pkce'> & PrivateParams & {
59
75
  mode?: Mode;
@@ -68,9 +84,11 @@ export interface ExchangeTokenOptions extends OAuthSharedParams {
68
84
  codeVerifier?: string;
69
85
  }
70
86
  export declare type LogoutOptions = ConfigsOptions;
87
+ export declare type LogoutUrlOptions = Omit<ConfigsOptions, 'isNewTab'>;
71
88
  export declare type OnboardOptions = Omit<Omit<Omit<Omit<AuthorizeOptions, 'showAuthToggle'>, 'forceLogout'>, 'showRememberMe'>, 'authAction'>;
72
- export declare type ServiceId = string | 'vault' | 'myaccount' | 'linkkit';
73
- export declare type LoginLinkTo = string | 'settings' | 'settings/authorized-applications' | 'settings/change-language' | 'settings/email-preferences' | 'settings/delete-account' | 'settings/update-email' | 'settings/update-password';
89
+ export declare type OnboardUrlOptions = Omit<OnboardOptions, 'isNewTab'>;
90
+ export declare type ServiceId = 'vault' | 'myaccount' | 'link-kit';
91
+ export declare type LoginLinkTo = 'settings' | 'settings/authorized-applications' | 'settings/change-language' | 'settings/email-preferences' | 'settings/delete-account' | 'settings/update-email' | 'settings/update-password';
74
92
  export interface RequestLoginLinkOptions extends ConfigsOptions {
75
93
  loginLinkTo?: LoginLinkTo;
76
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneytree/mt-link-javascript-sdk",
3
- "version": "3.1.1",
3
+ "version": "3.2.1",
4
4
  "description": "Moneytree Link JavaScript SDK",
5
5
  "main": "dist/index.js",
6
6
  "files": [
package/CHANGELOG.md DELETED
@@ -1,127 +0,0 @@
1
- ## [3.1.1](https://github.com/moneytree/mt-link-javascript-sdk/compare/3.1.0...3.1.1) (2023-03-16)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * **configs:** default sdk info always overwrite options values ([6d2734e](https://github.com/moneytree/mt-link-javascript-sdk/commit/6d2734e0d2748ca4ffa39c80eea3788323fbad1f))
7
-
8
-
9
- ### Features
10
-
11
- * **MyAccount:** Add support for authn_method ([b94ea4b](https://github.com/moneytree/mt-link-javascript-sdk/commit/b94ea4b186699d8af21885eb4150c2e96b605916))
12
- * **MyAccount:** Add support for saml_subject_id ([de9af0f](https://github.com/moneytree/mt-link-javascript-sdk/commit/de9af0f4d20acc90c3a7fa59e1e571a656287975))
13
-
14
-
15
-
16
- # [3.0.0](https://github.com/moneytree/mt-link-javascript-sdk/compare/2.1.2...3.0.0) (2021-06-01)
17
-
18
-
19
- ### Bug Fixes
20
-
21
- * add two private config value ([cd64d6a](https://github.com/moneytree/mt-link-javascript-sdk/commit/cd64d6a281fbe773dfea8bd236e2c8e74cda3563))
22
- * **authorize-api:** fix for Safari 14 issue ([9fb69d0](https://github.com/moneytree/mt-link-javascript-sdk/commit/9fb69d014752698df1897527ff27d60ffd116843))
23
- * update for lint error and test failed ([362f0b7](https://github.com/moneytree/mt-link-javascript-sdk/commit/362f0b749797a438ac8c0024616e7072dbc641ee))
24
- * **logout:** add optional backTo parameter ([9b9da89](https://github.com/moneytree/mt-link-javascript-sdk/commit/9b9da8941ff58049ed200d6dd6324bc5918adca0))
25
-
26
-
27
- ### Features
28
-
29
- * **headers:** set sdk info as additional headers parameter ([1a55579](https://github.com/moneytree/mt-link-javascript-sdk/commit/1a5557919ee9844409848154ba22ec863c4d1a58))
30
- * **index:** new logout endpoint ([64156ca](https://github.com/moneytree/mt-link-javascript-sdk/commit/64156caba35f251f6a501edba60f736ab13da57c))
31
- * **myaccount:** able to open each page ([72c1e71](https://github.com/moneytree/mt-link-javascript-sdk/commit/72c1e715f2028e8d9d95b8e109e763d776c87e57))
32
- * **open-service:** rename myaccount-settings to myaccount ([71cdd6c](https://github.com/moneytree/mt-link-javascript-sdk/commit/71cdd6cd373d6564e47f971b95f3bd0c222715c0))
33
- * **open-services:** deeplink support ([c179072](https://github.com/moneytree/mt-link-javascript-sdk/commit/c179072ba008e8f6be3f94bf4ced88e314485544))
34
- * **sample-app:** add example ([89edfcf](https://github.com/moneytree/mt-link-javascript-sdk/commit/89edfcf2e6bc961842f9721345a074779e0549be))
35
- * add del to storage ([c5f2bda](https://github.com/moneytree/mt-link-javascript-sdk/commit/c5f2bdaf597909f71a3ee551966daa0e47367baf))
36
- * authorize & onboard accepts `pkce` & `codeChallenge` options ([bc6bfe5](https://github.com/moneytree/mt-link-javascript-sdk/commit/bc6bfe5da725493fb3046dabab57824fe09fa501))
37
- * **sample_app:** add a very basic sample app to test the SDK ([84a4d18](https://github.com/moneytree/mt-link-javascript-sdk/commit/84a4d187506960f44dffd102b62ce4732bec3301))
38
-
39
-
40
- * refactor!: remove auto generate state logic ([c68d223](https://github.com/moneytree/mt-link-javascript-sdk/commit/c68d22331c1783a3c859af0b4cb3ddecfcfbf8b4))
41
- * refactor!: standardize tokenInfo response ([491dda8](https://github.com/moneytree/mt-link-javascript-sdk/commit/491dda82dc1c2982f5ea5d95d4a8ff4fb121d91d))
42
- * refactor!: remove options from tokenInfo ([c918b9d](https://github.com/moneytree/mt-link-javascript-sdk/commit/c918b9d584e412616d02996516b2bfad8b28c74b))
43
-
44
-
45
- ### BREAKING CHANGES
46
-
47
- * No more auto generate state on init to be used in `authorize`
48
- and `onboard` API. There will be no default `state` and you will have to pass
49
- one via the APIs' options parameter if you need one.
50
- * change `tokenInfo` API response to standard format.
51
- * `tokenInfo` API no longer accept options parameter as it provide no benefit.
52
-
53
-
54
-
55
- ## [1.2.3](https://github.com/moneytree/mt-link-javascript-sdk/compare/1.2.2...1.2.3) (2019-05-23)
56
-
57
-
58
-
59
- ## [1.2.2](https://github.com/moneytree/mt-link-javascript-sdk/compare/1.2.1...1.2.2) (2019-05-23)
60
-
61
-
62
- ### Bug Fixes
63
-
64
- * **continue:** rename param to "continue" as intended ([b9dc043](https://github.com/moneytree/mt-link-javascript-sdk/commit/b9dc0437ab91d2378ade516f3f178606ae38f1ae))
65
-
66
-
67
-
68
- ## [1.2.1](https://github.com/moneytree/mt-link-javascript-sdk/compare/1.2.0...1.2.1) (2019-05-22)
69
-
70
-
71
- ### Bug Fixes
72
-
73
- * **continueTo:** resupport continueTo ([c71c280](https://github.com/moneytree/mt-link-javascript-sdk/commit/c71c28079ce31ead8b16ef124adef735cc23f146))
74
-
75
-
76
- ### Features
77
-
78
- * **lint:** add lint support ([1d1a302](https://github.com/moneytree/mt-link-javascript-sdk/commit/1d1a3028c3ca512526efe1ec1634f8d6adbc9665))
79
-
80
-
81
-
82
- # [1.2.0](https://github.com/moneytree/mt-link-javascript-sdk/compare/1.1.2...1.2.0) (2019-05-17)
83
-
84
-
85
- ### Bug Fixes
86
-
87
- * **configs:** separate configs option by semicolon ([db2bed4](https://github.com/moneytree/mt-link-javascript-sdk/commit/db2bed4cc205d01e88c3fe7f2d6f2802e2c54a4e))
88
- * **encoding:** fix enconding issue and some typecript typing tweaks ([239704f](https://github.com/moneytree/mt-link-javascript-sdk/commit/239704f4819c68c4d682e28511e5ee3b26d8fe0b))
89
-
90
-
91
- ### Features
92
-
93
- * **sdkVersion:** add sdk version ([bbc9a87](https://github.com/moneytree/mt-link-javascript-sdk/commit/bbc9a8724a96ea548f93165f101a237ed8a1e157))
94
-
95
-
96
-
97
- ## [1.1.2](https://github.com/moneytree/mt-link-javascript-sdk/compare/1.1.1...1.1.2) (2019-04-04)
98
-
99
-
100
- ### Bug Fixes
101
-
102
- * **configs:** encode configs parameter value ([448383a](https://github.com/moneytree/mt-link-javascript-sdk/commit/448383a94b96beeeafd79a9ec5e15732b8d1866d))
103
-
104
-
105
-
106
- ## [1.1.1](https://github.com/moneytree/mt-link-javascript-sdk/compare/1.1.0...1.1.1) (2018-12-04)
107
-
108
-
109
-
110
- # [1.1.0](https://github.com/moneytree/mt-link-javascript-sdk/compare/1.0.0...1.1.0) (2018-09-07)
111
-
112
-
113
- ### Features
114
-
115
- * **link2app:** adding an option to go back to caller ([f67ac97](https://github.com/moneytree/mt-link-javascript-sdk/commit/f67ac9739b2685db54e6ef792ecccc8f7802bef7))
116
-
117
-
118
-
119
- # [1.0.0](https://github.com/moneytree/mt-link-javascript-sdk/compare/333cf8c36f7a8299c2bccf441454b04d31e7d907...1.0.0) (2018-08-01)
120
-
121
-
122
- ### Features
123
-
124
- * creating a JS SDK ([333cf8c](https://github.com/moneytree/mt-link-javascript-sdk/commit/333cf8c36f7a8299c2bccf441454b04d31e7d907))
125
-
126
-
127
-