diff --git a/ts/src/dashboard/panel.ts b/ts/src/dashboard/panel.ts index 333229d..287d43d 100644 --- a/ts/src/dashboard/panel.ts +++ b/ts/src/dashboard/panel.ts @@ -37,13 +37,3 @@ export interface PanelSpec { export interface PanelRef { $ref: `#/spec/panels/${string}`; } - -export type PanelGroupId = number; - -/** - * Panel values that can be edited in the panel editor. - */ -export interface PanelEditorValues { - groupId: PanelGroupId; - panelDefinition: PanelDefinition; -} diff --git a/ts/src/schema/panel.ts b/ts/src/schema/panel.ts index c3cf327..94c8e92 100644 --- a/ts/src/schema/panel.ts +++ b/ts/src/schema/panel.ts @@ -12,7 +12,7 @@ // limitations under the License. import { z } from 'zod'; -import { Link, PanelDefinition, PanelDisplay, PanelEditorValues, PanelSpec, QueryDefinition } from '../dashboard'; +import { Link, PanelDefinition, PanelDisplay, PanelSpec, QueryDefinition } from '../dashboard'; import { PluginSchema, pluginSchema } from './plugin'; export const panelDisplaySpec: z.ZodSchema = z.object({ @@ -63,15 +63,3 @@ export function buildPanelDefinitionSchema(pluginSchema: PluginSchema): z.ZodSch spec: buildPanelSpecSchema(pluginSchema), }); } - -export const panelEditorSchema: z.ZodSchema = z.object({ - groupId: z.number(), - panelDefinition: panelDefinitionSchema, -}); - -export function buildPanelEditorSchema(pluginSchema: PluginSchema): z.ZodSchema { - return z.object({ - groupId: z.number(), - panelDefinition: buildPanelDefinitionSchema(pluginSchema), - }); -}