@riocrypto/common 1.0.1344 → 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.
- package/build/clients/rio-admin-client.d.ts +2 -0
- package/build/clients/rio-admin-client.js +6 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/types/admin-auth-input.d.ts +9 -0
- package/build/types/admin-auth-input.js +2 -0
- package/build/types/admin-auth-update.d.ts +16 -0
- package/build/types/admin-auth-update.js +2 -0
- package/package.json +1 -1
|
@@ -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);
|
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
|
+
}
|