@riocrypto/common-server 1.0.878 → 1.0.879

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.
@@ -101,6 +101,11 @@ declare class BridgeClient {
101
101
  bank_beneficiary_name?: string;
102
102
  };
103
103
  }>;
104
+ createPlaidLinkToken(bridgeCustomerId: string): Promise<{
105
+ link_token: string;
106
+ link_token_expires_at: string;
107
+ callback_url: string;
108
+ }>;
104
109
  }
105
110
  export declare const buildBridgeClient: () => Promise<BridgeClient>;
106
111
  export {};
@@ -79,6 +79,17 @@ class BridgeClient {
79
79
  return data;
80
80
  });
81
81
  }
82
+ createPlaidLinkToken(bridgeCustomerId) {
83
+ return __awaiter(this, void 0, void 0, function* () {
84
+ const { data } = yield axios_1.default.post(`${this.baseUrl}/v0/customers/${bridgeCustomerId}/plaid_link_reques`, undefined, {
85
+ headers: {
86
+ "Api-Key": this.apiKey,
87
+ "Idempotency-Key": (0, uuid_1.v4)(),
88
+ },
89
+ });
90
+ return data;
91
+ });
92
+ }
82
93
  }
83
94
  const buildBridgeClient = () => __awaiter(void 0, void 0, void 0, function* () {
84
95
  // Retrieve secrets asynchronously
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.878",
3
+ "version": "1.0.879",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "@aws-sdk/client-s3": "^3.297.0",
25
25
  "@everapi/currencyapi-js": "^1.0.6",
26
26
  "@google-cloud/storage": "^6.9.5",
27
- "@riocrypto/common": "^1.0.755",
27
+ "@riocrypto/common": "^1.0.756",
28
28
  "@types/express": "^4.17.13",
29
29
  "axios": "^0.27.2",
30
30
  "ccxt": "^3.0.30",