'use strict';

var z = require('zod');
var Validate = require('../../../_dashboards/dashboard-visualisation/Validate.js');
var validate = require('../bar/validate.js');

const lineOptions = z.z.object({
    showLatest: z.z.boolean().default(true),
});
const LineSchema = z.z.object({
    ...Validate.DashboardVisualisationSchema.shape,
    display: z.z.string(),
    type: z.z.literal('line'),
    options: z.z.object(lineOptions.shape).optional(),
    columns: z.z.object({
        ...Validate.DashboardColumns.shape,
        measures: validate.BarMeasuresSchema,
    }),
});
const LineChartSchemas = {
    LineSchema,
};

module.exports = LineChartSchemas;
//# sourceMappingURL=validate.js.map
