X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/2e60bb998178752c3a126f077cbb891b597ed91e..96fdc9e2e344e86378dd156593d8166f309ea1af:/src/models/link.ts diff --git a/src/models/link.ts b/src/models/link.ts index 8665c9ea..f55c5ccf 100644 --- a/src/models/link.ts +++ b/src/models/link.ts @@ -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', +}