@riocrypto/common-server 1.0.2504 → 1.0.2506
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.
- package/build/clients/cluster-client.d.ts +2 -0
- package/build/clients/cluster-client.js +10 -0
- package/build/models/bulk-bank-payout.d.ts +2 -0
- package/build/models/bulk-bank-payout.js +3 -0
- package/build/models/bulk-crypto-payout.d.ts +2 -0
- package/build/models/bulk-crypto-payout.js +3 -0
- package/package.json +2 -2
|
@@ -175,8 +175,10 @@ declare class ClusterClient {
|
|
|
175
175
|
getSTPMXNWithdrawal(id: string): Promise<STPMXNWithdrawal>;
|
|
176
176
|
createBulkBankPayout(userId: string, payoutBankAccountId: string, deferredPaymentType: DeferredPaymentType): Promise<BulkBankPayout>;
|
|
177
177
|
createBulkCryptoPayout(userId: string, payoutAddressId: string, country: Country, deferredPaymentType: DeferredPaymentType): Promise<BulkCryptoPayout>;
|
|
178
|
+
sendBulkCryptoPayout(id: string): Promise<void>;
|
|
178
179
|
createBulkBankPayment(userId: string, fiat: Fiat, country: Country, deferredPaymentType: DeferredPaymentType): Promise<BulkBankPayment>;
|
|
179
180
|
createBulkCryptoPayment(userId: string, crypto: Crypto, country: Country, deferredPaymentType: DeferredPaymentType): Promise<BulkCryptoPayment>;
|
|
181
|
+
sendBulkBankPayment(id: string): Promise<void>;
|
|
180
182
|
}
|
|
181
183
|
export declare const buildClusterClient: () => Promise<ClusterClient>;
|
|
182
184
|
export {};
|
|
@@ -613,6 +613,11 @@ class ClusterClient {
|
|
|
613
613
|
return response.data;
|
|
614
614
|
});
|
|
615
615
|
}
|
|
616
|
+
sendBulkCryptoPayout(id) {
|
|
617
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
618
|
+
yield this.axios.post(`${this.baseUrl}/api/payouts/crypto/bulk/${id}/send`, {}, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
619
|
+
});
|
|
620
|
+
}
|
|
616
621
|
createBulkBankPayment(userId, fiat, country, deferredPaymentType) {
|
|
617
622
|
return __awaiter(this, void 0, void 0, function* () {
|
|
618
623
|
const response = yield this.axios.post(`${this.baseUrl}/api/payments/bank/bulk`, { userId, fiat, country, deferredPaymentType }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
@@ -625,6 +630,11 @@ class ClusterClient {
|
|
|
625
630
|
return response.data;
|
|
626
631
|
});
|
|
627
632
|
}
|
|
633
|
+
sendBulkBankPayment(id) {
|
|
634
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
635
|
+
yield this.axios.post(`${this.baseUrl}/api/payments/bank/bulk/${id}/send`, {}, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
636
|
+
});
|
|
637
|
+
}
|
|
628
638
|
}
|
|
629
639
|
const buildClusterClient = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
630
640
|
// Retrieve secrets asynchronously
|
|
@@ -15,6 +15,7 @@ interface BulkBankPayoutAttrs {
|
|
|
15
15
|
CLABE?: string;
|
|
16
16
|
CCI?: string;
|
|
17
17
|
status: BulkBankPayoutStatus;
|
|
18
|
+
payoutTransferLimit?: number;
|
|
18
19
|
}
|
|
19
20
|
interface BulkBankPayoutDoc extends Document {
|
|
20
21
|
id: string;
|
|
@@ -32,6 +33,7 @@ interface BulkBankPayoutDoc extends Document {
|
|
|
32
33
|
CLABE?: string;
|
|
33
34
|
CCI?: string;
|
|
34
35
|
status: BulkBankPayoutStatus;
|
|
36
|
+
payoutTransferLimit?: number;
|
|
35
37
|
}
|
|
36
38
|
interface BulkBankPayoutModel extends Model<BulkBankPayoutDoc> {
|
|
37
39
|
build(attrs: BulkBankPayoutAttrs): BulkBankPayoutDoc;
|
|
@@ -11,6 +11,7 @@ interface BulkCryptoPayoutAttrs {
|
|
|
11
11
|
blockchainAddress?: string;
|
|
12
12
|
country: Country;
|
|
13
13
|
status: BulkCryptoPayoutStatus;
|
|
14
|
+
payoutTransferLimit?: number;
|
|
14
15
|
}
|
|
15
16
|
interface BulkCryptoPayoutDoc extends Document {
|
|
16
17
|
id: string;
|
|
@@ -24,6 +25,7 @@ interface BulkCryptoPayoutDoc extends Document {
|
|
|
24
25
|
blockchainAddress?: string;
|
|
25
26
|
country: Country;
|
|
26
27
|
status: BulkCryptoPayoutStatus;
|
|
28
|
+
payoutTransferLimit?: number;
|
|
27
29
|
}
|
|
28
30
|
interface BulkCryptoPayoutModel extends Model<BulkCryptoPayoutDoc> {
|
|
29
31
|
build(attrs: BulkCryptoPayoutAttrs): BulkCryptoPayoutDoc;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2506",
|
|
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.2278",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|