change code after CR - add method to with-resources
[arvados.git] / src / models / search-bar.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { ResourceKind } from '~/models/resource';
6
7 export type SearchBarAdvanceFormData = {
8     type?: ResourceKind;
9     cluster?: ClusterObjectType;
10     projectUuid?: string;
11     inTrash: boolean;
12     dateFrom: string;
13     dateTo: string;
14     saveQuery: boolean;
15     queryName: string;
16     searchValue: string;
17     properties: PropertyValue[];
18 };
19
20 export interface PropertyValue {
21     key: string;
22     value: string;
23 }
24
25 export enum ClusterObjectType {
26     INDIANAPOLIS = "indianapolis",
27     KAISERAUGST = "kaiseraugst",
28     PENZBERG = "penzberg"
29 }