@aws-sdk/client-pinpoint-email 3.353.0 → 3.357.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.
@@ -924,7 +924,7 @@ const de_CreateConfigurationSetCommand = async (output, context) => {
924
924
  const contents = (0, smithy_client_1.map)({
925
925
  $metadata: deserializeMetadata(output),
926
926
  });
927
- await collectBody(output.body, context);
927
+ await (0, smithy_client_1.collectBody)(output.body, context);
928
928
  return contents;
929
929
  };
930
930
  exports.de_CreateConfigurationSetCommand = de_CreateConfigurationSetCommand;
@@ -969,7 +969,7 @@ const de_CreateConfigurationSetEventDestinationCommand = async (output, context)
969
969
  const contents = (0, smithy_client_1.map)({
970
970
  $metadata: deserializeMetadata(output),
971
971
  });
972
- await collectBody(output.body, context);
972
+ await (0, smithy_client_1.collectBody)(output.body, context);
973
973
  return contents;
974
974
  };
975
975
  exports.de_CreateConfigurationSetEventDestinationCommand = de_CreateConfigurationSetEventDestinationCommand;
@@ -1011,7 +1011,7 @@ const de_CreateDedicatedIpPoolCommand = async (output, context) => {
1011
1011
  const contents = (0, smithy_client_1.map)({
1012
1012
  $metadata: deserializeMetadata(output),
1013
1013
  });
1014
- await collectBody(output.body, context);
1014
+ await (0, smithy_client_1.collectBody)(output.body, context);
1015
1015
  return contents;
1016
1016
  };
1017
1017
  exports.de_CreateDedicatedIpPoolCommand = de_CreateDedicatedIpPoolCommand;
@@ -1157,7 +1157,7 @@ const de_DeleteConfigurationSetCommand = async (output, context) => {
1157
1157
  const contents = (0, smithy_client_1.map)({
1158
1158
  $metadata: deserializeMetadata(output),
1159
1159
  });
1160
- await collectBody(output.body, context);
1160
+ await (0, smithy_client_1.collectBody)(output.body, context);
1161
1161
  return contents;
1162
1162
  };
1163
1163
  exports.de_DeleteConfigurationSetCommand = de_DeleteConfigurationSetCommand;
@@ -1196,7 +1196,7 @@ const de_DeleteConfigurationSetEventDestinationCommand = async (output, context)
1196
1196
  const contents = (0, smithy_client_1.map)({
1197
1197
  $metadata: deserializeMetadata(output),
1198
1198
  });
1199
- await collectBody(output.body, context);
1199
+ await (0, smithy_client_1.collectBody)(output.body, context);
1200
1200
  return contents;
1201
1201
  };
1202
1202
  exports.de_DeleteConfigurationSetEventDestinationCommand = de_DeleteConfigurationSetEventDestinationCommand;
@@ -1232,7 +1232,7 @@ const de_DeleteDedicatedIpPoolCommand = async (output, context) => {
1232
1232
  const contents = (0, smithy_client_1.map)({
1233
1233
  $metadata: deserializeMetadata(output),
1234
1234
  });
1235
- await collectBody(output.body, context);
1235
+ await (0, smithy_client_1.collectBody)(output.body, context);
1236
1236
  return contents;
1237
1237
  };
1238
1238
  exports.de_DeleteDedicatedIpPoolCommand = de_DeleteDedicatedIpPoolCommand;
@@ -1271,7 +1271,7 @@ const de_DeleteEmailIdentityCommand = async (output, context) => {
1271
1271
  const contents = (0, smithy_client_1.map)({
1272
1272
  $metadata: deserializeMetadata(output),
1273
1273
  });
1274
- await collectBody(output.body, context);
1274
+ await (0, smithy_client_1.collectBody)(output.body, context);
1275
1275
  return contents;
1276
1276
  };
1277
1277
  exports.de_DeleteEmailIdentityCommand = de_DeleteEmailIdentityCommand;
@@ -2007,7 +2007,7 @@ const de_PutAccountDedicatedIpWarmupAttributesCommand = async (output, context)
2007
2007
  const contents = (0, smithy_client_1.map)({
2008
2008
  $metadata: deserializeMetadata(output),
2009
2009
  });
2010
- await collectBody(output.body, context);
2010
+ await (0, smithy_client_1.collectBody)(output.body, context);
2011
2011
  return contents;
2012
2012
  };
2013
2013
  exports.de_PutAccountDedicatedIpWarmupAttributesCommand = de_PutAccountDedicatedIpWarmupAttributesCommand;
