@riocrypto/common-server 1.0.2427 → 1.0.2429

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.
@@ -10,7 +10,7 @@ declare class ClusterClient {
10
10
  newAmountCrypto?: number;
11
11
  useSamePrice?: boolean;
12
12
  }): Promise<Quote>;
13
- createQuote({ userId, side, country, fiat, crypto, amountFiat, amountCrypto, USBankTransferMethod, deferredPaymentType, twoWaySettlementType, twoWaySettlementDateOffset, netPrice, price, ignoreLiquidityError, priceType, limitNetPrice, }: {
13
+ createQuote({ userId, side, country, fiat, crypto, amountFiat, amountCrypto, USBankTransferMethod, deferredPaymentType, twoWaySettlementType, twoWaySettlementDateOffset, netPrice, marketPrice, ignoreLiquidityError, priceType, limitNetPrice, }: {
14
14
  userId: string;
15
15
  side: Side;
16
16
  country: Country;
@@ -23,7 +23,7 @@ declare class ClusterClient {
23
23
  twoWaySettlementType?: TwoWaySettlementType;
24
24
  twoWaySettlementDateOffset?: number;
25
25
  netPrice?: number;
26
- price?: number;
26
+ marketPrice?: number;
27
27
  ignoreLiquidityError?: boolean;
28
28
  priceType?: PriceType;
29
29
  limitNetPrice?: number;
@@ -74,7 +74,7 @@ class ClusterClient {
74
74
  return response.data.quote;
75
75
  });
76
76
  }
77
- createQuote({ userId, side, country, fiat, crypto, amountFiat, amountCrypto, USBankTransferMethod, deferredPaymentType, twoWaySettlementType, twoWaySettlementDateOffset, netPrice, price, ignoreLiquidityError, priceType, limitNetPrice, }) {
77
+ createQuote({ userId, side, country, fiat, crypto, amountFiat, amountCrypto, USBankTransferMethod, deferredPaymentType, twoWaySettlementType, twoWaySettlementDateOffset, netPrice, marketPrice, ignoreLiquidityError, priceType, limitNetPrice, }) {
78
78
  return __awaiter(this, void 0, void 0, function* () {
79
79
  const response = yield this.axios.post(`${this.baseUrl}/api/quotes`, {
80
80
  userId,
@@ -89,7 +89,7 @@ class ClusterClient {
89
89
  twoWaySettlementType,
90
90
  twoWaySettlementDateOffset,
91
91
  netPrice,
92
- price,
92
+ marketPrice,
93
93
  ignoreLiquidityError,
94
94
  priceType,
95
95
  limitNetPrice,
@@ -6,6 +6,7 @@ interface AdminTaskAttrs {
6
6
  status: AdminTaskStatus;
7
7
  orderId?: string;
8
8
  userId?: string;
9
+ axeId?: string;
9
10
  bankAccountId?: string;
10
11
  amountToFix?: number;
11
12
  adminThatCompletedTask?: string;
@@ -20,6 +21,7 @@ interface AdminTaskDoc extends Document {
20
21
  status: AdminTaskStatus;
21
22
  orderId?: string;
22
23
  userId?: string;
24
+ axeId?: string;
23
25
  bankAccountId?: string;
24
26
  amountToFix?: number;
25
27
  adminThatCompletedTask?: string;
@@ -25,6 +25,9 @@ const buildAdminTask = (mongoose) => {
25
25
  userId: {
26
26
  type: String,
27
27
  },
28
+ axeId: {
29
+ type: String,
30
+ },
28
31
  bankAccountId: {
29
32
  type: String,
30
33
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2427",
3
+ "version": "1.0.2429",
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.2178",
31
+ "@riocrypto/common": "^1.0.2187",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",