contentful-migration
Version:
Migration tooling for contentful
44 lines • 1.54 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const base_intent_1 = __importDefault(require("./base-intent"));
const chalk_1 = __importDefault(require("chalk"));
const editorinterface_save_1 = require("../action/editorinterface-save");
const entryeditor_configure_1 = require("../action/entryeditor-configure");
class EntryEditorConfigureIntent extends base_intent_1.default {
isEditorInterfaceIntent() {
return true;
}
isGroupable() {
return false;
}
groupsWith() {
return false;
}
endsGroup() {
return false;
}
shouldSave() {
return false;
}
shouldPublish() {
return false;
}
toActions() {
return [
new entryeditor_configure_1.EntryEditorConfigureAction(this.payload.contentTypeId, this.payload.entryEditor.widgetNamespace, this.payload.entryEditor.widgetId, this.payload.entryEditor.settings),
new editorinterface_save_1.SaveEditorInterfaceAction(this.payload.contentTypeId)
];
}
toPlanMessage() {
return {
heading: (0, chalk_1.default) `Configure entry editor interface for content type {bold.yellow ${this.getContentTypeId()}}`,
details: [],
sections: []
};
}
}
exports.default = EntryEditorConfigureIntent;
//# sourceMappingURL=entryeditor-configure.js.map