@riocrypto/common-server 1.0.1787 → 1.0.1789

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>;
@@ -23,7 +23,7 @@ interface ChainedOrderAttrs {
23
23
  brokerId?: string;
24
24
  notes?: string;
25
25
  netPrice: number;
26
- requestNetPrice?: number;
26
+ requestedNetPrice?: number;
27
27
  markup?: number;
28
28
  discount?: number;
29
29
  expiredQuotes?: string[];
@@ -51,7 +51,7 @@ interface ChainedOrderDoc extends Document {
51
51
  brokerId?: string;
52
52
  notes?: string;
53
53
  netPrice: number;
54
- requestNetPrice?: number;
54
+ requestedNetPrice?: number;
55
55
  markup?: number;
56
56
  discount?: number;
57
57
  expiredQuotes?: string[];
@@ -23,7 +23,7 @@ interface ChainedQuoteAttrs {
23
23
  createdAt: Date;
24
24
  brokerId?: string;
25
25
  netPrice: number;
26
- requestNetPrice?: number;
26
+ requestedNetPrice?: number;
27
27
  staticAmountField: "origin" | "destination";
28
28
  }
29
29
  interface ChainedQuoteDoc extends Document {
@@ -49,7 +49,7 @@ interface ChainedQuoteDoc extends Document {
49
49
  createdAt: Date;
50
50
  brokerId?: string;
51
51
  netPrice: number;
52
- requestNetPrice?: number;
52
+ requestedNetPrice?: number;
53
53
  staticAmountField: "origin" | "destination";
54
54
  }
55
55
  interface ChainedQuoteModel extends Model<ChainedQuoteDoc> {
@@ -96,7 +96,7 @@ const buildChainedQuote = (mongoose) => {
96
96
  netPrice: {
97
97
  type: Number,
98
98
  },
99
- requestNetPrice: {
99
+ requestedNetPrice: {
100
100
  type: Number,
101
101
  },
102
102
  }, {
@@ -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,
@@ -31,7 +31,7 @@ interface QuoteAttrs {
31
31
  isBid?: boolean;
32
32
  isAfterHours?: boolean;
33
33
  netPrice: number;
34
- requestNetPrice?: number;
34
+ requestedNetPrice?: number;
35
35
  }
36
36
  interface QuoteDoc extends Document {
37
37
  userId: string;
@@ -64,7 +64,7 @@ interface QuoteDoc extends Document {
64
64
  isBid?: boolean;
65
65
  isAfterHours?: boolean;
66
66
  netPrice: number;
67
- requestNetPrice?: number;
67
+ requestedNetPrice?: number;
68
68
  }
69
69
  interface QuoteModel extends Model<QuoteDoc> {
70
70
  build(attrs: QuoteAttrs): QuoteDoc;
@@ -126,7 +126,7 @@ const buildQuote = (mongoose) => {
126
126
  netPrice: {
127
127
  type: Number,
128
128
  },
129
- requestNetPrice: {
129
+ requestedNetPrice: {
130
130
  type: Number,
131
131
  },
132
132
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1787",
3
+ "version": "1.0.1789",
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.1589",
29
+ "@riocrypto/common": "^1.0.1592",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^1.6.0",
32
32
  "crypto-js": "^4.2.0",