0b9aeb9931830ea35514dc3cbc6a5815250ef818
[arvados-workbench2.git] / src / store / collections / uploader / collection-uploader-actions.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.\r
2 //\r
3 // SPDX-License-Identifier: AGPL-3.0\r
4 \r
5 import { default as unionize, ofType, UnionOf } from "unionize";\r
6 \r
7 export const collectionUploaderActions = unionize({\r
8     SET_UPLOAD_FILES: ofType<File[]>(),\r
9     START_UPLOADING: ofType<{}>(),\r
10     UPDATE_UPLOAD_PROGRESS: ofType<{}>()\r
11 }, {\r
12     tag: 'type',\r
13     value: 'payload'\r
14 });\r
15 \r
16 export type CollectionUploaderAction = UnionOf<typeof collectionUploaderActions>;\r