Skip to content

Commit 47aab9b

Browse files
committed
v3.0.0
1 parent 71cdd6c commit 47aab9b

File tree

5 files changed

+34
-14
lines changed

5 files changed

+34
-14
lines changed

CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
## [3.0.0](https://github.com/moneytree/mt-link-javascript-sdk/compare/2.1.2...3.0.0) (2021-05-31)
2+
3+
### BREAKING CHANGES
4+
5+
* chore(magic-link): rename api to login-link ([2a4773d](https://github.com/moneytree/mt-link-javascript-sdk/commit/2a4773db317e669ba8c2485977adbb4a1c037cd3))
6+
* chore(country): support only jp ([08ff6c3](https://github.com/moneytree/mt-link-javascript-sdk/commit/08ff6c3f3de70e8f433b64557997224cea419593))
7+
* feat(open-service): rename myaccount-settings to myaccount ([69fedb4](https://github.com/moneytree/mt-link-javascript-sdk/commit/69fedb48931e3bebfc7aaddad33ff46d5967069d))
8+
9+
### Features
10+
11+
* feat(myaccount): able to open each page ([2a92055](https://github.com/moneytree/mt-link-javascript-sdk/commit/2a920556840fc28a4b7d99d264708ab3d861e40e))
12+
13+
### Chore
14+
15+
* chore(config): format with updated prettier settings ([066b0f2](https://github.com/moneytree/mt-link-javascript-sdk/commit/066b0f2688cd44bab571ac40bbf2a6edb32ec10a))
16+
117
## [2.1.2](https://github.com/moneytree/mt-link-javascript-sdk/compare/2.1.1...2.1.2) (2020-12-18)
218

319
* fix add two private config value ([cd64d6a](https://github.com/moneytree/mt-link-javascript-sdk/commit/cd64d6a281fbe773dfea8bd236e2c8e74cda3563))

dist/index.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { StoredOptions, ServiceId, ConfigsOptions, LogoutOptions, InitOptions, AuthorizeOptions, OnboardOptions, ExchangeTokenOptions, RequestMagicLinkOptions, TokenInfo } from './typings';
1+
import { StoredOptions, ServiceId, OpenServicesConfigsOptions, LogoutOptions, InitOptions, AuthorizeOptions, OnboardOptions, ExchangeTokenOptions, RequestLoginLinkOptions, TokenInfo } from './typings';
22
export * from './typings';
33
export declare class MtLinkSdk {
44
storedOptions: StoredOptions;
55
init(clientId: string, options?: InitOptions): void;
66
authorize(options?: AuthorizeOptions): void;
77
onboard(options?: OnboardOptions): void;
88
logout(options?: LogoutOptions): void;
9-
openService(serviceId: ServiceId, options?: ConfigsOptions): void;
10-
requestMagicLink(options?: RequestMagicLinkOptions): Promise<void>;
9+
openService(serviceId: ServiceId, options?: OpenServicesConfigsOptions): void;
10+
requestLoginLink(options?: RequestLoginLinkOptions): Promise<void>;
1111
exchangeToken(options?: ExchangeTokenOptions): Promise<string>;
1212
tokenInfo(token: string): Promise<TokenInfo>;
1313
}

dist/index.js

+6-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/typings.d.ts

+8-6
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ export declare type ConnectionSettingType = {
3232
export declare type CustomerSupportType = {
3333
view?: 'customer-support';
3434
};
35-
export declare type OpenServicesConfigsOptions = ConfigsOptions & (ServicesListType | ServiceConnectionType | ConnectionSettingType | CustomerSupportType);
35+
export declare type MyAccountPageType = {
36+
view?: LoginLinkTo;
37+
};
38+
export declare type OpenServicesConfigsOptions = ConfigsOptions & (ServicesListType | ServiceConnectionType | ConnectionSettingType | CustomerSupportType | MyAccountPageType);
3639
export declare type Scopes = string | string[];
3740
interface AuthorizeConfigsOptions {
3841
forceLogout?: boolean;
@@ -42,7 +45,6 @@ interface OAuthSharedParams {
4245
redirectUri?: string;
4346
}
4447
export interface AuthorizeOptions extends OAuthSharedParams, ConfigsOptions, AuthorizeConfigsOptions {
45-
country?: string;
4648
scopes?: Scopes;
4749
codeChallenge?: string;
4850
pkce?: boolean;
@@ -62,10 +64,10 @@ export interface ExchangeTokenOptions extends OAuthSharedParams {
6264
}
6365
export declare type LogoutOptions = ConfigsOptions;
6466
export declare type OnboardOptions = Omit<Omit<Omit<Omit<AuthorizeOptions, 'showAuthToggle'>, 'forceLogout'>, 'showRememberMe'>, 'authAction'>;
65-
export declare type ServiceId = string | 'vault' | 'myaccount-settings' | 'linkkit';
66-
export declare type MagicLinkTo = string | 'settings' | 'settings/authorized-applications' | 'settings/change-language' | 'settings/email-preferences' | 'settings/delete-account' | 'settings/update-email' | 'settings/update-password';
67-
export interface RequestMagicLinkOptions extends ConfigsOptions {
68-
magicLinkTo?: MagicLinkTo;
67+
export declare type ServiceId = string | 'vault' | 'myaccount' | 'linkkit';
68+
export declare type LoginLinkTo = string | 'settings' | 'settings/authorized-applications' | 'settings/change-language' | 'settings/email-preferences' | 'settings/delete-account' | 'settings/update-email' | 'settings/update-password';
69+
export interface RequestLoginLinkOptions extends ConfigsOptions {
70+
loginLinkTo?: LoginLinkTo;
6971
}
7072
export interface TokenInfo {
7173
iss: string;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@moneytree/mt-link-javascript-sdk",
3-
"version": "2.1.2",
3+
"version": "3.0.0",
44
"description": "Moneytree Link JavaScript SDK",
55
"main": "dist/index.js",
66
"files": [

0 commit comments

Comments
 (0)