@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/dist/typings.d.ts CHANGED
@@ -10,8 +10,6 @@ export interface PrivateConfigsOptions {
10
10
  }
11
11
  export declare const supportedAuthnMethod: readonly ["passwordless", "sso", "credentials"];
12
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];
15
13
  export interface ConfigsOptions extends PrivateConfigsOptions {
16
14
  email?: string;
17
15
  backTo?: string;
@@ -23,26 +21,35 @@ export interface ConfigsOptions extends PrivateConfigsOptions {
23
21
  authnMethod?: AuthnMethod;
24
22
  }
25
23
  export declare type ServicesListType = {
26
- view?: 'services-list';
24
+ view: 'services-list';
27
25
  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';
28
26
  type?: 'bank' | 'credit_card' | 'stored_value' | 'point' | 'corporate';
29
27
  search?: string;
30
28
  };
31
29
  export declare type ServiceConnectionType = {
32
- view?: 'service-connection';
30
+ view: 'service-connection';
33
31
  entityKey: string;
34
32
  };
35
33
  export declare type ConnectionSettingType = {
36
- view?: 'connection-setting';
34
+ view: 'connection-setting';
37
35
  credentialId: string;
38
36
  };
39
37
  export declare type CustomerSupportType = {
40
- view?: 'customer-support';
38
+ view: 'customer-support';
41
39
  };
42
- export declare type MyAccountPageType = {
43
- view?: LoginLinkTo;
40
+ export declare type VaultOpenServiceOptions = ConfigsOptions & (ServicesListType | ServiceConnectionType | ConnectionSettingType | CustomerSupportType);
41
+ export declare type MyAccountOpenServiceOptions = ConfigsOptions & {
42
+ view: LoginLinkTo;
44
43
  };
45
- export declare type OpenServicesConfigsOptions = ConfigsOptions & (ServicesListType | ServiceConnectionType | ConnectionSettingType | CustomerSupportType | MyAccountPageType);
44
+ export declare type LinkKitOpenServiceOptions = ConfigsOptions;
45
+ export declare type OpenServiceOptions = VaultOpenServiceOptions | MyAccountOpenServiceOptions | LinkKitOpenServiceOptions;
46
+ declare type ConfigsOptionsWithoutIsNewTab = Omit<ConfigsOptions, 'isNewTab'>;
47
+ export declare type VaultOpenServiceUrlOptions = ConfigsOptionsWithoutIsNewTab & (ServicesListType | ServiceConnectionType | ConnectionSettingType | CustomerSupportType);
48
+ export declare type MyAccountOpenServiceUrlOptions = ConfigsOptionsWithoutIsNewTab & {
49
+ view: LoginLinkTo;
50
+ };
51
+ export declare type LinkKitOpenServiceUrlOptions = ConfigsOptionsWithoutIsNewTab;
52
+ export declare type OpenServiceUrlOptions = VaultOpenServiceUrlOptions | MyAccountOpenServiceUrlOptions | LinkKitOpenServiceUrlOptions;
46
53
  export declare type Scopes = string | string[];
47
54
  interface AuthorizeConfigsOptions {
48
55
  forceLogout?: boolean;
@@ -56,6 +63,7 @@ export interface AuthorizeOptions extends OAuthSharedParams, ConfigsOptions, Aut
56
63
  codeChallenge?: string;
57
64
  pkce?: boolean;
58
65
  }
66
+ export declare type AuthorizeUrlOptions = Omit<AuthorizeOptions, 'isNewTab'>;
59
67
  export declare type Mode = 'production' | 'staging' | 'develop' | 'local';
60
68
  export declare type InitOptions = Omit<Omit<Omit<AuthorizeOptions, 'forceLogout'>, 'codeChallenge'>, 'pkce'> & PrivateParams & {
61
69
  mode?: Mode;
@@ -70,9 +78,11 @@ export interface ExchangeTokenOptions extends OAuthSharedParams {
70
78
  codeVerifier?: string;
71
79
  }
72
80
  export declare type LogoutOptions = ConfigsOptions;
81
+ export declare type LogoutUrlOptions = Omit<ConfigsOptions, 'isNewTab'>;
73
82
  export declare type OnboardOptions = Omit<Omit<Omit<Omit<AuthorizeOptions, 'showAuthToggle'>, 'forceLogout'>, 'showRememberMe'>, 'authAction'>;
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';
83
+ export declare type OnboardUrlOptions = Omit<OnboardOptions, 'isNewTab'>;
84
+ export declare type ServiceId = 'vault' | 'myaccount' | 'link-kit';
85
+ export declare type LoginLinkTo = 'settings' | 'settings/authorized-applications' | 'settings/change-language' | 'settings/email-preferences' | 'settings/delete-account' | 'settings/update-email' | 'settings/update-password';
76
86
  export interface RequestLoginLinkOptions extends ConfigsOptions {
77
87
  loginLinkTo?: LoginLinkTo;
78
88
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneytree/mt-link-javascript-sdk",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "Moneytree Link JavaScript SDK",
5
5
  "main": "dist/index.js",
6
6
  "files": [