'use strict';

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

const LineTimeseriesMeasureSchema = z.z.object({
    id: z.z.string(),
    display: z.z.string().optional(),
    unit: z.z.enum(Validate.UnitType).optional(),
});
const LineTimeseriesOptions = z.z.object({
    showLatest: z.z.literal(false),
});
const LineTimeseriesSchema = z.z.object({
    ...Validate.DashboardVisualisationSchema.shape,
    display: z.z.string(),
    type: z.z.literal('line-timeseries'),
    options: z.z.object(LineTimeseriesOptions.shape).optional(),
    columns: z.z.object({
        ...Validate.DashboardColumns.shape,
        measures: z.z.array(LineTimeseriesMeasureSchema).min(1, 'Measure must contain at least one item'),
    }),
});
const LineTimeseriesChartSchemas = {
    LineTimeseriesSchema,
};

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