X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/8cc7e7304d11fb7940a9c68092c7f614e4e5fcea..383d46d2b62a75fa4f7038dc6babf7d0b92656ca:/src/models/link.ts diff --git a/src/models/link.ts b/src/models/link.ts index 26cce6e8..785d531c 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