"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "CustomGcodeService", {
    enumerable: true,
    get: function() {
        return CustomGcodeService;
    }
});
const _entities = require("../../entities");
const _customgcodedto = require("../interfaces/custom-gcode.dto");
const _baseservice = require("./base.service");
class CustomGcodeService extends (0, _baseservice.BaseService)(_entities.CustomGcode, _customgcodedto.CustomGcodeDto, _customgcodedto.CustomGcodeDto) {
    toDto(entity) {
        return {
            id: entity.id,
            name: entity.name,
            description: entity.description,
            gcode: [
                ...entity.gcode
            ]
        };
    }
    async create(gcodeScript) {
        return await super.create(gcodeScript);
    }
    async delete(gcodeScriptId, throwIfNotFound) {
        return await super.delete(gcodeScriptId, throwIfNotFound);
    }
    async get(gcodeScriptId) {
        return await super.get(gcodeScriptId);
    }
    async list() {
        return await super.list();
    }
    async update(gcodeScriptId, updatedData) {
        return await super.update(gcodeScriptId, updatedData);
    }
}

//# sourceMappingURL=custom-gcode.service.js.map