@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/
|
|
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
|
},
|
package/build/models/order.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Country, Fees, Fiat, LiquidityProvider, OrderStatus, PaymentMethod, PayoutMethod, Processor, Side, Crypto, Partner, ExchangeRateOrder, OrderSubstatus,
|
|
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?:
|
|
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?:
|
|
103
|
+
attributes?: OrderAttribute[];
|
|
104
104
|
}
|
|
105
105
|
interface OrderModel extends Model<OrderDoc> {
|
|
106
106
|
build(attrs: OrderAttrs): OrderDoc;
|
package/build/models/user.d.ts
CHANGED
|
@@ -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 };
|
package/build/models/user.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
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.
|
|
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",
|