@riocrypto/common 1.0.759 → 1.0.760

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.
@@ -63,6 +63,7 @@ export declare class RioAdminClient {
63
63
  missing: string[];
64
64
  }>;
65
65
  authHasSecurityQuestion(): Promise<Boolean>;
66
+ createBridgePlaidLink(userId: string): Promise<string>;
66
67
  signout(): Promise<void>;
67
68
  verifyPhoneCode(phoneNumber: string, code: string): Promise<void>;
68
69
  signin(password: string): Promise<{
@@ -204,6 +204,14 @@ class RioAdminClient {
204
204
  return response.data.hasSecurityQuestion;
205
205
  });
206
206
  }
207
+ createBridgePlaidLink(userId) {
208
+ return __awaiter(this, void 0, void 0, function* () {
209
+ const response = yield this.axios.post(`/api/bank/us/link-token`, {
210
+ userId,
211
+ });
212
+ return response.data.token;
213
+ });
214
+ }
207
215
  signout() {
208
216
  return __awaiter(this, void 0, void 0, function* () {
209
217
  yield this.axios.post("/api/auth/signout", {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.759",
3
+ "version": "1.0.760",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",