contentful-migration
Version:
Migration tooling for contentful
15 lines • 512 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ContentTypeCreateAction = void 0;
const action_1 = require("./action");
class ContentTypeCreateAction extends action_1.APIAction {
constructor(contentTypeId) {
super();
this.contentTypeId = contentTypeId;
}
async applyTo(api) {
await api.createContentType(this.contentTypeId);
}
}
exports.ContentTypeCreateAction = ContentTypeCreateAction;
//# sourceMappingURL=content-type-create.js.map