@riocrypto/common-server 1.0.1777 → 1.0.1778

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.
@@ -17,6 +17,7 @@ interface ChainedQuoteAttrs {
17
17
  price: number;
18
18
  createdAt: Date;
19
19
  brokerId?: string;
20
+ netPrice?: number;
20
21
  }
21
22
  interface ChainedQuoteDoc extends Document {
22
23
  originUserId: string;
@@ -35,6 +36,7 @@ interface ChainedQuoteDoc extends Document {
35
36
  price: number;
36
37
  createdAt: Date;
37
38
  brokerId?: string;
39
+ netPrice?: number;
38
40
  }
39
41
  interface ChainedQuoteModel extends Model<ChainedQuoteDoc> {
40
42
  build(attrs: ChainedQuoteAttrs): ChainedQuoteDoc;
@@ -78,6 +78,9 @@ const buildChainedQuote = (mongoose) => {
78
78
  type: mongoose.Schema.Types.Date,
79
79
  required: true,
80
80
  },
81
+ netPrice: {
82
+ type: Number,
83
+ },
81
84
  }, {
82
85
  toJSON: {
83
86
  transform(doc, ret) {
@@ -30,6 +30,7 @@ interface QuoteAttrs {
30
30
  USBankTransferMethod?: "wire" | "ach_push";
31
31
  isBid?: boolean;
32
32
  isAfterHours?: boolean;
33
+ netPrice?: number;
33
34
  }
34
35
  interface QuoteDoc extends Document {
35
36
  userId: string;
@@ -61,6 +62,7 @@ interface QuoteDoc extends Document {
61
62
  USBankTransferMethod?: "wire" | "ach_push";
62
63
  isBid?: boolean;
63
64
  isAfterHours?: boolean;
65
+ netPrice?: number;
64
66
  }
65
67
  interface QuoteModel extends Model<QuoteDoc> {
66
68
  build(attrs: QuoteAttrs): QuoteDoc;
@@ -123,6 +123,9 @@ const buildQuote = (mongoose) => {
123
123
  USBankTransferMethod: {
124
124
  type: String,
125
125
  },
126
+ netPrice: {
127
+ type: Number,
128
+ },
126
129
  }, {
127
130
  toJSON: {
128
131
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1777",
3
+ "version": "1.0.1778",
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.1572",
29
+ "@riocrypto/common": "^1.0.1573",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^1.6.0",
32
32
  "crypto-js": "^4.2.0",