"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getGroupByDimensions = void 0;
const types_1 = require("../../../types");
const getGroupByDimensions = (args) => {
    switch (args.type) {
        case types_1.AiResultType.QUERY_RESULT:
            return args.vizTool?.chartConfig?.groupBy ?? undefined;
        case types_1.AiResultType.VERTICAL_BAR_RESULT:
        case types_1.AiResultType.TIME_SERIES_RESULT:
            return args.vizTool?.vizConfig.breakdownByDimension
                ? [args.vizTool.vizConfig.breakdownByDimension]
                : undefined;
        default:
            return undefined;
    }
};
exports.getGroupByDimensions = getGroupByDimensions;
//# sourceMappingURL=getGroupByDimensions.js.map