@wildix/xbees-users-client > IntelligenceSearchCommand
IntelligenceSearchCommand class
Search user in the directory using AI. Result is sorted by relevance.
Signature:
export declare class IntelligenceSearchCommand extends IntelligenceSearchCommand_base
Extends: IntelligenceSearchCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { UsersClient, IntelligenceSearchCommand } from "@wildix/xbees-users-client"; // ES Modules import
// const { UsersClient, IntelligenceSearchCommand } = require("@wildix/xbees-users-client"); // CommonJS import
const client = new UsersClient(config);
const input = { // IntelligenceSearchInput
company: "STRING_VALUE",
search: "STRING_VALUE", // required
excludeExtension: "STRING_VALUE",
};
const command = new IntelligenceSearchCommand(input);
const response = await client.send(command);
// { // IntelligenceSearchOutput
// items: [ // DirectoryItems // required
// { // DirectoryItem
// extension: "STRING_VALUE", // required
// name: "STRING_VALUE", // required
// department: "STRING_VALUE",
// group: "STRING_VALUE",
// },
// ],
// };