X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/54e859c204c3952a8eaf96d2145dfa96c199b934..21d7f6cb32902073193db810b4dfad85d9cdff7e:/src/models/search-bar.ts diff --git a/src/models/search-bar.ts b/src/models/search-bar.ts index 4df5c38f..f9320a26 100644 --- a/src/models/search-bar.ts +++ b/src/models/search-bar.ts @@ -2,27 +2,27 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { ResourceKind } from '~/models/resource'; +import { ResourceKind } from 'models/resource'; +import { GroupResource } from './group'; -export type SearchBarAdvanceFormData = { +export type SearchBarAdvancedFormData = { type?: ResourceKind; - cluster?: ClusterObjectType; + cluster?: string; projectUuid?: string; + projectObject?: GroupResource; inTrash: boolean; + pastVersions: boolean; dateFrom: string; dateTo: string; saveQuery: boolean; - searchQuery: string; - properties: PropertyValues[]; -} & PropertyValues; + queryName: string; + searchValue: string; + properties: PropertyValue[]; +}; -export interface PropertyValues { +export interface PropertyValue { key: string; + keyID?: string; value: string; + valueID?: string; } - -export enum ClusterObjectType { - INDIANAPOLIS = "indianapolis", - KAISERAUGST = "kaiseraugst", - PENZBERG = "penzberg" -} \ No newline at end of file