@aws-sdk/client-personalize 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 (65) hide show
  1. package/dist-cjs/pagination/ListBatchInferenceJobsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListBatchSegmentJobsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListCampaignsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListDatasetExportJobsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListDatasetGroupsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListDatasetImportJobsPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListDatasetsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListEventTrackersPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListFiltersPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListMetricAttributionMetricsPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListMetricAttributionsPaginator.js +2 -24
  12. package/dist-cjs/pagination/ListRecipesPaginator.js +2 -24
  13. package/dist-cjs/pagination/ListRecommendersPaginator.js +2 -24
  14. package/dist-cjs/pagination/ListSchemasPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListSolutionVersionsPaginator.js +2 -24
  16. package/dist-cjs/pagination/ListSolutionsPaginator.js +2 -24
  17. package/dist-es/pagination/ListBatchInferenceJobsPaginator.js +2 -23
  18. package/dist-es/pagination/ListBatchSegmentJobsPaginator.js +2 -23
  19. package/dist-es/pagination/ListCampaignsPaginator.js +2 -23
  20. package/dist-es/pagination/ListDatasetExportJobsPaginator.js +2 -23
  21. package/dist-es/pagination/ListDatasetGroupsPaginator.js +2 -23
  22. package/dist-es/pagination/ListDatasetImportJobsPaginator.js +2 -23
  23. package/dist-es/pagination/ListDatasetsPaginator.js +2 -23
  24. package/dist-es/pagination/ListEventTrackersPaginator.js +2 -23
  25. package/dist-es/pagination/ListFiltersPaginator.js +2 -23
  26. package/dist-es/pagination/ListMetricAttributionMetricsPaginator.js +2 -23
  27. package/dist-es/pagination/ListMetricAttributionsPaginator.js +2 -23
  28. package/dist-es/pagination/ListRecipesPaginator.js +2 -23
  29. package/dist-es/pagination/ListRecommendersPaginator.js +2 -23
  30. package/dist-es/pagination/ListSchemasPaginator.js +2 -23
  31. package/dist-es/pagination/ListSolutionVersionsPaginator.js +2 -23
  32. package/dist-es/pagination/ListSolutionsPaginator.js +2 -23
  33. package/dist-types/pagination/ListBatchInferenceJobsPaginator.d.ts +1 -1
  34. package/dist-types/pagination/ListBatchSegmentJobsPaginator.d.ts +1 -1
  35. package/dist-types/pagination/ListCampaignsPaginator.d.ts +1 -1
  36. package/dist-types/pagination/ListDatasetExportJobsPaginator.d.ts +1 -1
  37. package/dist-types/pagination/ListDatasetGroupsPaginator.d.ts +1 -1
  38. package/dist-types/pagination/ListDatasetImportJobsPaginator.d.ts +1 -1
  39. package/dist-types/pagination/ListDatasetsPaginator.d.ts +1 -1
  40. package/dist-types/pagination/ListEventTrackersPaginator.d.ts +1 -1
  41. package/dist-types/pagination/ListFiltersPaginator.d.ts +1 -1
  42. package/dist-types/pagination/ListMetricAttributionMetricsPaginator.d.ts +1 -1
  43. package/dist-types/pagination/ListMetricAttributionsPaginator.d.ts +1 -1
  44. package/dist-types/pagination/ListRecipesPaginator.d.ts +1 -1
  45. package/dist-types/pagination/ListRecommendersPaginator.d.ts +1 -1
  46. package/dist-types/pagination/ListSchemasPaginator.d.ts +1 -1
  47. package/dist-types/pagination/ListSolutionVersionsPaginator.d.ts +1 -1
  48. package/dist-types/pagination/ListSolutionsPaginator.d.ts +1 -1
  49. package/dist-types/ts3.4/pagination/ListBatchInferenceJobsPaginator.d.ts +3 -3
  50. package/dist-types/ts3.4/pagination/ListBatchSegmentJobsPaginator.d.ts +3 -3
  51. package/dist-types/ts3.4/pagination/ListCampaignsPaginator.d.ts +3 -3
  52. package/dist-types/ts3.4/pagination/ListDatasetExportJobsPaginator.d.ts +3 -3
  53. package/dist-types/ts3.4/pagination/ListDatasetGroupsPaginator.d.ts +3 -3
  54. package/dist-types/ts3.4/pagination/ListDatasetImportJobsPaginator.d.ts +3 -3
  55. package/dist-types/ts3.4/pagination/ListDatasetsPaginator.d.ts +3 -3
  56. package/dist-types/ts3.4/pagination/ListEventTrackersPaginator.d.ts +3 -3
  57. package/dist-types/ts3.4/pagination/ListFiltersPaginator.d.ts +3 -3
  58. package/dist-types/ts3.4/pagination/ListMetricAttributionMetricsPaginator.d.ts +3 -3
  59. package/dist-types/ts3.4/pagination/ListMetricAttributionsPaginator.d.ts +3 -3
  60. package/dist-types/ts3.4/pagination/ListRecipesPaginator.d.ts +3 -3
  61. package/dist-types/ts3.4/pagination/ListRecommendersPaginator.d.ts +3 -3
  62. package/dist-types/ts3.4/pagination/ListSchemasPaginator.d.ts +3 -3
  63. package/dist-types/ts3.4/pagination/ListSolutionVersionsPaginator.d.ts +3 -3
  64. package/dist-types/ts3.4/pagination/ListSolutionsPaginator.d.ts +3 -3
  65. package/package.json +6 -5
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBatchInferenceJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListBatchInferenceJobsCommand_1 = require("../commands/ListBatchInferenceJobsCommand");
5
6
  const PersonalizeClient_1 = require("../PersonalizeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListBatchInferenceJobsCommand_1.ListBatchInferenceJobsCommand(input), ...args);
8
- };
9
- async function* paginateListBatchInferenceJobs(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 PersonalizeClient_1.PersonalizeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Personalize | PersonalizeClient");
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.paginateListBatchInferenceJobs = paginateListBatchInferenceJobs;
7
+ exports.paginateListBatchInferenceJobs = (0, core_1.createPaginator)(PersonalizeClient_1.PersonalizeClient, ListBatchInferenceJobsCommand_1.ListBatchInferenceJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBatchSegmentJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListBatchSegmentJobsCommand_1 = require("../commands/ListBatchSegmentJobsCommand");
5
6
  const PersonalizeClient_1 = require("../PersonalizeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListBatchSegmentJobsCommand_1.ListBatchSegmentJobsCommand(input), ...args);
8
- };
9
- async function* paginateListBatchSegmentJobs(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 PersonalizeClient_1.PersonalizeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Personalize | PersonalizeClient");
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.paginateListBatchSegmentJobs = paginateListBatchSegmentJobs;
7
+ exports.paginateListBatchSegmentJobs = (0, core_1.createPaginator)(PersonalizeClient_1.PersonalizeClient, ListBatchSegmentJobsCommand_1.ListBatchSegmentJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListCampaigns = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListCampaignsCommand_1 = require("../commands/ListCampaignsCommand");
5
6
  const PersonalizeClient_1 = require("../PersonalizeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListCampaignsCommand_1.ListCampaignsCommand(input), ...args);
8
- };
9
- async function* paginateListCampaigns(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 PersonalizeClient_1.PersonalizeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Personalize | PersonalizeClient");
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.paginateListCampaigns = paginateListCampaigns;
7
+ exports.paginateListCampaigns = (0, core_1.createPaginator)(PersonalizeClient_1.PersonalizeClient, ListCampaignsCommand_1.ListCampaignsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDatasetExportJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListDatasetExportJobsCommand_1 = require("../commands/ListDatasetExportJobsCommand");
5
6
  const PersonalizeClient_1 = require("../PersonalizeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDatasetExportJobsCommand_1.ListDatasetExportJobsCommand(input), ...args);
8
- };
9
- async function* paginateListDatasetExportJobs(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 PersonalizeClient_1.PersonalizeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Personalize | PersonalizeClient");
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.paginateListDatasetExportJobs = paginateListDatasetExportJobs;
7
+ exports.paginateListDatasetExportJobs = (0, core_1.createPaginator)(PersonalizeClient_1.PersonalizeClient, ListDatasetExportJobsCommand_1.ListDatasetExportJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDatasetGroups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListDatasetGroupsCommand_1 = require("../commands/ListDatasetGroupsCommand");
5
6
  const PersonalizeClient_1 = require("../PersonalizeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDatasetGroupsCommand_1.ListDatasetGroupsCommand(input), ...args);
8
- };
9
- async function* paginateListDatasetGroups(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 PersonalizeClient_1.PersonalizeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Personalize | PersonalizeClient");
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.paginateListDatasetGroups = paginateListDatasetGroups;
7
+ exports.paginateListDatasetGroups = (0, core_1.createPaginator)(PersonalizeClient_1.PersonalizeClient, ListDatasetGroupsCommand_1.ListDatasetGroupsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDatasetImportJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListDatasetImportJobsCommand_1 = require("../commands/ListDatasetImportJobsCommand");
5
6
  const PersonalizeClient_1 = require("../PersonalizeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDatasetImportJobsCommand_1.ListDatasetImportJobsCommand(input), ...args);
8
- };
9
- async function* paginateListDatasetImportJobs(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 PersonalizeClient_1.PersonalizeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Personalize | PersonalizeClient");
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.paginateListDatasetImportJobs = paginateListDatasetImportJobs;
7
+ exports.paginateListDatasetImportJobs = (0, core_1.createPaginator)(PersonalizeClient_1.PersonalizeClient, ListDatasetImportJobsCommand_1.ListDatasetImportJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDatasets = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListDatasetsCommand_1 = require("../commands/ListDatasetsCommand");
5
6
  const PersonalizeClient_1 = require("../PersonalizeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDatasetsCommand_1.ListDatasetsCommand(input), ...args);
8
- };
9
- async function* paginateListDatasets(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 PersonalizeClient_1.PersonalizeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Personalize | PersonalizeClient");
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.paginateListDatasets = paginateListDatasets;
7
+ exports.paginateListDatasets = (0, core_1.createPaginator)(PersonalizeClient_1.PersonalizeClient, ListDatasetsCommand_1.ListDatasetsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListEventTrackers = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListEventTrackersCommand_1 = require("../commands/ListEventTrackersCommand");
5
6
  const PersonalizeClient_1 = require("../PersonalizeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListEventTrackersCommand_1.ListEventTrackersCommand(input), ...args);
8
- };
9
- async function* paginateListEventTrackers(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 PersonalizeClient_1.PersonalizeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Personalize | PersonalizeClient");
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.paginateListEventTrackers = paginateListEventTrackers;
7
+ exports.paginateListEventTrackers = (0, core_1.createPaginator)(PersonalizeClient_1.PersonalizeClient, ListEventTrackersCommand_1.ListEventTrackersCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListFilters = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListFiltersCommand_1 = require("../commands/ListFiltersCommand");
5
6
  const PersonalizeClient_1 = require("../PersonalizeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListFiltersCommand_1.ListFiltersCommand(input), ...args);
8
- };
9
- async function* paginateListFilters(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 PersonalizeClient_1.PersonalizeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Personalize | PersonalizeClient");
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.paginateListFilters = paginateListFilters;
7
+ exports.paginateListFilters = (0, core_1.createPaginator)(PersonalizeClient_1.PersonalizeClient, ListFiltersCommand_1.ListFiltersCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListMetricAttributionMetrics = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListMetricAttributionMetricsCommand_1 = require("../commands/ListMetricAttributionMetricsCommand");
5
6
  const PersonalizeClient_1 = require("../PersonalizeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListMetricAttributionMetricsCommand_1.ListMetricAttributionMetricsCommand(input), ...args);
8
- };
9
- async function* paginateListMetricAttributionMetrics(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 PersonalizeClient_1.PersonalizeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Personalize | PersonalizeClient");
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.paginateListMetricAttributionMetrics = paginateListMetricAttributionMetrics;
7
+ exports.paginateListMetricAttributionMetrics = (0, core_1.createPaginator)(PersonalizeClient_1.PersonalizeClient, ListMetricAttributionMetricsCommand_1.ListMetricAttributionMetricsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListMetricAttributions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListMetricAttributionsCommand_1 = require("../commands/ListMetricAttributionsCommand");
5
6
  const PersonalizeClient_1 = require("../PersonalizeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListMetricAttributionsCommand_1.ListMetricAttributionsCommand(input), ...args);
8
- };
9
- async function* paginateListMetricAttributions(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 PersonalizeClient_1.PersonalizeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Personalize | PersonalizeClient");
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.paginateListMetricAttributions = paginateListMetricAttributions;
7
+ exports.paginateListMetricAttributions = (0, core_1.createPaginator)(PersonalizeClient_1.PersonalizeClient, ListMetricAttributionsCommand_1.ListMetricAttributionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListRecipes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListRecipesCommand_1 = require("../commands/ListRecipesCommand");
5
6
  const PersonalizeClient_1 = require("../PersonalizeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListRecipesCommand_1.ListRecipesCommand(input), ...args);
8
- };
9
- async function* paginateListRecipes(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 PersonalizeClient_1.PersonalizeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Personalize | PersonalizeClient");
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.paginateListRecipes = paginateListRecipes;
7
+ exports.paginateListRecipes = (0, core_1.createPaginator)(PersonalizeClient_1.PersonalizeClient, ListRecipesCommand_1.ListRecipesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListRecommenders = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListRecommendersCommand_1 = require("../commands/ListRecommendersCommand");
5
6
  const PersonalizeClient_1 = require("../PersonalizeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListRecommendersCommand_1.ListRecommendersCommand(input), ...args);
8
- };
9
- async function* paginateListRecommenders(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 PersonalizeClient_1.PersonalizeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Personalize | PersonalizeClient");
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.paginateListRecommenders = paginateListRecommenders;
7
+ exports.paginateListRecommenders = (0, core_1.createPaginator)(PersonalizeClient_1.PersonalizeClient, ListRecommendersCommand_1.ListRecommendersCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSchemas = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListSchemasCommand_1 = require("../commands/ListSchemasCommand");
5
6
  const PersonalizeClient_1 = require("../PersonalizeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSchemasCommand_1.ListSchemasCommand(input), ...args);
8
- };
9
- async function* paginateListSchemas(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 PersonalizeClient_1.PersonalizeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Personalize | PersonalizeClient");
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.paginateListSchemas = paginateListSchemas;
7
+ exports.paginateListSchemas = (0, core_1.createPaginator)(PersonalizeClient_1.PersonalizeClient, ListSchemasCommand_1.ListSchemasCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSolutionVersions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListSolutionVersionsCommand_1 = require("../commands/ListSolutionVersionsCommand");
5
6
  const PersonalizeClient_1 = require("../PersonalizeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSolutionVersionsCommand_1.ListSolutionVersionsCommand(input), ...args);
8
- };
9
- async function* paginateListSolutionVersions(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 PersonalizeClient_1.PersonalizeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Personalize | PersonalizeClient");
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.paginateListSolutionVersions = paginateListSolutionVersions;
7
+ exports.paginateListSolutionVersions = (0, core_1.createPaginator)(PersonalizeClient_1.PersonalizeClient, ListSolutionVersionsCommand_1.ListSolutionVersionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSolutions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListSolutionsCommand_1 = require("../commands/ListSolutionsCommand");
5
6
  const PersonalizeClient_1 = require("../PersonalizeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSolutionsCommand_1.ListSolutionsCommand(input), ...args);
8
- };
9
- async function* paginateListSolutions(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 PersonalizeClient_1.PersonalizeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Personalize | PersonalizeClient");
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.paginateListSolutions = paginateListSolutions;
7
+ exports.paginateListSolutions = (0, core_1.createPaginator)(PersonalizeClient_1.PersonalizeClient, ListSolutionsCommand_1.ListSolutionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListBatchInferenceJobsCommand, } from "../commands/ListBatchInferenceJobsCommand";
2
3
  import { PersonalizeClient } from "../PersonalizeClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListBatchInferenceJobsCommand(input), ...args);
5
- };
6
- export async function* paginateListBatchInferenceJobs(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 PersonalizeClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Personalize | PersonalizeClient");
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 paginateListBatchInferenceJobs = createPaginator(PersonalizeClient, ListBatchInferenceJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListBatchSegmentJobsCommand, } from "../commands/ListBatchSegmentJobsCommand";
2
3
  import { PersonalizeClient } from "../PersonalizeClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListBatchSegmentJobsCommand(input), ...args);
5
- };
6
- export async function* paginateListBatchSegmentJobs(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 PersonalizeClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Personalize | PersonalizeClient");
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 paginateListBatchSegmentJobs = createPaginator(PersonalizeClient, ListBatchSegmentJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListCampaignsCommand, } from "../commands/ListCampaignsCommand";
2
3
  import { PersonalizeClient } from "../PersonalizeClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListCampaignsCommand(input), ...args);
5
- };
6
- export async function* paginateListCampaigns(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 PersonalizeClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Personalize | PersonalizeClient");
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 paginateListCampaigns = createPaginator(PersonalizeClient, ListCampaignsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListDatasetExportJobsCommand, } from "../commands/ListDatasetExportJobsCommand";
2
3
  import { PersonalizeClient } from "../PersonalizeClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDatasetExportJobsCommand(input), ...args);
5
- };
6
- export async function* paginateListDatasetExportJobs(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 PersonalizeClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Personalize | PersonalizeClient");
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 paginateListDatasetExportJobs = createPaginator(PersonalizeClient, ListDatasetExportJobsCommand, "nextToken", "nextToken", "maxResults");