@aws-sdk/client-frauddetector 3.476.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/DescribeModelVersionsPaginator.js +2 -24
  2. package/dist-cjs/pagination/GetBatchImportJobsPaginator.js +2 -24
  3. package/dist-cjs/pagination/GetBatchPredictionJobsPaginator.js +2 -24
  4. package/dist-cjs/pagination/GetDetectorsPaginator.js +2 -24
  5. package/dist-cjs/pagination/GetEntityTypesPaginator.js +2 -24
  6. package/dist-cjs/pagination/GetEventTypesPaginator.js +2 -24
  7. package/dist-cjs/pagination/GetExternalModelsPaginator.js +2 -24
  8. package/dist-cjs/pagination/GetLabelsPaginator.js +2 -24
  9. package/dist-cjs/pagination/GetListElementsPaginator.js +2 -24
  10. package/dist-cjs/pagination/GetListsMetadataPaginator.js +2 -24
  11. package/dist-cjs/pagination/GetModelsPaginator.js +2 -24
  12. package/dist-cjs/pagination/GetOutcomesPaginator.js +2 -24
  13. package/dist-cjs/pagination/GetRulesPaginator.js +2 -24
  14. package/dist-cjs/pagination/GetVariablesPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListEventPredictionsPaginator.js +2 -24
  16. package/dist-cjs/pagination/ListTagsForResourcePaginator.js +2 -24
  17. package/dist-es/pagination/DescribeModelVersionsPaginator.js +2 -23
  18. package/dist-es/pagination/GetBatchImportJobsPaginator.js +2 -23
  19. package/dist-es/pagination/GetBatchPredictionJobsPaginator.js +2 -23
  20. package/dist-es/pagination/GetDetectorsPaginator.js +2 -23
  21. package/dist-es/pagination/GetEntityTypesPaginator.js +2 -23
  22. package/dist-es/pagination/GetEventTypesPaginator.js +2 -23
  23. package/dist-es/pagination/GetExternalModelsPaginator.js +2 -23
  24. package/dist-es/pagination/GetLabelsPaginator.js +2 -23
  25. package/dist-es/pagination/GetListElementsPaginator.js +2 -23
  26. package/dist-es/pagination/GetListsMetadataPaginator.js +2 -23
  27. package/dist-es/pagination/GetModelsPaginator.js +2 -23
  28. package/dist-es/pagination/GetOutcomesPaginator.js +2 -23
  29. package/dist-es/pagination/GetRulesPaginator.js +2 -23
  30. package/dist-es/pagination/GetVariablesPaginator.js +2 -23
  31. package/dist-es/pagination/ListEventPredictionsPaginator.js +2 -23
  32. package/dist-es/pagination/ListTagsForResourcePaginator.js +2 -23
  33. package/dist-types/pagination/DescribeModelVersionsPaginator.d.ts +1 -1
  34. package/dist-types/pagination/GetBatchImportJobsPaginator.d.ts +1 -1
  35. package/dist-types/pagination/GetBatchPredictionJobsPaginator.d.ts +1 -1
  36. package/dist-types/pagination/GetDetectorsPaginator.d.ts +1 -1
  37. package/dist-types/pagination/GetEntityTypesPaginator.d.ts +1 -1
  38. package/dist-types/pagination/GetEventTypesPaginator.d.ts +1 -1
  39. package/dist-types/pagination/GetExternalModelsPaginator.d.ts +1 -1
  40. package/dist-types/pagination/GetLabelsPaginator.d.ts +1 -1
  41. package/dist-types/pagination/GetListElementsPaginator.d.ts +1 -1
  42. package/dist-types/pagination/GetListsMetadataPaginator.d.ts +1 -1
  43. package/dist-types/pagination/GetModelsPaginator.d.ts +1 -1
  44. package/dist-types/pagination/GetOutcomesPaginator.d.ts +1 -1
  45. package/dist-types/pagination/GetRulesPaginator.d.ts +1 -1
  46. package/dist-types/pagination/GetVariablesPaginator.d.ts +1 -1
  47. package/dist-types/pagination/ListEventPredictionsPaginator.d.ts +1 -1
  48. package/dist-types/pagination/ListTagsForResourcePaginator.d.ts +1 -1
  49. package/dist-types/ts3.4/pagination/DescribeModelVersionsPaginator.d.ts +3 -3
  50. package/dist-types/ts3.4/pagination/GetBatchImportJobsPaginator.d.ts +3 -3
  51. package/dist-types/ts3.4/pagination/GetBatchPredictionJobsPaginator.d.ts +3 -3
  52. package/dist-types/ts3.4/pagination/GetDetectorsPaginator.d.ts +3 -3
  53. package/dist-types/ts3.4/pagination/GetEntityTypesPaginator.d.ts +3 -3
  54. package/dist-types/ts3.4/pagination/GetEventTypesPaginator.d.ts +3 -3
  55. package/dist-types/ts3.4/pagination/GetExternalModelsPaginator.d.ts +3 -3
  56. package/dist-types/ts3.4/pagination/GetLabelsPaginator.d.ts +3 -3
  57. package/dist-types/ts3.4/pagination/GetListElementsPaginator.d.ts +3 -3
  58. package/dist-types/ts3.4/pagination/GetListsMetadataPaginator.d.ts +3 -3
  59. package/dist-types/ts3.4/pagination/GetModelsPaginator.d.ts +3 -3
  60. package/dist-types/ts3.4/pagination/GetOutcomesPaginator.d.ts +3 -3
  61. package/dist-types/ts3.4/pagination/GetRulesPaginator.d.ts +3 -3
  62. package/dist-types/ts3.4/pagination/GetVariablesPaginator.d.ts +3 -3
  63. package/dist-types/ts3.4/pagination/ListEventPredictionsPaginator.d.ts +3 -3
  64. package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +3 -3
  65. package/package.json +7 -6
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeModelVersions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeModelVersionsCommand_1 = require("../commands/DescribeModelVersionsCommand");
5
6
  const FraudDetectorClient_1 = require("../FraudDetectorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeModelVersionsCommand_1.DescribeModelVersionsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeModelVersions(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 FraudDetectorClient_1.FraudDetectorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
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.paginateDescribeModelVersions = paginateDescribeModelVersions;
7
+ exports.paginateDescribeModelVersions = (0, core_1.createPaginator)(FraudDetectorClient_1.FraudDetectorClient, DescribeModelVersionsCommand_1.DescribeModelVersionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetBatchImportJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetBatchImportJobsCommand_1 = require("../commands/GetBatchImportJobsCommand");
5
6
  const FraudDetectorClient_1 = require("../FraudDetectorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetBatchImportJobsCommand_1.GetBatchImportJobsCommand(input), ...args);
8
- };
9
- async function* paginateGetBatchImportJobs(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 FraudDetectorClient_1.FraudDetectorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
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.paginateGetBatchImportJobs = paginateGetBatchImportJobs;
7
+ exports.paginateGetBatchImportJobs = (0, core_1.createPaginator)(FraudDetectorClient_1.FraudDetectorClient, GetBatchImportJobsCommand_1.GetBatchImportJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetBatchPredictionJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetBatchPredictionJobsCommand_1 = require("../commands/GetBatchPredictionJobsCommand");
5
6
  const FraudDetectorClient_1 = require("../FraudDetectorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetBatchPredictionJobsCommand_1.GetBatchPredictionJobsCommand(input), ...args);
8
- };
9
- async function* paginateGetBatchPredictionJobs(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 FraudDetectorClient_1.FraudDetectorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
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.paginateGetBatchPredictionJobs = paginateGetBatchPredictionJobs;
7
+ exports.paginateGetBatchPredictionJobs = (0, core_1.createPaginator)(FraudDetectorClient_1.FraudDetectorClient, GetBatchPredictionJobsCommand_1.GetBatchPredictionJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetDetectors = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetDetectorsCommand_1 = require("../commands/GetDetectorsCommand");
5
6
  const FraudDetectorClient_1 = require("../FraudDetectorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetDetectorsCommand_1.GetDetectorsCommand(input), ...args);
8
- };
9
- async function* paginateGetDetectors(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 FraudDetectorClient_1.FraudDetectorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
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.paginateGetDetectors = paginateGetDetectors;
7
+ exports.paginateGetDetectors = (0, core_1.createPaginator)(FraudDetectorClient_1.FraudDetectorClient, GetDetectorsCommand_1.GetDetectorsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetEntityTypes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetEntityTypesCommand_1 = require("../commands/GetEntityTypesCommand");
5
6
  const FraudDetectorClient_1 = require("../FraudDetectorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetEntityTypesCommand_1.GetEntityTypesCommand(input), ...args);
8
- };
9
- async function* paginateGetEntityTypes(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 FraudDetectorClient_1.FraudDetectorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
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.paginateGetEntityTypes = paginateGetEntityTypes;
7
+ exports.paginateGetEntityTypes = (0, core_1.createPaginator)(FraudDetectorClient_1.FraudDetectorClient, GetEntityTypesCommand_1.GetEntityTypesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetEventTypes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetEventTypesCommand_1 = require("../commands/GetEventTypesCommand");
5
6
  const FraudDetectorClient_1 = require("../FraudDetectorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetEventTypesCommand_1.GetEventTypesCommand(input), ...args);
8
- };
9
- async function* paginateGetEventTypes(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 FraudDetectorClient_1.FraudDetectorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
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.paginateGetEventTypes = paginateGetEventTypes;
7
+ exports.paginateGetEventTypes = (0, core_1.createPaginator)(FraudDetectorClient_1.FraudDetectorClient, GetEventTypesCommand_1.GetEventTypesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetExternalModels = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetExternalModelsCommand_1 = require("../commands/GetExternalModelsCommand");
5
6
  const FraudDetectorClient_1 = require("../FraudDetectorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetExternalModelsCommand_1.GetExternalModelsCommand(input), ...args);
8
- };
9
- async function* paginateGetExternalModels(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 FraudDetectorClient_1.FraudDetectorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
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.paginateGetExternalModels = paginateGetExternalModels;
7
+ exports.paginateGetExternalModels = (0, core_1.createPaginator)(FraudDetectorClient_1.FraudDetectorClient, GetExternalModelsCommand_1.GetExternalModelsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetLabels = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetLabelsCommand_1 = require("../commands/GetLabelsCommand");
5
6
  const FraudDetectorClient_1 = require("../FraudDetectorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetLabelsCommand_1.GetLabelsCommand(input), ...args);
8
- };
9
- async function* paginateGetLabels(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 FraudDetectorClient_1.FraudDetectorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
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.paginateGetLabels = paginateGetLabels;
7
+ exports.paginateGetLabels = (0, core_1.createPaginator)(FraudDetectorClient_1.FraudDetectorClient, GetLabelsCommand_1.GetLabelsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetListElements = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetListElementsCommand_1 = require("../commands/GetListElementsCommand");
5
6
  const FraudDetectorClient_1 = require("../FraudDetectorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetListElementsCommand_1.GetListElementsCommand(input), ...args);
8
- };
9
- async function* paginateGetListElements(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 FraudDetectorClient_1.FraudDetectorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
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.paginateGetListElements = paginateGetListElements;
7
+ exports.paginateGetListElements = (0, core_1.createPaginator)(FraudDetectorClient_1.FraudDetectorClient, GetListElementsCommand_1.GetListElementsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetListsMetadata = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetListsMetadataCommand_1 = require("../commands/GetListsMetadataCommand");
5
6
  const FraudDetectorClient_1 = require("../FraudDetectorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetListsMetadataCommand_1.GetListsMetadataCommand(input), ...args);
8
- };
9
- async function* paginateGetListsMetadata(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 FraudDetectorClient_1.FraudDetectorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
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.paginateGetListsMetadata = paginateGetListsMetadata;
7
+ exports.paginateGetListsMetadata = (0, core_1.createPaginator)(FraudDetectorClient_1.FraudDetectorClient, GetListsMetadataCommand_1.GetListsMetadataCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetModels = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetModelsCommand_1 = require("../commands/GetModelsCommand");
5
6
  const FraudDetectorClient_1 = require("../FraudDetectorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetModelsCommand_1.GetModelsCommand(input), ...args);
8
- };
9
- async function* paginateGetModels(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 FraudDetectorClient_1.FraudDetectorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
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.paginateGetModels = paginateGetModels;
7
+ exports.paginateGetModels = (0, core_1.createPaginator)(FraudDetectorClient_1.FraudDetectorClient, GetModelsCommand_1.GetModelsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetOutcomes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetOutcomesCommand_1 = require("../commands/GetOutcomesCommand");
5
6
  const FraudDetectorClient_1 = require("../FraudDetectorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetOutcomesCommand_1.GetOutcomesCommand(input), ...args);
8
- };
9
- async function* paginateGetOutcomes(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 FraudDetectorClient_1.FraudDetectorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
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.paginateGetOutcomes = paginateGetOutcomes;
7
+ exports.paginateGetOutcomes = (0, core_1.createPaginator)(FraudDetectorClient_1.FraudDetectorClient, GetOutcomesCommand_1.GetOutcomesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetRules = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetRulesCommand_1 = require("../commands/GetRulesCommand");
5
6
  const FraudDetectorClient_1 = require("../FraudDetectorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetRulesCommand_1.GetRulesCommand(input), ...args);
8
- };
9
- async function* paginateGetRules(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 FraudDetectorClient_1.FraudDetectorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
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.paginateGetRules = paginateGetRules;
7
+ exports.paginateGetRules = (0, core_1.createPaginator)(FraudDetectorClient_1.FraudDetectorClient, GetRulesCommand_1.GetRulesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetVariables = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetVariablesCommand_1 = require("../commands/GetVariablesCommand");
5
6
  const FraudDetectorClient_1 = require("../FraudDetectorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetVariablesCommand_1.GetVariablesCommand(input), ...args);
8
- };
9
- async function* paginateGetVariables(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 FraudDetectorClient_1.FraudDetectorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
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.paginateGetVariables = paginateGetVariables;
7
+ exports.paginateGetVariables = (0, core_1.createPaginator)(FraudDetectorClient_1.FraudDetectorClient, GetVariablesCommand_1.GetVariablesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListEventPredictions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListEventPredictionsCommand_1 = require("../commands/ListEventPredictionsCommand");
5
6
  const FraudDetectorClient_1 = require("../FraudDetectorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListEventPredictionsCommand_1.ListEventPredictionsCommand(input), ...args);
8
- };
9
- async function* paginateListEventPredictions(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 FraudDetectorClient_1.FraudDetectorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
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.paginateListEventPredictions = paginateListEventPredictions;
7
+ exports.paginateListEventPredictions = (0, core_1.createPaginator)(FraudDetectorClient_1.FraudDetectorClient, ListEventPredictionsCommand_1.ListEventPredictionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTagsForResource = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListTagsForResourceCommand_1 = require("../commands/ListTagsForResourceCommand");
5
6
  const FraudDetectorClient_1 = require("../FraudDetectorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListTagsForResourceCommand_1.ListTagsForResourceCommand(input), ...args);
8
- };
9
- async function* paginateListTagsForResource(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 FraudDetectorClient_1.FraudDetectorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
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.paginateListTagsForResource = paginateListTagsForResource;
7
+ exports.paginateListTagsForResource = (0, core_1.createPaginator)(FraudDetectorClient_1.FraudDetectorClient, ListTagsForResourceCommand_1.ListTagsForResourceCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeModelVersionsCommand, } from "../commands/DescribeModelVersionsCommand";
2
3
  import { FraudDetectorClient } from "../FraudDetectorClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeModelVersionsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeModelVersions(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 FraudDetectorClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
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 paginateDescribeModelVersions = createPaginator(FraudDetectorClient, DescribeModelVersionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetBatchImportJobsCommand, } from "../commands/GetBatchImportJobsCommand";
2
3
  import { FraudDetectorClient } from "../FraudDetectorClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetBatchImportJobsCommand(input), ...args);
5
- };
6
- export async function* paginateGetBatchImportJobs(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 FraudDetectorClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
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 paginateGetBatchImportJobs = createPaginator(FraudDetectorClient, GetBatchImportJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetBatchPredictionJobsCommand, } from "../commands/GetBatchPredictionJobsCommand";
2
3
  import { FraudDetectorClient } from "../FraudDetectorClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetBatchPredictionJobsCommand(input), ...args);
5
- };
6
- export async function* paginateGetBatchPredictionJobs(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 FraudDetectorClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
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 paginateGetBatchPredictionJobs = createPaginator(FraudDetectorClient, GetBatchPredictionJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetDetectorsCommand, } from "../commands/GetDetectorsCommand";
2
3
  import { FraudDetectorClient } from "../FraudDetectorClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetDetectorsCommand(input), ...args);
5
- };
6
- export async function* paginateGetDetectors(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 FraudDetectorClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected FraudDetector | FraudDetectorClient");
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 paginateGetDetectors = createPaginator(FraudDetectorClient, GetDetectorsCommand, "nextToken", "nextToken", "maxResults");