Skip to content

Commit

Permalink
feat(client-connect): Amazon Connect adds the ability to read, create…
Browse files Browse the repository at this point in the history
…, update, delete, and list view resources, and adds the ability to read, create, delete, and list view versions.
  • Loading branch information
awstools committed Sep 1, 2023
1 parent 736212e commit 82dc9dc
Show file tree
Hide file tree
Showing 57 changed files with 9,115 additions and 4,123 deletions.
72 changes: 72 additions & 0 deletions clients/client-connect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,22 @@ CreateUserHierarchyGroup

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/createuserhierarchygroupcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/createuserhierarchygroupcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/createuserhierarchygroupcommandoutput.html)

</details>
<details>
<summary>
CreateView
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/createviewcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/createviewcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/createviewcommandoutput.html)

</details>
<details>
<summary>
CreateViewVersion
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/createviewversioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/createviewversioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/createviewversioncommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -628,6 +644,22 @@ DeleteUserHierarchyGroup

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/deleteuserhierarchygroupcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/deleteuserhierarchygroupcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/deleteuserhierarchygroupcommandoutput.html)

</details>
<details>
<summary>
DeleteView
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/deleteviewcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/deleteviewcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/deleteviewcommandoutput.html)

</details>
<details>
<summary>
DeleteViewVersion
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/deleteviewversioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/deleteviewversioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/deleteviewversioncommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -804,6 +836,14 @@ DescribeUserHierarchyStructure

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/describeuserhierarchystructurecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/describeuserhierarchystructurecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/describeuserhierarchystructurecommandoutput.html)

</details>
<details>
<summary>
DescribeView
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/describeviewcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/describeviewcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/describeviewcommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -1260,6 +1300,22 @@ ListUsers

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/listuserscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/listuserscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/listuserscommandoutput.html)

</details>
<details>
<summary>
ListViews
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/listviewscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/listviewscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/listviewscommandoutput.html)

</details>
<details>
<summary>
ListViewVersions
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/listviewversionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/listviewversionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/listviewversionscommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -1813,3 +1869,19 @@ UpdateUserSecurityProfiles
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/updateusersecurityprofilescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/updateusersecurityprofilescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/updateusersecurityprofilescommandoutput.html)

</details>
<details>
<summary>
UpdateViewContent
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/updateviewcontentcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/updateviewcontentcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/updateviewcontentcommandoutput.html)

</details>
<details>
<summary>
UpdateViewMetadata
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/updateviewmetadatacommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/updateviewmetadatacommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/updateviewmetadatacommandoutput.html)

