@riocrypto/common-server 1.0.715 → 1.0.717

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.
@@ -25,6 +25,7 @@ interface UserAttrs {
25
25
  platformFeeRanges?: PlatformFeeRange[];
26
26
  COIFile?: string;
27
27
  KYCReportFile?: string;
28
+ authorizedPhoneNumbers?: string[];
28
29
  }
29
30
  interface UserModel extends Model<UserDoc> {
30
31
  build(attrs: UserAttrs): UserDoc;
@@ -55,6 +56,7 @@ interface UserDoc extends Document {
55
56
  platformFeeRanges?: PlatformFeeRange[];
56
57
  COIFile?: string;
57
58
  KYCReportFile?: string;
59
+ authorizedPhoneNumbers?: string[];
58
60
  }
59
61
  declare const buildUser: (mongoose: Mongoose) => UserModel;
60
62
  export { buildUser, UserDoc };
@@ -105,6 +105,11 @@ const buildUser = (mongoose) => {
105
105
  },
106
106
  },
107
107
  ],
108
+ authorizedPhoneNumbers: [
109
+ {
110
+ type: String,
111
+ },
112
+ ],
108
113
  }, {
109
114
  toJSON: {
110
115
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.715",
3
+ "version": "1.0.717",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "@aws-sdk/client-s3": "^3.297.0",
25
25
  "@everapi/currencyapi-js": "^1.0.6",
26
26
  "@google-cloud/storage": "^6.9.5",
27
- "@riocrypto/common": "^1.0.637",
27
+ "@riocrypto/common": "^1.0.638",
28
28
  "@types/express": "^4.17.13",
29
29
  "axios": "^0.27.2",
30
30
  "ccxt": "^3.0.30",