import { Entity, EntityMeta } from '@backstage/catalog-model'; import { z } from 'zod'; declare enum TableTypes { LINK = "link", OBJECT = "object" } declare const TabularDataFactory: { fromString: (input: string) => TabularData; fromObject: (input: unknown) => TabularData; }; type TabularDataCell = string | { type: TableTypes.LINK; text: string; url: string; } | { type: TableTypes.OBJECT; content: string; }; type TabularDataRow = Record; type TabularData = TabularDataRow[]; /** * @license * Copyright 2024 Dynatrace LLC * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ declare const entityQuerySchema: z.ZodObject<{ id: z.ZodString; query: z.ZodString; description: z.ZodOptional; environments: z.ZodOptional>; }, z.core.$strip>; declare const dynatraceCatalogQuerySchema: z.ZodArray; environments: z.ZodOptional>; }, z.core.$strip>>; type EntityQuery = z.infer; type ExtendedEntityMetadata = EntityMeta & { dynatrace?: { queries: EntityQuery[]; }; }; type ExtendedEntity = Entity & { metadata: ExtendedEntityMetadata; }; export { TableTypes, TabularDataFactory, dynatraceCatalogQuerySchema }; export type { EntityQuery, ExtendedEntity, ExtendedEntityMetadata, TabularData, TabularDataCell, TabularDataRow };