@riocrypto/common-server 1.0.1203 → 1.0.1205

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.
@@ -56,19 +56,11 @@ declare class BitsoClient {
56
56
  }[]>;
57
57
  getOrderBookTrades(crypto: Crypto): Promise<{
58
58
  book: string;
59
- major: string;
60
- major_currency: string;
61
59
  created_at: string;
62
- minor: string;
63
- minor_currency: string;
64
- fees_amount: string;
65
- fees_currency: string;
66
- price: string;
67
- tid: string;
68
- oid: string;
69
- origin_id: string;
70
- side: string;
60
+ amount: string;
71
61
  maker_side: string;
62
+ price: string;
63
+ tid: number;
72
64
  }[]>;
73
65
  cancelOrder(oid: string): Promise<void>;
74
66
  getOrderBook(crypto: Crypto): Promise<{
@@ -14,7 +14,9 @@ interface UserAttrs {
14
14
  country: CountryOfOrigin;
15
15
  kycStatus: KYCStatus;
16
16
  firstName?: string;
17
+ middleName?: string;
17
18
  lastName?: string;
19
+ secondLastName?: string;
18
20
  companyName?: string;
19
21
  birthday?: Date;
20
22
  legalRepresentative?: string;
@@ -62,7 +64,9 @@ interface UserDoc extends Document {
62
64
  country: CountryOfOrigin;
63
65
  kycStatus: KYCStatus;
64
66
  firstName?: string;
67
+ middleName?: string;
65
68
  lastName?: string;
69
+ secondLastName?: string;
66
70
  companyName?: string;
67
71
  legalRepresentative?: string;
68
72
  cpf?: string;
@@ -24,9 +24,15 @@ const buildUser = (mongoose) => {
24
24
  firstName: {
25
25
  type: String,
26
26
  },
27
+ middleName: {
28
+ type: String,
29
+ },
27
30
  lastName: {
28
31
  type: String,
29
32
  },
33
+ secondLastName: {
34
+ type: String,
35
+ },
30
36
  phoneNumber: {
31
37
  type: String,
32
38
  required: true,
@@ -221,7 +227,13 @@ const buildUser = (mongoose) => {
221
227
  ret.street2 = ret.street2 ? (0, unescape_1.unescape)(ret.street2) : undefined;
222
228
  ret.state = ret.state ? (0, unescape_1.unescape)(ret.state) : undefined;
223
229
  ret.firstName = ret.firstName ? (0, unescape_1.unescape)(ret.firstName) : undefined;
230
+ ret.middleName = ret.middleName
231
+ ? (0, unescape_1.unescape)(ret.middleName)
232
+ : undefined;
224
233
  ret.lastName = ret.lastName ? (0, unescape_1.unescape)(ret.lastName) : undefined;
234
+ ret.secondLastName = ret.secondLastName
235
+ ? (0, unescape_1.unescape)(ret.secondLastName)
236
+ : undefined;
225
237
  ret.economicActivity = ret.economicActivity
226
238
  ? (0, unescape_1.unescape)(ret.economicActivity)
227
239
  : undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1203",
3
+ "version": "1.0.1205",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "@aws-sdk/client-s3": "^3.297.0",
27
27
  "@everapi/currencyapi-js": "^1.0.6",
28
28
  "@google-cloud/storage": "^6.9.5",
29
- "@riocrypto/common": "^1.0.1087",
29
+ "@riocrypto/common": "^1.0.1093",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^0.27.2",
32
32
  "ccxt": "^3.0.30",