UNPKG

@makingchatbots/genesys-cloud-chatbot-tester-cli

Version:

[![npm](https://img.shields.io/npm/v/@makingchatbots/genesys-cloud-chatbot-tester-cli)](https://www.npmjs.com/package/@makingchatbots/genesys-cloud-chatbot-tester-cli) [![Follow me on LinkedIn for updates](https://img.shields.io/badge/Follow%20for%20updat

27 lines (26 loc) 1.64 kB
import { TestScriptScenario } from './testScript/parseTestScript'; import { TranscribedMessage } from '@makingchatbots/genesys-cloud-chatbot-tester'; import { ValidationError } from 'joi'; import { ScenarioError, ScenarioSuccess } from './ScenarioResult'; import { PreflightError } from '../../genesysPlatform/messageIdToConversationIdFactory'; export declare class Ui { /** * Given the extensive use of Chalk in here, this utility method makes it clear * that trailing newlines are safer encoded outside the Chalk string. * * @see https://github.com/makingchatbots/genesys-cloud-chatbot-tester/issues/20#issuecomment-1246630078 */ private static trailingNewline; errorReadingTestScriptFile(error: Error): string; titleOfTask(scenario: Pick<TestScriptScenario, 'name'>, isRetryDueToUnorderedMsgFailure?: boolean): string; titleOfFinishedTask(scenario: Pick<TestScriptScenario, 'name'>, hasPassed: boolean): string; messageTranscribed(event: TranscribedMessage): string; retryingTestDueToFailureLikelyByUnorderedMessage(): string; firstLineOfMessageTranscribed(event: TranscribedMessage): string; validatingTestScriptFailed(error: ValidationError | undefined): string; validatingSessionConfigFailed(error: ValidationError | undefined): string; preflightCheckOfAssociateConvoIdFailed(error: PreflightError): string; validatingAssociateConvoIdEnvValidationFailed(error: ValidationError | undefined): string; scenarioTestResult(result: ScenarioError | ScenarioSuccess): Promise<string>; testScriptSummary(results: (ScenarioSuccess | ScenarioError)[]): string; }