@aws-sdk/client-connectcampaigns
Advanced tools
Comparing version 3.181.0 to 3.183.0
@@ -6,2 +6,10 @@ # Change Log | ||
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03) | ||
**Note:** Version bump only for package @aws-sdk/client-connectcampaigns | ||
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29) | ||
@@ -8,0 +16,0 @@ |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -6,35 +5,29 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1CreateCampaignCommand, serializeAws_restJson1CreateCampaignCommand, } from "../protocols/Aws_restJson1"; | ||
var CreateCampaignCommand = (function (_super) { | ||
__extends(CreateCampaignCommand, _super); | ||
function CreateCampaignCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
export class CreateCampaignCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
} | ||
CreateCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
resolveMiddleware(clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "CreateCampaignCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "CreateCampaignCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: CreateCampaignRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: CreateCampaignResponseFilterSensitiveLog, | ||
}; | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
CreateCampaignCommand.prototype.serialize = function (input, context) { | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
return serializeAws_restJson1CreateCampaignCommand(input, context); | ||
}; | ||
CreateCampaignCommand.prototype.deserialize = function (output, context) { | ||
} | ||
deserialize(output, context) { | ||
return deserializeAws_restJson1CreateCampaignCommand(output, context); | ||
}; | ||
return CreateCampaignCommand; | ||
}($Command)); | ||
export { CreateCampaignCommand }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -6,35 +5,29 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1DeleteCampaignCommand, serializeAws_restJson1DeleteCampaignCommand, } from "../protocols/Aws_restJson1"; | ||
var DeleteCampaignCommand = (function (_super) { | ||
__extends(DeleteCampaignCommand, _super); | ||
function DeleteCampaignCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
export class DeleteCampaignCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
} | ||
DeleteCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
resolveMiddleware(clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "DeleteCampaignCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "DeleteCampaignCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: DeleteCampaignRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
outputFilterSensitiveLog: (output) => output, | ||
}; | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
DeleteCampaignCommand.prototype.serialize = function (input, context) { | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
return serializeAws_restJson1DeleteCampaignCommand(input, context); | ||
}; | ||
DeleteCampaignCommand.prototype.deserialize = function (output, context) { | ||
} | ||
deserialize(output, context) { | ||
return deserializeAws_restJson1DeleteCampaignCommand(output, context); | ||
}; | ||
return DeleteCampaignCommand; | ||
}($Command)); | ||
export { DeleteCampaignCommand }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -6,35 +5,29 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1DeleteConnectInstanceConfigCommand, serializeAws_restJson1DeleteConnectInstanceConfigCommand, } from "../protocols/Aws_restJson1"; | ||
var DeleteConnectInstanceConfigCommand = (function (_super) { | ||
__extends(DeleteConnectInstanceConfigCommand, _super); | ||
function DeleteConnectInstanceConfigCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
export class DeleteConnectInstanceConfigCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
} | ||
DeleteConnectInstanceConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
resolveMiddleware(clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "DeleteConnectInstanceConfigCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "DeleteConnectInstanceConfigCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: DeleteConnectInstanceConfigRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
outputFilterSensitiveLog: (output) => output, | ||
}; | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
DeleteConnectInstanceConfigCommand.prototype.serialize = function (input, context) { | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
return serializeAws_restJson1DeleteConnectInstanceConfigCommand(input, context); | ||
}; | ||
DeleteConnectInstanceConfigCommand.prototype.deserialize = function (output, context) { | ||
} | ||
deserialize(output, context) { | ||
return deserializeAws_restJson1DeleteConnectInstanceConfigCommand(output, context); | ||
}; | ||
return DeleteConnectInstanceConfigCommand; | ||
}($Command)); | ||
export { DeleteConnectInstanceConfigCommand }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -6,35 +5,29 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1DeleteInstanceOnboardingJobCommand, serializeAws_restJson1DeleteInstanceOnboardingJobCommand, } from "../protocols/Aws_restJson1"; | ||
var DeleteInstanceOnboardingJobCommand = (function (_super) { | ||
__extends(DeleteInstanceOnboardingJobCommand, _super); | ||
function DeleteInstanceOnboardingJobCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
export class DeleteInstanceOnboardingJobCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
} | ||
DeleteInstanceOnboardingJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
resolveMiddleware(clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "DeleteInstanceOnboardingJobCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "DeleteInstanceOnboardingJobCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: DeleteInstanceOnboardingJobRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
outputFilterSensitiveLog: (output) => output, | ||
}; | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
DeleteInstanceOnboardingJobCommand.prototype.serialize = function (input, context) { | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
return serializeAws_restJson1DeleteInstanceOnboardingJobCommand(input, context); | ||
}; | ||
DeleteInstanceOnboardingJobCommand.prototype.deserialize = function (output, context) { | ||
} | ||
deserialize(output, context) { | ||
return deserializeAws_restJson1DeleteInstanceOnboardingJobCommand(output, context); | ||
}; | ||
return DeleteInstanceOnboardingJobCommand; | ||
}($Command)); | ||
export { DeleteInstanceOnboardingJobCommand }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -6,35 +5,29 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1DescribeCampaignCommand, serializeAws_restJson1DescribeCampaignCommand, } from "../protocols/Aws_restJson1"; | ||
var DescribeCampaignCommand = (function (_super) { | ||
__extends(DescribeCampaignCommand, _super); | ||
function DescribeCampaignCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
export class DescribeCampaignCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
} | ||
DescribeCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
resolveMiddleware(clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "DescribeCampaignCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "DescribeCampaignCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: DescribeCampaignRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: DescribeCampaignResponseFilterSensitiveLog, | ||
}; | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
DescribeCampaignCommand.prototype.serialize = function (input, context) { | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
return serializeAws_restJson1DescribeCampaignCommand(input, context); | ||
}; | ||
DescribeCampaignCommand.prototype.deserialize = function (output, context) { | ||
} | ||
deserialize(output, context) { | ||
return deserializeAws_restJson1DescribeCampaignCommand(output, context); | ||
}; | ||
return DescribeCampaignCommand; | ||
}($Command)); | ||
export { DescribeCampaignCommand }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -6,35 +5,29 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1GetCampaignStateBatchCommand, serializeAws_restJson1GetCampaignStateBatchCommand, } from "../protocols/Aws_restJson1"; | ||
var GetCampaignStateBatchCommand = (function (_super) { | ||
__extends(GetCampaignStateBatchCommand, _super); | ||
function GetCampaignStateBatchCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
export class GetCampaignStateBatchCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
} | ||
GetCampaignStateBatchCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
resolveMiddleware(clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "GetCampaignStateBatchCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "GetCampaignStateBatchCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: GetCampaignStateBatchRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: GetCampaignStateBatchResponseFilterSensitiveLog, | ||
}; | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
GetCampaignStateBatchCommand.prototype.serialize = function (input, context) { | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
return serializeAws_restJson1GetCampaignStateBatchCommand(input, context); | ||
}; | ||
GetCampaignStateBatchCommand.prototype.deserialize = function (output, context) { | ||
} | ||
deserialize(output, context) { | ||
return deserializeAws_restJson1GetCampaignStateBatchCommand(output, context); | ||
}; | ||
return GetCampaignStateBatchCommand; | ||
}($Command)); | ||
export { GetCampaignStateBatchCommand }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -6,35 +5,29 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1GetCampaignStateCommand, serializeAws_restJson1GetCampaignStateCommand, } from "../protocols/Aws_restJson1"; | ||
var GetCampaignStateCommand = (function (_super) { | ||
__extends(GetCampaignStateCommand, _super); | ||
function GetCampaignStateCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
export class GetCampaignStateCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
} | ||
GetCampaignStateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
resolveMiddleware(clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "GetCampaignStateCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "GetCampaignStateCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: GetCampaignStateRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: GetCampaignStateResponseFilterSensitiveLog, | ||
}; | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
GetCampaignStateCommand.prototype.serialize = function (input, context) { | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
return serializeAws_restJson1GetCampaignStateCommand(input, context); | ||
}; | ||
GetCampaignStateCommand.prototype.deserialize = function (output, context) { | ||
} | ||
deserialize(output, context) { | ||
return deserializeAws_restJson1GetCampaignStateCommand(output, context); | ||
}; | ||
return GetCampaignStateCommand; | ||
}($Command)); | ||
export { GetCampaignStateCommand }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -6,35 +5,29 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1GetConnectInstanceConfigCommand, serializeAws_restJson1GetConnectInstanceConfigCommand, } from "../protocols/Aws_restJson1"; | ||
var GetConnectInstanceConfigCommand = (function (_super) { | ||
__extends(GetConnectInstanceConfigCommand, _super); | ||
function GetConnectInstanceConfigCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
export class GetConnectInstanceConfigCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
} | ||
GetConnectInstanceConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
resolveMiddleware(clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "GetConnectInstanceConfigCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "GetConnectInstanceConfigCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: GetConnectInstanceConfigRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: GetConnectInstanceConfigResponseFilterSensitiveLog, | ||
}; | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
GetConnectInstanceConfigCommand.prototype.serialize = function (input, context) { | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
return serializeAws_restJson1GetConnectInstanceConfigCommand(input, context); | ||
}; | ||
GetConnectInstanceConfigCommand.prototype.deserialize = function (output, context) { | ||
} | ||
deserialize(output, context) { | ||
return deserializeAws_restJson1GetConnectInstanceConfigCommand(output, context); | ||
}; | ||
return GetConnectInstanceConfigCommand; | ||
}($Command)); | ||
export { GetConnectInstanceConfigCommand }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -6,35 +5,29 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1GetInstanceOnboardingJobStatusCommand, serializeAws_restJson1GetInstanceOnboardingJobStatusCommand, } from "../protocols/Aws_restJson1"; | ||
var GetInstanceOnboardingJobStatusCommand = (function (_super) { | ||
__extends(GetInstanceOnboardingJobStatusCommand, _super); | ||
function GetInstanceOnboardingJobStatusCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
export class GetInstanceOnboardingJobStatusCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
} | ||
GetInstanceOnboardingJobStatusCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
resolveMiddleware(clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "GetInstanceOnboardingJobStatusCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "GetInstanceOnboardingJobStatusCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: GetInstanceOnboardingJobStatusRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: GetInstanceOnboardingJobStatusResponseFilterSensitiveLog, | ||
}; | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
GetInstanceOnboardingJobStatusCommand.prototype.serialize = function (input, context) { | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
return serializeAws_restJson1GetInstanceOnboardingJobStatusCommand(input, context); | ||
}; | ||
GetInstanceOnboardingJobStatusCommand.prototype.deserialize = function (output, context) { | ||
} | ||
deserialize(output, context) { | ||
return deserializeAws_restJson1GetInstanceOnboardingJobStatusCommand(output, context); | ||
}; | ||
return GetInstanceOnboardingJobStatusCommand; | ||
}($Command)); | ||
export { GetInstanceOnboardingJobStatusCommand }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -6,35 +5,29 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1ListCampaignsCommand, serializeAws_restJson1ListCampaignsCommand, } from "../protocols/Aws_restJson1"; | ||
var ListCampaignsCommand = (function (_super) { | ||
__extends(ListCampaignsCommand, _super); | ||
function ListCampaignsCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
export class ListCampaignsCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
} | ||
ListCampaignsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
resolveMiddleware(clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "ListCampaignsCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "ListCampaignsCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: ListCampaignsRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: ListCampaignsResponseFilterSensitiveLog, | ||
}; | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
ListCampaignsCommand.prototype.serialize = function (input, context) { | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
return serializeAws_restJson1ListCampaignsCommand(input, context); | ||
}; | ||
ListCampaignsCommand.prototype.deserialize = function (output, context) { | ||
} | ||
deserialize(output, context) { | ||
return deserializeAws_restJson1ListCampaignsCommand(output, context); | ||
}; | ||
return ListCampaignsCommand; | ||
}($Command)); | ||
export { ListCampaignsCommand }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -6,35 +5,29 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1"; | ||
var ListTagsForResourceCommand = (function (_super) { | ||
__extends(ListTagsForResourceCommand, _super); | ||
function ListTagsForResourceCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
export class ListTagsForResourceCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
} | ||
ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
resolveMiddleware(clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "ListTagsForResourceCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "ListTagsForResourceCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog, | ||
}; | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
ListTagsForResourceCommand.prototype.serialize = function (input, context) { | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
return serializeAws_restJson1ListTagsForResourceCommand(input, context); | ||
}; | ||
ListTagsForResourceCommand.prototype.deserialize = function (output, context) { | ||
} | ||
deserialize(output, context) { | ||
return deserializeAws_restJson1ListTagsForResourceCommand(output, context); | ||
}; | ||
return ListTagsForResourceCommand; | ||
}($Command)); | ||
export { ListTagsForResourceCommand }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -6,35 +5,29 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1PauseCampaignCommand, serializeAws_restJson1PauseCampaignCommand, } from "../protocols/Aws_restJson1"; | ||
var PauseCampaignCommand = (function (_super) { | ||
__extends(PauseCampaignCommand, _super); | ||
function PauseCampaignCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
export class PauseCampaignCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
} | ||
PauseCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
resolveMiddleware(clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "PauseCampaignCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "PauseCampaignCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: PauseCampaignRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
outputFilterSensitiveLog: (output) => output, | ||
}; | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
PauseCampaignCommand.prototype.serialize = function (input, context) { | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
return serializeAws_restJson1PauseCampaignCommand(input, context); | ||
}; | ||
PauseCampaignCommand.prototype.deserialize = function (output, context) { | ||
} | ||
deserialize(output, context) { | ||
return deserializeAws_restJson1PauseCampaignCommand(output, context); | ||
}; | ||
return PauseCampaignCommand; | ||
}($Command)); | ||
export { PauseCampaignCommand }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -6,35 +5,29 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1PutDialRequestBatchCommand, serializeAws_restJson1PutDialRequestBatchCommand, } from "../protocols/Aws_restJson1"; | ||
var PutDialRequestBatchCommand = (function (_super) { | ||
__extends(PutDialRequestBatchCommand, _super); | ||
function PutDialRequestBatchCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
export class PutDialRequestBatchCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
} | ||
PutDialRequestBatchCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
resolveMiddleware(clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "PutDialRequestBatchCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "PutDialRequestBatchCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: PutDialRequestBatchRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: PutDialRequestBatchResponseFilterSensitiveLog, | ||
}; | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
PutDialRequestBatchCommand.prototype.serialize = function (input, context) { | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
return serializeAws_restJson1PutDialRequestBatchCommand(input, context); | ||
}; | ||
PutDialRequestBatchCommand.prototype.deserialize = function (output, context) { | ||
} | ||
deserialize(output, context) { | ||
return deserializeAws_restJson1PutDialRequestBatchCommand(output, context); | ||
}; | ||
return PutDialRequestBatchCommand; | ||
}($Command)); | ||
export { PutDialRequestBatchCommand }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -6,35 +5,29 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1ResumeCampaignCommand, serializeAws_restJson1ResumeCampaignCommand, } from "../protocols/Aws_restJson1"; | ||
var ResumeCampaignCommand = (function (_super) { | ||
__extends(ResumeCampaignCommand, _super); | ||
function ResumeCampaignCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
export class ResumeCampaignCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
} | ||
ResumeCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
resolveMiddleware(clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "ResumeCampaignCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "ResumeCampaignCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: ResumeCampaignRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
outputFilterSensitiveLog: (output) => output, | ||
}; | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
ResumeCampaignCommand.prototype.serialize = function (input, context) { | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
return serializeAws_restJson1ResumeCampaignCommand(input, context); | ||
}; | ||
ResumeCampaignCommand.prototype.deserialize = function (output, context) { | ||
} | ||
deserialize(output, context) { | ||
return deserializeAws_restJson1ResumeCampaignCommand(output, context); | ||
}; | ||
return ResumeCampaignCommand; | ||
}($Command)); | ||
export { ResumeCampaignCommand }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -6,35 +5,29 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1StartCampaignCommand, serializeAws_restJson1StartCampaignCommand, } from "../protocols/Aws_restJson1"; | ||
var StartCampaignCommand = (function (_super) { | ||
__extends(StartCampaignCommand, _super); | ||
function StartCampaignCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
export class StartCampaignCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
} | ||
StartCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
resolveMiddleware(clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "StartCampaignCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "StartCampaignCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: StartCampaignRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
outputFilterSensitiveLog: (output) => output, | ||
}; | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
StartCampaignCommand.prototype.serialize = function (input, context) { | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
return serializeAws_restJson1StartCampaignCommand(input, context); | ||
}; | ||
StartCampaignCommand.prototype.deserialize = function (output, context) { | ||
} | ||
deserialize(output, context) { | ||
return deserializeAws_restJson1StartCampaignCommand(output, context); | ||
}; | ||
return StartCampaignCommand; | ||
}($Command)); | ||
export { StartCampaignCommand }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -6,35 +5,29 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1StartInstanceOnboardingJobCommand, serializeAws_restJson1StartInstanceOnboardingJobCommand, } from "../protocols/Aws_restJson1"; | ||
var StartInstanceOnboardingJobCommand = (function (_super) { | ||
__extends(StartInstanceOnboardingJobCommand, _super); | ||
function StartInstanceOnboardingJobCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
export class StartInstanceOnboardingJobCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
} | ||
StartInstanceOnboardingJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
resolveMiddleware(clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "StartInstanceOnboardingJobCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "StartInstanceOnboardingJobCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: StartInstanceOnboardingJobRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: StartInstanceOnboardingJobResponseFilterSensitiveLog, | ||
}; | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
StartInstanceOnboardingJobCommand.prototype.serialize = function (input, context) { | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
return serializeAws_restJson1StartInstanceOnboardingJobCommand(input, context); | ||
}; | ||
StartInstanceOnboardingJobCommand.prototype.deserialize = function (output, context) { | ||
} | ||
deserialize(output, context) { | ||
return deserializeAws_restJson1StartInstanceOnboardingJobCommand(output, context); | ||
}; | ||
return StartInstanceOnboardingJobCommand; | ||
}($Command)); | ||
export { StartInstanceOnboardingJobCommand }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -6,35 +5,29 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1StopCampaignCommand, serializeAws_restJson1StopCampaignCommand, } from "../protocols/Aws_restJson1"; | ||
var StopCampaignCommand = (function (_super) { | ||
__extends(StopCampaignCommand, _super); | ||
function StopCampaignCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
export class StopCampaignCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
} | ||
StopCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
resolveMiddleware(clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "StopCampaignCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "StopCampaignCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: StopCampaignRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
outputFilterSensitiveLog: (output) => output, | ||
}; | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
StopCampaignCommand.prototype.serialize = function (input, context) { | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
return serializeAws_restJson1StopCampaignCommand(input, context); | ||
}; | ||
StopCampaignCommand.prototype.deserialize = function (output, context) { | ||
} | ||
deserialize(output, context) { | ||
return deserializeAws_restJson1StopCampaignCommand(output, context); | ||
}; | ||
return StopCampaignCommand; | ||
}($Command)); | ||
export { StopCampaignCommand }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -6,35 +5,29 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1TagResourceCommand, serializeAws_restJson1TagResourceCommand, } from "../protocols/Aws_restJson1"; | ||
var TagResourceCommand = (function (_super) { | ||
__extends(TagResourceCommand, _super); | ||
function TagResourceCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
export class TagResourceCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
} | ||
TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
resolveMiddleware(clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "TagResourceCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "TagResourceCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
outputFilterSensitiveLog: (output) => output, | ||
}; | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
TagResourceCommand.prototype.serialize = function (input, context) { | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
return serializeAws_restJson1TagResourceCommand(input, context); | ||
}; | ||
TagResourceCommand.prototype.deserialize = function (output, context) { | ||
} | ||
deserialize(output, context) { | ||
return deserializeAws_restJson1TagResourceCommand(output, context); | ||
}; | ||
return TagResourceCommand; | ||
}($Command)); | ||
export { TagResourceCommand }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -6,35 +5,29 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UntagResourceCommand, } from "../protocols/Aws_restJson1"; | ||
var UntagResourceCommand = (function (_super) { | ||
__extends(UntagResourceCommand, _super); | ||
function UntagResourceCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
export class UntagResourceCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
} | ||
UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
resolveMiddleware(clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "UntagResourceCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "UntagResourceCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
outputFilterSensitiveLog: (output) => output, | ||
}; | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
UntagResourceCommand.prototype.serialize = function (input, context) { | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
return serializeAws_restJson1UntagResourceCommand(input, context); | ||
}; | ||
UntagResourceCommand.prototype.deserialize = function (output, context) { | ||
} | ||
deserialize(output, context) { | ||
return deserializeAws_restJson1UntagResourceCommand(output, context); | ||
}; | ||
return UntagResourceCommand; | ||
}($Command)); | ||
export { UntagResourceCommand }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -6,35 +5,29 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1UpdateCampaignDialerConfigCommand, serializeAws_restJson1UpdateCampaignDialerConfigCommand, } from "../protocols/Aws_restJson1"; | ||
var UpdateCampaignDialerConfigCommand = (function (_super) { | ||
__extends(UpdateCampaignDialerConfigCommand, _super); | ||
function UpdateCampaignDialerConfigCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
export class UpdateCampaignDialerConfigCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
} | ||
UpdateCampaignDialerConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
resolveMiddleware(clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "UpdateCampaignDialerConfigCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "UpdateCampaignDialerConfigCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: UpdateCampaignDialerConfigRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
outputFilterSensitiveLog: (output) => output, | ||
}; | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
UpdateCampaignDialerConfigCommand.prototype.serialize = function (input, context) { | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
return serializeAws_restJson1UpdateCampaignDialerConfigCommand(input, context); | ||
}; | ||
UpdateCampaignDialerConfigCommand.prototype.deserialize = function (output, context) { | ||
} | ||
deserialize(output, context) { | ||
return deserializeAws_restJson1UpdateCampaignDialerConfigCommand(output, context); | ||
}; | ||
return UpdateCampaignDialerConfigCommand; | ||
}($Command)); | ||
export { UpdateCampaignDialerConfigCommand }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -6,35 +5,29 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1UpdateCampaignNameCommand, serializeAws_restJson1UpdateCampaignNameCommand, } from "../protocols/Aws_restJson1"; | ||
var UpdateCampaignNameCommand = (function (_super) { | ||
__extends(UpdateCampaignNameCommand, _super); | ||
function UpdateCampaignNameCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
export class UpdateCampaignNameCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
} | ||
UpdateCampaignNameCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
resolveMiddleware(clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "UpdateCampaignNameCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "UpdateCampaignNameCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: UpdateCampaignNameRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
outputFilterSensitiveLog: (output) => output, | ||
}; | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
UpdateCampaignNameCommand.prototype.serialize = function (input, context) { | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
return serializeAws_restJson1UpdateCampaignNameCommand(input, context); | ||
}; | ||
UpdateCampaignNameCommand.prototype.deserialize = function (output, context) { | ||
} | ||
deserialize(output, context) { | ||
return deserializeAws_restJson1UpdateCampaignNameCommand(output, context); | ||
}; | ||
return UpdateCampaignNameCommand; | ||
}($Command)); | ||
export { UpdateCampaignNameCommand }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
@@ -6,35 +5,29 @@ import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { deserializeAws_restJson1UpdateCampaignOutboundCallConfigCommand, serializeAws_restJson1UpdateCampaignOutboundCallConfigCommand, } from "../protocols/Aws_restJson1"; | ||
var UpdateCampaignOutboundCallConfigCommand = (function (_super) { | ||
__extends(UpdateCampaignOutboundCallConfigCommand, _super); | ||
function UpdateCampaignOutboundCallConfigCommand(input) { | ||
var _this = _super.call(this) || this; | ||
_this.input = input; | ||
return _this; | ||
export class UpdateCampaignOutboundCallConfigCommand extends $Command { | ||
constructor(input) { | ||
super(); | ||
this.input = input; | ||
} | ||
UpdateCampaignOutboundCallConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { | ||
resolveMiddleware(clientStack, configuration, options) { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
var stack = clientStack.concat(this.middlewareStack); | ||
var logger = configuration.logger; | ||
var clientName = "ConnectCampaignsClient"; | ||
var commandName = "UpdateCampaignOutboundCallConfigCommand"; | ||
var handlerExecutionContext = { | ||
logger: logger, | ||
clientName: clientName, | ||
commandName: commandName, | ||
const stack = clientStack.concat(this.middlewareStack); | ||
const { logger } = configuration; | ||
const clientName = "ConnectCampaignsClient"; | ||
const commandName = "UpdateCampaignOutboundCallConfigCommand"; | ||
const handlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: UpdateCampaignOutboundCallConfigRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: function (output) { return output; }, | ||
outputFilterSensitiveLog: (output) => output, | ||
}; | ||
var requestHandler = configuration.requestHandler; | ||
return stack.resolve(function (request) { | ||
return requestHandler.handle(request.request, options || {}); | ||
}, handlerExecutionContext); | ||
}; | ||
UpdateCampaignOutboundCallConfigCommand.prototype.serialize = function (input, context) { | ||
const { requestHandler } = configuration; | ||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); | ||
} | ||
serialize(input, context) { | ||
return serializeAws_restJson1UpdateCampaignOutboundCallConfigCommand(input, context); | ||
}; | ||
UpdateCampaignOutboundCallConfigCommand.prototype.deserialize = function (output, context) { | ||
} | ||
deserialize(output, context) { | ||
return deserializeAws_restJson1UpdateCampaignOutboundCallConfigCommand(output, context); | ||
}; | ||
return UpdateCampaignOutboundCallConfigCommand; | ||
}($Command)); | ||
export { UpdateCampaignOutboundCallConfigCommand }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { CreateCampaignCommand, } from "./commands/CreateCampaignCommand"; | ||
@@ -25,9 +24,5 @@ import { DeleteCampaignCommand, } from "./commands/DeleteCampaignCommand"; | ||
import { ConnectCampaignsClient } from "./ConnectCampaignsClient"; | ||
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); | ||
export class ConnectCampaigns extends ConnectCampaignsClient { | ||
createCampaign(args, optionsOrCb, cb) { | ||
const command = new CreateCampaignCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -38,3 +33,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -45,5 +40,5 @@ } | ||
} | ||
}; | ||
ConnectCampaigns.prototype.deleteCampaign = function (args, optionsOrCb, cb) { | ||
var command = new DeleteCampaignCommand(args); | ||
} | ||
deleteCampaign(args, optionsOrCb, cb) { | ||
const command = new DeleteCampaignCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -54,3 +49,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -61,5 +56,5 @@ } | ||
} | ||
}; | ||
ConnectCampaigns.prototype.deleteConnectInstanceConfig = function (args, optionsOrCb, cb) { | ||
var command = new DeleteConnectInstanceConfigCommand(args); | ||
} | ||
deleteConnectInstanceConfig(args, optionsOrCb, cb) { | ||
const command = new DeleteConnectInstanceConfigCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -70,3 +65,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -77,5 +72,5 @@ } | ||
} | ||
}; | ||
ConnectCampaigns.prototype.deleteInstanceOnboardingJob = function (args, optionsOrCb, cb) { | ||
var command = new DeleteInstanceOnboardingJobCommand(args); | ||
} | ||
deleteInstanceOnboardingJob(args, optionsOrCb, cb) { | ||
const command = new DeleteInstanceOnboardingJobCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -86,3 +81,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -93,5 +88,5 @@ } | ||
} | ||
}; | ||
ConnectCampaigns.prototype.describeCampaign = function (args, optionsOrCb, cb) { | ||
var command = new DescribeCampaignCommand(args); | ||
} | ||
describeCampaign(args, optionsOrCb, cb) { | ||
const command = new DescribeCampaignCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -102,3 +97,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -109,5 +104,5 @@ } | ||
} | ||
}; | ||
ConnectCampaigns.prototype.getCampaignState = function (args, optionsOrCb, cb) { | ||
var command = new GetCampaignStateCommand(args); | ||
} | ||
getCampaignState(args, optionsOrCb, cb) { | ||
const command = new GetCampaignStateCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -118,3 +113,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -125,5 +120,5 @@ } | ||
} | ||
}; | ||
ConnectCampaigns.prototype.getCampaignStateBatch = function (args, optionsOrCb, cb) { | ||
var command = new GetCampaignStateBatchCommand(args); | ||
} | ||
getCampaignStateBatch(args, optionsOrCb, cb) { | ||
const command = new GetCampaignStateBatchCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -134,3 +129,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -141,5 +136,5 @@ } | ||
} | ||
}; | ||
ConnectCampaigns.prototype.getConnectInstanceConfig = function (args, optionsOrCb, cb) { | ||
var command = new GetConnectInstanceConfigCommand(args); | ||
} | ||
getConnectInstanceConfig(args, optionsOrCb, cb) { | ||
const command = new GetConnectInstanceConfigCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -150,3 +145,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -157,5 +152,5 @@ } | ||
} | ||
}; | ||
ConnectCampaigns.prototype.getInstanceOnboardingJobStatus = function (args, optionsOrCb, cb) { | ||
var command = new GetInstanceOnboardingJobStatusCommand(args); | ||
} | ||
getInstanceOnboardingJobStatus(args, optionsOrCb, cb) { | ||
const command = new GetInstanceOnboardingJobStatusCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -166,3 +161,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -173,5 +168,5 @@ } | ||
} | ||
}; | ||
ConnectCampaigns.prototype.listCampaigns = function (args, optionsOrCb, cb) { | ||
var command = new ListCampaignsCommand(args); | ||
} | ||
listCampaigns(args, optionsOrCb, cb) { | ||
const command = new ListCampaignsCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -182,3 +177,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -189,5 +184,5 @@ } | ||
} | ||
}; | ||
ConnectCampaigns.prototype.listTagsForResource = function (args, optionsOrCb, cb) { | ||
var command = new ListTagsForResourceCommand(args); | ||
} | ||
listTagsForResource(args, optionsOrCb, cb) { | ||
const command = new ListTagsForResourceCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -198,3 +193,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -205,5 +200,5 @@ } | ||
} | ||
}; | ||
ConnectCampaigns.prototype.pauseCampaign = function (args, optionsOrCb, cb) { | ||
var command = new PauseCampaignCommand(args); | ||
} | ||
pauseCampaign(args, optionsOrCb, cb) { | ||
const command = new PauseCampaignCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -214,3 +209,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -221,5 +216,5 @@ } | ||
} | ||
}; | ||
ConnectCampaigns.prototype.putDialRequestBatch = function (args, optionsOrCb, cb) { | ||
var command = new PutDialRequestBatchCommand(args); | ||
} | ||
putDialRequestBatch(args, optionsOrCb, cb) { | ||
const command = new PutDialRequestBatchCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -230,3 +225,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -237,5 +232,5 @@ } | ||
} | ||
}; | ||
ConnectCampaigns.prototype.resumeCampaign = function (args, optionsOrCb, cb) { | ||
var command = new ResumeCampaignCommand(args); | ||
} | ||
resumeCampaign(args, optionsOrCb, cb) { | ||
const command = new ResumeCampaignCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -246,3 +241,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -253,5 +248,5 @@ } | ||
} | ||
}; | ||
ConnectCampaigns.prototype.startCampaign = function (args, optionsOrCb, cb) { | ||
var command = new StartCampaignCommand(args); | ||
} | ||
startCampaign(args, optionsOrCb, cb) { | ||
const command = new StartCampaignCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -262,3 +257,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -269,5 +264,5 @@ } | ||
} | ||
}; | ||
ConnectCampaigns.prototype.startInstanceOnboardingJob = function (args, optionsOrCb, cb) { | ||
var command = new StartInstanceOnboardingJobCommand(args); | ||
} | ||
startInstanceOnboardingJob(args, optionsOrCb, cb) { | ||
const command = new StartInstanceOnboardingJobCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -278,3 +273,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -285,5 +280,5 @@ } | ||
} | ||
}; | ||
ConnectCampaigns.prototype.stopCampaign = function (args, optionsOrCb, cb) { | ||
var command = new StopCampaignCommand(args); | ||
} | ||
stopCampaign(args, optionsOrCb, cb) { | ||
const command = new StopCampaignCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -294,3 +289,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -301,5 +296,5 @@ } | ||
} | ||
}; | ||
ConnectCampaigns.prototype.tagResource = function (args, optionsOrCb, cb) { | ||
var command = new TagResourceCommand(args); | ||
} | ||
tagResource(args, optionsOrCb, cb) { | ||
const command = new TagResourceCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -310,3 +305,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -317,5 +312,5 @@ } | ||
} | ||
}; | ||
ConnectCampaigns.prototype.untagResource = function (args, optionsOrCb, cb) { | ||
var command = new UntagResourceCommand(args); | ||
} | ||
untagResource(args, optionsOrCb, cb) { | ||
const command = new UntagResourceCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -326,3 +321,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -333,5 +328,5 @@ } | ||
} | ||
}; | ||
ConnectCampaigns.prototype.updateCampaignDialerConfig = function (args, optionsOrCb, cb) { | ||
var command = new UpdateCampaignDialerConfigCommand(args); | ||
} | ||
updateCampaignDialerConfig(args, optionsOrCb, cb) { | ||
const command = new UpdateCampaignDialerConfigCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -342,3 +337,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -349,5 +344,5 @@ } | ||
} | ||
}; | ||
ConnectCampaigns.prototype.updateCampaignName = function (args, optionsOrCb, cb) { | ||
var command = new UpdateCampaignNameCommand(args); | ||
} | ||
updateCampaignName(args, optionsOrCb, cb) { | ||
const command = new UpdateCampaignNameCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -358,3 +353,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -365,5 +360,5 @@ } | ||
} | ||
}; | ||
ConnectCampaigns.prototype.updateCampaignOutboundCallConfig = function (args, optionsOrCb, cb) { | ||
var command = new UpdateCampaignOutboundCallConfigCommand(args); | ||
} | ||
updateCampaignOutboundCallConfig(args, optionsOrCb, cb) { | ||
const command = new UpdateCampaignOutboundCallConfigCommand(args); | ||
if (typeof optionsOrCb === "function") { | ||
@@ -374,3 +369,3 @@ this.send(command, optionsOrCb); | ||
if (typeof optionsOrCb !== "object") | ||
throw new Error("Expect http options but get ".concat(typeof optionsOrCb)); | ||
throw new Error(`Expect http options but get ${typeof optionsOrCb}`); | ||
this.send(command, optionsOrCb || {}, cb); | ||
@@ -381,5 +376,3 @@ } | ||
} | ||
}; | ||
return ConnectCampaigns; | ||
}(ConnectCampaignsClient)); | ||
export { ConnectCampaigns }; | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __extends } from "tslib"; | ||
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver"; | ||
@@ -12,29 +11,24 @@ import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length"; | ||
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig"; | ||
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; | ||
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)); | ||
} | ||
ConnectCampaignsClient.prototype.destroy = function () { | ||
_super.prototype.destroy.call(this); | ||
}; | ||
return ConnectCampaignsClient; | ||
}(__Client)); | ||
export { ConnectCampaignsClient }; | ||
destroy() { | ||
super.destroy(); | ||
} | ||
} |
@@ -1,4 +0,3 @@ | ||
import { __assign, __awaiter, __generator } from "tslib"; | ||
import { getRegionInfo } from "@aws-sdk/config-resolver"; | ||
var regionHash = { | ||
const regionHash = { | ||
"us-east-1": { | ||
@@ -21,3 +20,3 @@ variants: [ | ||
}; | ||
var partitionHash = { | ||
const partitionHash = { | ||
aws: { | ||
@@ -144,6 +143,7 @@ regions: [ | ||
}; | ||
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 }))]; | ||
}); | ||
}); }; | ||
export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, { | ||
...options, | ||
signingService: "connect-campaigns", | ||
regionHash, | ||
partitionHash, | ||
}); |
@@ -1,12 +0,7 @@ | ||
import { __extends } from "tslib"; | ||
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client"; | ||
var ConnectCampaignsServiceException = (function (_super) { | ||
__extends(ConnectCampaignsServiceException, _super); | ||
function ConnectCampaignsServiceException(options) { | ||
var _this = _super.call(this, options) || this; | ||
Object.setPrototypeOf(_this, ConnectCampaignsServiceException.prototype); | ||
return _this; | ||
export class ConnectCampaignsServiceException extends __ServiceException { | ||
constructor(options) { | ||
super(options); | ||
Object.setPrototypeOf(this, ConnectCampaignsServiceException.prototype); | ||
} | ||
return ConnectCampaignsServiceException; | ||
}(__ServiceException)); | ||
export { ConnectCampaignsServiceException }; | ||
} |
@@ -1,33 +0,32 @@ | ||
import { __assign, __extends } from "tslib"; | ||
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client"; | ||
import { ConnectCampaignsServiceException as __BaseException } from "./ConnectCampaignsServiceException"; | ||
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 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; | ||
} | ||
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; | ||
} | ||
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 ConflictException; | ||
}(__BaseException)); | ||
export { ConflictException }; | ||
} | ||
export var DialerConfig; | ||
(function (DialerConfig) { | ||
DialerConfig.visit = function (value, visitor) { | ||
DialerConfig.visit = (value, visitor) => { | ||
if (value.progressiveDialerConfig !== undefined) | ||
@@ -40,82 +39,82 @@ return visitor.progressiveDialerConfig(value.progressiveDialerConfig); | ||
})(DialerConfig || (DialerConfig = {})); | ||
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 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; | ||
} | ||
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 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 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 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 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 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 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 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 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; | ||
} | ||
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 InvalidStateException; | ||
}(__BaseException)); | ||
export { InvalidStateException }; | ||
} | ||
export var CampaignState; | ||
@@ -157,16 +156,16 @@ (function (CampaignState) { | ||
})(InstanceIdFilterOperator || (InstanceIdFilterOperator = {})); | ||
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; | ||
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; | ||
} | ||
return InvalidCampaignStateException; | ||
}(__BaseException)); | ||
export { InvalidCampaignStateException }; | ||
} | ||
export var FailureCode; | ||
@@ -178,6 +177,9 @@ (function (FailureCode) { | ||
})(FailureCode || (FailureCode = {})); | ||
export var PredictiveDialerConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var ProgressiveDialerConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); }; | ||
export var DialerConfigFilterSensitiveLog = function (obj) { | ||
var _a; | ||
export const PredictiveDialerConfigFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const ProgressiveDialerConfigFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
}); | ||
export const DialerConfigFilterSensitiveLog = (obj) => { | ||
if (obj.progressiveDialerConfig !== undefined) | ||
@@ -188,49 +190,148 @@ return { progressiveDialerConfig: ProgressiveDialerConfigFilterSensitiveLog(obj.progressiveDialerConfig) }; | ||
if (obj.$unknown !== undefined) | ||
return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a; | ||
return { [obj.$unknown[0]]: "UNKNOWN" }; | ||
}; | ||
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)); }; | ||
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, | ||
}); |
@@ -1,75 +0,32 @@ | ||
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib"; | ||
import { ListCampaignsCommand, } from "../commands/ListCampaignsCommand"; | ||
import { ConnectCampaigns } from "../ConnectCampaigns"; | ||
import { ConnectCampaignsClient } from "../ConnectCampaignsClient"; | ||
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 makePagedClientRequest = async (client, input, ...args) => { | ||
return await client.send(new ListCampaignsCommand(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()]; | ||
} | ||
}); | ||
}); | ||
const makePagedRequest = async (client, input, ...args) => { | ||
return await client.listCampaigns(input, ...args); | ||
}; | ||
export function paginateListCampaigns(config, input) { | ||
var additionalArguments = []; | ||
for (var _i = 2; _i < arguments.length; _i++) { | ||
additionalArguments[_i - 2] = arguments[_i]; | ||
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)); | ||
} | ||
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()]; | ||
} | ||
}); | ||
}); | ||
return undefined; | ||
} |
@@ -1,2 +0,1 @@ | ||
import { __assign, __awaiter, __generator } from "tslib"; | ||
import packageInfo from "../package.json"; | ||
@@ -15,13 +14,28 @@ import { Sha256 } from "@aws-crypto/sha256-browser"; | ||
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser"; | ||
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 }); | ||
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, | ||
}; | ||
}; |
@@ -1,2 +0,1 @@ | ||
import { __assign, __awaiter, __generator } from "tslib"; | ||
import packageInfo from "../package.json"; | ||
@@ -18,14 +17,33 @@ import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; | ||
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client"; | ||
export var getRuntimeConfig = function (config) { | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; | ||
export const getRuntimeConfig = (config) => { | ||
emitWarningIfUnsupportedVersion(process.version); | ||
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 }); | ||
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, | ||
}; | ||
}; |
@@ -1,8 +0,11 @@ | ||
import { __assign } from "tslib"; | ||
import { Sha256 } from "@aws-crypto/sha256-js"; | ||
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser"; | ||
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 }); | ||
export const getRuntimeConfig = (config) => { | ||
const browserDefaults = getBrowserRuntimeConfig(config); | ||
return { | ||
...browserDefaults, | ||
...config, | ||
runtime: "react-native", | ||
sha256: config?.sha256 ?? Sha256, | ||
}; | ||
}; |
import { parseUrl } from "@aws-sdk/url-parser"; | ||
import { defaultRegionInfoProvider } from "./endpoints"; | ||
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, | ||
}); | ||
}; | ||
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, | ||
}); |
{ | ||
"name": "@aws-sdk/client-connectcampaigns", | ||
"description": "AWS SDK for JavaScript Connectcampaigns Client for Node.js, Browser and React Native", | ||
"version": "3.181.0", | ||
"version": "3.183.0", | ||
"scripts": { | ||
@@ -22,37 +22,37 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"@aws-crypto/sha256-js": "2.0.0", | ||
"@aws-sdk/client-sts": "3.181.0", | ||
"@aws-sdk/config-resolver": "3.178.0", | ||
"@aws-sdk/credential-provider-node": "3.181.0", | ||
"@aws-sdk/fetch-http-handler": "3.178.0", | ||
"@aws-sdk/hash-node": "3.178.0", | ||
"@aws-sdk/invalid-dependency": "3.178.0", | ||
"@aws-sdk/middleware-content-length": "3.178.0", | ||
"@aws-sdk/middleware-host-header": "3.178.0", | ||
"@aws-sdk/middleware-logger": "3.178.0", | ||
"@aws-sdk/middleware-recursion-detection": "3.178.0", | ||
"@aws-sdk/middleware-retry": "3.178.0", | ||
"@aws-sdk/middleware-serde": "3.178.0", | ||
"@aws-sdk/middleware-signing": "3.179.0", | ||
"@aws-sdk/middleware-stack": "3.178.0", | ||
"@aws-sdk/middleware-user-agent": "3.178.0", | ||
"@aws-sdk/node-config-provider": "3.178.0", | ||
"@aws-sdk/node-http-handler": "3.178.0", | ||
"@aws-sdk/protocol-http": "3.178.0", | ||
"@aws-sdk/smithy-client": "3.180.0", | ||
"@aws-sdk/types": "3.178.0", | ||
"@aws-sdk/url-parser": "3.178.0", | ||
"@aws-sdk/util-base64-browser": "3.170.0", | ||
"@aws-sdk/util-base64-node": "3.170.0", | ||
"@aws-sdk/util-body-length-browser": "3.170.0", | ||
"@aws-sdk/util-body-length-node": "3.170.0", | ||
"@aws-sdk/util-defaults-mode-browser": "3.180.0", | ||
"@aws-sdk/util-defaults-mode-node": "3.180.0", | ||
"@aws-sdk/util-user-agent-browser": "3.178.0", | ||
"@aws-sdk/util-user-agent-node": "3.178.0", | ||
"@aws-sdk/util-utf8-browser": "3.170.0", | ||
"@aws-sdk/util-utf8-node": "3.170.0", | ||
"@aws-sdk/client-sts": "3.183.0", | ||
"@aws-sdk/config-resolver": "3.183.0", | ||
"@aws-sdk/credential-provider-node": "3.183.0", | ||
"@aws-sdk/fetch-http-handler": "3.183.0", | ||
"@aws-sdk/hash-node": "3.183.0", | ||
"@aws-sdk/invalid-dependency": "3.183.0", | ||
"@aws-sdk/middleware-content-length": "3.183.0", | ||
"@aws-sdk/middleware-host-header": "3.183.0", | ||
"@aws-sdk/middleware-logger": "3.183.0", | ||
"@aws-sdk/middleware-recursion-detection": "3.183.0", | ||
"@aws-sdk/middleware-retry": "3.183.0", | ||
"@aws-sdk/middleware-serde": "3.183.0", | ||
"@aws-sdk/middleware-signing": "3.183.0", | ||
"@aws-sdk/middleware-stack": "3.183.0", | ||
"@aws-sdk/middleware-user-agent": "3.183.0", | ||
"@aws-sdk/node-config-provider": "3.183.0", | ||
"@aws-sdk/node-http-handler": "3.183.0", | ||
"@aws-sdk/protocol-http": "3.183.0", | ||
"@aws-sdk/smithy-client": "3.183.0", | ||
"@aws-sdk/types": "3.183.0", | ||
"@aws-sdk/url-parser": "3.183.0", | ||
"@aws-sdk/util-base64-browser": "3.183.0", | ||
"@aws-sdk/util-base64-node": "3.183.0", | ||
"@aws-sdk/util-body-length-browser": "3.183.0", | ||
"@aws-sdk/util-body-length-node": "3.183.0", | ||
"@aws-sdk/util-defaults-mode-browser": "3.183.0", | ||
"@aws-sdk/util-defaults-mode-node": "3.183.0", | ||
"@aws-sdk/util-user-agent-browser": "3.183.0", | ||
"@aws-sdk/util-user-agent-node": "3.183.0", | ||
"@aws-sdk/util-utf8-browser": "3.183.0", | ||
"@aws-sdk/util-utf8-node": "3.183.0", | ||
"tslib": "^2.3.1" | ||
}, | ||
"devDependencies": { | ||
"@aws-sdk/service-client-documentation-generator": "3.170.0", | ||
"@aws-sdk/service-client-documentation-generator": "3.183.0", | ||
"@tsconfig/recommended": "1.0.1", | ||
@@ -59,0 +59,0 @@ "@types/node": "^12.7.5", |
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
587313
12316
+ Added@aws-sdk/abort-controller@3.183.0(transitive)
+ Added@aws-sdk/client-sso@3.183.0(transitive)
+ Added@aws-sdk/client-sts@3.183.0(transitive)
+ Added@aws-sdk/config-resolver@3.183.0(transitive)
+ Added@aws-sdk/credential-provider-env@3.183.0(transitive)
+ Added@aws-sdk/credential-provider-imds@3.183.0(transitive)
+ Added@aws-sdk/credential-provider-ini@3.183.0(transitive)
+ Added@aws-sdk/credential-provider-node@3.183.0(transitive)
+ Added@aws-sdk/credential-provider-process@3.183.0(transitive)
+ Added@aws-sdk/credential-provider-sso@3.183.0(transitive)
+ Added@aws-sdk/credential-provider-web-identity@3.183.0(transitive)
+ Added@aws-sdk/fetch-http-handler@3.183.0(transitive)
+ Added@aws-sdk/hash-node@3.183.0(transitive)
+ Added@aws-sdk/invalid-dependency@3.183.0(transitive)
+ Added@aws-sdk/is-array-buffer@3.183.0(transitive)
+ Added@aws-sdk/middleware-content-length@3.183.0(transitive)
+ Added@aws-sdk/middleware-host-header@3.183.0(transitive)
+ Added@aws-sdk/middleware-logger@3.183.0(transitive)
+ Added@aws-sdk/middleware-recursion-detection@3.183.0(transitive)
+ Added@aws-sdk/middleware-retry@3.183.0(transitive)
+ Added@aws-sdk/middleware-sdk-sts@3.183.0(transitive)
+ Added@aws-sdk/middleware-serde@3.183.0(transitive)
+ Added@aws-sdk/middleware-signing@3.183.0(transitive)
+ Added@aws-sdk/middleware-stack@3.183.0(transitive)
+ Added@aws-sdk/middleware-user-agent@3.183.0(transitive)
+ Added@aws-sdk/node-config-provider@3.183.0(transitive)
+ Added@aws-sdk/node-http-handler@3.183.0(transitive)
+ Added@aws-sdk/property-provider@3.183.0(transitive)
+ Added@aws-sdk/protocol-http@3.183.0(transitive)
+ Added@aws-sdk/querystring-builder@3.183.0(transitive)
+ Added@aws-sdk/querystring-parser@3.183.0(transitive)
+ Added@aws-sdk/service-error-classification@3.183.0(transitive)
+ Added@aws-sdk/shared-ini-file-loader@3.183.0(transitive)
+ Added@aws-sdk/signature-v4@3.183.0(transitive)
+ Added@aws-sdk/smithy-client@3.183.0(transitive)
+ Added@aws-sdk/types@3.183.0(transitive)
+ Added@aws-sdk/url-parser@3.183.0(transitive)
+ Added@aws-sdk/util-base64-browser@3.183.0(transitive)
+ Added@aws-sdk/util-base64-node@3.183.0(transitive)
+ Added@aws-sdk/util-body-length-browser@3.183.0(transitive)
+ Added@aws-sdk/util-body-length-node@3.183.0(transitive)
+ Added@aws-sdk/util-buffer-from@3.183.0(transitive)
+ Added@aws-sdk/util-config-provider@3.183.0(transitive)
+ Added@aws-sdk/util-defaults-mode-browser@3.183.0(transitive)
+ Added@aws-sdk/util-defaults-mode-node@3.183.0(transitive)
+ Added@aws-sdk/util-hex-encoding@3.183.0(transitive)
+ Added@aws-sdk/util-middleware@3.183.0(transitive)
+ Added@aws-sdk/util-uri-escape@3.183.0(transitive)
+ Added@aws-sdk/util-user-agent-browser@3.183.0(transitive)
+ Added@aws-sdk/util-user-agent-node@3.183.0(transitive)
+ Added@aws-sdk/util-utf8-browser@3.183.0(transitive)
+ Added@aws-sdk/util-utf8-node@3.183.0(transitive)
- Removed@aws-sdk/abort-controller@3.178.0(transitive)
- Removed@aws-sdk/client-sso@3.181.0(transitive)
- Removed@aws-sdk/client-sts@3.181.0(transitive)
- Removed@aws-sdk/config-resolver@3.178.0(transitive)
- Removed@aws-sdk/credential-provider-env@3.178.0(transitive)
- Removed@aws-sdk/credential-provider-imds@3.178.0(transitive)
- Removed@aws-sdk/credential-provider-ini@3.181.0(transitive)
- Removed@aws-sdk/credential-provider-node@3.181.0(transitive)
- Removed@aws-sdk/credential-provider-process@3.178.0(transitive)
- Removed@aws-sdk/credential-provider-sso@3.181.0(transitive)
- Removed@aws-sdk/credential-provider-web-identity@3.178.0(transitive)
- Removed@aws-sdk/fetch-http-handler@3.178.0(transitive)
- Removed@aws-sdk/hash-node@3.178.0(transitive)
- Removed@aws-sdk/invalid-dependency@3.178.0(transitive)
- Removed@aws-sdk/is-array-buffer@3.170.0(transitive)
- Removed@aws-sdk/middleware-content-length@3.178.0(transitive)
- Removed@aws-sdk/middleware-host-header@3.178.0(transitive)
- Removed@aws-sdk/middleware-logger@3.178.0(transitive)
- Removed@aws-sdk/middleware-recursion-detection@3.178.0(transitive)
- Removed@aws-sdk/middleware-retry@3.178.0(transitive)
- Removed@aws-sdk/middleware-sdk-sts@3.179.0(transitive)
- Removed@aws-sdk/middleware-serde@3.178.0(transitive)
- Removed@aws-sdk/middleware-signing@3.179.0(transitive)
- Removed@aws-sdk/middleware-stack@3.178.0(transitive)
- Removed@aws-sdk/middleware-user-agent@3.178.0(transitive)
- Removed@aws-sdk/node-config-provider@3.178.0(transitive)
- Removed@aws-sdk/node-http-handler@3.178.0(transitive)
- Removed@aws-sdk/property-provider@3.178.0(transitive)
- Removed@aws-sdk/protocol-http@3.178.0(transitive)
- Removed@aws-sdk/querystring-builder@3.178.0(transitive)
- Removed@aws-sdk/querystring-parser@3.178.0(transitive)
- Removed@aws-sdk/service-error-classification@3.178.0(transitive)
- Removed@aws-sdk/shared-ini-file-loader@3.178.0(transitive)
- Removed@aws-sdk/signature-v4@3.178.0(transitive)
- Removed@aws-sdk/smithy-client@3.180.0(transitive)
- Removed@aws-sdk/types@3.178.0(transitive)
- Removed@aws-sdk/url-parser@3.178.0(transitive)
- Removed@aws-sdk/util-base64-browser@3.170.0(transitive)
- Removed@aws-sdk/util-base64-node@3.170.0(transitive)
- Removed@aws-sdk/util-body-length-browser@3.170.0(transitive)
- Removed@aws-sdk/util-body-length-node@3.170.0(transitive)
- Removed@aws-sdk/util-buffer-from@3.170.0(transitive)
- Removed@aws-sdk/util-config-provider@3.170.0(transitive)
- Removed@aws-sdk/util-defaults-mode-browser@3.180.0(transitive)
- Removed@aws-sdk/util-defaults-mode-node@3.180.0(transitive)
- Removed@aws-sdk/util-hex-encoding@3.170.0(transitive)
- Removed@aws-sdk/util-middleware@3.178.0(transitive)
- Removed@aws-sdk/util-uri-escape@3.170.0(transitive)
- Removed@aws-sdk/util-user-agent-browser@3.178.0(transitive)
- Removed@aws-sdk/util-user-agent-node@3.178.0(transitive)
- Removed@aws-sdk/util-utf8-browser@3.170.0(transitive)
- Removed@aws-sdk/util-utf8-node@3.170.0(transitive)
Updated@aws-sdk/client-sts@3.183.0
Updated@aws-sdk/hash-node@3.183.0
Updated@aws-sdk/types@3.183.0
Updated@aws-sdk/url-parser@3.183.0