@riocrypto/common-server 1.0.2374 → 1.0.2376

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.
@@ -55,7 +55,7 @@ declare class ClusterClient {
55
55
  limit: number;
56
56
  used: number;
57
57
  }>;
58
- sendVerificationCode(phoneNumber: string): Promise<{
58
+ sendVerificationCode(phoneNumber: string, bypassPasskeys?: boolean): Promise<{
59
59
  hasAuthenticatorEnabled: boolean;
60
60
  }>;
61
61
  verifyCode(phoneNumber: string, code?: string, authenticatorCode?: string): Promise<void>;
@@ -284,9 +284,9 @@ class ClusterClient {
284
284
  return response.data;
285
285
  });
286
286
  }
287
- sendVerificationCode(phoneNumber) {
287
+ sendVerificationCode(phoneNumber, bypassPasskeys) {
288
288
  return __awaiter(this, void 0, void 0, function* () {
289
- const response = yield this.axios.post(`${this.baseUrl}/api/auth/send-code`, { phoneNumber }, {
289
+ const response = yield this.axios.post(`${this.baseUrl}/api/auth/send-code`, { phoneNumber, bypassPasskeys }, {
290
290
  headers: {
291
291
  "x-cluster-api-key": this.clusterApiKey,
292
292
  },
@@ -1,4 +1,4 @@
1
- import { Country, Fees, Fiat, LiquidityProvider, OrderStatus, PaymentMethod, PayoutMethod, Processor, Side, Crypto, Partner, OrderSubstatus, OrderAttribute, SettlementTime } from "@riocrypto/common";
1
+ import { Country, Fees, Fiat, LiquidityProvider, OrderStatus, PaymentMethod, PayoutMethod, Processor, Side, Crypto, OrderAttribute, SettlementTime } from "@riocrypto/common";
2
2
  import { Mongoose, Model, Document } from "mongoose";
3
3
  interface OrderAttrs {
4
4
  quoteId: string;
@@ -16,7 +16,6 @@ interface OrderAttrs {
16
16
  amountFiatReceived?: number;
17
17
  amountCrypto: number;
18
18
  amountCryptoReceived?: number;
19
- substatus?: OrderSubstatus;
20
19
  liquidityProvider: LiquidityProvider;
21
20
  processor: Processor;
22
21
  fees: Fees;
@@ -35,7 +34,6 @@ interface OrderAttrs {
35
34
  discount?: number;
36
35
  markup?: number;
37
36
  expiredQuotes?: string[];
38
- partner?: Partner;
39
37
  imported?: boolean;
40
38
  managedWallet?: boolean;
41
39
  USBankTransferMethod?: "wire" | "ach_push";
@@ -127,7 +125,6 @@ interface OrderDoc extends Document {
127
125
  quoteId: string;
128
126
  userId: string;
129
127
  status: OrderStatus;
130
- substatus?: OrderSubstatus;
131
128
  crypto: Crypto;
132
129
  side: Side;
133
130
  fiat: Fiat;
@@ -159,7 +156,6 @@ interface OrderDoc extends Document {
159
156
  wireMessage?: string;
160
157
  markup?: number;
161
158
  expiredQuotes?: string[];
162
- partner?: Partner;
163
159
  imported?: boolean;
164
160
  managedWallet?: boolean;
165
161
  USBankTransferMethod?: "wire" | "ach_push";
@@ -28,9 +28,6 @@ const buildOrder = (mongoose) => {
28
28
  bulkBankPaymentId: {
29
29
  type: String,
30
30
  },
31
- substatus: {
32
- type: String,
33
- },
34
31
  crypto: {
35
32
  type: String,
36
33
  required: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2374",
3
+ "version": "1.0.2376",
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.2093",
31
+ "@riocrypto/common": "^1.0.2099",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",