@aws-sdk/client-b2bi 3.459.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 (203) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +431 -0
  3. package/dist-cjs/B2bi.js +65 -0
  4. package/dist-cjs/B2biClient.js +43 -0
  5. package/dist-cjs/commands/CreateCapabilityCommand.js +51 -0
  6. package/dist-cjs/commands/CreatePartnershipCommand.js +52 -0
  7. package/dist-cjs/commands/CreateProfileCommand.js +52 -0
  8. package/dist-cjs/commands/CreateTransformerCommand.js +51 -0
  9. package/dist-cjs/commands/DeleteCapabilityCommand.js +51 -0
  10. package/dist-cjs/commands/DeletePartnershipCommand.js +51 -0
  11. package/dist-cjs/commands/DeleteProfileCommand.js +51 -0
  12. package/dist-cjs/commands/DeleteTransformerCommand.js +51 -0
  13. package/dist-cjs/commands/GetCapabilityCommand.js +51 -0
  14. package/dist-cjs/commands/GetPartnershipCommand.js +52 -0
  15. package/dist-cjs/commands/GetProfileCommand.js +52 -0
  16. package/dist-cjs/commands/GetTransformerCommand.js +51 -0
  17. package/dist-cjs/commands/GetTransformerJobCommand.js +51 -0
  18. package/dist-cjs/commands/ListCapabilitiesCommand.js +51 -0
  19. package/dist-cjs/commands/ListPartnershipsCommand.js +51 -0
  20. package/dist-cjs/commands/ListProfilesCommand.js +51 -0
  21. package/dist-cjs/commands/ListTagsForResourceCommand.js +51 -0
  22. package/dist-cjs/commands/ListTransformersCommand.js +51 -0
  23. package/dist-cjs/commands/StartTransformerJobCommand.js +51 -0
  24. package/dist-cjs/commands/TagResourceCommand.js +51 -0
  25. package/dist-cjs/commands/TestMappingCommand.js +51 -0
  26. package/dist-cjs/commands/TestParsingCommand.js +51 -0
  27. package/dist-cjs/commands/UntagResourceCommand.js +51 -0
  28. package/dist-cjs/commands/UpdateCapabilityCommand.js +51 -0
  29. package/dist-cjs/commands/UpdatePartnershipCommand.js +52 -0
  30. package/dist-cjs/commands/UpdateProfileCommand.js +52 -0
  31. package/dist-cjs/commands/UpdateTransformerCommand.js +51 -0
  32. package/dist-cjs/commands/index.js +30 -0
  33. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  34. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  35. package/dist-cjs/endpoint/ruleset.js +7 -0
  36. package/dist-cjs/extensionConfiguration.js +2 -0
  37. package/dist-cjs/index.js +12 -0
  38. package/dist-cjs/models/B2biServiceException.js +12 -0
  39. package/dist-cjs/models/index.js +4 -0
  40. package/dist-cjs/models/models_0.js +227 -0
  41. package/dist-cjs/pagination/Interfaces.js +2 -0
  42. package/dist-cjs/pagination/ListCapabilitiesPaginator.js +29 -0
  43. package/dist-cjs/pagination/ListPartnershipsPaginator.js +29 -0
  44. package/dist-cjs/pagination/ListProfilesPaginator.js +29 -0
  45. package/dist-cjs/pagination/ListTransformersPaginator.js +29 -0
  46. package/dist-cjs/pagination/index.js +8 -0
  47. package/dist-cjs/protocols/Aws_json1_0.js +1822 -0
  48. package/dist-cjs/runtimeConfig.browser.js +39 -0
  49. package/dist-cjs/runtimeConfig.js +50 -0
  50. package/dist-cjs/runtimeConfig.native.js +15 -0
  51. package/dist-cjs/runtimeConfig.shared.js +24 -0
  52. package/dist-cjs/runtimeExtensions.js +22 -0
  53. package/dist-es/B2bi.js +61 -0
  54. package/dist-es/B2biClient.js +39 -0
  55. package/dist-es/commands/CreateCapabilityCommand.js +47 -0
  56. package/dist-es/commands/CreatePartnershipCommand.js +48 -0
  57. package/dist-es/commands/CreateProfileCommand.js +48 -0
  58. package/dist-es/commands/CreateTransformerCommand.js +47 -0
  59. package/dist-es/commands/DeleteCapabilityCommand.js +47 -0
  60. package/dist-es/commands/DeletePartnershipCommand.js +47 -0
  61. package/dist-es/commands/DeleteProfileCommand.js +47 -0
  62. package/dist-es/commands/DeleteTransformerCommand.js +47 -0
  63. package/dist-es/commands/GetCapabilityCommand.js +47 -0
  64. package/dist-es/commands/GetPartnershipCommand.js +48 -0
  65. package/dist-es/commands/GetProfileCommand.js +48 -0
  66. package/dist-es/commands/GetTransformerCommand.js +47 -0
  67. package/dist-es/commands/GetTransformerJobCommand.js +47 -0
  68. package/dist-es/commands/ListCapabilitiesCommand.js +47 -0
  69. package/dist-es/commands/ListPartnershipsCommand.js +47 -0
  70. package/dist-es/commands/ListProfilesCommand.js +47 -0
  71. package/dist-es/commands/ListTagsForResourceCommand.js +47 -0
  72. package/dist-es/commands/ListTransformersCommand.js +47 -0
  73. package/dist-es/commands/StartTransformerJobCommand.js +47 -0
  74. package/dist-es/commands/TagResourceCommand.js +47 -0
  75. package/dist-es/commands/TestMappingCommand.js +47 -0
  76. package/dist-es/commands/TestParsingCommand.js +47 -0
  77. package/dist-es/commands/UntagResourceCommand.js +47 -0
  78. package/dist-es/commands/UpdateCapabilityCommand.js +47 -0
  79. package/dist-es/commands/UpdatePartnershipCommand.js +48 -0
  80. package/dist-es/commands/UpdateProfileCommand.js +48 -0
  81. package/dist-es/commands/UpdateTransformerCommand.js +47 -0
  82. package/dist-es/commands/index.js +27 -0
  83. package/dist-es/endpoint/EndpointParameters.js +8 -0
  84. package/dist-es/endpoint/endpointResolver.js +8 -0
  85. package/dist-es/endpoint/ruleset.js +4 -0
  86. package/dist-es/extensionConfiguration.js +1 -0
  87. package/dist-es/index.js +7 -0
  88. package/dist-es/models/B2biServiceException.js +8 -0
  89. package/dist-es/models/index.js +1 -0
  90. package/dist-es/models/models_0.js +208 -0
  91. package/dist-es/pagination/Interfaces.js +1 -0
  92. package/dist-es/pagination/ListCapabilitiesPaginator.js +25 -0
  93. package/dist-es/pagination/ListPartnershipsPaginator.js +25 -0
  94. package/dist-es/pagination/ListProfilesPaginator.js +25 -0
  95. package/dist-es/pagination/ListTransformersPaginator.js +25 -0
  96. package/dist-es/pagination/index.js +5 -0
  97. package/dist-es/protocols/Aws_json1_0.js +1764 -0
  98. package/dist-es/runtimeConfig.browser.js +34 -0
  99. package/dist-es/runtimeConfig.js +45 -0
  100. package/dist-es/runtimeConfig.native.js +11 -0
  101. package/dist-es/runtimeConfig.shared.js +20 -0
  102. package/dist-es/runtimeExtensions.js +18 -0
  103. package/dist-types/B2bi.d.ts +209 -0
  104. package/dist-types/B2biClient.d.ts +206 -0
  105. package/dist-types/commands/CreateCapabilityCommand.d.ts +156 -0
  106. package/dist-types/commands/CreatePartnershipCommand.d.ts +117 -0
  107. package/dist-types/commands/CreateProfileCommand.d.ts +113 -0
  108. package/dist-types/commands/CreateTransformerCommand.d.ts +123 -0
  109. package/dist-types/commands/DeleteCapabilityCommand.d.ts +89 -0
  110. package/dist-types/commands/DeletePartnershipCommand.d.ts +89 -0
  111. package/dist-types/commands/DeleteProfileCommand.d.ts +89 -0
  112. package/dist-types/commands/DeleteTransformerCommand.d.ts +89 -0
  113. package/dist-types/commands/GetCapabilityCommand.d.ts +118 -0
  114. package/dist-types/commands/GetPartnershipCommand.d.ts +99 -0
  115. package/dist-types/commands/GetProfileCommand.d.ts +97 -0
  116. package/dist-types/commands/GetTransformerCommand.d.ts +102 -0
  117. package/dist-types/commands/GetTransformerJobCommand.d.ts +96 -0
  118. package/dist-types/commands/ListCapabilitiesCommand.d.ts +83 -0
  119. package/dist-types/commands/ListPartnershipsCommand.d.ts +103 -0
  120. package/dist-types/commands/ListProfilesCommand.d.ts +85 -0
  121. package/dist-types/commands/ListTagsForResourceCommand.d.ts +84 -0
  122. package/dist-types/commands/ListTransformersCommand.d.ts +92 -0
  123. package/dist-types/commands/StartTransformerJobCommand.d.ts +97 -0
  124. package/dist-types/commands/TagResourceCommand.d.ts +87 -0
  125. package/dist-types/commands/TestMappingCommand.d.ts +90 -0
  126. package/dist-types/commands/TestParsingCommand.d.ts +98 -0
  127. package/dist-types/commands/UntagResourceCommand.d.ts +80 -0
  128. package/dist-types/commands/UpdateCapabilityCommand.d.ts +151 -0
  129. package/dist-types/commands/UpdatePartnershipCommand.d.ts +109 -0
  130. package/dist-types/commands/UpdateProfileCommand.d.ts +107 -0
  131. package/dist-types/commands/UpdateTransformerCommand.d.ts +119 -0
  132. package/dist-types/commands/index.d.ts +27 -0
  133. package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
  134. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  135. package/dist-types/endpoint/ruleset.d.ts +2 -0
  136. package/dist-types/extensionConfiguration.d.ts +8 -0
  137. package/dist-types/index.d.ts +25 -0
  138. package/dist-types/models/B2biServiceException.d.ts +13 -0
  139. package/dist-types/models/index.d.ts +1 -0
  140. package/dist-types/models/models_0.d.ts +1859 -0
  141. package/dist-types/pagination/Interfaces.d.ts +8 -0
  142. package/dist-types/pagination/ListCapabilitiesPaginator.d.ts +7 -0
  143. package/dist-types/pagination/ListPartnershipsPaginator.d.ts +7 -0
  144. package/dist-types/pagination/ListProfilesPaginator.d.ts +7 -0
  145. package/dist-types/pagination/ListTransformersPaginator.d.ts +7 -0
  146. package/dist-types/pagination/index.d.ts +5 -0
  147. package/dist-types/protocols/Aws_json1_0.d.ts +245 -0
  148. package/dist-types/runtimeConfig.browser.d.ts +46 -0
  149. package/dist-types/runtimeConfig.d.ts +46 -0
  150. package/dist-types/runtimeConfig.native.d.ts +45 -0
  151. package/dist-types/runtimeConfig.shared.d.ts +19 -0
  152. package/dist-types/runtimeExtensions.d.ts +17 -0
  153. package/dist-types/ts3.4/B2bi.d.ts +464 -0
  154. package/dist-types/ts3.4/B2biClient.d.ts +280 -0
  155. package/dist-types/ts3.4/commands/CreateCapabilityCommand.d.ts +38 -0
  156. package/dist-types/ts3.4/commands/CreatePartnershipCommand.d.ts +39 -0
  157. package/dist-types/ts3.4/commands/CreateProfileCommand.d.ts +38 -0
  158. package/dist-types/ts3.4/commands/CreateTransformerCommand.d.ts +39 -0
  159. package/dist-types/ts3.4/commands/DeleteCapabilityCommand.d.ts +33 -0
  160. package/dist-types/ts3.4/commands/DeletePartnershipCommand.d.ts +34 -0
  161. package/dist-types/ts3.4/commands/DeleteProfileCommand.d.ts +33 -0
  162. package/dist-types/ts3.4/commands/DeleteTransformerCommand.d.ts +34 -0
  163. package/dist-types/ts3.4/commands/GetCapabilityCommand.d.ts +38 -0
  164. package/dist-types/ts3.4/commands/GetPartnershipCommand.d.ts +38 -0
  165. package/dist-types/ts3.4/commands/GetProfileCommand.d.ts +35 -0
  166. package/dist-types/ts3.4/commands/GetTransformerCommand.d.ts +38 -0
  167. package/dist-types/ts3.4/commands/GetTransformerJobCommand.d.ts +39 -0
  168. package/dist-types/ts3.4/commands/ListCapabilitiesCommand.d.ts +38 -0
  169. package/dist-types/ts3.4/commands/ListPartnershipsCommand.d.ts +38 -0
  170. package/dist-types/ts3.4/commands/ListProfilesCommand.d.ts +35 -0
  171. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  172. package/dist-types/ts3.4/commands/ListTransformersCommand.d.ts +38 -0
  173. package/dist-types/ts3.4/commands/StartTransformerJobCommand.d.ts +39 -0
  174. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +33 -0
  175. package/dist-types/ts3.4/commands/TestMappingCommand.d.ts +35 -0
  176. package/dist-types/ts3.4/commands/TestParsingCommand.d.ts +35 -0
  177. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +33 -0
  178. package/dist-types/ts3.4/commands/UpdateCapabilityCommand.d.ts +38 -0
  179. package/dist-types/ts3.4/commands/UpdatePartnershipCommand.d.ts +39 -0
  180. package/dist-types/ts3.4/commands/UpdateProfileCommand.d.ts +38 -0
  181. package/dist-types/ts3.4/commands/UpdateTransformerCommand.d.ts +39 -0
  182. package/dist-types/ts3.4/commands/index.d.ts +27 -0
  183. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
  184. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  185. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  186. package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
  187. package/dist-types/ts3.4/index.d.ts +10 -0
  188. package/dist-types/ts3.4/models/B2biServiceException.d.ts +8 -0
  189. package/dist-types/ts3.4/models/index.d.ts +1 -0
  190. package/dist-types/ts3.4/models/models_0.d.ts +537 -0
  191. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  192. package/dist-types/ts3.4/pagination/ListCapabilitiesPaginator.d.ts +11 -0
  193. package/dist-types/ts3.4/pagination/ListPartnershipsPaginator.d.ts +11 -0
  194. package/dist-types/ts3.4/pagination/ListProfilesPaginator.d.ts +11 -0
  195. package/dist-types/ts3.4/pagination/ListTransformersPaginator.d.ts +11 -0
  196. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  197. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +329 -0
  198. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
  199. package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
  200. package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
  201. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
  202. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  203. package/package.json +104 -0
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UntagResourceCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
10
+ class UntagResourceCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "B2biClient";
29
+ const commandName = "UntagResourceCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "B2BI",
38
+ operation: "UntagResource",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_0_1.se_UntagResourceCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_0_1.de_UntagResourceCommand)(output, context);
49
+ }
50
+ }
51
+ exports.UntagResourceCommand = UntagResourceCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateCapabilityCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
10
+ class UpdateCapabilityCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateCapabilityCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "B2biClient";
29
+ const commandName = "UpdateCapabilityCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "B2BI",
38
+ operation: "UpdateCapability",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_0_1.se_UpdateCapabilityCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_0_1.de_UpdateCapabilityCommand)(output, context);
49
+ }
50
+ }
51
+ exports.UpdateCapabilityCommand = UpdateCapabilityCommand;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdatePartnershipCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const models_0_1 = require("../models/models_0");
10
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
11
+ class UpdatePartnershipCommand extends smithy_client_1.Command {
12
+ static getEndpointParameterInstructions() {
13
+ return {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
19
+ }
20
+ constructor(input) {
21
+ super();
22
+ this.input = input;
23
+ }
24
+ resolveMiddleware(clientStack, configuration, options) {
25
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdatePartnershipCommand.getEndpointParameterInstructions()));
27
+ const stack = clientStack.concat(this.middlewareStack);
28
+ const { logger } = configuration;
29
+ const clientName = "B2biClient";
30
+ const commandName = "UpdatePartnershipCommand";
31
+ const handlerExecutionContext = {
32
+ logger,
33
+ clientName,
34
+ commandName,
35
+ inputFilterSensitiveLog: (_) => _,
36
+ outputFilterSensitiveLog: models_0_1.UpdatePartnershipResponseFilterSensitiveLog,
37
+ [types_1.SMITHY_CONTEXT_KEY]: {
38
+ service: "B2BI",
39
+ operation: "UpdatePartnership",
40
+ },
41
+ };
42
+ const { requestHandler } = configuration;
43
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
+ }
45
+ serialize(input, context) {
46
+ return (0, Aws_json1_0_1.se_UpdatePartnershipCommand)(input, context);
47
+ }
48
+ deserialize(output, context) {
49
+ return (0, Aws_json1_0_1.de_UpdatePartnershipCommand)(output, context);
50
+ }
51
+ }
52
+ exports.UpdatePartnershipCommand = UpdatePartnershipCommand;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateProfileCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const models_0_1 = require("../models/models_0");
10
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
11
+ class UpdateProfileCommand extends smithy_client_1.Command {
12
+ static getEndpointParameterInstructions() {
13
+ return {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
19
+ }
20
+ constructor(input) {
21
+ super();
22
+ this.input = input;
23
+ }
24
+ resolveMiddleware(clientStack, configuration, options) {
25
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateProfileCommand.getEndpointParameterInstructions()));
27
+ const stack = clientStack.concat(this.middlewareStack);
28
+ const { logger } = configuration;
29
+ const clientName = "B2biClient";
30
+ const commandName = "UpdateProfileCommand";
31
+ const handlerExecutionContext = {
32
+ logger,
33
+ clientName,
34
+ commandName,
35
+ inputFilterSensitiveLog: models_0_1.UpdateProfileRequestFilterSensitiveLog,
36
+ outputFilterSensitiveLog: models_0_1.UpdateProfileResponseFilterSensitiveLog,
37
+ [types_1.SMITHY_CONTEXT_KEY]: {
38
+ service: "B2BI",
39
+ operation: "UpdateProfile",
40
+ },
41
+ };
42
+ const { requestHandler } = configuration;
43
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
+ }
45
+ serialize(input, context) {
46
+ return (0, Aws_json1_0_1.se_UpdateProfileCommand)(input, context);
47
+ }
48
+ deserialize(output, context) {
49
+ return (0, Aws_json1_0_1.de_UpdateProfileCommand)(output, context);
50
+ }
51
+ }
52
+ exports.UpdateProfileCommand = UpdateProfileCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateTransformerCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
10
+ class UpdateTransformerCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateTransformerCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "B2biClient";
29
+ const commandName = "UpdateTransformerCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "B2BI",
38
+ operation: "UpdateTransformer",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_0_1.se_UpdateTransformerCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_0_1.de_UpdateTransformerCommand)(output, context);
49
+ }
50
+ }
51
+ exports.UpdateTransformerCommand = UpdateTransformerCommand;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./CreateCapabilityCommand"), exports);
5
+ tslib_1.__exportStar(require("./CreatePartnershipCommand"), exports);
6
+ tslib_1.__exportStar(require("./CreateProfileCommand"), exports);
7
+ tslib_1.__exportStar(require("./CreateTransformerCommand"), exports);
8
+ tslib_1.__exportStar(require("./DeleteCapabilityCommand"), exports);
9
+ tslib_1.__exportStar(require("./DeletePartnershipCommand"), exports);
10
+ tslib_1.__exportStar(require("./DeleteProfileCommand"), exports);
11
+ tslib_1.__exportStar(require("./DeleteTransformerCommand"), exports);
12
+ tslib_1.__exportStar(require("./GetCapabilityCommand"), exports);
13
+ tslib_1.__exportStar(require("./GetPartnershipCommand"), exports);
14
+ tslib_1.__exportStar(require("./GetProfileCommand"), exports);
15
+ tslib_1.__exportStar(require("./GetTransformerCommand"), exports);
16
+ tslib_1.__exportStar(require("./GetTransformerJobCommand"), exports);
17
+ tslib_1.__exportStar(require("./ListCapabilitiesCommand"), exports);
18
+ tslib_1.__exportStar(require("./ListPartnershipsCommand"), exports);
19
+ tslib_1.__exportStar(require("./ListProfilesCommand"), exports);
20
+ tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
21
+ tslib_1.__exportStar(require("./ListTransformersCommand"), exports);
22
+ tslib_1.__exportStar(require("./StartTransformerJobCommand"), exports);
23
+ tslib_1.__exportStar(require("./TagResourceCommand"), exports);
24
+ tslib_1.__exportStar(require("./TestMappingCommand"), exports);
25
+ tslib_1.__exportStar(require("./TestParsingCommand"), exports);
26
+ tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
27
+ tslib_1.__exportStar(require("./UpdateCapabilityCommand"), exports);
28
+ tslib_1.__exportStar(require("./UpdatePartnershipCommand"), exports);
29
+ tslib_1.__exportStar(require("./UpdateProfileCommand"), exports);
30
+ tslib_1.__exportStar(require("./UpdateTransformerCommand"), exports);
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveClientEndpointParameters = void 0;
4
+ const resolveClientEndpointParameters = (options) => {
5
+ return {
6
+ ...options,
7
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
8
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
9
+ defaultSigningName: "b2bi",
10
+ };
11
+ };
12
+ exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultEndpointResolver = void 0;
4
+ const util_endpoints_1 = require("@smithy/util-endpoints");
5
+ const ruleset_1 = require("./ruleset");
6
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
7
+ return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
8
+ endpointParams: endpointParams,
9
+ logger: context.logger,
10
+ });
11
+ };
12
+ exports.defaultEndpointResolver = defaultEndpointResolver;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ruleSet = void 0;
4
+ const s = "required", t = "fn", u = "argv", v = "ref";
5
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ rules: [{ endpoint: { url: "https://b2bi-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ rules: [{ endpoint: { url: "https://b2bi-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ rules: [{ endpoint: { url: "https://b2bi.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { rules: [{ endpoint: { url: "https://b2bi.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
7
+ exports.ruleSet = _data;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.B2biServiceException = void 0;
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./B2biClient"), exports);
6
+ tslib_1.__exportStar(require("./B2bi"), exports);
7
+ tslib_1.__exportStar(require("./commands"), exports);
8
+ tslib_1.__exportStar(require("./pagination"), exports);
9
+ tslib_1.__exportStar(require("./models"), exports);
10
+ require("@aws-sdk/util-endpoints");
11
+ var B2biServiceException_1 = require("./models/B2biServiceException");
12
+ Object.defineProperty(exports, "B2biServiceException", { enumerable: true, get: function () { return B2biServiceException_1.B2biServiceException; } });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.B2biServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class B2biServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, B2biServiceException.prototype);
10
+ }
11
+ }
12
+ exports.B2biServiceException = B2biServiceException;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./models_0"), exports);
@@ -0,0 +1,227 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateProfileResponseFilterSensitiveLog = exports.UpdateProfileRequestFilterSensitiveLog = exports.GetProfileResponseFilterSensitiveLog = exports.CreateProfileResponseFilterSensitiveLog = exports.CreateProfileRequestFilterSensitiveLog = exports.UpdatePartnershipResponseFilterSensitiveLog = exports.GetPartnershipResponseFilterSensitiveLog = exports.CreatePartnershipResponseFilterSensitiveLog = exports.CreatePartnershipRequestFilterSensitiveLog = exports.TransformerStatus = exports.FileFormat = exports.Logging = exports.TransformerJobStatus = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.CapabilityType = exports.CapabilityConfiguration = exports.EdiType = exports.X12Version = exports.X12TransactionSet = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ const B2biServiceException_1 = require("./B2biServiceException");
6
+ class AccessDeniedException extends B2biServiceException_1.B2biServiceException {
7
+ constructor(opts) {
8
+ super({
9
+ name: "AccessDeniedException",
10
+ $fault: "client",
11
+ ...opts,
12
+ });
13
+ this.name = "AccessDeniedException";
14
+ this.$fault = "client";
15
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
+ }
17
+ }
18
+ exports.AccessDeniedException = AccessDeniedException;
19
+ class ConflictException extends B2biServiceException_1.B2biServiceException {
20
+ constructor(opts) {
21
+ super({
22
+ name: "ConflictException",
23
+ $fault: "client",
24
+ ...opts,
25
+ });
26
+ this.name = "ConflictException";
27
+ this.$fault = "client";
28
+ Object.setPrototypeOf(this, ConflictException.prototype);
29
+ }
30
+ }
31
+ exports.ConflictException = ConflictException;
32
+ exports.X12TransactionSet = {
33
+ X12_110: "X12_110",
34
+ X12_180: "X12_180",
35
+ X12_204: "X12_204",
36
+ X12_210: "X12_210",
37
+ X12_214: "X12_214",
38
+ X12_215: "X12_215",
39
+ X12_310: "X12_310",
40
+ X12_315: "X12_315",
41
+ X12_322: "X12_322",
42
+ X12_404: "X12_404",
43
+ X12_410: "X12_410",
44
+ X12_820: "X12_820",
45
+ X12_824: "X12_824",
46
+ X12_830: "X12_830",
47
+ X12_846: "X12_846",
48
+ X12_850: "X12_850",
49
+ X12_852: "X12_852",
50
+ X12_855: "X12_855",
51
+ X12_856: "X12_856",
52
+ X12_860: "X12_860",
53
+ X12_861: "X12_861",
54
+ X12_864: "X12_864",
55
+ X12_940: "X12_940",
56
+ X12_990: "X12_990",
57
+ X12_997: "X12_997",
58
+ };
59
+ exports.X12Version = {
60
+ VERSION_4010: "VERSION_4010",
61
+ VERSION_4030: "VERSION_4030",
62
+ VERSION_5010: "VERSION_5010",
63
+ };
64
+ var EdiType;
65
+ (function (EdiType) {
66
+ EdiType.visit = (value, visitor) => {
67
+ if (value.x12Details !== undefined)
68
+ return visitor.x12Details(value.x12Details);
69
+ return visitor._(value.$unknown[0], value.$unknown[1]);
70
+ };
71
+ })(EdiType = exports.EdiType || (exports.EdiType = {}));
72
+ var CapabilityConfiguration;
73
+ (function (CapabilityConfiguration) {
74
+ CapabilityConfiguration.visit = (value, visitor) => {
75
+ if (value.edi !== undefined)
76
+ return visitor.edi(value.edi);
77
+ return visitor._(value.$unknown[0], value.$unknown[1]);
78
+ };
79
+ })(CapabilityConfiguration = exports.CapabilityConfiguration || (exports.CapabilityConfiguration = {}));
80
+ exports.CapabilityType = {
81
+ EDI: "edi",
82
+ };
83
+ class InternalServerException extends B2biServiceException_1.B2biServiceException {
84
+ constructor(opts) {
85
+ super({
86
+ name: "InternalServerException",
87
+ $fault: "server",
88
+ ...opts,
89
+ });
90
+ this.name = "InternalServerException";
91
+ this.$fault = "server";
92
+ this.$retryable = {};
93
+ Object.setPrototypeOf(this, InternalServerException.prototype);
94
+ this.retryAfterSeconds = opts.retryAfterSeconds;
95
+ }
96
+ }
97
+ exports.InternalServerException = InternalServerException;
98
+ class ResourceNotFoundException extends B2biServiceException_1.B2biServiceException {
99
+ constructor(opts) {
100
+ super({
101
+ name: "ResourceNotFoundException",
102
+ $fault: "client",
103
+ ...opts,
104
+ });
105
+ this.name = "ResourceNotFoundException";
106
+ this.$fault = "client";
107
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
108
+ }
109
+ }
110
+ exports.ResourceNotFoundException = ResourceNotFoundException;
111
+ class ServiceQuotaExceededException extends B2biServiceException_1.B2biServiceException {
112
+ constructor(opts) {
113
+ super({
114
+ name: "ServiceQuotaExceededException",
115
+ $fault: "client",
116
+ ...opts,
117
+ });
118
+ this.name = "ServiceQuotaExceededException";
119
+ this.$fault = "client";
120
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
121
+ this.resourceId = opts.resourceId;
122
+ this.resourceType = opts.resourceType;
123
+ this.serviceCode = opts.serviceCode;
124
+ this.quotaCode = opts.quotaCode;
125
+ }
126
+ }
127
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
128
+ class ThrottlingException extends B2biServiceException_1.B2biServiceException {
129
+ constructor(opts) {
130
+ super({
131
+ name: "ThrottlingException",
132
+ $fault: "client",
133
+ ...opts,
134
+ });
135
+ this.name = "ThrottlingException";
136
+ this.$fault = "client";
137
+ this.$retryable = {};
138
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
139
+ this.retryAfterSeconds = opts.retryAfterSeconds;
140
+ }
141
+ }
142
+ exports.ThrottlingException = ThrottlingException;
143
+ class ValidationException extends B2biServiceException_1.B2biServiceException {
144
+ constructor(opts) {
145
+ super({
146
+ name: "ValidationException",
147
+ $fault: "client",
148
+ ...opts,
149
+ });
150
+ this.name = "ValidationException";
151
+ this.$fault = "client";
152
+ Object.setPrototypeOf(this, ValidationException.prototype);
153
+ this.Message = opts.Message;
154
+ }
155
+ }
156
+ exports.ValidationException = ValidationException;
157
+ exports.TransformerJobStatus = {
158
+ FAILED: "failed",
159
+ RUNNING: "running",
160
+ SUCCEEDED: "succeeded",
161
+ };
162
+ exports.Logging = {
163
+ DISABLED: "DISABLED",
164
+ ENABLED: "ENABLED",
165
+ };
166
+ exports.FileFormat = {
167
+ JSON: "JSON",
168
+ XML: "XML",
169
+ };
170
+ exports.TransformerStatus = {
171
+ ACTIVE: "active",
172
+ INACTIVE: "inactive",
173
+ };
174
+ const CreatePartnershipRequestFilterSensitiveLog = (obj) => ({
175
+ ...obj,
176
+ ...(obj.email && { email: smithy_client_1.SENSITIVE_STRING }),
177
+ ...(obj.phone && { phone: smithy_client_1.SENSITIVE_STRING }),
178
+ });
179
+ exports.CreatePartnershipRequestFilterSensitiveLog = CreatePartnershipRequestFilterSensitiveLog;
180
+ const CreatePartnershipResponseFilterSensitiveLog = (obj) => ({
181
+ ...obj,
182
+ ...(obj.email && { email: smithy_client_1.SENSITIVE_STRING }),
183
+ ...(obj.phone && { phone: smithy_client_1.SENSITIVE_STRING }),
184
+ });
185
+ exports.CreatePartnershipResponseFilterSensitiveLog = CreatePartnershipResponseFilterSensitiveLog;
186
+ const GetPartnershipResponseFilterSensitiveLog = (obj) => ({
187
+ ...obj,
188
+ ...(obj.email && { email: smithy_client_1.SENSITIVE_STRING }),
189
+ ...(obj.phone && { phone: smithy_client_1.SENSITIVE_STRING }),
190
+ });
191
+ exports.GetPartnershipResponseFilterSensitiveLog = GetPartnershipResponseFilterSensitiveLog;
192
+ const UpdatePartnershipResponseFilterSensitiveLog = (obj) => ({
193
+ ...obj,
194
+ ...(obj.email && { email: smithy_client_1.SENSITIVE_STRING }),
195
+ ...(obj.phone && { phone: smithy_client_1.SENSITIVE_STRING }),
196
+ });
197
+ exports.UpdatePartnershipResponseFilterSensitiveLog = UpdatePartnershipResponseFilterSensitiveLog;
198
+ const CreateProfileRequestFilterSensitiveLog = (obj) => ({
199
+ ...obj,
200
+ ...(obj.email && { email: smithy_client_1.SENSITIVE_STRING }),
201
+ ...(obj.phone && { phone: smithy_client_1.SENSITIVE_STRING }),
202
+ });
203
+ exports.CreateProfileRequestFilterSensitiveLog = CreateProfileRequestFilterSensitiveLog;
204
+ const CreateProfileResponseFilterSensitiveLog = (obj) => ({
205
+ ...obj,
206
+ ...(obj.phone && { phone: smithy_client_1.SENSITIVE_STRING }),
207
+ ...(obj.email && { email: smithy_client_1.SENSITIVE_STRING }),
208
+ });
209
+ exports.CreateProfileResponseFilterSensitiveLog = CreateProfileResponseFilterSensitiveLog;
210
+ const GetProfileResponseFilterSensitiveLog = (obj) => ({
211
+ ...obj,
212
+ ...(obj.email && { email: smithy_client_1.SENSITIVE_STRING }),
213
+ ...(obj.phone && { phone: smithy_client_1.SENSITIVE_STRING }),
214
+ });
215
+ exports.GetProfileResponseFilterSensitiveLog = GetProfileResponseFilterSensitiveLog;
216
+ const UpdateProfileRequestFilterSensitiveLog = (obj) => ({
217
+ ...obj,
218
+ ...(obj.email && { email: smithy_client_1.SENSITIVE_STRING }),
219
+ ...(obj.phone && { phone: smithy_client_1.SENSITIVE_STRING }),
220
+ });
221
+ exports.UpdateProfileRequestFilterSensitiveLog = UpdateProfileRequestFilterSensitiveLog;
222
+ const UpdateProfileResponseFilterSensitiveLog = (obj) => ({
223
+ ...obj,
224
+ ...(obj.email && { email: smithy_client_1.SENSITIVE_STRING }),
225
+ ...(obj.phone && { phone: smithy_client_1.SENSITIVE_STRING }),
226
+ });
227
+ exports.UpdateProfileResponseFilterSensitiveLog = UpdateProfileResponseFilterSensitiveLog;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListCapabilities = void 0;
4
+ const B2biClient_1 = require("../B2biClient");
5
+ const ListCapabilitiesCommand_1 = require("../commands/ListCapabilitiesCommand");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListCapabilitiesCommand_1.ListCapabilitiesCommand(input), ...args);
8
+ };
9
+ async function* paginateListCapabilities(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 B2biClient_1.B2biClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected B2bi | B2biClient");
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.paginateListCapabilities = paginateListCapabilities;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListPartnerships = void 0;
4
+ const B2biClient_1 = require("../B2biClient");
5
+ const ListPartnershipsCommand_1 = require("../commands/ListPartnershipsCommand");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListPartnershipsCommand_1.ListPartnershipsCommand(input), ...args);
8
+ };
9
+ async function* paginateListPartnerships(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 B2biClient_1.B2biClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected B2bi | B2biClient");
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.paginateListPartnerships = paginateListPartnerships;