1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { Collection } from "../../models/collection";
6 import { default as unionize, ofType, UnionOf } from "unionize";
8 const actions = unionize({
9 CREATE_COLLECTION: ofType<Collection>(),
10 REMOVE_COLLECTION: ofType<string>(),
11 COLLECTIONS_REQUEST: ofType<any>(),
12 COLLECTIONS_SUCCESS: ofType<{ collections: Collection[] }>(),
18 export type CollectionAction = UnionOf<typeof actions>;
19 export default actions;