@riocrypto/common 1.0.1317 → 1.0.1319

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
@@ -215,6 +215,7 @@ export * from "./types/IdentityVerificationType";
215
215
  export * from "./types/KYC";
216
216
  export * from "./types/bid";
217
217
  export * from "./types/bid-status";
218
+ export * from "./types/auth-role";
218
219
  export * from "./classes/Asset";
219
220
  export * from "./classes/KYCFieldClass";
220
221
  export * from "./classes/KYCFileClass";
package/build/index.js CHANGED
@@ -231,6 +231,7 @@ __exportStar(require("./types/IdentityVerificationType"), exports);
231
231
  __exportStar(require("./types/KYC"), exports);
232
232
  __exportStar(require("./types/bid"), exports);
233
233
  __exportStar(require("./types/bid-status"), exports);
234
+ __exportStar(require("./types/auth-role"), exports);
234
235
  __exportStar(require("./classes/Asset"), exports);
235
236
  __exportStar(require("./classes/KYCFieldClass"), exports);
236
237
  __exportStar(require("./classes/KYCFileClass"), exports);
@@ -0,0 +1,5 @@
1
+ export declare enum AuthRole {
2
+ Owner = "owner",
3
+ Write = "write",
4
+ Read = "read"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthRole = void 0;
4
+ var AuthRole;
5
+ (function (AuthRole) {
6
+ AuthRole["Owner"] = "owner";
7
+ AuthRole["Write"] = "write";
8
+ AuthRole["Read"] = "read";
9
+ })(AuthRole = exports.AuthRole || (exports.AuthRole = {}));
@@ -1,7 +1,13 @@
1
+ import { AuthRole } from "./auth-role";
1
2
  import { SecurityQuestion } from "./security-question";
2
3
  export interface AuthUpdate {
3
4
  phoneNumber?: string;
4
5
  password?: string;
5
6
  securityQuestion?: SecurityQuestion;
6
7
  securityAnswer?: string;
8
+ firstName?: string;
9
+ middleName?: string;
10
+ lastName?: string;
11
+ secondLastName?: string;
12
+ role?: AuthRole;
7
13
  }
@@ -1,4 +1,5 @@
1
1
  import { APIKey } from "./api-key";
2
+ import { AuthRole } from "./auth-role";
2
3
  import { SecurityQuestion } from "./security-question";
3
4
  export interface Auth {
4
5
  id: string;
@@ -17,4 +18,9 @@ export interface Auth {
17
18
  username?: string;
18
19
  lastVerified?: Date;
19
20
  };
21
+ firstName?: string;
22
+ middleName?: string;
23
+ lastName?: string;
24
+ secondLastName?: string;
25
+ role: AuthRole;
20
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1317",
3
+ "version": "1.0.1319",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",