Skip to main content

@wildix/wda-insights-client > UpdateProjectionCommand

UpdateProjectionCommand class

Signature:

export declare class UpdateProjectionCommand extends UpdateProjectionCommand_base 

Extends: UpdateProjectionCommand_base

Example

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

import { WdaInsightsClient, UpdateProjectionCommand } from "@wildix/wda-insights-client"; // ES Modules import
// const { WdaInsightsClient, UpdateProjectionCommand } = require("@wildix/wda-insights-client"); // CommonJS import
const client = new WdaInsightsClient(config);
const input = { // UpdateProjectionInput
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",
},
company: "STRING_VALUE",
id: "STRING_VALUE", // required
};
const command = new UpdateProjectionCommand(input);
const response = await client.send(command);
// { // UpdateProjectionOutput
// 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,
// },
// },
// };