@riocrypto/common-server 1.0.2533 → 1.0.2535
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Quote, Fiat, Crypto, BitsoBankAccount, Side, Country, Order, CryptoAddress, BankAccount, AuthRole, Auth, ImportOrderData, TreasuryProvider, FXProvider, EmarketsFXTrade, ExternalTradingAlgorithm, ExternalTrade, ExternalTradeType, ExternalTradingProvider, ExternalTradingAlgorithmType, STPMXNWithdrawal, AuthPermission, DeferredPaymentType, TwoWaySettlementType, OrderType, EmarketsSettlementType, EmarketsOrderType, BulkBankPayout, BulkCryptoPayout, BulkBankPayment, BulkCryptoPayment } from "@riocrypto/common";
|
|
1
|
+
import { Quote, Fiat, Crypto, BitsoBankAccount, Side, Country, Order, CryptoAddress, BankAccount, AuthRole, Auth, ImportOrderData, TreasuryProvider, FXProvider, EmarketsFXTrade, ExternalTradingAlgorithm, ExternalTrade, ExternalTradeType, ExternalTradingProvider, ExternalTradingAlgorithmType, STPMXNWithdrawal, AuthPermission, DeferredPaymentType, TwoWaySettlementType, OrderType, EmarketsSettlementType, EmarketsOrderType, BulkBankPayout, BulkCryptoPayout, BulkBankPayment, BulkCryptoPayment, OrderStatus } from "@riocrypto/common";
|
|
2
2
|
declare class ClusterClient {
|
|
3
3
|
private baseUrl;
|
|
4
4
|
private clusterApiKey;
|
|
@@ -95,6 +95,7 @@ declare class ClusterClient {
|
|
|
95
95
|
generateInvoice(orderId: string): Promise<void>;
|
|
96
96
|
cancelFXTrade(fxTradeId: string): Promise<void>;
|
|
97
97
|
resetOrderFXData(orderId: string): Promise<void>;
|
|
98
|
+
resetOrderStatus(orderId: string, status: OrderStatus): Promise<void>;
|
|
98
99
|
deleteInvoice(id: string): Promise<void>;
|
|
99
100
|
deleteRecord(id: string): Promise<void>;
|
|
100
101
|
createRecord(orderId: string, force: boolean): Promise<void>;
|
|
@@ -183,6 +184,10 @@ declare class ClusterClient {
|
|
|
183
184
|
cancelBulkCryptoPayment(id: string): Promise<void>;
|
|
184
185
|
cancelBulkBankPayout(id: string): Promise<void>;
|
|
185
186
|
cancelBulkCryptoPayout(id: string): Promise<void>;
|
|
187
|
+
resetBulkBankPayment(id: string): Promise<void>;
|
|
188
|
+
resetBulkCryptoPayment(id: string): Promise<void>;
|
|
189
|
+
resetBulkBankPayout(id: string): Promise<void>;
|
|
190
|
+
resetBulkCryptoPayout(id: string): Promise<void>;
|
|
186
191
|
}
|
|
187
192
|
export declare const buildClusterClient: () => Promise<ClusterClient>;
|
|
188
193
|
export {};
|
|
@@ -356,6 +356,11 @@ class ClusterClient {
|
|
|
356
356
|
});
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
|
+
resetOrderStatus(orderId, status) {
|
|
360
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
361
|
+
yield this.axios.post(`${this.baseUrl}/api/orders/${orderId}/reset-status`, { status });
|
|
362
|
+
});
|
|
363
|
+
}
|
|
359
364
|
deleteInvoice(id) {
|
|
360
365
|
return __awaiter(this, void 0, void 0, function* () {
|
|
361
366
|
yield this.axios.delete(`${this.baseUrl}/api/invoices/${id}`, {
|
|
@@ -655,6 +660,26 @@ class ClusterClient {
|
|
|
655
660
|
yield this.axios.post(`${this.baseUrl}/api/payouts/crypto/bulk/${id}/cancel`, {}, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
656
661
|
});
|
|
657
662
|
}
|
|
663
|
+
resetBulkBankPayment(id) {
|
|
664
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
665
|
+
yield this.axios.post(`${this.baseUrl}/api/payments/bank/bulk/${id}/reset`, {}, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
resetBulkCryptoPayment(id) {
|
|
669
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
670
|
+
yield this.axios.post(`${this.baseUrl}/api/payments/crypto/bulk/${id}/reset`, {}, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
resetBulkBankPayout(id) {
|
|
674
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
675
|
+
yield this.axios.post(`${this.baseUrl}/api/payouts/bank/bulk/${id}/reset`, {}, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
resetBulkCryptoPayout(id) {
|
|
679
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
680
|
+
yield this.axios.post(`${this.baseUrl}/api/payouts/crypto/bulk/${id}/reset`, {}, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
681
|
+
});
|
|
682
|
+
}
|
|
658
683
|
}
|
|
659
684
|
const buildClusterClient = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
660
685
|
// 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.2535",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@google-cloud/secret-manager": "^5.3.0",
|
|
29
29
|
"@google-cloud/storage": "^6.9.5",
|
|
30
30
|
"@hyperdx/node-opentelemetry": "^0.7.0",
|
|
31
|
-
"@riocrypto/common": "^1.0.
|
|
31
|
+
"@riocrypto/common": "^1.0.2332",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|