UNPKG

contentful-migration

Version:
22 lines 668 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ContentTypeUpdateAction = void 0; const action_1 = require("./action"); class ContentTypeUpdateAction extends action_1.EntityAction { constructor(contentTypeId, props) { super(); this.props = props; this.contentTypeId = contentTypeId; } getEntityId() { return this.contentTypeId; } getEntityType() { return action_1.EntityType.ContentType; } async applyTo(ct) { Object.assign(ct, this.props); } } exports.ContentTypeUpdateAction = ContentTypeUpdateAction; //# sourceMappingURL=content-type-update.js.map