Skip to content

Commit

Permalink
feat(client-connect): Amazon Connect expands search API coverage for …
Browse files Browse the repository at this point in the history
…additional resources. Search for hierarchy groups by name, ID, tag, or other criteria (new endpoint). Search for agent statuses by name, ID, tag, or other criteria (new endpoint). Search for users by their assigned proficiencies (enhanced endpoint)
  • Loading branch information
awstools committed Jul 18, 2024
1 parent 207cd84 commit 226e9c6
Show file tree
Hide file tree
Showing 20 changed files with 2,046 additions and 406 deletions.
19 changes: 17 additions & 2 deletions clients/client-connect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ AWS SDK for JavaScript Connect Client for Node.js, Browser and React Native.
<ul>
<li>
<p>
<a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Service.html">Amazon Connect
actions</a>
<a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Service.html">Amazon Connect actions</a>
</p>
</li>
<li>
Expand Down Expand Up @@ -1610,6 +1609,14 @@ ResumeContactRecording

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/ResumeContactRecordingCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/ResumeContactRecordingCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/ResumeContactRecordingCommandOutput/)

</details>
<details>
<summary>
SearchAgentStatuses
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/SearchAgentStatusesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchAgentStatusesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchAgentStatusesCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -1706,6 +1713,14 @@ SearchSecurityProfiles

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/SearchSecurityProfilesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchSecurityProfilesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchSecurityProfilesCommandOutput/)

</details>
<details>
<summary>
SearchUserHierarchyGroups
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/SearchUserHierarchyGroupsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchUserHierarchyGroupsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchUserHierarchyGroupsCommandOutput/)

