@riocrypto/common-server 1.0.1869 → 1.0.1871
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 +5 -10
- package/package.json +2 -2
package/build/models/order.d.ts
CHANGED
|
@@ -73,6 +73,7 @@ interface OrderAttrs {
|
|
|
73
73
|
CLABE?: string;
|
|
74
74
|
};
|
|
75
75
|
payoutTransferLimit?: number;
|
|
76
|
+
paymentReceivedAt?: Date;
|
|
76
77
|
}
|
|
77
78
|
interface OrderDoc extends Document {
|
|
78
79
|
quoteId: string;
|
|
@@ -147,6 +148,7 @@ interface OrderDoc extends Document {
|
|
|
147
148
|
CLABE?: string;
|
|
148
149
|
};
|
|
149
150
|
payoutTransferLimit?: number;
|
|
151
|
+
paymentReceivedAt?: Date;
|
|
150
152
|
}
|
|
151
153
|
interface OrderModel extends Model<OrderDoc> {
|
|
152
154
|
build(attrs: OrderAttrs): OrderDoc;
|
package/build/models/order.js
CHANGED
|
@@ -278,6 +278,9 @@ const buildOrder = (mongoose) => {
|
|
|
278
278
|
payoutTransferLimit: {
|
|
279
279
|
type: Number,
|
|
280
280
|
},
|
|
281
|
+
paymentReceivedAt: {
|
|
282
|
+
type: mongoose.Schema.Types.Date,
|
|
283
|
+
},
|
|
281
284
|
}, {
|
|
282
285
|
toJSON: {
|
|
283
286
|
transform(doc, ret) {
|
|
@@ -289,18 +292,10 @@ const buildOrder = (mongoose) => {
|
|
|
289
292
|
},
|
|
290
293
|
},
|
|
291
294
|
});
|
|
292
|
-
// Define indexes
|
|
293
|
-
orderSchema.index({ userId: 1 });
|
|
294
|
-
orderSchema.index({ userId: 1, createdAt: 1 });
|
|
295
|
-
orderSchema.index({ userId: 1, createdAt: 1, country: 1 });
|
|
296
|
-
orderSchema.index({ userId: 1, createdAt: 1, side: 1 });
|
|
297
|
-
orderSchema.index({ status: 1 });
|
|
298
295
|
orderSchema.index({ userId: 1, createdAt: 1, side: 1, status: 1 });
|
|
299
|
-
orderSchema.index({
|
|
300
|
-
orderSchema.index({ brokerId: 1, createdAt: 1 });
|
|
301
|
-
orderSchema.index({ brokerId: 1, createdAt: 1, country: 1 });
|
|
302
|
-
orderSchema.index({ brokerId: 1, createdAt: 1, side: 1 });
|
|
296
|
+
orderSchema.index({ userId: 1, createdAt: 1, country: 1 });
|
|
303
297
|
orderSchema.index({ brokerId: 1, createdAt: 1, side: 1, status: 1 });
|
|
298
|
+
orderSchema.index({ brokerId: 1, createdAt: 1, country: 1 });
|
|
304
299
|
orderSchema.statics.build = (attrs) => {
|
|
305
300
|
return new Order(attrs);
|
|
306
301
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1871",
|
|
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.1676",
|
|
30
30
|
"@types/express": "^4.17.13",
|
|
31
31
|
"axios": "^1.6.0",
|
|
32
32
|
"crypto-js": "^4.2.0",
|