@riocrypto/common-server 1.0.2535 → 1.0.2536

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.
@@ -130,7 +130,10 @@ interface OrderAttrs {
130
130
  serviceFeeFiatTax?: number;
131
131
  };
132
132
  previousActiveStatus?: OrderStatus;
133
- TWAPSessionId?: string;
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
- TWAPSessionId?: string;
267
+ TWAP?: {
268
+ sessionId: string;
269
+ settlementId: string;
270
+ };
265
271
  }
266
272
  interface OrderModel extends Model<OrderDoc> {
267
273
  build(attrs: OrderAttrs): OrderDoc;
@@ -339,8 +339,8 @@ const buildOrder = (mongoose) => {
339
339
  previousActiveStatus: {
340
340
  type: String,
341
341
  },
342
- TWAPSessionId: {
343
- type: String,
342
+ TWAP: {
343
+ type: Object,
344
344
  },
345
345
  }, {
346
346
  toJSON: {
@@ -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 };
@@ -62,6 +62,10 @@ const buildTWAPSettlement = (mongoose) => {
62
62
  bulkCryptoPayoutId: {
63
63
  type: String,
64
64
  },
65
+ orderIds: {
66
+ type: [String],
67
+ required: true,
68
+ },
65
69
  }, {
66
70
  toJSON: {
67
71
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2535",
3
+ "version": "1.0.2536",
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.2332",
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",