@cognigy/rest-api-client
Version:
Cognigy REST-Client
16 lines • 823 B
JavaScript
// 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
/**
* type-guard that checks whether a "genesys channel configuration" is a "text configuration"
*/
export const isTextChannelConfiguration = (channelContent) => {
return typeof (channelContent === null || channelContent === void 0 ? void 0 : channelContent.text) === 'string';
};
/**
* type-guard that checks whether a "genesys channel configuration" is a "json configuration"
*/
export const isJsonChannelConfiguration = (channelContent) => {
return !!(channelContent === null || channelContent === void 0 ? void 0 : channelContent.json);
};
//# sourceMappingURL=genesysBotConnector.js.map