@aws-sdk/client-entityresolution 3.477.0 → 3.481.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 (137) hide show
  1. package/dist-cjs/commands/CreateIdMappingWorkflowCommand.js +18 -41
  2. package/dist-cjs/commands/CreateMatchingWorkflowCommand.js +18 -41
  3. package/dist-cjs/commands/CreateSchemaMappingCommand.js +18 -41
  4. package/dist-cjs/commands/DeleteIdMappingWorkflowCommand.js +18 -41
  5. package/dist-cjs/commands/DeleteMatchingWorkflowCommand.js +18 -41
  6. package/dist-cjs/commands/DeleteSchemaMappingCommand.js +18 -41
  7. package/dist-cjs/commands/GetIdMappingJobCommand.js +18 -41
  8. package/dist-cjs/commands/GetIdMappingWorkflowCommand.js +18 -41
  9. package/dist-cjs/commands/GetMatchIdCommand.js +18 -41
  10. package/dist-cjs/commands/GetMatchingJobCommand.js +18 -41
  11. package/dist-cjs/commands/GetMatchingWorkflowCommand.js +18 -41
  12. package/dist-cjs/commands/GetProviderServiceCommand.js +18 -41
  13. package/dist-cjs/commands/GetSchemaMappingCommand.js +18 -41
  14. package/dist-cjs/commands/ListIdMappingJobsCommand.js +18 -41
  15. package/dist-cjs/commands/ListIdMappingWorkflowsCommand.js +18 -41
  16. package/dist-cjs/commands/ListMatchingJobsCommand.js +18 -41
  17. package/dist-cjs/commands/ListMatchingWorkflowsCommand.js +18 -41
  18. package/dist-cjs/commands/ListProviderServicesCommand.js +18 -41
  19. package/dist-cjs/commands/ListSchemaMappingsCommand.js +18 -41
  20. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  21. package/dist-cjs/commands/StartIdMappingJobCommand.js +18 -41
  22. package/dist-cjs/commands/StartMatchingJobCommand.js +18 -41
  23. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  24. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  25. package/dist-cjs/commands/UpdateIdMappingWorkflowCommand.js +18 -41
  26. package/dist-cjs/commands/UpdateMatchingWorkflowCommand.js +18 -41
  27. package/dist-cjs/commands/UpdateSchemaMappingCommand.js +18 -41
  28. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  29. package/dist-cjs/pagination/ListIdMappingJobsPaginator.js +2 -24
  30. package/dist-cjs/pagination/ListIdMappingWorkflowsPaginator.js +2 -24
  31. package/dist-cjs/pagination/ListMatchingJobsPaginator.js +2 -24
  32. package/dist-cjs/pagination/ListMatchingWorkflowsPaginator.js +2 -24
  33. package/dist-cjs/pagination/ListProviderServicesPaginator.js +2 -24
  34. package/dist-cjs/pagination/ListSchemaMappingsPaginator.js +2 -24
  35. package/dist-es/commands/CreateIdMappingWorkflowCommand.js +18 -41
  36. package/dist-es/commands/CreateMatchingWorkflowCommand.js +18 -41
  37. package/dist-es/commands/CreateSchemaMappingCommand.js +18 -41
  38. package/dist-es/commands/DeleteIdMappingWorkflowCommand.js +18 -41
  39. package/dist-es/commands/DeleteMatchingWorkflowCommand.js +18 -41
  40. package/dist-es/commands/DeleteSchemaMappingCommand.js +18 -41
  41. package/dist-es/commands/GetIdMappingJobCommand.js +18 -41
  42. package/dist-es/commands/GetIdMappingWorkflowCommand.js +18 -41
  43. package/dist-es/commands/GetMatchIdCommand.js +18 -41
  44. package/dist-es/commands/GetMatchingJobCommand.js +18 -41
  45. package/dist-es/commands/GetMatchingWorkflowCommand.js +18 -41
  46. package/dist-es/commands/GetProviderServiceCommand.js +18 -41
  47. package/dist-es/commands/GetSchemaMappingCommand.js +18 -41
  48. package/dist-es/commands/ListIdMappingJobsCommand.js +18 -41
  49. package/dist-es/commands/ListIdMappingWorkflowsCommand.js +18 -41
  50. package/dist-es/commands/ListMatchingJobsCommand.js +18 -41
  51. package/dist-es/commands/ListMatchingWorkflowsCommand.js +18 -41
  52. package/dist-es/commands/ListProviderServicesCommand.js +18 -41
  53. package/dist-es/commands/ListSchemaMappingsCommand.js +18 -41
  54. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  55. package/dist-es/commands/StartIdMappingJobCommand.js +18 -41
  56. package/dist-es/commands/StartMatchingJobCommand.js +18 -41
  57. package/dist-es/commands/TagResourceCommand.js +18 -41
  58. package/dist-es/commands/UntagResourceCommand.js +18 -41
  59. package/dist-es/commands/UpdateIdMappingWorkflowCommand.js +18 -41
  60. package/dist-es/commands/UpdateMatchingWorkflowCommand.js +18 -41
  61. package/dist-es/commands/UpdateSchemaMappingCommand.js +18 -41
  62. package/dist-es/endpoint/EndpointParameters.js +6 -0
  63. package/dist-es/pagination/ListIdMappingJobsPaginator.js +2 -23
  64. package/dist-es/pagination/ListIdMappingWorkflowsPaginator.js +2 -23
  65. package/dist-es/pagination/ListMatchingJobsPaginator.js +2 -23
  66. package/dist-es/pagination/ListMatchingWorkflowsPaginator.js +2 -23
  67. package/dist-es/pagination/ListProviderServicesPaginator.js +2 -23
  68. package/dist-es/pagination/ListSchemaMappingsPaginator.js +2 -23
  69. package/dist-types/commands/CreateIdMappingWorkflowCommand.d.ts +6 -21
  70. package/dist-types/commands/CreateMatchingWorkflowCommand.d.ts +6 -21
  71. package/dist-types/commands/CreateSchemaMappingCommand.d.ts +6 -21
  72. package/dist-types/commands/DeleteIdMappingWorkflowCommand.d.ts +6 -21
  73. package/dist-types/commands/DeleteMatchingWorkflowCommand.d.ts +6 -21
  74. package/dist-types/commands/DeleteSchemaMappingCommand.d.ts +6 -21
  75. package/dist-types/commands/GetIdMappingJobCommand.d.ts +6 -21
  76. package/dist-types/commands/GetIdMappingWorkflowCommand.d.ts +6 -21
  77. package/dist-types/commands/GetMatchIdCommand.d.ts +6 -21
  78. package/dist-types/commands/GetMatchingJobCommand.d.ts +6 -21
  79. package/dist-types/commands/GetMatchingWorkflowCommand.d.ts +6 -21
  80. package/dist-types/commands/GetProviderServiceCommand.d.ts +6 -21
  81. package/dist-types/commands/GetSchemaMappingCommand.d.ts +6 -21
  82. package/dist-types/commands/ListIdMappingJobsCommand.d.ts +6 -21
  83. package/dist-types/commands/ListIdMappingWorkflowsCommand.d.ts +6 -21
  84. package/dist-types/commands/ListMatchingJobsCommand.d.ts +6 -21
  85. package/dist-types/commands/ListMatchingWorkflowsCommand.d.ts +6 -21
  86. package/dist-types/commands/ListProviderServicesCommand.d.ts +6 -21
  87. package/dist-types/commands/ListSchemaMappingsCommand.d.ts +6 -21
  88. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  89. package/dist-types/commands/StartIdMappingJobCommand.d.ts +6 -21
  90. package/dist-types/commands/StartMatchingJobCommand.d.ts +6 -21
  91. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  92. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  93. package/dist-types/commands/UpdateIdMappingWorkflowCommand.d.ts +6 -21
  94. package/dist-types/commands/UpdateMatchingWorkflowCommand.d.ts +6 -21
  95. package/dist-types/commands/UpdateSchemaMappingCommand.d.ts +6 -21
  96. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  97. package/dist-types/pagination/ListIdMappingJobsPaginator.d.ts +1 -1
  98. package/dist-types/pagination/ListIdMappingWorkflowsPaginator.d.ts +1 -1
  99. package/dist-types/pagination/ListMatchingJobsPaginator.d.ts +1 -1
  100. package/dist-types/pagination/ListMatchingWorkflowsPaginator.d.ts +1 -1
  101. package/dist-types/pagination/ListProviderServicesPaginator.d.ts +1 -1
  102. package/dist-types/pagination/ListSchemaMappingsPaginator.d.ts +1 -1
  103. package/dist-types/ts3.4/commands/CreateIdMappingWorkflowCommand.d.ts +12 -24
  104. package/dist-types/ts3.4/commands/CreateMatchingWorkflowCommand.d.ts +12 -24
  105. package/dist-types/ts3.4/commands/CreateSchemaMappingCommand.d.ts +14 -23
  106. package/dist-types/ts3.4/commands/DeleteIdMappingWorkflowCommand.d.ts +12 -24
  107. package/dist-types/ts3.4/commands/DeleteMatchingWorkflowCommand.d.ts +12 -24
  108. package/dist-types/ts3.4/commands/DeleteSchemaMappingCommand.d.ts +14 -23
  109. package/dist-types/ts3.4/commands/GetIdMappingJobCommand.d.ts +14 -23
  110. package/dist-types/ts3.4/commands/GetIdMappingWorkflowCommand.d.ts +12 -24
  111. package/dist-types/ts3.4/commands/GetMatchIdCommand.d.ts +14 -23
  112. package/dist-types/ts3.4/commands/GetMatchingJobCommand.d.ts +14 -23
  113. package/dist-types/ts3.4/commands/GetMatchingWorkflowCommand.d.ts +14 -23
  114. package/dist-types/ts3.4/commands/GetProviderServiceCommand.d.ts +14 -23
  115. package/dist-types/ts3.4/commands/GetSchemaMappingCommand.d.ts +14 -23
  116. package/dist-types/ts3.4/commands/ListIdMappingJobsCommand.d.ts +14 -23
  117. package/dist-types/ts3.4/commands/ListIdMappingWorkflowsCommand.d.ts +12 -24
  118. package/dist-types/ts3.4/commands/ListMatchingJobsCommand.d.ts +14 -23
  119. package/dist-types/ts3.4/commands/ListMatchingWorkflowsCommand.d.ts +12 -24
  120. package/dist-types/ts3.4/commands/ListProviderServicesCommand.d.ts +12 -24
  121. package/dist-types/ts3.4/commands/ListSchemaMappingsCommand.d.ts +14 -23
  122. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  123. package/dist-types/ts3.4/commands/StartIdMappingJobCommand.d.ts +14 -23
  124. package/dist-types/ts3.4/commands/StartMatchingJobCommand.d.ts +14 -23
  125. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  126. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  127. package/dist-types/ts3.4/commands/UpdateIdMappingWorkflowCommand.d.ts +12 -24
  128. package/dist-types/ts3.4/commands/UpdateMatchingWorkflowCommand.d.ts +12 -24
  129. package/dist-types/ts3.4/commands/UpdateSchemaMappingCommand.d.ts +14 -23
  130. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  131. package/dist-types/ts3.4/pagination/ListIdMappingJobsPaginator.d.ts +3 -3
  132. package/dist-types/ts3.4/pagination/ListIdMappingWorkflowsPaginator.d.ts +3 -3
  133. package/dist-types/ts3.4/pagination/ListMatchingJobsPaginator.d.ts +3 -3
  134. package/dist-types/ts3.4/pagination/ListMatchingWorkflowsPaginator.d.ts +3 -3
  135. package/dist-types/ts3.4/pagination/ListProviderServicesPaginator.d.ts +3 -3
  136. package/dist-types/ts3.4/pagination/ListSchemaMappingsPaginator.d.ts +3 -3
  137. package/package.json +11 -11
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateIdMappingWorkflowCommand, se_UpdateIdMappingWorkflowCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateIdMappingWorkflowCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateIdMappingWorkflowCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "EntityResolutionClient";
26
- const commandName = "UpdateIdMappingWorkflowCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSVeniceService",
35
- operation: "UpdateIdMappingWorkflow",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateIdMappingWorkflowCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateIdMappingWorkflowCommand(output, context);
46
- }
7
+ export class UpdateIdMappingWorkflowCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSVeniceService", "UpdateIdMappingWorkflow", {})
19
+ .n("EntityResolutionClient", "UpdateIdMappingWorkflowCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateIdMappingWorkflowCommand)
22
+ .de(de_UpdateIdMappingWorkflowCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateMatchingWorkflowCommand, se_UpdateMatchingWorkflowCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateMatchingWorkflowCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateMatchingWorkflowCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "EntityResolutionClient";
26
- const commandName = "UpdateMatchingWorkflowCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSVeniceService",
35
- operation: "UpdateMatchingWorkflow",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateMatchingWorkflowCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateMatchingWorkflowCommand(output, context);
46
- }
7
+ export class UpdateMatchingWorkflowCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSVeniceService", "UpdateMatchingWorkflow", {})
19
+ .n("EntityResolutionClient", "UpdateMatchingWorkflowCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateMatchingWorkflowCommand)
22
+ .de(de_UpdateMatchingWorkflowCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateSchemaMappingCommand, se_UpdateSchemaMappingCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateSchemaMappingCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateSchemaMappingCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "EntityResolutionClient";
26
- const commandName = "UpdateSchemaMappingCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSVeniceService",
35
- operation: "UpdateSchemaMapping",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateSchemaMappingCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateSchemaMappingCommand(output, context);
46
- }
7
+ export class UpdateSchemaMappingCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSVeniceService", "UpdateSchemaMapping", {})
19
+ .n("EntityResolutionClient", "UpdateSchemaMappingCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateSchemaMappingCommand)
22
+ .de(de_UpdateSchemaMappingCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "entityresolution",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -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");
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { EntityResolutionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EntityResolutionClient";
5
4
  import { CreateIdMappingWorkflowInput, CreateIdMappingWorkflowOutput } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateIdMappingWorkflowCommandInput extends CreateIdMappingWork
21
20
  */
22
21
  export interface CreateIdMappingWorkflowCommandOutput extends CreateIdMappingWorkflowOutput, __MetadataBearer {
23
22
  }
23
+ declare const CreateIdMappingWorkflowCommand_base: {
24
+ new (input: CreateIdMappingWorkflowCommandInput): import("@smithy/smithy-client").CommandImpl<CreateIdMappingWorkflowCommandInput, CreateIdMappingWorkflowCommandOutput, EntityResolutionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates an <code>IdMappingWorkflow</code> object which stores the configuration of the
@@ -138,23 +141,5 @@ export interface CreateIdMappingWorkflowCommandOutput extends CreateIdMappingWor
138
141
  * <p>Base exception class for all service exceptions from EntityResolution service.</p>
139
142
  *
140
143
  */
141
- export declare class CreateIdMappingWorkflowCommand extends $Command<CreateIdMappingWorkflowCommandInput, CreateIdMappingWorkflowCommandOutput, EntityResolutionClientResolvedConfig> {
142
- readonly input: CreateIdMappingWorkflowCommandInput;
143
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
144
- /**
145
- * @public
146
- */
147
- constructor(input: CreateIdMappingWorkflowCommandInput);
148
- /**
149
- * @internal
150
- */
151
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EntityResolutionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateIdMappingWorkflowCommandInput, CreateIdMappingWorkflowCommandOutput>;
152
- /**
153
- * @internal
154
- */
155
- private serialize;
156
- /**
157
- * @internal
158
- */
159
- private deserialize;
144
+ export declare class CreateIdMappingWorkflowCommand extends CreateIdMappingWorkflowCommand_base {
160
145
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { EntityResolutionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EntityResolutionClient";
5
4
  import { CreateMatchingWorkflowInput, CreateMatchingWorkflowOutput } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateMatchingWorkflowCommandInput extends CreateMatchingWorkfl
21
20
  */
22
21
  export interface CreateMatchingWorkflowCommandOutput extends CreateMatchingWorkflowOutput, __MetadataBearer {
23
22
  }
23
+ declare const CreateMatchingWorkflowCommand_base: {
24
+ new (input: CreateMatchingWorkflowCommandInput): import("@smithy/smithy-client").CommandImpl<CreateMatchingWorkflowCommandInput, CreateMatchingWorkflowCommandOutput, EntityResolutionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a <code>MatchingWorkflow</code> object which stores the configuration of the
@@ -182,23 +185,5 @@ export interface CreateMatchingWorkflowCommandOutput extends CreateMatchingWorkf
182
185
  * <p>Base exception class for all service exceptions from EntityResolution service.</p>
183
186
  *
184
187
  */
185
- export declare class CreateMatchingWorkflowCommand extends $Command<CreateMatchingWorkflowCommandInput, CreateMatchingWorkflowCommandOutput, EntityResolutionClientResolvedConfig> {
186
- readonly input: CreateMatchingWorkflowCommandInput;
187
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
188
- /**
189
- * @public
190
- */
191
- constructor(input: CreateMatchingWorkflowCommandInput);
192
- /**
193
- * @internal
194
- */
195
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EntityResolutionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateMatchingWorkflowCommandInput, CreateMatchingWorkflowCommandOutput>;
196
- /**
197
- * @internal
198
- */
199
- private serialize;
200
- /**
201
- * @internal
202
- */
203
- private deserialize;
188
+ export declare class CreateMatchingWorkflowCommand extends CreateMatchingWorkflowCommand_base {
204
189
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { EntityResolutionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EntityResolutionClient";
5
4
  import { CreateSchemaMappingInput, CreateSchemaMappingOutput } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateSchemaMappingCommandInput extends CreateSchemaMappingInpu
21
20
  */
22
21
  export interface CreateSchemaMappingCommandOutput extends CreateSchemaMappingOutput, __MetadataBearer {
23
22
  }
23
+ declare const CreateSchemaMappingCommand_base: {
24
+ new (input: CreateSchemaMappingCommandInput): import("@smithy/smithy-client").CommandImpl<CreateSchemaMappingCommandInput, CreateSchemaMappingCommandOutput, EntityResolutionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a schema mapping, which defines the schema of the input customer records table.
@@ -109,23 +112,5 @@ export interface CreateSchemaMappingCommandOutput extends CreateSchemaMappingOut
109
112
  * <p>Base exception class for all service exceptions from EntityResolution service.</p>
110
113
  *
111
114
  */
112
- export declare class CreateSchemaMappingCommand extends $Command<CreateSchemaMappingCommandInput, CreateSchemaMappingCommandOutput, EntityResolutionClientResolvedConfig> {
113
- readonly input: CreateSchemaMappingCommandInput;
114
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
115
- /**
116
- * @public
117
- */
118
- constructor(input: CreateSchemaMappingCommandInput);
119
- /**
120
- * @internal
121
- */
122
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EntityResolutionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateSchemaMappingCommandInput, CreateSchemaMappingCommandOutput>;
123
- /**
124
- * @internal
125
- */
126
- private serialize;
127
- /**
128
- * @internal
129
- */
130
- private deserialize;
115
+ export declare class CreateSchemaMappingCommand extends CreateSchemaMappingCommand_base {
131
116
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { EntityResolutionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EntityResolutionClient";
5
4
  import { DeleteIdMappingWorkflowInput, DeleteIdMappingWorkflowOutput } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DeleteIdMappingWorkflowCommandInput extends DeleteIdMappingWork
21
20
  */
22
21
  export interface DeleteIdMappingWorkflowCommandOutput extends DeleteIdMappingWorkflowOutput, __MetadataBearer {
23
22
  }
23
+ declare const DeleteIdMappingWorkflowCommand_base: {
24
+ new (input: DeleteIdMappingWorkflowCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteIdMappingWorkflowCommandInput, DeleteIdMappingWorkflowCommandOutput, EntityResolutionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Deletes the <code>IdMappingWorkflow</code> with a given name. This operation will
@@ -72,23 +75,5 @@ export interface DeleteIdMappingWorkflowCommandOutput extends DeleteIdMappingWor
72
75
  * <p>Base exception class for all service exceptions from EntityResolution service.</p>
73
76
  *
74
77
  */
75
- export declare class DeleteIdMappingWorkflowCommand extends $Command<DeleteIdMappingWorkflowCommandInput, DeleteIdMappingWorkflowCommandOutput, EntityResolutionClientResolvedConfig> {
76
- readonly input: DeleteIdMappingWorkflowCommandInput;
77
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
78
- /**
79
- * @public
80
- */
81
- constructor(input: DeleteIdMappingWorkflowCommandInput);
82
- /**
83
- * @internal
84
- */
85
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EntityResolutionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteIdMappingWorkflowCommandInput, DeleteIdMappingWorkflowCommandOutput>;
86
- /**
87
- * @internal
88
- */
89
- private serialize;
90
- /**
91
- * @internal
92
- */
93
- private deserialize;
78
+ export declare class DeleteIdMappingWorkflowCommand extends DeleteIdMappingWorkflowCommand_base {
94
79
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { EntityResolutionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EntityResolutionClient";
5
4
  import { DeleteMatchingWorkflowInput, DeleteMatchingWorkflowOutput } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DeleteMatchingWorkflowCommandInput extends DeleteMatchingWorkfl
21
20
  */
22
21
  export interface DeleteMatchingWorkflowCommandOutput extends DeleteMatchingWorkflowOutput, __MetadataBearer {
23
22
  }
23
+ declare const DeleteMatchingWorkflowCommand_base: {
24
+ new (input: DeleteMatchingWorkflowCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteMatchingWorkflowCommandInput, DeleteMatchingWorkflowCommandOutput, EntityResolutionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Deletes the <code>MatchingWorkflow</code> with a given name. This operation will succeed
@@ -72,23 +75,5 @@ export interface DeleteMatchingWorkflowCommandOutput extends DeleteMatchingWorkf
72
75
  * <p>Base exception class for all service exceptions from EntityResolution service.</p>
73
76
  *
74
77
  */
75
- export declare class DeleteMatchingWorkflowCommand extends $Command<DeleteMatchingWorkflowCommandInput, DeleteMatchingWorkflowCommandOutput, EntityResolutionClientResolvedConfig> {
76
- readonly input: DeleteMatchingWorkflowCommandInput;
77
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
78
- /**
79
- * @public
80
- */
81
- constructor(input: DeleteMatchingWorkflowCommandInput);
82
- /**
83
- * @internal
84
- */
85
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EntityResolutionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteMatchingWorkflowCommandInput, DeleteMatchingWorkflowCommandOutput>;
86
- /**
87
- * @internal
88
- */
89
- private serialize;
90
- /**
91
- * @internal
92
- */
93
- private deserialize;
78
+ export declare class DeleteMatchingWorkflowCommand extends DeleteMatchingWorkflowCommand_base {
94
79
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { EntityResolutionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EntityResolutionClient";
5
4
  import { DeleteSchemaMappingInput, DeleteSchemaMappingOutput } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DeleteSchemaMappingCommandInput extends DeleteSchemaMappingInpu
21
20
  */
22
21
  export interface DeleteSchemaMappingCommandOutput extends DeleteSchemaMappingOutput, __MetadataBearer {
23
22
  }
23
+ declare const DeleteSchemaMappingCommand_base: {
24
+ new (input: DeleteSchemaMappingCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteSchemaMappingCommandInput, DeleteSchemaMappingCommandOutput, EntityResolutionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Deletes the <code>SchemaMapping</code> with a given name. This operation will succeed
@@ -80,23 +83,5 @@ export interface DeleteSchemaMappingCommandOutput extends DeleteSchemaMappingOut
80
83
  * <p>Base exception class for all service exceptions from EntityResolution service.</p>
81
84
  *
82
85
  */
83
- export declare class DeleteSchemaMappingCommand extends $Command<DeleteSchemaMappingCommandInput, DeleteSchemaMappingCommandOutput, EntityResolutionClientResolvedConfig> {
84
- readonly input: DeleteSchemaMappingCommandInput;
85
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
86
- /**
87
- * @public
88
- */
89
- constructor(input: DeleteSchemaMappingCommandInput);
90
- /**
91
- * @internal
92
- */
93
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EntityResolutionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteSchemaMappingCommandInput, DeleteSchemaMappingCommandOutput>;
94
- /**
95
- * @internal
96
- */
97
- private serialize;
98
- /**
99
- * @internal
100
- */
101
- private deserialize;
86
+ export declare class DeleteSchemaMappingCommand extends DeleteSchemaMappingCommand_base {
102
87
  }