Add trash view and trahsing/untrashing project/collection
[arvados-workbench2.git] / src / models / resource.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 export interface Resource {
6     uuid: string;
7     ownerUuid: string;
8     createdAt: string;
9     modifiedByClientUuid: string;
10     modifiedByUserUuid: string;
11     modifiedAt: string;
12     href: string;
13     kind: string;
14     etag: string;
15 }
16
17 export interface TrashResource extends Resource {
18     trashAt: string;
19     deleteAt: string;
20     isTrashed: boolean;
21 }
22
23 export enum ResourceKind {
24     COLLECTION = "arvados#collection",
25     GROUP = "arvados#group",
26     PROCESS = "arvados#containerRequest",
27     PROJECT = "arvados#group",
28     WORKFLOW = "arvados#workflow"
29 }