@@ -2040,7 +2040,7 @@ const de_PutAccountSendingAttributesCommand = async (output, context) => {
2040
2040
  const contents = (0, smithy_client_1.map)({
2041
2041
  $metadata: deserializeMetadata(output),
2042
2042
  });
2043
- await collectBody(output.body, context);
2043
+ await (0, smithy_client_1.collectBody)(output.body, context);
2044
2044
  return contents;
2045
2045
  };
2046
2046
  exports.de_PutAccountSendingAttributesCommand = de_PutAccountSendingAttributesCommand;
@@ -2073,7 +2073,7 @@ const de_PutConfigurationSetDeliveryOptionsCommand = async (output, context) =>
2073
2073
  const contents = (0, smithy_client_1.map)({
2074
2074
  $metadata: deserializeMetadata(output),
2075
2075
  });
2076
- await collectBody(output.body, context);
2076
+ await (0, smithy_client_1.collectBody)(output.body, context);
2077
2077
  return contents;
2078
2078
  };
2079
2079
  exports.de_PutConfigurationSetDeliveryOptionsCommand = de_PutConfigurationSetDeliveryOptionsCommand;
@@ -2109,7 +2109,7 @@ const de_PutConfigurationSetReputationOptionsCommand = async (output, context) =
2109
2109
  const contents = (0, smithy_client_1.map)({
2110
2110
  $metadata: deserializeMetadata(output),
2111
2111
  });
2112
- await collectBody(output.body, context);
2112
+ await (0, smithy_client_1.collectBody)(output.body, context);
2113
2113
  return contents;
2114
2114
  };
2115
2115
  exports.de_PutConfigurationSetReputationOptionsCommand = de_PutConfigurationSetReputationOptionsCommand;
@@ -2145,7 +2145,7 @@ const de_PutConfigurationSetSendingOptionsCommand = async (output, context) => {
2145
2145
  const contents = (0, smithy_client_1.map)({
2146
2146
  $metadata: deserializeMetadata(output),
2147
2147
  });
2148
- await collectBody(output.body, context);
2148
+ await (0, smithy_client_1.collectBody)(output.body, context);
2149
2149
  return contents;
2150
2150
  };
2151
2151
  exports.de_PutConfigurationSetSendingOptionsCommand = de_PutConfigurationSetSendingOptionsCommand;
@@ -2181,7 +2181,7 @@ const de_PutConfigurationSetTrackingOptionsCommand = async (output, context) =>
2181
2181
  const contents = (0, smithy_client_1.map)({
2182
2182
  $metadata: deserializeMetadata(output),
2183
2183
  });
2184
- await collectBody(output.body, context);
2184
+ await (0, smithy_client_1.collectBody)(output.body, context);
2185
2185
  return contents;
2186
2186
  };
2187
2187
  exports.de_PutConfigurationSetTrackingOptionsCommand = de_PutConfigurationSetTrackingOptionsCommand;
@@ -2217,7 +2217,7 @@ const de_PutDedicatedIpInPoolCommand = async (output, context) => {
2217
2217
  const contents = (0, smithy_client_1.map)({
2218
2218
  $metadata: deserializeMetadata(output),
2219
2219
  });
2220
- await collectBody(output.body, context);
2220
+ await (0, smithy_client_1.collectBody)(output.body, context);
2221
2221
  return contents;
2222
2222
  };
2223
2223
  exports.de_PutDedicatedIpInPoolCommand = de_PutDedicatedIpInPoolCommand;
@@ -2253,7 +2253,7 @@ const de_PutDedicatedIpWarmupAttributesCommand = async (output, context) => {
2253
2253
  const contents = (0, smithy_client_1.map)({
2254
2254
  $metadata: deserializeMetadata(output),
2255
2255
  });
2256
- await collectBody(output.body, context);
2256
+ await (0, smithy_client_1.collectBody)(output.body, context);
2257
2257
  return contents;
2258
2258
  };
2259
2259
  exports.de_PutDedicatedIpWarmupAttributesCommand = de_PutDedicatedIpWarmupAttributesCommand;
@@ -2289,7 +2289,7 @@ const de_PutDeliverabilityDashboardOptionCommand = async (output, context) => {
2289
2289
  const contents = (0, smithy_client_1.map)({
2290
2290
  $metadata: deserializeMetadata(output),
2291
2291
  });
2292
- await collectBody(output.body, context);
2292
+ await (0, smithy_client_1.collectBody)(output.body, context);
2293
2293
  return contents;
2294
2294
  };
2295
2295
  exports.de_PutDeliverabilityDashboardOptionCommand = de_PutDeliverabilityDashboardOptionCommand;
