X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/cfc5eebd666412870df195559adedeefe4178248..21d7f6cb32902073193db810b4dfad85d9cdff7e:/src/models/search-bar.ts diff --git a/src/models/search-bar.ts b/src/models/search-bar.ts index c118fd57..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 { - propertyKey: string; - propertyValue: string; +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