X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ef3b2c15f10a3fea50170bc346105d909145a98f..6e335a900ab99ddc7b7288e00d20a54f6c75ec8f:/src/models/collection.ts diff --git a/src/models/collection.ts b/src/models/collection.ts index a25afeb128..3effe67248 100644 --- a/src/models/collection.ts +++ b/src/models/collection.ts @@ -2,24 +2,38 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { ResourceKind, TrashableResource } from "./resource"; +import { + ResourceKind, + TrashableResource, + ResourceWithProperties +} from "./resource"; -export interface CollectionResource extends TrashableResource { +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; - fileNames: string; 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}`; }; + +export enum CollectionType { + GENERAL = 'nil', + OUTPUT = 'output', + LOG = 'log', +}