@riocrypto/common-server 1.0.2488 → 1.0.2489
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 } 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 } from "@riocrypto/common";
|
|
2
2
|
declare class ClusterClient {
|
|
3
3
|
private baseUrl;
|
|
4
4
|
private clusterApiKey;
|
|
@@ -168,8 +168,8 @@ declare class ClusterClient {
|
|
|
168
168
|
getSTPMXNBalance(): Promise<number>;
|
|
169
169
|
createSTPMXNWithdrawal(amount: number, CLABE: string, concepto: string, beneficiaryName: string): Promise<void>;
|
|
170
170
|
getSTPMXNWithdrawal(id: string): Promise<STPMXNWithdrawal>;
|
|
171
|
-
createBulkBankPayout(userId: string, payoutBankAccountId: string): Promise<
|
|
172
|
-
createBulkCryptoPayout(userId: string, payoutAddressId: string): Promise<
|
|
171
|
+
createBulkBankPayout(userId: string, payoutBankAccountId: string): Promise<BulkBankPayout>;
|
|
172
|
+
createBulkCryptoPayout(userId: string, payoutAddressId: string): Promise<BulkCryptoPayout>;
|
|
173
173
|
}
|
|
174
174
|
export declare const buildClusterClient: () => Promise<ClusterClient>;
|
|
175
175
|
export {};
|
|
@@ -596,12 +596,14 @@ class ClusterClient {
|
|
|
596
596
|
}
|
|
597
597
|
createBulkBankPayout(userId, payoutBankAccountId) {
|
|
598
598
|
return __awaiter(this, void 0, void 0, function* () {
|
|
599
|
-
yield this.axios.post(`${this.baseUrl}/api/payouts/bank/bulk`, { userId, payoutBankAccountId }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
599
|
+
const response = yield this.axios.post(`${this.baseUrl}/api/payouts/bank/bulk`, { userId, payoutBankAccountId }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
600
|
+
return response.data;
|
|
600
601
|
});
|
|
601
602
|
}
|
|
602
603
|
createBulkCryptoPayout(userId, payoutAddressId) {
|
|
603
604
|
return __awaiter(this, void 0, void 0, function* () {
|
|
604
|
-
yield this.axios.post(`${this.baseUrl}/api/payouts/crypto/bulk`, { userId, payoutAddressId }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
605
|
+
const response = yield this.axios.post(`${this.baseUrl}/api/payouts/crypto/bulk`, { userId, payoutAddressId }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
606
|
+
return response.data;
|
|
605
607
|
});
|
|
606
608
|
}
|
|
607
609
|
}
|
|
@@ -16,8 +16,8 @@ interface TWAPSessionAttrs {
|
|
|
16
16
|
clipSize: number;
|
|
17
17
|
interval: number;
|
|
18
18
|
isRunning: boolean;
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
bulkBankPayoutId?: string;
|
|
20
|
+
bulkCryptoPayoutId?: string;
|
|
21
21
|
deferredPaymentType: DeferredPaymentType;
|
|
22
22
|
twoWaySettlementType: TwoWaySettlementType;
|
|
23
23
|
twoWaySettlementDateOffset: number;
|
|
@@ -43,8 +43,8 @@ interface TWAPSessionDoc extends Document {
|
|
|
43
43
|
clipSize: number;
|
|
44
44
|
interval: number;
|
|
45
45
|
isRunning: boolean;
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
bulkBankPayoutId?: string;
|
|
47
|
+
bulkCryptoPayoutId?: string;
|
|
48
48
|
deferredPaymentType: DeferredPaymentType;
|
|
49
49
|
twoWaySettlementType: TwoWaySettlementType;
|
|
50
50
|
twoWaySettlementDateOffset: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2489",
|
|
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.2256",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|