@@ -2331,7 +2331,7 @@ const de_PutEmailIdentityDkimAttributesCommand = async (output, context) => {
2331
2331
  const contents = (0, smithy_client_1.map)({
2332
2332
  $metadata: deserializeMetadata(output),
2333
2333
  });
2334
- await collectBody(output.body, context);
2334
+ await (0, smithy_client_1.collectBody)(output.body, context);
2335
2335
  return contents;
2336
2336
  };
2337
2337
  exports.de_PutEmailIdentityDkimAttributesCommand = de_PutEmailIdentityDkimAttributesCommand;
@@ -2367,7 +2367,7 @@ const de_PutEmailIdentityFeedbackAttributesCommand = async (output, context) =>
2367
2367
  const contents = (0, smithy_client_1.map)({
2368
2368
  $metadata: deserializeMetadata(output),
2369
2369
  });
2370
- await collectBody(output.body, context);
2370
+ await (0, smithy_client_1.collectBody)(output.body, context);
2371
2371
  return contents;
2372
2372
  };
2373
2373
  exports.de_PutEmailIdentityFeedbackAttributesCommand = de_PutEmailIdentityFeedbackAttributesCommand;
@@ -2403,7 +2403,7 @@ const de_PutEmailIdentityMailFromAttributesCommand = async (output, context) =>
2403
2403
  const contents = (0, smithy_client_1.map)({
2404
2404
  $metadata: deserializeMetadata(output),
2405
2405
  });
2406
- await collectBody(output.body, context);
2406
+ await (0, smithy_client_1.collectBody)(output.body, context);
2407
2407
  return contents;
2408
2408
  };
2409
2409
  exports.de_PutEmailIdentityMailFromAttributesCommand = de_PutEmailIdentityMailFromAttributesCommand;
@@ -2494,7 +2494,7 @@ const de_TagResourceCommand = async (output, context) => {
2494
2494
  const contents = (0, smithy_client_1.map)({
2495
2495
  $metadata: deserializeMetadata(output),
2496
2496
  });
2497
- await collectBody(output.body, context);
2497
+ await (0, smithy_client_1.collectBody)(output.body, context);
2498
2498
  return contents;
2499
2499
  };
2500
2500
  exports.de_TagResourceCommand = de_TagResourceCommand;
@@ -2533,7 +2533,7 @@ const de_UntagResourceCommand = async (output, context) => {
2533
2533
  const contents = (0, smithy_client_1.map)({
2534
2534
  $metadata: deserializeMetadata(output),
2535
2535
  });
2536
- await collectBody(output.body, context);
2536
+ await (0, smithy_client_1.collectBody)(output.body, context);
2537
2537
  return contents;
2538
2538
  };
2539
2539
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
@@ -2572,7 +2572,7 @@ const de_UpdateConfigurationSetEventDestinationCommand = async (output, context)
2572
2572
  const contents = (0, smithy_client_1.map)({
2573
2573
  $metadata: deserializeMetadata(output),
2574
2574
  });
2575
- await collectBody(output.body, context);
2575
+ await (0, smithy_client_1.collectBody)(output.body, context);
2576
2576
  return contents;
2577
2577
  };
2578
2578
  exports.de_UpdateConfigurationSetEventDestinationCommand = de_UpdateConfigurationSetEventDestinationCommand;
@@ -2928,13 +2928,7 @@ const deserializeMetadata = (output) => ({
2928
2928
  extendedRequestId: output.headers["x-amz-id-2"],
2929
2929
  cfId: output.headers["x-amz-cf-id"],
2930
2930
  });
2931
- const collectBody = (streamBody = new Uint8Array(), context) => {
2932
- if (streamBody instanceof Uint8Array) {
2933
- return Promise.resolve(streamBody);
2934
- }
2935
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2936
- };
2937
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2931
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
2938
2932
  const isSerializableHeaderValue = (value) => value !== undefined &&
2939
2933
  value !== null &&
2940
2934
  value !== "" &&
@@ -1,4 +1,4 @@
1
- import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
1
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { AccountSuspendedException, AlreadyExistsException, BadRequestException, ConcurrentModificationException, LimitExceededException, MailFromDomainNotVerifiedException, MessageRejected, NotFoundException, SendingPausedException, TooManyRequestsException, } from "../models/models_0";
4
4
  import { PinpointEmailServiceException as __BaseException } from "../models/PinpointEmailServiceException";
