@aws-sdk/client-connect 3.476.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-cjs/protocols/Aws_restJson1.js +1401 -3118
- 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-es/protocols/Aws_restJson1.js +1402 -3119
- 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 +7 -6
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListTrafficDistributionGroups = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListTrafficDistributionGroupsCommand_1 = require("../commands/ListTrafficDistributionGroupsCommand");
|
|
5
6
|
const ConnectClient_1 = require("../ConnectClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListTrafficDistributionGroupsCommand_1.ListTrafficDistributionGroupsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListTrafficDistributionGroups(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ConnectClient_1.ConnectClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListTrafficDistributionGroups = paginateListTrafficDistributionGroups;
|
|
7
|
+
exports.paginateListTrafficDistributionGroups = (0, core_1.createPaginator)(ConnectClient_1.ConnectClient, ListTrafficDistributionGroupsCommand_1.ListTrafficDistributionGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListUseCases = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListUseCasesCommand_1 = require("../commands/ListUseCasesCommand");
|
|
5
6
|
const ConnectClient_1 = require("../ConnectClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListUseCasesCommand_1.ListUseCasesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListUseCases(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ConnectClient_1.ConnectClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListUseCases = paginateListUseCases;
|
|
7
|
+
exports.paginateListUseCases = (0, core_1.createPaginator)(ConnectClient_1.ConnectClient, ListUseCasesCommand_1.ListUseCasesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListUserHierarchyGroups = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListUserHierarchyGroupsCommand_1 = require("../commands/ListUserHierarchyGroupsCommand");
|
|
5
6
|
const ConnectClient_1 = require("../ConnectClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListUserHierarchyGroupsCommand_1.ListUserHierarchyGroupsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListUserHierarchyGroups(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ConnectClient_1.ConnectClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListUserHierarchyGroups = paginateListUserHierarchyGroups;
|
|
7
|
+
exports.paginateListUserHierarchyGroups = (0, core_1.createPaginator)(ConnectClient_1.ConnectClient, ListUserHierarchyGroupsCommand_1.ListUserHierarchyGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListUsers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListUsersCommand_1 = require("../commands/ListUsersCommand");
|
|
5
6
|
const ConnectClient_1 = require("../ConnectClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListUsersCommand_1.ListUsersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListUsers(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ConnectClient_1.ConnectClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListUsers = paginateListUsers;
|
|
7
|
+
exports.paginateListUsers = (0, core_1.createPaginator)(ConnectClient_1.ConnectClient, ListUsersCommand_1.ListUsersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListViewVersions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListViewVersionsCommand_1 = require("../commands/ListViewVersionsCommand");
|
|
5
6
|
const ConnectClient_1 = require("../ConnectClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListViewVersionsCommand_1.ListViewVersionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListViewVersions(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ConnectClient_1.ConnectClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListViewVersions = paginateListViewVersions;
|
|
7
|
+
exports.paginateListViewVersions = (0, core_1.createPaginator)(ConnectClient_1.ConnectClient, ListViewVersionsCommand_1.ListViewVersionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListViews = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListViewsCommand_1 = require("../commands/ListViewsCommand");
|
|
5
6
|
const ConnectClient_1 = require("../ConnectClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListViewsCommand_1.ListViewsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListViews(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ConnectClient_1.ConnectClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListViews = paginateListViews;
|
|
7
|
+
exports.paginateListViews = (0, core_1.createPaginator)(ConnectClient_1.ConnectClient, ListViewsCommand_1.ListViewsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateSearchAvailablePhoneNumbers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const SearchAvailablePhoneNumbersCommand_1 = require("../commands/SearchAvailablePhoneNumbersCommand");
|
|
5
6
|
const ConnectClient_1 = require("../ConnectClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new SearchAvailablePhoneNumbersCommand_1.SearchAvailablePhoneNumbersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateSearchAvailablePhoneNumbers(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ConnectClient_1.ConnectClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateSearchAvailablePhoneNumbers = paginateSearchAvailablePhoneNumbers;
|
|
7
|
+
exports.paginateSearchAvailablePhoneNumbers = (0, core_1.createPaginator)(ConnectClient_1.ConnectClient, SearchAvailablePhoneNumbersCommand_1.SearchAvailablePhoneNumbersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateSearchHoursOfOperations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const SearchHoursOfOperationsCommand_1 = require("../commands/SearchHoursOfOperationsCommand");
|
|
5
6
|
const ConnectClient_1 = require("../ConnectClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new SearchHoursOfOperationsCommand_1.SearchHoursOfOperationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateSearchHoursOfOperations(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ConnectClient_1.ConnectClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateSearchHoursOfOperations = paginateSearchHoursOfOperations;
|
|
7
|
+
exports.paginateSearchHoursOfOperations = (0, core_1.createPaginator)(ConnectClient_1.ConnectClient, SearchHoursOfOperationsCommand_1.SearchHoursOfOperationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateSearchPrompts = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const SearchPromptsCommand_1 = require("../commands/SearchPromptsCommand");
|
|
5
6
|
const ConnectClient_1 = require("../ConnectClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new SearchPromptsCommand_1.SearchPromptsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateSearchPrompts(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ConnectClient_1.ConnectClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateSearchPrompts = paginateSearchPrompts;
|
|
7
|
+
exports.paginateSearchPrompts = (0, core_1.createPaginator)(ConnectClient_1.ConnectClient, SearchPromptsCommand_1.SearchPromptsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateSearchQueues = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const SearchQueuesCommand_1 = require("../commands/SearchQueuesCommand");
|
|
5
6
|
const ConnectClient_1 = require("../ConnectClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new SearchQueuesCommand_1.SearchQueuesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateSearchQueues(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ConnectClient_1.ConnectClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateSearchQueues = paginateSearchQueues;
|
|
7
|
+
exports.paginateSearchQueues = (0, core_1.createPaginator)(ConnectClient_1.ConnectClient, SearchQueuesCommand_1.SearchQueuesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateSearchQuickConnects = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const SearchQuickConnectsCommand_1 = require("../commands/SearchQuickConnectsCommand");
|
|
5
6
|
const ConnectClient_1 = require("../ConnectClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new SearchQuickConnectsCommand_1.SearchQuickConnectsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateSearchQuickConnects(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ConnectClient_1.ConnectClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateSearchQuickConnects = paginateSearchQuickConnects;
|
|
7
|
+
exports.paginateSearchQuickConnects = (0, core_1.createPaginator)(ConnectClient_1.ConnectClient, SearchQuickConnectsCommand_1.SearchQuickConnectsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateSearchResourceTags = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const SearchResourceTagsCommand_1 = require("../commands/SearchResourceTagsCommand");
|
|
5
6
|
const ConnectClient_1 = require("../ConnectClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new SearchResourceTagsCommand_1.SearchResourceTagsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateSearchResourceTags(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ConnectClient_1.ConnectClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateSearchResourceTags = paginateSearchResourceTags;
|
|
7
|
+
exports.paginateSearchResourceTags = (0, core_1.createPaginator)(ConnectClient_1.ConnectClient, SearchResourceTagsCommand_1.SearchResourceTagsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateSearchRoutingProfiles = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const SearchRoutingProfilesCommand_1 = require("../commands/SearchRoutingProfilesCommand");
|
|
5
6
|
const ConnectClient_1 = require("../ConnectClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new SearchRoutingProfilesCommand_1.SearchRoutingProfilesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateSearchRoutingProfiles(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ConnectClient_1.ConnectClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateSearchRoutingProfiles = paginateSearchRoutingProfiles;
|
|
7
|
+
exports.paginateSearchRoutingProfiles = (0, core_1.createPaginator)(ConnectClient_1.ConnectClient, SearchRoutingProfilesCommand_1.SearchRoutingProfilesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateSearchSecurityProfiles = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const SearchSecurityProfilesCommand_1 = require("../commands/SearchSecurityProfilesCommand");
|
|
5
6
|
const ConnectClient_1 = require("../ConnectClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new SearchSecurityProfilesCommand_1.SearchSecurityProfilesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateSearchSecurityProfiles(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ConnectClient_1.ConnectClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateSearchSecurityProfiles = paginateSearchSecurityProfiles;
|
|
7
|
+
exports.paginateSearchSecurityProfiles = (0, core_1.createPaginator)(ConnectClient_1.ConnectClient, SearchSecurityProfilesCommand_1.SearchSecurityProfilesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateSearchUsers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const SearchUsersCommand_1 = require("../commands/SearchUsersCommand");
|
|
5
6
|
const ConnectClient_1 = require("../ConnectClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new SearchUsersCommand_1.SearchUsersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateSearchUsers(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ConnectClient_1.ConnectClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateSearchUsers = paginateSearchUsers;
|
|
7
|
+
exports.paginateSearchUsers = (0, core_1.createPaginator)(ConnectClient_1.ConnectClient, SearchUsersCommand_1.SearchUsersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateSearchVocabularies = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const SearchVocabulariesCommand_1 = require("../commands/SearchVocabulariesCommand");
|
|
5
6
|
const ConnectClient_1 = require("../ConnectClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new SearchVocabulariesCommand_1.SearchVocabulariesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateSearchVocabularies(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ConnectClient_1.ConnectClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateSearchVocabularies = paginateSearchVocabularies;
|
|
7
|
+
exports.paginateSearchVocabularies = (0, core_1.createPaginator)(ConnectClient_1.ConnectClient, SearchVocabulariesCommand_1.SearchVocabulariesCommand, "NextToken", "NextToken", "MaxResults");
|