1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { Project } from "../../models/project";
6 import { default as unionize, ofType, UnionOf } from "unionize";
8 const actions = unionize({
9 CREATE_PROJECT: ofType<Project>(),
10 REMOVE_PROJECT: ofType<string>(),
12 PROJECTS_SUCCESS: ofType<{ projects: Project[], parentItemId?: string }>(),
13 TOGGLE_PROJECT_TREE_ITEM: ofType<string>()
19 export type ProjectAction = UnionOf<typeof actions>;
20 export default actions;