'use strict';

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

const ListOptions = z.z.object({
    showLatest: z.z.boolean().default(true),
    columnsAsList: z.z.boolean().optional(),
});
const ListSchema = z.z.object({
    ...Validate.DashboardVisualisationSchema.shape,
    type: z.z.literal('list'),
    options: z.z.object(ListOptions.shape).optional(),
    columns: z.z.object({
        ...Validate.DashboardColumns.shape,
    }),
});
const ListSchemas = {
    ListSchema};

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