@riocrypto/common-server 1.0.2294 → 1.0.2296

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.
@@ -2,7 +2,7 @@ import { AxeStatus, Country, Crypto, Fiat, Side } from "@riocrypto/common";
2
2
  import mongoose from "mongoose";
3
3
  interface AxeAttrs {
4
4
  createdAt: Date;
5
- oppositeUserId: string;
5
+ oppositeUserId?: string;
6
6
  oppositeOrderId?: string;
7
7
  side: Side;
8
8
  currency: Fiat;
@@ -23,8 +23,8 @@ interface AxeAttrs {
23
23
  }
24
24
  interface AxeDoc extends mongoose.Document {
25
25
  createdAt: Date;
26
- oppositeUserId: string;
27
- oppositeOrderId: string;
26
+ oppositeUserId?: string;
27
+ oppositeOrderId?: string;
28
28
  currency: Fiat;
29
29
  country: Country;
30
30
  side: Side;
@@ -13,7 +13,7 @@ const buildAxe = (mongoose) => {
13
13
  },
14
14
  oppositeUserId: {
15
15
  type: String,
16
- required: true,
16
+ required: false,
17
17
  },
18
18
  currency: {
19
19
  type: String,
@@ -25,7 +25,7 @@ const buildAxe = (mongoose) => {
25
25
  },
26
26
  oppositeOrderId: {
27
27
  type: String,
28
- required: true,
28
+ required: false,
29
29
  },
30
30
  side: {
31
31
  type: String,
@@ -124,6 +124,7 @@ interface UserAttrs {
124
124
  };
125
125
  };
126
126
  attioRecordId?: string;
127
+ slackChannelId?: string;
127
128
  serviceFee?: {
128
129
  [country in Country]?: {
129
130
  [side in Side]?: number;
@@ -258,6 +259,7 @@ interface UserDoc extends Document {
258
259
  };
259
260
  };
260
261
  };
262
+ slackChannelId?: string;
261
263
  serviceFee?: {
262
264
  [country in Country]?: {
263
265
  [side in Side]?: number;
@@ -51,6 +51,9 @@ const buildUser = (mongoose) => {
51
51
  brokerId: {
52
52
  type: String,
53
53
  },
54
+ slackChannelId: {
55
+ type: String,
56
+ },
54
57
  quotationTime: {
55
58
  type: Number,
56
59
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2294",
3
+ "version": "1.0.2296",
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.2011",
31
+ "@riocrypto/common": "^1.0.2013",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",