@riocrypto/common-server 1.0.881 → 1.0.883

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.
@@ -1,6 +1,6 @@
1
1
  import { Mongoose, Model, Document } from "mongoose";
2
2
  interface BridgeExternalAccountAttrs {
3
- orderId: string;
3
+ userId: string;
4
4
  bridgeExternalAccountId: string;
5
5
  }
6
6
  interface BridgeExternalAccountModel extends Model<BridgeExternalAccountDoc> {
@@ -33,6 +33,7 @@ interface OrderAttrs {
33
33
  discount?: number;
34
34
  markup?: number;
35
35
  expiredQuotes?: string[];
36
+ externalAccountId?: string;
36
37
  }
37
38
  interface OrderDoc extends Document {
38
39
  quoteId: string;
@@ -67,6 +68,7 @@ interface OrderDoc extends Document {
67
68
  discount?: number;
68
69
  markup?: number;
69
70
  expiredQuotes?: string[];
71
+ externalAccountId?: string;
70
72
  }
71
73
  interface OrderModel extends Model<OrderDoc> {
72
74
  build(attrs: OrderAttrs): OrderDoc;
@@ -144,6 +144,9 @@ const buildOrder = (mongoose) => {
144
144
  markup: {
145
145
  type: Number,
146
146
  },
147
+ externalAccountId: {
148
+ type: String,
149
+ },
147
150
  expiredQuotes: [
148
151
  {
149
152
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.881",
3
+ "version": "1.0.883",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "@aws-sdk/client-s3": "^3.297.0",
25
25
  "@everapi/currencyapi-js": "^1.0.6",
26
26
  "@google-cloud/storage": "^6.9.5",
27
- "@riocrypto/common": "^1.0.756",
27
+ "@riocrypto/common": "^1.0.757",
28
28
  "@types/express": "^4.17.13",
29
29
  "axios": "^0.27.2",
30
30
  "ccxt": "^3.0.30",