@riocrypto/common 1.0.1343 → 1.0.1346

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.
@@ -118,7 +118,6 @@ export declare class RioAdminClient {
118
118
  confirmBankPayout(orderId: string): Promise<any>;
119
119
  confirmLiquiditySourced(orderId: string): Promise<any>;
120
120
  getUser(userId: string): Promise<User>;
121
- getAdmin(): Promise<AdminAuth>;
122
121
  acceptAdminTasks(adminId?: string): Promise<AdminAuth>;
123
122
  grantAdminAccessToUser(userId?: string): Promise<void>;
124
123
  stopAdminTasks(adminId?: string): Promise<AdminAuth>;
@@ -336,12 +336,6 @@ class RioAdminClient {
336
336
  return data;
337
337
  });
338
338
  }
339
- getAdmin() {
340
- return __awaiter(this, void 0, void 0, function* () {
341
- const { data } = yield this.axios.get("/api/auth/admin");
342
- return data;
343
- });
344
- }
345
339
  acceptAdminTasks(adminId) {
346
340
  return __awaiter(this, void 0, void 0, function* () {
347
341
  const { data } = yield this.axios.post("/api/admin/tasks/accept", {
package/build/index.d.ts CHANGED
@@ -128,6 +128,7 @@ export * from "./events/auth-deleted-event";
128
128
  export * from "./types/auth-payload";
129
129
  export * from "./types/admin-auth-payload";
130
130
  export * from "./types/admin-auth";
131
+ export * from "./types/admin-auth-update";
131
132
  export * from "./types/admin-auth-role";
132
133
  export * from "./types/crypto";
133
134
  export * from "./types/us-state";
package/build/index.js CHANGED
@@ -144,6 +144,7 @@ __exportStar(require("./events/auth-deleted-event"), exports);
144
144
  __exportStar(require("./types/auth-payload"), exports);
145
145
  __exportStar(require("./types/admin-auth-payload"), exports);
146
146
  __exportStar(require("./types/admin-auth"), exports);
147
+ __exportStar(require("./types/admin-auth-update"), exports);
147
148
  __exportStar(require("./types/admin-auth-role"), exports);
148
149
  __exportStar(require("./types/crypto"), exports);
149
150
  __exportStar(require("./types/us-state"), exports);
@@ -0,0 +1,16 @@
1
+ import { AdminAuthRole } from "./admin-auth-role";
2
+ import { AdminTaskType } from "./admin-task-type";
3
+ export interface AdminAuthUpdate {
4
+ firstName?: string;
5
+ middleName?: string;
6
+ lastName?: string;
7
+ secondLastName?: string;
8
+ email?: string;
9
+ slackWebhookUrl?: string;
10
+ acceptingTasks?: boolean;
11
+ assignedTaskTypes?: AdminTaskType[];
12
+ userAuthId?: string;
13
+ role?: AdminAuthRole;
14
+ previousPasswords?: string[];
15
+ authenticatorSecret?: string;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1343",
3
+ "version": "1.0.1346",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",