X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f362812f74c69b62e107b094f2508ae7fb8cbbff..3dbe57077135d1684407ba6cc2a0d20cfcb33618:/src/models/collection.ts diff --git a/src/models/collection.ts b/src/models/collection.ts index cf5b4e68ce..2b16ea2523 100644 --- a/src/models/collection.ts +++ b/src/models/collection.ts @@ -2,15 +2,10 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { Resource as R } from "./resource"; -import { Resource } from "../common/api/common-resource-service"; -import { ResourceKind } from "./kinds"; +import { ResourceKind, TrashableResource } from "./resource"; -export interface Collection extends R { -} - -export interface CollectionResource extends Resource { - kind: ResourceKind.Collection; +export interface CollectionResource extends TrashableResource { + kind: ResourceKind.COLLECTION; name: string; description: string; properties: any; @@ -19,7 +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}`; +}; + +export enum CollectionType { + GENERAL = 'nil', + OUTPUT = 'output', + LOG = 'log', }