"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RopidGTFSOisMappingTransformation = void 0;
const transformations_1 = require("@golemio/core/dist/integration-engine/transformations");
const ropid_gtfs_1 = require("../../../schema-definitions/ropid-gtfs");
class RopidGTFSOisMappingTransformation extends transformations_1.BaseTransformation {
    constructor() {
        super();
        /**
         * Overrides BaseTransformation::transform
         */
        this.transform = async ({ data }) => {
            const promises = data.map((element) => {
                return this.transformElement(element);
            });
            return await Promise.all(promises);
        };
        this.transformElement = (element) => {
            return {
                ois: element.ois,
                node: element.node,
                name: element.name,
            };
        };
        this.name = ropid_gtfs_1.RopidGTFS.ois.name;
    }
}
exports.RopidGTFSOisMappingTransformation = RopidGTFSOisMappingTransformation;
//# sourceMappingURL=RopidGTFSOisTransformation.js.map