@aws-sdk/client-connect 3.477.0 → 3.478.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/dist-cjs/pagination/GetCurrentMetricDataPaginator.js +2 -24
- package/dist-cjs/pagination/GetCurrentUserDataPaginator.js +2 -24
- package/dist-cjs/pagination/GetMetricDataPaginator.js +2 -24
- package/dist-cjs/pagination/GetMetricDataV2Paginator.js +2 -24
- package/dist-cjs/pagination/ListAgentStatusesPaginator.js +2 -24
- package/dist-cjs/pagination/ListApprovedOriginsPaginator.js +2 -24
- package/dist-cjs/pagination/ListBotsPaginator.js +2 -24
- package/dist-cjs/pagination/ListContactEvaluationsPaginator.js +2 -23
- package/dist-cjs/pagination/ListContactFlowModulesPaginator.js +2 -24
- package/dist-cjs/pagination/ListContactFlowsPaginator.js +2 -24
- package/dist-cjs/pagination/ListContactReferencesPaginator.js +2 -23
- package/dist-cjs/pagination/ListDefaultVocabulariesPaginator.js +2 -24
- package/dist-cjs/pagination/ListEvaluationFormVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListEvaluationFormsPaginator.js +2 -24
- package/dist-cjs/pagination/ListFlowAssociationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListHoursOfOperationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListInstanceAttributesPaginator.js +2 -24
- package/dist-cjs/pagination/ListInstanceStorageConfigsPaginator.js +2 -24
- package/dist-cjs/pagination/ListInstancesPaginator.js +2 -24
- package/dist-cjs/pagination/ListIntegrationAssociationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListLambdaFunctionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListLexBotsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPhoneNumbersPaginator.js +2 -24
- package/dist-cjs/pagination/ListPhoneNumbersV2Paginator.js +2 -24
- package/dist-cjs/pagination/ListPromptsPaginator.js +2 -24
- package/dist-cjs/pagination/ListQueueQuickConnectsPaginator.js +2 -24
- package/dist-cjs/pagination/ListQueuesPaginator.js +2 -24
- package/dist-cjs/pagination/ListQuickConnectsPaginator.js +2 -24
- package/dist-cjs/pagination/ListRealtimeContactAnalysisSegmentsV2Paginator.js +2 -24
- package/dist-cjs/pagination/ListRoutingProfileQueuesPaginator.js +2 -24
- package/dist-cjs/pagination/ListRoutingProfilesPaginator.js +2 -24
- package/dist-cjs/pagination/ListRulesPaginator.js +2 -24
- package/dist-cjs/pagination/ListSecurityKeysPaginator.js +2 -24
- package/dist-cjs/pagination/ListSecurityProfileApplicationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSecurityProfilePermissionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSecurityProfilesPaginator.js +2 -24
- package/dist-cjs/pagination/ListTaskTemplatesPaginator.js +2 -24
- package/dist-cjs/pagination/ListTrafficDistributionGroupUsersPaginator.js +2 -24
- package/dist-cjs/pagination/ListTrafficDistributionGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/ListUseCasesPaginator.js +2 -24
- package/dist-cjs/pagination/ListUserHierarchyGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/ListUsersPaginator.js +2 -24
- package/dist-cjs/pagination/ListViewVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListViewsPaginator.js +2 -24
- package/dist-cjs/pagination/SearchAvailablePhoneNumbersPaginator.js +2 -24
- package/dist-cjs/pagination/SearchHoursOfOperationsPaginator.js +2 -24
- package/dist-cjs/pagination/SearchPromptsPaginator.js +2 -24
- package/dist-cjs/pagination/SearchQueuesPaginator.js +2 -24
- package/dist-cjs/pagination/SearchQuickConnectsPaginator.js +2 -24
- package/dist-cjs/pagination/SearchResourceTagsPaginator.js +2 -24
- package/dist-cjs/pagination/SearchRoutingProfilesPaginator.js +2 -24
- package/dist-cjs/pagination/SearchSecurityProfilesPaginator.js +2 -24
- package/dist-cjs/pagination/SearchUsersPaginator.js +2 -24
- package/dist-cjs/pagination/SearchVocabulariesPaginator.js +2 -24
- package/dist-es/pagination/GetCurrentMetricDataPaginator.js +2 -23
- package/dist-es/pagination/GetCurrentUserDataPaginator.js +2 -23
- package/dist-es/pagination/GetMetricDataPaginator.js +2 -23
- package/dist-es/pagination/GetMetricDataV2Paginator.js +2 -23
- package/dist-es/pagination/ListAgentStatusesPaginator.js +2 -23
- package/dist-es/pagination/ListApprovedOriginsPaginator.js +2 -23
- package/dist-es/pagination/ListBotsPaginator.js +2 -23
- package/dist-es/pagination/ListContactEvaluationsPaginator.js +2 -22
- package/dist-es/pagination/ListContactFlowModulesPaginator.js +2 -23
- package/dist-es/pagination/ListContactFlowsPaginator.js +2 -23
- package/dist-es/pagination/ListContactReferencesPaginator.js +2 -22
- package/dist-es/pagination/ListDefaultVocabulariesPaginator.js +2 -23
- package/dist-es/pagination/ListEvaluationFormVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListEvaluationFormsPaginator.js +2 -23
- package/dist-es/pagination/ListFlowAssociationsPaginator.js +2 -23
- package/dist-es/pagination/ListHoursOfOperationsPaginator.js +2 -23
- package/dist-es/pagination/ListInstanceAttributesPaginator.js +2 -23
- package/dist-es/pagination/ListInstanceStorageConfigsPaginator.js +2 -23
- package/dist-es/pagination/ListInstancesPaginator.js +2 -23
- package/dist-es/pagination/ListIntegrationAssociationsPaginator.js +2 -23
- package/dist-es/pagination/ListLambdaFunctionsPaginator.js +2 -23
- package/dist-es/pagination/ListLexBotsPaginator.js +2 -23
- package/dist-es/pagination/ListPhoneNumbersPaginator.js +2 -23
- package/dist-es/pagination/ListPhoneNumbersV2Paginator.js +2 -23
- package/dist-es/pagination/ListPromptsPaginator.js +2 -23
- package/dist-es/pagination/ListQueueQuickConnectsPaginator.js +2 -23
- package/dist-es/pagination/ListQueuesPaginator.js +2 -23
- package/dist-es/pagination/ListQuickConnectsPaginator.js +2 -23
- package/dist-es/pagination/ListRealtimeContactAnalysisSegmentsV2Paginator.js +2 -23
- package/dist-es/pagination/ListRoutingProfileQueuesPaginator.js +2 -23
- package/dist-es/pagination/ListRoutingProfilesPaginator.js +2 -23
- package/dist-es/pagination/ListRulesPaginator.js +2 -23
- package/dist-es/pagination/ListSecurityKeysPaginator.js +2 -23
- package/dist-es/pagination/ListSecurityProfileApplicationsPaginator.js +2 -23
- package/dist-es/pagination/ListSecurityProfilePermissionsPaginator.js +2 -23
- package/dist-es/pagination/ListSecurityProfilesPaginator.js +2 -23
- package/dist-es/pagination/ListTaskTemplatesPaginator.js +2 -23
- package/dist-es/pagination/ListTrafficDistributionGroupUsersPaginator.js +2 -23
- package/dist-es/pagination/ListTrafficDistributionGroupsPaginator.js +2 -23
- package/dist-es/pagination/ListUseCasesPaginator.js +2 -23
- package/dist-es/pagination/ListUserHierarchyGroupsPaginator.js +2 -23
- package/dist-es/pagination/ListUsersPaginator.js +2 -23
- package/dist-es/pagination/ListViewVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListViewsPaginator.js +2 -23
- package/dist-es/pagination/SearchAvailablePhoneNumbersPaginator.js +2 -23
- package/dist-es/pagination/SearchHoursOfOperationsPaginator.js +2 -23
- package/dist-es/pagination/SearchPromptsPaginator.js +2 -23
- package/dist-es/pagination/SearchQueuesPaginator.js +2 -23
- package/dist-es/pagination/SearchQuickConnectsPaginator.js +2 -23
- package/dist-es/pagination/SearchResourceTagsPaginator.js +2 -23
- package/dist-es/pagination/SearchRoutingProfilesPaginator.js +2 -23
- package/dist-es/pagination/SearchSecurityProfilesPaginator.js +2 -23
- package/dist-es/pagination/SearchUsersPaginator.js +2 -23
- package/dist-es/pagination/SearchVocabulariesPaginator.js +2 -23
- package/dist-types/pagination/GetCurrentMetricDataPaginator.d.ts +1 -1
- package/dist-types/pagination/GetCurrentUserDataPaginator.d.ts +1 -1
- package/dist-types/pagination/GetMetricDataPaginator.d.ts +1 -1
- package/dist-types/pagination/GetMetricDataV2Paginator.d.ts +1 -1
- package/dist-types/pagination/ListAgentStatusesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListApprovedOriginsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListBotsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListContactEvaluationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListContactFlowModulesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListContactFlowsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListContactReferencesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDefaultVocabulariesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEvaluationFormVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEvaluationFormsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFlowAssociationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListHoursOfOperationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListInstanceAttributesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListInstanceStorageConfigsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListInstancesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListIntegrationAssociationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListLambdaFunctionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListLexBotsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPhoneNumbersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPhoneNumbersV2Paginator.d.ts +1 -1
- package/dist-types/pagination/ListPromptsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListQueueQuickConnectsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListQueuesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListQuickConnectsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRealtimeContactAnalysisSegmentsV2Paginator.d.ts +1 -1
- package/dist-types/pagination/ListRoutingProfileQueuesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRoutingProfilesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRulesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSecurityKeysPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSecurityProfileApplicationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSecurityProfilePermissionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSecurityProfilesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTaskTemplatesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTrafficDistributionGroupUsersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTrafficDistributionGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListUseCasesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListUserHierarchyGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListUsersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListViewVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListViewsPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchAvailablePhoneNumbersPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchHoursOfOperationsPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchPromptsPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchQueuesPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchQuickConnectsPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchResourceTagsPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchRoutingProfilesPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchSecurityProfilesPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchUsersPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchVocabulariesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetCurrentMetricDataPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetCurrentUserDataPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetMetricDataPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetMetricDataV2Paginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAgentStatusesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListApprovedOriginsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListBotsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListContactEvaluationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListContactFlowModulesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListContactFlowsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListContactReferencesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDefaultVocabulariesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEvaluationFormVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEvaluationFormsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFlowAssociationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListHoursOfOperationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListInstanceAttributesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListInstanceStorageConfigsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListInstancesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListIntegrationAssociationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListLambdaFunctionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListLexBotsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPhoneNumbersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPhoneNumbersV2Paginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPromptsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListQueueQuickConnectsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListQueuesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListQuickConnectsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRealtimeContactAnalysisSegmentsV2Paginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRoutingProfileQueuesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRoutingProfilesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRulesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSecurityKeysPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSecurityProfileApplicationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSecurityProfilePermissionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSecurityProfilesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTaskTemplatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTrafficDistributionGroupUsersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTrafficDistributionGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListUseCasesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListUserHierarchyGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListUsersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListViewVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListViewsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchAvailablePhoneNumbersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchHoursOfOperationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchPromptsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchQueuesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchQuickConnectsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchResourceTagsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchRoutingProfilesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchSecurityProfilesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchUsersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchVocabulariesPaginator.d.ts +3 -3
- package/package.json +5 -5
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAgentStatusesCommand, } from "../commands/ListAgentStatusesCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAgentStatusesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAgentStatuses(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
|
-
}
|
|
4
|
+
export const paginateListAgentStatuses = createPaginator(ConnectClient, ListAgentStatusesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListApprovedOriginsCommand, } from "../commands/ListApprovedOriginsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListApprovedOriginsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListApprovedOrigins(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
|
-
}
|
|
4
|
+
export const paginateListApprovedOrigins = createPaginator(ConnectClient, ListApprovedOriginsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListBotsCommand } from "../commands/ListBotsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListBotsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListBots(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
|
-
}
|
|
4
|
+
export const paginateListBots = createPaginator(ConnectClient, ListBotsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListContactEvaluationsCommand, } from "../commands/ListContactEvaluationsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListContactEvaluationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListContactEvaluations(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
if (config.client instanceof ConnectClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
17
|
-
}
|
|
18
|
-
yield page;
|
|
19
|
-
const prevToken = token;
|
|
20
|
-
token = page.NextToken;
|
|
21
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
-
}
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
4
|
+
export const paginateListContactEvaluations = createPaginator(ConnectClient, ListContactEvaluationsCommand, "NextToken", "NextToken", "");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListContactFlowModulesCommand, } from "../commands/ListContactFlowModulesCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListContactFlowModulesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListContactFlowModules(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
|
-
}
|
|
4
|
+
export const paginateListContactFlowModules = createPaginator(ConnectClient, ListContactFlowModulesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListContactFlowsCommand, } from "../commands/ListContactFlowsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListContactFlowsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListContactFlows(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
|
-
}
|
|
4
|
+
export const paginateListContactFlows = createPaginator(ConnectClient, ListContactFlowsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListContactReferencesCommand, } from "../commands/ListContactReferencesCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListContactReferencesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListContactReferences(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
if (config.client instanceof ConnectClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
17
|
-
}
|
|
18
|
-
yield page;
|
|
19
|
-
const prevToken = token;
|
|
20
|
-
token = page.NextToken;
|
|
21
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
-
}
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
4
|
+
export const paginateListContactReferences = createPaginator(ConnectClient, ListContactReferencesCommand, "NextToken", "NextToken", "");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDefaultVocabulariesCommand, } from "../commands/ListDefaultVocabulariesCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDefaultVocabulariesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDefaultVocabularies(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
|
-
}
|
|
4
|
+
export const paginateListDefaultVocabularies = createPaginator(ConnectClient, ListDefaultVocabulariesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListEvaluationFormVersionsCommand, } from "../commands/ListEvaluationFormVersionsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListEvaluationFormVersionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListEvaluationFormVersions(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
|
-
}
|
|
4
|
+
export const paginateListEvaluationFormVersions = createPaginator(ConnectClient, ListEvaluationFormVersionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListEvaluationFormsCommand, } from "../commands/ListEvaluationFormsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListEvaluationFormsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListEvaluationForms(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
|
-
}
|
|
4
|
+
export const paginateListEvaluationForms = createPaginator(ConnectClient, ListEvaluationFormsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListFlowAssociationsCommand, } from "../commands/ListFlowAssociationsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListFlowAssociationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListFlowAssociations(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
|
-
}
|
|
4
|
+
export const paginateListFlowAssociations = createPaginator(ConnectClient, ListFlowAssociationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListHoursOfOperationsCommand, } from "../commands/ListHoursOfOperationsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListHoursOfOperationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListHoursOfOperations(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
|
-
}
|
|
4
|
+
export const paginateListHoursOfOperations = createPaginator(ConnectClient, ListHoursOfOperationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListInstanceAttributesCommand, } from "../commands/ListInstanceAttributesCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListInstanceAttributesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListInstanceAttributes(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
|
-
}
|
|
4
|
+
export const paginateListInstanceAttributes = createPaginator(ConnectClient, ListInstanceAttributesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListInstanceStorageConfigsCommand, } from "../commands/ListInstanceStorageConfigsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListInstanceStorageConfigsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListInstanceStorageConfigs(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
|
-
}
|
|
4
|
+
export const paginateListInstanceStorageConfigs = createPaginator(ConnectClient, ListInstanceStorageConfigsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListInstancesCommand, } from "../commands/ListInstancesCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListInstancesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListInstances(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
|
-
}
|
|
4
|
+
export const paginateListInstances = createPaginator(ConnectClient, ListInstancesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListIntegrationAssociationsCommand, } from "../commands/ListIntegrationAssociationsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListIntegrationAssociationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListIntegrationAssociations(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
|
-
}
|
|
4
|
+
export const paginateListIntegrationAssociations = createPaginator(ConnectClient, ListIntegrationAssociationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListLambdaFunctionsCommand, } from "../commands/ListLambdaFunctionsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListLambdaFunctionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListLambdaFunctions(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
|
-
}
|
|
4
|
+
export const paginateListLambdaFunctions = createPaginator(ConnectClient, ListLambdaFunctionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListLexBotsCommand } from "../commands/ListLexBotsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListLexBotsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListLexBots(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
|
-
}
|
|
4
|
+
export const paginateListLexBots = createPaginator(ConnectClient, ListLexBotsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListPhoneNumbersCommand, } from "../commands/ListPhoneNumbersCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPhoneNumbersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPhoneNumbers(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
|
-
}
|
|
4
|
+
export const paginateListPhoneNumbers = createPaginator(ConnectClient, ListPhoneNumbersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListPhoneNumbersV2Command, } from "../commands/ListPhoneNumbersV2Command";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPhoneNumbersV2Command(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPhoneNumbersV2(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
|
-
}
|
|
4
|
+
export const paginateListPhoneNumbersV2 = createPaginator(ConnectClient, ListPhoneNumbersV2Command, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListPromptsCommand } from "../commands/ListPromptsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPromptsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPrompts(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
|
-
}
|
|
4
|
+
export const paginateListPrompts = createPaginator(ConnectClient, ListPromptsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListQueueQuickConnectsCommand, } from "../commands/ListQueueQuickConnectsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListQueueQuickConnectsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListQueueQuickConnects(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
|
-
}
|
|
4
|
+
export const paginateListQueueQuickConnects = createPaginator(ConnectClient, ListQueueQuickConnectsCommand, "NextToken", "NextToken", "MaxResults");
|