X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/c90e813adcec89899d9db95843295a84fb058c3e..95b86eb6b3184b787b570a906347ccaac32195c6:/src/models/collection.ts diff --git a/src/models/collection.ts b/src/models/collection.ts index 316b1fac..2b16ea25 100644 --- a/src/models/collection.ts +++ b/src/models/collection.ts @@ -2,7 +2,29 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { Resource } from "./resource"; +import { ResourceKind, TrashableResource } from "./resource"; -export interface Collection extends Resource { +export interface CollectionResource extends TrashableResource { + kind: ResourceKind.COLLECTION; + name: string; + description: string; + properties: any; + portableDataHash: string; + manifestText: string; + replicationDesired: number; + replicationConfirmed: number; + replicationConfirmedAt: string; + storageClassesDesired: string[]; + storageClassesConfirmed: string[]; + storageClassesConfirmedAt: string; +} + +export const getCollectionUrl = (uuid: string) => { + return `/collections/${uuid}`; +}; + +export enum CollectionType { + GENERAL = 'nil', + OUTPUT = 'output', + LOG = 'log', }