refs #13563 Merge branch '13563-login-service'
[arvados-workbench2.git] / src / store / project / project-action.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { Project } from "../../models/project";
6 import { default as unionize, ofType, UnionOf } from "unionize";
7
8 const actions = unionize({
9     CREATE_PROJECT: ofType<Project>(),
10     REMOVE_PROJECT: ofType<string>()
11 }, {
12     tag: 'type',
13     value: 'payload'
14 });
15
16 export type ProjectAction = UnionOf<typeof actions>;
17 export default actions;