@aws-sdk/client-connectcampaigns 3.354.0 → 3.358.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.
@@ -502,7 +502,7 @@ const de_DeleteCampaignCommand = async (output, context) => {
502
502
  const contents = (0, smithy_client_1.map)({
503
503
  $metadata: deserializeMetadata(output),
504
504
  });
505
- await collectBody(output.body, context);
505
+ await (0, smithy_client_1.collectBody)(output.body, context);
506
506
  return contents;
507
507
  };
508
508
  exports.de_DeleteCampaignCommand = de_DeleteCampaignCommand;
@@ -541,7 +541,7 @@ const de_DeleteConnectInstanceConfigCommand = async (output, context) => {
541
541
  const contents = (0, smithy_client_1.map)({
542
542
  $metadata: deserializeMetadata(output),
543
543
  });
544
- await collectBody(output.body, context);
544
+ await (0, smithy_client_1.collectBody)(output.body, context);
545
545
  return contents;
546
546
  };
547
547
  exports.de_DeleteConnectInstanceConfigCommand = de_DeleteConnectInstanceConfigCommand;
@@ -586,7 +586,7 @@ const de_DeleteInstanceOnboardingJobCommand = async (output, context) => {
586
586
  const contents = (0, smithy_client_1.map)({
587
587
  $metadata: deserializeMetadata(output),
588
588
  });
589
- await collectBody(output.body, context);
589
+ await (0, smithy_client_1.collectBody)(output.body, context);
590
590
  return contents;
591
591
  };
592
592
  exports.de_DeleteInstanceOnboardingJobCommand = de_DeleteInstanceOnboardingJobCommand;
@@ -934,7 +934,7 @@ const de_PauseCampaignCommand = async (output, context) => {
934
934
  const contents = (0, smithy_client_1.map)({
935
935
  $metadata: deserializeMetadata(output),
936
936
  });
937
- await collectBody(output.body, context);
937
+ await (0, smithy_client_1.collectBody)(output.body, context);
938
938
  return contents;
939
939
  };
940
940
  exports.de_PauseCampaignCommand = de_PauseCampaignCommand;
@@ -1035,7 +1035,7 @@ const de_ResumeCampaignCommand = async (output, context) => {
1035
1035
  const contents = (0, smithy_client_1.map)({
1036
1036
  $metadata: deserializeMetadata(output),
1037
1037
  });
1038
- await collectBody(output.body, context);
1038
+ await (0, smithy_client_1.collectBody)(output.body, context);
1039
1039
  return contents;
1040
1040
  };
1041
1041
  exports.de_ResumeCampaignCommand = de_ResumeCampaignCommand;
@@ -1083,7 +1083,7 @@ const de_StartCampaignCommand = async (output, context) => {
1083
1083
  const contents = (0, smithy_client_1.map)({
1084
1084
  $metadata: deserializeMetadata(output),
1085
1085
  });
1086
- await collectBody(output.body, context);
1086
+ await (0, smithy_client_1.collectBody)(output.body, context);
1087
1087
  return contents;
1088
1088
  };
1089
1089
  exports.de_StartCampaignCommand = de_StartCampaignCommand;
@@ -1180,7 +1180,7 @@ const de_StopCampaignCommand = async (output, context) => {
1180
1180
  const contents = (0, smithy_client_1.map)({
1181
1181
  $metadata: deserializeMetadata(output),
1182
1182
  });
1183
- await collectBody(output.body, context);
1183
+ await (0, smithy_client_1.collectBody)(output.body, context);
1184
1184
  return contents;
1185
1185
  };
1186
1186
  exports.de_StopCampaignCommand = de_StopCampaignCommand;
@@ -1228,7 +1228,7 @@ const de_TagResourceCommand = async (output, context) => {
1228
1228
  const contents = (0, smithy_client_1.map)({
1229
1229
  $metadata: deserializeMetadata(output),
1230
1230
  });
1231
- await collectBody(output.body, context);
1231
+ await (0, smithy_client_1.collectBody)(output.body, context);
1232
1232
  return contents;
1233
1233
  };
1234
1234
  exports.de_TagResourceCommand = de_TagResourceCommand;
