@riocrypto/common-server 1.0.1017 → 1.0.1018

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,4 +1,4 @@
1
- import { Country, Fees, Fiat, LiquidityProvider, OrderStatus, PaymentMethod, PayoutMethod, Processor, Side, Crypto } from "@riocrypto/common";
1
+ import { Country, Fees, Fiat, LiquidityProvider, OrderStatus, PaymentMethod, PayoutMethod, Processor, Side, Crypto, Partner } from "@riocrypto/common";
2
2
  import { Mongoose, Model, Document } from "mongoose";
3
3
  interface OrderAttrs {
4
4
  quoteId: string;
@@ -33,6 +33,7 @@ interface OrderAttrs {
33
33
  markup?: number;
34
34
  expiredQuotes?: string[];
35
35
  externalAccountId?: string;
36
+ partner?: Partner;
36
37
  imported?: boolean;
37
38
  }
38
39
  interface OrderDoc extends Document {
@@ -68,6 +69,7 @@ interface OrderDoc extends Document {
68
69
  markup?: number;
69
70
  expiredQuotes?: string[];
70
71
  externalAccountId?: string;
72
+ partner?: Partner;
71
73
  imported?: boolean;
72
74
  }
73
75
  interface OrderModel extends Model<OrderDoc> {
@@ -142,6 +142,9 @@ const buildOrder = (mongoose) => {
142
142
  required: false,
143
143
  },
144
144
  ],
145
+ partner: {
146
+ type: String,
147
+ },
145
148
  imported: {
146
149
  type: Boolean,
147
150
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1017",
3
+ "version": "1.0.1018",
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.873",
27
+ "@riocrypto/common": "^1.0.879",
28
28
  "@types/express": "^4.17.13",
29
29
  "axios": "^0.27.2",
30
30
  "ccxt": "^3.0.30",