@spritz-finance/service-client 0.3.110 → 0.3.112
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,3 +34,11 @@ export declare function requestWithdrawalSignature({ userId, network, amount, }:
|
|
|
34
34
|
network: string;
|
|
35
35
|
amount: string;
|
|
36
36
|
}): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<WithdrawalSignature>>;
|
|
37
|
+
export declare function adminGetUserInfo({ userId }: {
|
|
38
|
+
userId: string;
|
|
39
|
+
}): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<{
|
|
40
|
+
id: string;
|
|
41
|
+
externalId: string;
|
|
42
|
+
applicationStatus: ApplicationStatus;
|
|
43
|
+
depositAddress: string;
|
|
44
|
+
}>>;
|
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.requestWithdrawalSignature = exports.getLiveBalance = exports.updateCardStatus = exports.createRainCard = exports.getApplicationStatus = exports.validateContractAddress = exports.getUserDepositAddress = exports.createCardApplication = exports.RainClient = void 0;
|
|
26
|
+
exports.adminGetUserInfo = exports.requestWithdrawalSignature = exports.getLiveBalance = exports.updateCardStatus = exports.createRainCard = exports.getApplicationStatus = exports.validateContractAddress = exports.getUserDepositAddress = exports.createCardApplication = exports.RainClient = void 0;
|
|
27
27
|
exports.RainClient = __importStar(require("./rainServiceClient"));
|
|
28
28
|
const serviceClient_1 = require("../serviceClient");
|
|
29
29
|
const RAIN_ENDPOINT = '/rain-v2';
|
|
@@ -83,3 +83,9 @@ async function requestWithdrawalSignature({ userId, network, amount, }) {
|
|
|
83
83
|
.then((res) => res.data);
|
|
84
84
|
}
|
|
85
85
|
exports.requestWithdrawalSignature = requestWithdrawalSignature;
|
|
86
|
+
async function adminGetUserInfo({ userId }) {
|
|
87
|
+
return serviceClient_1.baseClient
|
|
88
|
+
.get(`${RAIN_ENDPOINT}/admin/user/${userId}/info`)
|
|
89
|
+
.then((res) => res.data);
|
|
90
|
+
}
|
|
91
|
+
exports.adminGetUserInfo = adminGetUserInfo;
|