UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

29 lines 832 B
import { __awaiter } from "tslib"; /* Custom modules */ import { createNodeDescriptor } from "../../createNodeDescriptor"; export const SEND_TEXT = createNodeDescriptor({ type: "sendText", defaultLabel: "Send Text", appearance: { showIcon: false }, fields: [ { key: "text", type: "cognigyText", label: "UI__NODE_EDITOR__MESSAGE__SEND_TEXT__FIELDS__TEXT__LABEL", defaultValue: "Hello World!" }, ], preview: { key: "text", type: "text", }, tags: ["basic", "message"], function: ({ cognigy, config }) => __awaiter(void 0, void 0, void 0, function* () { const { text, data } = config; const { api } = cognigy; yield api.say(text, data); }) }); //# sourceMappingURL=sendText.js.map