UNPKG

contentful-migration

Version:
24 lines 883 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EditorLayoutMoveFieldGroupAction = void 0; const action_1 = require("../action"); class EditorLayoutMoveFieldGroupAction extends action_1.EntityAction { constructor(contentTypeId, fieldId, direction, pivot) { super(); this.contentTypeId = contentTypeId; this.fieldId = fieldId, this.direction = direction, this.pivot = pivot; } getEntityType() { return action_1.EntityType.EditorInterface; } getEntityId() { return this.contentTypeId; } async applyTo(editorInterfaces) { await editorInterfaces.moveFieldInEditorLayout(this.fieldId, this.direction, this.pivot); } } exports.EditorLayoutMoveFieldGroupAction = EditorLayoutMoveFieldGroupAction; //# sourceMappingURL=editor-layout-move-field.js.map