Merge branch '14244-context-menu-for-collection-in-trash'
[arvados-workbench2.git] / src / models / collection.ts
index 8ab319991cc91a0f130576f1d4f72f4292be48c0..f8e38f9a0fac227bd2cfeccd62654723f9c66ef5 100644 (file)
@@ -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,8 @@ export interface CollectionResource extends Resource {
     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
+};