@riocrypto/common-server 1.0.2463 → 1.0.2465

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.
@@ -71,7 +71,7 @@ class ClusterClient {
71
71
  "x-cluster-api-key": this.clusterApiKey,
72
72
  },
73
73
  });
74
- return response.data.quote;
74
+ return response.data;
75
75
  });
76
76
  }
77
77
  createQuote({ userId, side, country, fiat, crypto, amountFiat, amountCrypto, USBankTransferMethod, deferredPaymentType, twoWaySettlementType, twoWaySettlementDateOffset, netPrice, marketPrice, ignoreLiquidityError, orderType, limitNetPrice, timeInForceStartsAt, timeInForceEndsAt, }) {
@@ -12,6 +12,7 @@ interface BankAccountAttrs {
12
12
  CCI?: string;
13
13
  CLABE?: string;
14
14
  notes?: string;
15
+ twoFactorApproved?: boolean;
15
16
  advancedVerificationStatus?: BankAccountVerificationStatus;
16
17
  bridgeExternalAccountId?: string;
17
18
  availablePayoutAdvancesAmount?: number;
@@ -30,6 +31,7 @@ interface BankAccountDoc extends Document {
30
31
  CCI?: string;
31
32
  CLABE?: string;
32
33
  notes?: string;
34
+ twoFactorApproved?: boolean;
33
35
  advancedVerificationStatus?: BankAccountVerificationStatus;
34
36
  bridgeExternalAccountId?: string;
35
37
  availablePayoutAdvancesAmount?: number;
@@ -48,6 +48,9 @@ const buildBankAccount = (mongoose) => {
48
48
  notes: {
49
49
  type: String,
50
50
  },
51
+ twoFactorApproved: {
52
+ type: Boolean,
53
+ },
51
54
  advancedVerificationStatus: {
52
55
  type: String,
53
56
  },
@@ -8,6 +8,7 @@ interface CryptoAddressAttrs {
8
8
  approved: boolean;
9
9
  lastChecked: Date;
10
10
  label?: string;
11
+ twoFactorApproved?: boolean;
11
12
  advancedVerificationStatus?: AddressVerificationStatus;
12
13
  fireblocksExternalWalletId?: string;
13
14
  isFireblocksWhitelisted?: boolean;
@@ -21,6 +22,7 @@ interface CryptoAddressDoc extends mongoose.Document {
21
22
  approved: boolean;
22
23
  lastChecked: Date;
23
24
  label?: string;
25
+ twoFactorApproved?: boolean;
24
26
  advancedVerificationStatus?: AddressVerificationStatus;
25
27
  fireblocksExternalWalletId?: string;
26
28
  isFireblocksWhitelisted?: boolean;
@@ -36,6 +36,9 @@ const buildCryptoAddress = (mongoose) => {
36
36
  advancedVerificationStatus: {
37
37
  type: String,
38
38
  },
39
+ twoFactorApproved: {
40
+ type: Boolean,
41
+ },
39
42
  fireblocksExternalWalletId: {
40
43
  type: String,
41
44
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2463",
3
+ "version": "1.0.2465",
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.2225",
31
+ "@riocrypto/common": "^1.0.2226",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",