wealthica-sdk-js 0.0.20 → 0.0.22
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/README.md +5 -3
- package/dist/wealthica.d.ts +2 -0
- package/dist/wealthica.es5.d.ts +2 -0
- package/dist/wealthica.es5.js +63024 -63271
- package/dist/wealthica.js +63024 -63271
- package/dist/wealthica.min.d.ts +2 -0
- package/dist/wealthica.min.js +5 -20
- package/dist/wealthica.min.js.map +1 -1
- package/lib/wealthica.d.ts +2 -0
- package/lib/wealthica.js +39013 -41726
- package/package.json +28 -18
package/README.md
CHANGED
|
@@ -165,7 +165,7 @@ token = await user.getToken(); // fetches and returns a new token
|
|
|
165
165
|
token = await user.getToken({ minimumLifeTime: 600 }); // fetches and returns another new token
|
|
166
166
|
```
|
|
167
167
|
|
|
168
|
-
#### user.getConnectData({ provider, redirectURI, state, lang, theme, providersPerLine, webhookURI })
|
|
168
|
+
#### user.getConnectData({ provider, redirectURI, state, lang, theme, providersPerLine, disabledProviders, closeButton, webhookURI })
|
|
169
169
|
|
|
170
170
|
This method returns a Wealthica Connect URL and authentication token for user to connect an institution.
|
|
171
171
|
|
|
@@ -188,10 +188,12 @@ const { url, token } = await user.getConnectData({
|
|
|
188
188
|
state: 'YOUR_APP_STATE', // optional
|
|
189
189
|
lang: 'en', // optional (en | es | fr | it), 'en' by default
|
|
190
190
|
providers: ['wise', 'stockchase'], // optional, ignored if `provider` is also passed in.
|
|
191
|
+
disabledProviders: ['questrade', 'wealthsimple'], // optional, exclude specific providers from the list.
|
|
191
192
|
providerGroups: ['core', 'thirdparty'], // optional, ['core'] by default
|
|
192
193
|
theme: 'light', // optional (light | dark), 'light' by default
|
|
193
194
|
providersPerLine: 1, // optional (1 | 2), 2 by default
|
|
194
195
|
features: 'feature1,feature2', // optional, a comma-separated list of features. undefined by default
|
|
196
|
+
closeButton: false, // optional boolean, `false` hides the widget's header "X" close button (for hosts drawing their own close control). Non-boolean values are ignored.
|
|
195
197
|
webhookURI: 'YOUR_WEBHOOK_URI', // optional, URL to receive webhook notifications (must be HTTPS)
|
|
196
198
|
});
|
|
197
199
|
// {
|
|
@@ -228,7 +230,7 @@ const user2 = wealthica.login('USER_ID_2');
|
|
|
228
230
|
const { url: url2, token } = await user2.getConnectData();
|
|
229
231
|
```
|
|
230
232
|
|
|
231
|
-
#### user.connect({ provider, providers, institutionId, lang, theme, providersPerLine, features, origin, webhookURI })
|
|
233
|
+
#### user.connect({ provider, providers, disabledProviders, institutionId, lang, theme, providersPerLine, features, closeButton, origin, webhookURI })
|
|
232
234
|
|
|
233
235
|
This method starts the Wealthica Connect process inside your webpage/app for user to connect their institution.
|
|
234
236
|
|
|
@@ -251,7 +253,7 @@ user.connect({
|
|
|
251
253
|
});
|
|
252
254
|
```
|
|
253
255
|
|
|
254
|
-
#### user.reconnect(institutionId, { lang, theme, features, origin, webhookURI })
|
|
256
|
+
#### user.reconnect(institutionId, { lang, theme, features, closeButton, origin, webhookURI })
|
|
255
257
|
|
|
256
258
|
This method starts the Wealthica Connect process to re-connect an existing institution that has expired/revoked credentials.
|
|
257
259
|
|
package/dist/wealthica.d.ts
CHANGED
|
@@ -97,10 +97,12 @@ type ConnectDataOptions = {
|
|
|
97
97
|
lang: string;
|
|
98
98
|
redirectURI: string;
|
|
99
99
|
providers: Array<string> | undefined;
|
|
100
|
+
disabledProviders: Array<string> | undefined;
|
|
100
101
|
providerGroups: Array<string> | undefined;
|
|
101
102
|
theme: string;
|
|
102
103
|
providersPerLine: number | string;
|
|
103
104
|
features: string;
|
|
105
|
+
closeButton?: boolean;
|
|
104
106
|
webhookURI: string;
|
|
105
107
|
}
|
|
106
108
|
|
package/dist/wealthica.es5.d.ts
CHANGED
|
@@ -97,10 +97,12 @@ type ConnectDataOptions = {
|
|
|
97
97
|
lang: string;
|
|
98
98
|
redirectURI: string;
|
|
99
99
|
providers: Array<string> | undefined;
|
|
100
|
+
disabledProviders: Array<string> | undefined;
|
|
100
101
|
providerGroups: Array<string> | undefined;
|
|
101
102
|
theme: string;
|
|
102
103
|
providersPerLine: number | string;
|
|
103
104
|
features: string;
|
|
105
|
+
closeButton?: boolean;
|
|
104
106
|
webhookURI: string;
|
|
105
107
|
}
|
|
106
108
|
|