X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/0ce21e3487078a53f1b653446b5e615cd6dda709..4b961d16b8f8ef8afbd13697a79fe4684acd0416:/src/models/collection.ts diff --git a/src/models/collection.ts b/src/models/collection.ts index 8effd8ee..ca2b4b36 100644 --- a/src/models/collection.ts +++ b/src/models/collection.ts @@ -2,11 +2,10 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { Resource } from "../common/api/common-resource-service"; -import { ResourceKind } from "./kinds"; +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; @@ -15,7 +14,21 @@ export interface CollectionResource extends Resource { 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; +} + +export const getCollectionUrl = (uuid: string) => { + return `/collections/${uuid}`; +}; + +export enum CollectionType { + GENERAL = 'nil', + OUTPUT = 'output', + LOG = 'log', }