@aws-sdk/client-connect 3.282.0 → 3.288.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist-cjs/Connect.js +15 -0
- package/dist-cjs/commands/GetMetricDataV2Command.js +46 -0
- package/dist-cjs/commands/ListContactFlowModulesCommand.js +3 -3
- package/dist-cjs/commands/ListContactFlowsCommand.js +3 -3
- package/dist-cjs/commands/ListContactReferencesCommand.js +1 -2
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +37 -38
- package/dist-cjs/models/models_1.js +38 -5
- package/dist-cjs/pagination/GetCurrentMetricDataPaginator.js +1 -8
- package/dist-cjs/pagination/GetCurrentUserDataPaginator.js +1 -8
- package/dist-cjs/pagination/GetMetricDataPaginator.js +1 -8
- package/dist-cjs/pagination/GetMetricDataV2Paginator.js +29 -0
- package/dist-cjs/pagination/ListAgentStatusesPaginator.js +1 -8
- package/dist-cjs/pagination/ListApprovedOriginsPaginator.js +1 -8
- package/dist-cjs/pagination/ListBotsPaginator.js +1 -8
- package/dist-cjs/pagination/ListContactFlowModulesPaginator.js +1 -8
- package/dist-cjs/pagination/ListContactFlowsPaginator.js +1 -8
- package/dist-cjs/pagination/ListContactReferencesPaginator.js +1 -8
- package/dist-cjs/pagination/ListDefaultVocabulariesPaginator.js +1 -8
- package/dist-cjs/pagination/ListHoursOfOperationsPaginator.js +1 -8
- package/dist-cjs/pagination/ListInstanceAttributesPaginator.js +1 -8
- package/dist-cjs/pagination/ListInstanceStorageConfigsPaginator.js +1 -8
- package/dist-cjs/pagination/ListInstancesPaginator.js +1 -8
- package/dist-cjs/pagination/ListIntegrationAssociationsPaginator.js +1 -8
- package/dist-cjs/pagination/ListLambdaFunctionsPaginator.js +1 -8
- package/dist-cjs/pagination/ListLexBotsPaginator.js +1 -8
- package/dist-cjs/pagination/ListPhoneNumbersPaginator.js +1 -8
- package/dist-cjs/pagination/ListPhoneNumbersV2Paginator.js +1 -8
- package/dist-cjs/pagination/ListPromptsPaginator.js +1 -8
- package/dist-cjs/pagination/ListQueueQuickConnectsPaginator.js +1 -8
- package/dist-cjs/pagination/ListQueuesPaginator.js +1 -8
- package/dist-cjs/pagination/ListQuickConnectsPaginator.js +1 -8
- package/dist-cjs/pagination/ListRoutingProfileQueuesPaginator.js +1 -8
- package/dist-cjs/pagination/ListRoutingProfilesPaginator.js +1 -8
- package/dist-cjs/pagination/ListRulesPaginator.js +1 -8
- package/dist-cjs/pagination/ListSecurityKeysPaginator.js +1 -8
- package/dist-cjs/pagination/ListSecurityProfilePermissionsPaginator.js +1 -8
- package/dist-cjs/pagination/ListSecurityProfilesPaginator.js +1 -8
- package/dist-cjs/pagination/ListTaskTemplatesPaginator.js +1 -8
- package/dist-cjs/pagination/ListTrafficDistributionGroupsPaginator.js +1 -8
- package/dist-cjs/pagination/ListUseCasesPaginator.js +1 -8
- package/dist-cjs/pagination/ListUserHierarchyGroupsPaginator.js +1 -8
- package/dist-cjs/pagination/ListUsersPaginator.js +1 -8
- package/dist-cjs/pagination/SearchAvailablePhoneNumbersPaginator.js +1 -8
- package/dist-cjs/pagination/SearchQueuesPaginator.js +1 -8
- package/dist-cjs/pagination/SearchRoutingProfilesPaginator.js +1 -8
- package/dist-cjs/pagination/SearchSecurityProfilesPaginator.js +1 -8
- package/dist-cjs/pagination/SearchUsersPaginator.js +1 -8
- package/dist-cjs/pagination/SearchVocabulariesPaginator.js +1 -8
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +264 -6
- package/dist-es/Connect.js +15 -0
- package/dist-es/commands/GetMetricDataV2Command.js +42 -0
- package/dist-es/commands/ListContactFlowModulesCommand.js +1 -1
- package/dist-es/commands/ListContactFlowsCommand.js +1 -1
- package/dist-es/commands/ListContactReferencesCommand.js +1 -2
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +23 -25
- package/dist-es/models/models_1.js +26 -0
- package/dist-es/pagination/GetCurrentMetricDataPaginator.js +1 -8
- package/dist-es/pagination/GetCurrentUserDataPaginator.js +1 -8
- package/dist-es/pagination/GetMetricDataPaginator.js +1 -8
- package/dist-es/pagination/GetMetricDataV2Paginator.js +25 -0
- package/dist-es/pagination/ListAgentStatusesPaginator.js +1 -8
- package/dist-es/pagination/ListApprovedOriginsPaginator.js +1 -8
- package/dist-es/pagination/ListBotsPaginator.js +1 -8
- package/dist-es/pagination/ListContactFlowModulesPaginator.js +1 -8
- package/dist-es/pagination/ListContactFlowsPaginator.js +1 -8
- package/dist-es/pagination/ListContactReferencesPaginator.js +1 -8
- package/dist-es/pagination/ListDefaultVocabulariesPaginator.js +1 -8
- package/dist-es/pagination/ListHoursOfOperationsPaginator.js +1 -8
- package/dist-es/pagination/ListInstanceAttributesPaginator.js +1 -8
- package/dist-es/pagination/ListInstanceStorageConfigsPaginator.js +1 -8
- package/dist-es/pagination/ListInstancesPaginator.js +1 -8
- package/dist-es/pagination/ListIntegrationAssociationsPaginator.js +1 -8
- package/dist-es/pagination/ListLambdaFunctionsPaginator.js +1 -8
- package/dist-es/pagination/ListLexBotsPaginator.js +1 -8
- package/dist-es/pagination/ListPhoneNumbersPaginator.js +1 -8
- package/dist-es/pagination/ListPhoneNumbersV2Paginator.js +1 -8
- package/dist-es/pagination/ListPromptsPaginator.js +1 -8
- package/dist-es/pagination/ListQueueQuickConnectsPaginator.js +1 -8
- package/dist-es/pagination/ListQueuesPaginator.js +1 -8
- package/dist-es/pagination/ListQuickConnectsPaginator.js +1 -8
- package/dist-es/pagination/ListRoutingProfileQueuesPaginator.js +1 -8
- package/dist-es/pagination/ListRoutingProfilesPaginator.js +1 -8
- package/dist-es/pagination/ListRulesPaginator.js +1 -8
- package/dist-es/pagination/ListSecurityKeysPaginator.js +1 -8
- package/dist-es/pagination/ListSecurityProfilePermissionsPaginator.js +1 -8
- package/dist-es/pagination/ListSecurityProfilesPaginator.js +1 -8
- package/dist-es/pagination/ListTaskTemplatesPaginator.js +1 -8
- package/dist-es/pagination/ListTrafficDistributionGroupsPaginator.js +1 -8
- package/dist-es/pagination/ListUseCasesPaginator.js +1 -8
- package/dist-es/pagination/ListUserHierarchyGroupsPaginator.js +1 -8
- package/dist-es/pagination/ListUsersPaginator.js +1 -8
- package/dist-es/pagination/SearchAvailablePhoneNumbersPaginator.js +1 -8
- package/dist-es/pagination/SearchQueuesPaginator.js +1 -8
- package/dist-es/pagination/SearchRoutingProfilesPaginator.js +1 -8
- package/dist-es/pagination/SearchSecurityProfilesPaginator.js +1 -8
- package/dist-es/pagination/SearchUsersPaginator.js +1 -8
- package/dist-es/pagination/SearchVocabulariesPaginator.js +1 -8
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +256 -0
- package/dist-types/Connect.d.ts +20 -2
- package/dist-types/ConnectClient.d.ts +3 -2
- package/dist-types/commands/DisassociateBotCommand.d.ts +2 -2
- package/dist-types/commands/GetMetricDataV2Command.d.ts +54 -0
- package/dist-types/commands/ListContactFlowModulesCommand.d.ts +1 -1
- package/dist-types/commands/ListContactFlowsCommand.d.ts +1 -1
- package/dist-types/commands/ListContactReferencesCommand.d.ts +1 -2
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +387 -153
- package/dist-types/models/models_1.d.ts +162 -1
- package/dist-types/pagination/GetMetricDataV2Paginator.d.ts +4 -0
- package/dist-types/pagination/Interfaces.d.ts +1 -2
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/Connect.d.ts +17 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/GetMetricDataV2Command.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListContactFlowModulesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListContactFlowsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListContactReferencesCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +55 -64
- package/dist-types/ts3.4/models/models_1.d.ts +66 -1
- package/dist-types/ts3.4/pagination/GetMetricDataV2Paginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +1 -2
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +9 -9
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { ConnectServiceException as __BaseException } from "./ConnectServiceException";
|
|
3
|
+
export var ReferenceStatus;
|
|
4
|
+
(function (ReferenceStatus) {
|
|
5
|
+
ReferenceStatus["APPROVED"] = "APPROVED";
|
|
6
|
+
ReferenceStatus["REJECTED"] = "REJECTED";
|
|
7
|
+
})(ReferenceStatus || (ReferenceStatus = {}));
|
|
3
8
|
export var ReferenceSummary;
|
|
4
9
|
(function (ReferenceSummary) {
|
|
5
10
|
ReferenceSummary.visit = (value, visitor) => {
|
|
@@ -125,6 +130,27 @@ export var UpdateParticipantRoleConfigChannelInfo;
|
|
|
125
130
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
126
131
|
};
|
|
127
132
|
})(UpdateParticipantRoleConfigChannelInfo || (UpdateParticipantRoleConfigChannelInfo = {}));
|
|
133
|
+
export const ListContactFlowModulesRequestFilterSensitiveLog = (obj) => ({
|
|
134
|
+
...obj,
|
|
135
|
+
});
|
|
136
|
+
export const ContactFlowModuleSummaryFilterSensitiveLog = (obj) => ({
|
|
137
|
+
...obj,
|
|
138
|
+
});
|
|
139
|
+
export const ListContactFlowModulesResponseFilterSensitiveLog = (obj) => ({
|
|
140
|
+
...obj,
|
|
141
|
+
});
|
|
142
|
+
export const ListContactFlowsRequestFilterSensitiveLog = (obj) => ({
|
|
143
|
+
...obj,
|
|
144
|
+
});
|
|
145
|
+
export const ContactFlowSummaryFilterSensitiveLog = (obj) => ({
|
|
146
|
+
...obj,
|
|
147
|
+
});
|
|
148
|
+
export const ListContactFlowsResponseFilterSensitiveLog = (obj) => ({
|
|
149
|
+
...obj,
|
|
150
|
+
});
|
|
151
|
+
export const ListContactReferencesRequestFilterSensitiveLog = (obj) => ({
|
|
152
|
+
...obj,
|
|
153
|
+
});
|
|
128
154
|
export const AttachmentReferenceFilterSensitiveLog = (obj) => ({
|
|
129
155
|
...obj,
|
|
130
156
|
});
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { GetCurrentMetricDataCommand, } from "../commands/GetCurrentMetricDataCommand";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new GetCurrentMetricDataCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.getCurrentMetricData(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateGetCurrentMetricData(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateGetCurrentMetricData(config, input, ...additional
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { GetCurrentUserDataCommand, } from "../commands/GetCurrentUserDataCommand";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new GetCurrentUserDataCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.getCurrentUserData(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateGetCurrentUserData(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateGetCurrentUserData(config, input, ...additionalAr
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { GetMetricDataCommand, } from "../commands/GetMetricDataCommand";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new GetMetricDataCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.getMetricData(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateGetMetricData(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateGetMetricData(config, input, ...additionalArgumen
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { GetMetricDataV2Command, } from "../commands/GetMetricDataV2Command";
|
|
2
|
+
import { ConnectClient } from "../ConnectClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new GetMetricDataV2Command(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateGetMetricDataV2(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
|
+
}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListAgentStatusesCommand, } from "../commands/ListAgentStatusesCommand";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListAgentStatusesCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listAgentStatuses(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListAgentStatuses(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListAgentStatuses(config, input, ...additionalArg
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListApprovedOriginsCommand, } from "../commands/ListApprovedOriginsCommand";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListApprovedOriginsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listApprovedOrigins(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListApprovedOrigins(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListApprovedOrigins(config, input, ...additionalA
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListBotsCommand } from "../commands/ListBotsCommand";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListBotsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listBots(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListBots(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListBots(config, input, ...additionalArguments) {
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListContactFlowModulesCommand, } from "../commands/ListContactFlowModulesCommand";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListContactFlowModulesCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listContactFlowModules(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListContactFlowModules(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListContactFlowModules(config, input, ...addition
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListContactFlowsCommand, } from "../commands/ListContactFlowsCommand";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListContactFlowsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listContactFlows(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListContactFlows(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListContactFlows(config, input, ...additionalArgu
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
import { ListContactReferencesCommand, } from "../commands/ListContactReferencesCommand";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListContactReferencesCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listContactReferences(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListContactReferences(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
13
9
|
let page;
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
|
-
if (config.client instanceof
|
|
17
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else if (config.client instanceof ConnectClient) {
|
|
12
|
+
if (config.client instanceof ConnectClient) {
|
|
20
13
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
21
14
|
}
|
|
22
15
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListDefaultVocabulariesCommand, } from "../commands/ListDefaultVocabulariesCommand";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListDefaultVocabulariesCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listDefaultVocabularies(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListDefaultVocabularies(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListDefaultVocabularies(config, input, ...additio
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListHoursOfOperationsCommand, } from "../commands/ListHoursOfOperationsCommand";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListHoursOfOperationsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listHoursOfOperations(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListHoursOfOperations(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListHoursOfOperations(config, input, ...additiona
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListInstanceAttributesCommand, } from "../commands/ListInstanceAttributesCommand";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListInstanceAttributesCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listInstanceAttributes(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListInstanceAttributes(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListInstanceAttributes(config, input, ...addition
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListInstanceStorageConfigsCommand, } from "../commands/ListInstanceStorageConfigsCommand";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListInstanceStorageConfigsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listInstanceStorageConfigs(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListInstanceStorageConfigs(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListInstanceStorageConfigs(config, input, ...addi
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListInstancesCommand, } from "../commands/ListInstancesCommand";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListInstancesCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listInstances(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListInstances(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListInstances(config, input, ...additionalArgumen
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListIntegrationAssociationsCommand, } from "../commands/ListIntegrationAssociationsCommand";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListIntegrationAssociationsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listIntegrationAssociations(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListIntegrationAssociations(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListIntegrationAssociations(config, input, ...add
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListLambdaFunctionsCommand, } from "../commands/ListLambdaFunctionsCommand";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListLambdaFunctionsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listLambdaFunctions(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListLambdaFunctions(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListLambdaFunctions(config, input, ...additionalA
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListLexBotsCommand } from "../commands/ListLexBotsCommand";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListLexBotsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listLexBots(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListLexBots(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListLexBots(config, input, ...additionalArguments
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListPhoneNumbersCommand, } from "../commands/ListPhoneNumbersCommand";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListPhoneNumbersCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listPhoneNumbers(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListPhoneNumbers(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListPhoneNumbers(config, input, ...additionalArgu
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListPhoneNumbersV2Command, } from "../commands/ListPhoneNumbersV2Command";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListPhoneNumbersV2Command(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listPhoneNumbersV2(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListPhoneNumbersV2(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListPhoneNumbersV2(config, input, ...additionalAr
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListPromptsCommand } from "../commands/ListPromptsCommand";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListPromptsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listPrompts(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListPrompts(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListPrompts(config, input, ...additionalArguments
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListQueueQuickConnectsCommand, } from "../commands/ListQueueQuickConnectsCommand";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListQueueQuickConnectsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listQueueQuickConnects(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListQueueQuickConnects(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListQueueQuickConnects(config, input, ...addition
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListQueuesCommand } from "../commands/ListQueuesCommand";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListQueuesCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listQueues(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListQueues(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListQueues(config, input, ...additionalArguments)
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListQuickConnectsCommand, } from "../commands/ListQuickConnectsCommand";
|
|
2
|
-
import { Connect } from "../Connect";
|
|
3
2
|
import { ConnectClient } from "../ConnectClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListQuickConnectsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listQuickConnects(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListQuickConnects(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListQuickConnects(config, input, ...additionalArg
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ConnectClient) {
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|