1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { unionize } from "src/common/unionize";
6 import { ofType, UnionOf } from "unionize";
7 import { CollectionDirectory, CollectionFile } from "~/models/collection-file";
8 import { Tree } from "~/models/tree";
10 export const resourcesDataActions = unionize({
11 SET_FILES: ofType<{uuid: string, files: Tree<CollectionFile | CollectionDirectory>}>()
14 export type ResourcesDataActions = UnionOf<typeof resourcesDataActions>;