import { z } from 'zod';
import DashboardVisualisationSchemas from '../../../../../components/_dashboards/dashboard-visualisation/Validate.js';

const DashboardSectionSchema = z.object({
    id: z.string(),
    display: z.string(),
    description: z.string().optional(),
    visualisations: z.array(DashboardVisualisationSchemas.DashboardVisualisationSchema),
});
const DashboardSchema = z.object({
    id: z.string(),
    name: z.string(),
    description: z.string().optional(),
    sections: z.array(DashboardSectionSchema, {
        error: (issue) => issue.input === undefined
            ? 'Dashboard definition: Sections is required'
            : 'Dashboard definition: Sections must be an array',
    }),
    filterFields: z.array(z.any()).optional(), // TODO
});
var DashboardSchema$1 = { DashboardSchema};

export { DashboardSchema$1 as default };
//# sourceMappingURL=validate.js.map
