"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DisplayTypeMapper = void 0;
const InfotextDisplayTypeEnum_1 = require("../../domain/InfotextDisplayTypeEnum");
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
class DisplayTypeMapper {
    /**
     * Map input display type from DB to output display type for API
     *
     * @param input Display type from DB
     * @returns Display type for API
     */
    static mapInputToOutputDisplayType(input) {
        switch (input) {
            case "INLINE":
                return InfotextDisplayTypeEnum_1.InfotextDisplayType.Inline;
            case "GENERAL":
                return InfotextDisplayTypeEnum_1.InfotextDisplayType.General;
            default:
                throw new golemio_errors_1.GeneralError(`Unknown display type: ${input}`);
        }
    }
}
exports.DisplayTypeMapper = DisplayTypeMapper;
//# sourceMappingURL=DisplayTypeMapper.js.map