contentful-migration
Version:
Migration tooling for contentful
16 lines • 586 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FieldMoveAction = void 0;
const field_action_1 = require("../action/field-action");
class FieldMoveAction extends field_action_1.FieldAction {
constructor(contentTypeId, fieldId, direction, pivot) {
super(contentTypeId, fieldId);
this.direction = direction;
this.pivot = pivot;
}
async applyTo(ct) {
ct.fields.moveField(this.getFieldId(), this.direction, this.pivot);
}
}
exports.FieldMoveAction = FieldMoveAction;
//# sourceMappingURL=field-move.js.map