@aws-sdk/client-connect 3.398.0 → 3.405.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -0
- package/dist-cjs/Connect.js +18 -0
- package/dist-cjs/commands/CreateViewCommand.js +47 -0
- package/dist-cjs/commands/CreateViewVersionCommand.js +47 -0
- package/dist-cjs/commands/DeleteViewCommand.js +46 -0
- package/dist-cjs/commands/DeleteViewVersionCommand.js +46 -0
- package/dist-cjs/commands/DescribeViewCommand.js +47 -0
- package/dist-cjs/commands/ListViewVersionsCommand.js +47 -0
- package/dist-cjs/commands/ListViewsCommand.js +47 -0
- package/dist-cjs/commands/UpdateViewContentCommand.js +47 -0
- package/dist-cjs/commands/UpdateViewMetadataCommand.js +47 -0
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/models/models_0.js +66 -6
- package/dist-cjs/models/models_1.js +25 -1
- package/dist-cjs/models/models_2.js +18 -1
- package/dist-cjs/pagination/ListViewVersionsPaginator.js +29 -0
- package/dist-cjs/pagination/ListViewsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +713 -20
- package/dist-es/Connect.js +18 -0
- package/dist-es/commands/CreateViewCommand.js +43 -0
- package/dist-es/commands/CreateViewVersionCommand.js +43 -0
- package/dist-es/commands/DeleteViewCommand.js +42 -0
- package/dist-es/commands/DeleteViewVersionCommand.js +42 -0
- package/dist-es/commands/DescribeViewCommand.js +43 -0
- package/dist-es/commands/ListViewVersionsCommand.js +43 -0
- package/dist-es/commands/ListViewsCommand.js +43 -0
- package/dist-es/commands/UpdateViewContentCommand.js +43 -0
- package/dist-es/commands/UpdateViewMetadataCommand.js +43 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/models/models_0.js +57 -5
- package/dist-es/models/models_1.js +20 -0
- package/dist-es/models/models_2.js +14 -0
- package/dist-es/pagination/ListViewVersionsPaginator.js +25 -0
- package/dist-es/pagination/ListViewsPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +687 -13
- package/dist-types/Connect.d.ts +63 -0
- package/dist-types/ConnectClient.d.ts +11 -2
- package/dist-types/commands/CreateQueueCommand.d.ts +20 -13
- package/dist-types/commands/CreateTrafficDistributionGroupCommand.d.ts +8 -0
- package/dist-types/commands/CreateViewCommand.d.ts +140 -0
- package/dist-types/commands/CreateViewVersionCommand.d.ts +126 -0
- package/dist-types/commands/DeleteViewCommand.d.ts +93 -0
- package/dist-types/commands/DeleteViewVersionCommand.d.ts +94 -0
- package/dist-types/commands/DescribeViewCommand.d.ts +121 -0
- package/dist-types/commands/DescribeVocabularyCommand.d.ts +2 -1
- package/dist-types/commands/DisassociateApprovedOriginCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateBotCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateInstanceStorageConfigCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateLambdaFunctionCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateLexBotCommand.d.ts +1 -1
- package/dist-types/commands/DisassociatePhoneNumberContactFlowCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateQueueQuickConnectsCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateRoutingProfileQueuesCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateSecurityKeyCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateTrafficDistributionGroupUserCommand.d.ts +1 -1
- package/dist-types/commands/DismissUserContactCommand.d.ts +1 -1
- package/dist-types/commands/GetContactAttributesCommand.d.ts +1 -2
- package/dist-types/commands/ListPhoneNumbersCommand.d.ts +14 -4
- package/dist-types/commands/ListViewVersionsCommand.d.ts +106 -0
- package/dist-types/commands/ListViewsCommand.d.ts +105 -0
- package/dist-types/commands/StopContactCommand.d.ts +5 -3
- package/dist-types/commands/UpdatePromptCommand.d.ts +2 -1
- package/dist-types/commands/UpdateQueueHoursOfOperationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateQueueMaxContactsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateQueueNameCommand.d.ts +1 -1
- package/dist-types/commands/UpdateQueueOutboundCallerConfigCommand.d.ts +21 -14
- package/dist-types/commands/UpdateQueueStatusCommand.d.ts +1 -1
- package/dist-types/commands/UpdateQuickConnectConfigCommand.d.ts +1 -1
- package/dist-types/commands/UpdateQuickConnectNameCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRoutingProfileAgentAvailabilityTimerCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRoutingProfileConcurrencyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRoutingProfileDefaultOutboundQueueCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRoutingProfileNameCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRoutingProfileQueuesCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRuleCommand.d.ts +1 -1
- package/dist-types/commands/UpdateSecurityProfileCommand.d.ts +1 -1
- package/dist-types/commands/UpdateTaskTemplateCommand.d.ts +1 -1
- package/dist-types/commands/UpdateTrafficDistributionCommand.d.ts +6 -3
- package/dist-types/commands/UpdateUserHierarchyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateUserHierarchyGroupNameCommand.d.ts +1 -1
- package/dist-types/commands/UpdateViewContentCommand.d.ts +127 -0
- package/dist-types/commands/UpdateViewMetadataCommand.d.ts +99 -0
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/models/models_0.d.ts +359 -317
- package/dist-types/models/models_1.d.ts +478 -553
- package/dist-types/models/models_2.d.ts +632 -2
- package/dist-types/pagination/ListViewVersionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListViewsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
- package/dist-types/ts3.4/Connect.d.ts +153 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +56 -2
- package/dist-types/ts3.4/commands/CreateViewCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/CreateViewVersionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteViewCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteViewVersionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DescribeViewCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DescribeVocabularyCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DisassociateApprovedOriginCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateBotCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateInstanceStorageConfigCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateLambdaFunctionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateLexBotCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociatePhoneNumberContactFlowCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateQueueQuickConnectsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateRoutingProfileQueuesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateSecurityKeyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateTrafficDistributionGroupUserCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DismissUserContactCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetContactAttributesCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/ListViewVersionsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListViewsCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdatePromptCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/UpdateQueueHoursOfOperationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateQueueMaxContactsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateQueueNameCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateQueueOutboundCallerConfigCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateQueueStatusCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateQuickConnectConfigCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateQuickConnectNameCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateRoutingProfileAgentAvailabilityTimerCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateRoutingProfileConcurrencyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateRoutingProfileDefaultOutboundQueueCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateRoutingProfileNameCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateRoutingProfileQueuesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateRuleCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateSecurityProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateTaskTemplateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateTrafficDistributionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateUserHierarchyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateUserHierarchyGroupNameCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateViewContentCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateViewMetadataCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/models/models_0.d.ts +117 -90
- package/dist-types/ts3.4/models/models_1.d.ts +121 -135
- package/dist-types/ts3.4/models/models_2.d.ts +171 -1
- package/dist-types/ts3.4/pagination/ListViewVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListViewsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
- package/package.json +7 -7
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListViewVersionsCommand, } from "../commands/ListViewVersionsCommand";
|
|
2
|
+
import { ConnectClient } from "../ConnectClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListViewVersionsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListViewVersions(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.NextToken = token;
|
|
12
|
+
input["MaxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.NextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListViewsCommand } from "../commands/ListViewsCommand";
|
|
2
|
+
import { ConnectClient } from "../ConnectClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListViewsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListViews(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.NextToken = token;
|
|
12
|
+
input["MaxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.NextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -38,6 +38,8 @@ export * from "./ListTrafficDistributionGroupsPaginator";
|
|
|
38
38
|
export * from "./ListUseCasesPaginator";
|
|
39
39
|
export * from "./ListUserHierarchyGroupsPaginator";
|
|
40
40
|
export * from "./ListUsersPaginator";
|
|
41
|
+
export * from "./ListViewVersionsPaginator";
|
|
42
|
+
export * from "./ListViewsPaginator";
|
|
41
43
|
export * from "./SearchAvailablePhoneNumbersPaginator";
|
|
42
44
|
export * from "./SearchHoursOfOperationsPaginator";
|
|
43
45
|
export * from "./SearchPromptsPaginator";
|