@riocrypto/common-server 1.0.1786 → 1.0.1788

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.
@@ -23,6 +23,7 @@ interface ChainedOrderAttrs {
23
23
  brokerId?: string;
24
24
  notes?: string;
25
25
  netPrice: number;
26
+ requestedNetPrice?: number;
26
27
  markup?: number;
27
28
  discount?: number;
28
29
  expiredQuotes?: string[];
@@ -50,6 +51,7 @@ interface ChainedOrderDoc extends Document {
50
51
  brokerId?: string;
51
52
  notes?: string;
52
53
  netPrice: number;
54
+ requestedNetPrice?: number;
53
55
  markup?: number;
54
56
  discount?: number;
55
57
  expiredQuotes?: string[];
@@ -110,6 +110,9 @@ const buildChainedOrder = (mongoose) => {
110
110
  expiredQuotes: {
111
111
  type: [String],
112
112
  },
113
+ requestedNetPrice: {
114
+ type: Number,
115
+ },
113
116
  }, {
114
117
  toJSON: {
115
118
  transform(doc, ret) {
@@ -23,6 +23,7 @@ interface ChainedQuoteAttrs {
23
23
  createdAt: Date;
24
24
  brokerId?: string;
25
25
  netPrice: number;
26
+ requestedNetPrice?: number;
26
27
  staticAmountField: "origin" | "destination";
27
28
  }
28
29
  interface ChainedQuoteDoc extends Document {
@@ -48,6 +49,7 @@ interface ChainedQuoteDoc extends Document {
48
49
  createdAt: Date;
49
50
  brokerId?: string;
50
51
  netPrice: number;
52
+ requestedNetPrice?: number;
51
53
  staticAmountField: "origin" | "destination";
52
54
  }
53
55
  interface ChainedQuoteModel extends Model<ChainedQuoteDoc> {
@@ -96,6 +96,9 @@ const buildChainedQuote = (mongoose) => {
96
96
  netPrice: {
97
97
  type: Number,
98
98
  },
99
+ requestedNetPrice: {
100
+ type: Number,
101
+ },
99
102
  }, {
100
103
  toJSON: {
101
104
  transform(doc, ret) {
@@ -31,6 +31,7 @@ interface QuoteAttrs {
31
31
  isBid?: boolean;
32
32
  isAfterHours?: boolean;
33
33
  netPrice: number;
34
+ requestedNetPrice?: number;
34
35
  }
35
36
  interface QuoteDoc extends Document {
36
37
  userId: string;
@@ -63,6 +64,7 @@ interface QuoteDoc extends Document {
63
64
  isBid?: boolean;
64
65
  isAfterHours?: boolean;
65
66
  netPrice: number;
67
+ requestedNetPrice?: number;
66
68
  }
67
69
  interface QuoteModel extends Model<QuoteDoc> {
68
70
  build(attrs: QuoteAttrs): QuoteDoc;
@@ -126,6 +126,9 @@ const buildQuote = (mongoose) => {
126
126
  netPrice: {
127
127
  type: Number,
128
128
  },
129
+ requestedNetPrice: {
130
+ type: Number,
131
+ },
129
132
  }, {
130
133
  toJSON: {
131
134
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1786",
3
+ "version": "1.0.1788",
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.1589",
29
+ "@riocrypto/common": "^1.0.1592",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^1.6.0",
32
32
  "crypto-js": "^4.2.0",