@riocrypto/common-server 1.0.1619 → 1.0.1621

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 { AddressVerificationStatus, Crypto } from "@riocrypto/common";
1
+ import { Crypto } from "@riocrypto/common";
2
2
  import mongoose from "mongoose";
3
3
  interface CryptoAddressAttrs {
4
4
  userId: string;
@@ -8,10 +8,6 @@ interface CryptoAddressAttrs {
8
8
  userApproved: boolean;
9
9
  lastChecked: Date;
10
10
  label?: string;
11
- verification?: {
12
- id: string;
13
- status?: AddressVerificationStatus;
14
- };
15
11
  }
16
12
  interface CryptoAddressDoc extends mongoose.Document {
17
13
  userId: string;
@@ -21,10 +17,6 @@ interface CryptoAddressDoc extends mongoose.Document {
21
17
  userApproved: boolean;
22
18
  lastChecked: Date;
23
19
  label?: string;
24
- verification?: {
25
- id: string;
26
- status?: AddressVerificationStatus;
27
- };
28
20
  }
29
21
  interface CryptoAddressModel extends mongoose.Model<CryptoAddressDoc> {
30
22
  build(attrs: CryptoAddressAttrs): CryptoAddressDoc;
@@ -33,14 +33,6 @@ const buildCryptoAddress = (mongoose) => {
33
33
  label: {
34
34
  type: String,
35
35
  },
36
- verification: {
37
- id: {
38
- type: String,
39
- },
40
- status: {
41
- type: String,
42
- },
43
- },
44
36
  }, {
45
37
  toJSON: {
46
38
  transform(doc, ret) {
@@ -3,14 +3,14 @@ interface FireblocksTransferAttrs {
3
3
  userId: string;
4
4
  type: "transaction" | "addressVerification";
5
5
  orderId?: string;
6
- addressId?: string;
6
+ addressVerificationId?: string;
7
7
  fireblocksTransferId: string;
8
8
  }
9
9
  interface FireblocksTransferDoc extends mongoose.Document {
10
10
  userId: string;
11
11
  type: "transaction" | "addressVerification";
12
12
  orderId?: string;
13
- addressId?: string;
13
+ addressVerificationId?: string;
14
14
  fireblocksTransferId: string;
15
15
  }
16
16
  interface FireblocksTransferModel extends mongoose.Model<FireblocksTransferDoc> {
@@ -18,7 +18,7 @@ const buildFireblocksTransfer = (mongoose) => {
18
18
  orderId: {
19
19
  type: String,
20
20
  },
21
- addressId: {
21
+ addressVerificationId: {
22
22
  type: String,
23
23
  },
24
24
  fireblocksTransferId: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1619",
3
+ "version": "1.0.1621",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",