@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.
Files changed (105) hide show
  1. package/dist-cjs/pagination/ListAggregatedUtterancesPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListBotAliasesPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListBotLocalesPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListBotRecommendationsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListBotResourceGenerationsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListBotVersionsPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListBotsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListBuiltInIntentsPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListBuiltInSlotTypesPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListCustomVocabularyItemsPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListExportsPaginator.js +2 -24
  12. package/dist-cjs/pagination/ListImportsPaginator.js +2 -24
  13. package/dist-cjs/pagination/ListIntentMetricsPaginator.js +2 -24
  14. package/dist-cjs/pagination/ListIntentStageMetricsPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListIntentsPaginator.js +2 -24
  16. package/dist-cjs/pagination/ListRecommendedIntentsPaginator.js +2 -24
  17. package/dist-cjs/pagination/ListSessionAnalyticsDataPaginator.js +2 -24
  18. package/dist-cjs/pagination/ListSessionMetricsPaginator.js +2 -24
  19. package/dist-cjs/pagination/ListSlotTypesPaginator.js +2 -24
  20. package/dist-cjs/pagination/ListSlotsPaginator.js +2 -24
  21. package/dist-cjs/pagination/ListTestExecutionResultItemsPaginator.js +2 -24
  22. package/dist-cjs/pagination/ListTestExecutionsPaginator.js +2 -24
  23. package/dist-cjs/pagination/ListTestSetRecordsPaginator.js +2 -24
  24. package/dist-cjs/pagination/ListTestSetsPaginator.js +2 -24
  25. package/dist-cjs/pagination/ListUtteranceAnalyticsDataPaginator.js +2 -24
  26. package/dist-cjs/pagination/ListUtteranceMetricsPaginator.js +2 -24
  27. package/dist-es/pagination/ListAggregatedUtterancesPaginator.js +2 -23
  28. package/dist-es/pagination/ListBotAliasesPaginator.js +2 -23
  29. package/dist-es/pagination/ListBotLocalesPaginator.js +2 -23
  30. package/dist-es/pagination/ListBotRecommendationsPaginator.js +2 -23
  31. package/dist-es/pagination/ListBotResourceGenerationsPaginator.js +2 -23
  32. package/dist-es/pagination/ListBotVersionsPaginator.js +2 -23
  33. package/dist-es/pagination/ListBotsPaginator.js +2 -23
  34. package/dist-es/pagination/ListBuiltInIntentsPaginator.js +2 -23
  35. package/dist-es/pagination/ListBuiltInSlotTypesPaginator.js +2 -23
  36. package/dist-es/pagination/ListCustomVocabularyItemsPaginator.js +2 -23
  37. package/dist-es/pagination/ListExportsPaginator.js +2 -23
  38. package/dist-es/pagination/ListImportsPaginator.js +2 -23
  39. package/dist-es/pagination/ListIntentMetricsPaginator.js +2 -23
  40. package/dist-es/pagination/ListIntentStageMetricsPaginator.js +2 -23
  41. package/dist-es/pagination/ListIntentsPaginator.js +2 -23
  42. package/dist-es/pagination/ListRecommendedIntentsPaginator.js +2 -23
  43. package/dist-es/pagination/ListSessionAnalyticsDataPaginator.js +2 -23
  44. package/dist-es/pagination/ListSessionMetricsPaginator.js +2 -23
  45. package/dist-es/pagination/ListSlotTypesPaginator.js +2 -23
  46. package/dist-es/pagination/ListSlotsPaginator.js +2 -23
  47. package/dist-es/pagination/ListTestExecutionResultItemsPaginator.js +2 -23
  48. package/dist-es/pagination/ListTestExecutionsPaginator.js +2 -23
  49. package/dist-es/pagination/ListTestSetRecordsPaginator.js +2 -23
  50. package/dist-es/pagination/ListTestSetsPaginator.js +2 -23
  51. package/dist-es/pagination/ListUtteranceAnalyticsDataPaginator.js +2 -23
  52. package/dist-es/pagination/ListUtteranceMetricsPaginator.js +2 -23
  53. package/dist-types/pagination/ListAggregatedUtterancesPaginator.d.ts +1 -1
  54. package/dist-types/pagination/ListBotAliasesPaginator.d.ts +1 -1
  55. package/dist-types/pagination/ListBotLocalesPaginator.d.ts +1 -1
  56. package/dist-types/pagination/ListBotRecommendationsPaginator.d.ts +1 -1
  57. package/dist-types/pagination/ListBotResourceGenerationsPaginator.d.ts +1 -1
  58. package/dist-types/pagination/ListBotVersionsPaginator.d.ts +1 -1
  59. package/dist-types/pagination/ListBotsPaginator.d.ts +1 -1
  60. package/dist-types/pagination/ListBuiltInIntentsPaginator.d.ts +1 -1
  61. package/dist-types/pagination/ListBuiltInSlotTypesPaginator.d.ts +1 -1
  62. package/dist-types/pagination/ListCustomVocabularyItemsPaginator.d.ts +1 -1
  63. package/dist-types/pagination/ListExportsPaginator.d.ts +1 -1
  64. package/dist-types/pagination/ListImportsPaginator.d.ts +1 -1
  65. package/dist-types/pagination/ListIntentMetricsPaginator.d.ts +1 -1
  66. package/dist-types/pagination/ListIntentStageMetricsPaginator.d.ts +1 -1
  67. package/dist-types/pagination/ListIntentsPaginator.d.ts +1 -1
  68. package/dist-types/pagination/ListRecommendedIntentsPaginator.d.ts +1 -1
  69. package/dist-types/pagination/ListSessionAnalyticsDataPaginator.d.ts +1 -1
  70. package/dist-types/pagination/ListSessionMetricsPaginator.d.ts +1 -1
  71. package/dist-types/pagination/ListSlotTypesPaginator.d.ts +1 -1
  72. package/dist-types/pagination/ListSlotsPaginator.d.ts +1 -1
  73. package/dist-types/pagination/ListTestExecutionResultItemsPaginator.d.ts +1 -1
  74. package/dist-types/pagination/ListTestExecutionsPaginator.d.ts +1 -1
  75. package/dist-types/pagination/ListTestSetRecordsPaginator.d.ts +1 -1
  76. package/dist-types/pagination/ListTestSetsPaginator.d.ts +1 -1
  77. package/dist-types/pagination/ListUtteranceAnalyticsDataPaginator.d.ts +1 -1
  78. package/dist-types/pagination/ListUtteranceMetricsPaginator.d.ts +1 -1
  79. package/dist-types/ts3.4/pagination/ListAggregatedUtterancesPaginator.d.ts +3 -3
  80. package/dist-types/ts3.4/pagination/ListBotAliasesPaginator.d.ts +3 -3
  81. package/dist-types/ts3.4/pagination/ListBotLocalesPaginator.d.ts +3 -3
  82. package/dist-types/ts3.4/pagination/ListBotRecommendationsPaginator.d.ts +3 -3
  83. package/dist-types/ts3.4/pagination/ListBotResourceGenerationsPaginator.d.ts +3 -3
  84. package/dist-types/ts3.4/pagination/ListBotVersionsPaginator.d.ts +3 -3
  85. package/dist-types/ts3.4/pagination/ListBotsPaginator.d.ts +3 -3
  86. package/dist-types/ts3.4/pagination/ListBuiltInIntentsPaginator.d.ts +3 -3
  87. package/dist-types/ts3.4/pagination/ListBuiltInSlotTypesPaginator.d.ts +3 -3
  88. package/dist-types/ts3.4/pagination/ListCustomVocabularyItemsPaginator.d.ts +3 -3
  89. package/dist-types/ts3.4/pagination/ListExportsPaginator.d.ts +3 -3
  90. package/dist-types/ts3.4/pagination/ListImportsPaginator.d.ts +3 -3
  91. package/dist-types/ts3.4/pagination/ListIntentMetricsPaginator.d.ts +3 -3
  92. package/dist-types/ts3.4/pagination/ListIntentStageMetricsPaginator.d.ts +3 -3
  93. package/dist-types/ts3.4/pagination/ListIntentsPaginator.d.ts +3 -3
  94. package/dist-types/ts3.4/pagination/ListRecommendedIntentsPaginator.d.ts +3 -3
  95. package/dist-types/ts3.4/pagination/ListSessionAnalyticsDataPaginator.d.ts +3 -3
  96. package/dist-types/ts3.4/pagination/ListSessionMetricsPaginator.d.ts +3 -3
  97. package/dist-types/ts3.4/pagination/ListSlotTypesPaginator.d.ts +3 -3
  98. package/dist-types/ts3.4/pagination/ListSlotsPaginator.d.ts +3 -3
  99. package/dist-types/ts3.4/pagination/ListTestExecutionResultItemsPaginator.d.ts +3 -3
  100. package/dist-types/ts3.4/pagination/ListTestExecutionsPaginator.d.ts +3 -3
  101. package/dist-types/ts3.4/pagination/ListTestSetRecordsPaginator.d.ts +3 -3
  102. package/dist-types/ts3.4/pagination/ListTestSetsPaginator.d.ts +3 -3
  103. package/dist-types/ts3.4/pagination/ListUtteranceAnalyticsDataPaginator.d.ts +3 -3
  104. package/dist-types/ts3.4/pagination/ListUtteranceMetricsPaginator.d.ts +3 -3
  105. package/package.json +5 -5
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAggregatedUtterances = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAggregatedUtterancesCommand_1 = require("../commands/ListAggregatedUtterancesCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAggregatedUtterancesCommand_1.ListAggregatedUtterancesCommand(input), ...args);
8
- };
9
- async function* paginateListAggregatedUtterances(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListAggregatedUtterances = paginateListAggregatedUtterances;
7
+ exports.paginateListAggregatedUtterances = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListAggregatedUtterancesCommand_1.ListAggregatedUtterancesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBotAliases = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListBotAliasesCommand_1 = require("../commands/ListBotAliasesCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListBotAliasesCommand_1.ListBotAliasesCommand(input), ...args);
8
- };
9
- async function* paginateListBotAliases(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListBotAliases = paginateListBotAliases;
7
+ exports.paginateListBotAliases = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListBotAliasesCommand_1.ListBotAliasesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBotLocales = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListBotLocalesCommand_1 = require("../commands/ListBotLocalesCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListBotLocalesCommand_1.ListBotLocalesCommand(input), ...args);
8
- };
9
- async function* paginateListBotLocales(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListBotLocales = paginateListBotLocales;
7
+ exports.paginateListBotLocales = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListBotLocalesCommand_1.ListBotLocalesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBotRecommendations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListBotRecommendationsCommand_1 = require("../commands/ListBotRecommendationsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListBotRecommendationsCommand_1.ListBotRecommendationsCommand(input), ...args);
8
- };
9
- async function* paginateListBotRecommendations(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListBotRecommendations = paginateListBotRecommendations;
7
+ exports.paginateListBotRecommendations = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListBotRecommendationsCommand_1.ListBotRecommendationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBotResourceGenerations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListBotResourceGenerationsCommand_1 = require("../commands/ListBotResourceGenerationsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListBotResourceGenerationsCommand_1.ListBotResourceGenerationsCommand(input), ...args);
8
- };
9
- async function* paginateListBotResourceGenerations(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListBotResourceGenerations = paginateListBotResourceGenerations;
7
+ exports.paginateListBotResourceGenerations = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListBotResourceGenerationsCommand_1.ListBotResourceGenerationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBotVersions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListBotVersionsCommand_1 = require("../commands/ListBotVersionsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListBotVersionsCommand_1.ListBotVersionsCommand(input), ...args);
8
- };
9
- async function* paginateListBotVersions(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListBotVersions = paginateListBotVersions;
7
+ exports.paginateListBotVersions = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListBotVersionsCommand_1.ListBotVersionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBots = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListBotsCommand_1 = require("../commands/ListBotsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListBotsCommand_1.ListBotsCommand(input), ...args);
8
- };
9
- async function* paginateListBots(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListBots = paginateListBots;
7
+ exports.paginateListBots = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListBotsCommand_1.ListBotsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBuiltInIntents = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListBuiltInIntentsCommand_1 = require("../commands/ListBuiltInIntentsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListBuiltInIntentsCommand_1.ListBuiltInIntentsCommand(input), ...args);
8
- };
9
- async function* paginateListBuiltInIntents(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListBuiltInIntents = paginateListBuiltInIntents;
7
+ exports.paginateListBuiltInIntents = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListBuiltInIntentsCommand_1.ListBuiltInIntentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBuiltInSlotTypes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListBuiltInSlotTypesCommand_1 = require("../commands/ListBuiltInSlotTypesCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListBuiltInSlotTypesCommand_1.ListBuiltInSlotTypesCommand(input), ...args);
8
- };
9
- async function* paginateListBuiltInSlotTypes(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListBuiltInSlotTypes = paginateListBuiltInSlotTypes;
7
+ exports.paginateListBuiltInSlotTypes = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListBuiltInSlotTypesCommand_1.ListBuiltInSlotTypesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListCustomVocabularyItems = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListCustomVocabularyItemsCommand_1 = require("../commands/ListCustomVocabularyItemsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListCustomVocabularyItemsCommand_1.ListCustomVocabularyItemsCommand(input), ...args);
8
- };
9
- async function* paginateListCustomVocabularyItems(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListCustomVocabularyItems = paginateListCustomVocabularyItems;
7
+ exports.paginateListCustomVocabularyItems = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListCustomVocabularyItemsCommand_1.ListCustomVocabularyItemsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListExports = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListExportsCommand_1 = require("../commands/ListExportsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListExportsCommand_1.ListExportsCommand(input), ...args);
8
- };
9
- async function* paginateListExports(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListExports = paginateListExports;
7
+ exports.paginateListExports = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListExportsCommand_1.ListExportsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListImports = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListImportsCommand_1 = require("../commands/ListImportsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListImportsCommand_1.ListImportsCommand(input), ...args);
8
- };
9
- async function* paginateListImports(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListImports = paginateListImports;
7
+ exports.paginateListImports = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListImportsCommand_1.ListImportsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListIntentMetrics = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListIntentMetricsCommand_1 = require("../commands/ListIntentMetricsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListIntentMetricsCommand_1.ListIntentMetricsCommand(input), ...args);
8
- };
9
- async function* paginateListIntentMetrics(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListIntentMetrics = paginateListIntentMetrics;
7
+ exports.paginateListIntentMetrics = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListIntentMetricsCommand_1.ListIntentMetricsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListIntentStageMetrics = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListIntentStageMetricsCommand_1 = require("../commands/ListIntentStageMetricsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListIntentStageMetricsCommand_1.ListIntentStageMetricsCommand(input), ...args);
8
- };
9
- async function* paginateListIntentStageMetrics(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListIntentStageMetrics = paginateListIntentStageMetrics;
7
+ exports.paginateListIntentStageMetrics = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListIntentStageMetricsCommand_1.ListIntentStageMetricsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListIntents = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListIntentsCommand_1 = require("../commands/ListIntentsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListIntentsCommand_1.ListIntentsCommand(input), ...args);
8
- };
9
- async function* paginateListIntents(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListIntents = paginateListIntents;
7
+ exports.paginateListIntents = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListIntentsCommand_1.ListIntentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListRecommendedIntents = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListRecommendedIntentsCommand_1 = require("../commands/ListRecommendedIntentsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListRecommendedIntentsCommand_1.ListRecommendedIntentsCommand(input), ...args);
8
- };
9
- async function* paginateListRecommendedIntents(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListRecommendedIntents = paginateListRecommendedIntents;
7
+ exports.paginateListRecommendedIntents = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListRecommendedIntentsCommand_1.ListRecommendedIntentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSessionAnalyticsData = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListSessionAnalyticsDataCommand_1 = require("../commands/ListSessionAnalyticsDataCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSessionAnalyticsDataCommand_1.ListSessionAnalyticsDataCommand(input), ...args);
8
- };
9
- async function* paginateListSessionAnalyticsData(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListSessionAnalyticsData = paginateListSessionAnalyticsData;
7
+ exports.paginateListSessionAnalyticsData = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListSessionAnalyticsDataCommand_1.ListSessionAnalyticsDataCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSessionMetrics = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListSessionMetricsCommand_1 = require("../commands/ListSessionMetricsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSessionMetricsCommand_1.ListSessionMetricsCommand(input), ...args);
8
- };
9
- async function* paginateListSessionMetrics(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListSessionMetrics = paginateListSessionMetrics;
7
+ exports.paginateListSessionMetrics = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListSessionMetricsCommand_1.ListSessionMetricsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSlotTypes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListSlotTypesCommand_1 = require("../commands/ListSlotTypesCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSlotTypesCommand_1.ListSlotTypesCommand(input), ...args);
8
- };
9
- async function* paginateListSlotTypes(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListSlotTypes = paginateListSlotTypes;
7
+ exports.paginateListSlotTypes = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListSlotTypesCommand_1.ListSlotTypesCommand, "nextToken", "nextToken", "maxResults");