@cognigy/rest-api-client
Version:
Cognigy REST-Client
28 lines • 763 B
JavaScript
import { __awaiter } from "tslib";
/* Custom modules */
import { createNodeDescriptor } from "../../createNodeDescriptor";
export const STOP = createNodeDescriptor({
type: "stop",
defaultLabel: "Stop and Return",
summary: "UI__NODE_EDITOR__STOP__SUMMARY",
behavior: {
stopping: true,
},
appearance: {
showIcon: false,
color: "#cf142b",
textColor: "#ffffff",
variant: "mini"
},
constraints: {
editable: false,
placement: {}
},
tags: ["basic", "logic"],
function: ({ cognigy }) => __awaiter(void 0, void 0, void 0, function* () {
const { api } = cognigy;
api.resetNextNodes();
api.stopExecution();
})
});
//# sourceMappingURL=stop.js.map