X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/9e4b7889a99ff2f76d8029aef3a85c4620178ba3..219d452e647c01754bf71b91086b15cc9f00027a:/src/models/collection.ts diff --git a/src/models/collection.ts b/src/models/collection.ts index 316b1fac..0e96f7fd 100644 --- a/src/models/collection.ts +++ b/src/models/collection.ts @@ -2,7 +2,23 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { Resource } from "./resource"; +import { Resource, ResourceKind } from "./resource"; -export interface Collection extends Resource { +export interface CollectionResource extends Resource { + kind: ResourceKind.COLLECTION; + name: string; + description: string; + properties: any; + portableDataHash: string; + manifestText: string; + replicationDesired: number; + replicationConfirmed: number; + replicationConfirmedAt: string; + trashAt: string; + deleteAt: string; + isTrashed: boolean; } + +export const getCollectionUrl = (uuid: string) => { + return `/collections/${uuid}`; +}; \ No newline at end of file