UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

21 lines 1.1 kB
"use strict"; // generated using https://app.quicktype.io/?l=ts // and the "post utterance response body" schema // https://developer.dev-genesys.cloud/commdigital/textbots/botconnector-customer-api-spec#postutterance-response-schema Object.defineProperty(exports, "__esModule", { value: true }); exports.isJsonChannelConfiguration = exports.isTextChannelConfiguration = void 0; /** * type-guard that checks whether a "genesys channel configuration" is a "text configuration" */ const isTextChannelConfiguration = (channelContent) => { return typeof (channelContent === null || channelContent === void 0 ? void 0 : channelContent.text) === 'string'; }; exports.isTextChannelConfiguration = isTextChannelConfiguration; /** * type-guard that checks whether a "genesys channel configuration" is a "json configuration" */ const isJsonChannelConfiguration = (channelContent) => { return !!(channelContent === null || channelContent === void 0 ? void 0 : channelContent.json); }; exports.isJsonChannelConfiguration = isJsonChannelConfiguration; //# sourceMappingURL=genesysBotConnector.js.map