@riocrypto/common-server 1.0.1777 → 1.0.1779

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) {
@@ -43,6 +43,7 @@ interface OrderAttrs {
43
43
  autoFXDisabled?: boolean;
44
44
  USBankTransferMethod?: "wire" | "ach_push";
45
45
  isAfterHours?: boolean;
46
+ chainedOrderId?: string;
46
47
  }
47
48
  interface OrderDoc extends Document {
48
49
  quoteId: string;
@@ -87,6 +88,7 @@ interface OrderDoc extends Document {
87
88
  autoFXDisabled?: boolean;
88
89
  USBankTransferMethod?: "wire" | "ach_push";
89
90
  isAfterHours?: boolean;
91
+ chainedOrderId?: string;
90
92
  }
91
93
  interface OrderModel extends Model<OrderDoc> {
92
94
  build(attrs: OrderAttrs): OrderDoc;
@@ -178,6 +178,9 @@ const buildOrder = (mongoose) => {
178
178
  isAfterHours: {
179
179
  type: Boolean,
180
180
  },
181
+ chainedOrderId: {
182
+ type: String,
183
+ },
181
184
  exchangeRateOrders: [
182
185
  {
183
186
  amount: {
@@ -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.1779",
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.1574",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^1.6.0",
32
32
  "crypto-js": "^4.2.0",