// (C) 2021-2026 GoodData Corporation
import { eventGuard } from "./util.js";
/**
 * Create {@link ICreateAttributeHierarchyRequested} event
 *
 * @internal
 */
export function createAttributeHierarchyRequested(correlationId) {
    return {
        type: "GDC.DASH/EVT.CREATE_ATTRIBUTE_HIERARCHY_REQUESTED",
        correlationId,
    };
}
/**
 * Tests whether the provided object is an instance of {@link ICreateAttributeHierarchyRequested}.
 *
 * @param obj - object to test
 * @internal
 */
export const isCreateAttributeHierarchyRequested = eventGuard("GDC.DASH/EVT.CREATE_ATTRIBUTE_HIERARCHY_REQUESTED");
/**
 * Create {@link IDeleteAttributeHierarchyRequested} event
 *
 * @internal
 */
export function deleteAttributeHierarchyRequested(correlationId) {
    return {
        type: "GDC.DASH/EVT.DELETE_ATTRIBUTE_HIERARCHY_REQUESTED",
        correlationId,
    };
}
/**
 * Tests whether the provided object is an instance of {@link IDeleteAttributeHierarchyRequested}.
 *
 * @param obj - object to test
 * @internal
 */
export const isDeleteAttributeHierarchyRequested = eventGuard("GDC.DASH/EVT.DELETE_ATTRIBUTE_HIERARCHY_REQUESTED");
