@wildix/wda-insights-client > GetProjectionCommand
GetProjectionCommand class
Signature:
export declare class GetProjectionCommand extends GetProjectionCommand_base
Extends: GetProjectionCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { WdaInsightsClient, GetProjectionCommand } from "@wildix/wda-insights-client"; // ES Modules import
// const { WdaInsightsClient, GetProjectionCommand } = require("@wildix/wda-insights-client"); // CommonJS import
const client = new WdaInsightsClient(config);
const input = { // GetProjectionInput
company: "STRING_VALUE",
id: "STRING_VALUE", // required
};
const command = new GetProjectionCommand(input);
const response = await client.send(command);
// { // GetProjectionOutput
// projection: { // Projection
// categoryId: "STRING_VALUE", // required
// name: "STRING_VALUE", // required
// description: "STRING_VALUE",
// instructions: "STRING_VALUE",
// conditions: [ // ProjectionConditionsList
// { // ProjectionCondition Union: only one key present
// direction: { // ProjectionDirectionCondition
// equals: [ // ProjectionDirectionConditionValuesList // required
// "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
// ],
// },
// participants: { // ProjectionParticipantsCondition
// emails: [ // ProjectionParticipantsEmailsList
// "STRING_VALUE",
// ],
// extensions: [ // ProjectionParticipantsExtensionsList
// "STRING_VALUE",
// ],
// groups: [ // ProjectionParticipantsGroupsList
// "STRING_VALUE",
// ],
// },
// duration: { // ProjectionDurationCondition
// minimum: Number("int"), // required
// maximum: Number("int"), // required
// },
// },
// ],
// fields: [ // ProjectionFieldsList // required
// { // ProjectionField
// id: "STRING_VALUE", // required
// name: "STRING_VALUE", // required
// description: "STRING_VALUE",
// optional: true || false,
// parameter: { // ProjectionParameter Union: only one key present
// text: {},
// multiline: {},
// selection: { // ProjectionSelectionParameter
// options: [ // ProjectionSelectionOptionsList // required
// "STRING_VALUE",
// ],
// multi: true || false,
// adaptive: true || false,
// },
// },
// },
// ],
// model: { // ProjectionModel
// provider: "OPENAI",
// name: "STRING_VALUE",
// },
// id: "STRING_VALUE", // required
// status: "ENABLED" || "PAUSED" || "DISABLED", // required
// version: Number("int"), // required
// createdAt: "STRING_VALUE", // required
// updatedAt: "STRING_VALUE",
// metadata: { // ProjectionMetadata
// predefined: true || false,
// },
// },
// };