@riocrypto/common 1.0.804 → 1.0.807
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.
|
@@ -24,6 +24,7 @@ import { OrderUpdate } from "../types/order-update";
|
|
|
24
24
|
import { QuoteInput } from "../types/quote-input";
|
|
25
25
|
import { OrderQuery } from "../types/order-query";
|
|
26
26
|
import { UserQuery } from "../types/user-query";
|
|
27
|
+
import { BankAccountQuery } from "../types/bank-account-query";
|
|
27
28
|
export declare class RioAdminClient {
|
|
28
29
|
private axios;
|
|
29
30
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
@@ -103,7 +104,7 @@ export declare class RioAdminClient {
|
|
|
103
104
|
x: number;
|
|
104
105
|
}>;
|
|
105
106
|
getPaymentMethods(fiat: Fiat, country: Country): Promise<PaymentMethod[]>;
|
|
106
|
-
getBankAccounts(page: number, limit: number): Promise<BankAccount[]>;
|
|
107
|
+
getBankAccounts(page: number, limit: number, query?: BankAccountQuery): Promise<BankAccount[]>;
|
|
107
108
|
getBankAccount(id: string): Promise<BankAccount>;
|
|
108
109
|
getSupportedPayoutMethods(fiat: Fiat, country: Country): Promise<PayoutMethod[]>;
|
|
109
110
|
getPartner(partnerId: string): Promise<Partner>;
|
|
@@ -354,10 +354,11 @@ class RioAdminClient {
|
|
|
354
354
|
return response.data;
|
|
355
355
|
});
|
|
356
356
|
}
|
|
357
|
-
getBankAccounts(page, limit) {
|
|
357
|
+
getBankAccounts(page, limit, query) {
|
|
358
358
|
return __awaiter(this, void 0, void 0, function* () {
|
|
359
359
|
const response = yield this.axios.get(`/api/bank/accounts`, {
|
|
360
|
-
params: { page,
|
|
360
|
+
params: Object.assign({ page,
|
|
361
|
+
limit }, query),
|
|
361
362
|
});
|
|
362
363
|
return response.data;
|
|
363
364
|
});
|
|
@@ -26,7 +26,7 @@ import { BankAccountQuery } from "../types/bank-account-query";
|
|
|
26
26
|
export declare class RioClient {
|
|
27
27
|
private axios;
|
|
28
28
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
29
|
-
getOrders(page: number, limit?: number, query?: OrderQuery): Promise<Order[]>;
|
|
29
|
+
getOrders(page: number, limit?: number, query?: OrderQuery, includeOwnOrders?: boolean): Promise<Order[]>;
|
|
30
30
|
createQuote(input: QuoteInput): Promise<Quote>;
|
|
31
31
|
getUsers(page: number, limit?: number, query?: UserQuery): Promise<User[]>;
|
|
32
32
|
updateUser(update: UserUpdate, userId?: string): Promise<User>;
|
|
@@ -21,11 +21,11 @@ class RioClient {
|
|
|
21
21
|
return config;
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
getOrders(page, limit, query) {
|
|
24
|
+
getOrders(page, limit, query, includeOwnOrders) {
|
|
25
25
|
return __awaiter(this, void 0, void 0, function* () {
|
|
26
26
|
const { data } = yield this.axios.get(`/api/orders?`, {
|
|
27
|
-
params: Object.assign({ page,
|
|
28
|
-
limit }, query),
|
|
27
|
+
params: Object.assign(Object.assign({ page,
|
|
28
|
+
limit }, query), { includeOwnOrders }),
|
|
29
29
|
});
|
|
30
30
|
return data;
|
|
31
31
|
});
|