</details>
<details>
<summary>
Expand Down
51 changes: 48 additions & 3 deletions clients/client-connect/src/Connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,11 @@ import {
ResumeContactRecordingCommandInput,
ResumeContactRecordingCommandOutput,
} from "./commands/ResumeContactRecordingCommand";
import {
SearchAgentStatusesCommand,
SearchAgentStatusesCommandInput,
SearchAgentStatusesCommandOutput,
} from "./commands/SearchAgentStatusesCommand";
import {
SearchAvailablePhoneNumbersCommand,
SearchAvailablePhoneNumbersCommandInput,
Expand Down Expand Up @@ -867,6 +872,11 @@ import {
SearchSecurityProfilesCommandInput,
SearchSecurityProfilesCommandOutput,
} from "./commands/SearchSecurityProfilesCommand";
import {
SearchUserHierarchyGroupsCommand,
SearchUserHierarchyGroupsCommandInput,
SearchUserHierarchyGroupsCommandOutput,
} from "./commands/SearchUserHierarchyGroupsCommand";
import { SearchUsersCommand, SearchUsersCommandInput, SearchUsersCommandOutput } from "./commands/SearchUsersCommand";
import {
SearchVocabulariesCommand,
Expand Down Expand Up @@ -1363,6 +1373,7 @@ const commands = {
ReplicateInstanceCommand,
ResumeContactCommand,
ResumeContactRecordingCommand,
SearchAgentStatusesCommand,
SearchAvailablePhoneNumbersCommand,
SearchContactFlowModulesCommand,
SearchContactFlowsCommand,
Expand All @@ -1375,6 +1386,7 @@ const commands = {
SearchResourceTagsCommand,
SearchRoutingProfilesCommand,
SearchSecurityProfilesCommand,
SearchUserHierarchyGroupsCommand,
SearchUsersCommand,
SearchVocabulariesCommand,
SendChatIntegrationEventCommand,
Expand Down Expand Up @@ -4165,6 +4177,23 @@ export interface Connect {
cb: (err: any, data?: ResumeContactRecordingCommandOutput) => void
): void;

/**
* @see {@link SearchAgentStatusesCommand}
*/
searchAgentStatuses(
args: SearchAgentStatusesCommandInput,
options?: __HttpHandlerOptions
): Promise<SearchAgentStatusesCommandOutput>;
searchAgentStatuses(
args: SearchAgentStatusesCommandInput,
cb: (err: any, data?: SearchAgentStatusesCommandOutput) => void
): void;
searchAgentStatuses(
args: SearchAgentStatusesCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: SearchAgentStatusesCommandOutput) => void
): void;

/**
* @see {@link SearchAvailablePhoneNumbersCommand}
*/
Expand Down Expand Up @@ -4354,6 +4383,23 @@ export interface Connect {
cb: (err: any, data?: SearchSecurityProfilesCommandOutput) => void
): void;

/**
* @see {@link SearchUserHierarchyGroupsCommand}
*/
searchUserHierarchyGroups(
args: SearchUserHierarchyGroupsCommandInput,
options?: __HttpHandlerOptions
): Promise<SearchUserHierarchyGroupsCommandOutput>;
searchUserHierarchyGroups(
args: SearchUserHierarchyGroupsCommandInput,
cb: (err: any, data?: SearchUserHierarchyGroupsCommandOutput) => void
): void;
searchUserHierarchyGroups(
args: SearchUserHierarchyGroupsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: SearchUserHierarchyGroupsCommandOutput) => void
): void;

/**
* @see {@link SearchUsersCommand}
*/
Expand Down Expand Up @@ -5455,14 +5501,13 @@ export interface Connect {
* <ul>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Service.html">Amazon Connect
* actions</a>
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Service.html">Amazon Connect actions</a>
* </p>
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Types_Amazon_Connect_Service.html">Amazon Connect
* data types</a>
* data types</a>
* </p>
* </li>
* </ul>
Expand Down
17 changes: 14 additions & 3 deletions clients/client-connect/src/ConnectClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,10 @@ import {
ResumeContactRecordingCommandInput,
ResumeContactRecordingCommandOutput,
} from "./commands/ResumeContactRecordingCommand";
import {
SearchAgentStatusesCommandInput,
SearchAgentStatusesCommandOutput,
} from "./commands/SearchAgentStatusesCommand";
import {
SearchAvailablePhoneNumbersCommandInput,
SearchAvailablePhoneNumbersCommandOutput,
Expand Down Expand Up @@ -550,6 +554,10 @@ import {
SearchSecurityProfilesCommandInput,
SearchSecurityProfilesCommandOutput,
} from "./commands/SearchSecurityProfilesCommand";
import {
SearchUserHierarchyGroupsCommandInput,
SearchUserHierarchyGroupsCommandOutput,
} from "./commands/SearchUserHierarchyGroupsCommand";
import { SearchUsersCommandInput, SearchUsersCommandOutput } from "./commands/SearchUsersCommand";
import { SearchVocabulariesCommandInput, SearchVocabulariesCommandOutput } from "./commands/SearchVocabulariesCommand";
import {
Expand Down Expand Up @@ -947,6 +955,7 @@ export type ServiceInputTypes =
| ReplicateInstanceCommandInput
| ResumeContactCommandInput
| ResumeContactRecordingCommandInput
| SearchAgentStatusesCommandInput
| SearchAvailablePhoneNumbersCommandInput
| SearchContactFlowModulesCommandInput
| SearchContactFlowsCommandInput
Expand All @@ -959,6 +968,7 @@ export type ServiceInputTypes =
| SearchResourceTagsCommandInput
| SearchRoutingProfilesCommandInput
| SearchSecurityProfilesCommandInput
| SearchUserHierarchyGroupsCommandInput
| SearchUsersCommandInput
| SearchVocabulariesCommandInput
| SendChatIntegrationEventCommandInput
Expand Down Expand Up @@ -1205,6 +1215,7 @@ export type ServiceOutputTypes =
| ReplicateInstanceCommandOutput
| ResumeContactCommandOutput
| ResumeContactRecordingCommandOutput
| SearchAgentStatusesCommandOutput
| SearchAvailablePhoneNumbersCommandOutput
| SearchContactFlowModulesCommandOutput
| SearchContactFlowsCommandOutput
Expand All @@ -1217,6 +1228,7 @@ export type ServiceOutputTypes =
| SearchResourceTagsCommandOutput
| SearchRoutingProfilesCommandOutput
| SearchSecurityProfilesCommandOutput
| SearchUserHierarchyGroupsCommandOutput
| SearchUsersCommandOutput
| SearchVocabulariesCommandOutput
| SendChatIntegrationEventCommandOutput
Expand Down Expand Up @@ -1461,14 +1473,13 @@ export interface ConnectClientResolvedConfig extends ConnectClientResolvedConfig
* <ul>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Service.html">Amazon Connect
* actions</a>
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Service.html">Amazon Connect actions</a>
* </p>
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Types_Amazon_Connect_Service.html">Amazon Connect
* data types</a>
* data types</a>
* </p>
* </li>
* </ul>
Expand Down
2 changes: 1 addition & 1 deletion clients/client-connect/src/auth/httpAuthSchemeProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function createAwsAuthSigv4HttpAuthOption(authParameters: ConnectHttpAuthSchemeP
name: "connect",
region: authParameters.region,
},
propertiesExtractor: (config: ConnectClientConfig, context) => ({
propertiesExtractor: (config: Partial<ConnectClientConfig>, context) => ({
/**
* @internal
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { DescribeContactEvaluationRequest } from "../models/models_0";
import { DescribeContactEvaluationRequest } from "../models/models_1";
import { DescribeContactEvaluationResponse } from "../models/models_2";
import { de_DescribeContactEvaluationCommand, se_DescribeContactEvaluationCommand } from "../protocols/Aws_restJson1";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { commonParams } from "../endpoint/EndpointParameters";
import {
ListTrafficDistributionGroupUsersRequest,
ListTrafficDistributionGroupUsersResponse,
} from "../models/models_1";
} from "../models/models_2";
import {
de_ListTrafficDistributionGroupUsersCommand,
se_ListTrafficDistributionGroupUsersCommand,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-connect/src/commands/ListUseCasesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { ListUseCasesRequest, ListUseCasesResponse } from "../models/models_1";
import { ListUseCasesRequest, ListUseCasesResponse } from "../models/models_2";
import { de_ListUseCasesCommand, se_ListUseCasesCommand } from "../protocols/Aws_restJson1";

/**
Expand Down
Loading

0 comments on commit 226e9c6

Please sign in to comment.