7423c4916cec392fea776405bc303639f49864d1
[arvados-workbench2.git] / src / store / collection-panel / collection-panel-files / collection-panel-files-actions.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { default as unionize, ofType, UnionOf } from "unionize";
6 import { KeepManifest } from "../../../models/keep-manifest";
7 import { CollectionFilesTree } from "../../../models/collection-file";
8
9 export const collectionPanelFilesAction = unionize({
10     SET_COLLECTION_FILES: ofType<{ files: CollectionFilesTree }>(),
11     TOGGLE_COLLECTION_FILE_COLLAPSE: ofType<{ id: string }>(),
12     TOGGLE_COLLECTION_FILE_SELECTION: ofType<{ id: string }>(),
13     SELECT_ALL_COLLECTION_FILES: ofType<{}>(),
14     UNSELECT_ALL_COLLECTION_FILES: ofType<{}>(),
15 }, { tag: 'type', value: 'payload' });
16
17 export type CollectionPanelFilesAction = UnionOf<typeof collectionPanelFilesAction>;