Merge branch '14244-context-menu-for-collection-in-trash'
[arvados-workbench2.git] / src / models / collection.ts
index 316b1fac59f6271ddc4fb2a0e6844669327f8c39..f8e38f9a0fac227bd2cfeccd62654723f9c66ef5 100644 (file)
@@ -2,7 +2,20 @@
 //
 // 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;
 }
+
+export const getCollectionUrl = (uuid: string) => {
+    return `/collections/${uuid}`;
+};