wealthica-sdk-js 0.0.19 → 0.0.20

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.
@@ -17,7 +17,8 @@ interface APIInterface {
17
17
  getTeam(): string;
18
18
  getConnectData(options: ConnectDataOptions): Promise<ConnectData>
19
19
  connect(options?: ConnectDataOptions): APIInterface
20
- reconnect(institutionId: string, options: ConnectDataOptions): APIUserInterface
20
+ reconnect(institutionId: string, options?: ConnectDataOptions): APIInterface
21
+ verifyMfa(institutionId: string, options?: ConnectDataOptions): APIInterface
21
22
  onConnection(callback: Function): APIInterface
22
23
  onError(callback: Function): APIInterface
23
24
  onEvent(callback: Function): APIInterface
@@ -88,9 +89,10 @@ type TokenOptions = {
88
89
  }
89
90
 
90
91
  type ConnectDataOptions = {
91
- provider: string;
92
- institutionId: string;
93
- state: string;
92
+ provider?: string;
93
+ institutionId?: string;
94
+ connectionRoute?: string;
95
+ state?: string;
94
96
  origin: string | undefined;
95
97
  lang: string;
96
98
  redirectURI: string;
@@ -17,7 +17,8 @@ interface APIInterface {
17
17
  getTeam(): string;
18
18
  getConnectData(options: ConnectDataOptions): Promise<ConnectData>
19
19
  connect(options?: ConnectDataOptions): APIInterface
20
- reconnect(institutionId: string, options: ConnectDataOptions): APIUserInterface
20
+ reconnect(institutionId: string, options?: ConnectDataOptions): APIInterface
21
+ verifyMfa(institutionId: string, options?: ConnectDataOptions): APIInterface
21
22
  onConnection(callback: Function): APIInterface
22
23
  onError(callback: Function): APIInterface
23
24
  onEvent(callback: Function): APIInterface
@@ -88,9 +89,10 @@ type TokenOptions = {
88
89
  }
89
90
 
90
91
  type ConnectDataOptions = {
91
- provider: string;
92
- institutionId: string;
93
- state: string;
92
+ provider?: string;
93
+ institutionId?: string;
94
+ connectionRoute?: string;
95
+ state?: string;
94
96
  origin: string | undefined;
95
97
  lang: string;
96
98
  redirectURI: string;