@riocrypto/common 1.0.1524 → 1.0.1525
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.
|
@@ -336,7 +336,7 @@ export declare class RioAdminClient {
|
|
|
336
336
|
deleteWebhookRegistration(id: string): Promise<void>;
|
|
337
337
|
createAdminAction({ type, }: {
|
|
338
338
|
type: AdminActionType;
|
|
339
|
-
}): Promise<AdminAction>;
|
|
339
|
+
}, formData: FormData): Promise<AdminAction>;
|
|
340
340
|
getAdminActions(page: number): Promise<AdminAction[]>;
|
|
341
341
|
getAdminAction(id: string): Promise<AdminAction>;
|
|
342
342
|
cancelAdminAction(id: string): Promise<void>;
|
|
@@ -1063,11 +1063,9 @@ class RioAdminClient {
|
|
|
1063
1063
|
yield this.axios.delete(`/api/webhooks/${id}`);
|
|
1064
1064
|
});
|
|
1065
1065
|
}
|
|
1066
|
-
createAdminAction({ type, }) {
|
|
1066
|
+
createAdminAction({ type, }, formData) {
|
|
1067
1067
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1068
|
-
const { data } = yield this.axios.post(`/api/admin/actions/${type}`,
|
|
1069
|
-
type,
|
|
1070
|
-
});
|
|
1068
|
+
const { data } = yield this.axios.post(`/api/admin/actions/${type}`, formData);
|
|
1071
1069
|
return data;
|
|
1072
1070
|
});
|
|
1073
1071
|
}
|