@riocrypto/common 1.0.1524 → 1.0.1526

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
  }
@@ -6,4 +6,7 @@ export interface AdminAction {
6
6
  createdAt: Date;
7
7
  status: AdminActionStatus;
8
8
  adminAuthId: string;
9
+ totalTasks: number;
10
+ tasksCompleted: number;
11
+ executionErrors: string[];
9
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1524",
3
+ "version": "1.0.1526",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",