@aws-sdk/client-connectcampaigns
Advanced tools
Comparing version 3.183.0 to 3.185.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05) | ||
### Bug Fixes | ||
* **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a)) | ||
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03) | ||
@@ -8,0 +19,0 @@ |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -5,29 +6,35 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1CreateCampaignCommand, serializeAws_restJson1CreateCampaignCommand, } from "../protocols/Aws_restJson1"; | ||
export class CreateCampaignCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
var CreateCampaignCommand = (function (_super) { | ||
__extends(CreateCampaignCommand, _super); | ||
function CreateCampaignCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
} | ||
resolveMiddleware(clientStack, configuration, options) { | ||
CreateCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "CreateCampaignCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "CreateCampaignCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
inputFilterSensitiveLog: CreateCampaignRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: CreateCampaignResponseFilterSensitiveLog, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
CreateCampaignCommand.prototype.serialize = function (input, context) { | ||
return serializeAws_restJson1CreateCampaignCommand(input, context); | ||
} | ||
deserialize(output, context) { | ||
}; | ||
CreateCampaignCommand.prototype.deserialize = function (output, context) { | ||
return deserializeAws_restJson1CreateCampaignCommand(output, context); | ||
} | ||
} | ||
}; | ||
return CreateCampaignCommand; | ||
}($Command)); | ||
export { CreateCampaignCommand }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -5,29 +6,35 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1DeleteCampaignCommand, serializeAws_restJson1DeleteCampaignCommand, } from "../protocols/Aws_restJson1"; | ||
export class DeleteCampaignCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
var DeleteCampaignCommand = (function (_super) { | ||
__extends(DeleteCampaignCommand, _super); | ||
function DeleteCampaignCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
} | ||
resolveMiddleware(clientStack, configuration, options) { | ||
DeleteCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "DeleteCampaignCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "DeleteCampaignCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
inputFilterSensitiveLog: DeleteCampaignRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: (output) => output, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
DeleteCampaignCommand.prototype.serialize = function (input, context) { | ||
return serializeAws_restJson1DeleteCampaignCommand(input, context); | ||
} | ||
deserialize(output, context) { | ||
}; | ||
DeleteCampaignCommand.prototype.deserialize = function (output, context) { | ||
return deserializeAws_restJson1DeleteCampaignCommand(output, context); | ||
} | ||
} | ||
}; | ||
return DeleteCampaignCommand; | ||
}($Command)); | ||
export { DeleteCampaignCommand }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -5,29 +6,35 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1DeleteConnectInstanceConfigCommand, serializeAws_restJson1DeleteConnectInstanceConfigCommand, } from "../protocols/Aws_restJson1"; | ||
export class DeleteConnectInstanceConfigCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
var DeleteConnectInstanceConfigCommand = (function (_super) { | ||
__extends(DeleteConnectInstanceConfigCommand, _super); | ||
function DeleteConnectInstanceConfigCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
} | ||
resolveMiddleware(clientStack, configuration, options) { | ||
DeleteConnectInstanceConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "DeleteConnectInstanceConfigCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "DeleteConnectInstanceConfigCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
inputFilterSensitiveLog: DeleteConnectInstanceConfigRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: (output) => output, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
DeleteConnectInstanceConfigCommand.prototype.serialize = function (input, context) { | ||
return serializeAws_restJson1DeleteConnectInstanceConfigCommand(input, context); | ||
} | ||
deserialize(output, context) { | ||
}; | ||
DeleteConnectInstanceConfigCommand.prototype.deserialize = function (output, context) { | ||
return deserializeAws_restJson1DeleteConnectInstanceConfigCommand(output, context); | ||
} | ||
} | ||
}; | ||
return DeleteConnectInstanceConfigCommand; | ||
}($Command)); | ||
export { DeleteConnectInstanceConfigCommand }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -5,29 +6,35 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1DeleteInstanceOnboardingJobCommand, serializeAws_restJson1DeleteInstanceOnboardingJobCommand, } from "../protocols/Aws_restJson1"; | ||
export class DeleteInstanceOnboardingJobCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
var DeleteInstanceOnboardingJobCommand = (function (_super) { | ||
__extends(DeleteInstanceOnboardingJobCommand, _super); | ||
function DeleteInstanceOnboardingJobCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
} | ||
resolveMiddleware(clientStack, configuration, options) { | ||
DeleteInstanceOnboardingJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "DeleteInstanceOnboardingJobCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "DeleteInstanceOnboardingJobCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
inputFilterSensitiveLog: DeleteInstanceOnboardingJobRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: (output) => output, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
DeleteInstanceOnboardingJobCommand.prototype.serialize = function (input, context) { | ||
return serializeAws_restJson1DeleteInstanceOnboardingJobCommand(input, context); | ||
} | ||
deserialize(output, context) { | ||
}; | ||
DeleteInstanceOnboardingJobCommand.prototype.deserialize = function (output, context) { | ||
return deserializeAws_restJson1DeleteInstanceOnboardingJobCommand(output, context); | ||
} | ||
} | ||
}; | ||
return DeleteInstanceOnboardingJobCommand; | ||
}($Command)); | ||
export { DeleteInstanceOnboardingJobCommand }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -5,29 +6,35 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1DescribeCampaignCommand, serializeAws_restJson1DescribeCampaignCommand, } from "../protocols/Aws_restJson1"; | ||
export class DescribeCampaignCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
var DescribeCampaignCommand = (function (_super) { | ||
__extends(DescribeCampaignCommand, _super); | ||
function DescribeCampaignCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
} | ||
resolveMiddleware(clientStack, configuration, options) { | ||
DescribeCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "DescribeCampaignCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "DescribeCampaignCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
inputFilterSensitiveLog: DescribeCampaignRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: DescribeCampaignResponseFilterSensitiveLog, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
DescribeCampaignCommand.prototype.serialize = function (input, context) { | ||
return serializeAws_restJson1DescribeCampaignCommand(input, context); | ||
} | ||
deserialize(output, context) { | ||
}; | ||
DescribeCampaignCommand.prototype.deserialize = function (output, context) { | ||
return deserializeAws_restJson1DescribeCampaignCommand(output, context); | ||
} | ||
} | ||
}; | ||
return DescribeCampaignCommand; | ||
}($Command)); | ||
export { DescribeCampaignCommand }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -5,29 +6,35 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1GetCampaignStateBatchCommand, serializeAws_restJson1GetCampaignStateBatchCommand, } from "../protocols/Aws_restJson1"; | ||
export class GetCampaignStateBatchCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
var GetCampaignStateBatchCommand = (function (_super) { | ||
__extends(GetCampaignStateBatchCommand, _super); | ||
function GetCampaignStateBatchCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
} | ||
resolveMiddleware(clientStack, configuration, options) { | ||
GetCampaignStateBatchCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "GetCampaignStateBatchCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "GetCampaignStateBatchCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
inputFilterSensitiveLog: GetCampaignStateBatchRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: GetCampaignStateBatchResponseFilterSensitiveLog, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
GetCampaignStateBatchCommand.prototype.serialize = function (input, context) { | ||
return serializeAws_restJson1GetCampaignStateBatchCommand(input, context); | ||
} | ||
deserialize(output, context) { | ||
}; | ||
GetCampaignStateBatchCommand.prototype.deserialize = function (output, context) { | ||
return deserializeAws_restJson1GetCampaignStateBatchCommand(output, context); | ||
} | ||
} | ||
}; | ||
return GetCampaignStateBatchCommand; | ||
}($Command)); | ||
export { GetCampaignStateBatchCommand }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -5,29 +6,35 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1GetCampaignStateCommand, serializeAws_restJson1GetCampaignStateCommand, } from "../protocols/Aws_restJson1"; | ||
export class GetCampaignStateCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
var GetCampaignStateCommand = (function (_super) { | ||
__extends(GetCampaignStateCommand, _super); | ||
function GetCampaignStateCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
} | ||
resolveMiddleware(clientStack, configuration, options) { | ||
GetCampaignStateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "GetCampaignStateCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "GetCampaignStateCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
inputFilterSensitiveLog: GetCampaignStateRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: GetCampaignStateResponseFilterSensitiveLog, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
GetCampaignStateCommand.prototype.serialize = function (input, context) { | ||
return serializeAws_restJson1GetCampaignStateCommand(input, context); | ||
} | ||
deserialize(output, context) { | ||
}; | ||
GetCampaignStateCommand.prototype.deserialize = function (output, context) { | ||
return deserializeAws_restJson1GetCampaignStateCommand(output, context); | ||
} | ||
} | ||
}; | ||
return GetCampaignStateCommand; | ||
}($Command)); | ||
export { GetCampaignStateCommand }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -5,29 +6,35 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1GetConnectInstanceConfigCommand, serializeAws_restJson1GetConnectInstanceConfigCommand, } from "../protocols/Aws_restJson1"; | ||
export class GetConnectInstanceConfigCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
var GetConnectInstanceConfigCommand = (function (_super) { | ||
__extends(GetConnectInstanceConfigCommand, _super); | ||
function GetConnectInstanceConfigCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
} | ||
resolveMiddleware(clientStack, configuration, options) { | ||
GetConnectInstanceConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "GetConnectInstanceConfigCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "GetConnectInstanceConfigCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
inputFilterSensitiveLog: GetConnectInstanceConfigRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: GetConnectInstanceConfigResponseFilterSensitiveLog, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
GetConnectInstanceConfigCommand.prototype.serialize = function (input, context) { | ||
return serializeAws_restJson1GetConnectInstanceConfigCommand(input, context); | ||
} | ||
deserialize(output, context) { | ||
}; | ||
GetConnectInstanceConfigCommand.prototype.deserialize = function (output, context) { | ||
return deserializeAws_restJson1GetConnectInstanceConfigCommand(output, context); | ||
} | ||
} | ||
}; | ||
return GetConnectInstanceConfigCommand; | ||
}($Command)); | ||
export { GetConnectInstanceConfigCommand }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -5,29 +6,35 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1GetInstanceOnboardingJobStatusCommand, serializeAws_restJson1GetInstanceOnboardingJobStatusCommand, } from "../protocols/Aws_restJson1"; | ||
export class GetInstanceOnboardingJobStatusCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
var GetInstanceOnboardingJobStatusCommand = (function (_super) { | ||
__extends(GetInstanceOnboardingJobStatusCommand, _super); | ||
function GetInstanceOnboardingJobStatusCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
} | ||
resolveMiddleware(clientStack, configuration, options) { | ||
GetInstanceOnboardingJobStatusCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "GetInstanceOnboardingJobStatusCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "GetInstanceOnboardingJobStatusCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
inputFilterSensitiveLog: GetInstanceOnboardingJobStatusRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: GetInstanceOnboardingJobStatusResponseFilterSensitiveLog, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
GetInstanceOnboardingJobStatusCommand.prototype.serialize = function (input, context) { | ||
return serializeAws_restJson1GetInstanceOnboardingJobStatusCommand(input, context); | ||
} | ||
deserialize(output, context) { | ||
}; | ||
GetInstanceOnboardingJobStatusCommand.prototype.deserialize = function (output, context) { | ||
return deserializeAws_restJson1GetInstanceOnboardingJobStatusCommand(output, context); | ||
} | ||
} | ||
}; | ||
return GetInstanceOnboardingJobStatusCommand; | ||
}($Command)); | ||
export { GetInstanceOnboardingJobStatusCommand }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -5,29 +6,35 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1ListCampaignsCommand, serializeAws_restJson1ListCampaignsCommand, } from "../protocols/Aws_restJson1"; | ||
export class ListCampaignsCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
var ListCampaignsCommand = (function (_super) { | ||
__extends(ListCampaignsCommand, _super); | ||
function ListCampaignsCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
} | ||
resolveMiddleware(clientStack, configuration, options) { | ||
ListCampaignsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "ListCampaignsCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "ListCampaignsCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
inputFilterSensitiveLog: ListCampaignsRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: ListCampaignsResponseFilterSensitiveLog, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
ListCampaignsCommand.prototype.serialize = function (input, context) { | ||
return serializeAws_restJson1ListCampaignsCommand(input, context); | ||
} | ||
deserialize(output, context) { | ||
}; | ||
ListCampaignsCommand.prototype.deserialize = function (output, context) { | ||
return deserializeAws_restJson1ListCampaignsCommand(output, context); | ||
} | ||
} | ||
}; | ||
return ListCampaignsCommand; | ||
}($Command)); | ||
export { ListCampaignsCommand }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -5,29 +6,35 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1"; | ||
export class ListTagsForResourceCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
var ListTagsForResourceCommand = (function (_super) { | ||
__extends(ListTagsForResourceCommand, _super); | ||
function ListTagsForResourceCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
} | ||
resolveMiddleware(clientStack, configuration, options) { | ||
ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "ListTagsForResourceCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "ListTagsForResourceCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
ListTagsForResourceCommand.prototype.serialize = function (input, context) { | ||
return serializeAws_restJson1ListTagsForResourceCommand(input, context); | ||
} | ||
deserialize(output, context) { | ||
}; | ||
ListTagsForResourceCommand.prototype.deserialize = function (output, context) { | ||
return deserializeAws_restJson1ListTagsForResourceCommand(output, context); | ||
} | ||
} | ||
}; | ||
return ListTagsForResourceCommand; | ||
}($Command)); | ||
export { ListTagsForResourceCommand }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -5,29 +6,35 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1PauseCampaignCommand, serializeAws_restJson1PauseCampaignCommand, } from "../protocols/Aws_restJson1"; | ||
export class PauseCampaignCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
var PauseCampaignCommand = (function (_super) { | ||
__extends(PauseCampaignCommand, _super); | ||
function PauseCampaignCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
} | ||
resolveMiddleware(clientStack, configuration, options) { | ||
PauseCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "PauseCampaignCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "PauseCampaignCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
inputFilterSensitiveLog: PauseCampaignRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: (output) => output, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
PauseCampaignCommand.prototype.serialize = function (input, context) { | ||
return serializeAws_restJson1PauseCampaignCommand(input, context); | ||
} | ||
deserialize(output, context) { | ||
}; | ||
PauseCampaignCommand.prototype.deserialize = function (output, context) { | ||
return deserializeAws_restJson1PauseCampaignCommand(output, context); | ||
} | ||
} | ||
}; | ||
return PauseCampaignCommand; | ||
}($Command)); | ||
export { PauseCampaignCommand }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -5,29 +6,35 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1PutDialRequestBatchCommand, serializeAws_restJson1PutDialRequestBatchCommand, } from "../protocols/Aws_restJson1"; | ||
export class PutDialRequestBatchCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
var PutDialRequestBatchCommand = (function (_super) { | ||
__extends(PutDialRequestBatchCommand, _super); | ||
function PutDialRequestBatchCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
} | ||
resolveMiddleware(clientStack, configuration, options) { | ||
PutDialRequestBatchCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "PutDialRequestBatchCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "PutDialRequestBatchCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
inputFilterSensitiveLog: PutDialRequestBatchRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: PutDialRequestBatchResponseFilterSensitiveLog, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
PutDialRequestBatchCommand.prototype.serialize = function (input, context) { | ||
return serializeAws_restJson1PutDialRequestBatchCommand(input, context); | ||
} | ||
deserialize(output, context) { | ||
}; | ||
PutDialRequestBatchCommand.prototype.deserialize = function (output, context) { | ||
return deserializeAws_restJson1PutDialRequestBatchCommand(output, context); | ||
} | ||
} | ||
}; | ||
return PutDialRequestBatchCommand; | ||
}($Command)); | ||
export { PutDialRequestBatchCommand }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -5,29 +6,35 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1ResumeCampaignCommand, serializeAws_restJson1ResumeCampaignCommand, } from "../protocols/Aws_restJson1"; | ||
export class ResumeCampaignCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
var ResumeCampaignCommand = (function (_super) { | ||
__extends(ResumeCampaignCommand, _super); | ||
function ResumeCampaignCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
} | ||
resolveMiddleware(clientStack, configuration, options) { | ||
ResumeCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "ResumeCampaignCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "ResumeCampaignCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
inputFilterSensitiveLog: ResumeCampaignRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: (output) => output, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
ResumeCampaignCommand.prototype.serialize = function (input, context) { | ||
return serializeAws_restJson1ResumeCampaignCommand(input, context); | ||
} | ||
deserialize(output, context) { | ||
}; | ||
ResumeCampaignCommand.prototype.deserialize = function (output, context) { | ||
return deserializeAws_restJson1ResumeCampaignCommand(output, context); | ||
} | ||
} | ||
}; | ||
return ResumeCampaignCommand; | ||
}($Command)); | ||
export { ResumeCampaignCommand }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -5,29 +6,35 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1StartCampaignCommand, serializeAws_restJson1StartCampaignCommand, } from "../protocols/Aws_restJson1"; | ||
export class StartCampaignCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
var StartCampaignCommand = (function (_super) { | ||
__extends(StartCampaignCommand, _super); | ||
function StartCampaignCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
} | ||
resolveMiddleware(clientStack, configuration, options) { | ||
StartCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "StartCampaignCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "StartCampaignCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
inputFilterSensitiveLog: StartCampaignRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: (output) => output, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
StartCampaignCommand.prototype.serialize = function (input, context) { | ||
return serializeAws_restJson1StartCampaignCommand(input, context); | ||
} | ||
deserialize(output, context) { | ||
}; | ||
StartCampaignCommand.prototype.deserialize = function (output, context) { | ||
return deserializeAws_restJson1StartCampaignCommand(output, context); | ||
} | ||
} | ||
}; | ||
return StartCampaignCommand; | ||
}($Command)); | ||
export { StartCampaignCommand }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -5,29 +6,35 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1StartInstanceOnboardingJobCommand, serializeAws_restJson1StartInstanceOnboardingJobCommand, } from "../protocols/Aws_restJson1"; | ||
export class StartInstanceOnboardingJobCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
var StartInstanceOnboardingJobCommand = (function (_super) { | ||
__extends(StartInstanceOnboardingJobCommand, _super); | ||
function StartInstanceOnboardingJobCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
} | ||
resolveMiddleware(clientStack, configuration, options) { | ||
StartInstanceOnboardingJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "StartInstanceOnboardingJobCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "StartInstanceOnboardingJobCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
inputFilterSensitiveLog: StartInstanceOnboardingJobRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: StartInstanceOnboardingJobResponseFilterSensitiveLog, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
StartInstanceOnboardingJobCommand.prototype.serialize = function (input, context) { | ||
return serializeAws_restJson1StartInstanceOnboardingJobCommand(input, context); | ||
} | ||
deserialize(output, context) { | ||
}; | ||
StartInstanceOnboardingJobCommand.prototype.deserialize = function (output, context) { | ||
return deserializeAws_restJson1StartInstanceOnboardingJobCommand(output, context); | ||
} | ||
} | ||
}; | ||
return StartInstanceOnboardingJobCommand; | ||
}($Command)); | ||
export { StartInstanceOnboardingJobCommand }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -5,29 +6,35 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1StopCampaignCommand, serializeAws_restJson1StopCampaignCommand, } from "../protocols/Aws_restJson1"; | ||
export class StopCampaignCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
var StopCampaignCommand = (function (_super) { | ||
__extends(StopCampaignCommand, _super); | ||
function StopCampaignCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
} | ||
resolveMiddleware(clientStack, configuration, options) { | ||
StopCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "StopCampaignCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "StopCampaignCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
inputFilterSensitiveLog: StopCampaignRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: (output) => output, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
StopCampaignCommand.prototype.serialize = function (input, context) { | ||
return serializeAws_restJson1StopCampaignCommand(input, context); | ||
} | ||
deserialize(output, context) { | ||
}; | ||
StopCampaignCommand.prototype.deserialize = function (output, context) { | ||
return deserializeAws_restJson1StopCampaignCommand(output, context); | ||
} | ||
} | ||
}; | ||
return StopCampaignCommand; | ||
}($Command)); | ||
export { StopCampaignCommand }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -5,29 +6,35 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1TagResourceCommand, serializeAws_restJson1TagResourceCommand, } from "../protocols/Aws_restJson1"; | ||
export class TagResourceCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
var TagResourceCommand = (function (_super) { | ||
__extends(TagResourceCommand, _super); | ||
function TagResourceCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
} | ||
resolveMiddleware(clientStack, configuration, options) { | ||
TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "TagResourceCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "TagResourceCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: (output) => output, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
TagResourceCommand.prototype.serialize = function (input, context) { | ||
return serializeAws_restJson1TagResourceCommand(input, context); | ||
} | ||
deserialize(output, context) { | ||
}; | ||
TagResourceCommand.prototype.deserialize = function (output, context) { | ||
return deserializeAws_restJson1TagResourceCommand(output, context); | ||
} | ||
} | ||
}; | ||
return TagResourceCommand; | ||
}($Command)); | ||
export { TagResourceCommand }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -5,29 +6,35 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UntagResourceCommand, } from "../protocols/Aws_restJson1"; | ||
export class UntagResourceCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
var UntagResourceCommand = (function (_super) { | ||
__extends(UntagResourceCommand, _super); | ||
function UntagResourceCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
} | ||
resolveMiddleware(clientStack, configuration, options) { | ||
UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "UntagResourceCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "UntagResourceCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: (output) => output, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
UntagResourceCommand.prototype.serialize = function (input, context) { | ||
return serializeAws_restJson1UntagResourceCommand(input, context); | ||
} | ||
deserialize(output, context) { | ||
}; | ||
UntagResourceCommand.prototype.deserialize = function (output, context) { | ||
return deserializeAws_restJson1UntagResourceCommand(output, context); | ||
} | ||
} | ||
}; | ||
return UntagResourceCommand; | ||
}($Command)); | ||
export { UntagResourceCommand }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -5,29 +6,35 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1UpdateCampaignDialerConfigCommand, serializeAws_restJson1UpdateCampaignDialerConfigCommand, } from "../protocols/Aws_restJson1"; | ||
export class UpdateCampaignDialerConfigCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
var UpdateCampaignDialerConfigCommand = (function (_super) { | ||
__extends(UpdateCampaignDialerConfigCommand, _super); | ||
function UpdateCampaignDialerConfigCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
} | ||
resolveMiddleware(clientStack, configuration, options) { | ||
UpdateCampaignDialerConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "UpdateCampaignDialerConfigCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "UpdateCampaignDialerConfigCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
inputFilterSensitiveLog: UpdateCampaignDialerConfigRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: (output) => output, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
UpdateCampaignDialerConfigCommand.prototype.serialize = function (input, context) { | ||
return serializeAws_restJson1UpdateCampaignDialerConfigCommand(input, context); | ||
} | ||
deserialize(output, context) { | ||
}; | ||
UpdateCampaignDialerConfigCommand.prototype.deserialize = function (output, context) { | ||
return deserializeAws_restJson1UpdateCampaignDialerConfigCommand(output, context); | ||
} | ||
} | ||
}; | ||
return UpdateCampaignDialerConfigCommand; | ||
}($Command)); | ||
export { UpdateCampaignDialerConfigCommand }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -5,29 +6,35 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1UpdateCampaignNameCommand, serializeAws_restJson1UpdateCampaignNameCommand, } from "../protocols/Aws_restJson1"; | ||
export class UpdateCampaignNameCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
var UpdateCampaignNameCommand = (function (_super) { | ||
__extends(UpdateCampaignNameCommand, _super); | ||
function UpdateCampaignNameCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
} | ||
resolveMiddleware(clientStack, configuration, options) { | ||
UpdateCampaignNameCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "UpdateCampaignNameCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "UpdateCampaignNameCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
inputFilterSensitiveLog: UpdateCampaignNameRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: (output) => output, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
UpdateCampaignNameCommand.prototype.serialize = function (input, context) { | ||
return serializeAws_restJson1UpdateCampaignNameCommand(input, context); | ||
} | ||
deserialize(output, context) { | ||
}; | ||
UpdateCampaignNameCommand.prototype.deserialize = function (output, context) { | ||
return deserializeAws_restJson1UpdateCampaignNameCommand(output, context); | ||
} | ||
} | ||
}; | ||
return UpdateCampaignNameCommand; | ||
}($Command)); | ||
export { UpdateCampaignNameCommand }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -5,29 +6,35 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1UpdateCampaignOutboundCallConfigCommand, serializeAws_restJson1UpdateCampaignOutboundCallConfigCommand, } from "../protocols/Aws_restJson1"; | ||
export class UpdateCampaignOutboundCallConfigCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
var UpdateCampaignOutboundCallConfigCommand = (function (_super) { | ||
__extends(UpdateCampaignOutboundCallConfigCommand, _super); | ||
function UpdateCampaignOutboundCallConfigCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
} | ||
resolveMiddleware(clientStack, configuration, options) { | ||
UpdateCampaignOutboundCallConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "UpdateCampaignOutboundCallConfigCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "UpdateCampaignOutboundCallConfigCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
inputFilterSensitiveLog: UpdateCampaignOutboundCallConfigRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: (output) => output, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
UpdateCampaignOutboundCallConfigCommand.prototype.serialize = function (input, context) { | ||
return serializeAws_restJson1UpdateCampaignOutboundCallConfigCommand(input, context); | ||
} | ||
deserialize(output, context) { | ||
}; | ||
UpdateCampaignOutboundCallConfigCommand.prototype.deserialize = function (output, context) { | ||
return deserializeAws_restJson1UpdateCampaignOutboundCallConfigCommand(output, context); | ||
} | ||
} | ||
}; | ||
return UpdateCampaignOutboundCallConfigCommand; | ||
}($Command)); | ||
export { UpdateCampaignOutboundCallConfigCommand }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { CreateCampaignCommand, } from "./commands/CreateCampaignCommand"; | ||
@@ -24,5 +25,9 @@ import { DeleteCampaignCommand, } from "./commands/DeleteCampaignCommand"; | ||
import { ConnectCampaignsClient } from "./ConnectCampaignsClient"; | ||
export class ConnectCampaigns extends ConnectCampaignsClient { | ||
createCampaign(args, optionsOrCb, cb) { | ||
const command = new CreateCampaignCommand(args); | ||
var ConnectCampaigns = (function (_super) { | ||
__extends(ConnectCampaigns, _super); | ||
function ConnectCampaigns() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
ConnectCampaigns.prototype.createCampaign = function (args, optionsOrCb, cb) { | ||
var command = new CreateCampaignCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -33,3 +38,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -40,5 +45,5 @@ } | ||
} | ||
} | ||
deleteCampaign(args, optionsOrCb, cb) { | ||
const command = new DeleteCampaignCommand(args); | ||
}; | ||
ConnectCampaigns.prototype.deleteCampaign = function (args, optionsOrCb, cb) { | ||
var command = new DeleteCampaignCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -49,3 +54,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -56,5 +61,5 @@ } | ||
} | ||
} | ||
deleteConnectInstanceConfig(args, optionsOrCb, cb) { | ||
const command = new DeleteConnectInstanceConfigCommand(args); | ||
}; | ||
ConnectCampaigns.prototype.deleteConnectInstanceConfig = function (args, optionsOrCb, cb) { | ||
var command = new DeleteConnectInstanceConfigCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -65,3 +70,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -72,5 +77,5 @@ } | ||
} | ||
} | ||
deleteInstanceOnboardingJob(args, optionsOrCb, cb) { | ||
const command = new DeleteInstanceOnboardingJobCommand(args); | ||
}; | ||
ConnectCampaigns.prototype.deleteInstanceOnboardingJob = function (args, optionsOrCb, cb) { | ||
var command = new DeleteInstanceOnboardingJobCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -81,3 +86,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -88,5 +93,5 @@ } | ||
} | ||
} | ||
describeCampaign(args, optionsOrCb, cb) { | ||
const command = new DescribeCampaignCommand(args); | ||
}; | ||
ConnectCampaigns.prototype.describeCampaign = function (args, optionsOrCb, cb) { | ||
var command = new DescribeCampaignCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -97,3 +102,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -104,5 +109,5 @@ } | ||
} | ||
} | ||
getCampaignState(args, optionsOrCb, cb) { | ||
const command = new GetCampaignStateCommand(args); | ||
}; | ||
ConnectCampaigns.prototype.getCampaignState = function (args, optionsOrCb, cb) { | ||
var command = new GetCampaignStateCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -113,3 +118,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -120,5 +125,5 @@ } | ||
} | ||
} | ||
getCampaignStateBatch(args, optionsOrCb, cb) { | ||
const command = new GetCampaignStateBatchCommand(args); | ||
}; | ||
ConnectCampaigns.prototype.getCampaignStateBatch = function (args, optionsOrCb, cb) { | ||
var command = new GetCampaignStateBatchCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -129,3 +134,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -136,5 +141,5 @@ } | ||
} | ||
} | ||
getConnectInstanceConfig(args, optionsOrCb, cb) { | ||
const command = new GetConnectInstanceConfigCommand(args); | ||
}; | ||
ConnectCampaigns.prototype.getConnectInstanceConfig = function (args, optionsOrCb, cb) { | ||
var command = new GetConnectInstanceConfigCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -145,3 +150,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -152,5 +157,5 @@ } | ||
} | ||
} | ||
getInstanceOnboardingJobStatus(args, optionsOrCb, cb) { | ||
const command = new GetInstanceOnboardingJobStatusCommand(args); | ||
}; | ||
ConnectCampaigns.prototype.getInstanceOnboardingJobStatus = function (args, optionsOrCb, cb) { | ||
var command = new GetInstanceOnboardingJobStatusCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -161,3 +166,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -168,5 +173,5 @@ } | ||
} | ||
} | ||
listCampaigns(args, optionsOrCb, cb) { | ||
const command = new ListCampaignsCommand(args); | ||
}; | ||
ConnectCampaigns.prototype.listCampaigns = function (args, optionsOrCb, cb) { | ||
var command = new ListCampaignsCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -177,3 +182,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -184,5 +189,5 @@ } | ||
} | ||
} | ||
listTagsForResource(args, optionsOrCb, cb) { | ||
const command = new ListTagsForResourceCommand(args); | ||
}; | ||
ConnectCampaigns.prototype.listTagsForResource = function (args, optionsOrCb, cb) { | ||
var command = new ListTagsForResourceCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -193,3 +198,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -200,5 +205,5 @@ } | ||
} | ||
} | ||
pauseCampaign(args, optionsOrCb, cb) { | ||
const command = new PauseCampaignCommand(args); | ||
}; | ||
ConnectCampaigns.prototype.pauseCampaign = function (args, optionsOrCb, cb) { | ||
var command = new PauseCampaignCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -209,3 +214,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -216,5 +221,5 @@ } | ||
} | ||
} | ||
putDialRequestBatch(args, optionsOrCb, cb) { | ||
const command = new PutDialRequestBatchCommand(args); | ||
}; | ||
ConnectCampaigns.prototype.putDialRequestBatch = function (args, optionsOrCb, cb) { | ||
var command = new PutDialRequestBatchCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -225,3 +230,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -232,5 +237,5 @@ } | ||
} | ||
} | ||
resumeCampaign(args, optionsOrCb, cb) { | ||
const command = new ResumeCampaignCommand(args); | ||
}; | ||
ConnectCampaigns.prototype.resumeCampaign = function (args, optionsOrCb, cb) { | ||
var command = new ResumeCampaignCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -241,3 +246,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -248,5 +253,5 @@ } | ||
} | ||
} | ||
startCampaign(args, optionsOrCb, cb) { | ||
const command = new StartCampaignCommand(args); | ||
}; | ||
ConnectCampaigns.prototype.startCampaign = function (args, optionsOrCb, cb) { | ||
var command = new StartCampaignCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -257,3 +262,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -264,5 +269,5 @@ } | ||
} | ||
} | ||
startInstanceOnboardingJob(args, optionsOrCb, cb) { | ||
const command = new StartInstanceOnboardingJobCommand(args); | ||
}; | ||
ConnectCampaigns.prototype.startInstanceOnboardingJob = function (args, optionsOrCb, cb) { | ||
var command = new StartInstanceOnboardingJobCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -273,3 +278,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -280,5 +285,5 @@ } | ||
} | ||
} | ||
stopCampaign(args, optionsOrCb, cb) { | ||
const command = new StopCampaignCommand(args); | ||
}; | ||
ConnectCampaigns.prototype.stopCampaign = function (args, optionsOrCb, cb) { | ||
var command = new StopCampaignCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -289,3 +294,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -296,5 +301,5 @@ } | ||
} | ||
} | ||
tagResource(args, optionsOrCb, cb) { | ||
const command = new TagResourceCommand(args); | ||
}; | ||
ConnectCampaigns.prototype.tagResource = function (args, optionsOrCb, cb) { | ||
var command = new TagResourceCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -305,3 +310,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -312,5 +317,5 @@ } | ||
} | ||
} | ||
untagResource(args, optionsOrCb, cb) { | ||
const command = new UntagResourceCommand(args); | ||
}; | ||
ConnectCampaigns.prototype.untagResource = function (args, optionsOrCb, cb) { | ||
var command = new UntagResourceCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -321,3 +326,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -328,5 +333,5 @@ } | ||
} | ||
} | ||
updateCampaignDialerConfig(args, optionsOrCb, cb) { | ||
const command = new UpdateCampaignDialerConfigCommand(args); | ||
}; | ||
ConnectCampaigns.prototype.updateCampaignDialerConfig = function (args, optionsOrCb, cb) { | ||
var command = new UpdateCampaignDialerConfigCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -337,3 +342,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -344,5 +349,5 @@ } | ||
} | ||
} | ||
updateCampaignName(args, optionsOrCb, cb) { | ||
const command = new UpdateCampaignNameCommand(args); | ||
}; | ||
ConnectCampaigns.prototype.updateCampaignName = function (args, optionsOrCb, cb) { | ||
var command = new UpdateCampaignNameCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -353,3 +358,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -360,5 +365,5 @@ } | ||
} | ||
} | ||
updateCampaignOutboundCallConfig(args, optionsOrCb, cb) { | ||
const command = new UpdateCampaignOutboundCallConfigCommand(args); | ||
}; | ||
ConnectCampaigns.prototype.updateCampaignOutboundCallConfig = function (args, optionsOrCb, cb) { | ||
var command = new UpdateCampaignOutboundCallConfigCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -369,3 +374,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -376,3 +381,5 @@ } | ||
} | ||
} | ||
} | ||
}; | ||
return ConnectCampaigns; | ||
}(ConnectCampaignsClient)); | ||
export { ConnectCampaigns }; |
@@ -0,1 +1,2 @@ | ||
import { __extends } from "tslib"; | ||
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver"; | ||
@@ -11,24 +12,29 @@ import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length"; | ||
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig"; | ||
export class ConnectCampaignsClient extends __Client { | ||
constructor(configuration) { | ||
const _config_0 = __getRuntimeConfig(configuration); | ||
const _config_1 = resolveRegionConfig(_config_0); | ||
const _config_2 = resolveEndpointsConfig(_config_1); | ||
const _config_3 = resolveRetryConfig(_config_2); | ||
const _config_4 = resolveHostHeaderConfig(_config_3); | ||
const _config_5 = resolveAwsAuthConfig(_config_4); | ||
const _config_6 = resolveUserAgentConfig(_config_5); | ||
super(_config_6); | ||
this.config = _config_6; | ||
this.middlewareStack.use(getRetryPlugin(this.config)); | ||
this.middlewareStack.use(getContentLengthPlugin(this.config)); | ||
this.middlewareStack.use(getHostHeaderPlugin(this.config)); | ||
this.middlewareStack.use(getLoggerPlugin(this.config)); | ||
this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); | ||
this.middlewareStack.use(getAwsAuthPlugin(this.config)); | ||
this.middlewareStack.use(getUserAgentPlugin(this.config)); | ||
var ConnectCampaignsClient = (function (_super) { | ||
__extends(ConnectCampaignsClient, _super); | ||
function ConnectCampaignsClient(configuration) { | ||
var _this = this; | ||
var _config_0 = __getRuntimeConfig(configuration); | ||
var _config_1 = resolveRegionConfig(_config_0); | ||
var _config_2 = resolveEndpointsConfig(_config_1); | ||
var _config_3 = resolveRetryConfig(_config_2); | ||
var _config_4 = resolveHostHeaderConfig(_config_3); | ||
var _config_5 = resolveAwsAuthConfig(_config_4); | ||
var _config_6 = resolveUserAgentConfig(_config_5); | ||
_this = _super.call(this, _config_6) || this; | ||
_this.config = _config_6; | ||
_this.middlewareStack.use(getRetryPlugin(_this.config)); | ||
_this.middlewareStack.use(getContentLengthPlugin(_this.config)); | ||
_this.middlewareStack.use(getHostHeaderPlugin(_this.config)); | ||
_this.middlewareStack.use(getLoggerPlugin(_this.config)); | ||
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config)); | ||
_this.middlewareStack.use(getAwsAuthPlugin(_this.config)); | ||
_this.middlewareStack.use(getUserAgentPlugin(_this.config)); | ||
return _this; | ||
} | ||
destroy() { | ||
super.destroy(); | ||
} | ||
} | ||
ConnectCampaignsClient.prototype.destroy = function () { | ||
_super.prototype.destroy.call(this); | ||
}; | ||
return ConnectCampaignsClient; | ||
}(__Client)); | ||
export { ConnectCampaignsClient }; |
@@ -0,3 +1,4 @@ | ||
import { __assign, __awaiter, __generator } from "tslib"; | ||
import { getRegionInfo } from "@aws-sdk/config-resolver"; | ||
const regionHash = { | ||
var regionHash = { | ||
"us-east-1": { | ||
@@ -20,3 +21,3 @@ variants: [ | ||
}; | ||
const partitionHash = { | ||
var partitionHash = { | ||
aws: { | ||
@@ -143,7 +144,6 @@ regions: [ | ||
}; | ||
export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, { | ||
...options, | ||
signingService: "connect-campaigns", | ||
regionHash, | ||
partitionHash, | ||
}); | ||
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "connect-campaigns", regionHash: regionHash, partitionHash: partitionHash }))]; | ||
}); | ||
}); }; |
@@ -0,7 +1,12 @@ | ||
import { __extends } from "tslib"; | ||
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client"; | ||
export class ConnectCampaignsServiceException extends __ServiceException { | ||
constructor(options) { | ||
super(options); | ||
Object.setPrototypeOf(this, ConnectCampaignsServiceException.prototype); | ||
var ConnectCampaignsServiceException = (function (_super) { | ||
__extends(ConnectCampaignsServiceException, _super); | ||
function ConnectCampaignsServiceException(options) { | ||
var _this = _super.call(this, options) || this; | ||
Object.setPrototypeOf(_this, ConnectCampaignsServiceException.prototype); | ||
return _this; | ||
} | ||
} | ||
return ConnectCampaignsServiceException; | ||
}(__ServiceException)); | ||
export { ConnectCampaignsServiceException }; |
@@ -0,32 +1,33 @@ | ||
import { __assign, __extends } from "tslib"; | ||
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client"; | ||
import { ConnectCampaignsServiceException as __BaseException } from "./ConnectCampaignsServiceException"; | ||
export class AccessDeniedException extends __BaseException { | ||
constructor(opts) { | ||
super({ | ||
name: "AccessDeniedException", | ||
$fault: "client", | ||
...opts, | ||
}); | ||
this.name = "AccessDeniedException"; | ||
this.$fault = "client"; | ||
Object.setPrototypeOf(this, AccessDeniedException.prototype); | ||
this.xAmzErrorType = opts.xAmzErrorType; | ||
var AccessDeniedException = (function (_super) { | ||
__extends(AccessDeniedException, _super); | ||
function AccessDeniedException(opts) { | ||
var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this; | ||
_this.name = "AccessDeniedException"; | ||
_this.$fault = "client"; | ||
Object.setPrototypeOf(_this, AccessDeniedException.prototype); | ||
_this.xAmzErrorType = opts.xAmzErrorType; | ||
return _this; | ||
} | ||
} | ||
export class ConflictException extends __BaseException { | ||
constructor(opts) { | ||
super({ | ||
name: "ConflictException", | ||
$fault: "client", | ||
...opts, | ||
}); | ||
this.name = "ConflictException"; | ||
this.$fault = "client"; | ||
Object.setPrototypeOf(this, ConflictException.prototype); | ||
this.xAmzErrorType = opts.xAmzErrorType; | ||
return AccessDeniedException; | ||
}(__BaseException)); | ||
export { AccessDeniedException }; | ||
var ConflictException = (function (_super) { | ||
__extends(ConflictException, _super); | ||
function ConflictException(opts) { | ||
var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this; | ||
_this.name = "ConflictException"; | ||
_this.$fault = "client"; | ||
Object.setPrototypeOf(_this, ConflictException.prototype); | ||
_this.xAmzErrorType = opts.xAmzErrorType; | ||
return _this; | ||
} | ||
} | ||
return ConflictException; | ||
}(__BaseException)); | ||
export { ConflictException }; | ||
export var DialerConfig; | ||
(function (DialerConfig) { | ||
DialerConfig.visit = (value, visitor) => { | ||
DialerConfig.visit = function (value, visitor) { | ||
if (value.progressiveDialerConfig !== undefined) | ||
@@ -39,82 +40,82 @@ return visitor.progressiveDialerConfig(value.progressiveDialerConfig); | ||
})(DialerConfig || (DialerConfig = {})); | ||
export class InternalServerException extends __BaseException { | ||
constructor(opts) { | ||
super({ | ||
name: "InternalServerException", | ||
$fault: "server", | ||
...opts, | ||
}); | ||
this.name = "InternalServerException"; | ||
this.$fault = "server"; | ||
this.$retryable = {}; | ||
Object.setPrototypeOf(this, InternalServerException.prototype); | ||
this.xAmzErrorType = opts.xAmzErrorType; | ||
var InternalServerException = (function (_super) { | ||
__extends(InternalServerException, _super); | ||
function InternalServerException(opts) { | ||
var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this; | ||
_this.name = "InternalServerException"; | ||
_this.$fault = "server"; | ||
_this.$retryable = {}; | ||
Object.setPrototypeOf(_this, InternalServerException.prototype); | ||
_this.xAmzErrorType = opts.xAmzErrorType; | ||
return _this; | ||
} | ||
} | ||
export class ResourceNotFoundException extends __BaseException { | ||
constructor(opts) { | ||
super({ | ||
name: "ResourceNotFoundException", | ||
$fault: "client", | ||
...opts, | ||
}); | ||
this.name = "ResourceNotFoundException"; | ||
this.$fault = "client"; | ||
Object.setPrototypeOf(this, ResourceNotFoundException.prototype); | ||
this.xAmzErrorType = opts.xAmzErrorType; | ||
return InternalServerException; | ||
}(__BaseException)); | ||
export { InternalServerException }; | ||
var ResourceNotFoundException = (function (_super) { | ||
__extends(ResourceNotFoundException, _super); | ||
function ResourceNotFoundException(opts) { | ||
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this; | ||
_this.name = "ResourceNotFoundException"; | ||
_this.$fault = "client"; | ||
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype); | ||
_this.xAmzErrorType = opts.xAmzErrorType; | ||
return _this; | ||
} | ||
} | ||
export class ServiceQuotaExceededException extends __BaseException { | ||
constructor(opts) { | ||
super({ | ||
name: "ServiceQuotaExceededException", | ||
$fault: "client", | ||
...opts, | ||
}); | ||
this.name = "ServiceQuotaExceededException"; | ||
this.$fault = "client"; | ||
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype); | ||
this.xAmzErrorType = opts.xAmzErrorType; | ||
return ResourceNotFoundException; | ||
}(__BaseException)); | ||
export { ResourceNotFoundException }; | ||
var ServiceQuotaExceededException = (function (_super) { | ||
__extends(ServiceQuotaExceededException, _super); | ||
function ServiceQuotaExceededException(opts) { | ||
var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this; | ||
_this.name = "ServiceQuotaExceededException"; | ||
_this.$fault = "client"; | ||
Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype); | ||
_this.xAmzErrorType = opts.xAmzErrorType; | ||
return _this; | ||
} | ||
} | ||
export class ThrottlingException extends __BaseException { | ||
constructor(opts) { | ||
super({ | ||
name: "ThrottlingException", | ||
$fault: "client", | ||
...opts, | ||
}); | ||
this.name = "ThrottlingException"; | ||
this.$fault = "client"; | ||
this.$retryable = {}; | ||
Object.setPrototypeOf(this, ThrottlingException.prototype); | ||
this.xAmzErrorType = opts.xAmzErrorType; | ||
return ServiceQuotaExceededException; | ||
}(__BaseException)); | ||
export { ServiceQuotaExceededException }; | ||
var ThrottlingException = (function (_super) { | ||
__extends(ThrottlingException, _super); | ||
function ThrottlingException(opts) { | ||
var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this; | ||
_this.name = "ThrottlingException"; | ||
_this.$fault = "client"; | ||
_this.$retryable = {}; | ||
Object.setPrototypeOf(_this, ThrottlingException.prototype); | ||
_this.xAmzErrorType = opts.xAmzErrorType; | ||
return _this; | ||
} | ||
} | ||
export class ValidationException extends __BaseException { | ||
constructor(opts) { | ||
super({ | ||
name: "ValidationException", | ||
$fault: "client", | ||
...opts, | ||
}); | ||
this.name = "ValidationException"; | ||
this.$fault = "client"; | ||
Object.setPrototypeOf(this, ValidationException.prototype); | ||
this.xAmzErrorType = opts.xAmzErrorType; | ||
return ThrottlingException; | ||
}(__BaseException)); | ||
export { ThrottlingException }; | ||
var ValidationException = (function (_super) { | ||
__extends(ValidationException, _super); | ||
function ValidationException(opts) { | ||
var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this; | ||
_this.name = "ValidationException"; | ||
_this.$fault = "client"; | ||
Object.setPrototypeOf(_this, ValidationException.prototype); | ||
_this.xAmzErrorType = opts.xAmzErrorType; | ||
return _this; | ||
} | ||
} | ||
export class InvalidStateException extends __BaseException { | ||
constructor(opts) { | ||
super({ | ||
name: "InvalidStateException", | ||
$fault: "client", | ||
...opts, | ||
}); | ||
this.name = "InvalidStateException"; | ||
this.$fault = "client"; | ||
Object.setPrototypeOf(this, InvalidStateException.prototype); | ||
this.xAmzErrorType = opts.xAmzErrorType; | ||
return ValidationException; | ||
}(__BaseException)); | ||
export { ValidationException }; | ||
var InvalidStateException = (function (_super) { | ||
__extends(InvalidStateException, _super); | ||
function InvalidStateException(opts) { | ||
var _this = _super.call(this, __assign({ name: "InvalidStateException", $fault: "client" }, opts)) || this; | ||
_this.name = "InvalidStateException"; | ||
_this.$fault = "client"; | ||
Object.setPrototypeOf(_this, InvalidStateException.prototype); | ||
_this.xAmzErrorType = opts.xAmzErrorType; | ||
return _this; | ||
} | ||
} | ||
return InvalidStateException; | ||
}(__BaseException)); | ||
export { InvalidStateException }; | ||
export var CampaignState; | ||
@@ -156,16 +157,16 @@ (function (CampaignState) { | ||
})(InstanceIdFilterOperator || (InstanceIdFilterOperator = {})); | ||
export class InvalidCampaignStateException extends __BaseException { | ||
constructor(opts) { | ||
super({ | ||
name: "InvalidCampaignStateException", | ||
$fault: "client", | ||
...opts, | ||
}); | ||
this.name = "InvalidCampaignStateException"; | ||
this.$fault = "client"; | ||
Object.setPrototypeOf(this, InvalidCampaignStateException.prototype); | ||
this.state = opts.state; | ||
this.xAmzErrorType = opts.xAmzErrorType; | ||
var InvalidCampaignStateException = (function (_super) { | ||
__extends(InvalidCampaignStateException, _super); | ||
function InvalidCampaignStateException(opts) { | ||
var _this = _super.call(this, __assign({ name: "InvalidCampaignStateException", $fault: "client" }, opts)) || this; | ||
_this.name = "InvalidCampaignStateException"; | ||
_this.$fault = "client"; | ||
Object.setPrototypeOf(_this, InvalidCampaignStateException.prototype); | ||
_this.state = opts.state; | ||
_this.xAmzErrorType = opts.xAmzErrorType; | ||
return _this; | ||
} | ||
} | ||
return InvalidCampaignStateException; | ||
}(__BaseException)); | ||
export { InvalidCampaignStateException }; | ||
export var FailureCode; | ||
@@ -177,9 +178,6 @@ (function (FailureCode) { | ||
})(FailureCode || (FailureCode = {})); | ||
export const PredictiveDialerConfigFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const ProgressiveDialerConfigFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const DialerConfigFilterSensitiveLog = (obj) => { | ||
export var PredictiveDialerConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var ProgressiveDialerConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var DialerConfigFilterSensitiveLog = function (obj) { | ||
var _a; | ||
if (obj.progressiveDialerConfig !== undefined) | ||
@@ -190,148 +188,49 @@ return { progressiveDialerConfig: ProgressiveDialerConfigFilterSensitiveLog(obj.progressiveDialerConfig) }; | ||
if (obj.$unknown !== undefined) | ||
return { [obj.$unknown[0]]: "UNKNOWN" }; | ||
return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a; | ||
}; | ||
export const AnswerMachineDetectionConfigFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const OutboundCallConfigFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const CreateCampaignRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
...(obj.dialerConfig && { dialerConfig: DialerConfigFilterSensitiveLog(obj.dialerConfig) }), | ||
}); | ||
export const CreateCampaignResponseFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const DeleteCampaignRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const DeleteConnectInstanceConfigRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const DeleteInstanceOnboardingJobRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const DescribeCampaignRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const CampaignFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
...(obj.dialerConfig && { dialerConfig: DialerConfigFilterSensitiveLog(obj.dialerConfig) }), | ||
}); | ||
export const DescribeCampaignResponseFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
...(obj.campaign && { campaign: CampaignFilterSensitiveLog(obj.campaign) }), | ||
}); | ||
export const GetCampaignStateRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const GetCampaignStateResponseFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const GetCampaignStateBatchRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const FailedCampaignStateResponseFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const SuccessfulCampaignStateResponseFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const GetCampaignStateBatchResponseFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const GetConnectInstanceConfigRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const EncryptionConfigFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const InstanceConfigFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const GetConnectInstanceConfigResponseFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const GetInstanceOnboardingJobStatusRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const InstanceOnboardingJobStatusFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const GetInstanceOnboardingJobStatusResponseFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const InstanceIdFilterFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const CampaignFiltersFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const ListCampaignsRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const CampaignSummaryFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const ListCampaignsResponseFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const PauseCampaignRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const DialRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
...(obj.phoneNumber && { phoneNumber: SENSITIVE_STRING }), | ||
...(obj.attributes && { attributes: SENSITIVE_STRING }), | ||
}); | ||
export const PutDialRequestBatchRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
...(obj.dialRequests && { dialRequests: obj.dialRequests.map((item) => DialRequestFilterSensitiveLog(item)) }), | ||
}); | ||
export const FailedRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const SuccessfulRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const PutDialRequestBatchResponseFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const ResumeCampaignRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const StartCampaignRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const StartInstanceOnboardingJobRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const StartInstanceOnboardingJobResponseFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const StopCampaignRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const TagResourceRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const UntagResourceRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const UpdateCampaignDialerConfigRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
...(obj.dialerConfig && { dialerConfig: DialerConfigFilterSensitiveLog(obj.dialerConfig) }), | ||
}); | ||
export const UpdateCampaignNameRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const UpdateCampaignOutboundCallConfigRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export var AnswerMachineDetectionConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var OutboundCallConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var CreateCampaignRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.dialerConfig && { dialerConfig: DialerConfigFilterSensitiveLog(obj.dialerConfig) }))); }; | ||
export var CreateCampaignResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var DeleteCampaignRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var DeleteConnectInstanceConfigRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var DeleteInstanceOnboardingJobRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var DescribeCampaignRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var CampaignFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.dialerConfig && { dialerConfig: DialerConfigFilterSensitiveLog(obj.dialerConfig) }))); }; | ||
export var DescribeCampaignResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.campaign && { campaign: CampaignFilterSensitiveLog(obj.campaign) }))); }; | ||
export var GetCampaignStateRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var GetCampaignStateResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var GetCampaignStateBatchRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var FailedCampaignStateResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var SuccessfulCampaignStateResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var GetCampaignStateBatchResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var GetConnectInstanceConfigRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var EncryptionConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var InstanceConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var GetConnectInstanceConfigResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var GetInstanceOnboardingJobStatusRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var InstanceOnboardingJobStatusFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var GetInstanceOnboardingJobStatusResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var InstanceIdFilterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var CampaignFiltersFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var ListCampaignsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var CampaignSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var ListCampaignsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var PauseCampaignRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var DialRequestFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.phoneNumber && { phoneNumber: SENSITIVE_STRING })), (obj.attributes && { attributes: SENSITIVE_STRING }))); }; | ||
export var PutDialRequestBatchRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.dialRequests && { dialRequests: obj.dialRequests.map(function (item) { return DialRequestFilterSensitiveLog(item); }) }))); }; | ||
export var FailedRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var SuccessfulRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var PutDialRequestBatchResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var ResumeCampaignRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var StartCampaignRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var StartInstanceOnboardingJobRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var StartInstanceOnboardingJobResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var StopCampaignRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var UpdateCampaignDialerConfigRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.dialerConfig && { dialerConfig: DialerConfigFilterSensitiveLog(obj.dialerConfig) }))); }; | ||
export var UpdateCampaignNameRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var UpdateCampaignOutboundCallConfigRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; |
@@ -0,32 +1,75 @@ | ||
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib"; | ||
import { ListCampaignsCommand, } from "../commands/ListCampaignsCommand"; | ||
import { ConnectCampaigns } from "../ConnectCampaigns"; | ||
import { ConnectCampaignsClient } from "../ConnectCampaignsClient"; | ||
const makePagedClientRequest = async (client, input, ...args) => { | ||
return await client.send(new ListCampaignsCommand(input), ...args); | ||
var makePagedClientRequest = function (client, input) { | ||
var args = []; | ||
for (var _i = 2; _i < arguments.length; _i++) { | ||
args[_i - 2] = arguments[_i]; | ||
} | ||
return __awaiter(void 0, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4, client.send.apply(client, __spreadArray([new ListCampaignsCommand(input)], __read(args), false))]; | ||
case 1: return [2, _a.sent()]; | ||
} | ||
}); | ||
}); | ||
}; | ||
const makePagedRequest = async (client, input, ...args) => { | ||
return await client.listCampaigns(input, ...args); | ||
var makePagedRequest = function (client, input) { | ||
var args = []; | ||
for (var _i = 2; _i < arguments.length; _i++) { | ||
args[_i - 2] = arguments[_i]; | ||
} | ||
return __awaiter(void 0, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4, client.listCampaigns.apply(client, __spreadArray([input], __read(args), false))]; | ||
case 1: return [2, _a.sent()]; | ||
} | ||
}); | ||
}); | ||
}; | ||
export async function* paginateListCampaigns(config, input, ...additionalArguments) { | ||
let token = config.startingToken || undefined; | ||
let hasNext = true; | ||
let page; | ||
while (hasNext) { | ||
input.nextToken = token; | ||
input["maxResults"] = config.pageSize; | ||
if (config.client instanceof ConnectCampaigns) { | ||
page = await makePagedRequest(config.client, input, ...additionalArguments); | ||
} | ||
else if (config.client instanceof ConnectCampaignsClient) { | ||
page = await makePagedClientRequest(config.client, input, ...additionalArguments); | ||
} | ||
else { | ||
throw new Error("Invalid client, expected ConnectCampaigns | ConnectCampaignsClient"); | ||
} | ||
yield page; | ||
const prevToken = token; | ||
token = page.nextToken; | ||
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); | ||
export function paginateListCampaigns(config, input) { | ||
var additionalArguments = []; | ||
for (var _i = 2; _i < arguments.length; _i++) { | ||
additionalArguments[_i - 2] = arguments[_i]; | ||
} | ||
return undefined; | ||
return __asyncGenerator(this, arguments, function paginateListCampaigns_1() { | ||
var token, hasNext, page, prevToken; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
token = config.startingToken || undefined; | ||
hasNext = true; | ||
_a.label = 1; | ||
case 1: | ||
if (!hasNext) return [3, 9]; | ||
input.nextToken = token; | ||
input["maxResults"] = config.pageSize; | ||
if (!(config.client instanceof ConnectCampaigns)) return [3, 3]; | ||
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))]; | ||
case 2: | ||
page = _a.sent(); | ||
return [3, 6]; | ||
case 3: | ||
if (!(config.client instanceof ConnectCampaignsClient)) return [3, 5]; | ||
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))]; | ||
case 4: | ||
page = _a.sent(); | ||
return [3, 6]; | ||
case 5: throw new Error("Invalid client, expected ConnectCampaigns | ConnectCampaignsClient"); | ||
case 6: return [4, __await(page)]; | ||
case 7: return [4, _a.sent()]; | ||
case 8: | ||
_a.sent(); | ||
prevToken = token; | ||
token = page.nextToken; | ||
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); | ||
return [3, 1]; | ||
case 9: return [4, __await(undefined)]; | ||
case 10: return [2, _a.sent()]; | ||
} | ||
}); | ||
}); | ||
} |
@@ -0,1 +1,2 @@ | ||
import { __assign, __awaiter, __generator } from "tslib"; | ||
import packageInfo from "../package.json"; | ||
@@ -14,28 +15,13 @@ import { Sha256 } from "@aws-crypto/sha256-browser"; | ||
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser"; | ||
export const getRuntimeConfig = (config) => { | ||
const defaultsMode = resolveDefaultsModeConfig(config); | ||
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); | ||
const clientSharedValues = getSharedRuntimeConfig(config); | ||
return { | ||
...clientSharedValues, | ||
...config, | ||
runtime: "browser", | ||
defaultsMode, | ||
base64Decoder: config?.base64Decoder ?? fromBase64, | ||
base64Encoder: config?.base64Encoder ?? toBase64, | ||
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, | ||
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))), | ||
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? | ||
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), | ||
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS, | ||
region: config?.region ?? invalidProvider("Region is missing"), | ||
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider), | ||
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE), | ||
sha256: config?.sha256 ?? Sha256, | ||
streamCollector: config?.streamCollector ?? streamCollector, | ||
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)), | ||
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)), | ||
utf8Decoder: config?.utf8Decoder ?? fromUtf8, | ||
utf8Encoder: config?.utf8Encoder ?? toUtf8, | ||
}; | ||
export var getRuntimeConfig = function (config) { | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; | ||
var defaultsMode = resolveDefaultsModeConfig(config); | ||
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); }; | ||
var clientSharedValues = getSharedRuntimeConfig(config); | ||
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4, defaultConfigProvider()]; | ||
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE]; | ||
} | ||
}); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 }); | ||
}; |
@@ -0,1 +1,2 @@ | ||
import { __assign, __awaiter, __generator } from "tslib"; | ||
import packageInfo from "../package.json"; | ||
@@ -17,33 +18,14 @@ import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; | ||
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client"; | ||
export const getRuntimeConfig = (config) => { | ||
export var getRuntimeConfig = function (config) { | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; | ||
emitWarningIfUnsupportedVersion(process.version); | ||
const defaultsMode = resolveDefaultsModeConfig(config); | ||
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); | ||
const clientSharedValues = getSharedRuntimeConfig(config); | ||
return { | ||
...clientSharedValues, | ||
...config, | ||
runtime: "node", | ||
defaultsMode, | ||
base64Decoder: config?.base64Decoder ?? fromBase64, | ||
base64Encoder: config?.base64Encoder ?? toBase64, | ||
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, | ||
credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), | ||
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? | ||
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), | ||
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), | ||
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), | ||
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider), | ||
retryMode: config?.retryMode ?? | ||
loadNodeConfig({ | ||
...NODE_RETRY_MODE_CONFIG_OPTIONS, | ||
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, | ||
}), | ||
sha256: config?.sha256 ?? Hash.bind(null, "sha256"), | ||
streamCollector: config?.streamCollector ?? streamCollector, | ||
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), | ||
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), | ||
utf8Decoder: config?.utf8Decoder ?? fromUtf8, | ||
utf8Encoder: config?.utf8Encoder ?? toUtf8, | ||
}; | ||
var defaultsMode = resolveDefaultsModeConfig(config); | ||
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); }; | ||
var clientSharedValues = getSharedRuntimeConfig(config); | ||
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4, defaultConfigProvider()]; | ||
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE]; | ||
} | ||
}); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 }); | ||
}; |
@@ -0,11 +1,8 @@ | ||
import { __assign } from "tslib"; | ||
import { Sha256 } from "@aws-crypto/sha256-js"; | ||
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser"; | ||
export const getRuntimeConfig = (config) => { | ||
const browserDefaults = getBrowserRuntimeConfig(config); | ||
return { | ||
...browserDefaults, | ||
...config, | ||
runtime: "react-native", | ||
sha256: config?.sha256 ?? Sha256, | ||
}; | ||
export var getRuntimeConfig = function (config) { | ||
var _a; | ||
var browserDefaults = getBrowserRuntimeConfig(config); | ||
return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 }); | ||
}; |
import { parseUrl } from "@aws-sdk/url-parser"; | ||
import { defaultRegionInfoProvider } from "./endpoints"; | ||
export const getRuntimeConfig = (config) => ({ | ||
apiVersion: "2021-01-30", | ||
disableHostPrefix: config?.disableHostPrefix ?? false, | ||
logger: config?.logger ?? {}, | ||
regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, | ||
serviceId: config?.serviceId ?? "ConnectCampaigns", | ||
urlParser: config?.urlParser ?? parseUrl, | ||
}); | ||
export var getRuntimeConfig = function (config) { | ||
var _a, _b, _c, _d, _e; | ||
return ({ | ||
apiVersion: "2021-01-30", | ||
disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, | ||
logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, | ||
regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : defaultRegionInfoProvider, | ||
serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "ConnectCampaigns", | ||
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl, | ||
}); | ||
}; |
{ | ||
"name": "@aws-sdk/client-connectcampaigns", | ||
"description": "AWS SDK for JavaScript Connectcampaigns Client for Node.js, Browser and React Native", | ||
"version": "3.183.0", | ||
"version": "3.185.0", | ||
"scripts": { | ||
@@ -22,5 +22,5 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"@aws-crypto/sha256-js": "2.0.0", | ||
"@aws-sdk/client-sts": "3.183.0", | ||
"@aws-sdk/client-sts": "3.185.0", | ||
"@aws-sdk/config-resolver": "3.183.0", | ||
"@aws-sdk/credential-provider-node": "3.183.0", | ||
"@aws-sdk/credential-provider-node": "3.185.0", | ||
"@aws-sdk/fetch-http-handler": "3.183.0", | ||
@@ -33,3 +33,3 @@ "@aws-sdk/hash-node": "3.183.0", | ||
"@aws-sdk/middleware-recursion-detection": "3.183.0", | ||
"@aws-sdk/middleware-retry": "3.183.0", | ||
"@aws-sdk/middleware-retry": "3.185.0", | ||
"@aws-sdk/middleware-serde": "3.183.0", | ||
@@ -40,3 +40,3 @@ "@aws-sdk/middleware-signing": "3.183.0", | ||
"@aws-sdk/node-config-provider": "3.183.0", | ||
"@aws-sdk/node-http-handler": "3.183.0", | ||
"@aws-sdk/node-http-handler": "3.185.0", | ||
"@aws-sdk/protocol-http": "3.183.0", | ||
@@ -43,0 +43,0 @@ "@aws-sdk/smithy-client": "3.183.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
659012
13093
+ Added@aws-sdk/client-sso@3.185.0(transitive)
+ Added@aws-sdk/client-sts@3.185.0(transitive)
+ Added@aws-sdk/credential-provider-ini@3.185.0(transitive)
+ Added@aws-sdk/credential-provider-node@3.185.0(transitive)
+ Added@aws-sdk/credential-provider-sso@3.185.0(transitive)
+ Added@aws-sdk/middleware-retry@3.185.0(transitive)
+ Added@aws-sdk/node-http-handler@3.185.0(transitive)
+ Added@aws-sdk/service-error-classification@3.185.0(transitive)
- Removed@aws-sdk/client-sso@3.183.0(transitive)
- Removed@aws-sdk/client-sts@3.183.0(transitive)
- Removed@aws-sdk/credential-provider-ini@3.183.0(transitive)
- Removed@aws-sdk/credential-provider-node@3.183.0(transitive)
- Removed@aws-sdk/credential-provider-sso@3.183.0(transitive)
- Removed@aws-sdk/middleware-retry@3.183.0(transitive)
- Removed@aws-sdk/node-http-handler@3.183.0(transitive)
- Removed@aws-sdk/service-error-classification@3.183.0(transitive)
Updated@aws-sdk/client-sts@3.185.0