@riocrypto/common-server 1.0.1581 → 1.0.1585

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 { Crypto } from "@riocrypto/common";
1
+ import { AddressVerificationStatus, Crypto } from "@riocrypto/common";
2
2
  import mongoose from "mongoose";
3
3
  interface CryptoAddressAttrs {
4
4
  userId: string;
@@ -8,6 +8,7 @@ interface CryptoAddressAttrs {
8
8
  userApproved: boolean;
9
9
  lastChecked: Date;
10
10
  label?: string;
11
+ verificationStatus?: AddressVerificationStatus;
11
12
  }
12
13
  interface CryptoAddressDoc extends mongoose.Document {
13
14
  userId: string;
@@ -17,6 +18,7 @@ interface CryptoAddressDoc extends mongoose.Document {
17
18
  userApproved: boolean;
18
19
  lastChecked: Date;
19
20
  label?: string;
21
+ verificationStatus?: AddressVerificationStatus;
20
22
  }
21
23
  interface CryptoAddressModel extends mongoose.Model<CryptoAddressDoc> {
22
24
  build(attrs: CryptoAddressAttrs): CryptoAddressDoc;
@@ -33,6 +33,9 @@ const buildCryptoAddress = (mongoose) => {
33
33
  label: {
34
34
  type: String,
35
35
  },
36
+ verificationStatus: {
37
+ type: String,
38
+ },
36
39
  }, {
37
40
  toJSON: {
38
41
  transform(doc, ret) {
@@ -40,7 +40,7 @@ class LoggerService {
40
40
  }
41
41
  else {
42
42
  this.logger = (0, winston_1.createLogger)({
43
- level: MAX_LEVEL,
43
+ level: "error",
44
44
  format: winston_1.format.combine(winston_1.format.timestamp(), winston_1.format.json(), winston_1.format.metadata(), winston_1.format.prettyPrint()),
45
45
  transports: [new winston_1.transports.Console()],
46
46
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1581",
3
+ "version": "1.0.1585",
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.1408",
31
+ "@riocrypto/common": "^1.0.1416",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.6.0",
34
34
  "ccxt": "^3.0.30",