@aws-sdk/client-entityresolution 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 (27) hide show
  1. package/dist-cjs/pagination/ListIdMappingJobsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListIdMappingWorkflowsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListMatchingJobsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListMatchingWorkflowsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListProviderServicesPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListSchemaMappingsPaginator.js +2 -24
  7. package/dist-cjs/protocols/Aws_restJson1.js +151 -346
  8. package/dist-es/pagination/ListIdMappingJobsPaginator.js +2 -23
  9. package/dist-es/pagination/ListIdMappingWorkflowsPaginator.js +2 -23
  10. package/dist-es/pagination/ListMatchingJobsPaginator.js +2 -23
  11. package/dist-es/pagination/ListMatchingWorkflowsPaginator.js +2 -23
  12. package/dist-es/pagination/ListProviderServicesPaginator.js +2 -23
  13. package/dist-es/pagination/ListSchemaMappingsPaginator.js +2 -23
  14. package/dist-es/protocols/Aws_restJson1.js +152 -347
  15. package/dist-types/pagination/ListIdMappingJobsPaginator.d.ts +1 -1
  16. package/dist-types/pagination/ListIdMappingWorkflowsPaginator.d.ts +1 -1
  17. package/dist-types/pagination/ListMatchingJobsPaginator.d.ts +1 -1
  18. package/dist-types/pagination/ListMatchingWorkflowsPaginator.d.ts +1 -1
  19. package/dist-types/pagination/ListProviderServicesPaginator.d.ts +1 -1
  20. package/dist-types/pagination/ListSchemaMappingsPaginator.d.ts +1 -1
  21. package/dist-types/ts3.4/pagination/ListIdMappingJobsPaginator.d.ts +3 -3
  22. package/dist-types/ts3.4/pagination/ListIdMappingWorkflowsPaginator.d.ts +3 -3
  23. package/dist-types/ts3.4/pagination/ListMatchingJobsPaginator.d.ts +3 -3
  24. package/dist-types/ts3.4/pagination/ListMatchingWorkflowsPaginator.d.ts +3 -3
  25. package/dist-types/ts3.4/pagination/ListProviderServicesPaginator.d.ts +3 -3
  26. package/dist-types/ts3.4/pagination/ListSchemaMappingsPaginator.d.ts +3 -3
  27. package/package.json +7 -6
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListIdMappingJobsCommand, } from "../commands/ListIdMappingJobsCommand";
2
3
  import { EntityResolutionClient } from "../EntityResolutionClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListIdMappingJobsCommand(input), ...args);
5
- };
6
- export async function* paginateListIdMappingJobs(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 EntityResolutionClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected EntityResolution | EntityResolutionClient");
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 paginateListIdMappingJobs = createPaginator(EntityResolutionClient, ListIdMappingJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListIdMappingWorkflowsCommand, } from "../commands/ListIdMappingWorkflowsCommand";
2
3
  import { EntityResolutionClient } from "../EntityResolutionClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListIdMappingWorkflowsCommand(input), ...args);
5
- };
6
- export async function* paginateListIdMappingWorkflows(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 EntityResolutionClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected EntityResolution | EntityResolutionClient");
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 paginateListIdMappingWorkflows = createPaginator(EntityResolutionClient, ListIdMappingWorkflowsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListMatchingJobsCommand, } from "../commands/ListMatchingJobsCommand";
2
3
  import { EntityResolutionClient } from "../EntityResolutionClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListMatchingJobsCommand(input), ...args);
5
- };
6
- export async function* paginateListMatchingJobs(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 EntityResolutionClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected EntityResolution | EntityResolutionClient");
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 paginateListMatchingJobs = createPaginator(EntityResolutionClient, ListMatchingJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListMatchingWorkflowsCommand, } from "../commands/ListMatchingWorkflowsCommand";
2
3
  import { EntityResolutionClient } from "../EntityResolutionClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListMatchingWorkflowsCommand(input), ...args);
5
- };
6
- export async function* paginateListMatchingWorkflows(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 EntityResolutionClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected EntityResolution | EntityResolutionClient");
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 paginateListMatchingWorkflows = createPaginator(EntityResolutionClient, ListMatchingWorkflowsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListProviderServicesCommand, } from "../commands/ListProviderServicesCommand";
2
3
  import { EntityResolutionClient } from "../EntityResolutionClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListProviderServicesCommand(input), ...args);
5
- };
6
- export async function* paginateListProviderServices(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 EntityResolutionClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected EntityResolution | EntityResolutionClient");
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 paginateListProviderServices = createPaginator(EntityResolutionClient, ListProviderServicesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListSchemaMappingsCommand, } from "../commands/ListSchemaMappingsCommand";
2
3
  import { EntityResolutionClient } from "../EntityResolutionClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSchemaMappingsCommand(input), ...args);
5
- };
6
- export async function* paginateListSchemaMappings(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 EntityResolutionClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected EntityResolution | EntityResolutionClient");
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 paginateListSchemaMappings = createPaginator(EntityResolutionClient, ListSchemaMappingsCommand, "nextToken", "nextToken", "maxResults");