"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UnknownItemGeneratorTest = void 0;
const ProjectInfoItem_1 = require("./ProjectInfoItem");
const IProjectItemData_1 = require("../app/IProjectItemData");
const IInfoItemData_1 = require("./IInfoItemData");
const ProjectInfoUtilities_1 = require("./ProjectInfoUtilities");
var UnknownItemGeneratorTest;
(function (UnknownItemGeneratorTest) {
    UnknownItemGeneratorTest[UnknownItemGeneratorTest["unknownItemTypeFound"] = 101] = "unknownItemTypeFound";
})(UnknownItemGeneratorTest = exports.UnknownItemGeneratorTest || (exports.UnknownItemGeneratorTest = {}));
class UnknownItemGenerator {
    id = "UNKJSON";
    title = "Unknown JSON";
    canAlwaysProcess = true;
    getTopicData(topicId) {
        return {
            title: ProjectInfoUtilities_1.default.getTitleFromEnum(UnknownItemGeneratorTest, topicId),
        };
    }
    summarize(info, infoSet) { }
    async generate(projectItem, contentIndex) {
        const items = [];
        if (projectItem.itemType === IProjectItemData_1.ProjectItemType.unknownJson) {
            items.push(new ProjectInfoItem_1.default(IInfoItemData_1.InfoItemType.error, this.id, UnknownItemGeneratorTest.unknownItemTypeFound, "Unknown JSON file found", projectItem));
        }
        return items;
    }
}
exports.default = UnknownItemGenerator;

//# sourceMappingURL=../maps/info/UnknownItemGenerator.js.map