@@ -1270,7 +1270,7 @@ const de_UntagResourceCommand = async (output, context) => {
1270
1270
  const contents = (0, smithy_client_1.map)({
1271
1271
  $metadata: deserializeMetadata(output),
1272
1272
  });
1273
- await collectBody(output.body, context);
1273
+ await (0, smithy_client_1.collectBody)(output.body, context);
1274
1274
  return contents;
1275
1275
  };
1276
1276
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
@@ -1312,7 +1312,7 @@ const de_UpdateCampaignDialerConfigCommand = async (output, context) => {
1312
1312
  const contents = (0, smithy_client_1.map)({
1313
1313
  $metadata: deserializeMetadata(output),
1314
1314
  });
1315
- await collectBody(output.body, context);
1315
+ await (0, smithy_client_1.collectBody)(output.body, context);
1316
1316
  return contents;
1317
1317
  };
1318
1318
  exports.de_UpdateCampaignDialerConfigCommand = de_UpdateCampaignDialerConfigCommand;
@@ -1354,7 +1354,7 @@ const de_UpdateCampaignNameCommand = async (output, context) => {
1354
1354
  const contents = (0, smithy_client_1.map)({
1355
1355
  $metadata: deserializeMetadata(output),
1356
1356
  });
1357
- await collectBody(output.body, context);
1357
+ await (0, smithy_client_1.collectBody)(output.body, context);
1358
1358
  return contents;
1359
1359
  };
1360
1360
  exports.de_UpdateCampaignNameCommand = de_UpdateCampaignNameCommand;
@@ -1396,7 +1396,7 @@ const de_UpdateCampaignOutboundCallConfigCommand = async (output, context) => {
1396
1396
  const contents = (0, smithy_client_1.map)({
1397
1397
  $metadata: deserializeMetadata(output),
1398
1398
  });
1399
- await collectBody(output.body, context);
1399
+ await (0, smithy_client_1.collectBody)(output.body, context);
1400
1400
  return contents;
1401
1401
  };
1402
1402
  exports.de_UpdateCampaignOutboundCallConfigCommand = de_UpdateCampaignOutboundCallConfigCommand;
@@ -1643,13 +1643,7 @@ const deserializeMetadata = (output) => ({
1643
1643
  extendedRequestId: output.headers["x-amz-id-2"],
1644
1644
  cfId: output.headers["x-amz-cf-id"],
1645
1645
  });
1646
- const collectBody = (streamBody = new Uint8Array(), context) => {
1647
- if (streamBody instanceof Uint8Array) {
1648
- return Promise.resolve(streamBody);
1649
- }
1650
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1651
- };
1652
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1646
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
1653
1647
  const isSerializableHeaderValue = (value) => value !== undefined &&
1654
1648
  value !== null &&
1655
1649
  value !== "" &&
@@ -1,4 +1,4 @@
1
- import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, map, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
1
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, map, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { ConnectCampaignsServiceException as __BaseException } from "../models/ConnectCampaignsServiceException";
4
4
  import { AccessDeniedException, ConflictException, DialerConfig, InternalServerException, InvalidCampaignStateException, InvalidStateException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
@@ -1596,12 +1596,6 @@ const deserializeMetadata = (output) => ({
1596
1596
  extendedRequestId: output.headers["x-amz-id-2"],
1597
1597
  cfId: output.headers["x-amz-cf-id"],
1598
1598
  });
1599
- const collectBody = (streamBody = new Uint8Array(), context) => {
1600
- if (streamBody instanceof Uint8Array) {
1601
- return Promise.resolve(streamBody);
1602
- }
1603
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1604
- };
1605
1599
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1606
1600
  const isSerializableHeaderValue = (value) => value !== undefined &&
1607
1601
  value !== null &&
@@ -95,7 +95,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
95
95
  */
96
96
  runtime?: string;
97
97
  /**
98
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
98
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
99
99
  * trait of an operation.
100
100
  */
101
101
  disableHostPrefix?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-connectcampaigns",
3
3
  "description": "AWS SDK for JavaScript Connectcampaigns Client for Node.js, Browser and React Native",
4
- "version": "3.354.0",
4
+ "version": "3.358.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.358.0",
25
+ "@aws-sdk/config-resolver": "3.357.0",
26
+ "@aws-sdk/credential-provider-node": "3.358.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.358.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.358.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.358.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",