@riocrypto/common-server 1.0.1737 → 1.0.1739
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.
|
@@ -34,6 +34,7 @@ declare class ClusterClient {
|
|
|
34
34
|
verifyCode(phoneNumber: string, code?: string, authenticatorCode?: string): Promise<void>;
|
|
35
35
|
sendVerificationEmail(userId: string, country?: Country): Promise<void>;
|
|
36
36
|
registerFXTrade(orderId: string, amount: number, price: number): Promise<void>;
|
|
37
|
+
resetOrderFXData(orderId: string): Promise<void>;
|
|
37
38
|
}
|
|
38
39
|
export declare const buildClusterClient: () => Promise<ClusterClient>;
|
|
39
40
|
export {};
|
|
@@ -283,6 +283,15 @@ class ClusterClient {
|
|
|
283
283
|
});
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
+
resetOrderFXData(orderId) {
|
|
287
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
288
|
+
yield this.axios.post(`${this.baseUrl}/api/orders/${orderId}/reset-fx`, {}, {
|
|
289
|
+
headers: {
|
|
290
|
+
"x-cluster-api-key": this.clusterApiKey,
|
|
291
|
+
},
|
|
292
|
+
});
|
|
293
|
+
});
|
|
294
|
+
}
|
|
286
295
|
}
|
|
287
296
|
const buildClusterClient = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
288
297
|
// 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.1739",
|
|
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.1527",
|
|
30
30
|
"@types/express": "^4.17.13",
|
|
31
31
|
"axios": "^1.6.0",
|
|
32
32
|
"crypto-js": "^4.2.0",
|