contentful-migration
Version:
Migration tooling for contentful
22 lines • 757 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EditorLayoutCreateFieldAction = void 0;
const action_1 = require("../action");
class EditorLayoutCreateFieldAction extends action_1.EntityAction {
constructor(contentTypeId, fieldId) {
super();
this.contentTypeId = contentTypeId;
this.fieldId = fieldId;
}
getEntityType() {
return action_1.EntityType.EditorInterface;
}
getEntityId() {
return this.contentTypeId;
}
async applyTo(editorInterfaces) {
await editorInterfaces.createFieldInEditorLayout(this.fieldId);
}
}
exports.EditorLayoutCreateFieldAction = EditorLayoutCreateFieldAction;
//# sourceMappingURL=editor-layout-create-field.js.map