@aws-sdk/client-connectcampaigns 3.180.0 → 3.183.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 (36) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +28 -22
  3. package/dist-es/ConnectCampaigns.js +90 -97
  4. package/dist-es/ConnectCampaignsClient.js +22 -28
  5. package/dist-es/commands/CreateCampaignCommand.js +21 -28
  6. package/dist-es/commands/DeleteCampaignCommand.js +22 -29
  7. package/dist-es/commands/DeleteConnectInstanceConfigCommand.js +22 -29
  8. package/dist-es/commands/DeleteInstanceOnboardingJobCommand.js +22 -29
  9. package/dist-es/commands/DescribeCampaignCommand.js +21 -28
  10. package/dist-es/commands/GetCampaignStateBatchCommand.js +21 -28
  11. package/dist-es/commands/GetCampaignStateCommand.js +21 -28
  12. package/dist-es/commands/GetConnectInstanceConfigCommand.js +21 -28
  13. package/dist-es/commands/GetInstanceOnboardingJobStatusCommand.js +21 -28
  14. package/dist-es/commands/ListCampaignsCommand.js +21 -28
  15. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  16. package/dist-es/commands/PauseCampaignCommand.js +22 -29
  17. package/dist-es/commands/PutDialRequestBatchCommand.js +21 -28
  18. package/dist-es/commands/ResumeCampaignCommand.js +22 -29
  19. package/dist-es/commands/StartCampaignCommand.js +22 -29
  20. package/dist-es/commands/StartInstanceOnboardingJobCommand.js +21 -28
  21. package/dist-es/commands/StopCampaignCommand.js +22 -29
  22. package/dist-es/commands/TagResourceCommand.js +22 -29
  23. package/dist-es/commands/UntagResourceCommand.js +22 -29
  24. package/dist-es/commands/UpdateCampaignDialerConfigCommand.js +22 -29
  25. package/dist-es/commands/UpdateCampaignNameCommand.js +22 -29
  26. package/dist-es/commands/UpdateCampaignOutboundCallConfigCommand.js +22 -29
  27. package/dist-es/endpoints.js +8 -8
  28. package/dist-es/models/ConnectCampaignsServiceException.js +5 -10
  29. package/dist-es/models/models_0.js +265 -164
  30. package/dist-es/pagination/ListCampaignsPaginator.js +25 -68
  31. package/dist-es/protocols/Aws_restJson1.js +1625 -2287
  32. package/dist-es/runtimeConfig.browser.js +26 -12
  33. package/dist-es/runtimeConfig.js +30 -12
  34. package/dist-es/runtimeConfig.native.js +8 -5
  35. package/dist-es/runtimeConfig.shared.js +8 -11
  36. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateCampaignDialerConfigRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateCampaignDialerConfigCommand, serializeAws_restJson1UpdateCampaignDialerConfigCommand, } from "../protocols/Aws_restJson1";
6
- var UpdateCampaignDialerConfigCommand = (function (_super) {
7
- __extends(UpdateCampaignDialerConfigCommand, _super);
8
- function UpdateCampaignDialerConfigCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateCampaignDialerConfigCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateCampaignDialerConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ConnectCampaignsClient";
18
- var commandName = "UpdateCampaignDialerConfigCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ConnectCampaignsClient";
15
+ const commandName = "UpdateCampaignDialerConfigCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateCampaignDialerConfigRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateCampaignDialerConfigCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1UpdateCampaignDialerConfigCommand(input, context);
33
- };
34
- UpdateCampaignDialerConfigCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateCampaignDialerConfigCommand(output, context);
36
- };
37
- return UpdateCampaignDialerConfigCommand;
38
- }($Command));
39
- export { UpdateCampaignDialerConfigCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateCampaignNameRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateCampaignNameCommand, serializeAws_restJson1UpdateCampaignNameCommand, } from "../protocols/Aws_restJson1";
6
- var UpdateCampaignNameCommand = (function (_super) {
7
- __extends(UpdateCampaignNameCommand, _super);
8
- function UpdateCampaignNameCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateCampaignNameCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateCampaignNameCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ConnectCampaignsClient";
18
- var commandName = "UpdateCampaignNameCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ConnectCampaignsClient";
15
+ const commandName = "UpdateCampaignNameCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateCampaignNameRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateCampaignNameCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1UpdateCampaignNameCommand(input, context);
33
- };
34
- UpdateCampaignNameCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateCampaignNameCommand(output, context);
36
- };
37
- return UpdateCampaignNameCommand;
38
- }($Command));
39
- export { UpdateCampaignNameCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateCampaignOutboundCallConfigRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateCampaignOutboundCallConfigCommand, serializeAws_restJson1UpdateCampaignOutboundCallConfigCommand, } from "../protocols/Aws_restJson1";
6
- var UpdateCampaignOutboundCallConfigCommand = (function (_super) {
7
- __extends(UpdateCampaignOutboundCallConfigCommand, _super);
8
- function UpdateCampaignOutboundCallConfigCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateCampaignOutboundCallConfigCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateCampaignOutboundCallConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ConnectCampaignsClient";
18
- var commandName = "UpdateCampaignOutboundCallConfigCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ConnectCampaignsClient";
15
+ const commandName = "UpdateCampaignOutboundCallConfigCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateCampaignOutboundCallConfigRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateCampaignOutboundCallConfigCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1UpdateCampaignOutboundCallConfigCommand(input, context);
33
- };
34
- UpdateCampaignOutboundCallConfigCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateCampaignOutboundCallConfigCommand(output, context);
36
- };
37
- return UpdateCampaignOutboundCallConfigCommand;
38
- }($Command));
39
- export { UpdateCampaignOutboundCallConfigCommand };
31
+ }
32
+ }
@@ -1,6 +1,5 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {
2
+ const regionHash = {
4
3
  "us-east-1": {
5
4
  variants: [
6
5
  {
@@ -18,7 +17,7 @@ var regionHash = {
18
17
  ],
19
18
  },
20
19
  };
21
- var partitionHash = {
20
+ const partitionHash = {
22
21
  aws: {
23
22
  regions: [
24
23
  "af-south-1",
@@ -140,8 +139,9 @@ var partitionHash = {
140
139
  ],
141
140
  },
142
141
  };
143
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
144
- return __generator(this, function (_a) {
145
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "connect-campaigns", regionHash: regionHash, partitionHash: partitionHash }))];
146
- });
147
- }); };
142
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
143
+ ...options,
144
+ signingService: "connect-campaigns",
145
+ regionHash,
146
+ partitionHash,
147
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var ConnectCampaignsServiceException = (function (_super) {
4
- __extends(ConnectCampaignsServiceException, _super);
5
- function ConnectCampaignsServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, ConnectCampaignsServiceException.prototype);
8
- return _this;
2
+ export class ConnectCampaignsServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, ConnectCampaignsServiceException.prototype);
9
6
  }
10
- return ConnectCampaignsServiceException;
11
- }(__ServiceException));
12
- export { ConnectCampaignsServiceException };
7
+ }