//
// SPDX-License-Identifier: AGPL-3.0
-import { Resource } from "./resource";
+import { Resource, ResourceKind } from "./resource";
+import { TagProperty } from "~/models/tag";
export interface LinkResource extends Resource {
headUuid: string;
tailUuid: string;
linkClass: string;
name: string;
- properties: {
- key?: string;
- value?: any;
- };
-}
-
-export enum TailType {
- COLLECTION = 'Collection',
- JOB = 'Job'
+ properties: TagProperty;
+ kind: ResourceKind.LINK;
}
export enum LinkClass {
STAR = 'star',
- TAG = 'tag'
+ TAG = 'tag',
+ PERMISSION = 'permission',
}
\ No newline at end of file