@riocrypto/common-server 1.0.799 → 1.0.801

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.
@@ -29,6 +29,7 @@ interface OrderAttrs {
29
29
  discount?: number;
30
30
  markup?: number;
31
31
  invoiceUrl?: string;
32
+ quoteId?: string;
32
33
  }
33
34
  interface OrderDoc extends Document {
34
35
  userId: string;
@@ -58,6 +59,7 @@ interface OrderDoc extends Document {
58
59
  notes?: string;
59
60
  discount?: number;
60
61
  markup?: number;
62
+ quoteId?: string;
61
63
  }
62
64
  interface OrderModel extends Model<OrderDoc> {
63
65
  build(attrs: OrderAttrs): OrderDoc;
@@ -111,6 +111,9 @@ const buildOrder = (mongoose) => {
111
111
  markup: {
112
112
  type: Number,
113
113
  },
114
+ quoteId: {
115
+ type: Number,
116
+ },
114
117
  }, {
115
118
  toJSON: {
116
119
  transform(doc, ret) {
@@ -9,8 +9,8 @@ interface QuoteAttrs {
9
9
  payoutMethod?: PayoutMethod;
10
10
  expiresAt: Date;
11
11
  country: Country;
12
- state: USState | string;
13
- cryptoAddress: string;
12
+ state?: USState | string;
13
+ cryptoAddress?: string;
14
14
  amountFiat?: number;
15
15
  amountCrypto?: number;
16
16
  liquidityProvider: LiquidityProvider;
@@ -34,8 +34,8 @@ interface QuoteDoc extends Document {
34
34
  payoutMethod?: PayoutMethod;
35
35
  expiresAt: Date;
36
36
  country: Country;
37
- state: USState | string;
38
- cryptoAddress: string;
37
+ state?: USState | string;
38
+ cryptoAddress?: string;
39
39
  amountFiat?: number;
40
40
  amountCrypto?: number;
41
41
  liquidityProvider: LiquidityProvider;
@@ -9,7 +9,6 @@ const buildQuote = (mongoose) => {
9
9
  const quoteSchema = new mongoose.Schema({
10
10
  userId: {
11
11
  type: String,
12
- required: true,
13
12
  },
14
13
  status: {
15
14
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.799",
3
+ "version": "1.0.801",
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.692",
27
+ "@riocrypto/common": "^1.0.694",
28
28
  "@types/express": "^4.17.13",
29
29
  "axios": "^0.27.2",
30
30
  "ccxt": "^3.0.30",