Merge branch 'master' into 15166-size-between-icons-on-workflow-panel-is-too-wide
[arvados-workbench2.git] / src / models / link.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { TagProperty } from "~/models/tag";
6 import { Resource, ResourceKind } from '~/models/resource';
7
8 export interface LinkResource extends Resource {
9     headUuid: string;
10     headKind: ResourceKind;
11     tailUuid: string;
12     tailKind: string;
13     linkClass: string;
14     name: string;
15     properties: TagProperty;
16     kind: ResourceKind.LINK;
17 }
18
19 export enum LinkClass {
20     STAR = 'star',
21     TAG = 'tag',
22     PERMISSION = 'permission',
23     PRESET = 'preset',
24 }