@moneytree/mt-link-javascript-sdk 2.1.2 → 3.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/CHANGELOG.md +18 -37
- package/dist/api/request-login-link.d.ts +2 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.js +6 -4
- package/dist/typings.d.ts +16 -7
- package/package.json +24 -23
- package/dist/api/request-magic-link.d.ts +0 -2
package/dist/typings.d.ts
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
export declare
|
|
1
|
+
export declare const supportedAuthAction: readonly ["login", "signup"];
|
|
2
|
+
export declare type AuthAction = typeof supportedAuthAction[number];
|
|
2
3
|
export interface PrivateParams {
|
|
3
4
|
cobrandClientId?: string;
|
|
5
|
+
samlSubjectId?: string;
|
|
4
6
|
}
|
|
5
7
|
export interface PrivateConfigsOptions {
|
|
6
8
|
sdkPlatform?: 'ios' | 'android' | 'js';
|
|
7
9
|
sdkVersion?: string;
|
|
8
10
|
}
|
|
11
|
+
export declare const supportedAuthnMethod: readonly ["passwordless", "sso", "credentials"];
|
|
12
|
+
export declare type AuthnMethod = typeof supportedAuthnMethod[number];
|
|
13
|
+
export declare const supportedConfigsOptions: readonly ["email", "backTo", "authAction", "showAuthToggle", "showRememberMe", "isNewTab", "forceLogout", "authnMethod"];
|
|
14
|
+
export declare type SupportedConfigsOptions = typeof supportedConfigsOptions[number];
|
|
9
15
|
export interface ConfigsOptions extends PrivateConfigsOptions {
|
|
10
16
|
email?: string;
|
|
11
17
|
backTo?: string;
|
|
@@ -14,6 +20,7 @@ export interface ConfigsOptions extends PrivateConfigsOptions {
|
|
|
14
20
|
showRememberMe?: boolean;
|
|
15
21
|
isNewTab?: boolean;
|
|
16
22
|
forceLogout?: boolean;
|
|
23
|
+
authnMethod?: AuthnMethod;
|
|
17
24
|
}
|
|
18
25
|
export declare type ServicesListType = {
|
|
19
26
|
view?: 'services-list';
|
|
@@ -32,7 +39,10 @@ export declare type ConnectionSettingType = {
|
|
|
32
39
|
export declare type CustomerSupportType = {
|
|
33
40
|
view?: 'customer-support';
|
|
34
41
|
};
|
|
35
|
-
export declare type
|
|
42
|
+
export declare type MyAccountPageType = {
|
|
43
|
+
view?: LoginLinkTo;
|
|
44
|
+
};
|
|
45
|
+
export declare type OpenServicesConfigsOptions = ConfigsOptions & (ServicesListType | ServiceConnectionType | ConnectionSettingType | CustomerSupportType | MyAccountPageType);
|
|
36
46
|
export declare type Scopes = string | string[];
|
|
37
47
|
interface AuthorizeConfigsOptions {
|
|
38
48
|
forceLogout?: boolean;
|
|
@@ -42,7 +52,6 @@ interface OAuthSharedParams {
|
|
|
42
52
|
redirectUri?: string;
|
|
43
53
|
}
|
|
44
54
|
export interface AuthorizeOptions extends OAuthSharedParams, ConfigsOptions, AuthorizeConfigsOptions {
|
|
45
|
-
country?: string;
|
|
46
55
|
scopes?: Scopes;
|
|
47
56
|
codeChallenge?: string;
|
|
48
57
|
pkce?: boolean;
|
|
@@ -62,10 +71,10 @@ export interface ExchangeTokenOptions extends OAuthSharedParams {
|
|
|
62
71
|
}
|
|
63
72
|
export declare type LogoutOptions = ConfigsOptions;
|
|
64
73
|
export declare type OnboardOptions = Omit<Omit<Omit<Omit<AuthorizeOptions, 'showAuthToggle'>, 'forceLogout'>, 'showRememberMe'>, 'authAction'>;
|
|
65
|
-
export declare type ServiceId = string | 'vault' | 'myaccount
|
|
66
|
-
export declare type
|
|
67
|
-
export interface
|
|
68
|
-
|
|
74
|
+
export declare type ServiceId = string | 'vault' | 'myaccount' | 'linkkit';
|
|
75
|
+
export declare type LoginLinkTo = string | 'settings' | 'settings/authorized-applications' | 'settings/change-language' | 'settings/email-preferences' | 'settings/delete-account' | 'settings/update-email' | 'settings/update-password';
|
|
76
|
+
export interface RequestLoginLinkOptions extends ConfigsOptions {
|
|
77
|
+
loginLinkTo?: LoginLinkTo;
|
|
69
78
|
}
|
|
70
79
|
export interface TokenInfo {
|
|
71
80
|
iss: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneytree/mt-link-javascript-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Moneytree Link JavaScript SDK",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -19,39 +19,40 @@
|
|
|
19
19
|
"lint:ts": "eslint -c './.eslintrc-ts.js' '**/*.ts'",
|
|
20
20
|
"lint": "yarn lint:js; yarn lint:ts",
|
|
21
21
|
"lint:fix": "yarn lint:js --fix; yarn lint:ts --fix",
|
|
22
|
-
"start:docs": "docsify serve docs"
|
|
22
|
+
"start:docs": "docsify serve docs",
|
|
23
|
+
"prepare": "husky install"
|
|
23
24
|
},
|
|
24
25
|
"dependencies": {
|
|
25
26
|
"crypto-browserify": "^3.12.0",
|
|
26
27
|
"node-fetch": "^2.6.1",
|
|
27
|
-
"qs": "^6.
|
|
28
|
-
"snake-case": "^3.0.
|
|
28
|
+
"qs": "^6.10.1",
|
|
29
|
+
"snake-case": "^3.0.4",
|
|
29
30
|
"url-safe-base64": "^1.1.1"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
|
-
"@commitlint/cli": "^
|
|
33
|
-
"@commitlint/config-conventional": "^
|
|
34
|
-
"@testing-library/jest-dom": "^5.
|
|
35
|
-
"@types/jest": "^26.0.
|
|
36
|
-
"@types/node-fetch": "^2.5.
|
|
37
|
-
"@types/qs": "^6.9.
|
|
33
|
+
"@commitlint/cli": "^12.1.4",
|
|
34
|
+
"@commitlint/config-conventional": "^12.1.4",
|
|
35
|
+
"@testing-library/jest-dom": "^5.12.0",
|
|
36
|
+
"@types/jest": "^26.0.23",
|
|
37
|
+
"@types/node-fetch": "^2.5.10",
|
|
38
|
+
"@types/qs": "^6.9.6",
|
|
38
39
|
"@types/url-safe-base64": "^1.1.0",
|
|
39
40
|
"@types/uuid": "^8.3.0",
|
|
40
|
-
"@typescript-eslint/eslint-plugin": "^4.
|
|
41
|
-
"@typescript-eslint/parser": "^4.
|
|
42
|
-
"conventional-changelog-cli": "^2.1.
|
|
43
|
-
"docsify-cli": "^4.4.
|
|
44
|
-
"eslint": "^7.
|
|
45
|
-
"eslint-config-prettier": "^
|
|
46
|
-
"eslint-plugin-prettier": "^3.
|
|
47
|
-
"husky": "^
|
|
48
|
-
"jest": "^26.6.
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "^4.23.0",
|
|
42
|
+
"@typescript-eslint/parser": "^4.23.0",
|
|
43
|
+
"conventional-changelog-cli": "^2.1.1",
|
|
44
|
+
"docsify-cli": "^4.4.3",
|
|
45
|
+
"eslint": "^7.26.0",
|
|
46
|
+
"eslint-config-prettier": "^8.3.0",
|
|
47
|
+
"eslint-plugin-prettier": "^3.4.0",
|
|
48
|
+
"husky": "^6.0.0",
|
|
49
|
+
"jest": "^26.6.3",
|
|
49
50
|
"jest-fetch-mock": "^3.0.3",
|
|
50
|
-
"prettier": "^2.
|
|
51
|
-
"ts-jest": "^26.
|
|
51
|
+
"prettier": "^2.3.0",
|
|
52
|
+
"ts-jest": "^26.5.6",
|
|
52
53
|
"ts-loader": "^8.0.6",
|
|
53
|
-
"typescript": "^4.
|
|
54
|
+
"typescript": "^4.2.4",
|
|
54
55
|
"webpack": "^4.44.2",
|
|
55
|
-
"webpack-cli": "^4.
|
|
56
|
+
"webpack-cli": "^4.7.0"
|
|
56
57
|
}
|
|
57
58
|
}
|