Skip to main content

@wildix/wda-insights-client > GetCallInsightsCommand

GetCallInsightsCommand class

Signature:

export declare class GetCallInsightsCommand extends GetCallInsightsCommand_base 

Extends: GetCallInsightsCommand_base

Example

Use a bare-bones client and the command you need to make an API call.

import { WdaInsightsClient, GetCallInsightsCommand } from "@wildix/wda-insights-client"; // ES Modules import
// const { WdaInsightsClient, GetCallInsightsCommand } = require("@wildix/wda-insights-client"); // CommonJS import
const client = new WdaInsightsClient(config);
const input = { // GetCallInsightsInput
company: "STRING_VALUE",
callId: "STRING_VALUE", // required
flowIndex: Number("int"), // required
};
const command = new GetCallInsightsCommand(input);
const response = await client.send(command);
// { // GetCallInsightsOutput
// status: "NONE" || "UNAVAILABLE" || "SCHEDULED" || "STARTED" || "SUCCEEDED" || "FAILED", // required
// insights: [ // ProjectionInsightsList
// { // ProjectionInsights
// id: "STRING_VALUE", // required
// version: Number("int"), // required
// name: "STRING_VALUE", // required
// status: "NONE" || "UNAVAILABLE" || "SCHEDULED" || "STARTED" || "SUCCEEDED" || "FAILED", // required
// reason: "TRANSCRIPTION_TOO_SMALL" || "CONDITIONS_NOT_MATCH" || "INTERNAL_ERROR",
// fields: [ // ProjectionInsightsFieldsList // required
// { // ProjectionInsightsField
// id: "STRING_VALUE", // required
// name: "STRING_VALUE", // required
// value: "DOCUMENT_VALUE", // required
// },
// ],
// },
// ],
// };