@riocrypto/common 1.0.209 → 1.0.210

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.
package/build/index.d.ts CHANGED
@@ -85,3 +85,4 @@ export * from "./types/partner-status";
85
85
  export * from "./types/admin-user";
86
86
  export * from "./types/partner-update";
87
87
  export * from "./types/users-stats";
88
+ export * from "./types/user-attribute";
package/build/index.js CHANGED
@@ -101,3 +101,4 @@ __exportStar(require("./types/partner-status"), exports);
101
101
  __exportStar(require("./types/admin-user"), exports);
102
102
  __exportStar(require("./types/partner-update"), exports);
103
103
  __exportStar(require("./types/users-stats"), exports);
104
+ __exportStar(require("./types/user-attribute"), exports);
@@ -0,0 +1,4 @@
1
+ export declare enum UserAttribute {
2
+ disabled = "disabled",
3
+ banned = "banned"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserAttribute = void 0;
4
+ var UserAttribute;
5
+ (function (UserAttribute) {
6
+ UserAttribute["disabled"] = "disabled";
7
+ UserAttribute["banned"] = "banned";
8
+ })(UserAttribute = exports.UserAttribute || (exports.UserAttribute = {}));
@@ -2,6 +2,7 @@ import { Country } from "./country";
2
2
  import { KYCStatus } from "./kyc-status";
3
3
  import { Language } from "./language";
4
4
  import { USState } from "./us-state";
5
+ import { UserAttribute } from "./user-attribute";
5
6
  export interface UserInput {
6
7
  firstName: string;
7
8
  lastName: string;
@@ -16,5 +17,5 @@ export interface UserInput {
16
17
  country: Country;
17
18
  language: Language;
18
19
  kycStatus?: KYCStatus;
19
- permissions?: string[];
20
+ attributes?: UserAttribute[];
20
21
  }
@@ -1,6 +1,7 @@
1
1
  import { Country } from "./country";
2
2
  import { KYCStatus } from "./kyc-status";
3
3
  import { Language } from "./language";
4
+ import { UserAttribute } from "./user-attribute";
4
5
  export interface UserUpdate {
5
6
  firstName?: string;
6
7
  lastName?: string;
@@ -15,4 +16,5 @@ export interface UserUpdate {
15
16
  country?: Country;
16
17
  kycStatus?: KYCStatus;
17
18
  language?: Language;
19
+ attributes?: UserAttribute[];
18
20
  }
@@ -2,6 +2,7 @@ import { Country } from "./country";
2
2
  import { KYCStatus } from "./kyc-status";
3
3
  import { Language } from "./language";
4
4
  import { USState } from "./us-state";
5
+ import { UserAttribute } from "./user-attribute";
5
6
  export interface User {
6
7
  id: string;
7
8
  firstName: string;
@@ -17,5 +18,5 @@ export interface User {
17
18
  country: Country;
18
19
  kycStatus: KYCStatus;
19
20
  language?: Language;
20
- permissions?: string[];
21
+ attributes?: UserAttribute[];
21
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.209",
3
+ "version": "1.0.210",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",