@spritz-finance/service-client 0.3.113 → 0.3.115
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,6 +1,6 @@
|
|
|
1
1
|
export * as PayoutsClient from './payoutsServiceClient';
|
|
2
2
|
import { CryptoPayout, CryptoPayoutInput } from './types';
|
|
3
|
-
export declare function requestCryptoPayout({ userId, type, network, amountFiat, referenceId, toAddress, tokenSymbol, currencyFiat, }: CryptoPayoutInput): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<CryptoPayout>>;
|
|
3
|
+
export declare function requestCryptoPayout({ userId, type, network, amountFiat, referenceId, toAddress, tokenSymbol, currencyFiat, fromDispatchWallet, }: CryptoPayoutInput): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<CryptoPayout>>;
|
|
4
4
|
export declare function getPayoutFromHash({ userId, transactionHash, }: {
|
|
5
5
|
userId?: string;
|
|
6
6
|
transactionHash: string;
|
|
@@ -27,7 +27,7 @@ exports.submit7702Message = exports.requestWithdrawlSignature = exports.getPayou
|
|
|
27
27
|
exports.PayoutsClient = __importStar(require("./payoutsServiceClient"));
|
|
28
28
|
const serviceClient_1 = require("../serviceClient");
|
|
29
29
|
const PAYOUTS_ENDPOINT = '/bridgebot';
|
|
30
|
-
async function requestCryptoPayout({ userId, type, network, amountFiat, referenceId, toAddress, tokenSymbol, currencyFiat = 'USD', }) {
|
|
30
|
+
async function requestCryptoPayout({ userId, type, network, amountFiat, referenceId, toAddress, tokenSymbol, currencyFiat = 'USD', fromDispatchWallet = false, }) {
|
|
31
31
|
return serviceClient_1.baseClient
|
|
32
32
|
.post(`${PAYOUTS_ENDPOINT}/payouts/crypto`, {
|
|
33
33
|
userId,
|
|
@@ -38,6 +38,7 @@ async function requestCryptoPayout({ userId, type, network, amountFiat, referenc
|
|
|
38
38
|
tokenSymbol,
|
|
39
39
|
referenceId,
|
|
40
40
|
currencyFiat,
|
|
41
|
+
fromDispatchWallet,
|
|
41
42
|
})
|
|
42
43
|
.then((res) => res.data);
|
|
43
44
|
}
|
package/lib/payouts/types.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ const serviceClient_1 = require("../serviceClient");
|
|
|
29
29
|
const USERS_ENDPOINT = '/users';
|
|
30
30
|
async function getActiveUsers() {
|
|
31
31
|
return serviceClient_1.baseClient
|
|
32
|
-
.get(`v2
|
|
32
|
+
.get(`v2${USERS_ENDPOINT}/active-users`)
|
|
33
33
|
.then((res) => res.data);
|
|
34
34
|
}
|
|
35
35
|
exports.getActiveUsers = getActiveUsers;
|