@aws-sdk/client-swf 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.
@@ -413,7 +413,7 @@ const de_DeprecateActivityTypeCommand = async (output, context) => {
413
413
  if (output.statusCode >= 300) {
414
414
  return de_DeprecateActivityTypeCommandError(output, context);
415
415
  }
416
- await collectBody(output.body, context);
416
+ await (0, smithy_client_1.collectBody)(output.body, context);
417
417
  const response = {
418
418
  $metadata: deserializeMetadata(output),
419
419
  };
@@ -449,7 +449,7 @@ const de_DeprecateDomainCommand = async (output, context) => {
449
449
  if (output.statusCode >= 300) {
450
450
  return de_DeprecateDomainCommandError(output, context);
451
451
  }
452
- await collectBody(output.body, context);
452
+ await (0, smithy_client_1.collectBody)(output.body, context);
453
453
  const response = {
454
454
  $metadata: deserializeMetadata(output),
455
455
  };
@@ -485,7 +485,7 @@ const de_DeprecateWorkflowTypeCommand = async (output, context) => {
485
485
  if (output.statusCode >= 300) {
486
486
  return de_DeprecateWorkflowTypeCommandError(output, context);
487
487
  }
488
- await collectBody(output.body, context);
488
+ await (0, smithy_client_1.collectBody)(output.body, context);
489
489
  const response = {
490
490
  $metadata: deserializeMetadata(output),
491
491
  };
@@ -1031,7 +1031,7 @@ const de_RegisterActivityTypeCommand = async (output, context) => {
1031
1031
  if (output.statusCode >= 300) {
1032
1032
  return de_RegisterActivityTypeCommandError(output, context);
1033
1033
  }
1034
- await collectBody(output.body, context);
1034
+ await (0, smithy_client_1.collectBody)(output.body, context);
1035
1035
  const response = {
1036
1036
  $metadata: deserializeMetadata(output),
1037
1037
  };
@@ -1070,7 +1070,7 @@ const de_RegisterDomainCommand = async (output, context) => {
1070
1070
  if (output.statusCode >= 300) {
1071
1071
  return de_RegisterDomainCommandError(output, context);
1072
1072
  }
1073
- await collectBody(output.body, context);
1073
+ await (0, smithy_client_1.collectBody)(output.body, context);
1074
1074
  const response = {
1075
1075
  $metadata: deserializeMetadata(output),
1076
1076
  };
@@ -1109,7 +1109,7 @@ const de_RegisterWorkflowTypeCommand = async (output, context) => {
1109
1109
  if (output.statusCode >= 300) {
1110
1110
  return de_RegisterWorkflowTypeCommandError(output, context);
1111
1111
  }
1112
- await collectBody(output.body, context);
1112
+ await (0, smithy_client_1.collectBody)(output.body, context);
1113
1113
  const response = {
1114
1114
  $metadata: deserializeMetadata(output),
1115
1115
  };
@@ -1148,7 +1148,7 @@ const de_RequestCancelWorkflowExecutionCommand = async (output, context) => {
1148
1148
  if (output.statusCode >= 300) {
1149
1149
  return de_RequestCancelWorkflowExecutionCommandError(output, context);
1150
1150
  }
1151
- await collectBody(output.body, context);
1151
+ await (0, smithy_client_1.collectBody)(output.body, context);
1152
1152
  const response = {
1153
1153
  $metadata: deserializeMetadata(output),
1154
1154
  };
@@ -1181,7 +1181,7 @@ const de_RespondActivityTaskCanceledCommand = async (output, context) => {
1181
1181
  if (output.statusCode >= 300) {
1182
1182
  return de_RespondActivityTaskCanceledCommandError(output, context);
1183
1183
  }
1184
- await collectBody(output.body, context);
1184
+ await (0, smithy_client_1.collectBody)(output.body, context);
1185
1185
  const response = {
1186
1186
  $metadata: deserializeMetadata(output),
1187
1187
  };
@@ -1214,7 +1214,7 @@ const de_RespondActivityTaskCompletedCommand = async (output, context) => {
1214
1214
  if (output.statusCode >= 300) {
1215
1215
  return de_RespondActivityTaskCompletedCommandError(output, context);
1216
1216
  }
1217
- await collectBody(output.body, context);
1217
+ await (0, smithy_client_1.collectBody)(output.body, context);
1218
1218
  const response = {
1219
1219
  $metadata: deserializeMetadata(output),
1220
1220
  };
@@ -1247,7 +1247,7 @@ const de_RespondActivityTaskFailedCommand = async (output, context) => {
1247
1247
  if (output.statusCode >= 300) {
1248
1248
  return de_RespondActivityTaskFailedCommandError(output, context);
1249
1249
  }
1250
- await collectBody(output.body, context);
1250
+ await (0, smithy_client_1.collectBody)(output.body, context);
1251
1251
  const response = {
1252
1252
  $metadata: deserializeMetadata(output),
1253
1253
  };
@@ -1280,7 +1280,7 @@ const de_RespondDecisionTaskCompletedCommand = async (output, context) => {
1280
1280
  if (output.statusCode >= 300) {
1281
1281
  return de_RespondDecisionTaskCompletedCommandError(output, context);
1282
1282
  }
1283
- await collectBody(output.body, context);
1283
+ await (0, smithy_client_1.collectBody)(output.body, context);
1284
1284
  const response = {
1285
1285
  $metadata: deserializeMetadata(output),
1286
1286
  };
@@ -1313,7 +1313,7 @@ const de_SignalWorkflowExecutionCommand = async (output, context) => {
1313
1313
  if (output.statusCode >= 300) {
1314
1314
  return de_SignalWorkflowExecutionCommandError(output, context);
1315
1315
  }
1316
- await collectBody(output.body, context);
1316
+ await (0, smithy_client_1.collectBody)(output.body, context);
1317
1317
  const response = {
1318
1318
  $metadata: deserializeMetadata(output),
1319
1319
  };
@@ -1394,7 +1394,7 @@ const de_TagResourceCommand = async (output, context) => {
1394
1394
  if (output.statusCode >= 300) {
1395
1395
  return de_TagResourceCommandError(output, context);
1396
1396
  }
1397
- await collectBody(output.body, context);
1397
+ await (0, smithy_client_1.collectBody)(output.body, context);
1398
1398
  const response = {
1399
1399
  $metadata: deserializeMetadata(output),
1400
1400
  };
@@ -1433,7 +1433,7 @@ const de_TerminateWorkflowExecutionCommand = async (output, context) => {
1433
1433
  if (output.statusCode >= 300) {
1434
1434
  return de_TerminateWorkflowExecutionCommandError(output, context);
1435
1435
  }
1436
- await collectBody(output.body, context);
1436
+ await (0, smithy_client_1.collectBody)(output.body, context);
1437
1437
  const response = {
1438
1438
  $metadata: deserializeMetadata(output),
1439
1439
  };
@@ -1466,7 +1466,7 @@ const de_UndeprecateActivityTypeCommand = async (output, context) => {
1466
1466
  if (output.statusCode >= 300) {
1467
1467
  return de_UndeprecateActivityTypeCommandError(output, context);
1468
1468
  }
1469
- await collectBody(output.body, context);
1469
+ await (0, smithy_client_1.collectBody)(output.body, context);
1470
1470
  const response = {
1471
1471
  $metadata: deserializeMetadata(output),
1472
1472
  };
@@ -1502,7 +1502,7 @@ const de_UndeprecateDomainCommand = async (output, context) => {
1502
1502
  if (output.statusCode >= 300) {
1503
1503
  return de_UndeprecateDomainCommandError(output, context);
1504
1504
  }
1505
- await collectBody(output.body, context);
1505
+ await (0, smithy_client_1.collectBody)(output.body, context);
1506
1506
  const response = {
1507
1507
  $metadata: deserializeMetadata(output),
1508
1508
  };
@@ -1538,7 +1538,7 @@ const de_UndeprecateWorkflowTypeCommand = async (output, context) => {
1538
1538
  if (output.statusCode >= 300) {
1539
1539
  return de_UndeprecateWorkflowTypeCommandError(output, context);
1540
1540
  }
1541
- await collectBody(output.body, context);
1541
+ await (0, smithy_client_1.collectBody)(output.body, context);
1542
1542
  const response = {
1543
1543
  $metadata: deserializeMetadata(output),
1544
1544
  };
@@ -1574,7 +1574,7 @@ const de_UntagResourceCommand = async (output, context) => {
1574
1574
  if (output.statusCode >= 300) {
1575
1575
  return de_UntagResourceCommandError(output, context);
1576
1576
  }
1577
- await collectBody(output.body, context);
1577
+ await (0, smithy_client_1.collectBody)(output.body, context);
1578
1578
  const response = {
1579
1579
  $metadata: deserializeMetadata(output),
1580
1580
  };
@@ -1934,13 +1934,7 @@ const deserializeMetadata = (output) => ({
1934
1934
  extendedRequestId: output.headers["x-amz-id-2"],
1935
1935
  cfId: output.headers["x-amz-cf-id"],
1936
1936
  });
1937
- const collectBody = (streamBody = new Uint8Array(), context) => {
1938
- if (streamBody instanceof Uint8Array) {
1939
- return Promise.resolve(streamBody);
1940
- }
1941
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1942
- };
1943
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1937
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
1944
1938
  const throwDefaultError = (0, smithy_client_1.withBaseException)(SWFServiceException_1.SWFServiceException);
1945
1939
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1946
1940
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -1,4 +1,4 @@
1
- import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, 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, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { DefaultUndefinedFault, DomainAlreadyExistsFault, DomainDeprecatedFault, LimitExceededFault, OperationNotPermittedFault, TooManyTagsFault, TypeAlreadyExistsFault, TypeDeprecatedFault, UnknownResourceFault, WorkflowExecutionAlreadyStartedFault, } from "../models/models_0";
4
4
  import { SWFServiceException as __BaseException } from "../models/SWFServiceException";
@@ -1856,12 +1856,6 @@ const deserializeMetadata = (output) => ({
1856
1856
  extendedRequestId: output.headers["x-amz-id-2"],
1857
1857
  cfId: output.headers["x-amz-cf-id"],
1858
1858
  });
1859
- const collectBody = (streamBody = new Uint8Array(), context) => {
1860
- if (streamBody instanceof Uint8Array) {
1861
- return Promise.resolve(streamBody);
1862
- }
1863
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1864
- };
1865
1859
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1866
1860
  const throwDefaultError = withBaseException(__BaseException);
1867
1861
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
@@ -110,7 +110,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
110
110
  */
111
111
  runtime?: string;
112
112
  /**
113
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
113
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
114
114
  * trait of an operation.
115
115
  */
116
116
  disableHostPrefix?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-swf",
3
3
  "description": "AWS SDK for JavaScript Swf 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",