@riocrypto/common-server 1.0.1791 → 1.0.1792
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.
|
@@ -197,6 +197,7 @@ declare class BridgeClient {
|
|
|
197
197
|
last_4: string;
|
|
198
198
|
active: boolean;
|
|
199
199
|
}>;
|
|
200
|
+
deleteExternalAccount(customerId: string, externalAccountId: string): Promise<any>;
|
|
200
201
|
}
|
|
201
202
|
export declare const buildBridgeClient: () => Promise<BridgeClient>;
|
|
202
203
|
export {};
|
|
@@ -224,6 +224,16 @@ class BridgeClient {
|
|
|
224
224
|
return data;
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
|
+
deleteExternalAccount(customerId, externalAccountId) {
|
|
228
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
229
|
+
const { data } = yield axios_with_logging_1.default.delete(`${this.baseUrl}/v0/customers/${customerId}/external_accounts/${externalAccountId}`, {
|
|
230
|
+
headers: {
|
|
231
|
+
"Api-Key": this.apiKey,
|
|
232
|
+
},
|
|
233
|
+
});
|
|
234
|
+
return data;
|
|
235
|
+
});
|
|
236
|
+
}
|
|
227
237
|
}
|
|
228
238
|
const buildBridgeClient = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
229
239
|
// Retrieve secrets asynchronously
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1792",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@google-cloud/secret-manager": "^5.3.0",
|
|
27
27
|
"@google-cloud/storage": "^6.9.5",
|
|
28
28
|
"@hyperdx/node-opentelemetry": "^0.4.2",
|
|
29
|
-
"@riocrypto/common": "^1.0.
|
|
29
|
+
"@riocrypto/common": "^1.0.1596",
|
|
30
30
|
"@types/express": "^4.17.13",
|
|
31
31
|
"axios": "^1.6.0",
|
|
32
32
|
"crypto-js": "^4.2.0",
|