@riocrypto/common-server 1.0.1782 → 1.0.1784

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,8 @@ interface ChainedOrderAttrs {
23
23
  brokerId?: string;
24
24
  notes?: string;
25
25
  netPrice: number;
26
+ markup?: number;
27
+ discount?: number;
26
28
  }
27
29
  interface ChainedOrderDoc extends Document {
28
30
  originUserId: string;
@@ -47,6 +49,8 @@ interface ChainedOrderDoc extends Document {
47
49
  brokerId?: string;
48
50
  notes?: string;
49
51
  netPrice: number;
52
+ markup?: number;
53
+ discount?: number;
50
54
  }
51
55
  interface ChainedOrderModel extends Model<ChainedOrderDoc> {
52
56
  build(attrs: ChainedOrderAttrs): ChainedOrderDoc;
@@ -101,6 +101,12 @@ const buildChainedOrder = (mongoose) => {
101
101
  netPrice: {
102
102
  type: Number,
103
103
  },
104
+ markup: {
105
+ type: Number,
106
+ },
107
+ discount: {
108
+ type: Number,
109
+ },
104
110
  }, {
105
111
  toJSON: {
106
112
  transform(doc, ret) {
@@ -23,6 +23,7 @@ interface ChainedQuoteAttrs {
23
23
  createdAt: Date;
24
24
  brokerId?: string;
25
25
  netPrice: number;
26
+ staticAmountField: "origin" | "destination";
26
27
  }
27
28
  interface ChainedQuoteDoc extends Document {
28
29
  originUserId: string;
@@ -47,6 +48,7 @@ interface ChainedQuoteDoc extends Document {
47
48
  createdAt: Date;
48
49
  brokerId?: string;
49
50
  netPrice: number;
51
+ staticAmountField: "origin" | "destination";
50
52
  }
51
53
  interface ChainedQuoteModel extends Model<ChainedQuoteDoc> {
52
54
  build(attrs: ChainedQuoteAttrs): ChainedQuoteDoc;
@@ -30,6 +30,9 @@ const buildChainedQuote = (mongoose) => {
30
30
  expiresAt: {
31
31
  type: mongoose.Schema.Types.Date,
32
32
  },
33
+ staticAmountField: {
34
+ type: String,
35
+ },
33
36
  originCountry: {
34
37
  type: String,
35
38
  required: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1782",
3
+ "version": "1.0.1784",
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.1582",
29
+ "@riocrypto/common": "^1.0.1584",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^1.6.0",
32
32
  "crypto-js": "^4.2.0",