@riocrypto/common-server 1.0.2494 → 1.0.2495

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.
@@ -19,6 +19,7 @@ const sanitizeUserDoc = (doc) => {
19
19
  delete obj.onboarding.aipriseUserVerificationSessionId;
20
20
  delete obj.onboarding.bridgeCustomerId;
21
21
  delete obj.onboarding.bridgeKYCLinkId;
22
+ delete obj.TWAP;
22
23
  return obj;
23
24
  };
24
25
  exports.sanitizeUserDoc = sanitizeUserDoc;
@@ -108,6 +108,14 @@ interface UserAttrs {
108
108
  [side in Side]?: number;
109
109
  };
110
110
  };
111
+ TWAP?: {
112
+ [key in Fiat]?: {
113
+ [key in Side]?: {
114
+ minClipSize?: number;
115
+ interval?: number;
116
+ };
117
+ };
118
+ };
111
119
  }
112
120
  interface UserModel extends Model<UserDoc> {
113
121
  build(attrs: UserAttrs): UserDoc;
@@ -250,6 +258,14 @@ interface UserDoc extends Document {
250
258
  [side in Side]?: number;
251
259
  };
252
260
  };
261
+ TWAP?: {
262
+ [key in Fiat]?: {
263
+ [key in Side]?: {
264
+ minClipSize?: number;
265
+ interval?: number;
266
+ };
267
+ };
268
+ };
253
269
  }
254
270
  declare const buildUser: (mongoose: Mongoose) => UserModel;
255
271
  export { buildUser, UserDoc, UserAttrs };
@@ -325,6 +325,9 @@ const buildUser = (mongoose) => {
325
325
  },
326
326
  },
327
327
  },
328
+ TWAP: {
329
+ type: Object,
330
+ },
328
331
  }, {
329
332
  toJSON: {
330
333
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2494",
3
+ "version": "1.0.2495",
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.2260",
31
+ "@riocrypto/common": "^1.0.2261",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",