@aws-sdk/client-connectcases 3.354.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.
@@ -1098,7 +1098,7 @@ const de_DeleteDomainCommand = async (output, context) => {
1098
1098
  const contents = (0, smithy_client_1.map)({
1099
1099
  $metadata: deserializeMetadata(output),
1100
1100
  });
1101
- await collectBody(output.body, context);
1101
+ await (0, smithy_client_1.collectBody)(output.body, context);
1102
1102
  return contents;
1103
1103
  };
1104
1104
  exports.de_DeleteDomainCommand = de_DeleteDomainCommand;
@@ -1717,7 +1717,7 @@ const de_PutCaseEventConfigurationCommand = async (output, context) => {
1717
1717
  const contents = (0, smithy_client_1.map)({
1718
1718
  $metadata: deserializeMetadata(output),
1719
1719
  });
1720
- await collectBody(output.body, context);
1720
+ await (0, smithy_client_1.collectBody)(output.body, context);
1721
1721
  return contents;
1722
1722
  };
1723
1723
  exports.de_PutCaseEventConfigurationCommand = de_PutCaseEventConfigurationCommand;
@@ -1853,7 +1853,7 @@ const de_TagResourceCommand = async (output, context) => {
1853
1853
  const contents = (0, smithy_client_1.map)({
1854
1854
  $metadata: deserializeMetadata(output),
1855
1855
  });
1856
- await collectBody(output.body, context);
1856
+ await (0, smithy_client_1.collectBody)(output.body, context);
1857
1857
  return contents;
1858
1858
  };
1859
1859
  exports.de_TagResourceCommand = de_TagResourceCommand;
@@ -1895,7 +1895,7 @@ const de_UntagResourceCommand = async (output, context) => {
1895
1895
  const contents = (0, smithy_client_1.map)({
1896
1896
  $metadata: deserializeMetadata(output),
1897
1897
  });
1898
- await collectBody(output.body, context);
1898
+ await (0, smithy_client_1.collectBody)(output.body, context);
1899
1899
  return contents;
1900
1900
  };
1901
1901
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
@@ -1937,7 +1937,7 @@ const de_UpdateCaseCommand = async (output, context) => {
1937
1937
  const contents = (0, smithy_client_1.map)({
1938
1938
  $metadata: deserializeMetadata(output),
1939
1939
  });
1940
- await collectBody(output.body, context);
1940
+ await (0, smithy_client_1.collectBody)(output.body, context);
1941
1941
  return contents;
1942
1942
  };
1943
1943
  exports.de_UpdateCaseCommand = de_UpdateCaseCommand;
@@ -1979,7 +1979,7 @@ const de_UpdateFieldCommand = async (output, context) => {
1979
1979
  const contents = (0, smithy_client_1.map)({
1980
1980
  $metadata: deserializeMetadata(output),
1981
1981
  });
1982
- await collectBody(output.body, context);
1982
+ await (0, smithy_client_1.collectBody)(output.body, context);
1983
1983
  return contents;
1984
1984
  };
1985
1985
  exports.de_UpdateFieldCommand = de_UpdateFieldCommand;
@@ -2024,7 +2024,7 @@ const de_UpdateLayoutCommand = async (output, context) => {
2024
2024
  const contents = (0, smithy_client_1.map)({
2025
2025
  $metadata: deserializeMetadata(output),
2026
2026
  });
2027
- await collectBody(output.body, context);
2027
+ await (0, smithy_client_1.collectBody)(output.body, context);
2028
2028
  return contents;
2029
2029
  };
2030
2030
  exports.de_UpdateLayoutCommand = de_UpdateLayoutCommand;
@@ -2072,7 +2072,7 @@ const de_UpdateTemplateCommand = async (output, context) => {
2072
2072
  const contents = (0, smithy_client_1.map)({
2073
2073
  $metadata: deserializeMetadata(output),
2074
2074
  });
2075
- await collectBody(output.body, context);
2075
+ await (0, smithy_client_1.collectBody)(output.body, context);
2076
2076
  return contents;
2077
2077
  };
2078
2078
  exports.de_UpdateTemplateCommand = de_UpdateTemplateCommand;
@@ -2382,13 +2382,7 @@ const deserializeMetadata = (output) => ({
2382
2382
  extendedRequestId: output.headers["x-amz-id-2"],
2383
2383
  cfId: output.headers["x-amz-cf-id"],
2384
2384
  });
2385
- const collectBody = (streamBody = new Uint8Array(), context) => {
2386
- if (streamBody instanceof Uint8Array) {
2387
- return Promise.resolve(streamBody);
2388
- }
2389
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2390
- };
2391
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2385
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
2392
2386
  const isSerializableHeaderValue = (value) => value !== undefined &&
2393
2387
  value !== null &&
2394
2388
  value !== "" &&
@@ -1,4 +1,4 @@
1
- import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@aws-sdk/smithy-client";
1
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { ConnectCasesServiceException as __BaseException } from "../models/ConnectCasesServiceException";
@@ -2318,12 +2318,6 @@ const deserializeMetadata = (output) => ({
2318
2318
  extendedRequestId: output.headers["x-amz-id-2"],
2319
2319
  cfId: output.headers["x-amz-cf-id"],
2320
2320
  });
2321
- const collectBody = (streamBody = new Uint8Array(), context) => {
2322
- if (streamBody instanceof Uint8Array) {
2323
- return Promise.resolve(streamBody);
2324
- }
2325
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2326
- };
2327
2321
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2328
2322
  const isSerializableHeaderValue = (value) => value !== undefined &&
2329
2323
  value !== null &&
@@ -103,7 +103,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
103
103
  */
104
104
  runtime?: string;
105
105
  /**
106
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
106
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
107
107
  * trait of an operation.
108
108
  */
109
109
  disableHostPrefix?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-connectcases",
3
3
  "description": "AWS SDK for JavaScript Connectcases Client for Node.js, Browser and React Native",
4
- "version": "3.354.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.354.0",
25
- "@aws-sdk/config-resolver": "3.354.0",
26
- "@aws-sdk/credential-provider-node": "3.354.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.354.0",
36
- "@aws-sdk/middleware-serde": "3.347.0",
37
- "@aws-sdk/middleware-signing": "3.354.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.354.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.354.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.354.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",