@riocrypto/common-server 1.0.1115 → 1.0.1117

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.
@@ -68,6 +68,7 @@ declare class BridgeClient {
68
68
  bank_beneficiary_name?: string;
69
69
  };
70
70
  }>;
71
+ deleteTransfer(transferId: string): Promise<any>;
71
72
  getTransfer(id: string): Promise<{
72
73
  id: string;
73
74
  amount: string;
@@ -69,6 +69,17 @@ class BridgeClient {
69
69
  return data;
70
70
  });
71
71
  }
72
+ deleteTransfer(transferId) {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ const { data } = yield axios_1.default.delete(`${this.baseUrl}/v0/transfers/${transferId}`, {
75
+ headers: {
76
+ "Api-Key": this.apiKey,
77
+ "Idempotency-Key": (0, uuid_1.v4)(),
78
+ },
79
+ });
80
+ return data;
81
+ });
82
+ }
72
83
  getTransfer(id) {
73
84
  return __awaiter(this, void 0, void 0, function* () {
74
85
  const { data } = yield axios_1.default.get(`${this.baseUrl}/v0/transfers/${id}`, {
@@ -86,7 +97,7 @@ class BridgeClient {
86
97
  "Api-Key": this.apiKey,
87
98
  },
88
99
  });
89
- return data;
100
+ return data.data;
90
101
  });
91
102
  }
92
103
  createLiquidationAddress(bridgeCustomerId, currency, chain, externalAccountId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1115",
3
+ "version": "1.0.1117",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",