1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { default as unionize, ofType, UnionOf } from "unionize";
6 import { KeepManifest } from "../../../models/keep-manifest";
7 import { CollectionFilesTree } from "../../../models/collection-file";
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' });
17 export type CollectionPanelFilesAction = UnionOf<typeof collectionPanelFilesAction>;