18123: Add role group class to model to fix creating groups.
[arvados-workbench2.git] / src / models / group.ts
index d8efae267118b9274754fd9b92155e6a87ec3066..7d144a5812f6cb45d5e39b0ebf64408436b2d0f7 100644 (file)
@@ -2,20 +2,20 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import { Resource, ResourceKind } from "./resource";
+import { ResourceKind, TrashableResource } from "./resource";
 
-export interface GroupResource extends Resource {
-    kind: ResourceKind.Group;
+export interface GroupResource extends TrashableResource {
+    kind: ResourceKind.GROUP;
     name: string;
     groupClass: GroupClass | null;
     description: string;
-    properties: string;
-    writeableBy: string[];
-    trashAt: string;
-    deleteAt: string;
-    isTrashed: boolean;
+    properties: any;
+    writableBy: string[];
+    ensure_unique_name: boolean;
 }
 
 export enum GroupClass {
-    Project = "project"
-}
\ No newline at end of file
+    PROJECT = 'project',
+    FILTER  = 'filter',
+    ROLE  = 'role',
+}