UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

30 lines 812 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.STOP = void 0; /* Custom modules */ const createNodeDescriptor_1 = require("../../createNodeDescriptor"); exports.STOP = (0, createNodeDescriptor_1.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: async ({ cognigy }) => { const { api } = cognigy; api.resetNextNodes(); api.stopExecution(); } }); //# sourceMappingURL=stop.js.map