// This file was auto-generated by Fern from our API Definition.

import type * as Vapi from "../index.js";

export interface JsonQueryOnCallTableWithNumberTypeColumn {
    /** This is the type of query. Only allowed type is "vapiql-json". */
    type: Vapi.JsonQueryOnCallTableWithNumberTypeColumnType;
    /** This is the table that will be queried. */
    table: Vapi.JsonQueryOnCallTableWithNumberTypeColumnTable;
    /**
     * This is the filters to apply to the insight.
     * The discriminator automatically selects the correct filter type based on column and operator.
     */
    filters?: Vapi.JsonQueryOnCallTableWithNumberTypeColumnFiltersItem[] | undefined;
    /**
     * This is the column that will be queried in the selected table.
     * Available columns depend on the selected table.
     * Number Type columns are columns where the rows store Number data
     */
    column: Vapi.JsonQueryOnCallTableWithNumberTypeColumnColumn;
    /**
     * This is the aggregation operation to perform on the column.
     * When the column is a number type, the operation must be one of the following:
     * - average
     * - sum
     * - min
     * - max
     */
    operation: Vapi.JsonQueryOnCallTableWithNumberTypeColumnOperation;
    /**
     * This is the name of the query.
     * It will be used to label the query in the insight board on the UI.
     */
    name?: string | undefined;
}
