// (C) 2023-2025 GoodData Corporation
import { isEmpty } from "lodash-es";
export const isWorkspaceItem = (obj) => {
    return !isEmpty(obj) && obj.id !== undefined;
};
export const isDataSourceItem = (obj) => {
    return !isEmpty(obj) && obj.id !== undefined;
};
export const isGrantedUserGroup = (obj) => {
    return !isEmpty(obj) && obj.id !== undefined;
};
export const isUserItem = (obj) => {
    return !isEmpty(obj) && obj.id !== undefined;
};
export const isSelectErrorOption = (obj) => {
    return !isEmpty(obj) && obj.type === "error";
};
//# sourceMappingURL=types.js.map