</details>
171 changes: 171 additions & 0 deletions clients/client-connect/src/Connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ import {
CreateUserHierarchyGroupCommandInput,
CreateUserHierarchyGroupCommandOutput,
} from "./commands/CreateUserHierarchyGroupCommand";
import { CreateViewCommand, CreateViewCommandInput, CreateViewCommandOutput } from "./commands/CreateViewCommand";
import {
CreateViewVersionCommand,
CreateViewVersionCommandInput,
CreateViewVersionCommandOutput,
} from "./commands/CreateViewVersionCommand";
import {
CreateVocabularyCommand,
CreateVocabularyCommandInput,
Expand Down Expand Up @@ -238,6 +244,12 @@ import {
DeleteUserHierarchyGroupCommandInput,
DeleteUserHierarchyGroupCommandOutput,
} from "./commands/DeleteUserHierarchyGroupCommand";
import { DeleteViewCommand, DeleteViewCommandInput, DeleteViewCommandOutput } from "./commands/DeleteViewCommand";
import {
DeleteViewVersionCommand,
DeleteViewVersionCommandInput,
DeleteViewVersionCommandOutput,
} from "./commands/DeleteViewVersionCommand";
import {
DeleteVocabularyCommand,
DeleteVocabularyCommandInput,
Expand Down Expand Up @@ -348,6 +360,11 @@ import {
DescribeUserHierarchyStructureCommandInput,
DescribeUserHierarchyStructureCommandOutput,
} from "./commands/DescribeUserHierarchyStructureCommand";
import {
DescribeViewCommand,
DescribeViewCommandInput,
DescribeViewCommandOutput,
} from "./commands/DescribeViewCommand";
import {
DescribeVocabularyCommand,
DescribeVocabularyCommandInput,
Expand Down Expand Up @@ -609,6 +626,12 @@ import {
ListUserHierarchyGroupsCommandOutput,
} from "./commands/ListUserHierarchyGroupsCommand";
import { ListUsersCommand, ListUsersCommandInput, ListUsersCommandOutput } from "./commands/ListUsersCommand";
import { ListViewsCommand, ListViewsCommandInput, ListViewsCommandOutput } from "./commands/ListViewsCommand";
import {
ListViewVersionsCommand,
ListViewVersionsCommandInput,
ListViewVersionsCommandOutput,
} from "./commands/ListViewVersionsCommand";
import {
MonitorContactCommand,
MonitorContactCommandInput,
Expand Down Expand Up @@ -938,6 +961,16 @@ import {
UpdateUserSecurityProfilesCommandInput,
UpdateUserSecurityProfilesCommandOutput,
} from "./commands/UpdateUserSecurityProfilesCommand";
import {
UpdateViewContentCommand,
UpdateViewContentCommandInput,
UpdateViewContentCommandOutput,
} from "./commands/UpdateViewContentCommand";
import {
UpdateViewMetadataCommand,
UpdateViewMetadataCommandInput,
UpdateViewMetadataCommandOutput,
} from "./commands/UpdateViewMetadataCommand";
import { ConnectClient, ConnectClientConfig } from "./ConnectClient";

const commands = {
Expand Down Expand Up @@ -973,6 +1006,8 @@ const commands = {
CreateUseCaseCommand,
CreateUserCommand,
CreateUserHierarchyGroupCommand,
CreateViewCommand,
CreateViewVersionCommand,
CreateVocabularyCommand,
DeactivateEvaluationFormCommand,
DeleteContactEvaluationCommand,
Expand All @@ -993,6 +1028,8 @@ const commands = {
DeleteUseCaseCommand,
DeleteUserCommand,
DeleteUserHierarchyGroupCommand,
DeleteViewCommand,
DeleteViewVersionCommand,
DeleteVocabularyCommand,
DescribeAgentStatusCommand,
DescribeContactCommand,
Expand All @@ -1015,6 +1052,7 @@ const commands = {
DescribeUserCommand,
DescribeUserHierarchyGroupCommand,
DescribeUserHierarchyStructureCommand,
DescribeViewCommand,
DescribeVocabularyCommand,
DisassociateApprovedOriginCommand,
DisassociateBotCommand,
Expand Down Expand Up @@ -1072,6 +1110,8 @@ const commands = {
ListUseCasesCommand,
ListUserHierarchyGroupsCommand,
ListUsersCommand,
ListViewsCommand,
ListViewVersionsCommand,
MonitorContactCommand,
PutUserStatusCommand,
ReleasePhoneNumberCommand,
Expand Down Expand Up @@ -1141,6 +1181,8 @@ const commands = {
UpdateUserPhoneConfigCommand,
UpdateUserRoutingProfileCommand,
UpdateUserSecurityProfilesCommand,
UpdateViewContentCommand,
UpdateViewMetadataCommand,
};

export interface Connect {
Expand Down Expand Up @@ -1646,6 +1688,34 @@ export interface Connect {
cb: (err: any, data?: CreateUserHierarchyGroupCommandOutput) => void
): void;

/**
* @see {@link CreateViewCommand}
*/
createView(args: CreateViewCommandInput, options?: __HttpHandlerOptions): Promise<CreateViewCommandOutput>;
createView(args: CreateViewCommandInput, cb: (err: any, data?: CreateViewCommandOutput) => void): void;
createView(
args: CreateViewCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateViewCommandOutput) => void
): void;

/**
* @see {@link CreateViewVersionCommand}
*/
createViewVersion(
args: CreateViewVersionCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateViewVersionCommandOutput>;
createViewVersion(
args: CreateViewVersionCommandInput,
cb: (err: any, data?: CreateViewVersionCommandOutput) => void
): void;
createViewVersion(
args: CreateViewVersionCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateViewVersionCommandOutput) => void
): void;

/**
* @see {@link CreateVocabularyCommand}
*/
Expand Down Expand Up @@ -1953,6 +2023,34 @@ export interface Connect {
cb: (err: any, data?: DeleteUserHierarchyGroupCommandOutput) => void
): void;

/**
* @see {@link DeleteViewCommand}
*/
deleteView(args: DeleteViewCommandInput, options?: __HttpHandlerOptions): Promise<DeleteViewCommandOutput>;
deleteView(args: DeleteViewCommandInput, cb: (err: any, data?: DeleteViewCommandOutput) => void): void;
deleteView(
args: DeleteViewCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteViewCommandOutput) => void
): void;

/**
* @see {@link DeleteViewVersionCommand}
*/
deleteViewVersion(
args: DeleteViewVersionCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteViewVersionCommandOutput>;
deleteViewVersion(
args: DeleteViewVersionCommandInput,
cb: (err: any, data?: DeleteViewVersionCommandOutput) => void
): void;
deleteViewVersion(
args: DeleteViewVersionCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteViewVersionCommandOutput) => void
): void;

/**
* @see {@link DeleteVocabularyCommand}
*/
Expand Down Expand Up @@ -2303,6 +2401,17 @@ export interface Connect {
cb: (err: any, data?: DescribeUserHierarchyStructureCommandOutput) => void
): void;

/**
* @see {@link DescribeViewCommand}
*/
describeView(args: DescribeViewCommandInput, options?: __HttpHandlerOptions): Promise<DescribeViewCommandOutput>;
describeView(args: DescribeViewCommandInput, cb: (err: any, data?: DescribeViewCommandOutput) => void): void;
describeView(
args: DescribeViewCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeViewCommandOutput) => void
): void;

/**
* @see {@link DescribeVocabularyCommand}
*/
Expand Down Expand Up @@ -3203,6 +3312,34 @@ export interface Connect {
cb: (err: any, data?: ListUsersCommandOutput) => void
): void;

/**
* @see {@link ListViewsCommand}
*/
listViews(args: ListViewsCommandInput, options?: __HttpHandlerOptions): Promise<ListViewsCommandOutput>;
listViews(args: ListViewsCommandInput, cb: (err: any, data?: ListViewsCommandOutput) => void): void;
listViews(
args: ListViewsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListViewsCommandOutput) => void
): void;

/**
* @see {@link ListViewVersionsCommand}
*/
listViewVersions(
args: ListViewVersionsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListViewVersionsCommandOutput>;
listViewVersions(
args: ListViewVersionsCommandInput,
cb: (err: any, data?: ListViewVersionsCommandOutput) => void
): void;
listViewVersions(
args: ListViewVersionsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListViewVersionsCommandOutput) => void
): void;

/**
* @see {@link MonitorContactCommand}
*/
Expand Down Expand Up @@ -4306,6 +4443,40 @@ export interface Connect {
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateUserSecurityProfilesCommandOutput) => void
): void;

/**
* @see {@link UpdateViewContentCommand}
*/
updateViewContent(
args: UpdateViewContentCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateViewContentCommandOutput>;
updateViewContent(
args: UpdateViewContentCommandInput,
cb: (err: any, data?: UpdateViewContentCommandOutput) => void
): void;
updateViewContent(
args: UpdateViewContentCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateViewContentCommandOutput) => void
): void;

/**
* @see {@link UpdateViewMetadataCommand}
*/
updateViewMetadata(
args: UpdateViewMetadataCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateViewMetadataCommandOutput>;
updateViewMetadata(
args: UpdateViewMetadataCommandInput,
cb: (err: any, data?: UpdateViewMetadataCommandOutput) => void
): void;
updateViewMetadata(
args: UpdateViewMetadataCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateViewMetadataCommandOutput) => void
): void;
}

/**
Expand Down
Loading

0 comments on commit 82dc9dc

Please sign in to comment.