Merge remote-tracking branch 'origin/main' into 18207-Workbench2-is-not-clearing...
[arvados-workbench2.git] / src / models / link.ts
index 8665c9eabed78c429b9fae2fe6ef8638756b828d..f55c5ccfeaa8045d52ccf25aa90403c3eab50ddc 100644 (file)
@@ -2,25 +2,21 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import { Resource } from "./resource";
+import { Resource, ResourceKind, ResourceWithProperties } from 'models/resource';
 
-export interface LinkResource extends Resource {
+export interface LinkResource extends Resource, ResourceWithProperties {
     headUuid: string;
+    headKind: ResourceKind;
     tailUuid: string;
+    tailKind: string;
     linkClass: string;
     name: string;
-    properties: {
-        key?: string;
-        value?: any;
-    };
-}
-
-export enum TailType {
-    COLLECTION = 'Collection',
-    JOB = 'Job'
+    kind: ResourceKind.LINK;
 }
 
 export enum LinkClass {
     STAR = 'star',
-    TAG = 'tag'
-}
\ No newline at end of file
+    TAG = 'tag',
+    PERMISSION = 'permission',
+    PRESET = 'preset',
+}