@riocrypto/common 1.0.711 → 1.0.713

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.
@@ -25,7 +25,7 @@ import { QuoteInput } from "../types/quote-input";
25
25
  export declare class RioClient {
26
26
  private axios;
27
27
  constructor(axios: AxiosStatic | AxiosInstance);
28
- getOrders(side: Side, page: number, limit?: number): Promise<Order[]>;
28
+ getOrders(page: number, limit?: number, side?: Side): Promise<Order[]>;
29
29
  createQuote(input: QuoteInput): Promise<Quote>;
30
30
  getUsers(page: number, limit: number, type?: UserType, brokerId?: string): Promise<User[]>;
31
31
  updateUser(update: UserUpdate, userId?: string): Promise<User>;
@@ -72,6 +72,7 @@ export declare class RioClient {
72
72
  volume: number;
73
73
  revenue: number;
74
74
  }>;
75
+ getQuote(id: string): Promise<Quote>;
75
76
  getPaymentMethods(fiat: Fiat, country: Country): Promise<PaymentMethod[]>;
76
77
  getBankAccounts(page: number, limit: number): Promise<BankAccount[]>;
77
78
  getSupportedPayoutMethods(fiat: Fiat, country: Country): Promise<PayoutMethod[]>;
@@ -21,7 +21,7 @@ class RioClient {
21
21
  return config;
22
22
  });
23
23
  }
24
- getOrders(side, page, limit) {
24
+ getOrders(page, limit, side) {
25
25
  return __awaiter(this, void 0, void 0, function* () {
26
26
  const { data } = yield this.axios.get(`/api/orders?`, {
27
27
  params: {
@@ -246,6 +246,12 @@ class RioClient {
246
246
  return response.data;
247
247
  });
248
248
  }
249
+ getQuote(id) {
250
+ return __awaiter(this, void 0, void 0, function* () {
251
+ const { data } = yield this.axios.get(`/api/quotes/${id}`);
252
+ return data;
253
+ });
254
+ }
249
255
  getPaymentMethods(fiat, country) {
250
256
  return __awaiter(this, void 0, void 0, function* () {
251
257
  const response = yield this.axios.get(`/api/payment-methods?fiat=${fiat}&country=${country}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.711",
3
+ "version": "1.0.713",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",