X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8cc7e7304d11fb7940a9c68092c7f614e4e5fcea..50ab8cb746632cb442c064449503e527c4cdddbe:/src/models/link.ts diff --git a/src/models/link.ts b/src/models/link.ts index 26cce6e875..785d531cf7 100644 --- a/src/models/link.ts +++ b/src/models/link.ts @@ -1,13 +1,24 @@ -import { Resource } from "./resource"; - // Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 -export interface Link extends Resource { +import { TagProperty } from "~/models/tag"; +import { Resource, ResourceKind } from '~/models/resource'; + +export interface LinkResource extends Resource { headUuid: string; + headKind: ResourceKind; tailUuid: string; + tailKind: string; linkClass: string; name: string; - properties: {}; + properties: TagProperty; + kind: ResourceKind.LINK; } + +export enum LinkClass { + STAR = 'star', + TAG = 'tag', + PERMISSION = 'permission', + PRESET = 'preset', +} \ No newline at end of file