"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.migratePipeSpec = exports.migrateActionSpec = exports.pipeRenameMap = exports.actionRenameMap = void 0;
exports.actionRenameMap = {};
exports.pipeRenameMap = {
    'Browser.getBlob': 'Data.getBlob',
    'Flow.computeOutcome': 'Data.computeOutcome',
};
function migrateActionSpec(spec = {}) {
    const renamedType = exports.actionRenameMap[spec.type];
    if (renamedType) {
        spec.type = renamedType;
    }
    return spec;
}
exports.migrateActionSpec = migrateActionSpec;
function migratePipeSpec(spec = {}) {
    const renamedType = exports.pipeRenameMap[spec.type];
    if (renamedType) {
        spec.type = renamedType;
    }
    return spec;
}
exports.migratePipeSpec = migratePipeSpec;
//# sourceMappingURL=migrations.js.map