@riocrypto/common 1.0.1346 → 1.0.1347

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.
@@ -42,6 +42,7 @@ import { UBO } from "../types/UBO";
42
42
  import { UBOUpdate } from "../types/UBO-update";
43
43
  import { IdentityVerificationType } from "../types/IdentityVerificationType";
44
44
  import { AdminAuth } from "../types/admin-auth";
45
+ import { AdminAuthInput } from "../types/admin-auth-input";
45
46
  export declare class RioAdminClient {
46
47
  private axios;
47
48
  constructor(axios: AxiosStatic | AxiosInstance);
@@ -123,6 +124,7 @@ export declare class RioAdminClient {
123
124
  stopAdminTasks(adminId?: string): Promise<AdminAuth>;
124
125
  getAdminTasks(taskTypes?: AdminTaskType[]): Promise<AdminTask[]>;
125
126
  markAdminTaskComplete(id: string): Promise<AdminTask>;
127
+ createAdminAuth(adminAuth: AdminAuthInput): Promise<AdminAuth>;
126
128
  createUser(user: UserInput): Promise<User>;
127
129
  getBankPayment(orderId: string): Promise<BankPayment>;
128
130
  verifyBankPayment(orderId: string): Promise<any>;
@@ -372,6 +372,12 @@ class RioAdminClient {
372
372
  return data;
373
373
  });
374
374
  }
375
+ createAdminAuth(adminAuth) {
376
+ return __awaiter(this, void 0, void 0, function* () {
377
+ const { data } = yield this.axios.post("/api/auth/admin", adminAuth);
378
+ return data;
379
+ });
380
+ }
375
381
  createUser(user) {
376
382
  return __awaiter(this, void 0, void 0, function* () {
377
383
  const { data } = yield this.axios.post("/api/users", user);
@@ -0,0 +1,9 @@
1
+ export interface AdminAuthInput {
2
+ password: string;
3
+ firstName: string;
4
+ middleName?: string;
5
+ lastName: string;
6
+ secondLastName?: string;
7
+ email: string;
8
+ slackWebhookUrl: string;
9
+ }
@@ -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.1346",
3
+ "version": "1.0.1347",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",