Refactor new code
[arvados-workbench2.git] / src / models / group.ts
index dae516bddb0f19548b0417bef78f33632aa53648..5e8d7a1e0b4a2e76ceaf9c80d035f55417aa55d6 100644 (file)
@@ -2,17 +2,20 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import { Resource } from "../common/api/common-resource-service";
-import { ResourceKind } from "./kinds";
+import { Resource, ResourceKind } from "./resource";
 
 export interface GroupResource extends Resource {
-    kind: ResourceKind.Group;
+    kind: ResourceKind.GROUP;
     name: string;
-    groupClass: string;
+    groupClass: GroupClass | null;
     description: string;
     properties: string;
     writeableBy: string[];
     trashAt: string;
     deleteAt: string;
     isTrashed: boolean;
+}
+
+export enum GroupClass {
+    PROJECT = "project"
 }
\ No newline at end of file