UNPKG

contentful-migration

Version:
25 lines 915 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SaveEditorInterfaceAction = void 0; const action_1 = require("./action"); class SaveEditorInterfaceAction extends action_1.APIAction { constructor(contentTypeId) { super(); this.contentTypeId = contentTypeId; } async applyTo(api) { try { await api.saveEditorInterfaces(this.contentTypeId); } catch (_a) { // TODO: Maybe a better handling // What the heck are you doing? // When fetching the editor interfaces // the offline API will always create an editor interface // for the content type if it does not exist. // So we shouldn't throw at the first place maybe ? } } } exports.SaveEditorInterfaceAction = SaveEditorInterfaceAction; //# sourceMappingURL=editorinterface-save.js.map