@riocrypto/common-server 1.0.1811 → 1.0.1814

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.
@@ -213,7 +213,7 @@ class ClusterClient {
213
213
  }
214
214
  getLiquidityAvailable() {
215
215
  return __awaiter(this, void 0, void 0, function* () {
216
- const { data } = yield this.axios.get(`${this.baseUrl}/api/wallet/rio-balances/usd`, {
216
+ const { data } = yield this.axios.get(`${this.baseUrl}/api/liquidity/usd/total`, {
217
217
  headers: {
218
218
  "x-cluster-api-key": this.clusterApiKey,
219
219
  },
@@ -1,4 +1,4 @@
1
- import { Country, Fees, Fiat, LiquidityProvider, OrderStatus, PaymentMethod, PayoutMethod, Processor, Side, Crypto, Partner, ExchangeRateOrder, OrderSubstatus, OrderAttributes } from "@riocrypto/common";
1
+ import { Country, Fees, Fiat, LiquidityProvider, OrderStatus, PaymentMethod, PayoutMethod, Processor, Side, Crypto, Partner, ExchangeRateOrder, OrderSubstatus, OrderAttribute } from "@riocrypto/common";
2
2
  import { Mongoose, Model, Document } from "mongoose";
3
3
  interface OrderAttrs {
4
4
  quoteId: string;
@@ -49,7 +49,7 @@ interface OrderAttrs {
49
49
  paymentAddressId?: string;
50
50
  payoutAddressId?: string;
51
51
  payoutBankAccountId?: string;
52
- attributes?: OrderAttributes[];
52
+ attributes?: OrderAttribute[];
53
53
  }
54
54
  interface OrderDoc extends Document {
55
55
  quoteId: string;
@@ -100,7 +100,7 @@ interface OrderDoc extends Document {
100
100
  paymentAddressId?: string;
101
101
  payoutAddressId?: string;
102
102
  payoutBankAccountId?: string;
103
- attributes?: OrderAttributes[];
103
+ attributes?: OrderAttribute[];
104
104
  }
105
105
  interface OrderModel extends Model<OrderDoc> {
106
106
  build(attrs: OrderAttrs): OrderDoc;
@@ -110,6 +110,11 @@ interface UserAttrs {
110
110
  };
111
111
  };
112
112
  attioRecordId?: string;
113
+ cumulativeVolumesInUSD?: {
114
+ [country in Country]?: {
115
+ [fiat in Fiat]?: number;
116
+ };
117
+ };
113
118
  }
114
119
  interface UserModel extends Model<UserDoc> {
115
120
  build(attrs: UserAttrs): UserDoc;
@@ -225,6 +230,11 @@ interface UserDoc extends Document {
225
230
  };
226
231
  };
227
232
  };
233
+ cumulativeVolumesInUSD?: {
234
+ [country in Country]?: {
235
+ [fiat in Fiat]?: number;
236
+ };
237
+ };
228
238
  }
229
239
  declare const buildUser: (mongoose: Mongoose) => UserModel;
230
240
  export { buildUser, UserDoc, UserAttrs };
@@ -242,6 +242,9 @@ const buildUser = (mongoose) => {
242
242
  referrerId: {
243
243
  type: String,
244
244
  },
245
+ cumulativeVolumesInUSD: {
246
+ type: Object,
247
+ },
245
248
  onboarding: Object,
246
249
  invoicing: {
247
250
  MX: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1811",
3
+ "version": "1.0.1814",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "@google-cloud/secret-manager": "^5.3.0",
27
27
  "@google-cloud/storage": "^6.9.5",
28
28
  "@hyperdx/node-opentelemetry": "^0.4.2",
29
- "@riocrypto/common": "^1.0.1615",
29
+ "@riocrypto/common": "^1.0.1619",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^1.6.0",
32
32
  "crypto-js": "^4.2.0",