@riocrypto/common 1.0.1342 → 1.0.1343

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.
@@ -89,7 +89,7 @@ export declare class RioAdminClient {
89
89
  sendVerificationEmail(type: IdentityVerificationType, id: string, country: Country): Promise<void>;
90
90
  sendBridgeOnboardingEmail(userId: string): Promise<void>;
91
91
  createUBO(user: UBOInput): Promise<UBO>;
92
- updateAdminAuth(update: {
92
+ updateAdminAuth(id: string, update: {
93
93
  email?: string;
94
94
  password?: string;
95
95
  newPassword?: string;
@@ -104,7 +104,10 @@ export declare class RioAdminClient {
104
104
  account_owner_name: string;
105
105
  last_4: string;
106
106
  }[]>;
107
- getAdminAuth(): Promise<any>;
107
+ getAdminAuth(id: string): Promise<AdminAuth>;
108
+ deleteAdminAuth(id: string): Promise<void>;
109
+ getAdminAuthWithoutId(): Promise<AdminAuth>;
110
+ getAdminAuths(): Promise<AdminAuth[]>;
108
111
  signoutAdmin(): Promise<void>;
109
112
  getRioSettings(): Promise<RioSettings>;
110
113
  createRioSettings(rioSettings: {
@@ -236,9 +236,9 @@ class RioAdminClient {
236
236
  return data;
237
237
  });
238
238
  }
239
- updateAdminAuth(update) {
239
+ updateAdminAuth(id, update) {
240
240
  return __awaiter(this, void 0, void 0, function* () {
241
- const { data } = yield this.axios.patch(`/api/auth/admin`, update);
241
+ const { data } = yield this.axios.patch(`/api/auth/admin/${id}`, update);
242
242
  return data;
243
243
  });
244
244
  }
@@ -256,7 +256,24 @@ class RioAdminClient {
256
256
  return data;
257
257
  });
258
258
  }
259
- getAdminAuth() {
259
+ getAdminAuth(id) {
260
+ return __awaiter(this, void 0, void 0, function* () {
261
+ const { data } = yield this.axios.get(`/api/auth/admin/${id}`);
262
+ return data;
263
+ });
264
+ }
265
+ deleteAdminAuth(id) {
266
+ return __awaiter(this, void 0, void 0, function* () {
267
+ yield this.axios.delete(`/api/auth/admin/${id}`);
268
+ });
269
+ }
270
+ getAdminAuthWithoutId() {
271
+ return __awaiter(this, void 0, void 0, function* () {
272
+ const { data } = yield this.axios.get(`/api/auth/admin/self`);
273
+ return data;
274
+ });
275
+ }
276
+ getAdminAuths() {
260
277
  return __awaiter(this, void 0, void 0, function* () {
261
278
  const { data } = yield this.axios.get(`/api/auth/admin`);
262
279
  return data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1342",
3
+ "version": "1.0.1343",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",