import { ResourceKind } from '~/models/resource';
-export type SearchBarAdvanceFormData = {
+export type SearchBarAdvancedFormData = {
type?: ResourceKind;
- cluster?: ClusterObjectType;
+ cluster?: string;
projectUuid?: string;
inTrash: boolean;
dateFrom: string;
saveQuery: boolean;
queryName: string;
searchValue: string;
- properties: PropertyValues[];
+ 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"
-}
-
-export const getClusterObjectType = (cluster?: string) => {
- switch (cluster) {
- case "indianapolis":
- return ClusterObjectType.INDIANAPOLIS;
- case "kaiseraugst":
- return ClusterObjectType.KAISERAUGST;
- case "penzberg":
- return ClusterObjectType.PENZBERG;
- default:
- return undefined;
- }
-};