//
// SPDX-License-Identifier: AGPL-3.0
-import { Resource } from "./resource";
-import { TagProperty } from "~/models/tag";
+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: TagProperty;
+ kind: ResourceKind.LINK;
}
export enum LinkClass {
TAG = 'tag',
PERMISSION = 'permission',
PRESET = 'preset',
-}
\ No newline at end of file
+}