@riocrypto/common-server 1.0.2418 → 1.0.2420

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,7 +1,8 @@
1
- import { Country, Fees, Fiat, LiquidityProvider, OrderStatus, PaymentMethod, PayoutMethod, Processor, Side, Crypto, OrderAttribute, DeferredPaymentType, TwoWaySettlementType } from "@riocrypto/common";
1
+ import { Country, Fees, Fiat, LiquidityProvider, OrderStatus, PaymentMethod, PayoutMethod, Processor, Side, Crypto, OrderAttribute, DeferredPaymentType, TwoWaySettlementType, PriceType } from "@riocrypto/common";
2
2
  import { Mongoose, Model, Document } from "mongoose";
3
3
  interface OrderAttrs {
4
4
  quoteId: string;
5
+ priceType: PriceType;
5
6
  userId: string;
6
7
  crypto: Crypto;
7
8
  side: Side;
@@ -127,6 +128,7 @@ interface OrderAttrs {
127
128
  }
128
129
  interface OrderDoc extends Document {
129
130
  quoteId: string;
131
+ priceType: PriceType;
130
132
  userId: string;
131
133
  status: OrderStatus;
132
134
  crypto: Crypto;
@@ -11,6 +11,10 @@ const buildOrder = (mongoose) => {
11
11
  quoteId: {
12
12
  type: String,
13
13
  },
14
+ priceType: {
15
+ type: String,
16
+ required: true,
17
+ },
14
18
  userId: {
15
19
  type: String,
16
20
  required: true,
@@ -1,7 +1,8 @@
1
- import { Country, Fees, Fiat, LiquidityProvider, PaymentMethod, PayoutMethod, Processor, Side, USState, Crypto, DeferredPaymentType, TwoWaySettlementType } from "@riocrypto/common";
1
+ import { Country, Fees, Fiat, LiquidityProvider, PaymentMethod, PayoutMethod, Processor, Side, USState, Crypto, DeferredPaymentType, TwoWaySettlementType, PriceType } from "@riocrypto/common";
2
2
  import { Mongoose, Model, Document } from "mongoose";
3
3
  interface QuoteAttrs {
4
4
  userId: string;
5
+ priceType: PriceType;
5
6
  crypto: Crypto;
6
7
  side: Side;
7
8
  fiat: Fiat;
@@ -42,6 +43,7 @@ interface QuoteAttrs {
42
43
  }
43
44
  interface QuoteDoc extends Document {
44
45
  userId: string;
46
+ priceType: PriceType;
45
47
  crypto: Crypto;
46
48
  side: Side;
47
49
  fiat: Fiat;
@@ -11,6 +11,10 @@ const buildQuote = (mongoose) => {
11
11
  type: String,
12
12
  required: true,
13
13
  },
14
+ priceType: {
15
+ type: String,
16
+ required: true,
17
+ },
14
18
  crypto: {
15
19
  type: String,
16
20
  required: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2418",
3
+ "version": "1.0.2420",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "@google-cloud/secret-manager": "^5.3.0",
29
29
  "@google-cloud/storage": "^6.9.5",
30
30
  "@hyperdx/node-opentelemetry": "^0.7.0",
31
- "@riocrypto/common": "^1.0.2164",
31
+ "@riocrypto/common": "^1.0.2171",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",