@aws-sdk/client-connectcampaigns 3.489.0 → 3.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/ConnectCampaigns.js +1 -55
- package/dist-cjs/ConnectCampaignsClient.js +1 -43
- package/dist-cjs/commands/CreateCampaignCommand.js +1 -28
- package/dist-cjs/commands/DeleteCampaignCommand.js +1 -28
- package/dist-cjs/commands/DeleteConnectInstanceConfigCommand.js +1 -28
- package/dist-cjs/commands/DeleteInstanceOnboardingJobCommand.js +1 -28
- package/dist-cjs/commands/DescribeCampaignCommand.js +1 -28
- package/dist-cjs/commands/GetCampaignStateBatchCommand.js +1 -28
- package/dist-cjs/commands/GetCampaignStateCommand.js +1 -28
- package/dist-cjs/commands/GetConnectInstanceConfigCommand.js +1 -28
- package/dist-cjs/commands/GetInstanceOnboardingJobStatusCommand.js +1 -28
- package/dist-cjs/commands/ListCampaignsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/PauseCampaignCommand.js +1 -28
- package/dist-cjs/commands/PutDialRequestBatchCommand.js +1 -29
- package/dist-cjs/commands/ResumeCampaignCommand.js +1 -28
- package/dist-cjs/commands/StartCampaignCommand.js +1 -28
- package/dist-cjs/commands/StartInstanceOnboardingJobCommand.js +1 -28
- package/dist-cjs/commands/StopCampaignCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateCampaignDialerConfigCommand.js +1 -28
- package/dist-cjs/commands/UpdateCampaignNameCommand.js +1 -28
- package/dist-cjs/commands/UpdateCampaignOutboundCallConfigCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -25
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2413 -11
- package/dist-cjs/models/ConnectCampaignsServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -192
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListCampaignsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -5
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1555
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,2414 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
CampaignState: () => CampaignState,
|
|
26
|
+
ConflictException: () => ConflictException,
|
|
27
|
+
ConnectCampaigns: () => ConnectCampaigns,
|
|
28
|
+
ConnectCampaignsClient: () => ConnectCampaignsClient,
|
|
29
|
+
ConnectCampaignsServiceException: () => ConnectCampaignsServiceException,
|
|
30
|
+
CreateCampaignCommand: () => CreateCampaignCommand,
|
|
31
|
+
DeleteCampaignCommand: () => DeleteCampaignCommand,
|
|
32
|
+
DeleteConnectInstanceConfigCommand: () => DeleteConnectInstanceConfigCommand,
|
|
33
|
+
DeleteInstanceOnboardingJobCommand: () => DeleteInstanceOnboardingJobCommand,
|
|
34
|
+
DescribeCampaignCommand: () => DescribeCampaignCommand,
|
|
35
|
+
DialRequestFilterSensitiveLog: () => DialRequestFilterSensitiveLog,
|
|
36
|
+
DialerConfig: () => DialerConfig,
|
|
37
|
+
EncryptionType: () => EncryptionType,
|
|
38
|
+
FailureCode: () => FailureCode,
|
|
39
|
+
GetCampaignStateBatchCommand: () => GetCampaignStateBatchCommand,
|
|
40
|
+
GetCampaignStateBatchFailureCode: () => GetCampaignStateBatchFailureCode,
|
|
41
|
+
GetCampaignStateCommand: () => GetCampaignStateCommand,
|
|
42
|
+
GetConnectInstanceConfigCommand: () => GetConnectInstanceConfigCommand,
|
|
43
|
+
GetInstanceOnboardingJobStatusCommand: () => GetInstanceOnboardingJobStatusCommand,
|
|
44
|
+
InstanceIdFilterOperator: () => InstanceIdFilterOperator,
|
|
45
|
+
InstanceOnboardingJobFailureCode: () => InstanceOnboardingJobFailureCode,
|
|
46
|
+
InstanceOnboardingJobStatusCode: () => InstanceOnboardingJobStatusCode,
|
|
47
|
+
InternalServerException: () => InternalServerException,
|
|
48
|
+
InvalidCampaignStateException: () => InvalidCampaignStateException,
|
|
49
|
+
InvalidStateException: () => InvalidStateException,
|
|
50
|
+
ListCampaignsCommand: () => ListCampaignsCommand,
|
|
51
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
52
|
+
PauseCampaignCommand: () => PauseCampaignCommand,
|
|
53
|
+
PutDialRequestBatchCommand: () => PutDialRequestBatchCommand,
|
|
54
|
+
PutDialRequestBatchRequestFilterSensitiveLog: () => PutDialRequestBatchRequestFilterSensitiveLog,
|
|
55
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
56
|
+
ResumeCampaignCommand: () => ResumeCampaignCommand,
|
|
57
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
58
|
+
StartCampaignCommand: () => StartCampaignCommand,
|
|
59
|
+
StartInstanceOnboardingJobCommand: () => StartInstanceOnboardingJobCommand,
|
|
60
|
+
StopCampaignCommand: () => StopCampaignCommand,
|
|
61
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
62
|
+
ThrottlingException: () => ThrottlingException,
|
|
63
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
64
|
+
UpdateCampaignDialerConfigCommand: () => UpdateCampaignDialerConfigCommand,
|
|
65
|
+
UpdateCampaignNameCommand: () => UpdateCampaignNameCommand,
|
|
66
|
+
UpdateCampaignOutboundCallConfigCommand: () => UpdateCampaignOutboundCallConfigCommand,
|
|
67
|
+
ValidationException: () => ValidationException,
|
|
68
|
+
__Client: () => import_smithy_client.Client,
|
|
69
|
+
paginateListCampaigns: () => paginateListCampaigns
|
|
70
|
+
});
|
|
71
|
+
module.exports = __toCommonJS(src_exports);
|
|
72
|
+
|
|
73
|
+
// src/ConnectCampaignsClient.ts
|
|
74
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
75
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
76
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
77
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
78
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
79
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
80
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
81
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
82
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
// src/endpoint/EndpointParameters.ts
|
|
86
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
87
|
+
return {
|
|
88
|
+
...options,
|
|
89
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
90
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
91
|
+
defaultSigningName: "connect-campaigns"
|
|
92
|
+
};
|
|
93
|
+
}, "resolveClientEndpointParameters");
|
|
94
|
+
var commonParams = {
|
|
95
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
96
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
97
|
+
Region: { type: "builtInParams", name: "region" },
|
|
98
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
// src/ConnectCampaignsClient.ts
|
|
102
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
103
|
+
|
|
104
|
+
// src/runtimeExtensions.ts
|
|
105
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
106
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
107
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
108
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
109
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
110
|
+
const extensionConfiguration = {
|
|
111
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
112
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
113
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
114
|
+
};
|
|
115
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
116
|
+
return {
|
|
117
|
+
...runtimeConfig,
|
|
118
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
119
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
120
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
121
|
+
};
|
|
122
|
+
}, "resolveRuntimeExtensions");
|
|
123
|
+
|
|
124
|
+
// src/ConnectCampaignsClient.ts
|
|
125
|
+
var _ConnectCampaignsClient = class _ConnectCampaignsClient extends import_smithy_client.Client {
|
|
126
|
+
constructor(...[configuration]) {
|
|
127
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
128
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
129
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
130
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
131
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
132
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
133
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
134
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
135
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
136
|
+
super(_config_8);
|
|
137
|
+
this.config = _config_8;
|
|
138
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
139
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
140
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
141
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
142
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
143
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
144
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
148
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
149
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
150
|
+
*/
|
|
151
|
+
destroy() {
|
|
152
|
+
super.destroy();
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
__name(_ConnectCampaignsClient, "ConnectCampaignsClient");
|
|
156
|
+
var ConnectCampaignsClient = _ConnectCampaignsClient;
|
|
157
|
+
|
|
158
|
+
// src/ConnectCampaigns.ts
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
// src/commands/CreateCampaignCommand.ts
|
|
162
|
+
|
|
163
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
164
|
+
|
|
165
|
+
var import_types = require("@smithy/types");
|
|
166
|
+
|
|
167
|
+
// src/protocols/Aws_restJson1.ts
|
|
168
|
+
var import_core = require("@aws-sdk/core");
|
|
169
|
+
var import_core2 = require("@smithy/core");
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
// src/models/ConnectCampaignsServiceException.ts
|
|
173
|
+
|
|
174
|
+
var _ConnectCampaignsServiceException = class _ConnectCampaignsServiceException extends import_smithy_client.ServiceException {
|
|
175
|
+
/**
|
|
176
|
+
* @internal
|
|
177
|
+
*/
|
|
178
|
+
constructor(options) {
|
|
179
|
+
super(options);
|
|
180
|
+
Object.setPrototypeOf(this, _ConnectCampaignsServiceException.prototype);
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
__name(_ConnectCampaignsServiceException, "ConnectCampaignsServiceException");
|
|
184
|
+
var ConnectCampaignsServiceException = _ConnectCampaignsServiceException;
|
|
185
|
+
|
|
186
|
+
// src/models/models_0.ts
|
|
187
|
+
|
|
188
|
+
var _AccessDeniedException = class _AccessDeniedException extends ConnectCampaignsServiceException {
|
|
189
|
+
/**
|
|
190
|
+
* @internal
|
|
191
|
+
*/
|
|
192
|
+
constructor(opts) {
|
|
193
|
+
super({
|
|
194
|
+
name: "AccessDeniedException",
|
|
195
|
+
$fault: "client",
|
|
196
|
+
...opts
|
|
197
|
+
});
|
|
198
|
+
this.name = "AccessDeniedException";
|
|
199
|
+
this.$fault = "client";
|
|
200
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
201
|
+
this.xAmzErrorType = opts.xAmzErrorType;
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
205
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
206
|
+
var _ConflictException = class _ConflictException extends ConnectCampaignsServiceException {
|
|
207
|
+
/**
|
|
208
|
+
* @internal
|
|
209
|
+
*/
|
|
210
|
+
constructor(opts) {
|
|
211
|
+
super({
|
|
212
|
+
name: "ConflictException",
|
|
213
|
+
$fault: "client",
|
|
214
|
+
...opts
|
|
215
|
+
});
|
|
216
|
+
this.name = "ConflictException";
|
|
217
|
+
this.$fault = "client";
|
|
218
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
219
|
+
this.xAmzErrorType = opts.xAmzErrorType;
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
__name(_ConflictException, "ConflictException");
|
|
223
|
+
var ConflictException = _ConflictException;
|
|
224
|
+
var DialerConfig;
|
|
225
|
+
((DialerConfig2) => {
|
|
226
|
+
DialerConfig2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
227
|
+
if (value.progressiveDialerConfig !== void 0)
|
|
228
|
+
return visitor.progressiveDialerConfig(value.progressiveDialerConfig);
|
|
229
|
+
if (value.predictiveDialerConfig !== void 0)
|
|
230
|
+
return visitor.predictiveDialerConfig(value.predictiveDialerConfig);
|
|
231
|
+
if (value.agentlessDialerConfig !== void 0)
|
|
232
|
+
return visitor.agentlessDialerConfig(value.agentlessDialerConfig);
|
|
233
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
234
|
+
}, "visit");
|
|
235
|
+
})(DialerConfig || (DialerConfig = {}));
|
|
236
|
+
var _InternalServerException = class _InternalServerException extends ConnectCampaignsServiceException {
|
|
237
|
+
/**
|
|
238
|
+
* @internal
|
|
239
|
+
*/
|
|
240
|
+
constructor(opts) {
|
|
241
|
+
super({
|
|
242
|
+
name: "InternalServerException",
|
|
243
|
+
$fault: "server",
|
|
244
|
+
...opts
|
|
245
|
+
});
|
|
246
|
+
this.name = "InternalServerException";
|
|
247
|
+
this.$fault = "server";
|
|
248
|
+
this.$retryable = {};
|
|
249
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
250
|
+
this.xAmzErrorType = opts.xAmzErrorType;
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
__name(_InternalServerException, "InternalServerException");
|
|
254
|
+
var InternalServerException = _InternalServerException;
|
|
255
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends ConnectCampaignsServiceException {
|
|
256
|
+
/**
|
|
257
|
+
* @internal
|
|
258
|
+
*/
|
|
259
|
+
constructor(opts) {
|
|
260
|
+
super({
|
|
261
|
+
name: "ResourceNotFoundException",
|
|
262
|
+
$fault: "client",
|
|
263
|
+
...opts
|
|
264
|
+
});
|
|
265
|
+
this.name = "ResourceNotFoundException";
|
|
266
|
+
this.$fault = "client";
|
|
267
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
268
|
+
this.xAmzErrorType = opts.xAmzErrorType;
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
272
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
273
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends ConnectCampaignsServiceException {
|
|
274
|
+
/**
|
|
275
|
+
* @internal
|
|
276
|
+
*/
|
|
277
|
+
constructor(opts) {
|
|
278
|
+
super({
|
|
279
|
+
name: "ServiceQuotaExceededException",
|
|
280
|
+
$fault: "client",
|
|
281
|
+
...opts
|
|
282
|
+
});
|
|
283
|
+
this.name = "ServiceQuotaExceededException";
|
|
284
|
+
this.$fault = "client";
|
|
285
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
286
|
+
this.xAmzErrorType = opts.xAmzErrorType;
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
290
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
291
|
+
var _ThrottlingException = class _ThrottlingException extends ConnectCampaignsServiceException {
|
|
292
|
+
/**
|
|
293
|
+
* @internal
|
|
294
|
+
*/
|
|
295
|
+
constructor(opts) {
|
|
296
|
+
super({
|
|
297
|
+
name: "ThrottlingException",
|
|
298
|
+
$fault: "client",
|
|
299
|
+
...opts
|
|
300
|
+
});
|
|
301
|
+
this.name = "ThrottlingException";
|
|
302
|
+
this.$fault = "client";
|
|
303
|
+
this.$retryable = {};
|
|
304
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
305
|
+
this.xAmzErrorType = opts.xAmzErrorType;
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
309
|
+
var ThrottlingException = _ThrottlingException;
|
|
310
|
+
var _ValidationException = class _ValidationException extends ConnectCampaignsServiceException {
|
|
311
|
+
/**
|
|
312
|
+
* @internal
|
|
313
|
+
*/
|
|
314
|
+
constructor(opts) {
|
|
315
|
+
super({
|
|
316
|
+
name: "ValidationException",
|
|
317
|
+
$fault: "client",
|
|
318
|
+
...opts
|
|
319
|
+
});
|
|
320
|
+
this.name = "ValidationException";
|
|
321
|
+
this.$fault = "client";
|
|
322
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
323
|
+
this.xAmzErrorType = opts.xAmzErrorType;
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
__name(_ValidationException, "ValidationException");
|
|
327
|
+
var ValidationException = _ValidationException;
|
|
328
|
+
var _InvalidStateException = class _InvalidStateException extends ConnectCampaignsServiceException {
|
|
329
|
+
/**
|
|
330
|
+
* @internal
|
|
331
|
+
*/
|
|
332
|
+
constructor(opts) {
|
|
333
|
+
super({
|
|
334
|
+
name: "InvalidStateException",
|
|
335
|
+
$fault: "client",
|
|
336
|
+
...opts
|
|
337
|
+
});
|
|
338
|
+
this.name = "InvalidStateException";
|
|
339
|
+
this.$fault = "client";
|
|
340
|
+
Object.setPrototypeOf(this, _InvalidStateException.prototype);
|
|
341
|
+
this.xAmzErrorType = opts.xAmzErrorType;
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
__name(_InvalidStateException, "InvalidStateException");
|
|
345
|
+
var InvalidStateException = _InvalidStateException;
|
|
346
|
+
var CampaignState = {
|
|
347
|
+
/**
|
|
348
|
+
* Campaign is in failed state
|
|
349
|
+
*/
|
|
350
|
+
FAILED: "Failed",
|
|
351
|
+
/**
|
|
352
|
+
* Campaign is in initialized state
|
|
353
|
+
*/
|
|
354
|
+
INITIALIZED: "Initialized",
|
|
355
|
+
/**
|
|
356
|
+
* Campaign is in paused state
|
|
357
|
+
*/
|
|
358
|
+
PAUSED: "Paused",
|
|
359
|
+
/**
|
|
360
|
+
* Campaign is in running state
|
|
361
|
+
*/
|
|
362
|
+
RUNNING: "Running",
|
|
363
|
+
/**
|
|
364
|
+
* Campaign is in stopped state
|
|
365
|
+
*/
|
|
366
|
+
STOPPED: "Stopped"
|
|
367
|
+
};
|
|
368
|
+
var GetCampaignStateBatchFailureCode = {
|
|
369
|
+
/**
|
|
370
|
+
* The specified resource was not found
|
|
371
|
+
*/
|
|
372
|
+
RESOURCE_NOT_FOUND: "ResourceNotFound",
|
|
373
|
+
/**
|
|
374
|
+
* Unexpected error during processing of request
|
|
375
|
+
*/
|
|
376
|
+
UNKNOWN_ERROR: "UnknownError"
|
|
377
|
+
};
|
|
378
|
+
var EncryptionType = {
|
|
379
|
+
KMS: "KMS"
|
|
380
|
+
};
|
|
381
|
+
var InstanceOnboardingJobFailureCode = {
|
|
382
|
+
EVENT_BRIDGE_ACCESS_DENIED: "EVENT_BRIDGE_ACCESS_DENIED",
|
|
383
|
+
EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED: "EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED",
|
|
384
|
+
IAM_ACCESS_DENIED: "IAM_ACCESS_DENIED",
|
|
385
|
+
INTERNAL_FAILURE: "INTERNAL_FAILURE",
|
|
386
|
+
KMS_ACCESS_DENIED: "KMS_ACCESS_DENIED",
|
|
387
|
+
KMS_KEY_NOT_FOUND: "KMS_KEY_NOT_FOUND"
|
|
388
|
+
};
|
|
389
|
+
var InstanceOnboardingJobStatusCode = {
|
|
390
|
+
FAILED: "FAILED",
|
|
391
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
392
|
+
SUCCEEDED: "SUCCEEDED"
|
|
393
|
+
};
|
|
394
|
+
var InstanceIdFilterOperator = {
|
|
395
|
+
/**
|
|
396
|
+
* Equals operator
|
|
397
|
+
*/
|
|
398
|
+
EQ: "Eq"
|
|
399
|
+
};
|
|
400
|
+
var _InvalidCampaignStateException = class _InvalidCampaignStateException extends ConnectCampaignsServiceException {
|
|
401
|
+
/**
|
|
402
|
+
* @internal
|
|
403
|
+
*/
|
|
404
|
+
constructor(opts) {
|
|
405
|
+
super({
|
|
406
|
+
name: "InvalidCampaignStateException",
|
|
407
|
+
$fault: "client",
|
|
408
|
+
...opts
|
|
409
|
+
});
|
|
410
|
+
this.name = "InvalidCampaignStateException";
|
|
411
|
+
this.$fault = "client";
|
|
412
|
+
Object.setPrototypeOf(this, _InvalidCampaignStateException.prototype);
|
|
413
|
+
this.state = opts.state;
|
|
414
|
+
this.xAmzErrorType = opts.xAmzErrorType;
|
|
415
|
+
}
|
|
416
|
+
};
|
|
417
|
+
__name(_InvalidCampaignStateException, "InvalidCampaignStateException");
|
|
418
|
+
var InvalidCampaignStateException = _InvalidCampaignStateException;
|
|
419
|
+
var FailureCode = {
|
|
420
|
+
/**
|
|
421
|
+
* The request failed to satisfy the constraints specified by the service
|
|
422
|
+
*/
|
|
423
|
+
INVALID_INPUT: "InvalidInput",
|
|
424
|
+
/**
|
|
425
|
+
* Request throttled due to large number of pending dial requests
|
|
426
|
+
*/
|
|
427
|
+
REQUEST_THROTTLED: "RequestThrottled",
|
|
428
|
+
/**
|
|
429
|
+
* Unexpected error during processing of request
|
|
430
|
+
*/
|
|
431
|
+
UNKNOWN_ERROR: "UnknownError"
|
|
432
|
+
};
|
|
433
|
+
var DialRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
434
|
+
...obj,
|
|
435
|
+
...obj.phoneNumber && { phoneNumber: import_smithy_client.SENSITIVE_STRING },
|
|
436
|
+
...obj.attributes && { attributes: import_smithy_client.SENSITIVE_STRING }
|
|
437
|
+
}), "DialRequestFilterSensitiveLog");
|
|
438
|
+
var PutDialRequestBatchRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
439
|
+
...obj,
|
|
440
|
+
...obj.dialRequests && { dialRequests: obj.dialRequests.map((item) => DialRequestFilterSensitiveLog(item)) }
|
|
441
|
+
}), "PutDialRequestBatchRequestFilterSensitiveLog");
|
|
442
|
+
|
|
443
|
+
// src/protocols/Aws_restJson1.ts
|
|
444
|
+
var se_CreateCampaignCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
445
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
446
|
+
const headers = {
|
|
447
|
+
"content-type": "application/json"
|
|
448
|
+
};
|
|
449
|
+
b.bp("/campaigns");
|
|
450
|
+
let body;
|
|
451
|
+
body = JSON.stringify(
|
|
452
|
+
(0, import_smithy_client.take)(input, {
|
|
453
|
+
connectInstanceId: [],
|
|
454
|
+
dialerConfig: (_) => se_DialerConfig(_, context),
|
|
455
|
+
name: [],
|
|
456
|
+
outboundCallConfig: (_) => (0, import_smithy_client._json)(_),
|
|
457
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
458
|
+
})
|
|
459
|
+
);
|
|
460
|
+
b.m("PUT").h(headers).b(body);
|
|
461
|
+
return b.build();
|
|
462
|
+
}, "se_CreateCampaignCommand");
|
|
463
|
+
var se_DeleteCampaignCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
464
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
465
|
+
const headers = {};
|
|
466
|
+
b.bp("/campaigns/{id}");
|
|
467
|
+
b.p("id", () => input.id, "{id}", false);
|
|
468
|
+
let body;
|
|
469
|
+
b.m("DELETE").h(headers).b(body);
|
|
470
|
+
return b.build();
|
|
471
|
+
}, "se_DeleteCampaignCommand");
|
|
472
|
+
var se_DeleteConnectInstanceConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
473
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
474
|
+
const headers = {};
|
|
475
|
+
b.bp("/connect-instance/{connectInstanceId}/config");
|
|
476
|
+
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
477
|
+
let body;
|
|
478
|
+
b.m("DELETE").h(headers).b(body);
|
|
479
|
+
return b.build();
|
|
480
|
+
}, "se_DeleteConnectInstanceConfigCommand");
|
|
481
|
+
var se_DeleteInstanceOnboardingJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
482
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
483
|
+
const headers = {};
|
|
484
|
+
b.bp("/connect-instance/{connectInstanceId}/onboarding");
|
|
485
|
+
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
486
|
+
let body;
|
|
487
|
+
b.m("DELETE").h(headers).b(body);
|
|
488
|
+
return b.build();
|
|
489
|
+
}, "se_DeleteInstanceOnboardingJobCommand");
|
|
490
|
+
var se_DescribeCampaignCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
491
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
492
|
+
const headers = {};
|
|
493
|
+
b.bp("/campaigns/{id}");
|
|
494
|
+
b.p("id", () => input.id, "{id}", false);
|
|
495
|
+
let body;
|
|
496
|
+
b.m("GET").h(headers).b(body);
|
|
497
|
+
return b.build();
|
|
498
|
+
}, "se_DescribeCampaignCommand");
|
|
499
|
+
var se_GetCampaignStateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
500
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
501
|
+
const headers = {};
|
|
502
|
+
b.bp("/campaigns/{id}/state");
|
|
503
|
+
b.p("id", () => input.id, "{id}", false);
|
|
504
|
+
let body;
|
|
505
|
+
b.m("GET").h(headers).b(body);
|
|
506
|
+
return b.build();
|
|
507
|
+
}, "se_GetCampaignStateCommand");
|
|
508
|
+
var se_GetCampaignStateBatchCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
509
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
510
|
+
const headers = {
|
|
511
|
+
"content-type": "application/json"
|
|
512
|
+
};
|
|
513
|
+
b.bp("/campaigns-state");
|
|
514
|
+
let body;
|
|
515
|
+
body = JSON.stringify(
|
|
516
|
+
(0, import_smithy_client.take)(input, {
|
|
517
|
+
campaignIds: (_) => (0, import_smithy_client._json)(_)
|
|
518
|
+
})
|
|
519
|
+
);
|
|
520
|
+
b.m("POST").h(headers).b(body);
|
|
521
|
+
return b.build();
|
|
522
|
+
}, "se_GetCampaignStateBatchCommand");
|
|
523
|
+
var se_GetConnectInstanceConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
524
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
525
|
+
const headers = {};
|
|
526
|
+
b.bp("/connect-instance/{connectInstanceId}/config");
|
|
527
|
+
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
528
|
+
let body;
|
|
529
|
+
b.m("GET").h(headers).b(body);
|
|
530
|
+
return b.build();
|
|
531
|
+
}, "se_GetConnectInstanceConfigCommand");
|
|
532
|
+
var se_GetInstanceOnboardingJobStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
533
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
534
|
+
const headers = {};
|
|
535
|
+
b.bp("/connect-instance/{connectInstanceId}/onboarding");
|
|
536
|
+
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
537
|
+
let body;
|
|
538
|
+
b.m("GET").h(headers).b(body);
|
|
539
|
+
return b.build();
|
|
540
|
+
}, "se_GetInstanceOnboardingJobStatusCommand");
|
|
541
|
+
var se_ListCampaignsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
542
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
543
|
+
const headers = {
|
|
544
|
+
"content-type": "application/json"
|
|
545
|
+
};
|
|
546
|
+
b.bp("/campaigns-summary");
|
|
547
|
+
let body;
|
|
548
|
+
body = JSON.stringify(
|
|
549
|
+
(0, import_smithy_client.take)(input, {
|
|
550
|
+
filters: (_) => (0, import_smithy_client._json)(_),
|
|
551
|
+
maxResults: [],
|
|
552
|
+
nextToken: []
|
|
553
|
+
})
|
|
554
|
+
);
|
|
555
|
+
b.m("POST").h(headers).b(body);
|
|
556
|
+
return b.build();
|
|
557
|
+
}, "se_ListCampaignsCommand");
|
|
558
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
559
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
560
|
+
const headers = {};
|
|
561
|
+
b.bp("/tags/{arn}");
|
|
562
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
563
|
+
let body;
|
|
564
|
+
b.m("GET").h(headers).b(body);
|
|
565
|
+
return b.build();
|
|
566
|
+
}, "se_ListTagsForResourceCommand");
|
|
567
|
+
var se_PauseCampaignCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
568
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
569
|
+
const headers = {};
|
|
570
|
+
b.bp("/campaigns/{id}/pause");
|
|
571
|
+
b.p("id", () => input.id, "{id}", false);
|
|
572
|
+
let body;
|
|
573
|
+
b.m("POST").h(headers).b(body);
|
|
574
|
+
return b.build();
|
|
575
|
+
}, "se_PauseCampaignCommand");
|
|
576
|
+
var se_PutDialRequestBatchCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
577
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
578
|
+
const headers = {
|
|
579
|
+
"content-type": "application/json"
|
|
580
|
+
};
|
|
581
|
+
b.bp("/campaigns/{id}/dial-requests");
|
|
582
|
+
b.p("id", () => input.id, "{id}", false);
|
|
583
|
+
let body;
|
|
584
|
+
body = JSON.stringify(
|
|
585
|
+
(0, import_smithy_client.take)(input, {
|
|
586
|
+
dialRequests: (_) => se_DialRequestList(_, context)
|
|
587
|
+
})
|
|
588
|
+
);
|
|
589
|
+
b.m("PUT").h(headers).b(body);
|
|
590
|
+
return b.build();
|
|
591
|
+
}, "se_PutDialRequestBatchCommand");
|
|
592
|
+
var se_ResumeCampaignCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
593
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
594
|
+
const headers = {};
|
|
595
|
+
b.bp("/campaigns/{id}/resume");
|
|
596
|
+
b.p("id", () => input.id, "{id}", false);
|
|
597
|
+
let body;
|
|
598
|
+
b.m("POST").h(headers).b(body);
|
|
599
|
+
return b.build();
|
|
600
|
+
}, "se_ResumeCampaignCommand");
|
|
601
|
+
var se_StartCampaignCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
602
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
603
|
+
const headers = {};
|
|
604
|
+
b.bp("/campaigns/{id}/start");
|
|
605
|
+
b.p("id", () => input.id, "{id}", false);
|
|
606
|
+
let body;
|
|
607
|
+
b.m("POST").h(headers).b(body);
|
|
608
|
+
return b.build();
|
|
609
|
+
}, "se_StartCampaignCommand");
|
|
610
|
+
var se_StartInstanceOnboardingJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
611
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
612
|
+
const headers = {
|
|
613
|
+
"content-type": "application/json"
|
|
614
|
+
};
|
|
615
|
+
b.bp("/connect-instance/{connectInstanceId}/onboarding");
|
|
616
|
+
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
617
|
+
let body;
|
|
618
|
+
body = JSON.stringify(
|
|
619
|
+
(0, import_smithy_client.take)(input, {
|
|
620
|
+
encryptionConfig: (_) => (0, import_smithy_client._json)(_)
|
|
621
|
+
})
|
|
622
|
+
);
|
|
623
|
+
b.m("PUT").h(headers).b(body);
|
|
624
|
+
return b.build();
|
|
625
|
+
}, "se_StartInstanceOnboardingJobCommand");
|
|
626
|
+
var se_StopCampaignCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
627
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
628
|
+
const headers = {};
|
|
629
|
+
b.bp("/campaigns/{id}/stop");
|
|
630
|
+
b.p("id", () => input.id, "{id}", false);
|
|
631
|
+
let body;
|
|
632
|
+
b.m("POST").h(headers).b(body);
|
|
633
|
+
return b.build();
|
|
634
|
+
}, "se_StopCampaignCommand");
|
|
635
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
636
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
637
|
+
const headers = {
|
|
638
|
+
"content-type": "application/json"
|
|
639
|
+
};
|
|
640
|
+
b.bp("/tags/{arn}");
|
|
641
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
642
|
+
let body;
|
|
643
|
+
body = JSON.stringify(
|
|
644
|
+
(0, import_smithy_client.take)(input, {
|
|
645
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
646
|
+
})
|
|
647
|
+
);
|
|
648
|
+
b.m("POST").h(headers).b(body);
|
|
649
|
+
return b.build();
|
|
650
|
+
}, "se_TagResourceCommand");
|
|
651
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
652
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
653
|
+
const headers = {};
|
|
654
|
+
b.bp("/tags/{arn}");
|
|
655
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
656
|
+
const query = (0, import_smithy_client.map)({
|
|
657
|
+
[_tK]: [
|
|
658
|
+
(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
659
|
+
() => (input[_tK] || []).map((_entry) => _entry)
|
|
660
|
+
]
|
|
661
|
+
});
|
|
662
|
+
let body;
|
|
663
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
664
|
+
return b.build();
|
|
665
|
+
}, "se_UntagResourceCommand");
|
|
666
|
+
var se_UpdateCampaignDialerConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
667
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
668
|
+
const headers = {
|
|
669
|
+
"content-type": "application/json"
|
|
670
|
+
};
|
|
671
|
+
b.bp("/campaigns/{id}/dialer-config");
|
|
672
|
+
b.p("id", () => input.id, "{id}", false);
|
|
673
|
+
let body;
|
|
674
|
+
body = JSON.stringify(
|
|
675
|
+
(0, import_smithy_client.take)(input, {
|
|
676
|
+
dialerConfig: (_) => se_DialerConfig(_, context)
|
|
677
|
+
})
|
|
678
|
+
);
|
|
679
|
+
b.m("POST").h(headers).b(body);
|
|
680
|
+
return b.build();
|
|
681
|
+
}, "se_UpdateCampaignDialerConfigCommand");
|
|
682
|
+
var se_UpdateCampaignNameCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
683
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
684
|
+
const headers = {
|
|
685
|
+
"content-type": "application/json"
|
|
686
|
+
};
|
|
687
|
+
b.bp("/campaigns/{id}/name");
|
|
688
|
+
b.p("id", () => input.id, "{id}", false);
|
|
689
|
+
let body;
|
|
690
|
+
body = JSON.stringify(
|
|
691
|
+
(0, import_smithy_client.take)(input, {
|
|
692
|
+
name: []
|
|
693
|
+
})
|
|
694
|
+
);
|
|
695
|
+
b.m("POST").h(headers).b(body);
|
|
696
|
+
return b.build();
|
|
697
|
+
}, "se_UpdateCampaignNameCommand");
|
|
698
|
+
var se_UpdateCampaignOutboundCallConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
699
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
700
|
+
const headers = {
|
|
701
|
+
"content-type": "application/json"
|
|
702
|
+
};
|
|
703
|
+
b.bp("/campaigns/{id}/outbound-call-config");
|
|
704
|
+
b.p("id", () => input.id, "{id}", false);
|
|
705
|
+
let body;
|
|
706
|
+
body = JSON.stringify(
|
|
707
|
+
(0, import_smithy_client.take)(input, {
|
|
708
|
+
answerMachineDetectionConfig: (_) => (0, import_smithy_client._json)(_),
|
|
709
|
+
connectContactFlowId: [],
|
|
710
|
+
connectSourcePhoneNumber: []
|
|
711
|
+
})
|
|
712
|
+
);
|
|
713
|
+
b.m("POST").h(headers).b(body);
|
|
714
|
+
return b.build();
|
|
715
|
+
}, "se_UpdateCampaignOutboundCallConfigCommand");
|
|
716
|
+
var de_CreateCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
717
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
718
|
+
return de_CreateCampaignCommandError(output, context);
|
|
719
|
+
}
|
|
720
|
+
const contents = (0, import_smithy_client.map)({
|
|
721
|
+
$metadata: deserializeMetadata(output)
|
|
722
|
+
});
|
|
723
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
724
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
725
|
+
arn: import_smithy_client.expectString,
|
|
726
|
+
id: import_smithy_client.expectString,
|
|
727
|
+
tags: import_smithy_client._json
|
|
728
|
+
});
|
|
729
|
+
Object.assign(contents, doc);
|
|
730
|
+
return contents;
|
|
731
|
+
}, "de_CreateCampaignCommand");
|
|
732
|
+
var de_CreateCampaignCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
733
|
+
const parsedOutput = {
|
|
734
|
+
...output,
|
|
735
|
+
body: await parseErrorBody(output.body, context)
|
|
736
|
+
};
|
|
737
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
738
|
+
switch (errorCode) {
|
|
739
|
+
case "AccessDeniedException":
|
|
740
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
741
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
742
|
+
case "ConflictException":
|
|
743
|
+
case "com.amazonaws.connectcampaigns#ConflictException":
|
|
744
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
745
|
+
case "InternalServerException":
|
|
746
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
747
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
748
|
+
case "ResourceNotFoundException":
|
|
749
|
+
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
750
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
751
|
+
case "ServiceQuotaExceededException":
|
|
752
|
+
case "com.amazonaws.connectcampaigns#ServiceQuotaExceededException":
|
|
753
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
754
|
+
case "ThrottlingException":
|
|
755
|
+
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
756
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
757
|
+
case "ValidationException":
|
|
758
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
759
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
760
|
+
default:
|
|
761
|
+
const parsedBody = parsedOutput.body;
|
|
762
|
+
return throwDefaultError({
|
|
763
|
+
output,
|
|
764
|
+
parsedBody,
|
|
765
|
+
errorCode
|
|
766
|
+
});
|
|
767
|
+
}
|
|
768
|
+
}, "de_CreateCampaignCommandError");
|
|
769
|
+
var de_DeleteCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
770
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
771
|
+
return de_DeleteCampaignCommandError(output, context);
|
|
772
|
+
}
|
|
773
|
+
const contents = (0, import_smithy_client.map)({
|
|
774
|
+
$metadata: deserializeMetadata(output)
|
|
775
|
+
});
|
|
776
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
777
|
+
return contents;
|
|
778
|
+
}, "de_DeleteCampaignCommand");
|
|
779
|
+
var de_DeleteCampaignCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
780
|
+
const parsedOutput = {
|
|
781
|
+
...output,
|
|
782
|
+
body: await parseErrorBody(output.body, context)
|
|
783
|
+
};
|
|
784
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
785
|
+
switch (errorCode) {
|
|
786
|
+
case "AccessDeniedException":
|
|
787
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
788
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
789
|
+
case "InternalServerException":
|
|
790
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
791
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
792
|
+
case "ResourceNotFoundException":
|
|
793
|
+
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
794
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
795
|
+
case "ValidationException":
|
|
796
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
797
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
798
|
+
default:
|
|
799
|
+
const parsedBody = parsedOutput.body;
|
|
800
|
+
return throwDefaultError({
|
|
801
|
+
output,
|
|
802
|
+
parsedBody,
|
|
803
|
+
errorCode
|
|
804
|
+
});
|
|
805
|
+
}
|
|
806
|
+
}, "de_DeleteCampaignCommandError");
|
|
807
|
+
var de_DeleteConnectInstanceConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
808
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
809
|
+
return de_DeleteConnectInstanceConfigCommandError(output, context);
|
|
810
|
+
}
|
|
811
|
+
const contents = (0, import_smithy_client.map)({
|
|
812
|
+
$metadata: deserializeMetadata(output)
|
|
813
|
+
});
|
|
814
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
815
|
+
return contents;
|
|
816
|
+
}, "de_DeleteConnectInstanceConfigCommand");
|
|
817
|
+
var de_DeleteConnectInstanceConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
818
|
+
const parsedOutput = {
|
|
819
|
+
...output,
|
|
820
|
+
body: await parseErrorBody(output.body, context)
|
|
821
|
+
};
|
|
822
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
823
|
+
switch (errorCode) {
|
|
824
|
+
case "AccessDeniedException":
|
|
825
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
826
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
827
|
+
case "InternalServerException":
|
|
828
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
829
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
830
|
+
case "InvalidStateException":
|
|
831
|
+
case "com.amazonaws.connectcampaigns#InvalidStateException":
|
|
832
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
833
|
+
case "ResourceNotFoundException":
|
|
834
|
+
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
835
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
836
|
+
case "ThrottlingException":
|
|
837
|
+
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
838
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
839
|
+
case "ValidationException":
|
|
840
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
841
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
842
|
+
default:
|
|
843
|
+
const parsedBody = parsedOutput.body;
|
|
844
|
+
return throwDefaultError({
|
|
845
|
+
output,
|
|
846
|
+
parsedBody,
|
|
847
|
+
errorCode
|
|
848
|
+
});
|
|
849
|
+
}
|
|
850
|
+
}, "de_DeleteConnectInstanceConfigCommandError");
|
|
851
|
+
var de_DeleteInstanceOnboardingJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
852
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
853
|
+
return de_DeleteInstanceOnboardingJobCommandError(output, context);
|
|
854
|
+
}
|
|
855
|
+
const contents = (0, import_smithy_client.map)({
|
|
856
|
+
$metadata: deserializeMetadata(output)
|
|
857
|
+
});
|
|
858
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
859
|
+
return contents;
|
|
860
|
+
}, "de_DeleteInstanceOnboardingJobCommand");
|
|
861
|
+
var de_DeleteInstanceOnboardingJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
862
|
+
const parsedOutput = {
|
|
863
|
+
...output,
|
|
864
|
+
body: await parseErrorBody(output.body, context)
|
|
865
|
+
};
|
|
866
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
867
|
+
switch (errorCode) {
|
|
868
|
+
case "AccessDeniedException":
|
|
869
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
870
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
871
|
+
case "InternalServerException":
|
|
872
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
873
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
874
|
+
case "InvalidStateException":
|
|
875
|
+
case "com.amazonaws.connectcampaigns#InvalidStateException":
|
|
876
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
877
|
+
case "ResourceNotFoundException":
|
|
878
|
+
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
879
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
880
|
+
case "ValidationException":
|
|
881
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
882
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
883
|
+
default:
|
|
884
|
+
const parsedBody = parsedOutput.body;
|
|
885
|
+
return throwDefaultError({
|
|
886
|
+
output,
|
|
887
|
+
parsedBody,
|
|
888
|
+
errorCode
|
|
889
|
+
});
|
|
890
|
+
}
|
|
891
|
+
}, "de_DeleteInstanceOnboardingJobCommandError");
|
|
892
|
+
var de_DescribeCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
893
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
894
|
+
return de_DescribeCampaignCommandError(output, context);
|
|
895
|
+
}
|
|
896
|
+
const contents = (0, import_smithy_client.map)({
|
|
897
|
+
$metadata: deserializeMetadata(output)
|
|
898
|
+
});
|
|
899
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
900
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
901
|
+
campaign: (_) => de_Campaign(_, context)
|
|
902
|
+
});
|
|
903
|
+
Object.assign(contents, doc);
|
|
904
|
+
return contents;
|
|
905
|
+
}, "de_DescribeCampaignCommand");
|
|
906
|
+
var de_DescribeCampaignCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
907
|
+
const parsedOutput = {
|
|
908
|
+
...output,
|
|
909
|
+
body: await parseErrorBody(output.body, context)
|
|
910
|
+
};
|
|
911
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
912
|
+
switch (errorCode) {
|
|
913
|
+
case "AccessDeniedException":
|
|
914
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
915
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
916
|
+
case "InternalServerException":
|
|
917
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
918
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
919
|
+
case "ResourceNotFoundException":
|
|
920
|
+
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
921
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
922
|
+
case "ValidationException":
|
|
923
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
924
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
925
|
+
default:
|
|
926
|
+
const parsedBody = parsedOutput.body;
|
|
927
|
+
return throwDefaultError({
|
|
928
|
+
output,
|
|
929
|
+
parsedBody,
|
|
930
|
+
errorCode
|
|
931
|
+
});
|
|
932
|
+
}
|
|
933
|
+
}, "de_DescribeCampaignCommandError");
|
|
934
|
+
var de_GetCampaignStateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
935
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
936
|
+
return de_GetCampaignStateCommandError(output, context);
|
|
937
|
+
}
|
|
938
|
+
const contents = (0, import_smithy_client.map)({
|
|
939
|
+
$metadata: deserializeMetadata(output)
|
|
940
|
+
});
|
|
941
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
942
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
943
|
+
state: import_smithy_client.expectString
|
|
944
|
+
});
|
|
945
|
+
Object.assign(contents, doc);
|
|
946
|
+
return contents;
|
|
947
|
+
}, "de_GetCampaignStateCommand");
|
|
948
|
+
var de_GetCampaignStateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
949
|
+
const parsedOutput = {
|
|
950
|
+
...output,
|
|
951
|
+
body: await parseErrorBody(output.body, context)
|
|
952
|
+
};
|
|
953
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
954
|
+
switch (errorCode) {
|
|
955
|
+
case "AccessDeniedException":
|
|
956
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
957
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
958
|
+
case "InternalServerException":
|
|
959
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
960
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
961
|
+
case "ResourceNotFoundException":
|
|
962
|
+
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
963
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
964
|
+
case "ThrottlingException":
|
|
965
|
+
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
966
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
967
|
+
case "ValidationException":
|
|
968
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
969
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
970
|
+
default:
|
|
971
|
+
const parsedBody = parsedOutput.body;
|
|
972
|
+
return throwDefaultError({
|
|
973
|
+
output,
|
|
974
|
+
parsedBody,
|
|
975
|
+
errorCode
|
|
976
|
+
});
|
|
977
|
+
}
|
|
978
|
+
}, "de_GetCampaignStateCommandError");
|
|
979
|
+
var de_GetCampaignStateBatchCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
980
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
981
|
+
return de_GetCampaignStateBatchCommandError(output, context);
|
|
982
|
+
}
|
|
983
|
+
const contents = (0, import_smithy_client.map)({
|
|
984
|
+
$metadata: deserializeMetadata(output)
|
|
985
|
+
});
|
|
986
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
987
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
988
|
+
failedRequests: import_smithy_client._json,
|
|
989
|
+
successfulRequests: import_smithy_client._json
|
|
990
|
+
});
|
|
991
|
+
Object.assign(contents, doc);
|
|
992
|
+
return contents;
|
|
993
|
+
}, "de_GetCampaignStateBatchCommand");
|
|
994
|
+
var de_GetCampaignStateBatchCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
995
|
+
const parsedOutput = {
|
|
996
|
+
...output,
|
|
997
|
+
body: await parseErrorBody(output.body, context)
|
|
998
|
+
};
|
|
999
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1000
|
+
switch (errorCode) {
|
|
1001
|
+
case "AccessDeniedException":
|
|
1002
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1003
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1004
|
+
case "InternalServerException":
|
|
1005
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1006
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1007
|
+
case "ThrottlingException":
|
|
1008
|
+
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1009
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1010
|
+
case "ValidationException":
|
|
1011
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1012
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1013
|
+
default:
|
|
1014
|
+
const parsedBody = parsedOutput.body;
|
|
1015
|
+
return throwDefaultError({
|
|
1016
|
+
output,
|
|
1017
|
+
parsedBody,
|
|
1018
|
+
errorCode
|
|
1019
|
+
});
|
|
1020
|
+
}
|
|
1021
|
+
}, "de_GetCampaignStateBatchCommandError");
|
|
1022
|
+
var de_GetConnectInstanceConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1023
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1024
|
+
return de_GetConnectInstanceConfigCommandError(output, context);
|
|
1025
|
+
}
|
|
1026
|
+
const contents = (0, import_smithy_client.map)({
|
|
1027
|
+
$metadata: deserializeMetadata(output)
|
|
1028
|
+
});
|
|
1029
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1030
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1031
|
+
connectInstanceConfig: import_smithy_client._json
|
|
1032
|
+
});
|
|
1033
|
+
Object.assign(contents, doc);
|
|
1034
|
+
return contents;
|
|
1035
|
+
}, "de_GetConnectInstanceConfigCommand");
|
|
1036
|
+
var de_GetConnectInstanceConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1037
|
+
const parsedOutput = {
|
|
1038
|
+
...output,
|
|
1039
|
+
body: await parseErrorBody(output.body, context)
|
|
1040
|
+
};
|
|
1041
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1042
|
+
switch (errorCode) {
|
|
1043
|
+
case "AccessDeniedException":
|
|
1044
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1045
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1046
|
+
case "InternalServerException":
|
|
1047
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1048
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1049
|
+
case "ResourceNotFoundException":
|
|
1050
|
+
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1051
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1052
|
+
case "ValidationException":
|
|
1053
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1054
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1055
|
+
default:
|
|
1056
|
+
const parsedBody = parsedOutput.body;
|
|
1057
|
+
return throwDefaultError({
|
|
1058
|
+
output,
|
|
1059
|
+
parsedBody,
|
|
1060
|
+
errorCode
|
|
1061
|
+
});
|
|
1062
|
+
}
|
|
1063
|
+
}, "de_GetConnectInstanceConfigCommandError");
|
|
1064
|
+
var de_GetInstanceOnboardingJobStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1065
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1066
|
+
return de_GetInstanceOnboardingJobStatusCommandError(output, context);
|
|
1067
|
+
}
|
|
1068
|
+
const contents = (0, import_smithy_client.map)({
|
|
1069
|
+
$metadata: deserializeMetadata(output)
|
|
1070
|
+
});
|
|
1071
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1072
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1073
|
+
connectInstanceOnboardingJobStatus: import_smithy_client._json
|
|
1074
|
+
});
|
|
1075
|
+
Object.assign(contents, doc);
|
|
1076
|
+
return contents;
|
|
1077
|
+
}, "de_GetInstanceOnboardingJobStatusCommand");
|
|
1078
|
+
var de_GetInstanceOnboardingJobStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1079
|
+
const parsedOutput = {
|
|
1080
|
+
...output,
|
|
1081
|
+
body: await parseErrorBody(output.body, context)
|
|
1082
|
+
};
|
|
1083
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1084
|
+
switch (errorCode) {
|
|
1085
|
+
case "AccessDeniedException":
|
|
1086
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1087
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1088
|
+
case "InternalServerException":
|
|
1089
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1090
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1091
|
+
case "ResourceNotFoundException":
|
|
1092
|
+
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1093
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1094
|
+
case "ValidationException":
|
|
1095
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1096
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1097
|
+
default:
|
|
1098
|
+
const parsedBody = parsedOutput.body;
|
|
1099
|
+
return throwDefaultError({
|
|
1100
|
+
output,
|
|
1101
|
+
parsedBody,
|
|
1102
|
+
errorCode
|
|
1103
|
+
});
|
|
1104
|
+
}
|
|
1105
|
+
}, "de_GetInstanceOnboardingJobStatusCommandError");
|
|
1106
|
+
var de_ListCampaignsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1107
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1108
|
+
return de_ListCampaignsCommandError(output, context);
|
|
1109
|
+
}
|
|
1110
|
+
const contents = (0, import_smithy_client.map)({
|
|
1111
|
+
$metadata: deserializeMetadata(output)
|
|
1112
|
+
});
|
|
1113
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1114
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1115
|
+
campaignSummaryList: import_smithy_client._json,
|
|
1116
|
+
nextToken: import_smithy_client.expectString
|
|
1117
|
+
});
|
|
1118
|
+
Object.assign(contents, doc);
|
|
1119
|
+
return contents;
|
|
1120
|
+
}, "de_ListCampaignsCommand");
|
|
1121
|
+
var de_ListCampaignsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1122
|
+
const parsedOutput = {
|
|
1123
|
+
...output,
|
|
1124
|
+
body: await parseErrorBody(output.body, context)
|
|
1125
|
+
};
|
|
1126
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1127
|
+
switch (errorCode) {
|
|
1128
|
+
case "AccessDeniedException":
|
|
1129
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1130
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1131
|
+
case "InternalServerException":
|
|
1132
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1133
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1134
|
+
case "ValidationException":
|
|
1135
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1136
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1137
|
+
default:
|
|
1138
|
+
const parsedBody = parsedOutput.body;
|
|
1139
|
+
return throwDefaultError({
|
|
1140
|
+
output,
|
|
1141
|
+
parsedBody,
|
|
1142
|
+
errorCode
|
|
1143
|
+
});
|
|
1144
|
+
}
|
|
1145
|
+
}, "de_ListCampaignsCommandError");
|
|
1146
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1147
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1148
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1149
|
+
}
|
|
1150
|
+
const contents = (0, import_smithy_client.map)({
|
|
1151
|
+
$metadata: deserializeMetadata(output)
|
|
1152
|
+
});
|
|
1153
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1154
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1155
|
+
tags: import_smithy_client._json
|
|
1156
|
+
});
|
|
1157
|
+
Object.assign(contents, doc);
|
|
1158
|
+
return contents;
|
|
1159
|
+
}, "de_ListTagsForResourceCommand");
|
|
1160
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1161
|
+
const parsedOutput = {
|
|
1162
|
+
...output,
|
|
1163
|
+
body: await parseErrorBody(output.body, context)
|
|
1164
|
+
};
|
|
1165
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1166
|
+
switch (errorCode) {
|
|
1167
|
+
case "AccessDeniedException":
|
|
1168
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1169
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1170
|
+
case "InternalServerException":
|
|
1171
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1172
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1173
|
+
case "ResourceNotFoundException":
|
|
1174
|
+
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1175
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1176
|
+
case "ThrottlingException":
|
|
1177
|
+
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1178
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1179
|
+
case "ValidationException":
|
|
1180
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1181
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1182
|
+
default:
|
|
1183
|
+
const parsedBody = parsedOutput.body;
|
|
1184
|
+
return throwDefaultError({
|
|
1185
|
+
output,
|
|
1186
|
+
parsedBody,
|
|
1187
|
+
errorCode
|
|
1188
|
+
});
|
|
1189
|
+
}
|
|
1190
|
+
}, "de_ListTagsForResourceCommandError");
|
|
1191
|
+
var de_PauseCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1192
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1193
|
+
return de_PauseCampaignCommandError(output, context);
|
|
1194
|
+
}
|
|
1195
|
+
const contents = (0, import_smithy_client.map)({
|
|
1196
|
+
$metadata: deserializeMetadata(output)
|
|
1197
|
+
});
|
|
1198
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1199
|
+
return contents;
|
|
1200
|
+
}, "de_PauseCampaignCommand");
|
|
1201
|
+
var de_PauseCampaignCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1202
|
+
const parsedOutput = {
|
|
1203
|
+
...output,
|
|
1204
|
+
body: await parseErrorBody(output.body, context)
|
|
1205
|
+
};
|
|
1206
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1207
|
+
switch (errorCode) {
|
|
1208
|
+
case "AccessDeniedException":
|
|
1209
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1210
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1211
|
+
case "ConflictException":
|
|
1212
|
+
case "com.amazonaws.connectcampaigns#ConflictException":
|
|
1213
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1214
|
+
case "InternalServerException":
|
|
1215
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1216
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1217
|
+
case "InvalidCampaignStateException":
|
|
1218
|
+
case "com.amazonaws.connectcampaigns#InvalidCampaignStateException":
|
|
1219
|
+
throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context);
|
|
1220
|
+
case "ResourceNotFoundException":
|
|
1221
|
+
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1222
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1223
|
+
case "ThrottlingException":
|
|
1224
|
+
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1225
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1226
|
+
case "ValidationException":
|
|
1227
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1228
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1229
|
+
default:
|
|
1230
|
+
const parsedBody = parsedOutput.body;
|
|
1231
|
+
return throwDefaultError({
|
|
1232
|
+
output,
|
|
1233
|
+
parsedBody,
|
|
1234
|
+
errorCode
|
|
1235
|
+
});
|
|
1236
|
+
}
|
|
1237
|
+
}, "de_PauseCampaignCommandError");
|
|
1238
|
+
var de_PutDialRequestBatchCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1239
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1240
|
+
return de_PutDialRequestBatchCommandError(output, context);
|
|
1241
|
+
}
|
|
1242
|
+
const contents = (0, import_smithy_client.map)({
|
|
1243
|
+
$metadata: deserializeMetadata(output)
|
|
1244
|
+
});
|
|
1245
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1246
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1247
|
+
failedRequests: import_smithy_client._json,
|
|
1248
|
+
successfulRequests: import_smithy_client._json
|
|
1249
|
+
});
|
|
1250
|
+
Object.assign(contents, doc);
|
|
1251
|
+
return contents;
|
|
1252
|
+
}, "de_PutDialRequestBatchCommand");
|
|
1253
|
+
var de_PutDialRequestBatchCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1254
|
+
const parsedOutput = {
|
|
1255
|
+
...output,
|
|
1256
|
+
body: await parseErrorBody(output.body, context)
|
|
1257
|
+
};
|
|
1258
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1259
|
+
switch (errorCode) {
|
|
1260
|
+
case "AccessDeniedException":
|
|
1261
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1262
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1263
|
+
case "ConflictException":
|
|
1264
|
+
case "com.amazonaws.connectcampaigns#ConflictException":
|
|
1265
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1266
|
+
case "InternalServerException":
|
|
1267
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1268
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1269
|
+
case "InvalidCampaignStateException":
|
|
1270
|
+
case "com.amazonaws.connectcampaigns#InvalidCampaignStateException":
|
|
1271
|
+
throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context);
|
|
1272
|
+
case "ResourceNotFoundException":
|
|
1273
|
+
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1274
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1275
|
+
case "ThrottlingException":
|
|
1276
|
+
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1277
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1278
|
+
case "ValidationException":
|
|
1279
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1280
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1281
|
+
default:
|
|
1282
|
+
const parsedBody = parsedOutput.body;
|
|
1283
|
+
return throwDefaultError({
|
|
1284
|
+
output,
|
|
1285
|
+
parsedBody,
|
|
1286
|
+
errorCode
|
|
1287
|
+
});
|
|
1288
|
+
}
|
|
1289
|
+
}, "de_PutDialRequestBatchCommandError");
|
|
1290
|
+
var de_ResumeCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1291
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1292
|
+
return de_ResumeCampaignCommandError(output, context);
|
|
1293
|
+
}
|
|
1294
|
+
const contents = (0, import_smithy_client.map)({
|
|
1295
|
+
$metadata: deserializeMetadata(output)
|
|
1296
|
+
});
|
|
1297
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1298
|
+
return contents;
|
|
1299
|
+
}, "de_ResumeCampaignCommand");
|
|
1300
|
+
var de_ResumeCampaignCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1301
|
+
const parsedOutput = {
|
|
1302
|
+
...output,
|
|
1303
|
+
body: await parseErrorBody(output.body, context)
|
|
1304
|
+
};
|
|
1305
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1306
|
+
switch (errorCode) {
|
|
1307
|
+
case "AccessDeniedException":
|
|
1308
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1309
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1310
|
+
case "ConflictException":
|
|
1311
|
+
case "com.amazonaws.connectcampaigns#ConflictException":
|
|
1312
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1313
|
+
case "InternalServerException":
|
|
1314
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1315
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1316
|
+
case "InvalidCampaignStateException":
|
|
1317
|
+
case "com.amazonaws.connectcampaigns#InvalidCampaignStateException":
|
|
1318
|
+
throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context);
|
|
1319
|
+
case "ResourceNotFoundException":
|
|
1320
|
+
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1321
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1322
|
+
case "ThrottlingException":
|
|
1323
|
+
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1324
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1325
|
+
case "ValidationException":
|
|
1326
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1327
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1328
|
+
default:
|
|
1329
|
+
const parsedBody = parsedOutput.body;
|
|
1330
|
+
return throwDefaultError({
|
|
1331
|
+
output,
|
|
1332
|
+
parsedBody,
|
|
1333
|
+
errorCode
|
|
1334
|
+
});
|
|
1335
|
+
}
|
|
1336
|
+
}, "de_ResumeCampaignCommandError");
|
|
1337
|
+
var de_StartCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1338
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1339
|
+
return de_StartCampaignCommandError(output, context);
|
|
1340
|
+
}
|
|
1341
|
+
const contents = (0, import_smithy_client.map)({
|
|
1342
|
+
$metadata: deserializeMetadata(output)
|
|
1343
|
+
});
|
|
1344
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1345
|
+
return contents;
|
|
1346
|
+
}, "de_StartCampaignCommand");
|
|
1347
|
+
var de_StartCampaignCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1348
|
+
const parsedOutput = {
|
|
1349
|
+
...output,
|
|
1350
|
+
body: await parseErrorBody(output.body, context)
|
|
1351
|
+
};
|
|
1352
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1353
|
+
switch (errorCode) {
|
|
1354
|
+
case "AccessDeniedException":
|
|
1355
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1356
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1357
|
+
case "ConflictException":
|
|
1358
|
+
case "com.amazonaws.connectcampaigns#ConflictException":
|
|
1359
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1360
|
+
case "InternalServerException":
|
|
1361
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1362
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1363
|
+
case "InvalidCampaignStateException":
|
|
1364
|
+
case "com.amazonaws.connectcampaigns#InvalidCampaignStateException":
|
|
1365
|
+
throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context);
|
|
1366
|
+
case "ResourceNotFoundException":
|
|
1367
|
+
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1368
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1369
|
+
case "ThrottlingException":
|
|
1370
|
+
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1371
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1372
|
+
case "ValidationException":
|
|
1373
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1374
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1375
|
+
default:
|
|
1376
|
+
const parsedBody = parsedOutput.body;
|
|
1377
|
+
return throwDefaultError({
|
|
1378
|
+
output,
|
|
1379
|
+
parsedBody,
|
|
1380
|
+
errorCode
|
|
1381
|
+
});
|
|
1382
|
+
}
|
|
1383
|
+
}, "de_StartCampaignCommandError");
|
|
1384
|
+
var de_StartInstanceOnboardingJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1385
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1386
|
+
return de_StartInstanceOnboardingJobCommandError(output, context);
|
|
1387
|
+
}
|
|
1388
|
+
const contents = (0, import_smithy_client.map)({
|
|
1389
|
+
$metadata: deserializeMetadata(output)
|
|
1390
|
+
});
|
|
1391
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1392
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1393
|
+
connectInstanceOnboardingJobStatus: import_smithy_client._json
|
|
1394
|
+
});
|
|
1395
|
+
Object.assign(contents, doc);
|
|
1396
|
+
return contents;
|
|
1397
|
+
}, "de_StartInstanceOnboardingJobCommand");
|
|
1398
|
+
var de_StartInstanceOnboardingJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1399
|
+
const parsedOutput = {
|
|
1400
|
+
...output,
|
|
1401
|
+
body: await parseErrorBody(output.body, context)
|
|
1402
|
+
};
|
|
1403
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1404
|
+
switch (errorCode) {
|
|
1405
|
+
case "AccessDeniedException":
|
|
1406
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1407
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1408
|
+
case "ConflictException":
|
|
1409
|
+
case "com.amazonaws.connectcampaigns#ConflictException":
|
|
1410
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1411
|
+
case "InternalServerException":
|
|
1412
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1413
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1414
|
+
case "ResourceNotFoundException":
|
|
1415
|
+
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1416
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1417
|
+
case "ThrottlingException":
|
|
1418
|
+
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1419
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1420
|
+
case "ValidationException":
|
|
1421
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1422
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1423
|
+
default:
|
|
1424
|
+
const parsedBody = parsedOutput.body;
|
|
1425
|
+
return throwDefaultError({
|
|
1426
|
+
output,
|
|
1427
|
+
parsedBody,
|
|
1428
|
+
errorCode
|
|
1429
|
+
});
|
|
1430
|
+
}
|
|
1431
|
+
}, "de_StartInstanceOnboardingJobCommandError");
|
|
1432
|
+
var de_StopCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1433
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1434
|
+
return de_StopCampaignCommandError(output, context);
|
|
1435
|
+
}
|
|
1436
|
+
const contents = (0, import_smithy_client.map)({
|
|
1437
|
+
$metadata: deserializeMetadata(output)
|
|
1438
|
+
});
|
|
1439
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1440
|
+
return contents;
|
|
1441
|
+
}, "de_StopCampaignCommand");
|
|
1442
|
+
var de_StopCampaignCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1443
|
+
const parsedOutput = {
|
|
1444
|
+
...output,
|
|
1445
|
+
body: await parseErrorBody(output.body, context)
|
|
1446
|
+
};
|
|
1447
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1448
|
+
switch (errorCode) {
|
|
1449
|
+
case "AccessDeniedException":
|
|
1450
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1451
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1452
|
+
case "ConflictException":
|
|
1453
|
+
case "com.amazonaws.connectcampaigns#ConflictException":
|
|
1454
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1455
|
+
case "InternalServerException":
|
|
1456
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1457
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1458
|
+
case "InvalidCampaignStateException":
|
|
1459
|
+
case "com.amazonaws.connectcampaigns#InvalidCampaignStateException":
|
|
1460
|
+
throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context);
|
|
1461
|
+
case "ResourceNotFoundException":
|
|
1462
|
+
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1463
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1464
|
+
case "ThrottlingException":
|
|
1465
|
+
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1466
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1467
|
+
case "ValidationException":
|
|
1468
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1469
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1470
|
+
default:
|
|
1471
|
+
const parsedBody = parsedOutput.body;
|
|
1472
|
+
return throwDefaultError({
|
|
1473
|
+
output,
|
|
1474
|
+
parsedBody,
|
|
1475
|
+
errorCode
|
|
1476
|
+
});
|
|
1477
|
+
}
|
|
1478
|
+
}, "de_StopCampaignCommandError");
|
|
1479
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1480
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1481
|
+
return de_TagResourceCommandError(output, context);
|
|
1482
|
+
}
|
|
1483
|
+
const contents = (0, import_smithy_client.map)({
|
|
1484
|
+
$metadata: deserializeMetadata(output)
|
|
1485
|
+
});
|
|
1486
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1487
|
+
return contents;
|
|
1488
|
+
}, "de_TagResourceCommand");
|
|
1489
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1490
|
+
const parsedOutput = {
|
|
1491
|
+
...output,
|
|
1492
|
+
body: await parseErrorBody(output.body, context)
|
|
1493
|
+
};
|
|
1494
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1495
|
+
switch (errorCode) {
|
|
1496
|
+
case "AccessDeniedException":
|
|
1497
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1498
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1499
|
+
case "InternalServerException":
|
|
1500
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1501
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1502
|
+
case "ResourceNotFoundException":
|
|
1503
|
+
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1504
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1505
|
+
case "ThrottlingException":
|
|
1506
|
+
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1507
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1508
|
+
case "ValidationException":
|
|
1509
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1510
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1511
|
+
default:
|
|
1512
|
+
const parsedBody = parsedOutput.body;
|
|
1513
|
+
return throwDefaultError({
|
|
1514
|
+
output,
|
|
1515
|
+
parsedBody,
|
|
1516
|
+
errorCode
|
|
1517
|
+
});
|
|
1518
|
+
}
|
|
1519
|
+
}, "de_TagResourceCommandError");
|
|
1520
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1521
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1522
|
+
return de_UntagResourceCommandError(output, context);
|
|
1523
|
+
}
|
|
1524
|
+
const contents = (0, import_smithy_client.map)({
|
|
1525
|
+
$metadata: deserializeMetadata(output)
|
|
1526
|
+
});
|
|
1527
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1528
|
+
return contents;
|
|
1529
|
+
}, "de_UntagResourceCommand");
|
|
1530
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1531
|
+
const parsedOutput = {
|
|
1532
|
+
...output,
|
|
1533
|
+
body: await parseErrorBody(output.body, context)
|
|
1534
|
+
};
|
|
1535
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1536
|
+
switch (errorCode) {
|
|
1537
|
+
case "AccessDeniedException":
|
|
1538
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1539
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1540
|
+
case "InternalServerException":
|
|
1541
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1542
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1543
|
+
case "ResourceNotFoundException":
|
|
1544
|
+
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1545
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1546
|
+
case "ThrottlingException":
|
|
1547
|
+
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1548
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1549
|
+
case "ValidationException":
|
|
1550
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1551
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1552
|
+
default:
|
|
1553
|
+
const parsedBody = parsedOutput.body;
|
|
1554
|
+
return throwDefaultError({
|
|
1555
|
+
output,
|
|
1556
|
+
parsedBody,
|
|
1557
|
+
errorCode
|
|
1558
|
+
});
|
|
1559
|
+
}
|
|
1560
|
+
}, "de_UntagResourceCommandError");
|
|
1561
|
+
var de_UpdateCampaignDialerConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1562
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1563
|
+
return de_UpdateCampaignDialerConfigCommandError(output, context);
|
|
1564
|
+
}
|
|
1565
|
+
const contents = (0, import_smithy_client.map)({
|
|
1566
|
+
$metadata: deserializeMetadata(output)
|
|
1567
|
+
});
|
|
1568
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1569
|
+
return contents;
|
|
1570
|
+
}, "de_UpdateCampaignDialerConfigCommand");
|
|
1571
|
+
var de_UpdateCampaignDialerConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1572
|
+
const parsedOutput = {
|
|
1573
|
+
...output,
|
|
1574
|
+
body: await parseErrorBody(output.body, context)
|
|
1575
|
+
};
|
|
1576
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1577
|
+
switch (errorCode) {
|
|
1578
|
+
case "AccessDeniedException":
|
|
1579
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1580
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1581
|
+
case "ConflictException":
|
|
1582
|
+
case "com.amazonaws.connectcampaigns#ConflictException":
|
|
1583
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1584
|
+
case "InternalServerException":
|
|
1585
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1586
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1587
|
+
case "ResourceNotFoundException":
|
|
1588
|
+
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1589
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1590
|
+
case "ValidationException":
|
|
1591
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1592
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1593
|
+
default:
|
|
1594
|
+
const parsedBody = parsedOutput.body;
|
|
1595
|
+
return throwDefaultError({
|
|
1596
|
+
output,
|
|
1597
|
+
parsedBody,
|
|
1598
|
+
errorCode
|
|
1599
|
+
});
|
|
1600
|
+
}
|
|
1601
|
+
}, "de_UpdateCampaignDialerConfigCommandError");
|
|
1602
|
+
var de_UpdateCampaignNameCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1603
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1604
|
+
return de_UpdateCampaignNameCommandError(output, context);
|
|
1605
|
+
}
|
|
1606
|
+
const contents = (0, import_smithy_client.map)({
|
|
1607
|
+
$metadata: deserializeMetadata(output)
|
|
1608
|
+
});
|
|
1609
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1610
|
+
return contents;
|
|
1611
|
+
}, "de_UpdateCampaignNameCommand");
|
|
1612
|
+
var de_UpdateCampaignNameCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1613
|
+
const parsedOutput = {
|
|
1614
|
+
...output,
|
|
1615
|
+
body: await parseErrorBody(output.body, context)
|
|
1616
|
+
};
|
|
1617
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1618
|
+
switch (errorCode) {
|
|
1619
|
+
case "AccessDeniedException":
|
|
1620
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1621
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1622
|
+
case "ConflictException":
|
|
1623
|
+
case "com.amazonaws.connectcampaigns#ConflictException":
|
|
1624
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1625
|
+
case "InternalServerException":
|
|
1626
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1627
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1628
|
+
case "ResourceNotFoundException":
|
|
1629
|
+
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1630
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1631
|
+
case "ValidationException":
|
|
1632
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1633
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1634
|
+
default:
|
|
1635
|
+
const parsedBody = parsedOutput.body;
|
|
1636
|
+
return throwDefaultError({
|
|
1637
|
+
output,
|
|
1638
|
+
parsedBody,
|
|
1639
|
+
errorCode
|
|
1640
|
+
});
|
|
1641
|
+
}
|
|
1642
|
+
}, "de_UpdateCampaignNameCommandError");
|
|
1643
|
+
var de_UpdateCampaignOutboundCallConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1644
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1645
|
+
return de_UpdateCampaignOutboundCallConfigCommandError(output, context);
|
|
1646
|
+
}
|
|
1647
|
+
const contents = (0, import_smithy_client.map)({
|
|
1648
|
+
$metadata: deserializeMetadata(output)
|
|
1649
|
+
});
|
|
1650
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1651
|
+
return contents;
|
|
1652
|
+
}, "de_UpdateCampaignOutboundCallConfigCommand");
|
|
1653
|
+
var de_UpdateCampaignOutboundCallConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1654
|
+
const parsedOutput = {
|
|
1655
|
+
...output,
|
|
1656
|
+
body: await parseErrorBody(output.body, context)
|
|
1657
|
+
};
|
|
1658
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1659
|
+
switch (errorCode) {
|
|
1660
|
+
case "AccessDeniedException":
|
|
1661
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1662
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1663
|
+
case "ConflictException":
|
|
1664
|
+
case "com.amazonaws.connectcampaigns#ConflictException":
|
|
1665
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1666
|
+
case "InternalServerException":
|
|
1667
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1668
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1669
|
+
case "ResourceNotFoundException":
|
|
1670
|
+
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1671
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1672
|
+
case "ThrottlingException":
|
|
1673
|
+
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1674
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1675
|
+
case "ValidationException":
|
|
1676
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1677
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1678
|
+
default:
|
|
1679
|
+
const parsedBody = parsedOutput.body;
|
|
1680
|
+
return throwDefaultError({
|
|
1681
|
+
output,
|
|
1682
|
+
parsedBody,
|
|
1683
|
+
errorCode
|
|
1684
|
+
});
|
|
1685
|
+
}
|
|
1686
|
+
}, "de_UpdateCampaignOutboundCallConfigCommandError");
|
|
1687
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(ConnectCampaignsServiceException);
|
|
1688
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1689
|
+
const contents = (0, import_smithy_client.map)({
|
|
1690
|
+
[_xAET]: [, parsedOutput.headers[_xae]]
|
|
1691
|
+
});
|
|
1692
|
+
const data = parsedOutput.body;
|
|
1693
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1694
|
+
message: import_smithy_client.expectString
|
|
1695
|
+
});
|
|
1696
|
+
Object.assign(contents, doc);
|
|
1697
|
+
const exception = new AccessDeniedException({
|
|
1698
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1699
|
+
...contents
|
|
1700
|
+
});
|
|
1701
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1702
|
+
}, "de_AccessDeniedExceptionRes");
|
|
1703
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1704
|
+
const contents = (0, import_smithy_client.map)({
|
|
1705
|
+
[_xAET]: [, parsedOutput.headers[_xae]]
|
|
1706
|
+
});
|
|
1707
|
+
const data = parsedOutput.body;
|
|
1708
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1709
|
+
message: import_smithy_client.expectString
|
|
1710
|
+
});
|
|
1711
|
+
Object.assign(contents, doc);
|
|
1712
|
+
const exception = new ConflictException({
|
|
1713
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1714
|
+
...contents
|
|
1715
|
+
});
|
|
1716
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1717
|
+
}, "de_ConflictExceptionRes");
|
|
1718
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1719
|
+
const contents = (0, import_smithy_client.map)({
|
|
1720
|
+
[_xAET]: [, parsedOutput.headers[_xae]]
|
|
1721
|
+
});
|
|
1722
|
+
const data = parsedOutput.body;
|
|
1723
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1724
|
+
message: import_smithy_client.expectString
|
|
1725
|
+
});
|
|
1726
|
+
Object.assign(contents, doc);
|
|
1727
|
+
const exception = new InternalServerException({
|
|
1728
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1729
|
+
...contents
|
|
1730
|
+
});
|
|
1731
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1732
|
+
}, "de_InternalServerExceptionRes");
|
|
1733
|
+
var de_InvalidCampaignStateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1734
|
+
const contents = (0, import_smithy_client.map)({
|
|
1735
|
+
[_xAET]: [, parsedOutput.headers[_xae]]
|
|
1736
|
+
});
|
|
1737
|
+
const data = parsedOutput.body;
|
|
1738
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1739
|
+
message: import_smithy_client.expectString,
|
|
1740
|
+
state: import_smithy_client.expectString
|
|
1741
|
+
});
|
|
1742
|
+
Object.assign(contents, doc);
|
|
1743
|
+
const exception = new InvalidCampaignStateException({
|
|
1744
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1745
|
+
...contents
|
|
1746
|
+
});
|
|
1747
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1748
|
+
}, "de_InvalidCampaignStateExceptionRes");
|
|
1749
|
+
var de_InvalidStateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1750
|
+
const contents = (0, import_smithy_client.map)({
|
|
1751
|
+
[_xAET]: [, parsedOutput.headers[_xae]]
|
|
1752
|
+
});
|
|
1753
|
+
const data = parsedOutput.body;
|
|
1754
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1755
|
+
message: import_smithy_client.expectString
|
|
1756
|
+
});
|
|
1757
|
+
Object.assign(contents, doc);
|
|
1758
|
+
const exception = new InvalidStateException({
|
|
1759
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1760
|
+
...contents
|
|
1761
|
+
});
|
|
1762
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1763
|
+
}, "de_InvalidStateExceptionRes");
|
|
1764
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1765
|
+
const contents = (0, import_smithy_client.map)({
|
|
1766
|
+
[_xAET]: [, parsedOutput.headers[_xae]]
|
|
1767
|
+
});
|
|
1768
|
+
const data = parsedOutput.body;
|
|
1769
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1770
|
+
message: import_smithy_client.expectString
|
|
1771
|
+
});
|
|
1772
|
+
Object.assign(contents, doc);
|
|
1773
|
+
const exception = new ResourceNotFoundException({
|
|
1774
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1775
|
+
...contents
|
|
1776
|
+
});
|
|
1777
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1778
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1779
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1780
|
+
const contents = (0, import_smithy_client.map)({
|
|
1781
|
+
[_xAET]: [, parsedOutput.headers[_xae]]
|
|
1782
|
+
});
|
|
1783
|
+
const data = parsedOutput.body;
|
|
1784
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1785
|
+
message: import_smithy_client.expectString
|
|
1786
|
+
});
|
|
1787
|
+
Object.assign(contents, doc);
|
|
1788
|
+
const exception = new ServiceQuotaExceededException({
|
|
1789
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1790
|
+
...contents
|
|
1791
|
+
});
|
|
1792
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1793
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1794
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1795
|
+
const contents = (0, import_smithy_client.map)({
|
|
1796
|
+
[_xAET]: [, parsedOutput.headers[_xae]]
|
|
1797
|
+
});
|
|
1798
|
+
const data = parsedOutput.body;
|
|
1799
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1800
|
+
message: import_smithy_client.expectString
|
|
1801
|
+
});
|
|
1802
|
+
Object.assign(contents, doc);
|
|
1803
|
+
const exception = new ThrottlingException({
|
|
1804
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1805
|
+
...contents
|
|
1806
|
+
});
|
|
1807
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1808
|
+
}, "de_ThrottlingExceptionRes");
|
|
1809
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1810
|
+
const contents = (0, import_smithy_client.map)({
|
|
1811
|
+
[_xAET]: [, parsedOutput.headers[_xae]]
|
|
1812
|
+
});
|
|
1813
|
+
const data = parsedOutput.body;
|
|
1814
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1815
|
+
message: import_smithy_client.expectString
|
|
1816
|
+
});
|
|
1817
|
+
Object.assign(contents, doc);
|
|
1818
|
+
const exception = new ValidationException({
|
|
1819
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1820
|
+
...contents
|
|
1821
|
+
});
|
|
1822
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1823
|
+
}, "de_ValidationExceptionRes");
|
|
1824
|
+
var se_AgentlessDialerConfig = /* @__PURE__ */ __name((input, context) => {
|
|
1825
|
+
return (0, import_smithy_client.take)(input, {
|
|
1826
|
+
dialingCapacity: import_smithy_client.serializeFloat
|
|
1827
|
+
});
|
|
1828
|
+
}, "se_AgentlessDialerConfig");
|
|
1829
|
+
var se_DialerConfig = /* @__PURE__ */ __name((input, context) => {
|
|
1830
|
+
return DialerConfig.visit(input, {
|
|
1831
|
+
agentlessDialerConfig: (value) => ({ agentlessDialerConfig: se_AgentlessDialerConfig(value, context) }),
|
|
1832
|
+
predictiveDialerConfig: (value) => ({ predictiveDialerConfig: se_PredictiveDialerConfig(value, context) }),
|
|
1833
|
+
progressiveDialerConfig: (value) => ({ progressiveDialerConfig: se_ProgressiveDialerConfig(value, context) }),
|
|
1834
|
+
_: (name, value) => ({ name: value })
|
|
1835
|
+
});
|
|
1836
|
+
}, "se_DialerConfig");
|
|
1837
|
+
var se_DialRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1838
|
+
return (0, import_smithy_client.take)(input, {
|
|
1839
|
+
attributes: import_smithy_client._json,
|
|
1840
|
+
clientToken: [],
|
|
1841
|
+
expirationTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
1842
|
+
phoneNumber: []
|
|
1843
|
+
});
|
|
1844
|
+
}, "se_DialRequest");
|
|
1845
|
+
var se_DialRequestList = /* @__PURE__ */ __name((input, context) => {
|
|
1846
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
1847
|
+
return se_DialRequest(entry, context);
|
|
1848
|
+
});
|
|
1849
|
+
}, "se_DialRequestList");
|
|
1850
|
+
var se_PredictiveDialerConfig = /* @__PURE__ */ __name((input, context) => {
|
|
1851
|
+
return (0, import_smithy_client.take)(input, {
|
|
1852
|
+
bandwidthAllocation: import_smithy_client.serializeFloat,
|
|
1853
|
+
dialingCapacity: import_smithy_client.serializeFloat
|
|
1854
|
+
});
|
|
1855
|
+
}, "se_PredictiveDialerConfig");
|
|
1856
|
+
var se_ProgressiveDialerConfig = /* @__PURE__ */ __name((input, context) => {
|
|
1857
|
+
return (0, import_smithy_client.take)(input, {
|
|
1858
|
+
bandwidthAllocation: import_smithy_client.serializeFloat,
|
|
1859
|
+
dialingCapacity: import_smithy_client.serializeFloat
|
|
1860
|
+
});
|
|
1861
|
+
}, "se_ProgressiveDialerConfig");
|
|
1862
|
+
var de_AgentlessDialerConfig = /* @__PURE__ */ __name((output, context) => {
|
|
1863
|
+
return (0, import_smithy_client.take)(output, {
|
|
1864
|
+
dialingCapacity: import_smithy_client.limitedParseDouble
|
|
1865
|
+
});
|
|
1866
|
+
}, "de_AgentlessDialerConfig");
|
|
1867
|
+
var de_Campaign = /* @__PURE__ */ __name((output, context) => {
|
|
1868
|
+
return (0, import_smithy_client.take)(output, {
|
|
1869
|
+
arn: import_smithy_client.expectString,
|
|
1870
|
+
connectInstanceId: import_smithy_client.expectString,
|
|
1871
|
+
dialerConfig: (_) => de_DialerConfig((0, import_core.awsExpectUnion)(_), context),
|
|
1872
|
+
id: import_smithy_client.expectString,
|
|
1873
|
+
name: import_smithy_client.expectString,
|
|
1874
|
+
outboundCallConfig: import_smithy_client._json,
|
|
1875
|
+
tags: import_smithy_client._json
|
|
1876
|
+
});
|
|
1877
|
+
}, "de_Campaign");
|
|
1878
|
+
var de_DialerConfig = /* @__PURE__ */ __name((output, context) => {
|
|
1879
|
+
if (output.agentlessDialerConfig != null) {
|
|
1880
|
+
return {
|
|
1881
|
+
agentlessDialerConfig: de_AgentlessDialerConfig(output.agentlessDialerConfig, context)
|
|
1882
|
+
};
|
|
1883
|
+
}
|
|
1884
|
+
if (output.predictiveDialerConfig != null) {
|
|
1885
|
+
return {
|
|
1886
|
+
predictiveDialerConfig: de_PredictiveDialerConfig(output.predictiveDialerConfig, context)
|
|
1887
|
+
};
|
|
1888
|
+
}
|
|
1889
|
+
if (output.progressiveDialerConfig != null) {
|
|
1890
|
+
return {
|
|
1891
|
+
progressiveDialerConfig: de_ProgressiveDialerConfig(output.progressiveDialerConfig, context)
|
|
1892
|
+
};
|
|
1893
|
+
}
|
|
1894
|
+
return { $unknown: Object.entries(output)[0] };
|
|
1895
|
+
}, "de_DialerConfig");
|
|
1896
|
+
var de_PredictiveDialerConfig = /* @__PURE__ */ __name((output, context) => {
|
|
1897
|
+
return (0, import_smithy_client.take)(output, {
|
|
1898
|
+
bandwidthAllocation: import_smithy_client.limitedParseDouble,
|
|
1899
|
+
dialingCapacity: import_smithy_client.limitedParseDouble
|
|
1900
|
+
});
|
|
1901
|
+
}, "de_PredictiveDialerConfig");
|
|
1902
|
+
var de_ProgressiveDialerConfig = /* @__PURE__ */ __name((output, context) => {
|
|
1903
|
+
return (0, import_smithy_client.take)(output, {
|
|
1904
|
+
bandwidthAllocation: import_smithy_client.limitedParseDouble,
|
|
1905
|
+
dialingCapacity: import_smithy_client.limitedParseDouble
|
|
1906
|
+
});
|
|
1907
|
+
}, "de_ProgressiveDialerConfig");
|
|
1908
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1909
|
+
httpStatusCode: output.statusCode,
|
|
1910
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1911
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1912
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1913
|
+
}), "deserializeMetadata");
|
|
1914
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1915
|
+
var _tK = "tagKeys";
|
|
1916
|
+
var _xAET = "xAmzErrorType";
|
|
1917
|
+
var _xae = "x-amzn-errortype";
|
|
1918
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1919
|
+
if (encoded.length) {
|
|
1920
|
+
return JSON.parse(encoded);
|
|
1921
|
+
}
|
|
1922
|
+
return {};
|
|
1923
|
+
}), "parseBody");
|
|
1924
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1925
|
+
const value = await parseBody(errorBody, context);
|
|
1926
|
+
value.message = value.message ?? value.Message;
|
|
1927
|
+
return value;
|
|
1928
|
+
}, "parseErrorBody");
|
|
1929
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1930
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1931
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1932
|
+
let cleanValue = rawValue;
|
|
1933
|
+
if (typeof cleanValue === "number") {
|
|
1934
|
+
cleanValue = cleanValue.toString();
|
|
1935
|
+
}
|
|
1936
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1937
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1938
|
+
}
|
|
1939
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1940
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1941
|
+
}
|
|
1942
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1943
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1944
|
+
}
|
|
1945
|
+
return cleanValue;
|
|
1946
|
+
}, "sanitizeErrorCode");
|
|
1947
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1948
|
+
if (headerKey !== void 0) {
|
|
1949
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1950
|
+
}
|
|
1951
|
+
if (data.code !== void 0) {
|
|
1952
|
+
return sanitizeErrorCode(data.code);
|
|
1953
|
+
}
|
|
1954
|
+
if (data["__type"] !== void 0) {
|
|
1955
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1956
|
+
}
|
|
1957
|
+
}, "loadRestJsonErrorCode");
|
|
1958
|
+
|
|
1959
|
+
// src/commands/CreateCampaignCommand.ts
|
|
1960
|
+
var _CreateCampaignCommand = class _CreateCampaignCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1961
|
+
...commonParams
|
|
1962
|
+
}).m(function(Command, cs, config, o) {
|
|
1963
|
+
return [
|
|
1964
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1965
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1966
|
+
];
|
|
1967
|
+
}).s("AmazonConnectCampaignService", "CreateCampaign", {}).n("ConnectCampaignsClient", "CreateCampaignCommand").f(void 0, void 0).ser(se_CreateCampaignCommand).de(de_CreateCampaignCommand).build() {
|
|
1968
|
+
};
|
|
1969
|
+
__name(_CreateCampaignCommand, "CreateCampaignCommand");
|
|
1970
|
+
var CreateCampaignCommand = _CreateCampaignCommand;
|
|
1971
|
+
|
|
1972
|
+
// src/commands/DeleteCampaignCommand.ts
|
|
1973
|
+
|
|
1974
|
+
|
|
1975
|
+
|
|
1976
|
+
|
|
1977
|
+
var _DeleteCampaignCommand = class _DeleteCampaignCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1978
|
+
...commonParams
|
|
1979
|
+
}).m(function(Command, cs, config, o) {
|
|
1980
|
+
return [
|
|
1981
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1982
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1983
|
+
];
|
|
1984
|
+
}).s("AmazonConnectCampaignService", "DeleteCampaign", {}).n("ConnectCampaignsClient", "DeleteCampaignCommand").f(void 0, void 0).ser(se_DeleteCampaignCommand).de(de_DeleteCampaignCommand).build() {
|
|
1985
|
+
};
|
|
1986
|
+
__name(_DeleteCampaignCommand, "DeleteCampaignCommand");
|
|
1987
|
+
var DeleteCampaignCommand = _DeleteCampaignCommand;
|
|
1988
|
+
|
|
1989
|
+
// src/commands/DeleteConnectInstanceConfigCommand.ts
|
|
1990
|
+
|
|
1991
|
+
|
|
1992
|
+
|
|
1993
|
+
|
|
1994
|
+
var _DeleteConnectInstanceConfigCommand = class _DeleteConnectInstanceConfigCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1995
|
+
...commonParams
|
|
1996
|
+
}).m(function(Command, cs, config, o) {
|
|
1997
|
+
return [
|
|
1998
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1999
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2000
|
+
];
|
|
2001
|
+
}).s("AmazonConnectCampaignService", "DeleteConnectInstanceConfig", {}).n("ConnectCampaignsClient", "DeleteConnectInstanceConfigCommand").f(void 0, void 0).ser(se_DeleteConnectInstanceConfigCommand).de(de_DeleteConnectInstanceConfigCommand).build() {
|
|
2002
|
+
};
|
|
2003
|
+
__name(_DeleteConnectInstanceConfigCommand, "DeleteConnectInstanceConfigCommand");
|
|
2004
|
+
var DeleteConnectInstanceConfigCommand = _DeleteConnectInstanceConfigCommand;
|
|
2005
|
+
|
|
2006
|
+
// src/commands/DeleteInstanceOnboardingJobCommand.ts
|
|
2007
|
+
|
|
2008
|
+
|
|
2009
|
+
|
|
2010
|
+
|
|
2011
|
+
var _DeleteInstanceOnboardingJobCommand = class _DeleteInstanceOnboardingJobCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2012
|
+
...commonParams
|
|
2013
|
+
}).m(function(Command, cs, config, o) {
|
|
2014
|
+
return [
|
|
2015
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2016
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2017
|
+
];
|
|
2018
|
+
}).s("AmazonConnectCampaignService", "DeleteInstanceOnboardingJob", {}).n("ConnectCampaignsClient", "DeleteInstanceOnboardingJobCommand").f(void 0, void 0).ser(se_DeleteInstanceOnboardingJobCommand).de(de_DeleteInstanceOnboardingJobCommand).build() {
|
|
2019
|
+
};
|
|
2020
|
+
__name(_DeleteInstanceOnboardingJobCommand, "DeleteInstanceOnboardingJobCommand");
|
|
2021
|
+
var DeleteInstanceOnboardingJobCommand = _DeleteInstanceOnboardingJobCommand;
|
|
2022
|
+
|
|
2023
|
+
// src/commands/DescribeCampaignCommand.ts
|
|
2024
|
+
|
|
2025
|
+
|
|
2026
|
+
|
|
2027
|
+
|
|
2028
|
+
var _DescribeCampaignCommand = class _DescribeCampaignCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2029
|
+
...commonParams
|
|
2030
|
+
}).m(function(Command, cs, config, o) {
|
|
2031
|
+
return [
|
|
2032
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2033
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2034
|
+
];
|
|
2035
|
+
}).s("AmazonConnectCampaignService", "DescribeCampaign", {}).n("ConnectCampaignsClient", "DescribeCampaignCommand").f(void 0, void 0).ser(se_DescribeCampaignCommand).de(de_DescribeCampaignCommand).build() {
|
|
2036
|
+
};
|
|
2037
|
+
__name(_DescribeCampaignCommand, "DescribeCampaignCommand");
|
|
2038
|
+
var DescribeCampaignCommand = _DescribeCampaignCommand;
|
|
2039
|
+
|
|
2040
|
+
// src/commands/GetCampaignStateBatchCommand.ts
|
|
2041
|
+
|
|
2042
|
+
|
|
2043
|
+
|
|
2044
|
+
|
|
2045
|
+
var _GetCampaignStateBatchCommand = class _GetCampaignStateBatchCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2046
|
+
...commonParams
|
|
2047
|
+
}).m(function(Command, cs, config, o) {
|
|
2048
|
+
return [
|
|
2049
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2050
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2051
|
+
];
|
|
2052
|
+
}).s("AmazonConnectCampaignService", "GetCampaignStateBatch", {}).n("ConnectCampaignsClient", "GetCampaignStateBatchCommand").f(void 0, void 0).ser(se_GetCampaignStateBatchCommand).de(de_GetCampaignStateBatchCommand).build() {
|
|
2053
|
+
};
|
|
2054
|
+
__name(_GetCampaignStateBatchCommand, "GetCampaignStateBatchCommand");
|
|
2055
|
+
var GetCampaignStateBatchCommand = _GetCampaignStateBatchCommand;
|
|
2056
|
+
|
|
2057
|
+
// src/commands/GetCampaignStateCommand.ts
|
|
2058
|
+
|
|
2059
|
+
|
|
2060
|
+
|
|
2061
|
+
|
|
2062
|
+
var _GetCampaignStateCommand = class _GetCampaignStateCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2063
|
+
...commonParams
|
|
2064
|
+
}).m(function(Command, cs, config, o) {
|
|
2065
|
+
return [
|
|
2066
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2067
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2068
|
+
];
|
|
2069
|
+
}).s("AmazonConnectCampaignService", "GetCampaignState", {}).n("ConnectCampaignsClient", "GetCampaignStateCommand").f(void 0, void 0).ser(se_GetCampaignStateCommand).de(de_GetCampaignStateCommand).build() {
|
|
2070
|
+
};
|
|
2071
|
+
__name(_GetCampaignStateCommand, "GetCampaignStateCommand");
|
|
2072
|
+
var GetCampaignStateCommand = _GetCampaignStateCommand;
|
|
2073
|
+
|
|
2074
|
+
// src/commands/GetConnectInstanceConfigCommand.ts
|
|
2075
|
+
|
|
2076
|
+
|
|
2077
|
+
|
|
2078
|
+
|
|
2079
|
+
var _GetConnectInstanceConfigCommand = class _GetConnectInstanceConfigCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2080
|
+
...commonParams
|
|
2081
|
+
}).m(function(Command, cs, config, o) {
|
|
2082
|
+
return [
|
|
2083
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2084
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2085
|
+
];
|
|
2086
|
+
}).s("AmazonConnectCampaignService", "GetConnectInstanceConfig", {}).n("ConnectCampaignsClient", "GetConnectInstanceConfigCommand").f(void 0, void 0).ser(se_GetConnectInstanceConfigCommand).de(de_GetConnectInstanceConfigCommand).build() {
|
|
2087
|
+
};
|
|
2088
|
+
__name(_GetConnectInstanceConfigCommand, "GetConnectInstanceConfigCommand");
|
|
2089
|
+
var GetConnectInstanceConfigCommand = _GetConnectInstanceConfigCommand;
|
|
2090
|
+
|
|
2091
|
+
// src/commands/GetInstanceOnboardingJobStatusCommand.ts
|
|
2092
|
+
|
|
2093
|
+
|
|
2094
|
+
|
|
2095
|
+
|
|
2096
|
+
var _GetInstanceOnboardingJobStatusCommand = class _GetInstanceOnboardingJobStatusCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2097
|
+
...commonParams
|
|
2098
|
+
}).m(function(Command, cs, config, o) {
|
|
2099
|
+
return [
|
|
2100
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2101
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2102
|
+
];
|
|
2103
|
+
}).s("AmazonConnectCampaignService", "GetInstanceOnboardingJobStatus", {}).n("ConnectCampaignsClient", "GetInstanceOnboardingJobStatusCommand").f(void 0, void 0).ser(se_GetInstanceOnboardingJobStatusCommand).de(de_GetInstanceOnboardingJobStatusCommand).build() {
|
|
2104
|
+
};
|
|
2105
|
+
__name(_GetInstanceOnboardingJobStatusCommand, "GetInstanceOnboardingJobStatusCommand");
|
|
2106
|
+
var GetInstanceOnboardingJobStatusCommand = _GetInstanceOnboardingJobStatusCommand;
|
|
2107
|
+
|
|
2108
|
+
// src/commands/ListCampaignsCommand.ts
|
|
2109
|
+
|
|
2110
|
+
|
|
2111
|
+
|
|
2112
|
+
|
|
2113
|
+
var _ListCampaignsCommand = class _ListCampaignsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2114
|
+
...commonParams
|
|
2115
|
+
}).m(function(Command, cs, config, o) {
|
|
2116
|
+
return [
|
|
2117
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2118
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2119
|
+
];
|
|
2120
|
+
}).s("AmazonConnectCampaignService", "ListCampaigns", {}).n("ConnectCampaignsClient", "ListCampaignsCommand").f(void 0, void 0).ser(se_ListCampaignsCommand).de(de_ListCampaignsCommand).build() {
|
|
2121
|
+
};
|
|
2122
|
+
__name(_ListCampaignsCommand, "ListCampaignsCommand");
|
|
2123
|
+
var ListCampaignsCommand = _ListCampaignsCommand;
|
|
2124
|
+
|
|
2125
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
2126
|
+
|
|
2127
|
+
|
|
2128
|
+
|
|
2129
|
+
|
|
2130
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2131
|
+
...commonParams
|
|
2132
|
+
}).m(function(Command, cs, config, o) {
|
|
2133
|
+
return [
|
|
2134
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2135
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2136
|
+
];
|
|
2137
|
+
}).s("AmazonConnectCampaignService", "ListTagsForResource", {}).n("ConnectCampaignsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
2138
|
+
};
|
|
2139
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
2140
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
2141
|
+
|
|
2142
|
+
// src/commands/PauseCampaignCommand.ts
|
|
2143
|
+
|
|
2144
|
+
|
|
2145
|
+
|
|
2146
|
+
|
|
2147
|
+
var _PauseCampaignCommand = class _PauseCampaignCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2148
|
+
...commonParams
|
|
2149
|
+
}).m(function(Command, cs, config, o) {
|
|
2150
|
+
return [
|
|
2151
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2152
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2153
|
+
];
|
|
2154
|
+
}).s("AmazonConnectCampaignService", "PauseCampaign", {}).n("ConnectCampaignsClient", "PauseCampaignCommand").f(void 0, void 0).ser(se_PauseCampaignCommand).de(de_PauseCampaignCommand).build() {
|
|
2155
|
+
};
|
|
2156
|
+
__name(_PauseCampaignCommand, "PauseCampaignCommand");
|
|
2157
|
+
var PauseCampaignCommand = _PauseCampaignCommand;
|
|
2158
|
+
|
|
2159
|
+
// src/commands/PutDialRequestBatchCommand.ts
|
|
2160
|
+
|
|
2161
|
+
|
|
2162
|
+
|
|
2163
|
+
|
|
2164
|
+
var _PutDialRequestBatchCommand = class _PutDialRequestBatchCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2165
|
+
...commonParams
|
|
2166
|
+
}).m(function(Command, cs, config, o) {
|
|
2167
|
+
return [
|
|
2168
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2169
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2170
|
+
];
|
|
2171
|
+
}).s("AmazonConnectCampaignService", "PutDialRequestBatch", {}).n("ConnectCampaignsClient", "PutDialRequestBatchCommand").f(PutDialRequestBatchRequestFilterSensitiveLog, void 0).ser(se_PutDialRequestBatchCommand).de(de_PutDialRequestBatchCommand).build() {
|
|
2172
|
+
};
|
|
2173
|
+
__name(_PutDialRequestBatchCommand, "PutDialRequestBatchCommand");
|
|
2174
|
+
var PutDialRequestBatchCommand = _PutDialRequestBatchCommand;
|
|
2175
|
+
|
|
2176
|
+
// src/commands/ResumeCampaignCommand.ts
|
|
2177
|
+
|
|
2178
|
+
|
|
2179
|
+
|
|
2180
|
+
|
|
2181
|
+
var _ResumeCampaignCommand = class _ResumeCampaignCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2182
|
+
...commonParams
|
|
2183
|
+
}).m(function(Command, cs, config, o) {
|
|
2184
|
+
return [
|
|
2185
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2186
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2187
|
+
];
|
|
2188
|
+
}).s("AmazonConnectCampaignService", "ResumeCampaign", {}).n("ConnectCampaignsClient", "ResumeCampaignCommand").f(void 0, void 0).ser(se_ResumeCampaignCommand).de(de_ResumeCampaignCommand).build() {
|
|
2189
|
+
};
|
|
2190
|
+
__name(_ResumeCampaignCommand, "ResumeCampaignCommand");
|
|
2191
|
+
var ResumeCampaignCommand = _ResumeCampaignCommand;
|
|
2192
|
+
|
|
2193
|
+
// src/commands/StartCampaignCommand.ts
|
|
2194
|
+
|
|
2195
|
+
|
|
2196
|
+
|
|
2197
|
+
|
|
2198
|
+
var _StartCampaignCommand = class _StartCampaignCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2199
|
+
...commonParams
|
|
2200
|
+
}).m(function(Command, cs, config, o) {
|
|
2201
|
+
return [
|
|
2202
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2203
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2204
|
+
];
|
|
2205
|
+
}).s("AmazonConnectCampaignService", "StartCampaign", {}).n("ConnectCampaignsClient", "StartCampaignCommand").f(void 0, void 0).ser(se_StartCampaignCommand).de(de_StartCampaignCommand).build() {
|
|
2206
|
+
};
|
|
2207
|
+
__name(_StartCampaignCommand, "StartCampaignCommand");
|
|
2208
|
+
var StartCampaignCommand = _StartCampaignCommand;
|
|
2209
|
+
|
|
2210
|
+
// src/commands/StartInstanceOnboardingJobCommand.ts
|
|
2211
|
+
|
|
2212
|
+
|
|
2213
|
+
|
|
2214
|
+
|
|
2215
|
+
var _StartInstanceOnboardingJobCommand = class _StartInstanceOnboardingJobCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2216
|
+
...commonParams
|
|
2217
|
+
}).m(function(Command, cs, config, o) {
|
|
2218
|
+
return [
|
|
2219
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2220
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2221
|
+
];
|
|
2222
|
+
}).s("AmazonConnectCampaignService", "StartInstanceOnboardingJob", {}).n("ConnectCampaignsClient", "StartInstanceOnboardingJobCommand").f(void 0, void 0).ser(se_StartInstanceOnboardingJobCommand).de(de_StartInstanceOnboardingJobCommand).build() {
|
|
2223
|
+
};
|
|
2224
|
+
__name(_StartInstanceOnboardingJobCommand, "StartInstanceOnboardingJobCommand");
|
|
2225
|
+
var StartInstanceOnboardingJobCommand = _StartInstanceOnboardingJobCommand;
|
|
2226
|
+
|
|
2227
|
+
// src/commands/StopCampaignCommand.ts
|
|
2228
|
+
|
|
2229
|
+
|
|
2230
|
+
|
|
2231
|
+
|
|
2232
|
+
var _StopCampaignCommand = class _StopCampaignCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2233
|
+
...commonParams
|
|
2234
|
+
}).m(function(Command, cs, config, o) {
|
|
2235
|
+
return [
|
|
2236
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2237
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2238
|
+
];
|
|
2239
|
+
}).s("AmazonConnectCampaignService", "StopCampaign", {}).n("ConnectCampaignsClient", "StopCampaignCommand").f(void 0, void 0).ser(se_StopCampaignCommand).de(de_StopCampaignCommand).build() {
|
|
2240
|
+
};
|
|
2241
|
+
__name(_StopCampaignCommand, "StopCampaignCommand");
|
|
2242
|
+
var StopCampaignCommand = _StopCampaignCommand;
|
|
2243
|
+
|
|
2244
|
+
// src/commands/TagResourceCommand.ts
|
|
2245
|
+
|
|
2246
|
+
|
|
2247
|
+
|
|
2248
|
+
|
|
2249
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2250
|
+
...commonParams
|
|
2251
|
+
}).m(function(Command, cs, config, o) {
|
|
2252
|
+
return [
|
|
2253
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2254
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2255
|
+
];
|
|
2256
|
+
}).s("AmazonConnectCampaignService", "TagResource", {}).n("ConnectCampaignsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
2257
|
+
};
|
|
2258
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
2259
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
2260
|
+
|
|
2261
|
+
// src/commands/UntagResourceCommand.ts
|
|
2262
|
+
|
|
2263
|
+
|
|
2264
|
+
|
|
2265
|
+
|
|
2266
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2267
|
+
...commonParams
|
|
2268
|
+
}).m(function(Command, cs, config, o) {
|
|
2269
|
+
return [
|
|
2270
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2271
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2272
|
+
];
|
|
2273
|
+
}).s("AmazonConnectCampaignService", "UntagResource", {}).n("ConnectCampaignsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
2274
|
+
};
|
|
2275
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
2276
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
2277
|
+
|
|
2278
|
+
// src/commands/UpdateCampaignDialerConfigCommand.ts
|
|
2279
|
+
|
|
2280
|
+
|
|
2281
|
+
|
|
2282
|
+
|
|
2283
|
+
var _UpdateCampaignDialerConfigCommand = class _UpdateCampaignDialerConfigCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2284
|
+
...commonParams
|
|
2285
|
+
}).m(function(Command, cs, config, o) {
|
|
2286
|
+
return [
|
|
2287
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2288
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2289
|
+
];
|
|
2290
|
+
}).s("AmazonConnectCampaignService", "UpdateCampaignDialerConfig", {}).n("ConnectCampaignsClient", "UpdateCampaignDialerConfigCommand").f(void 0, void 0).ser(se_UpdateCampaignDialerConfigCommand).de(de_UpdateCampaignDialerConfigCommand).build() {
|
|
2291
|
+
};
|
|
2292
|
+
__name(_UpdateCampaignDialerConfigCommand, "UpdateCampaignDialerConfigCommand");
|
|
2293
|
+
var UpdateCampaignDialerConfigCommand = _UpdateCampaignDialerConfigCommand;
|
|
2294
|
+
|
|
2295
|
+
// src/commands/UpdateCampaignNameCommand.ts
|
|
2296
|
+
|
|
2297
|
+
|
|
2298
|
+
|
|
2299
|
+
|
|
2300
|
+
var _UpdateCampaignNameCommand = class _UpdateCampaignNameCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2301
|
+
...commonParams
|
|
2302
|
+
}).m(function(Command, cs, config, o) {
|
|
2303
|
+
return [
|
|
2304
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2305
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2306
|
+
];
|
|
2307
|
+
}).s("AmazonConnectCampaignService", "UpdateCampaignName", {}).n("ConnectCampaignsClient", "UpdateCampaignNameCommand").f(void 0, void 0).ser(se_UpdateCampaignNameCommand).de(de_UpdateCampaignNameCommand).build() {
|
|
2308
|
+
};
|
|
2309
|
+
__name(_UpdateCampaignNameCommand, "UpdateCampaignNameCommand");
|
|
2310
|
+
var UpdateCampaignNameCommand = _UpdateCampaignNameCommand;
|
|
2311
|
+
|
|
2312
|
+
// src/commands/UpdateCampaignOutboundCallConfigCommand.ts
|
|
2313
|
+
|
|
2314
|
+
|
|
2315
|
+
|
|
2316
|
+
|
|
2317
|
+
var _UpdateCampaignOutboundCallConfigCommand = class _UpdateCampaignOutboundCallConfigCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2318
|
+
...commonParams
|
|
2319
|
+
}).m(function(Command, cs, config, o) {
|
|
2320
|
+
return [
|
|
2321
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2322
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2323
|
+
];
|
|
2324
|
+
}).s("AmazonConnectCampaignService", "UpdateCampaignOutboundCallConfig", {}).n("ConnectCampaignsClient", "UpdateCampaignOutboundCallConfigCommand").f(void 0, void 0).ser(se_UpdateCampaignOutboundCallConfigCommand).de(de_UpdateCampaignOutboundCallConfigCommand).build() {
|
|
2325
|
+
};
|
|
2326
|
+
__name(_UpdateCampaignOutboundCallConfigCommand, "UpdateCampaignOutboundCallConfigCommand");
|
|
2327
|
+
var UpdateCampaignOutboundCallConfigCommand = _UpdateCampaignOutboundCallConfigCommand;
|
|
2328
|
+
|
|
2329
|
+
// src/ConnectCampaigns.ts
|
|
2330
|
+
var commands = {
|
|
2331
|
+
CreateCampaignCommand,
|
|
2332
|
+
DeleteCampaignCommand,
|
|
2333
|
+
DeleteConnectInstanceConfigCommand,
|
|
2334
|
+
DeleteInstanceOnboardingJobCommand,
|
|
2335
|
+
DescribeCampaignCommand,
|
|
2336
|
+
GetCampaignStateCommand,
|
|
2337
|
+
GetCampaignStateBatchCommand,
|
|
2338
|
+
GetConnectInstanceConfigCommand,
|
|
2339
|
+
GetInstanceOnboardingJobStatusCommand,
|
|
2340
|
+
ListCampaignsCommand,
|
|
2341
|
+
ListTagsForResourceCommand,
|
|
2342
|
+
PauseCampaignCommand,
|
|
2343
|
+
PutDialRequestBatchCommand,
|
|
2344
|
+
ResumeCampaignCommand,
|
|
2345
|
+
StartCampaignCommand,
|
|
2346
|
+
StartInstanceOnboardingJobCommand,
|
|
2347
|
+
StopCampaignCommand,
|
|
2348
|
+
TagResourceCommand,
|
|
2349
|
+
UntagResourceCommand,
|
|
2350
|
+
UpdateCampaignDialerConfigCommand,
|
|
2351
|
+
UpdateCampaignNameCommand,
|
|
2352
|
+
UpdateCampaignOutboundCallConfigCommand
|
|
2353
|
+
};
|
|
2354
|
+
var _ConnectCampaigns = class _ConnectCampaigns extends ConnectCampaignsClient {
|
|
2355
|
+
};
|
|
2356
|
+
__name(_ConnectCampaigns, "ConnectCampaigns");
|
|
2357
|
+
var ConnectCampaigns = _ConnectCampaigns;
|
|
2358
|
+
(0, import_smithy_client.createAggregatedClient)(commands, ConnectCampaigns);
|
|
2359
|
+
|
|
2360
|
+
// src/pagination/ListCampaignsPaginator.ts
|
|
2361
|
+
var import_core3 = require("@smithy/core");
|
|
2362
|
+
var paginateListCampaigns = (0, import_core3.createPaginator)(ConnectCampaignsClient, ListCampaignsCommand, "nextToken", "nextToken", "maxResults");
|
|
2363
|
+
|
|
2364
|
+
// src/index.ts
|
|
2365
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
2366
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
2367
|
+
0 && (module.exports = {
|
|
2368
|
+
AccessDeniedException,
|
|
2369
|
+
CampaignState,
|
|
2370
|
+
ConflictException,
|
|
2371
|
+
ConnectCampaigns,
|
|
2372
|
+
ConnectCampaignsClient,
|
|
2373
|
+
ConnectCampaignsServiceException,
|
|
2374
|
+
CreateCampaignCommand,
|
|
2375
|
+
DeleteCampaignCommand,
|
|
2376
|
+
DeleteConnectInstanceConfigCommand,
|
|
2377
|
+
DeleteInstanceOnboardingJobCommand,
|
|
2378
|
+
DescribeCampaignCommand,
|
|
2379
|
+
DialRequestFilterSensitiveLog,
|
|
2380
|
+
DialerConfig,
|
|
2381
|
+
EncryptionType,
|
|
2382
|
+
FailureCode,
|
|
2383
|
+
GetCampaignStateBatchCommand,
|
|
2384
|
+
GetCampaignStateBatchFailureCode,
|
|
2385
|
+
GetCampaignStateCommand,
|
|
2386
|
+
GetConnectInstanceConfigCommand,
|
|
2387
|
+
GetInstanceOnboardingJobStatusCommand,
|
|
2388
|
+
InstanceIdFilterOperator,
|
|
2389
|
+
InstanceOnboardingJobFailureCode,
|
|
2390
|
+
InstanceOnboardingJobStatusCode,
|
|
2391
|
+
InternalServerException,
|
|
2392
|
+
InvalidCampaignStateException,
|
|
2393
|
+
InvalidStateException,
|
|
2394
|
+
ListCampaignsCommand,
|
|
2395
|
+
ListTagsForResourceCommand,
|
|
2396
|
+
PauseCampaignCommand,
|
|
2397
|
+
PutDialRequestBatchCommand,
|
|
2398
|
+
PutDialRequestBatchRequestFilterSensitiveLog,
|
|
2399
|
+
ResourceNotFoundException,
|
|
2400
|
+
ResumeCampaignCommand,
|
|
2401
|
+
ServiceQuotaExceededException,
|
|
2402
|
+
StartCampaignCommand,
|
|
2403
|
+
StartInstanceOnboardingJobCommand,
|
|
2404
|
+
StopCampaignCommand,
|
|
2405
|
+
TagResourceCommand,
|
|
2406
|
+
ThrottlingException,
|
|
2407
|
+
UntagResourceCommand,
|
|
2408
|
+
UpdateCampaignDialerConfigCommand,
|
|
2409
|
+
UpdateCampaignNameCommand,
|
|
2410
|
+
UpdateCampaignOutboundCallConfigCommand,
|
|
2411
|
+
ValidationException,
|
|
2412
|
+
__Client,
|
|
2413
|
+
paginateListCampaigns
|
|
2414
|
+
});
|