16583: Add "Intermediate" to collection type filters
[arvados-workbench2.git] / src / models / search-bar.ts
index c118fd5712addf7e8d970f1bb60a870745e32caf..b404496f9381c0d76ac0ea2c16f6d09bf378795c 100644 (file)
@@ -2,27 +2,25 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import { ResourceKind } from '~/models/resource';
+import { ResourceKind } from 'models/resource';
 
-export type SearchBarAdvanceFormData = {
+export type SearchBarAdvancedFormData = {
     type?: ResourceKind;
-    cluster?: ClusterObjectType;
+    cluster?: string;
     projectUuid?: string;
     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