"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ig_utilities_1 = require("@intelligentgraphics/ig.utilities");
var igd_core_1 = require("@intelligentgraphics/igd.core");
function getItemId(item) {
    return item.ID;
}
exports.getItemId = getItemId;
exports.isFolderLike = ig_utilities_1.is(function (item) {
    return item &&
        (item.Type === igd_core_1.IGXA.EItemType.Folder ||
            item.Type === igd_core_1.IGXA.EItemType.MultiArticle);
});
exports.isArticleLike = ig_utilities_1.is(function (item) {
    return item &&
        (item.Type === igd_core_1.IGXA.EItemType.ArticleCom ||
            item.Type === igd_core_1.IGXA.EItemType.ArticleGfx);
});
exports.isSetLike = ig_utilities_1.is(function (item) { return item && item.Type === igd_core_1.IGXA.EItemType.Set; });
