@moneytree/mt-link-javascript-sdk 3.1.0 → 3.2.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/CHANGELOG.md +18 -1
- package/dist/api/authorize-url.d.ts +2 -0
- package/dist/api/logout-url.d.ts +2 -0
- package/dist/api/onboard-url.d.ts +2 -0
- package/dist/api/open-service-url.d.ts +2 -0
- package/dist/api/open-service.d.ts +2 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.js +5 -5
- package/dist/typings.d.ts +21 -11
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
# [3.
|
|
1
|
+
# [3.2.0](https://github.com/moneytree/mt-link-javascript-sdk/compare/3.1.1...3.2.0) (2023-08-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **api:** Add authorizeUrl API ([43dd559](https://github.com/moneytree/mt-link-javascript-sdk/commit/43dd55963caf5b4b099a3269e9d9d30d415c5ca7))
|
|
7
|
+
* **api:** Add logoutUrl API ([7b15f1b](https://github.com/moneytree/mt-link-javascript-sdk/commit/7b15f1b5b00692a0e936f973b0a4db7be2445328))
|
|
8
|
+
* **api:** Add onboardUrl API ([32820fb](https://github.com/moneytree/mt-link-javascript-sdk/commit/32820fb04c4899d1aa3ec28f0f9d08178d815500))
|
|
9
|
+
* **api:** Add openServiceUrl API ([eeafa30](https://github.com/moneytree/mt-link-javascript-sdk/commit/eeafa302a6631f386c5dbc9987cee5855c77d6d3))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [3.1.1](https://github.com/moneytree/mt-link-javascript-sdk/compare/3.1.0...3.1.1) (2023-03-16)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **configs:** default sdk info always overwrite options values ([6d2734e](https://github.com/moneytree/mt-link-javascript-sdk/commit/6d2734e0d2748ca4ffa39c80eea3788323fbad1f))
|
|
2
19
|
|
|
3
20
|
|
|
4
21
|
### Features
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { StoredOptions, ServiceId,
|
|
2
|
-
export default function openService(storedOptions: StoredOptions, serviceId: ServiceId, options?:
|
|
1
|
+
import { StoredOptions, ServiceId, OpenServiceOptions } from '../typings';
|
|
2
|
+
export default function openService(storedOptions: StoredOptions, serviceId: ServiceId, options?: OpenServiceOptions): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
import { StoredOptions,
|
|
1
|
+
import { StoredOptions, LogoutOptions, InitOptions, AuthorizeOptions, OnboardOptions, ExchangeTokenOptions, RequestLoginLinkOptions, TokenInfo, AuthorizeUrlOptions, LogoutUrlOptions, OnboardUrlOptions, LinkKitOpenServiceUrlOptions, MyAccountOpenServiceUrlOptions, VaultOpenServiceUrlOptions, VaultOpenServiceOptions, LinkKitOpenServiceOptions, MyAccountOpenServiceOptions } from './typings';
|
|
2
2
|
export * from './typings';
|
|
3
3
|
export declare class MtLinkSdk {
|
|
4
4
|
storedOptions: StoredOptions;
|
|
5
5
|
init(clientId: string, options?: InitOptions): void;
|
|
6
6
|
setSamlSubjectId(value: string): void;
|
|
7
7
|
authorize(options?: AuthorizeOptions): void;
|
|
8
|
+
authorizeUrl(options?: AuthorizeUrlOptions): string;
|
|
8
9
|
onboard(options?: OnboardOptions): void;
|
|
10
|
+
onboardUrl(options?: OnboardUrlOptions): string;
|
|
9
11
|
logout(options?: LogoutOptions): void;
|
|
10
|
-
|
|
12
|
+
logoutUrl(options?: LogoutUrlOptions): string;
|
|
13
|
+
openService(serviceId: 'link-kit', options?: LinkKitOpenServiceOptions): void;
|
|
14
|
+
openService(serviceId: 'myaccount', options?: MyAccountOpenServiceOptions): void;
|
|
15
|
+
openService(serviceId: 'vault', options?: VaultOpenServiceOptions): void;
|
|
16
|
+
openServiceUrl(serviceId: 'link-kit', options?: LinkKitOpenServiceUrlOptions): string;
|
|
17
|
+
openServiceUrl(serviceId: 'myaccount', options?: MyAccountOpenServiceUrlOptions): string;
|
|
18
|
+
openServiceUrl(serviceId: 'vault', options?: VaultOpenServiceUrlOptions): string;
|
|
11
19
|
requestLoginLink(options?: RequestLoginLinkOptions): Promise<void>;
|
|
12
20
|
exchangeToken(options?: ExchangeTokenOptions): Promise<string>;
|
|
13
21
|
tokenInfo(token: string): Promise<TokenInfo>;
|