X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/ccc52fb9e9a880f8b8e9b15b09c2ebd513575bd4..95b86eb6b3184b787b570a906347ccaac32195c6:/src/models/collection.ts diff --git a/src/models/collection.ts b/src/models/collection.ts index 8ab31999..2b16ea25 100644 --- a/src/models/collection.ts +++ b/src/models/collection.ts @@ -2,10 +2,10 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { Resource, ResourceKind } from "./resource"; +import { ResourceKind, TrashableResource } from "./resource"; -export interface CollectionResource extends Resource { - kind: ResourceKind.Collection; +export interface CollectionResource extends TrashableResource { + kind: ResourceKind.COLLECTION; name: string; description: string; properties: any; @@ -14,11 +14,17 @@ export interface CollectionResource extends Resource { replicationDesired: number; replicationConfirmed: number; replicationConfirmedAt: string; - trashAt: string; - deleteAt: string; - isTrashed: boolean; + storageClassesDesired: string[]; + storageClassesConfirmed: string[]; + storageClassesConfirmedAt: string; } export const getCollectionUrl = (uuid: string) => { return `/collections/${uuid}`; -}; \ No newline at end of file +}; + +export enum CollectionType { + GENERAL = 'nil', + OUTPUT = 'output', + LOG = 'log', +}