// (C) 2024-2026 GoodData Corporation
/**
 * Creates the AddVisualizationToSwitcherWidgetContent command. Dispatching this command will result in addition of visualization to switcher widget.
 *
 * @param ref - reference of the visualization switcher widget to modify
 * @param visualization - visualization to add
 * @param insight -
 * @param sizeInfo -
 * @param correlationId - specify correlation id to use for this command. this will be included in all
 *  events that will be emitted during the command processing
 *
 * @beta
 */
export function addVisualizationToSwitcherWidgetContent(ref, visualization, insight, sizeInfo, correlationId) {
    return {
        type: "GDC.DASH/CMD.VISUALIZATION_SWITCHER_WIDGET.ADD_VISUALIZATION",
        correlationId,
        payload: {
            ref,
            visualization,
            insight,
            sizeInfo,
        },
    };
}
/**
 * Creates the ChangeVisualizationsFromVisualizationSwitcherWidgetContent command. Dispatching this command will result in the update of visualization
 * which form part of the visualization switcher widget.
 *
 * @param ref - reference of the visualization switcher widget to modify
 * @param visualizations - changed visualizations to remove
 * @param correlationId - specify correlation id to use for this command. this will be included in all
 *  events that will be emitted during the command processing
 *
 * @beta
 */
export function updateVisualizationsFromSwitcherWidgetContent(ref, visualizations, correlationId) {
    return {
        type: "GDC.DASH/CMD.VISUALIZATION_SWITCHER_WIDGET.UPDATE_VISUALIZATIONS",
        correlationId,
        payload: {
            ref,
            visualizations,
        },
    };
}
