@riocrypto/common-server 1.0.2564 → 1.0.2566
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.
- package/build/models/order.d.ts +2 -0
- package/build/models/order.js +4 -0
- package/package.json +2 -2
package/build/models/order.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Country, Fees, Fiat, LiquidityProvider, OrderStatus, PaymentMethod, Pay
|
|
|
2
2
|
import { Mongoose, Model, Document } from "mongoose";
|
|
3
3
|
interface OrderAttrs {
|
|
4
4
|
quoteId: string;
|
|
5
|
+
clientReferenceId?: string;
|
|
5
6
|
type: OrderType;
|
|
6
7
|
userId: string;
|
|
7
8
|
crypto: Crypto;
|
|
@@ -137,6 +138,7 @@ interface OrderAttrs {
|
|
|
137
138
|
}
|
|
138
139
|
interface OrderDoc extends Document {
|
|
139
140
|
quoteId: string;
|
|
141
|
+
clientReferenceId?: string;
|
|
140
142
|
type: OrderType;
|
|
141
143
|
userId: string;
|
|
142
144
|
status: OrderStatus;
|
package/build/models/order.js
CHANGED
|
@@ -11,6 +11,9 @@ const buildOrder = (mongoose) => {
|
|
|
11
11
|
quoteId: {
|
|
12
12
|
type: String,
|
|
13
13
|
},
|
|
14
|
+
clientReferenceId: {
|
|
15
|
+
type: String,
|
|
16
|
+
},
|
|
14
17
|
type: {
|
|
15
18
|
type: String,
|
|
16
19
|
},
|
|
@@ -360,6 +363,7 @@ const buildOrder = (mongoose) => {
|
|
|
360
363
|
orderSchema.index({ "TWAP.sessionId": 1 }, { sparse: true });
|
|
361
364
|
orderSchema.index({ userId: 1, "TWAP.sessionId": 1, createdAt: 1 });
|
|
362
365
|
orderSchema.index({ brokerId: 1, "TWAP.sessionId": 1, createdAt: 1 });
|
|
366
|
+
orderSchema.index({ clientReferenceId: 1 }, { sparse: true });
|
|
363
367
|
orderSchema.statics.build = (attrs) => {
|
|
364
368
|
return new Order(attrs);
|
|
365
369
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2566",
|
|
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.2362",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|