@riocrypto/common-server 1.0.1788 → 1.0.1790

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.
@@ -193,8 +193,9 @@ declare class BridgeClient {
193
193
  }): Promise<{
194
194
  id: string;
195
195
  bank_name: string;
196
- account_name: string;
196
+ account_owner_name: string;
197
197
  last_4: string;
198
+ active: boolean;
198
199
  }>;
199
200
  }
200
201
  export declare const buildBridgeClient: () => Promise<BridgeClient>;
@@ -1,6 +1,7 @@
1
1
  import { AddressVerificationStatus, Crypto } from "@riocrypto/common";
2
2
  import mongoose from "mongoose";
3
3
  interface CryptoAddressAttrs {
4
+ createdAt: Date;
4
5
  userId: string;
5
6
  crypto: Crypto;
6
7
  address: string;
@@ -11,6 +12,7 @@ interface CryptoAddressAttrs {
11
12
  advancedVerificationStatus?: AddressVerificationStatus;
12
13
  }
13
14
  interface CryptoAddressDoc extends mongoose.Document {
15
+ createdAt: Date;
14
16
  userId: string;
15
17
  crypto: Crypto;
16
18
  address: string;
@@ -7,6 +7,9 @@ const buildCryptoAddress = (mongoose) => {
7
7
  return mongoose.model("CryptoAddress");
8
8
  }
9
9
  const CryptoAddressSchema = new mongoose.Schema({
10
+ createdAt: {
11
+ type: mongoose.Schema.Types.Date,
12
+ },
10
13
  userId: {
11
14
  type: String,
12
15
  required: true,
@@ -27,6 +27,7 @@ interface OrderAttrs {
27
27
  depositAddress?: string;
28
28
  depositTxId?: string;
29
29
  withdrawalTxId?: string;
30
+ withdrawalTxIds?: string[];
30
31
  brokerId?: string;
31
32
  conversionRateUSD: number;
32
33
  conversionRateUSDWithMarkups: number;
@@ -73,6 +74,7 @@ interface OrderDoc extends Document {
73
74
  depositAddress?: string;
74
75
  depositTxId?: string;
75
76
  withdrawalTxId?: string;
77
+ withdrawalTxIds?: string[];
76
78
  brokerId?: string;
77
79
  conversionRateUSD: number;
78
80
  conversionRateUSDWithMarkups: number;
@@ -85,6 +85,11 @@ const buildOrder = (mongoose) => {
85
85
  withdrawalTxId: {
86
86
  type: String,
87
87
  },
88
+ withdrawalTxIds: [
89
+ {
90
+ type: String,
91
+ },
92
+ ],
88
93
  depositAddress: {
89
94
  type: String,
90
95
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1788",
3
+ "version": "1.0.1790",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "@google-cloud/secret-manager": "^5.3.0",
27
27
  "@google-cloud/storage": "^6.9.5",
28
28
  "@hyperdx/node-opentelemetry": "^0.4.2",
29
- "@riocrypto/common": "^1.0.1592",
29
+ "@riocrypto/common": "^1.0.1594",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^1.6.0",
32
32
  "crypto-js": "^4.2.0",