@@ -2840,12 +2840,6 @@ const deserializeMetadata = (output) => ({
2840
2840
  extendedRequestId: output.headers["x-amz-id-2"],
2841
2841
  cfId: output.headers["x-amz-cf-id"],
2842
2842
  });
2843
- const collectBody = (streamBody = new Uint8Array(), context) => {
2844
- if (streamBody instanceof Uint8Array) {
2845
- return Promise.resolve(streamBody);
2846
- }
2847
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2848
- };
2849
2843
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2850
2844
  const isSerializableHeaderValue = (value) => value !== undefined &&
2851
2845
  value !== null &&
@@ -115,7 +115,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
115
115
  */
116
116
  runtime?: string;
117
117
  /**
118
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
118
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
119
119
  * trait of an operation.
120
120
  */
121
121
  disableHostPrefix?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-pinpoint-email",
3
3
  "description": "AWS SDK for JavaScript Pinpoint Email Client for Node.js, Browser and React Native",
4
- "version": "3.353.0",
4
+ "version": "3.357.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,36 +21,36 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.353.0",
25
- "@aws-sdk/config-resolver": "3.353.0",
26
- "@aws-sdk/credential-provider-node": "3.353.0",
27
- "@aws-sdk/fetch-http-handler": "3.353.0",
28
- "@aws-sdk/hash-node": "3.347.0",
29
- "@aws-sdk/invalid-dependency": "3.347.0",
30
- "@aws-sdk/middleware-content-length": "3.347.0",
31
- "@aws-sdk/middleware-endpoint": "3.347.0",
32
- "@aws-sdk/middleware-host-header": "3.347.0",
33
- "@aws-sdk/middleware-logger": "3.347.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.347.0",
35
- "@aws-sdk/middleware-retry": "3.353.0",
36
- "@aws-sdk/middleware-serde": "3.347.0",
37
- "@aws-sdk/middleware-signing": "3.353.0",
38
- "@aws-sdk/middleware-stack": "3.347.0",
39
- "@aws-sdk/middleware-user-agent": "3.352.0",
40
- "@aws-sdk/node-config-provider": "3.353.0",
41
- "@aws-sdk/node-http-handler": "3.350.0",
42
- "@aws-sdk/smithy-client": "3.347.0",
43
- "@aws-sdk/types": "3.347.0",
44
- "@aws-sdk/url-parser": "3.347.0",
24
+ "@aws-sdk/client-sts": "3.357.0",
25
+ "@aws-sdk/config-resolver": "3.357.0",
26
+ "@aws-sdk/credential-provider-node": "3.357.0",
27
+ "@aws-sdk/fetch-http-handler": "3.357.0",
28
+ "@aws-sdk/hash-node": "3.357.0",
29
+ "@aws-sdk/invalid-dependency": "3.357.0",
30
+ "@aws-sdk/middleware-content-length": "3.357.0",
31
+ "@aws-sdk/middleware-endpoint": "3.357.0",
32
+ "@aws-sdk/middleware-host-header": "3.357.0",
33
+ "@aws-sdk/middleware-logger": "3.357.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.357.0",
35
+ "@aws-sdk/middleware-retry": "3.357.0",
36
+ "@aws-sdk/middleware-serde": "3.357.0",
37
+ "@aws-sdk/middleware-signing": "3.357.0",
38
+ "@aws-sdk/middleware-stack": "3.357.0",
39
+ "@aws-sdk/middleware-user-agent": "3.357.0",
40
+ "@aws-sdk/node-config-provider": "3.357.0",
41
+ "@aws-sdk/node-http-handler": "3.357.0",
42
+ "@aws-sdk/smithy-client": "3.357.0",
43
+ "@aws-sdk/types": "3.357.0",
44
+ "@aws-sdk/url-parser": "3.357.0",
45
45
  "@aws-sdk/util-base64": "3.310.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.310.0",
47
47
  "@aws-sdk/util-body-length-node": "3.310.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.353.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.353.0",
50
- "@aws-sdk/util-endpoints": "3.352.0",
51
- "@aws-sdk/util-retry": "3.347.0",
52
- "@aws-sdk/util-user-agent-browser": "3.347.0",
53
- "@aws-sdk/util-user-agent-node": "3.353.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.357.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.357.0",
50
+ "@aws-sdk/util-endpoints": "3.357.0",
51
+ "@aws-sdk/util-retry": "3.357.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.357.0",
53
+ "@aws-sdk/util-user-agent-node": "3.357.0",
54
54
  "@aws-sdk/util-utf8": "3.310.0",
55
55
  "@smithy/protocol-http": "^1.0.1",
56
56
  "@smithy/types": "^1.0.0",