X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/7ae86efd9905582df4191910528c3803a68ba81b..c952afae1af2fb31b68be04f70bd7ae6f9d52aba:/src/models/collection.ts diff --git a/src/models/collection.ts b/src/models/collection.ts index 0e96f7fd..3effe672 100644 --- a/src/models/collection.ts +++ b/src/models/collection.ts @@ -2,23 +2,38 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { Resource, ResourceKind } from "./resource"; +import { + ResourceKind, + TrashableResource, + ResourceWithProperties +} from "./resource"; -export interface CollectionResource extends Resource { +export interface CollectionResource extends TrashableResource, ResourceWithProperties { kind: ResourceKind.COLLECTION; name: string; description: string; - properties: any; portableDataHash: string; manifestText: string; replicationDesired: number; replicationConfirmed: number; replicationConfirmedAt: string; - trashAt: string; - deleteAt: string; - isTrashed: boolean; + storageClassesDesired: string[]; + storageClassesConfirmed: string[]; + storageClassesConfirmedAt: string; + currentVersionUuid: string; + version: number; + preserveVersion: boolean; + unsignedManifestText?: string; + fileCount: number; + fileSizeTotal: number; } export const getCollectionUrl = (uuid: string) => { return `/collections/${uuid}`; -}; \ No newline at end of file +}; + +export enum CollectionType { + GENERAL = 'nil', + OUTPUT = 'output', + LOG = 'log', +}