1 // Copyright (C) The Arvados Authors. All rights reserved.
\r
3 // SPDX-License-Identifier: AGPL-3.0
\r
5 import { default as unionize, ofType, UnionOf } from "unionize";
\r
7 export interface UploadFile {
\r
15 currentTime: number;
\r
18 export const collectionUploaderActions = unionize({
\r
19 SET_UPLOAD_FILES: ofType<File[]>(),
\r
20 START_UPLOAD: ofType(),
\r
21 SET_UPLOAD_PROGRESS: ofType<{ fileId: number, loaded: number, total: number, currentTime: number }>()
\r
27 export type CollectionUploaderAction = UnionOf<typeof collectionUploaderActions>;
\r