UNPKG

contentful-migration

Version:
25 lines 772 B
"use strict"; 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