@aws-sdk/client-b2bi 3.926.0 → 3.928.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 (54) hide show
  1. package/dist-cjs/index.js +1363 -1315
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/B2biClient.js +2 -0
  4. package/dist-es/commands/CreateCapabilityCommand.js +3 -9
  5. package/dist-es/commands/CreatePartnershipCommand.js +3 -10
  6. package/dist-es/commands/CreateProfileCommand.js +3 -10
  7. package/dist-es/commands/CreateStarterMappingTemplateCommand.js +3 -9
  8. package/dist-es/commands/CreateTransformerCommand.js +3 -9
  9. package/dist-es/commands/DeleteCapabilityCommand.js +3 -9
  10. package/dist-es/commands/DeletePartnershipCommand.js +3 -9
  11. package/dist-es/commands/DeleteProfileCommand.js +3 -9
  12. package/dist-es/commands/DeleteTransformerCommand.js +3 -9
  13. package/dist-es/commands/GenerateMappingCommand.js +3 -9
  14. package/dist-es/commands/GetCapabilityCommand.js +3 -9
  15. package/dist-es/commands/GetPartnershipCommand.js +3 -10
  16. package/dist-es/commands/GetProfileCommand.js +3 -10
  17. package/dist-es/commands/GetTransformerCommand.js +3 -9
  18. package/dist-es/commands/GetTransformerJobCommand.js +3 -9
  19. package/dist-es/commands/ListCapabilitiesCommand.js +3 -9
  20. package/dist-es/commands/ListPartnershipsCommand.js +3 -9
  21. package/dist-es/commands/ListProfilesCommand.js +3 -9
  22. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  23. package/dist-es/commands/ListTransformersCommand.js +3 -9
  24. package/dist-es/commands/StartTransformerJobCommand.js +3 -9
  25. package/dist-es/commands/TagResourceCommand.js +3 -9
  26. package/dist-es/commands/TestConversionCommand.js +3 -9
  27. package/dist-es/commands/TestMappingCommand.js +3 -9
  28. package/dist-es/commands/TestParsingCommand.js +3 -9
  29. package/dist-es/commands/UntagResourceCommand.js +3 -9
  30. package/dist-es/commands/UpdateCapabilityCommand.js +3 -9
  31. package/dist-es/commands/UpdatePartnershipCommand.js +3 -10
  32. package/dist-es/commands/UpdateProfileCommand.js +3 -10
  33. package/dist-es/commands/UpdateTransformerCommand.js +3 -9
  34. package/dist-es/models/models_0.js +0 -50
  35. package/dist-es/runtimeConfig.shared.js +7 -0
  36. package/dist-es/schemas/schemas_0.js +1285 -0
  37. package/dist-types/B2biClient.d.ts +10 -1
  38. package/dist-types/models/models_0.d.ts +0 -36
  39. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  40. package/dist-types/runtimeConfig.d.ts +1 -0
  41. package/dist-types/runtimeConfig.native.d.ts +1 -0
  42. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  43. package/dist-types/schemas/schemas_0.d.ts +152 -0
  44. package/dist-types/ts3.4/B2biClient.d.ts +4 -0
  45. package/dist-types/ts3.4/models/models_0.d.ts +0 -27
  46. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  47. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  48. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  49. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  50. package/dist-types/ts3.4/schemas/schemas_0.d.ts +158 -0
  51. package/package.json +5 -6
  52. package/dist-es/protocols/Aws_json1_0.js +0 -1030
  53. package/dist-types/protocols/Aws_json1_0.d.ts +0 -272
  54. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -365
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_TestConversionCommand, se_TestConversionCommand } from "../protocols/Aws_json1_0";
4
+ import { TestConversion } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TestConversionCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("B2BI", "TestConversion", {})
17
13
  .n("B2biClient", "TestConversionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_TestConversionCommand)
20
- .de(de_TestConversionCommand)
14
+ .sc(TestConversion)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_TestMappingCommand, se_TestMappingCommand } from "../protocols/Aws_json1_0";
4
+ import { TestMapping } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TestMappingCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("B2BI", "TestMapping", {})
17
13
  .n("B2biClient", "TestMappingCommand")
18
- .f(void 0, void 0)
19
- .ser(se_TestMappingCommand)
20
- .de(de_TestMappingCommand)
14
+ .sc(TestMapping)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_TestParsingCommand, se_TestParsingCommand } from "../protocols/Aws_json1_0";
4
+ import { TestParsing } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TestParsingCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("B2BI", "TestParsing", {})
17
13
  .n("B2biClient", "TestParsingCommand")
