contentful-migration
Version:
Migration tooling for contentful
25 lines • 772 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ResetEditorInterfaceAction = void 0;
const action_1 = require("./action");
class ResetEditorInterfaceAction extends action_1.EntityAction {
constructor(contentTypeId, fieldId) {
super();
this.contentTypeId = contentTypeId;
this.fieldId = fieldId;
}
getEntityType() {
return action_1.EntityType.EditorInterface;
}
getEntityId() {
return this.contentTypeId;
}
getFieldId() {
return this.fieldId;
}
async applyTo(editorInterfaces) {
editorInterfaces.reset(this.getFieldId());
}
}
exports.ResetEditorInterfaceAction = ResetEditorInterfaceAction;
//# sourceMappingURL=editorinterface-reset.js.map