@aws-sdk/client-lex-models-v2 3.281.0 → 3.287.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 +1 -8
- package/dist-cjs/pagination/ListBotAliasesPaginator.js +1 -8
- package/dist-cjs/pagination/ListBotLocalesPaginator.js +1 -8
- package/dist-cjs/pagination/ListBotRecommendationsPaginator.js +1 -8
- package/dist-cjs/pagination/ListBotVersionsPaginator.js +1 -8
- package/dist-cjs/pagination/ListBotsPaginator.js +1 -8
- package/dist-cjs/pagination/ListBuiltInIntentsPaginator.js +1 -8
- package/dist-cjs/pagination/ListBuiltInSlotTypesPaginator.js +1 -8
- package/dist-cjs/pagination/ListCustomVocabularyItemsPaginator.js +1 -8
- package/dist-cjs/pagination/ListExportsPaginator.js +1 -8
- package/dist-cjs/pagination/ListImportsPaginator.js +1 -8
- package/dist-cjs/pagination/ListIntentsPaginator.js +1 -8
- package/dist-cjs/pagination/ListRecommendedIntentsPaginator.js +1 -8
- package/dist-cjs/pagination/ListSlotTypesPaginator.js +1 -8
- package/dist-cjs/pagination/ListSlotsPaginator.js +1 -8
- package/dist-es/pagination/ListAggregatedUtterancesPaginator.js +1 -8
- package/dist-es/pagination/ListBotAliasesPaginator.js +1 -8
- package/dist-es/pagination/ListBotLocalesPaginator.js +1 -8
- package/dist-es/pagination/ListBotRecommendationsPaginator.js +1 -8
- package/dist-es/pagination/ListBotVersionsPaginator.js +1 -8
- package/dist-es/pagination/ListBotsPaginator.js +1 -8
- package/dist-es/pagination/ListBuiltInIntentsPaginator.js +1 -8
- package/dist-es/pagination/ListBuiltInSlotTypesPaginator.js +1 -8
- package/dist-es/pagination/ListCustomVocabularyItemsPaginator.js +1 -8
- package/dist-es/pagination/ListExportsPaginator.js +1 -8
- package/dist-es/pagination/ListImportsPaginator.js +1 -8
- package/dist-es/pagination/ListIntentsPaginator.js +1 -8
- package/dist-es/pagination/ListRecommendedIntentsPaginator.js +1 -8
- package/dist-es/pagination/ListSlotTypesPaginator.js +1 -8
- package/dist-es/pagination/ListSlotsPaginator.js +1 -8
- package/dist-types/pagination/Interfaces.d.ts +1 -2
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +1 -2
- package/package.json +19 -19
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAggregatedUtterances = void 0;
|
|
4
4
|
const ListAggregatedUtterancesCommand_1 = require("../commands/ListAggregatedUtterancesCommand");
|
|
5
|
-
const LexModelsV2_1 = require("../LexModelsV2");
|
|
6
5
|
const LexModelsV2Client_1 = require("../LexModelsV2Client");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListAggregatedUtterancesCommand_1.ListAggregatedUtterancesCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listAggregatedUtterances(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListAggregatedUtterances(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListAggregatedUtterances(config, input, ...additionalArg
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.nextToken = token;
|
|
19
15
|
input["maxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
16
|
+
if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListBotAliases = void 0;
|
|
4
4
|
const ListBotAliasesCommand_1 = require("../commands/ListBotAliasesCommand");
|
|
5
|
-
const LexModelsV2_1 = require("../LexModelsV2");
|
|
6
5
|
const LexModelsV2Client_1 = require("../LexModelsV2Client");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListBotAliasesCommand_1.ListBotAliasesCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listBotAliases(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListBotAliases(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListBotAliases(config, input, ...additionalArguments) {
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.nextToken = token;
|
|
19
15
|
input["maxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
16
|
+
if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListBotLocales = void 0;
|
|
4
4
|
const ListBotLocalesCommand_1 = require("../commands/ListBotLocalesCommand");
|
|
5
|
-
const LexModelsV2_1 = require("../LexModelsV2");
|
|
6
5
|
const LexModelsV2Client_1 = require("../LexModelsV2Client");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListBotLocalesCommand_1.ListBotLocalesCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listBotLocales(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListBotLocales(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListBotLocales(config, input, ...additionalArguments) {
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.nextToken = token;
|
|
19
15
|
input["maxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
16
|
+
if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListBotRecommendations = void 0;
|
|
4
4
|
const ListBotRecommendationsCommand_1 = require("../commands/ListBotRecommendationsCommand");
|
|
5
|
-
const LexModelsV2_1 = require("../LexModelsV2");
|
|
6
5
|
const LexModelsV2Client_1 = require("../LexModelsV2Client");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListBotRecommendationsCommand_1.ListBotRecommendationsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listBotRecommendations(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListBotRecommendations(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListBotRecommendations(config, input, ...additionalArgum
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.nextToken = token;
|
|
19
15
|
input["maxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
16
|
+
if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListBotVersions = void 0;
|
|
4
4
|
const ListBotVersionsCommand_1 = require("../commands/ListBotVersionsCommand");
|
|
5
|
-
const LexModelsV2_1 = require("../LexModelsV2");
|
|
6
5
|
const LexModelsV2Client_1 = require("../LexModelsV2Client");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListBotVersionsCommand_1.ListBotVersionsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listBotVersions(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListBotVersions(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListBotVersions(config, input, ...additionalArguments) {
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.nextToken = token;
|
|
19
15
|
input["maxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
16
|
+
if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListBots = void 0;
|
|
4
4
|
const ListBotsCommand_1 = require("../commands/ListBotsCommand");
|
|
5
|
-
const LexModelsV2_1 = require("../LexModelsV2");
|
|
6
5
|
const LexModelsV2Client_1 = require("../LexModelsV2Client");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListBotsCommand_1.ListBotsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listBots(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListBots(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListBots(config, input, ...additionalArguments) {
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.nextToken = token;
|
|
19
15
|
input["maxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
16
|
+
if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListBuiltInIntents = void 0;
|
|
4
4
|
const ListBuiltInIntentsCommand_1 = require("../commands/ListBuiltInIntentsCommand");
|
|
5
|
-
const LexModelsV2_1 = require("../LexModelsV2");
|
|
6
5
|
const LexModelsV2Client_1 = require("../LexModelsV2Client");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListBuiltInIntentsCommand_1.ListBuiltInIntentsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listBuiltInIntents(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListBuiltInIntents(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListBuiltInIntents(config, input, ...additionalArguments
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.nextToken = token;
|
|
19
15
|
input["maxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
16
|
+
if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListBuiltInSlotTypes = void 0;
|
|
4
4
|
const ListBuiltInSlotTypesCommand_1 = require("../commands/ListBuiltInSlotTypesCommand");
|
|
5
|
-
const LexModelsV2_1 = require("../LexModelsV2");
|
|
6
5
|
const LexModelsV2Client_1 = require("../LexModelsV2Client");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListBuiltInSlotTypesCommand_1.ListBuiltInSlotTypesCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listBuiltInSlotTypes(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListBuiltInSlotTypes(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListBuiltInSlotTypes(config, input, ...additionalArgumen
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.nextToken = token;
|
|
19
15
|
input["maxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
16
|
+
if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListCustomVocabularyItems = void 0;
|
|
4
4
|
const ListCustomVocabularyItemsCommand_1 = require("../commands/ListCustomVocabularyItemsCommand");
|
|
5
|
-
const LexModelsV2_1 = require("../LexModelsV2");
|
|
6
5
|
const LexModelsV2Client_1 = require("../LexModelsV2Client");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListCustomVocabularyItemsCommand_1.ListCustomVocabularyItemsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listCustomVocabularyItems(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListCustomVocabularyItems(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListCustomVocabularyItems(config, input, ...additionalAr
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.nextToken = token;
|
|
19
15
|
input["maxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
16
|
+
if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListExports = void 0;
|
|
4
4
|
const ListExportsCommand_1 = require("../commands/ListExportsCommand");
|
|
5
|
-
const LexModelsV2_1 = require("../LexModelsV2");
|
|
6
5
|
const LexModelsV2Client_1 = require("../LexModelsV2Client");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListExportsCommand_1.ListExportsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listExports(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListExports(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListExports(config, input, ...additionalArguments) {
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.nextToken = token;
|
|
19
15
|
input["maxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
16
|
+
if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListImports = void 0;
|
|
4
4
|
const ListImportsCommand_1 = require("../commands/ListImportsCommand");
|
|
5
|
-
const LexModelsV2_1 = require("../LexModelsV2");
|
|
6
5
|
const LexModelsV2Client_1 = require("../LexModelsV2Client");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListImportsCommand_1.ListImportsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listImports(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListImports(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListImports(config, input, ...additionalArguments) {
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.nextToken = token;
|
|
19
15
|
input["maxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
16
|
+
if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListIntents = void 0;
|
|
4
4
|
const ListIntentsCommand_1 = require("../commands/ListIntentsCommand");
|
|
5
|
-
const LexModelsV2_1 = require("../LexModelsV2");
|
|
6
5
|
const LexModelsV2Client_1 = require("../LexModelsV2Client");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListIntentsCommand_1.ListIntentsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listIntents(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListIntents(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListIntents(config, input, ...additionalArguments) {
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.nextToken = token;
|
|
19
15
|
input["maxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
16
|
+
if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListRecommendedIntents = void 0;
|
|
4
4
|
const ListRecommendedIntentsCommand_1 = require("../commands/ListRecommendedIntentsCommand");
|
|
5
|
-
const LexModelsV2_1 = require("../LexModelsV2");
|
|
6
5
|
const LexModelsV2Client_1 = require("../LexModelsV2Client");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListRecommendedIntentsCommand_1.ListRecommendedIntentsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listRecommendedIntents(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListRecommendedIntents(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListRecommendedIntents(config, input, ...additionalArgum
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.nextToken = token;
|
|
19
15
|
input["maxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
16
|
+
if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSlotTypes = void 0;
|
|
4
4
|
const ListSlotTypesCommand_1 = require("../commands/ListSlotTypesCommand");
|
|
5
|
-
const LexModelsV2_1 = require("../LexModelsV2");
|
|
6
5
|
const LexModelsV2Client_1 = require("../LexModelsV2Client");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListSlotTypesCommand_1.ListSlotTypesCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listSlotTypes(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListSlotTypes(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListSlotTypes(config, input, ...additionalArguments) {
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.nextToken = token;
|
|
19
15
|
input["maxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
16
|
+
if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSlots = void 0;
|
|
4
4
|
const ListSlotsCommand_1 = require("../commands/ListSlotsCommand");
|
|
5
|
-
const LexModelsV2_1 = require("../LexModelsV2");
|
|
6
5
|
const LexModelsV2Client_1 = require("../LexModelsV2Client");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListSlotsCommand_1.ListSlotsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listSlots(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListSlots(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListSlots(config, input, ...additionalArguments) {
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.nextToken = token;
|
|
19
15
|
input["maxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
16
|
+
if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListAggregatedUtterancesCommand, } from "../commands/ListAggregatedUtterancesCommand";
|
|
2
|
-
import { LexModelsV2 } from "../LexModelsV2";
|
|
3
2
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListAggregatedUtterancesCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listAggregatedUtterances(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListAggregatedUtterances(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListAggregatedUtterances(config, input, ...additi
|
|
|
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 LexModelsV2Client) {
|
|
13
|
+
if (config.client instanceof LexModelsV2Client) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListBotAliasesCommand, } from "../commands/ListBotAliasesCommand";
|
|
2
|
-
import { LexModelsV2 } from "../LexModelsV2";
|
|
3
2
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListBotAliasesCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listBotAliases(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListBotAliases(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListBotAliases(config, input, ...additionalArgume
|
|
|
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 LexModelsV2Client) {
|
|
13
|
+
if (config.client instanceof LexModelsV2Client) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListBotLocalesCommand, } from "../commands/ListBotLocalesCommand";
|
|
2
|
-
import { LexModelsV2 } from "../LexModelsV2";
|
|
3
2
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListBotLocalesCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listBotLocales(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListBotLocales(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListBotLocales(config, input, ...additionalArgume
|
|
|
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 LexModelsV2Client) {
|
|
13
|
+
if (config.client instanceof LexModelsV2Client) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListBotRecommendationsCommand, } from "../commands/ListBotRecommendationsCommand";
|
|
2
|
-
import { LexModelsV2 } from "../LexModelsV2";
|
|
3
2
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListBotRecommendationsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listBotRecommendations(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListBotRecommendations(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListBotRecommendations(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 LexModelsV2Client) {
|
|
13
|
+
if (config.client instanceof LexModelsV2Client) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListBotVersionsCommand, } from "../commands/ListBotVersionsCommand";
|
|
2
|
-
import { LexModelsV2 } from "../LexModelsV2";
|
|
3
2
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListBotVersionsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listBotVersions(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListBotVersions(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListBotVersions(config, input, ...additionalArgum
|
|
|
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 LexModelsV2Client) {
|
|
13
|
+
if (config.client instanceof LexModelsV2Client) {
|
|
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 { LexModelsV2 } from "../LexModelsV2";
|
|
3
2
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
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 LexModelsV2Client) {
|
|
13
|
+
if (config.client instanceof LexModelsV2Client) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListBuiltInIntentsCommand, } from "../commands/ListBuiltInIntentsCommand";
|
|
2
|
-
import { LexModelsV2 } from "../LexModelsV2";
|
|
3
2
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListBuiltInIntentsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listBuiltInIntents(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListBuiltInIntents(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListBuiltInIntents(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 LexModelsV2Client) {
|
|
13
|
+
if (config.client instanceof LexModelsV2Client) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListBuiltInSlotTypesCommand, } from "../commands/ListBuiltInSlotTypesCommand";
|
|
2
|
-
import { LexModelsV2 } from "../LexModelsV2";
|
|
3
2
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListBuiltInSlotTypesCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listBuiltInSlotTypes(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListBuiltInSlotTypes(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListBuiltInSlotTypes(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 LexModelsV2Client) {
|
|
13
|
+
if (config.client instanceof LexModelsV2Client) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListCustomVocabularyItemsCommand, } from "../commands/ListCustomVocabularyItemsCommand";
|
|
2
|
-
import { LexModelsV2 } from "../LexModelsV2";
|
|
3
2
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListCustomVocabularyItemsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listCustomVocabularyItems(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListCustomVocabularyItems(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListCustomVocabularyItems(config, input, ...addit
|
|
|
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 LexModelsV2Client) {
|
|
13
|
+
if (config.client instanceof LexModelsV2Client) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListExportsCommand } from "../commands/ListExportsCommand";
|
|
2
|
-
import { LexModelsV2 } from "../LexModelsV2";
|
|
3
2
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListExportsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listExports(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListExports(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListExports(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 LexModelsV2Client) {
|
|
13
|
+
if (config.client instanceof LexModelsV2Client) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListImportsCommand } from "../commands/ListImportsCommand";
|
|
2
|
-
import { LexModelsV2 } from "../LexModelsV2";
|
|
3
2
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListImportsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listImports(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListImports(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListImports(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 LexModelsV2Client) {
|
|
13
|
+
if (config.client instanceof LexModelsV2Client) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListIntentsCommand } from "../commands/ListIntentsCommand";
|
|
2
|
-
import { LexModelsV2 } from "../LexModelsV2";
|
|
3
2
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListIntentsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listIntents(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListIntents(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListIntents(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 LexModelsV2Client) {
|
|
13
|
+
if (config.client instanceof LexModelsV2Client) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListRecommendedIntentsCommand, } from "../commands/ListRecommendedIntentsCommand";
|
|
2
|
-
import { LexModelsV2 } from "../LexModelsV2";
|
|
3
2
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListRecommendedIntentsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listRecommendedIntents(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListRecommendedIntents(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListRecommendedIntents(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 LexModelsV2Client) {
|
|
13
|
+
if (config.client instanceof LexModelsV2Client) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListSlotTypesCommand, } from "../commands/ListSlotTypesCommand";
|
|
2
|
-
import { LexModelsV2 } from "../LexModelsV2";
|
|
3
2
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListSlotTypesCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listSlotTypes(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListSlotTypes(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListSlotTypes(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 LexModelsV2Client) {
|
|
13
|
+
if (config.client instanceof LexModelsV2Client) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListSlotsCommand } from "../commands/ListSlotsCommand";
|
|
2
|
-
import { LexModelsV2 } from "../LexModelsV2";
|
|
3
2
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListSlotsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listSlots(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListSlots(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListSlots(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 LexModelsV2Client) {
|
|
13
|
+
if (config.client instanceof LexModelsV2Client) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
-
import { LexModelsV2 } from "../LexModelsV2";
|
|
3
2
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
4
3
|
export interface LexModelsV2PaginationConfiguration extends PaginationConfiguration {
|
|
5
|
-
client:
|
|
4
|
+
client: LexModelsV2Client;
|
|
6
5
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
-
import { LexModelsV2 } from "../LexModelsV2";
|
|
3
2
|
import { LexModelsV2Client } from "../LexModelsV2Client";
|
|
4
3
|
export interface LexModelsV2PaginationConfiguration
|
|
5
4
|
extends PaginationConfiguration {
|
|
6
|
-
client:
|
|
5
|
+
client: LexModelsV2Client;
|
|
7
6
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lex-models-v2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Lex Models V2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.287.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,25 +20,25 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.287.0",
|
|
24
|
+
"@aws-sdk/config-resolver": "3.287.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.287.0",
|
|
26
|
+
"@aws-sdk/fetch-http-handler": "3.282.0",
|
|
27
27
|
"@aws-sdk/hash-node": "3.272.0",
|
|
28
28
|
"@aws-sdk/invalid-dependency": "3.272.0",
|
|
29
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
30
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
31
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
32
|
-
"@aws-sdk/middleware-logger": "3.
|
|
33
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
34
|
-
"@aws-sdk/middleware-retry": "3.
|
|
29
|
+
"@aws-sdk/middleware-content-length": "3.282.0",
|
|
30
|
+
"@aws-sdk/middleware-endpoint": "3.282.0",
|
|
31
|
+
"@aws-sdk/middleware-host-header": "3.282.0",
|
|
32
|
+
"@aws-sdk/middleware-logger": "3.287.0",
|
|
33
|
+
"@aws-sdk/middleware-recursion-detection": "3.282.0",
|
|
34
|
+
"@aws-sdk/middleware-retry": "3.287.0",
|
|
35
35
|
"@aws-sdk/middleware-serde": "3.272.0",
|
|
36
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
+
"@aws-sdk/middleware-signing": "3.282.0",
|
|
37
37
|
"@aws-sdk/middleware-stack": "3.272.0",
|
|
38
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
-
"@aws-sdk/node-config-provider": "3.
|
|
40
|
-
"@aws-sdk/node-http-handler": "3.
|
|
41
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
+
"@aws-sdk/middleware-user-agent": "3.282.0",
|
|
39
|
+
"@aws-sdk/node-config-provider": "3.287.0",
|
|
40
|
+
"@aws-sdk/node-http-handler": "3.282.0",
|
|
41
|
+
"@aws-sdk/protocol-http": "3.282.0",
|
|
42
42
|
"@aws-sdk/smithy-client": "3.279.0",
|
|
43
43
|
"@aws-sdk/types": "3.272.0",
|
|
44
44
|
"@aws-sdk/url-parser": "3.272.0",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
48
48
|
"@aws-sdk/util-defaults-mode-browser": "3.279.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.287.0",
|
|
50
50
|
"@aws-sdk/util-endpoints": "3.272.0",
|
|
51
51
|
"@aws-sdk/util-retry": "3.272.0",
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.282.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.287.0",
|
|
54
54
|
"@aws-sdk/util-utf8": "3.254.0",
|
|
55
55
|
"@aws-sdk/util-waiter": "3.272.0",
|
|
56
56
|
"tslib": "^2.3.1"
|