@riocrypto/common-server 1.0.2562 → 1.0.2563

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.
@@ -128,6 +128,18 @@ interface UserAttrs {
128
128
  sellOrderGeneralExchangeRateMarkup?: number;
129
129
  };
130
130
  };
131
+ marketConfigHistory?: Array<{
132
+ timestamp: Date;
133
+ marketConfig: {
134
+ [key in Fiat]?: {
135
+ isAfterHours?: boolean;
136
+ afterHoursEndsAt?: string;
137
+ afterHoursExchangeRateMarkup?: number;
138
+ buyOrderGeneralExchangeRateMarkup?: number;
139
+ sellOrderGeneralExchangeRateMarkup?: number;
140
+ };
141
+ };
142
+ }>;
131
143
  }
132
144
  interface UserModel extends Model<UserDoc> {
133
145
  build(attrs: UserAttrs): UserDoc;
@@ -290,6 +302,18 @@ interface UserDoc extends Document {
290
302
  sellOrderGeneralExchangeRateMarkup?: number;
291
303
  };
292
304
  };
305
+ marketConfigHistory?: Array<{
306
+ timestamp: Date;
307
+ marketConfig: {
308
+ [key in Fiat]?: {
309
+ isAfterHours?: boolean;
310
+ afterHoursEndsAt?: string;
311
+ afterHoursExchangeRateMarkup?: number;
312
+ buyOrderGeneralExchangeRateMarkup?: number;
313
+ sellOrderGeneralExchangeRateMarkup?: number;
314
+ };
315
+ };
316
+ }>;
293
317
  }
294
318
  declare const buildUser: (mongoose: Mongoose) => UserModel;
295
319
  export { buildUser, UserDoc, UserAttrs };
@@ -355,6 +355,18 @@ const buildUser = (mongoose) => {
355
355
  marketConfig: {
356
356
  type: Object,
357
357
  },
358
+ marketConfigHistory: [
359
+ {
360
+ timestamp: {
361
+ type: Date,
362
+ required: true,
363
+ },
364
+ marketConfig: {
365
+ type: Object,
366
+ required: true,
367
+ },
368
+ },
369
+ ],
358
370
  }, {
359
371
  toJSON: {
360
372
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2562",
3
+ "version": "1.0.2563",
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.2357",
31
+ "@riocrypto/common": "^1.0.2358",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",