left-side-panel-small-refactor
[arvados-workbench2.git] / src / store / project / project-action.ts
index 7c91cc551a521fdb97db5879ab7f089fb6f85250..a58edd3caa994082e9d9431a718442a656435d46 100644 (file)
@@ -1,15 +1,18 @@
 // Copyright (C) The Arvados Authors. All rights reserved.
 //
 // SPDX-License-Identifier: AGPL-3.0
+import { default as unionize, ofType, UnionOf } from "unionize";
 
 import { Project } from "../../models/project";
-import { default as unionize, ofType, UnionOf } from "unionize";
 
 const actions = unionize({
     CREATE_PROJECT: ofType<Project>(),
     REMOVE_PROJECT: ofType<string>(),
-    TOP_PROJECTS_REQUEST: {},
-    TOP_PROJECTS_SUCCESS: ofType<Project[]>()
+    PROJECTS_REQUEST: ofType<any>(),
+    PROJECTS_SUCCESS: ofType<{ projects: Project[], parentItemId?: string }>(),
+    TOGGLE_PROJECT_TREE_ITEM_OPEN: ofType<string>(),
+    TOGGLE_PROJECT_TREE_ITEM_ACTIVE: ofType<string>(),
+    RESET_PROJECT_TREE_ACTIVITY: ofType<string>(),
 }, {
     tag: 'type',
     value: 'payload'