@riocrypto/common 1.0.1615 → 1.0.1617

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.
@@ -33,7 +33,7 @@ class RioAdminClient {
33
33
  }
34
34
  getLiquidityAvailable() {
35
35
  return __awaiter(this, void 0, void 0, function* () {
36
- const { data } = yield this.axios.get(`/api/wallet/rio-balances/usd`);
36
+ const { data } = yield this.axios.get(`/api/liquidity/usd/total`);
37
37
  return data;
38
38
  });
39
39
  }
@@ -234,7 +234,6 @@ export declare class RioClient {
234
234
  createKushkiBankPayment(orderId: string): Promise<any>;
235
235
  updateAuth(update: AuthUpdate, id: string): Promise<Auth>;
236
236
  getInvoice(orderId: string): Promise<Invoice>;
237
- getCryptoBalance(asset: Crypto, userId?: string): Promise<number>;
238
237
  createOnboardingByLink(userType: UserType, countryOfOperation: Country, brokerId?: string, referrerId?: string): Promise<{
239
238
  id: string;
240
239
  kycLink: string;
@@ -51,7 +51,7 @@ class RioClient {
51
51
  }
52
52
  getLiquidityAvailable() {
53
53
  return __awaiter(this, void 0, void 0, function* () {
54
- const { data } = yield this.axios.get(`/api/wallet/rio-balances/usd`);
54
+ const { data } = yield this.axios.get(`/api/liquidity/usd/total`);
55
55
  return data;
56
56
  });
57
57
  }
@@ -744,16 +744,6 @@ class RioClient {
744
744
  return response.data;
745
745
  });
746
746
  }
747
- getCryptoBalance(asset, userId) {
748
- return __awaiter(this, void 0, void 0, function* () {
749
- const response = yield this.axios.get(`/api/wallet/balances/${asset}`, {
750
- params: {
751
- userId: userId ? userId : undefined,
752
- },
753
- });
754
- return response.data.balance;
755
- });
756
- }
757
747
  createOnboardingByLink(userType, countryOfOperation, brokerId, referrerId) {
758
748
  return __awaiter(this, void 0, void 0, function* () {
759
749
  const { data } = yield this.axios.post(`/api/onboardings/${countryOfOperation}/link`, {
@@ -1,3 +1,3 @@
1
- export declare enum OrderAttributes {
1
+ export declare enum OrderAttribute {
2
2
  binanceFlow = "binanceFlow"
3
3
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrderAttributes = void 0;
4
- var OrderAttributes;
5
- (function (OrderAttributes) {
6
- OrderAttributes["binanceFlow"] = "binanceFlow";
7
- })(OrderAttributes = exports.OrderAttributes || (exports.OrderAttributes = {}));
3
+ exports.OrderAttribute = void 0;
4
+ var OrderAttribute;
5
+ (function (OrderAttribute) {
6
+ OrderAttribute["binanceFlow"] = "binanceFlow";
7
+ })(OrderAttribute = exports.OrderAttribute || (exports.OrderAttribute = {}));
@@ -11,7 +11,7 @@ import { PayoutMethod } from "./payout-method";
11
11
  import { Partner } from "./partner";
12
12
  import { ExchangeRateOrder } from "./exchange-rate-order";
13
13
  import { OrderSubstatus } from "./order-substatus";
14
- import { OrderAttributes } from "./order-attribute";
14
+ import { OrderAttribute } from "./order-attribute";
15
15
  export interface Order {
16
16
  id: string;
17
17
  quoteId: string;
@@ -63,5 +63,5 @@ export interface Order {
63
63
  paymentAddressId?: string;
64
64
  payoutAddressId?: string;
65
65
  payoutBankAccountId?: string;
66
- attributes?: OrderAttributes[];
66
+ attributes?: OrderAttribute[];
67
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1615",
3
+ "version": "1.0.1617",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",