@riocrypto/common-server 1.0.2535 → 1.0.2537
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.
|
@@ -358,7 +358,11 @@ class ClusterClient {
|
|
|
358
358
|
}
|
|
359
359
|
resetOrderStatus(orderId, status) {
|
|
360
360
|
return __awaiter(this, void 0, void 0, function* () {
|
|
361
|
-
yield this.axios.post(`${this.baseUrl}/api/orders/${orderId}/reset-status`, { status }
|
|
361
|
+
yield this.axios.post(`${this.baseUrl}/api/orders/${orderId}/reset-status`, { status }, {
|
|
362
|
+
headers: {
|
|
363
|
+
"x-cluster-api-key": this.clusterApiKey,
|
|
364
|
+
},
|
|
365
|
+
});
|
|
362
366
|
});
|
|
363
367
|
}
|
|
364
368
|
deleteInvoice(id) {
|
package/build/models/order.d.ts
CHANGED
|
@@ -130,7 +130,10 @@ interface OrderAttrs {
|
|
|
130
130
|
serviceFeeFiatTax?: number;
|
|
131
131
|
};
|
|
132
132
|
previousActiveStatus?: OrderStatus;
|
|
133
|
-
|
|
133
|
+
TWAP?: {
|
|
134
|
+
sessionId: string;
|
|
135
|
+
settlementId: string;
|
|
136
|
+
};
|
|
134
137
|
}
|
|
135
138
|
interface OrderDoc extends Document {
|
|
136
139
|
quoteId: string;
|
|
@@ -261,7 +264,10 @@ interface OrderDoc extends Document {
|
|
|
261
264
|
serviceFeeFiatTax?: number;
|
|
262
265
|
};
|
|
263
266
|
previousActiveStatus?: OrderStatus;
|
|
264
|
-
|
|
267
|
+
TWAP?: {
|
|
268
|
+
sessionId: string;
|
|
269
|
+
settlementId: string;
|
|
270
|
+
};
|
|
265
271
|
}
|
|
266
272
|
interface OrderModel extends Model<OrderDoc> {
|
|
267
273
|
build(attrs: OrderAttrs): OrderDoc;
|
package/build/models/order.js
CHANGED
|
@@ -16,6 +16,7 @@ interface TWAPSettlementAttrs {
|
|
|
16
16
|
bulkCryptoPaymentId?: string;
|
|
17
17
|
bulkBankPayoutId?: string;
|
|
18
18
|
bulkCryptoPayoutId?: string;
|
|
19
|
+
orderIds: string[];
|
|
19
20
|
}
|
|
20
21
|
interface TWAPSettlementModel extends Model<TWAPSettlementDoc> {
|
|
21
22
|
build(attrs: TWAPSettlementAttrs): TWAPSettlementDoc;
|
|
@@ -37,6 +38,7 @@ interface TWAPSettlementDoc extends Document {
|
|
|
37
38
|
bulkCryptoPaymentId?: string;
|
|
38
39
|
bulkBankPayoutId?: string;
|
|
39
40
|
bulkCryptoPayoutId?: string;
|
|
41
|
+
orderIds: string[];
|
|
40
42
|
}
|
|
41
43
|
declare const buildTWAPSettlement: (mongoose: Mongoose) => TWAPSettlementModel;
|
|
42
44
|
export { buildTWAPSettlement, TWAPSettlementDoc, TWAPSettlementAttrs };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2537",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@google-cloud/secret-manager": "^5.3.0",
|
|
29
29
|
"@google-cloud/storage": "^6.9.5",
|
|
30
30
|
"@hyperdx/node-opentelemetry": "^0.7.0",
|
|
31
|
-
"@riocrypto/common": "^1.0.
|
|
31
|
+
"@riocrypto/common": "^1.0.2335",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|