Rename progressFn to api actions, add colors to snackbar
[arvados-workbench2.git] / src / services / api / api-actions.ts
diff --git a/src/services/api/api-actions.ts b/src/services/api/api-actions.ts
new file mode 100644 (file)
index 0000000..d47eeaa
--- /dev/null
@@ -0,0 +1,11 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
+export type ProgressFn = (id: string, working: boolean) => void;
+export type ErrorFn = (id: string, message: string) => void;
+
+export interface ApiActions {
+    progressFn: ProgressFn;
+    errorFn: ErrorFn;
+}