@riocrypto/common 1.0.680 → 1.0.682
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.
|
@@ -26,9 +26,9 @@ import { OrderUpdate } from "../types/order-update";
|
|
|
26
26
|
export declare class RioAdminClient {
|
|
27
27
|
private axios;
|
|
28
28
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
29
|
-
getOrders(side
|
|
29
|
+
getOrders(side: Side, page: number, limit?: number): Promise<Order[]>;
|
|
30
30
|
getQuote(crypto: Crypto, fiat: Fiat, quoteInCrypto: boolean, side: Side, amountFiat?: Number, amountCrypto?: Number, country?: Country, paymentMethod?: PaymentMethod, payoutMethod?: PayoutMethod): Promise<Quote>;
|
|
31
|
-
getUsers(type?: UserType, brokerId?: string): Promise<User[]>;
|
|
31
|
+
getUsers(page: number, limit: number, type?: UserType, brokerId?: string): Promise<User[]>;
|
|
32
32
|
signinAdmin(email: string, password: string, authenticatorCode: string): Promise<any>;
|
|
33
33
|
updateUser(update: UserUpdate, userId?: string): Promise<User>;
|
|
34
34
|
uploadCOI(id: string, formData: FormData): Promise<User>;
|
|
@@ -86,7 +86,7 @@ export declare class RioAdminClient {
|
|
|
86
86
|
revenue: number;
|
|
87
87
|
}>;
|
|
88
88
|
getPaymentMethods(fiat: Fiat, country: Country): Promise<PaymentMethod[]>;
|
|
89
|
-
getBankAccounts(): Promise<BankAccount[]>;
|
|
89
|
+
getBankAccounts(page: number, limit: number): Promise<BankAccount[]>;
|
|
90
90
|
getSupportedPayoutMethods(fiat: Fiat, country: Country): Promise<PayoutMethod[]>;
|
|
91
91
|
getPartner(partnerId: string): Promise<Partner>;
|
|
92
92
|
createKushkiPayment(orderId: string, token: string): Promise<{
|
|
@@ -25,17 +25,13 @@ class RioAdminClient {
|
|
|
25
25
|
}
|
|
26
26
|
getOrders(side, page, limit) {
|
|
27
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
if (limit) {
|
|
36
|
-
url += `&limit=${limit}`;
|
|
37
|
-
}
|
|
38
|
-
const { data } = yield this.axios.get(url);
|
|
28
|
+
const { data } = yield this.axios.get(`/api/orders?`, {
|
|
29
|
+
params: {
|
|
30
|
+
side,
|
|
31
|
+
page,
|
|
32
|
+
limit,
|
|
33
|
+
},
|
|
34
|
+
});
|
|
39
35
|
return data;
|
|
40
36
|
});
|
|
41
37
|
}
|
|
@@ -57,12 +53,14 @@ class RioAdminClient {
|
|
|
57
53
|
return data;
|
|
58
54
|
});
|
|
59
55
|
}
|
|
60
|
-
getUsers(type, brokerId) {
|
|
56
|
+
getUsers(page, limit, type, brokerId) {
|
|
61
57
|
return __awaiter(this, void 0, void 0, function* () {
|
|
62
58
|
const { data } = yield this.axios.get(`/api/users`, {
|
|
63
59
|
params: {
|
|
64
60
|
type,
|
|
65
61
|
brokerId,
|
|
62
|
+
page,
|
|
63
|
+
limit,
|
|
66
64
|
},
|
|
67
65
|
});
|
|
68
66
|
return data;
|
|
@@ -332,9 +330,11 @@ class RioAdminClient {
|
|
|
332
330
|
return response.data;
|
|
333
331
|
});
|
|
334
332
|
}
|
|
335
|
-
getBankAccounts() {
|
|
333
|
+
getBankAccounts(page, limit) {
|
|
336
334
|
return __awaiter(this, void 0, void 0, function* () {
|
|
337
|
-
const response = yield this.axios.get(`/api/bank/accounts
|
|
335
|
+
const response = yield this.axios.get(`/api/bank/accounts`, {
|
|
336
|
+
params: { page, limit },
|
|
337
|
+
});
|
|
338
338
|
return response.data;
|
|
339
339
|
});
|
|
340
340
|
}
|