18
- .f(void 0, void 0)
19
- .ser(se_TestParsingCommand)
20
- .de(de_TestParsingCommand)
14
+ .sc(TestParsing)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_0";
4
+ import { UntagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UntagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("B2BI", "UntagResource", {})
17
13
  .n("B2biClient", "UntagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UntagResourceCommand)
20
- .de(de_UntagResourceCommand)
14
+ .sc(UntagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateCapabilityCommand, se_UpdateCapabilityCommand } from "../protocols/Aws_json1_0";
4
+ import { UpdateCapability } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateCapabilityCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("B2BI", "UpdateCapability", {})
17
13
  .n("B2biClient", "UpdateCapabilityCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateCapabilityCommand)
20
- .de(de_UpdateCapabilityCommand)
14
+ .sc(UpdateCapability)
21
15
  .build() {
22
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { UpdatePartnershipResponseFilterSensitiveLog, } from "../models/models_0";
6
- import { de_UpdatePartnershipCommand, se_UpdatePartnershipCommand } from "../protocols/Aws_json1_0";
4
+ import { UpdatePartnership } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class UpdatePartnershipCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("B2BI", "UpdatePartnership", {})
18
13
  .n("B2biClient", "UpdatePartnershipCommand")
19
- .f(void 0, UpdatePartnershipResponseFilterSensitiveLog)
20
- .ser(se_UpdatePartnershipCommand)
21
- .de(de_UpdatePartnershipCommand)
14
+ .sc(UpdatePartnership)
22
15
  .build() {
23
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { UpdateProfileRequestFilterSensitiveLog, UpdateProfileResponseFilterSensitiveLog, } from "../models/models_0";
6
- import { de_UpdateProfileCommand, se_UpdateProfileCommand } from "../protocols/Aws_json1_0";
4
+ import { UpdateProfile } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class UpdateProfileCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("B2BI", "UpdateProfile", {})
18
13
  .n("B2biClient", "UpdateProfileCommand")
19
- .f(UpdateProfileRequestFilterSensitiveLog, UpdateProfileResponseFilterSensitiveLog)
20
- .ser(se_UpdateProfileCommand)
21
- .de(de_UpdateProfileCommand)
14
+ .sc(UpdateProfile)
22
15
  .build() {
23
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateTransformerCommand, se_UpdateTransformerCommand } from "../protocols/Aws_json1_0";
4
+ import { UpdateTransformer } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateTransformerCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("B2BI", "UpdateTransformer", {})
17
13
  .n("B2biClient", "UpdateTransformerCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateTransformerCommand)
20
- .de(de_UpdateTransformerCommand)
14
+ .sc(UpdateTransformer)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,3 @@
1
- import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
1
  import { B2biServiceException as __BaseException } from "./B2biServiceException";
3
2
  export class AccessDeniedException extends __BaseException {
4
3
  name = "AccessDeniedException";
@@ -606,52 +605,3 @@ export const TransformerStatus = {
606
605
  ACTIVE: "active",
607
606
  INACTIVE: "inactive",
608
607
  };
609
- export const CreatePartnershipRequestFilterSensitiveLog = (obj) => ({
610
- ...obj,
611
- ...(obj.email && { email: SENSITIVE_STRING }),
612
- ...(obj.phone && { phone: SENSITIVE_STRING }),
613
- ...(obj.capabilityOptions && { capabilityOptions: obj.capabilityOptions }),
614
- });
615
- export const CreatePartnershipResponseFilterSensitiveLog = (obj) => ({
616
- ...obj,
617
- ...(obj.email && { email: SENSITIVE_STRING }),
618
- ...(obj.phone && { phone: SENSITIVE_STRING }),
619
- ...(obj.capabilityOptions && { capabilityOptions: obj.capabilityOptions }),
620
- });
621
- export const GetPartnershipResponseFilterSensitiveLog = (obj) => ({
622
- ...obj,
623
- ...(obj.email && { email: SENSITIVE_STRING }),
624
- ...(obj.phone && { phone: SENSITIVE_STRING }),
625
- ...(obj.capabilityOptions && { capabilityOptions: obj.capabilityOptions }),
626
- });
627
- export const UpdatePartnershipResponseFilterSensitiveLog = (obj) => ({
628
- ...obj,
629
- ...(obj.email && { email: SENSITIVE_STRING }),
630
- ...(obj.phone && { phone: SENSITIVE_STRING }),
631
- ...(obj.capabilityOptions && { capabilityOptions: obj.capabilityOptions }),
632
- });
633
- export const CreateProfileRequestFilterSensitiveLog = (obj) => ({
634
- ...obj,
635
- ...(obj.email && { email: SENSITIVE_STRING }),
636
- ...(obj.phone && { phone: SENSITIVE_STRING }),
637
- });
638
- export const CreateProfileResponseFilterSensitiveLog = (obj) => ({
639
- ...obj,
640
- ...(obj.phone && { phone: SENSITIVE_STRING }),
641
- ...(obj.email && { email: SENSITIVE_STRING }),
642
- });
643
- export const GetProfileResponseFilterSensitiveLog = (obj) => ({
644
- ...obj,
645
- ...(obj.email && { email: SENSITIVE_STRING }),
646
- ...(obj.phone && { phone: SENSITIVE_STRING }),
647
- });
648
- export const UpdateProfileRequestFilterSensitiveLog = (obj) => ({
649
- ...obj,
650
- ...(obj.email && { email: SENSITIVE_STRING }),
651
- ...(obj.phone && { phone: SENSITIVE_STRING }),
652
- });
653
- export const UpdateProfileResponseFilterSensitiveLog = (obj) => ({
654
- ...obj,
655
- ...(obj.email && { email: SENSITIVE_STRING }),
656
- ...(obj.phone && { phone: SENSITIVE_STRING }),
657
- });
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsJson1_0Protocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ??
27
+ new AwsJson1_0Protocol({
28
+ defaultNamespace: "com.amazonaws.b2bi",
29
+ serviceTarget: "B2BI",
30
+ awsQueryCompatible: false,
31
+ }),
25
32
  serviceId: config?.serviceId ?? "b2bi",
26
33
  urlParser: config?.urlParser ?? parseUrl,
27
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,