@aws-sdk/client-lex-models-v2 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/ListAggregatedUtterancesPaginator.js +2 -24
- package/dist-cjs/pagination/ListBotAliasesPaginator.js +2 -24
- package/dist-cjs/pagination/ListBotLocalesPaginator.js +2 -24
- package/dist-cjs/pagination/ListBotRecommendationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListBotResourceGenerationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListBotVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListBotsPaginator.js +2 -24
- package/dist-cjs/pagination/ListBuiltInIntentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListBuiltInSlotTypesPaginator.js +2 -24
- package/dist-cjs/pagination/ListCustomVocabularyItemsPaginator.js +2 -24
- package/dist-cjs/pagination/ListExportsPaginator.js +2 -24
- package/dist-cjs/pagination/ListImportsPaginator.js +2 -24
- package/dist-cjs/pagination/ListIntentMetricsPaginator.js +2 -24
- package/dist-cjs/pagination/ListIntentStageMetricsPaginator.js +2 -24
- package/dist-cjs/pagination/ListIntentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListRecommendedIntentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSessionAnalyticsDataPaginator.js +2 -24
- package/dist-cjs/pagination/ListSessionMetricsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSlotTypesPaginator.js +2 -24
- package/dist-cjs/pagination/ListSlotsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTestExecutionResultItemsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTestExecutionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTestSetRecordsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTestSetsPaginator.js +2 -24
- package/dist-cjs/pagination/ListUtteranceAnalyticsDataPaginator.js +2 -24
- package/dist-cjs/pagination/ListUtteranceMetricsPaginator.js +2 -24
- package/dist-es/pagination/ListAggregatedUtterancesPaginator.js +2 -23
- package/dist-es/pagination/ListBotAliasesPaginator.js +2 -23
- package/dist-es/pagination/ListBotLocalesPaginator.js +2 -23
- package/dist-es/pagination/ListBotRecommendationsPaginator.js +2 -23
- package/dist-es/pagination/ListBotResourceGenerationsPaginator.js +2 -23
- package/dist-es/pagination/ListBotVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListBotsPaginator.js +2 -23
- package/dist-es/pagination/ListBuiltInIntentsPaginator.js +2 -23
- package/dist-es/pagination/ListBuiltInSlotTypesPaginator.js +2 -23
- package/dist-es/pagination/ListCustomVocabularyItemsPaginator.js +2 -23
- package/dist-es/pagination/ListExportsPaginator.js +2 -23
- package/dist-es/pagination/ListImportsPaginator.js +2 -23
- package/dist-es/pagination/ListIntentMetricsPaginator.js +2 -23
- package/dist-es/pagination/ListIntentStageMetricsPaginator.js +2 -23
- package/dist-es/pagination/ListIntentsPaginator.js +2 -23
- package/dist-es/pagination/ListRecommendedIntentsPaginator.js +2 -23
- package/dist-es/pagination/ListSessionAnalyticsDataPaginator.js +2 -23
- package/dist-es/pagination/ListSessionMetricsPaginator.js +2 -23
- package/dist-es/pagination/ListSlotTypesPaginator.js +2 -23
- package/dist-es/pagination/ListSlotsPaginator.js +2 -23
- package/dist-es/pagination/ListTestExecutionResultItemsPaginator.js +2 -23
- package/dist-es/pagination/ListTestExecutionsPaginator.js +2 -23
- package/dist-es/pagination/ListTestSetRecordsPaginator.js +2 -23
- package/dist-es/pagination/ListTestSetsPaginator.js +2 -23
- package/dist-es/pagination/ListUtteranceAnalyticsDataPaginator.js +2 -23
- package/dist-es/pagination/ListUtteranceMetricsPaginator.js +2 -23
- package/dist-types/pagination/ListAggregatedUtterancesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListBotAliasesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListBotLocalesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListBotRecommendationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListBotResourceGenerationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListBotVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListBotsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListBuiltInIntentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListBuiltInSlotTypesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCustomVocabularyItemsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListExportsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListImportsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListIntentMetricsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListIntentStageMetricsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListIntentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRecommendedIntentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSessionAnalyticsDataPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSessionMetricsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSlotTypesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSlotsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTestExecutionResultItemsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTestExecutionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTestSetRecordsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTestSetsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListUtteranceAnalyticsDataPaginator.d.ts +1 -1
- package/dist-types/pagination/ListUtteranceMetricsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListAggregatedUtterancesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListBotAliasesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListBotLocalesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListBotRecommendationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListBotResourceGenerationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListBotVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListBotsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListBuiltInIntentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListBuiltInSlotTypesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListCustomVocabularyItemsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListExportsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListImportsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListIntentMetricsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListIntentStageMetricsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListIntentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRecommendedIntentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSessionAnalyticsDataPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSessionMetricsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSlotTypesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSlotsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTestExecutionResultItemsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTestExecutionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTestSetRecordsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTestSetsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListUtteranceAnalyticsDataPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListUtteranceMetricsPaginator.d.ts +3 -3
- package/package.json +5 -5
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListIntentsCommand } from "../commands/ListIntentsCommand";
|
|
2
3
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListIntentsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListIntents(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 LexModelsV2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
|
|
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 paginateListIntents = createPaginator(LexModelsV2Client, ListIntentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListRecommendedIntentsCommand, } from "../commands/ListRecommendedIntentsCommand";
|
|
2
3
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRecommendedIntentsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRecommendedIntents(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 LexModelsV2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
|
|
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 paginateListRecommendedIntents = createPaginator(LexModelsV2Client, ListRecommendedIntentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSessionAnalyticsDataCommand, } from "../commands/ListSessionAnalyticsDataCommand";
|
|
2
3
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSessionAnalyticsDataCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSessionAnalyticsData(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 LexModelsV2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
|
|
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 paginateListSessionAnalyticsData = createPaginator(LexModelsV2Client, ListSessionAnalyticsDataCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSessionMetricsCommand, } from "../commands/ListSessionMetricsCommand";
|
|
2
3
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSessionMetricsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSessionMetrics(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 LexModelsV2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
|
|
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 paginateListSessionMetrics = createPaginator(LexModelsV2Client, ListSessionMetricsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSlotTypesCommand, } from "../commands/ListSlotTypesCommand";
|
|
2
3
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSlotTypesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSlotTypes(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 LexModelsV2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
|
|
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 paginateListSlotTypes = createPaginator(LexModelsV2Client, ListSlotTypesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSlotsCommand } from "../commands/ListSlotsCommand";
|
|
2
3
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSlotsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSlots(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 LexModelsV2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
|
|
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 paginateListSlots = createPaginator(LexModelsV2Client, ListSlotsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListTestExecutionResultItemsCommand, } from "../commands/ListTestExecutionResultItemsCommand";
|
|
2
3
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListTestExecutionResultItemsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListTestExecutionResultItems(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 LexModelsV2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
|
|
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 paginateListTestExecutionResultItems = createPaginator(LexModelsV2Client, ListTestExecutionResultItemsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListTestExecutionsCommand, } from "../commands/ListTestExecutionsCommand";
|
|
2
3
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListTestExecutionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListTestExecutions(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 LexModelsV2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
|
|
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 paginateListTestExecutions = createPaginator(LexModelsV2Client, ListTestExecutionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListTestSetRecordsCommand, } from "../commands/ListTestSetRecordsCommand";
|
|
2
3
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListTestSetRecordsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListTestSetRecords(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 LexModelsV2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
|
|
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 paginateListTestSetRecords = createPaginator(LexModelsV2Client, ListTestSetRecordsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListTestSetsCommand, } from "../commands/ListTestSetsCommand";
|
|
2
3
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListTestSetsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListTestSets(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 LexModelsV2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
|
|
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 paginateListTestSets = createPaginator(LexModelsV2Client, ListTestSetsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListUtteranceAnalyticsDataCommand, } from "../commands/ListUtteranceAnalyticsDataCommand";
|
|
2
3
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListUtteranceAnalyticsDataCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListUtteranceAnalyticsData(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 LexModelsV2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
|
|
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 paginateListUtteranceAnalyticsData = createPaginator(LexModelsV2Client, ListUtteranceAnalyticsDataCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListUtteranceMetricsCommand, } from "../commands/ListUtteranceMetricsCommand";
|
|
2
3
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListUtteranceMetricsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListUtteranceMetrics(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 LexModelsV2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
|
|
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 paginateListUtteranceMetrics = createPaginator(LexModelsV2Client, ListUtteranceMetricsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAggregatedUtterances: (config: LexModelsV2PaginationConfiguration, input: ListAggregatedUtterancesCommandInput, ...rest: any[]) => Paginator<ListAggregatedUtterancesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListBotAliases: (config: LexModelsV2PaginationConfiguration, input: ListBotAliasesCommandInput, ...rest: any[]) => Paginator<ListBotAliasesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListBotLocales: (config: LexModelsV2PaginationConfiguration, input: ListBotLocalesCommandInput, ...rest: any[]) => Paginator<ListBotLocalesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListBotRecommendations: (config: LexModelsV2PaginationConfiguration, input: ListBotRecommendationsCommandInput, ...rest: any[]) => Paginator<ListBotRecommendationsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListBotResourceGenerations: (config: LexModelsV2PaginationConfiguration, input: ListBotResourceGenerationsCommandInput, ...rest: any[]) => Paginator<ListBotResourceGenerationsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListBotVersions: (config: LexModelsV2PaginationConfiguration, input: ListBotVersionsCommandInput, ...rest: any[]) => Paginator<ListBotVersionsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListBots: (config: LexModelsV2PaginationConfiguration, input: ListBotsCommandInput, ...rest: any[]) => Paginator<ListBotsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListBuiltInIntents: (config: LexModelsV2PaginationConfiguration, input: ListBuiltInIntentsCommandInput, ...rest: any[]) => Paginator<ListBuiltInIntentsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListBuiltInSlotTypes: (config: LexModelsV2PaginationConfiguration, input: ListBuiltInSlotTypesCommandInput, ...rest: any[]) => Paginator<ListBuiltInSlotTypesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListCustomVocabularyItems: (config: LexModelsV2PaginationConfiguration, input: ListCustomVocabularyItemsCommandInput, ...rest: any[]) => Paginator<ListCustomVocabularyItemsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListExports: (config: LexModelsV2PaginationConfiguration, input: ListExportsCommandInput, ...rest: any[]) => Paginator<ListExportsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListImports: (config: LexModelsV2PaginationConfiguration, input: ListImportsCommandInput, ...rest: any[]) => Paginator<ListImportsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListIntentMetrics: (config: LexModelsV2PaginationConfiguration, input: ListIntentMetricsCommandInput, ...rest: any[]) => Paginator<ListIntentMetricsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListIntentStageMetrics: (config: LexModelsV2PaginationConfiguration, input: ListIntentStageMetricsCommandInput, ...rest: any[]) => Paginator<ListIntentStageMetricsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListIntents: (config: LexModelsV2PaginationConfiguration, input: ListIntentsCommandInput, ...rest: any[]) => Paginator<ListIntentsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListRecommendedIntents: (config: LexModelsV2PaginationConfiguration, input: ListRecommendedIntentsCommandInput, ...rest: any[]) => Paginator<ListRecommendedIntentsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListSessionAnalyticsData: (config: LexModelsV2PaginationConfiguration, input: ListSessionAnalyticsDataCommandInput, ...rest: any[]) => Paginator<ListSessionAnalyticsDataCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListSessionMetrics: (config: LexModelsV2PaginationConfiguration, input: ListSessionMetricsCommandInput, ...rest: any[]) => Paginator<ListSessionMetricsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListSlotTypes: (config: LexModelsV2PaginationConfiguration, input: ListSlotTypesCommandInput, ...rest: any[]) => Paginator<ListSlotTypesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListSlots: (config: LexModelsV2PaginationConfiguration, input: ListSlotsCommandInput, ...rest: any[]) => Paginator<ListSlotsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListTestExecutionResultItems: (config: LexModelsV2PaginationConfiguration, input: ListTestExecutionResultItemsCommandInput, ...rest: any[]) => Paginator<ListTestExecutionResultItemsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListTestExecutions: (config: LexModelsV2PaginationConfiguration, input: ListTestExecutionsCommandInput, ...rest: any[]) => Paginator<ListTestExecutionsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListTestSetRecords: (config: LexModelsV2PaginationConfiguration, input: ListTestSetRecordsCommandInput, ...rest: any[]) => Paginator<ListTestSetRecordsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListTestSets: (config: LexModelsV2PaginationConfiguration, input: ListTestSetsCommandInput, ...rest: any[]) => Paginator<ListTestSetsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListUtteranceAnalyticsData: (config: LexModelsV2PaginationConfiguration, input: ListUtteranceAnalyticsDataCommandInput, ...rest: any[]) => Paginator<ListUtteranceAnalyticsDataCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListUtteranceMetrics: (config: LexModelsV2PaginationConfiguration, input: ListUtteranceMetricsCommandInput, ...rest: any[]) => Paginator<ListUtteranceMetricsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListAggregatedUtterancesCommandOutput,
|
|
5
5
|
} from "../commands/ListAggregatedUtterancesCommand";
|
|
6
6
|
import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAggregatedUtterances: (
|
|
8
8
|
config: LexModelsV2PaginationConfiguration,
|
|
9
9
|
input: ListAggregatedUtterancesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAggregatedUtterancesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListBotAliasesCommandOutput,
|
|
5
5
|
} from "../commands/ListBotAliasesCommand";
|
|
6
6
|
import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListBotAliases: (
|
|
8
8
|
config: LexModelsV2PaginationConfiguration,
|
|
9
9
|
input: ListBotAliasesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListBotAliasesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListBotLocalesCommandOutput,
|
|
5
5
|
} from "../commands/ListBotLocalesCommand";
|
|
6
6
|
import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListBotLocales: (
|
|
8
8
|
config: LexModelsV2PaginationConfiguration,
|
|
9
9
|
input: ListBotLocalesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListBotLocalesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListBotRecommendationsCommandOutput,
|
|
5
5
|
} from "../commands/ListBotRecommendationsCommand";
|
|
6
6
|
import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListBotRecommendations: (
|
|
8
8
|
config: LexModelsV2PaginationConfiguration,
|
|
9
9
|
input: ListBotRecommendationsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListBotRecommendationsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListBotResourceGenerationsCommandOutput,
|
|
5
5
|
} from "../commands/ListBotResourceGenerationsCommand";
|
|
6
6
|
import { LexModelsV2PaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListBotResourceGenerations: (
|
|
8
8
|
config: LexModelsV2PaginationConfiguration,
|
|
9
9
|
input: ListBotResourceGenerationsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListBotResourceGenerationsCommandOutput>;
|