@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 { ListQueuesCommand } from "../commands/ListQueuesCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListQueuesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListQueues(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 paginateListQueues = createPaginator(ConnectClient, ListQueuesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListQuickConnectsCommand, } from "../commands/ListQuickConnectsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListQuickConnectsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListQuickConnects(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 paginateListQuickConnects = createPaginator(ConnectClient, ListQuickConnectsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListRealtimeContactAnalysisSegmentsV2Command, } from "../commands/ListRealtimeContactAnalysisSegmentsV2Command";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRealtimeContactAnalysisSegmentsV2Command(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRealtimeContactAnalysisSegmentsV2(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 paginateListRealtimeContactAnalysisSegmentsV2 = createPaginator(ConnectClient, ListRealtimeContactAnalysisSegmentsV2Command, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListRoutingProfileQueuesCommand, } from "../commands/ListRoutingProfileQueuesCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRoutingProfileQueuesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRoutingProfileQueues(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 paginateListRoutingProfileQueues = createPaginator(ConnectClient, ListRoutingProfileQueuesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListRoutingProfilesCommand, } from "../commands/ListRoutingProfilesCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRoutingProfilesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRoutingProfiles(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 paginateListRoutingProfiles = createPaginator(ConnectClient, ListRoutingProfilesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListRulesCommand } from "../commands/ListRulesCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRulesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRules(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 paginateListRules = createPaginator(ConnectClient, ListRulesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSecurityKeysCommand, } from "../commands/ListSecurityKeysCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSecurityKeysCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSecurityKeys(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 paginateListSecurityKeys = createPaginator(ConnectClient, ListSecurityKeysCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSecurityProfileApplicationsCommand, } from "../commands/ListSecurityProfileApplicationsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSecurityProfileApplicationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSecurityProfileApplications(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 paginateListSecurityProfileApplications = createPaginator(ConnectClient, ListSecurityProfileApplicationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSecurityProfilePermissionsCommand, } from "../commands/ListSecurityProfilePermissionsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSecurityProfilePermissionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSecurityProfilePermissions(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 paginateListSecurityProfilePermissions = createPaginator(ConnectClient, ListSecurityProfilePermissionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSecurityProfilesCommand, } from "../commands/ListSecurityProfilesCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSecurityProfilesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSecurityProfiles(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 paginateListSecurityProfiles = createPaginator(ConnectClient, ListSecurityProfilesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListTaskTemplatesCommand, } from "../commands/ListTaskTemplatesCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListTaskTemplatesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListTaskTemplates(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 paginateListTaskTemplates = createPaginator(ConnectClient, ListTaskTemplatesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListTrafficDistributionGroupUsersCommand, } from "../commands/ListTrafficDistributionGroupUsersCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListTrafficDistributionGroupUsersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListTrafficDistributionGroupUsers(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 paginateListTrafficDistributionGroupUsers = createPaginator(ConnectClient, ListTrafficDistributionGroupUsersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListTrafficDistributionGroupsCommand, } from "../commands/ListTrafficDistributionGroupsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListTrafficDistributionGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListTrafficDistributionGroups(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 paginateListTrafficDistributionGroups = createPaginator(ConnectClient, ListTrafficDistributionGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListUseCasesCommand, } from "../commands/ListUseCasesCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListUseCasesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListUseCases(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 paginateListUseCases = createPaginator(ConnectClient, ListUseCasesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListUserHierarchyGroupsCommand, } from "../commands/ListUserHierarchyGroupsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListUserHierarchyGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListUserHierarchyGroups(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 paginateListUserHierarchyGroups = createPaginator(ConnectClient, ListUserHierarchyGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListUsersCommand } from "../commands/ListUsersCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListUsersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListUsers(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 paginateListUsers = createPaginator(ConnectClient, ListUsersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListViewVersionsCommand, } from "../commands/ListViewVersionsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
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
|
-
}
|
|
4
|
+
export const paginateListViewVersions = createPaginator(ConnectClient, ListViewVersionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListViewsCommand } from "../commands/ListViewsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
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
|
-
}
|
|
4
|
+
export const paginateListViews = createPaginator(ConnectClient, ListViewsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { SearchAvailablePhoneNumbersCommand, } from "../commands/SearchAvailablePhoneNumbersCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new SearchAvailablePhoneNumbersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateSearchAvailablePhoneNumbers(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 paginateSearchAvailablePhoneNumbers = createPaginator(ConnectClient, SearchAvailablePhoneNumbersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { SearchHoursOfOperationsCommand, } from "../commands/SearchHoursOfOperationsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new SearchHoursOfOperationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateSearchHoursOfOperations(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 paginateSearchHoursOfOperations = createPaginator(ConnectClient, SearchHoursOfOperationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { SearchPromptsCommand, } from "../commands/SearchPromptsCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new SearchPromptsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateSearchPrompts(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 paginateSearchPrompts = createPaginator(ConnectClient, SearchPromptsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { SearchQueuesCommand, } from "../commands/SearchQueuesCommand";
|
|
2
3
|
import { ConnectClient } from "../ConnectClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new SearchQueuesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateSearchQueues(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 paginateSearchQueues = createPaginator(ConnectClient, SearchQueuesCommand, "NextToken", "NextToken", "MaxResults");
|