@riocrypto/common-server 1.0.1481 → 1.0.1483

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.
@@ -1,4 +1,4 @@
1
- import { APIKey, SecurityQuestion } from "@riocrypto/common";
1
+ import { APIKey, AuthRole, SecurityQuestion } from "@riocrypto/common";
2
2
  import { Mongoose, Model, Document } from "mongoose";
3
3
  interface AuthAttrs {
4
4
  phoneNumber: string;
@@ -16,6 +16,11 @@ interface AuthAttrs {
16
16
  username?: string;
17
17
  lastVerified?: Date;
18
18
  };
19
+ firstName?: string;
20
+ middleName?: string;
21
+ lastName?: string;
22
+ secondLastName?: string;
23
+ role: AuthRole;
19
24
  }
20
25
  interface AuthDoc extends Document {
21
26
  phoneNumber: string;
@@ -33,6 +38,11 @@ interface AuthDoc extends Document {
33
38
  username?: string;
34
39
  lastVerified?: Date;
35
40
  };
41
+ firstName?: string;
42
+ middleName?: string;
43
+ lastName?: string;
44
+ secondLastName?: string;
45
+ role: AuthRole;
36
46
  }
37
47
  interface AuthModel extends Model<AuthDoc> {
38
48
  build(attrs: AuthAttrs): AuthDoc;
@@ -55,6 +55,21 @@ const buildAuth = (mongoose) => {
55
55
  type: Boolean,
56
56
  },
57
57
  },
58
+ firstName: {
59
+ type: String,
60
+ },
61
+ middleName: {
62
+ type: String,
63
+ },
64
+ lastName: {
65
+ type: String,
66
+ },
67
+ secondLastName: {
68
+ type: String,
69
+ },
70
+ role: {
71
+ type: String,
72
+ },
58
73
  apiKeys: [
59
74
  {
60
75
  value: {
@@ -27,6 +27,7 @@ interface QuoteAttrs {
27
27
  discount?: number;
28
28
  markup?: number;
29
29
  USBankTransferMethod?: "wire" | "ach_push";
30
+ isBid?: boolean;
30
31
  }
31
32
  interface QuoteDoc extends Document {
32
33
  userId: string;
@@ -55,6 +56,7 @@ interface QuoteDoc extends Document {
55
56
  discount?: number;
56
57
  markup?: number;
57
58
  USBankTransferMethod?: "wire" | "ach_push";
59
+ isBid?: boolean;
58
60
  }
59
61
  interface QuoteModel extends Model<QuoteDoc> {
60
62
  build(attrs: QuoteAttrs): QuoteDoc;
@@ -105,6 +105,9 @@ const buildQuote = (mongoose) => {
105
105
  markup: {
106
106
  type: Number,
107
107
  },
108
+ isBid: {
109
+ type: Boolean,
110
+ },
108
111
  quoteInCrypto: {
109
112
  type: Boolean,
110
113
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1481",
3
+ "version": "1.0.1483",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "@google-cloud/storage": "^6.9.5",
29
29
  "@google-cloud/vision": "^4.0.2",
30
30
  "@hyperdx/node-opentelemetry": "^0.4.2",
31
- "@riocrypto/common": "^1.0.1315",
31
+ "@riocrypto/common": "^1.0.1319",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^0.27.2",
34
34
  "ccxt": "^3.0.30",