@aws-sdk/client-connectcampaigns 3.901.0 → 3.906.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/index.js +1517 -1741
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -1,1778 +1,1554 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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(index_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_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
78
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
79
|
-
var import_core = require("@smithy/core");
|
|
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
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
85
|
-
|
|
86
|
-
// src/endpoint/EndpointParameters.ts
|
|
87
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
88
|
-
return Object.assign(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" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "connect-campaigns",
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
99
32
|
};
|
|
100
33
|
|
|
101
|
-
|
|
102
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
71
|
+
};
|
|
103
72
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
108
78
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
79
|
+
class ConnectCampaignsClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultConnectCampaignsHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
137
107
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
143
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
144
|
-
credentials: config.credentials()
|
|
145
|
-
};
|
|
146
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
147
|
-
|
|
148
|
-
// src/runtimeExtensions.ts
|
|
149
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
150
|
-
const extensionConfiguration = Object.assign(
|
|
151
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
152
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
153
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
154
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
155
|
-
);
|
|
156
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
157
|
-
return Object.assign(
|
|
158
|
-
runtimeConfig,
|
|
159
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
160
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
161
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
162
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
163
|
-
);
|
|
164
|
-
}, "resolveRuntimeExtensions");
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
165
112
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
113
|
+
class ConnectCampaignsServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, ConnectCampaignsServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
class AccessDeniedException extends ConnectCampaignsServiceException {
|
|
121
|
+
name = "AccessDeniedException";
|
|
122
|
+
$fault = "client";
|
|
123
|
+
xAmzErrorType;
|
|
124
|
+
constructor(opts) {
|
|
125
|
+
super({
|
|
126
|
+
name: "AccessDeniedException",
|
|
127
|
+
$fault: "client",
|
|
128
|
+
...opts,
|
|
129
|
+
});
|
|
130
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
131
|
+
this.xAmzErrorType = opts.xAmzErrorType;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
class ConflictException extends ConnectCampaignsServiceException {
|
|
135
|
+
name = "ConflictException";
|
|
136
|
+
$fault = "client";
|
|
137
|
+
xAmzErrorType;
|
|
138
|
+
constructor(opts) {
|
|
139
|
+
super({
|
|
140
|
+
name: "ConflictException",
|
|
141
|
+
$fault: "client",
|
|
142
|
+
...opts,
|
|
143
|
+
});
|
|
144
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
145
|
+
this.xAmzErrorType = opts.xAmzErrorType;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
exports.DialerConfig = void 0;
|
|
149
|
+
(function (DialerConfig) {
|
|
150
|
+
DialerConfig.visit = (value, visitor) => {
|
|
151
|
+
if (value.progressiveDialerConfig !== undefined)
|
|
152
|
+
return visitor.progressiveDialerConfig(value.progressiveDialerConfig);
|
|
153
|
+
if (value.predictiveDialerConfig !== undefined)
|
|
154
|
+
return visitor.predictiveDialerConfig(value.predictiveDialerConfig);
|
|
155
|
+
if (value.agentlessDialerConfig !== undefined)
|
|
156
|
+
return visitor.agentlessDialerConfig(value.agentlessDialerConfig);
|
|
157
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
158
|
+
};
|
|
159
|
+
})(exports.DialerConfig || (exports.DialerConfig = {}));
|
|
160
|
+
class InternalServerException extends ConnectCampaignsServiceException {
|
|
161
|
+
name = "InternalServerException";
|
|
162
|
+
$fault = "server";
|
|
163
|
+
$retryable = {};
|
|
164
|
+
xAmzErrorType;
|
|
165
|
+
constructor(opts) {
|
|
166
|
+
super({
|
|
167
|
+
name: "InternalServerException",
|
|
168
|
+
$fault: "server",
|
|
169
|
+
...opts,
|
|
170
|
+
});
|
|
171
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
172
|
+
this.xAmzErrorType = opts.xAmzErrorType;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
class ResourceNotFoundException extends ConnectCampaignsServiceException {
|
|
176
|
+
name = "ResourceNotFoundException";
|
|
177
|
+
$fault = "client";
|
|
178
|
+
xAmzErrorType;
|
|
179
|
+
constructor(opts) {
|
|
180
|
+
super({
|
|
181
|
+
name: "ResourceNotFoundException",
|
|
182
|
+
$fault: "client",
|
|
183
|
+
...opts,
|
|
184
|
+
});
|
|
185
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
186
|
+
this.xAmzErrorType = opts.xAmzErrorType;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
class ServiceQuotaExceededException extends ConnectCampaignsServiceException {
|
|
190
|
+
name = "ServiceQuotaExceededException";
|
|
191
|
+
$fault = "client";
|
|
192
|
+
xAmzErrorType;
|
|
193
|
+
constructor(opts) {
|
|
194
|
+
super({
|
|
195
|
+
name: "ServiceQuotaExceededException",
|
|
196
|
+
$fault: "client",
|
|
197
|
+
...opts,
|
|
198
|
+
});
|
|
199
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
200
|
+
this.xAmzErrorType = opts.xAmzErrorType;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
class ThrottlingException extends ConnectCampaignsServiceException {
|
|
204
|
+
name = "ThrottlingException";
|
|
205
|
+
$fault = "client";
|
|
206
|
+
$retryable = {};
|
|
207
|
+
xAmzErrorType;
|
|
208
|
+
constructor(opts) {
|
|
209
|
+
super({
|
|
210
|
+
name: "ThrottlingException",
|
|
211
|
+
$fault: "client",
|
|
212
|
+
...opts,
|
|
213
|
+
});
|
|
214
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
215
|
+
this.xAmzErrorType = opts.xAmzErrorType;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
class ValidationException extends ConnectCampaignsServiceException {
|
|
219
|
+
name = "ValidationException";
|
|
220
|
+
$fault = "client";
|
|
221
|
+
xAmzErrorType;
|
|
222
|
+
constructor(opts) {
|
|
223
|
+
super({
|
|
224
|
+
name: "ValidationException",
|
|
225
|
+
$fault: "client",
|
|
226
|
+
...opts,
|
|
227
|
+
});
|
|
228
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
229
|
+
this.xAmzErrorType = opts.xAmzErrorType;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
class InvalidStateException extends ConnectCampaignsServiceException {
|
|
233
|
+
name = "InvalidStateException";
|
|
234
|
+
$fault = "client";
|
|
235
|
+
xAmzErrorType;
|
|
236
|
+
constructor(opts) {
|
|
237
|
+
super({
|
|
238
|
+
name: "InvalidStateException",
|
|
239
|
+
$fault: "client",
|
|
240
|
+
...opts,
|
|
241
|
+
});
|
|
242
|
+
Object.setPrototypeOf(this, InvalidStateException.prototype);
|
|
243
|
+
this.xAmzErrorType = opts.xAmzErrorType;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
const CampaignState = {
|
|
247
|
+
FAILED: "Failed",
|
|
248
|
+
INITIALIZED: "Initialized",
|
|
249
|
+
PAUSED: "Paused",
|
|
250
|
+
RUNNING: "Running",
|
|
251
|
+
STOPPED: "Stopped",
|
|
212
252
|
};
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
// src/commands/CreateCampaignCommand.ts
|
|
218
|
-
|
|
219
|
-
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
// src/protocols/Aws_restJson1.ts
|
|
223
|
-
var import_core2 = require("@aws-sdk/core");
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
// src/models/ConnectCampaignsServiceException.ts
|
|
228
|
-
|
|
229
|
-
var ConnectCampaignsServiceException = class _ConnectCampaignsServiceException extends import_smithy_client.ServiceException {
|
|
230
|
-
static {
|
|
231
|
-
__name(this, "ConnectCampaignsServiceException");
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
* @internal
|
|
235
|
-
*/
|
|
236
|
-
constructor(options) {
|
|
237
|
-
super(options);
|
|
238
|
-
Object.setPrototypeOf(this, _ConnectCampaignsServiceException.prototype);
|
|
239
|
-
}
|
|
253
|
+
const GetCampaignStateBatchFailureCode = {
|
|
254
|
+
RESOURCE_NOT_FOUND: "ResourceNotFound",
|
|
255
|
+
UNKNOWN_ERROR: "UnknownError",
|
|
240
256
|
};
|
|
257
|
+
const EncryptionType = {
|
|
258
|
+
KMS: "KMS",
|
|
259
|
+
};
|
|
260
|
+
const InstanceOnboardingJobFailureCode = {
|
|
261
|
+
EVENT_BRIDGE_ACCESS_DENIED: "EVENT_BRIDGE_ACCESS_DENIED",
|
|
262
|
+
EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED: "EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED",
|
|
263
|
+
IAM_ACCESS_DENIED: "IAM_ACCESS_DENIED",
|
|
264
|
+
INTERNAL_FAILURE: "INTERNAL_FAILURE",
|
|
265
|
+
KMS_ACCESS_DENIED: "KMS_ACCESS_DENIED",
|
|
266
|
+
KMS_KEY_NOT_FOUND: "KMS_KEY_NOT_FOUND",
|
|
267
|
+
};
|
|
268
|
+
const InstanceOnboardingJobStatusCode = {
|
|
269
|
+
FAILED: "FAILED",
|
|
270
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
271
|
+
SUCCEEDED: "SUCCEEDED",
|
|
272
|
+
};
|
|
273
|
+
const InstanceIdFilterOperator = {
|
|
274
|
+
EQ: "Eq",
|
|
275
|
+
};
|
|
276
|
+
class InvalidCampaignStateException extends ConnectCampaignsServiceException {
|
|
277
|
+
name = "InvalidCampaignStateException";
|
|
278
|
+
$fault = "client";
|
|
279
|
+
state;
|
|
280
|
+
xAmzErrorType;
|
|
281
|
+
constructor(opts) {
|
|
282
|
+
super({
|
|
283
|
+
name: "InvalidCampaignStateException",
|
|
284
|
+
$fault: "client",
|
|
285
|
+
...opts,
|
|
286
|
+
});
|
|
287
|
+
Object.setPrototypeOf(this, InvalidCampaignStateException.prototype);
|
|
288
|
+
this.state = opts.state;
|
|
289
|
+
this.xAmzErrorType = opts.xAmzErrorType;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
const FailureCode = {
|
|
293
|
+
INVALID_INPUT: "InvalidInput",
|
|
294
|
+
REQUEST_THROTTLED: "RequestThrottled",
|
|
295
|
+
UNKNOWN_ERROR: "UnknownError",
|
|
296
|
+
};
|
|
297
|
+
const DialRequestFilterSensitiveLog = (obj) => ({
|
|
298
|
+
...obj,
|
|
299
|
+
...(obj.phoneNumber && { phoneNumber: smithyClient.SENSITIVE_STRING }),
|
|
300
|
+
...(obj.attributes && { attributes: smithyClient.SENSITIVE_STRING }),
|
|
301
|
+
});
|
|
302
|
+
const PutDialRequestBatchRequestFilterSensitiveLog = (obj) => ({
|
|
303
|
+
...obj,
|
|
304
|
+
...(obj.dialRequests && { dialRequests: obj.dialRequests.map((item) => DialRequestFilterSensitiveLog(item)) }),
|
|
305
|
+
});
|
|
241
306
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
__name(this, "AccessDeniedException");
|
|
247
|
-
}
|
|
248
|
-
name = "AccessDeniedException";
|
|
249
|
-
$fault = "client";
|
|
250
|
-
/**
|
|
251
|
-
* A header that defines the error encountered while processing the request.
|
|
252
|
-
* @public
|
|
253
|
-
*/
|
|
254
|
-
xAmzErrorType;
|
|
255
|
-
/**
|
|
256
|
-
* @internal
|
|
257
|
-
*/
|
|
258
|
-
constructor(opts) {
|
|
259
|
-
super({
|
|
260
|
-
name: "AccessDeniedException",
|
|
261
|
-
$fault: "client",
|
|
262
|
-
...opts
|
|
263
|
-
});
|
|
264
|
-
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
265
|
-
this.xAmzErrorType = opts.xAmzErrorType;
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
|
-
var ConflictException = class _ConflictException extends ConnectCampaignsServiceException {
|
|
269
|
-
static {
|
|
270
|
-
__name(this, "ConflictException");
|
|
271
|
-
}
|
|
272
|
-
name = "ConflictException";
|
|
273
|
-
$fault = "client";
|
|
274
|
-
/**
|
|
275
|
-
* A header that defines the error encountered while processing the request.
|
|
276
|
-
* @public
|
|
277
|
-
*/
|
|
278
|
-
xAmzErrorType;
|
|
279
|
-
/**
|
|
280
|
-
* @internal
|
|
281
|
-
*/
|
|
282
|
-
constructor(opts) {
|
|
283
|
-
super({
|
|
284
|
-
name: "ConflictException",
|
|
285
|
-
$fault: "client",
|
|
286
|
-
...opts
|
|
287
|
-
});
|
|
288
|
-
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
289
|
-
this.xAmzErrorType = opts.xAmzErrorType;
|
|
290
|
-
}
|
|
291
|
-
};
|
|
292
|
-
var DialerConfig;
|
|
293
|
-
((DialerConfig2) => {
|
|
294
|
-
DialerConfig2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
295
|
-
if (value.progressiveDialerConfig !== void 0)
|
|
296
|
-
return visitor.progressiveDialerConfig(value.progressiveDialerConfig);
|
|
297
|
-
if (value.predictiveDialerConfig !== void 0) return visitor.predictiveDialerConfig(value.predictiveDialerConfig);
|
|
298
|
-
if (value.agentlessDialerConfig !== void 0) return visitor.agentlessDialerConfig(value.agentlessDialerConfig);
|
|
299
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
300
|
-
}, "visit");
|
|
301
|
-
})(DialerConfig || (DialerConfig = {}));
|
|
302
|
-
var InternalServerException = class _InternalServerException extends ConnectCampaignsServiceException {
|
|
303
|
-
static {
|
|
304
|
-
__name(this, "InternalServerException");
|
|
305
|
-
}
|
|
306
|
-
name = "InternalServerException";
|
|
307
|
-
$fault = "server";
|
|
308
|
-
$retryable = {};
|
|
309
|
-
/**
|
|
310
|
-
* A header that defines the error encountered while processing the request.
|
|
311
|
-
* @public
|
|
312
|
-
*/
|
|
313
|
-
xAmzErrorType;
|
|
314
|
-
/**
|
|
315
|
-
* @internal
|
|
316
|
-
*/
|
|
317
|
-
constructor(opts) {
|
|
318
|
-
super({
|
|
319
|
-
name: "InternalServerException",
|
|
320
|
-
$fault: "server",
|
|
321
|
-
...opts
|
|
322
|
-
});
|
|
323
|
-
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
324
|
-
this.xAmzErrorType = opts.xAmzErrorType;
|
|
325
|
-
}
|
|
326
|
-
};
|
|
327
|
-
var ResourceNotFoundException = class _ResourceNotFoundException extends ConnectCampaignsServiceException {
|
|
328
|
-
static {
|
|
329
|
-
__name(this, "ResourceNotFoundException");
|
|
330
|
-
}
|
|
331
|
-
name = "ResourceNotFoundException";
|
|
332
|
-
$fault = "client";
|
|
333
|
-
/**
|
|
334
|
-
* A header that defines the error encountered while processing the request.
|
|
335
|
-
* @public
|
|
336
|
-
*/
|
|
337
|
-
xAmzErrorType;
|
|
338
|
-
/**
|
|
339
|
-
* @internal
|
|
340
|
-
*/
|
|
341
|
-
constructor(opts) {
|
|
342
|
-
super({
|
|
343
|
-
name: "ResourceNotFoundException",
|
|
344
|
-
$fault: "client",
|
|
345
|
-
...opts
|
|
346
|
-
});
|
|
347
|
-
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
348
|
-
this.xAmzErrorType = opts.xAmzErrorType;
|
|
349
|
-
}
|
|
350
|
-
};
|
|
351
|
-
var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends ConnectCampaignsServiceException {
|
|
352
|
-
static {
|
|
353
|
-
__name(this, "ServiceQuotaExceededException");
|
|
354
|
-
}
|
|
355
|
-
name = "ServiceQuotaExceededException";
|
|
356
|
-
$fault = "client";
|
|
357
|
-
/**
|
|
358
|
-
* A header that defines the error encountered while processing the request.
|
|
359
|
-
* @public
|
|
360
|
-
*/
|
|
361
|
-
xAmzErrorType;
|
|
362
|
-
/**
|
|
363
|
-
* @internal
|
|
364
|
-
*/
|
|
365
|
-
constructor(opts) {
|
|
366
|
-
super({
|
|
367
|
-
name: "ServiceQuotaExceededException",
|
|
368
|
-
$fault: "client",
|
|
369
|
-
...opts
|
|
370
|
-
});
|
|
371
|
-
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
372
|
-
this.xAmzErrorType = opts.xAmzErrorType;
|
|
373
|
-
}
|
|
374
|
-
};
|
|
375
|
-
var ThrottlingException = class _ThrottlingException extends ConnectCampaignsServiceException {
|
|
376
|
-
static {
|
|
377
|
-
__name(this, "ThrottlingException");
|
|
378
|
-
}
|
|
379
|
-
name = "ThrottlingException";
|
|
380
|
-
$fault = "client";
|
|
381
|
-
$retryable = {};
|
|
382
|
-
/**
|
|
383
|
-
* A header that defines the error encountered while processing the request.
|
|
384
|
-
* @public
|
|
385
|
-
*/
|
|
386
|
-
xAmzErrorType;
|
|
387
|
-
/**
|
|
388
|
-
* @internal
|
|
389
|
-
*/
|
|
390
|
-
constructor(opts) {
|
|
391
|
-
super({
|
|
392
|
-
name: "ThrottlingException",
|
|
393
|
-
$fault: "client",
|
|
394
|
-
...opts
|
|
395
|
-
});
|
|
396
|
-
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
397
|
-
this.xAmzErrorType = opts.xAmzErrorType;
|
|
398
|
-
}
|
|
399
|
-
};
|
|
400
|
-
var ValidationException = class _ValidationException extends ConnectCampaignsServiceException {
|
|
401
|
-
static {
|
|
402
|
-
__name(this, "ValidationException");
|
|
403
|
-
}
|
|
404
|
-
name = "ValidationException";
|
|
405
|
-
$fault = "client";
|
|
406
|
-
/**
|
|
407
|
-
* A header that defines the error encountered while processing the request.
|
|
408
|
-
* @public
|
|
409
|
-
*/
|
|
410
|
-
xAmzErrorType;
|
|
411
|
-
/**
|
|
412
|
-
* @internal
|
|
413
|
-
*/
|
|
414
|
-
constructor(opts) {
|
|
415
|
-
super({
|
|
416
|
-
name: "ValidationException",
|
|
417
|
-
$fault: "client",
|
|
418
|
-
...opts
|
|
419
|
-
});
|
|
420
|
-
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
421
|
-
this.xAmzErrorType = opts.xAmzErrorType;
|
|
422
|
-
}
|
|
423
|
-
};
|
|
424
|
-
var InvalidStateException = class _InvalidStateException extends ConnectCampaignsServiceException {
|
|
425
|
-
static {
|
|
426
|
-
__name(this, "InvalidStateException");
|
|
427
|
-
}
|
|
428
|
-
name = "InvalidStateException";
|
|
429
|
-
$fault = "client";
|
|
430
|
-
/**
|
|
431
|
-
* A header that defines the error encountered while processing the request.
|
|
432
|
-
* @public
|
|
433
|
-
*/
|
|
434
|
-
xAmzErrorType;
|
|
435
|
-
/**
|
|
436
|
-
* @internal
|
|
437
|
-
*/
|
|
438
|
-
constructor(opts) {
|
|
439
|
-
super({
|
|
440
|
-
name: "InvalidStateException",
|
|
441
|
-
$fault: "client",
|
|
442
|
-
...opts
|
|
443
|
-
});
|
|
444
|
-
Object.setPrototypeOf(this, _InvalidStateException.prototype);
|
|
445
|
-
this.xAmzErrorType = opts.xAmzErrorType;
|
|
446
|
-
}
|
|
447
|
-
};
|
|
448
|
-
var CampaignState = {
|
|
449
|
-
/**
|
|
450
|
-
* Campaign is in failed state
|
|
451
|
-
*/
|
|
452
|
-
FAILED: "Failed",
|
|
453
|
-
/**
|
|
454
|
-
* Campaign is in initialized state
|
|
455
|
-
*/
|
|
456
|
-
INITIALIZED: "Initialized",
|
|
457
|
-
/**
|
|
458
|
-
* Campaign is in paused state
|
|
459
|
-
*/
|
|
460
|
-
PAUSED: "Paused",
|
|
461
|
-
/**
|
|
462
|
-
* Campaign is in running state
|
|
463
|
-
*/
|
|
464
|
-
RUNNING: "Running",
|
|
465
|
-
/**
|
|
466
|
-
* Campaign is in stopped state
|
|
467
|
-
*/
|
|
468
|
-
STOPPED: "Stopped"
|
|
469
|
-
};
|
|
470
|
-
var GetCampaignStateBatchFailureCode = {
|
|
471
|
-
/**
|
|
472
|
-
* The specified resource was not found
|
|
473
|
-
*/
|
|
474
|
-
RESOURCE_NOT_FOUND: "ResourceNotFound",
|
|
475
|
-
/**
|
|
476
|
-
* Unexpected error during processing of request
|
|
477
|
-
*/
|
|
478
|
-
UNKNOWN_ERROR: "UnknownError"
|
|
479
|
-
};
|
|
480
|
-
var EncryptionType = {
|
|
481
|
-
KMS: "KMS"
|
|
482
|
-
};
|
|
483
|
-
var InstanceOnboardingJobFailureCode = {
|
|
484
|
-
EVENT_BRIDGE_ACCESS_DENIED: "EVENT_BRIDGE_ACCESS_DENIED",
|
|
485
|
-
EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED: "EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED",
|
|
486
|
-
IAM_ACCESS_DENIED: "IAM_ACCESS_DENIED",
|
|
487
|
-
INTERNAL_FAILURE: "INTERNAL_FAILURE",
|
|
488
|
-
KMS_ACCESS_DENIED: "KMS_ACCESS_DENIED",
|
|
489
|
-
KMS_KEY_NOT_FOUND: "KMS_KEY_NOT_FOUND"
|
|
490
|
-
};
|
|
491
|
-
var InstanceOnboardingJobStatusCode = {
|
|
492
|
-
FAILED: "FAILED",
|
|
493
|
-
IN_PROGRESS: "IN_PROGRESS",
|
|
494
|
-
SUCCEEDED: "SUCCEEDED"
|
|
495
|
-
};
|
|
496
|
-
var InstanceIdFilterOperator = {
|
|
497
|
-
/**
|
|
498
|
-
* Equals operator
|
|
499
|
-
*/
|
|
500
|
-
EQ: "Eq"
|
|
501
|
-
};
|
|
502
|
-
var InvalidCampaignStateException = class _InvalidCampaignStateException extends ConnectCampaignsServiceException {
|
|
503
|
-
static {
|
|
504
|
-
__name(this, "InvalidCampaignStateException");
|
|
505
|
-
}
|
|
506
|
-
name = "InvalidCampaignStateException";
|
|
507
|
-
$fault = "client";
|
|
508
|
-
/**
|
|
509
|
-
* State of a campaign
|
|
510
|
-
* @public
|
|
511
|
-
*/
|
|
512
|
-
state;
|
|
513
|
-
/**
|
|
514
|
-
* A header that defines the error encountered while processing the request.
|
|
515
|
-
* @public
|
|
516
|
-
*/
|
|
517
|
-
xAmzErrorType;
|
|
518
|
-
/**
|
|
519
|
-
* @internal
|
|
520
|
-
*/
|
|
521
|
-
constructor(opts) {
|
|
522
|
-
super({
|
|
523
|
-
name: "InvalidCampaignStateException",
|
|
524
|
-
$fault: "client",
|
|
525
|
-
...opts
|
|
526
|
-
});
|
|
527
|
-
Object.setPrototypeOf(this, _InvalidCampaignStateException.prototype);
|
|
528
|
-
this.state = opts.state;
|
|
529
|
-
this.xAmzErrorType = opts.xAmzErrorType;
|
|
530
|
-
}
|
|
531
|
-
};
|
|
532
|
-
var FailureCode = {
|
|
533
|
-
/**
|
|
534
|
-
* The request failed to satisfy the constraints specified by the service
|
|
535
|
-
*/
|
|
536
|
-
INVALID_INPUT: "InvalidInput",
|
|
537
|
-
/**
|
|
538
|
-
* Request throttled due to large number of pending dial requests
|
|
539
|
-
*/
|
|
540
|
-
REQUEST_THROTTLED: "RequestThrottled",
|
|
541
|
-
/**
|
|
542
|
-
* Unexpected error during processing of request
|
|
543
|
-
*/
|
|
544
|
-
UNKNOWN_ERROR: "UnknownError"
|
|
545
|
-
};
|
|
546
|
-
var DialRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
547
|
-
...obj,
|
|
548
|
-
...obj.phoneNumber && { phoneNumber: import_smithy_client.SENSITIVE_STRING },
|
|
549
|
-
...obj.attributes && { attributes: import_smithy_client.SENSITIVE_STRING }
|
|
550
|
-
}), "DialRequestFilterSensitiveLog");
|
|
551
|
-
var PutDialRequestBatchRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
552
|
-
...obj,
|
|
553
|
-
...obj.dialRequests && { dialRequests: obj.dialRequests.map((item) => DialRequestFilterSensitiveLog(item)) }
|
|
554
|
-
}), "PutDialRequestBatchRequestFilterSensitiveLog");
|
|
555
|
-
|
|
556
|
-
// src/protocols/Aws_restJson1.ts
|
|
557
|
-
var se_CreateCampaignCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
558
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
559
|
-
const headers = {
|
|
560
|
-
"content-type": "application/json"
|
|
561
|
-
};
|
|
562
|
-
b.bp("/campaigns");
|
|
563
|
-
let body;
|
|
564
|
-
body = JSON.stringify(
|
|
565
|
-
(0, import_smithy_client.take)(input, {
|
|
566
|
-
connectInstanceId: [],
|
|
567
|
-
dialerConfig: /* @__PURE__ */ __name((_) => se_DialerConfig(_, context), "dialerConfig"),
|
|
568
|
-
name: [],
|
|
569
|
-
outboundCallConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "outboundCallConfig"),
|
|
570
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
571
|
-
})
|
|
572
|
-
);
|
|
573
|
-
b.m("PUT").h(headers).b(body);
|
|
574
|
-
return b.build();
|
|
575
|
-
}, "se_CreateCampaignCommand");
|
|
576
|
-
var se_DeleteCampaignCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
577
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
578
|
-
const headers = {};
|
|
579
|
-
b.bp("/campaigns/{id}");
|
|
580
|
-
b.p("id", () => input.id, "{id}", false);
|
|
581
|
-
let body;
|
|
582
|
-
b.m("DELETE").h(headers).b(body);
|
|
583
|
-
return b.build();
|
|
584
|
-
}, "se_DeleteCampaignCommand");
|
|
585
|
-
var se_DeleteConnectInstanceConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
586
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
587
|
-
const headers = {};
|
|
588
|
-
b.bp("/connect-instance/{connectInstanceId}/config");
|
|
589
|
-
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
590
|
-
let body;
|
|
591
|
-
b.m("DELETE").h(headers).b(body);
|
|
592
|
-
return b.build();
|
|
593
|
-
}, "se_DeleteConnectInstanceConfigCommand");
|
|
594
|
-
var se_DeleteInstanceOnboardingJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
595
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
596
|
-
const headers = {};
|
|
597
|
-
b.bp("/connect-instance/{connectInstanceId}/onboarding");
|
|
598
|
-
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
599
|
-
let body;
|
|
600
|
-
b.m("DELETE").h(headers).b(body);
|
|
601
|
-
return b.build();
|
|
602
|
-
}, "se_DeleteInstanceOnboardingJobCommand");
|
|
603
|
-
var se_DescribeCampaignCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
604
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
605
|
-
const headers = {};
|
|
606
|
-
b.bp("/campaigns/{id}");
|
|
607
|
-
b.p("id", () => input.id, "{id}", false);
|
|
608
|
-
let body;
|
|
609
|
-
b.m("GET").h(headers).b(body);
|
|
610
|
-
return b.build();
|
|
611
|
-
}, "se_DescribeCampaignCommand");
|
|
612
|
-
var se_GetCampaignStateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
613
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
614
|
-
const headers = {};
|
|
615
|
-
b.bp("/campaigns/{id}/state");
|
|
616
|
-
b.p("id", () => input.id, "{id}", false);
|
|
617
|
-
let body;
|
|
618
|
-
b.m("GET").h(headers).b(body);
|
|
619
|
-
return b.build();
|
|
620
|
-
}, "se_GetCampaignStateCommand");
|
|
621
|
-
var se_GetCampaignStateBatchCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
622
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
623
|
-
const headers = {
|
|
624
|
-
"content-type": "application/json"
|
|
625
|
-
};
|
|
626
|
-
b.bp("/campaigns-state");
|
|
627
|
-
let body;
|
|
628
|
-
body = JSON.stringify(
|
|
629
|
-
(0, import_smithy_client.take)(input, {
|
|
630
|
-
campaignIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "campaignIds")
|
|
631
|
-
})
|
|
632
|
-
);
|
|
633
|
-
b.m("POST").h(headers).b(body);
|
|
634
|
-
return b.build();
|
|
635
|
-
}, "se_GetCampaignStateBatchCommand");
|
|
636
|
-
var se_GetConnectInstanceConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
637
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
638
|
-
const headers = {};
|
|
639
|
-
b.bp("/connect-instance/{connectInstanceId}/config");
|
|
640
|
-
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
641
|
-
let body;
|
|
642
|
-
b.m("GET").h(headers).b(body);
|
|
643
|
-
return b.build();
|
|
644
|
-
}, "se_GetConnectInstanceConfigCommand");
|
|
645
|
-
var se_GetInstanceOnboardingJobStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
646
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
647
|
-
const headers = {};
|
|
648
|
-
b.bp("/connect-instance/{connectInstanceId}/onboarding");
|
|
649
|
-
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
650
|
-
let body;
|
|
651
|
-
b.m("GET").h(headers).b(body);
|
|
652
|
-
return b.build();
|
|
653
|
-
}, "se_GetInstanceOnboardingJobStatusCommand");
|
|
654
|
-
var se_ListCampaignsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
655
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
656
|
-
const headers = {
|
|
657
|
-
"content-type": "application/json"
|
|
658
|
-
};
|
|
659
|
-
b.bp("/campaigns-summary");
|
|
660
|
-
let body;
|
|
661
|
-
body = JSON.stringify(
|
|
662
|
-
(0, import_smithy_client.take)(input, {
|
|
663
|
-
filters: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "filters"),
|
|
664
|
-
maxResults: [],
|
|
665
|
-
nextToken: []
|
|
666
|
-
})
|
|
667
|
-
);
|
|
668
|
-
b.m("POST").h(headers).b(body);
|
|
669
|
-
return b.build();
|
|
670
|
-
}, "se_ListCampaignsCommand");
|
|
671
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
672
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
673
|
-
const headers = {};
|
|
674
|
-
b.bp("/tags/{arn}");
|
|
675
|
-
b.p("arn", () => input.arn, "{arn}", false);
|
|
676
|
-
let body;
|
|
677
|
-
b.m("GET").h(headers).b(body);
|
|
678
|
-
return b.build();
|
|
679
|
-
}, "se_ListTagsForResourceCommand");
|
|
680
|
-
var se_PauseCampaignCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
681
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
682
|
-
const headers = {};
|
|
683
|
-
b.bp("/campaigns/{id}/pause");
|
|
684
|
-
b.p("id", () => input.id, "{id}", false);
|
|
685
|
-
let body;
|
|
686
|
-
b.m("POST").h(headers).b(body);
|
|
687
|
-
return b.build();
|
|
688
|
-
}, "se_PauseCampaignCommand");
|
|
689
|
-
var se_PutDialRequestBatchCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
690
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
691
|
-
const headers = {
|
|
692
|
-
"content-type": "application/json"
|
|
693
|
-
};
|
|
694
|
-
b.bp("/campaigns/{id}/dial-requests");
|
|
695
|
-
b.p("id", () => input.id, "{id}", false);
|
|
696
|
-
let body;
|
|
697
|
-
body = JSON.stringify(
|
|
698
|
-
(0, import_smithy_client.take)(input, {
|
|
699
|
-
dialRequests: /* @__PURE__ */ __name((_) => se_DialRequestList(_, context), "dialRequests")
|
|
700
|
-
})
|
|
701
|
-
);
|
|
702
|
-
b.m("PUT").h(headers).b(body);
|
|
703
|
-
return b.build();
|
|
704
|
-
}, "se_PutDialRequestBatchCommand");
|
|
705
|
-
var se_ResumeCampaignCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
706
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
707
|
-
const headers = {};
|
|
708
|
-
b.bp("/campaigns/{id}/resume");
|
|
709
|
-
b.p("id", () => input.id, "{id}", false);
|
|
710
|
-
let body;
|
|
711
|
-
b.m("POST").h(headers).b(body);
|
|
712
|
-
return b.build();
|
|
713
|
-
}, "se_ResumeCampaignCommand");
|
|
714
|
-
var se_StartCampaignCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
715
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
716
|
-
const headers = {};
|
|
717
|
-
b.bp("/campaigns/{id}/start");
|
|
718
|
-
b.p("id", () => input.id, "{id}", false);
|
|
719
|
-
let body;
|
|
720
|
-
b.m("POST").h(headers).b(body);
|
|
721
|
-
return b.build();
|
|
722
|
-
}, "se_StartCampaignCommand");
|
|
723
|
-
var se_StartInstanceOnboardingJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
724
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
725
|
-
const headers = {
|
|
726
|
-
"content-type": "application/json"
|
|
727
|
-
};
|
|
728
|
-
b.bp("/connect-instance/{connectInstanceId}/onboarding");
|
|
729
|
-
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
730
|
-
let body;
|
|
731
|
-
body = JSON.stringify(
|
|
732
|
-
(0, import_smithy_client.take)(input, {
|
|
733
|
-
encryptionConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "encryptionConfig")
|
|
734
|
-
})
|
|
735
|
-
);
|
|
736
|
-
b.m("PUT").h(headers).b(body);
|
|
737
|
-
return b.build();
|
|
738
|
-
}, "se_StartInstanceOnboardingJobCommand");
|
|
739
|
-
var se_StopCampaignCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
740
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
741
|
-
const headers = {};
|
|
742
|
-
b.bp("/campaigns/{id}/stop");
|
|
743
|
-
b.p("id", () => input.id, "{id}", false);
|
|
744
|
-
let body;
|
|
745
|
-
b.m("POST").h(headers).b(body);
|
|
746
|
-
return b.build();
|
|
747
|
-
}, "se_StopCampaignCommand");
|
|
748
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
749
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
750
|
-
const headers = {
|
|
751
|
-
"content-type": "application/json"
|
|
752
|
-
};
|
|
753
|
-
b.bp("/tags/{arn}");
|
|
754
|
-
b.p("arn", () => input.arn, "{arn}", false);
|
|
755
|
-
let body;
|
|
756
|
-
body = JSON.stringify(
|
|
757
|
-
(0, import_smithy_client.take)(input, {
|
|
758
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
759
|
-
})
|
|
760
|
-
);
|
|
761
|
-
b.m("POST").h(headers).b(body);
|
|
762
|
-
return b.build();
|
|
763
|
-
}, "se_TagResourceCommand");
|
|
764
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
765
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
766
|
-
const headers = {};
|
|
767
|
-
b.bp("/tags/{arn}");
|
|
768
|
-
b.p("arn", () => input.arn, "{arn}", false);
|
|
769
|
-
const query = (0, import_smithy_client.map)({
|
|
770
|
-
[_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
|
|
771
|
-
});
|
|
772
|
-
let body;
|
|
773
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
774
|
-
return b.build();
|
|
775
|
-
}, "se_UntagResourceCommand");
|
|
776
|
-
var se_UpdateCampaignDialerConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
777
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
778
|
-
const headers = {
|
|
779
|
-
"content-type": "application/json"
|
|
780
|
-
};
|
|
781
|
-
b.bp("/campaigns/{id}/dialer-config");
|
|
782
|
-
b.p("id", () => input.id, "{id}", false);
|
|
783
|
-
let body;
|
|
784
|
-
body = JSON.stringify(
|
|
785
|
-
(0, import_smithy_client.take)(input, {
|
|
786
|
-
dialerConfig: /* @__PURE__ */ __name((_) => se_DialerConfig(_, context), "dialerConfig")
|
|
787
|
-
})
|
|
788
|
-
);
|
|
789
|
-
b.m("POST").h(headers).b(body);
|
|
790
|
-
return b.build();
|
|
791
|
-
}, "se_UpdateCampaignDialerConfigCommand");
|
|
792
|
-
var se_UpdateCampaignNameCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
793
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
794
|
-
const headers = {
|
|
795
|
-
"content-type": "application/json"
|
|
796
|
-
};
|
|
797
|
-
b.bp("/campaigns/{id}/name");
|
|
798
|
-
b.p("id", () => input.id, "{id}", false);
|
|
799
|
-
let body;
|
|
800
|
-
body = JSON.stringify(
|
|
801
|
-
(0, import_smithy_client.take)(input, {
|
|
802
|
-
name: []
|
|
803
|
-
})
|
|
804
|
-
);
|
|
805
|
-
b.m("POST").h(headers).b(body);
|
|
806
|
-
return b.build();
|
|
807
|
-
}, "se_UpdateCampaignNameCommand");
|
|
808
|
-
var se_UpdateCampaignOutboundCallConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
809
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
810
|
-
const headers = {
|
|
811
|
-
"content-type": "application/json"
|
|
812
|
-
};
|
|
813
|
-
b.bp("/campaigns/{id}/outbound-call-config");
|
|
814
|
-
b.p("id", () => input.id, "{id}", false);
|
|
815
|
-
let body;
|
|
816
|
-
body = JSON.stringify(
|
|
817
|
-
(0, import_smithy_client.take)(input, {
|
|
818
|
-
answerMachineDetectionConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "answerMachineDetectionConfig"),
|
|
819
|
-
connectContactFlowId: [],
|
|
820
|
-
connectSourcePhoneNumber: []
|
|
821
|
-
})
|
|
822
|
-
);
|
|
823
|
-
b.m("POST").h(headers).b(body);
|
|
824
|
-
return b.build();
|
|
825
|
-
}, "se_UpdateCampaignOutboundCallConfigCommand");
|
|
826
|
-
var de_CreateCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
827
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
828
|
-
return de_CommandError(output, context);
|
|
829
|
-
}
|
|
830
|
-
const contents = (0, import_smithy_client.map)({
|
|
831
|
-
$metadata: deserializeMetadata(output)
|
|
832
|
-
});
|
|
833
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
834
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
835
|
-
arn: import_smithy_client.expectString,
|
|
836
|
-
id: import_smithy_client.expectString,
|
|
837
|
-
tags: import_smithy_client._json
|
|
838
|
-
});
|
|
839
|
-
Object.assign(contents, doc);
|
|
840
|
-
return contents;
|
|
841
|
-
}, "de_CreateCampaignCommand");
|
|
842
|
-
var de_DeleteCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
843
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
844
|
-
return de_CommandError(output, context);
|
|
845
|
-
}
|
|
846
|
-
const contents = (0, import_smithy_client.map)({
|
|
847
|
-
$metadata: deserializeMetadata(output)
|
|
848
|
-
});
|
|
849
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
850
|
-
return contents;
|
|
851
|
-
}, "de_DeleteCampaignCommand");
|
|
852
|
-
var de_DeleteConnectInstanceConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
853
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
854
|
-
return de_CommandError(output, context);
|
|
855
|
-
}
|
|
856
|
-
const contents = (0, import_smithy_client.map)({
|
|
857
|
-
$metadata: deserializeMetadata(output)
|
|
858
|
-
});
|
|
859
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
860
|
-
return contents;
|
|
861
|
-
}, "de_DeleteConnectInstanceConfigCommand");
|
|
862
|
-
var de_DeleteInstanceOnboardingJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
863
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
864
|
-
return de_CommandError(output, context);
|
|
865
|
-
}
|
|
866
|
-
const contents = (0, import_smithy_client.map)({
|
|
867
|
-
$metadata: deserializeMetadata(output)
|
|
868
|
-
});
|
|
869
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
870
|
-
return contents;
|
|
871
|
-
}, "de_DeleteInstanceOnboardingJobCommand");
|
|
872
|
-
var de_DescribeCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
873
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
874
|
-
return de_CommandError(output, context);
|
|
875
|
-
}
|
|
876
|
-
const contents = (0, import_smithy_client.map)({
|
|
877
|
-
$metadata: deserializeMetadata(output)
|
|
878
|
-
});
|
|
879
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
880
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
881
|
-
campaign: /* @__PURE__ */ __name((_) => de_Campaign(_, context), "campaign")
|
|
882
|
-
});
|
|
883
|
-
Object.assign(contents, doc);
|
|
884
|
-
return contents;
|
|
885
|
-
}, "de_DescribeCampaignCommand");
|
|
886
|
-
var de_GetCampaignStateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
887
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
888
|
-
return de_CommandError(output, context);
|
|
889
|
-
}
|
|
890
|
-
const contents = (0, import_smithy_client.map)({
|
|
891
|
-
$metadata: deserializeMetadata(output)
|
|
892
|
-
});
|
|
893
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
894
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
895
|
-
state: import_smithy_client.expectString
|
|
896
|
-
});
|
|
897
|
-
Object.assign(contents, doc);
|
|
898
|
-
return contents;
|
|
899
|
-
}, "de_GetCampaignStateCommand");
|
|
900
|
-
var de_GetCampaignStateBatchCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
901
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
902
|
-
return de_CommandError(output, context);
|
|
903
|
-
}
|
|
904
|
-
const contents = (0, import_smithy_client.map)({
|
|
905
|
-
$metadata: deserializeMetadata(output)
|
|
906
|
-
});
|
|
907
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
908
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
909
|
-
failedRequests: import_smithy_client._json,
|
|
910
|
-
successfulRequests: import_smithy_client._json
|
|
911
|
-
});
|
|
912
|
-
Object.assign(contents, doc);
|
|
913
|
-
return contents;
|
|
914
|
-
}, "de_GetCampaignStateBatchCommand");
|
|
915
|
-
var de_GetConnectInstanceConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
916
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
917
|
-
return de_CommandError(output, context);
|
|
918
|
-
}
|
|
919
|
-
const contents = (0, import_smithy_client.map)({
|
|
920
|
-
$metadata: deserializeMetadata(output)
|
|
921
|
-
});
|
|
922
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
923
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
924
|
-
connectInstanceConfig: import_smithy_client._json
|
|
925
|
-
});
|
|
926
|
-
Object.assign(contents, doc);
|
|
927
|
-
return contents;
|
|
928
|
-
}, "de_GetConnectInstanceConfigCommand");
|
|
929
|
-
var de_GetInstanceOnboardingJobStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
930
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
931
|
-
return de_CommandError(output, context);
|
|
932
|
-
}
|
|
933
|
-
const contents = (0, import_smithy_client.map)({
|
|
934
|
-
$metadata: deserializeMetadata(output)
|
|
935
|
-
});
|
|
936
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
937
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
938
|
-
connectInstanceOnboardingJobStatus: import_smithy_client._json
|
|
939
|
-
});
|
|
940
|
-
Object.assign(contents, doc);
|
|
941
|
-
return contents;
|
|
942
|
-
}, "de_GetInstanceOnboardingJobStatusCommand");
|
|
943
|
-
var de_ListCampaignsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
944
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
945
|
-
return de_CommandError(output, context);
|
|
946
|
-
}
|
|
947
|
-
const contents = (0, import_smithy_client.map)({
|
|
948
|
-
$metadata: deserializeMetadata(output)
|
|
949
|
-
});
|
|
950
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
951
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
952
|
-
campaignSummaryList: import_smithy_client._json,
|
|
953
|
-
nextToken: import_smithy_client.expectString
|
|
954
|
-
});
|
|
955
|
-
Object.assign(contents, doc);
|
|
956
|
-
return contents;
|
|
957
|
-
}, "de_ListCampaignsCommand");
|
|
958
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
959
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
960
|
-
return de_CommandError(output, context);
|
|
961
|
-
}
|
|
962
|
-
const contents = (0, import_smithy_client.map)({
|
|
963
|
-
$metadata: deserializeMetadata(output)
|
|
964
|
-
});
|
|
965
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
966
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
967
|
-
tags: import_smithy_client._json
|
|
968
|
-
});
|
|
969
|
-
Object.assign(contents, doc);
|
|
970
|
-
return contents;
|
|
971
|
-
}, "de_ListTagsForResourceCommand");
|
|
972
|
-
var de_PauseCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
973
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
974
|
-
return de_CommandError(output, context);
|
|
975
|
-
}
|
|
976
|
-
const contents = (0, import_smithy_client.map)({
|
|
977
|
-
$metadata: deserializeMetadata(output)
|
|
978
|
-
});
|
|
979
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
980
|
-
return contents;
|
|
981
|
-
}, "de_PauseCampaignCommand");
|
|
982
|
-
var de_PutDialRequestBatchCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
983
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
984
|
-
return de_CommandError(output, context);
|
|
985
|
-
}
|
|
986
|
-
const contents = (0, import_smithy_client.map)({
|
|
987
|
-
$metadata: deserializeMetadata(output)
|
|
988
|
-
});
|
|
989
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
990
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
991
|
-
failedRequests: import_smithy_client._json,
|
|
992
|
-
successfulRequests: import_smithy_client._json
|
|
993
|
-
});
|
|
994
|
-
Object.assign(contents, doc);
|
|
995
|
-
return contents;
|
|
996
|
-
}, "de_PutDialRequestBatchCommand");
|
|
997
|
-
var de_ResumeCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
998
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
999
|
-
return de_CommandError(output, context);
|
|
1000
|
-
}
|
|
1001
|
-
const contents = (0, import_smithy_client.map)({
|
|
1002
|
-
$metadata: deserializeMetadata(output)
|
|
1003
|
-
});
|
|
1004
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1005
|
-
return contents;
|
|
1006
|
-
}, "de_ResumeCampaignCommand");
|
|
1007
|
-
var de_StartCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1008
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1009
|
-
return de_CommandError(output, context);
|
|
1010
|
-
}
|
|
1011
|
-
const contents = (0, import_smithy_client.map)({
|
|
1012
|
-
$metadata: deserializeMetadata(output)
|
|
1013
|
-
});
|
|
1014
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1015
|
-
return contents;
|
|
1016
|
-
}, "de_StartCampaignCommand");
|
|
1017
|
-
var de_StartInstanceOnboardingJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1018
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1019
|
-
return de_CommandError(output, context);
|
|
1020
|
-
}
|
|
1021
|
-
const contents = (0, import_smithy_client.map)({
|
|
1022
|
-
$metadata: deserializeMetadata(output)
|
|
1023
|
-
});
|
|
1024
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1025
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1026
|
-
connectInstanceOnboardingJobStatus: import_smithy_client._json
|
|
1027
|
-
});
|
|
1028
|
-
Object.assign(contents, doc);
|
|
1029
|
-
return contents;
|
|
1030
|
-
}, "de_StartInstanceOnboardingJobCommand");
|
|
1031
|
-
var de_StopCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1032
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1033
|
-
return de_CommandError(output, context);
|
|
1034
|
-
}
|
|
1035
|
-
const contents = (0, import_smithy_client.map)({
|
|
1036
|
-
$metadata: deserializeMetadata(output)
|
|
1037
|
-
});
|
|
1038
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1039
|
-
return contents;
|
|
1040
|
-
}, "de_StopCampaignCommand");
|
|
1041
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1042
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1043
|
-
return de_CommandError(output, context);
|
|
1044
|
-
}
|
|
1045
|
-
const contents = (0, import_smithy_client.map)({
|
|
1046
|
-
$metadata: deserializeMetadata(output)
|
|
1047
|
-
});
|
|
1048
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1049
|
-
return contents;
|
|
1050
|
-
}, "de_TagResourceCommand");
|
|
1051
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1052
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1053
|
-
return de_CommandError(output, context);
|
|
1054
|
-
}
|
|
1055
|
-
const contents = (0, import_smithy_client.map)({
|
|
1056
|
-
$metadata: deserializeMetadata(output)
|
|
1057
|
-
});
|
|
1058
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1059
|
-
return contents;
|
|
1060
|
-
}, "de_UntagResourceCommand");
|
|
1061
|
-
var de_UpdateCampaignDialerConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1062
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1063
|
-
return de_CommandError(output, context);
|
|
1064
|
-
}
|
|
1065
|
-
const contents = (0, import_smithy_client.map)({
|
|
1066
|
-
$metadata: deserializeMetadata(output)
|
|
1067
|
-
});
|
|
1068
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1069
|
-
return contents;
|
|
1070
|
-
}, "de_UpdateCampaignDialerConfigCommand");
|
|
1071
|
-
var de_UpdateCampaignNameCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1072
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1073
|
-
return de_CommandError(output, context);
|
|
1074
|
-
}
|
|
1075
|
-
const contents = (0, import_smithy_client.map)({
|
|
1076
|
-
$metadata: deserializeMetadata(output)
|
|
1077
|
-
});
|
|
1078
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1079
|
-
return contents;
|
|
1080
|
-
}, "de_UpdateCampaignNameCommand");
|
|
1081
|
-
var de_UpdateCampaignOutboundCallConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1082
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1083
|
-
return de_CommandError(output, context);
|
|
1084
|
-
}
|
|
1085
|
-
const contents = (0, import_smithy_client.map)({
|
|
1086
|
-
$metadata: deserializeMetadata(output)
|
|
1087
|
-
});
|
|
1088
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1089
|
-
return contents;
|
|
1090
|
-
}, "de_UpdateCampaignOutboundCallConfigCommand");
|
|
1091
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1092
|
-
const parsedOutput = {
|
|
1093
|
-
...output,
|
|
1094
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1095
|
-
};
|
|
1096
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1097
|
-
switch (errorCode) {
|
|
1098
|
-
case "AccessDeniedException":
|
|
1099
|
-
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1100
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "ConflictException":
|
|
1102
|
-
case "com.amazonaws.connectcampaigns#ConflictException":
|
|
1103
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "InternalServerException":
|
|
1105
|
-
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1106
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1107
|
-
case "ResourceNotFoundException":
|
|
1108
|
-
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1109
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1110
|
-
case "ServiceQuotaExceededException":
|
|
1111
|
-
case "com.amazonaws.connectcampaigns#ServiceQuotaExceededException":
|
|
1112
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "ThrottlingException":
|
|
1114
|
-
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1115
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1116
|
-
case "ValidationException":
|
|
1117
|
-
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1118
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1119
|
-
case "InvalidStateException":
|
|
1120
|
-
case "com.amazonaws.connectcampaigns#InvalidStateException":
|
|
1121
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1122
|
-
case "InvalidCampaignStateException":
|
|
1123
|
-
case "com.amazonaws.connectcampaigns#InvalidCampaignStateException":
|
|
1124
|
-
throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context);
|
|
1125
|
-
default:
|
|
1126
|
-
const parsedBody = parsedOutput.body;
|
|
1127
|
-
return throwDefaultError({
|
|
1128
|
-
output,
|
|
1129
|
-
parsedBody,
|
|
1130
|
-
errorCode
|
|
1131
|
-
});
|
|
1132
|
-
}
|
|
1133
|
-
}, "de_CommandError");
|
|
1134
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(ConnectCampaignsServiceException);
|
|
1135
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1136
|
-
const contents = (0, import_smithy_client.map)({
|
|
1137
|
-
[_xAET]: [, parsedOutput.headers[_xae]]
|
|
1138
|
-
});
|
|
1139
|
-
const data = parsedOutput.body;
|
|
1140
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1141
|
-
message: import_smithy_client.expectString
|
|
1142
|
-
});
|
|
1143
|
-
Object.assign(contents, doc);
|
|
1144
|
-
const exception = new AccessDeniedException({
|
|
1145
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1146
|
-
...contents
|
|
1147
|
-
});
|
|
1148
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1149
|
-
}, "de_AccessDeniedExceptionRes");
|
|
1150
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1151
|
-
const contents = (0, import_smithy_client.map)({
|
|
1152
|
-
[_xAET]: [, parsedOutput.headers[_xae]]
|
|
1153
|
-
});
|
|
1154
|
-
const data = parsedOutput.body;
|
|
1155
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1156
|
-
message: import_smithy_client.expectString
|
|
1157
|
-
});
|
|
1158
|
-
Object.assign(contents, doc);
|
|
1159
|
-
const exception = new ConflictException({
|
|
1160
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1161
|
-
...contents
|
|
1162
|
-
});
|
|
1163
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1164
|
-
}, "de_ConflictExceptionRes");
|
|
1165
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1166
|
-
const contents = (0, import_smithy_client.map)({
|
|
1167
|
-
[_xAET]: [, parsedOutput.headers[_xae]]
|
|
1168
|
-
});
|
|
1169
|
-
const data = parsedOutput.body;
|
|
1170
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1171
|
-
message: import_smithy_client.expectString
|
|
1172
|
-
});
|
|
1173
|
-
Object.assign(contents, doc);
|
|
1174
|
-
const exception = new InternalServerException({
|
|
1175
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1176
|
-
...contents
|
|
1177
|
-
});
|
|
1178
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1179
|
-
}, "de_InternalServerExceptionRes");
|
|
1180
|
-
var de_InvalidCampaignStateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1181
|
-
const contents = (0, import_smithy_client.map)({
|
|
1182
|
-
[_xAET]: [, parsedOutput.headers[_xae]]
|
|
1183
|
-
});
|
|
1184
|
-
const data = parsedOutput.body;
|
|
1185
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1186
|
-
message: import_smithy_client.expectString,
|
|
1187
|
-
state: import_smithy_client.expectString
|
|
1188
|
-
});
|
|
1189
|
-
Object.assign(contents, doc);
|
|
1190
|
-
const exception = new InvalidCampaignStateException({
|
|
1191
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1192
|
-
...contents
|
|
1193
|
-
});
|
|
1194
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1195
|
-
}, "de_InvalidCampaignStateExceptionRes");
|
|
1196
|
-
var de_InvalidStateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1197
|
-
const contents = (0, import_smithy_client.map)({
|
|
1198
|
-
[_xAET]: [, parsedOutput.headers[_xae]]
|
|
1199
|
-
});
|
|
1200
|
-
const data = parsedOutput.body;
|
|
1201
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1202
|
-
message: import_smithy_client.expectString
|
|
1203
|
-
});
|
|
1204
|
-
Object.assign(contents, doc);
|
|
1205
|
-
const exception = new InvalidStateException({
|
|
1206
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1207
|
-
...contents
|
|
1208
|
-
});
|
|
1209
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1210
|
-
}, "de_InvalidStateExceptionRes");
|
|
1211
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1212
|
-
const contents = (0, import_smithy_client.map)({
|
|
1213
|
-
[_xAET]: [, parsedOutput.headers[_xae]]
|
|
1214
|
-
});
|
|
1215
|
-
const data = parsedOutput.body;
|
|
1216
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1217
|
-
message: import_smithy_client.expectString
|
|
1218
|
-
});
|
|
1219
|
-
Object.assign(contents, doc);
|
|
1220
|
-
const exception = new ResourceNotFoundException({
|
|
1221
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1222
|
-
...contents
|
|
1223
|
-
});
|
|
1224
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1225
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
1226
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1227
|
-
const contents = (0, import_smithy_client.map)({
|
|
1228
|
-
[_xAET]: [, parsedOutput.headers[_xae]]
|
|
1229
|
-
});
|
|
1230
|
-
const data = parsedOutput.body;
|
|
1231
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1232
|
-
message: import_smithy_client.expectString
|
|
1233
|
-
});
|
|
1234
|
-
Object.assign(contents, doc);
|
|
1235
|
-
const exception = new ServiceQuotaExceededException({
|
|
1236
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1237
|
-
...contents
|
|
1238
|
-
});
|
|
1239
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1240
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1241
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1242
|
-
const contents = (0, import_smithy_client.map)({
|
|
1243
|
-
[_xAET]: [, parsedOutput.headers[_xae]]
|
|
1244
|
-
});
|
|
1245
|
-
const data = parsedOutput.body;
|
|
1246
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1247
|
-
message: import_smithy_client.expectString
|
|
1248
|
-
});
|
|
1249
|
-
Object.assign(contents, doc);
|
|
1250
|
-
const exception = new ThrottlingException({
|
|
1251
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1252
|
-
...contents
|
|
1253
|
-
});
|
|
1254
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1255
|
-
}, "de_ThrottlingExceptionRes");
|
|
1256
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1257
|
-
const contents = (0, import_smithy_client.map)({
|
|
1258
|
-
[_xAET]: [, parsedOutput.headers[_xae]]
|
|
1259
|
-
});
|
|
1260
|
-
const data = parsedOutput.body;
|
|
1261
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1262
|
-
message: import_smithy_client.expectString
|
|
1263
|
-
});
|
|
1264
|
-
Object.assign(contents, doc);
|
|
1265
|
-
const exception = new ValidationException({
|
|
1266
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1267
|
-
...contents
|
|
1268
|
-
});
|
|
1269
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1270
|
-
}, "de_ValidationExceptionRes");
|
|
1271
|
-
var se_AgentlessDialerConfig = /* @__PURE__ */ __name((input, context) => {
|
|
1272
|
-
return (0, import_smithy_client.take)(input, {
|
|
1273
|
-
dialingCapacity: import_smithy_client.serializeFloat
|
|
1274
|
-
});
|
|
1275
|
-
}, "se_AgentlessDialerConfig");
|
|
1276
|
-
var se_DialerConfig = /* @__PURE__ */ __name((input, context) => {
|
|
1277
|
-
return DialerConfig.visit(input, {
|
|
1278
|
-
agentlessDialerConfig: /* @__PURE__ */ __name((value) => ({ agentlessDialerConfig: se_AgentlessDialerConfig(value, context) }), "agentlessDialerConfig"),
|
|
1279
|
-
predictiveDialerConfig: /* @__PURE__ */ __name((value) => ({ predictiveDialerConfig: se_PredictiveDialerConfig(value, context) }), "predictiveDialerConfig"),
|
|
1280
|
-
progressiveDialerConfig: /* @__PURE__ */ __name((value) => ({ progressiveDialerConfig: se_ProgressiveDialerConfig(value, context) }), "progressiveDialerConfig"),
|
|
1281
|
-
_: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
|
|
1282
|
-
});
|
|
1283
|
-
}, "se_DialerConfig");
|
|
1284
|
-
var se_DialRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1285
|
-
return (0, import_smithy_client.take)(input, {
|
|
1286
|
-
attributes: import_smithy_client._json,
|
|
1287
|
-
clientToken: [],
|
|
1288
|
-
expirationTime: import_smithy_client.serializeDateTime,
|
|
1289
|
-
phoneNumber: []
|
|
1290
|
-
});
|
|
1291
|
-
}, "se_DialRequest");
|
|
1292
|
-
var se_DialRequestList = /* @__PURE__ */ __name((input, context) => {
|
|
1293
|
-
return input.filter((e) => e != null).map((entry) => {
|
|
1294
|
-
return se_DialRequest(entry, context);
|
|
1295
|
-
});
|
|
1296
|
-
}, "se_DialRequestList");
|
|
1297
|
-
var se_PredictiveDialerConfig = /* @__PURE__ */ __name((input, context) => {
|
|
1298
|
-
return (0, import_smithy_client.take)(input, {
|
|
1299
|
-
bandwidthAllocation: import_smithy_client.serializeFloat,
|
|
1300
|
-
dialingCapacity: import_smithy_client.serializeFloat
|
|
1301
|
-
});
|
|
1302
|
-
}, "se_PredictiveDialerConfig");
|
|
1303
|
-
var se_ProgressiveDialerConfig = /* @__PURE__ */ __name((input, context) => {
|
|
1304
|
-
return (0, import_smithy_client.take)(input, {
|
|
1305
|
-
bandwidthAllocation: import_smithy_client.serializeFloat,
|
|
1306
|
-
dialingCapacity: import_smithy_client.serializeFloat
|
|
1307
|
-
});
|
|
1308
|
-
}, "se_ProgressiveDialerConfig");
|
|
1309
|
-
var de_AgentlessDialerConfig = /* @__PURE__ */ __name((output, context) => {
|
|
1310
|
-
return (0, import_smithy_client.take)(output, {
|
|
1311
|
-
dialingCapacity: import_smithy_client.limitedParseDouble
|
|
1312
|
-
});
|
|
1313
|
-
}, "de_AgentlessDialerConfig");
|
|
1314
|
-
var de_Campaign = /* @__PURE__ */ __name((output, context) => {
|
|
1315
|
-
return (0, import_smithy_client.take)(output, {
|
|
1316
|
-
arn: import_smithy_client.expectString,
|
|
1317
|
-
connectInstanceId: import_smithy_client.expectString,
|
|
1318
|
-
dialerConfig: /* @__PURE__ */ __name((_) => de_DialerConfig((0, import_core2.awsExpectUnion)(_), context), "dialerConfig"),
|
|
1319
|
-
id: import_smithy_client.expectString,
|
|
1320
|
-
name: import_smithy_client.expectString,
|
|
1321
|
-
outboundCallConfig: import_smithy_client._json,
|
|
1322
|
-
tags: import_smithy_client._json
|
|
1323
|
-
});
|
|
1324
|
-
}, "de_Campaign");
|
|
1325
|
-
var de_DialerConfig = /* @__PURE__ */ __name((output, context) => {
|
|
1326
|
-
if (output.agentlessDialerConfig != null) {
|
|
1327
|
-
return {
|
|
1328
|
-
agentlessDialerConfig: de_AgentlessDialerConfig(output.agentlessDialerConfig, context)
|
|
307
|
+
const se_CreateCampaignCommand = async (input, context) => {
|
|
308
|
+
const b = core.requestBuilder(input, context);
|
|
309
|
+
const headers = {
|
|
310
|
+
"content-type": "application/json",
|
|
1329
311
|
};
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
312
|
+
b.bp("/campaigns");
|
|
313
|
+
let body;
|
|
314
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
315
|
+
connectInstanceId: [],
|
|
316
|
+
dialerConfig: (_) => se_DialerConfig(_),
|
|
317
|
+
name: [],
|
|
318
|
+
outboundCallConfig: (_) => smithyClient._json(_),
|
|
319
|
+
tags: (_) => smithyClient._json(_),
|
|
320
|
+
}));
|
|
321
|
+
b.m("PUT").h(headers).b(body);
|
|
322
|
+
return b.build();
|
|
323
|
+
};
|
|
324
|
+
const se_DeleteCampaignCommand = async (input, context) => {
|
|
325
|
+
const b = core.requestBuilder(input, context);
|
|
326
|
+
const headers = {};
|
|
327
|
+
b.bp("/campaigns/{id}");
|
|
328
|
+
b.p("id", () => input.id, "{id}", false);
|
|
329
|
+
let body;
|
|
330
|
+
b.m("DELETE").h(headers).b(body);
|
|
331
|
+
return b.build();
|
|
332
|
+
};
|
|
333
|
+
const se_DeleteConnectInstanceConfigCommand = async (input, context) => {
|
|
334
|
+
const b = core.requestBuilder(input, context);
|
|
335
|
+
const headers = {};
|
|
336
|
+
b.bp("/connect-instance/{connectInstanceId}/config");
|
|
337
|
+
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
338
|
+
let body;
|
|
339
|
+
b.m("DELETE").h(headers).b(body);
|
|
340
|
+
return b.build();
|
|
341
|
+
};
|
|
342
|
+
const se_DeleteInstanceOnboardingJobCommand = async (input, context) => {
|
|
343
|
+
const b = core.requestBuilder(input, context);
|
|
344
|
+
const headers = {};
|
|
345
|
+
b.bp("/connect-instance/{connectInstanceId}/onboarding");
|
|
346
|
+
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
347
|
+
let body;
|
|
348
|
+
b.m("DELETE").h(headers).b(body);
|
|
349
|
+
return b.build();
|
|
350
|
+
};
|
|
351
|
+
const se_DescribeCampaignCommand = async (input, context) => {
|
|
352
|
+
const b = core.requestBuilder(input, context);
|
|
353
|
+
const headers = {};
|
|
354
|
+
b.bp("/campaigns/{id}");
|
|
355
|
+
b.p("id", () => input.id, "{id}", false);
|
|
356
|
+
let body;
|
|
357
|
+
b.m("GET").h(headers).b(body);
|
|
358
|
+
return b.build();
|
|
359
|
+
};
|
|
360
|
+
const se_GetCampaignStateCommand = async (input, context) => {
|
|
361
|
+
const b = core.requestBuilder(input, context);
|
|
362
|
+
const headers = {};
|
|
363
|
+
b.bp("/campaigns/{id}/state");
|
|
364
|
+
b.p("id", () => input.id, "{id}", false);
|
|
365
|
+
let body;
|
|
366
|
+
b.m("GET").h(headers).b(body);
|
|
367
|
+
return b.build();
|
|
368
|
+
};
|
|
369
|
+
const se_GetCampaignStateBatchCommand = async (input, context) => {
|
|
370
|
+
const b = core.requestBuilder(input, context);
|
|
371
|
+
const headers = {
|
|
372
|
+
"content-type": "application/json",
|
|
1334
373
|
};
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
374
|
+
b.bp("/campaigns-state");
|
|
375
|
+
let body;
|
|
376
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
377
|
+
campaignIds: (_) => smithyClient._json(_),
|
|
378
|
+
}));
|
|
379
|
+
b.m("POST").h(headers).b(body);
|
|
380
|
+
return b.build();
|
|
381
|
+
};
|
|
382
|
+
const se_GetConnectInstanceConfigCommand = async (input, context) => {
|
|
383
|
+
const b = core.requestBuilder(input, context);
|
|
384
|
+
const headers = {};
|
|
385
|
+
b.bp("/connect-instance/{connectInstanceId}/config");
|
|
386
|
+
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
387
|
+
let body;
|
|
388
|
+
b.m("GET").h(headers).b(body);
|
|
389
|
+
return b.build();
|
|
390
|
+
};
|
|
391
|
+
const se_GetInstanceOnboardingJobStatusCommand = async (input, context) => {
|
|
392
|
+
const b = core.requestBuilder(input, context);
|
|
393
|
+
const headers = {};
|
|
394
|
+
b.bp("/connect-instance/{connectInstanceId}/onboarding");
|
|
395
|
+
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
396
|
+
let body;
|
|
397
|
+
b.m("GET").h(headers).b(body);
|
|
398
|
+
return b.build();
|
|
399
|
+
};
|
|
400
|
+
const se_ListCampaignsCommand = async (input, context) => {
|
|
401
|
+
const b = core.requestBuilder(input, context);
|
|
402
|
+
const headers = {
|
|
403
|
+
"content-type": "application/json",
|
|
1339
404
|
};
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
var de_ProgressiveDialerConfig = /* @__PURE__ */ __name((output, context) => {
|
|
1350
|
-
return (0, import_smithy_client.take)(output, {
|
|
1351
|
-
bandwidthAllocation: import_smithy_client.limitedParseDouble,
|
|
1352
|
-
dialingCapacity: import_smithy_client.limitedParseDouble
|
|
1353
|
-
});
|
|
1354
|
-
}, "de_ProgressiveDialerConfig");
|
|
1355
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1356
|
-
httpStatusCode: output.statusCode,
|
|
1357
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1358
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1359
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1360
|
-
}), "deserializeMetadata");
|
|
1361
|
-
var _tK = "tagKeys";
|
|
1362
|
-
var _xAET = "xAmzErrorType";
|
|
1363
|
-
var _xae = "x-amzn-errortype";
|
|
1364
|
-
|
|
1365
|
-
// src/commands/CreateCampaignCommand.ts
|
|
1366
|
-
var CreateCampaignCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1367
|
-
return [
|
|
1368
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1369
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1370
|
-
];
|
|
1371
|
-
}).s("AmazonConnectCampaignService", "CreateCampaign", {}).n("ConnectCampaignsClient", "CreateCampaignCommand").f(void 0, void 0).ser(se_CreateCampaignCommand).de(de_CreateCampaignCommand).build() {
|
|
1372
|
-
static {
|
|
1373
|
-
__name(this, "CreateCampaignCommand");
|
|
1374
|
-
}
|
|
405
|
+
b.bp("/campaigns-summary");
|
|
406
|
+
let body;
|
|
407
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
408
|
+
filters: (_) => smithyClient._json(_),
|
|
409
|
+
maxResults: [],
|
|
410
|
+
nextToken: [],
|
|
411
|
+
}));
|
|
412
|
+
b.m("POST").h(headers).b(body);
|
|
413
|
+
return b.build();
|
|
1375
414
|
};
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1385
|
-
];
|
|
1386
|
-
}).s("AmazonConnectCampaignService", "DeleteCampaign", {}).n("ConnectCampaignsClient", "DeleteCampaignCommand").f(void 0, void 0).ser(se_DeleteCampaignCommand).de(de_DeleteCampaignCommand).build() {
|
|
1387
|
-
static {
|
|
1388
|
-
__name(this, "DeleteCampaignCommand");
|
|
1389
|
-
}
|
|
415
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
416
|
+
const b = core.requestBuilder(input, context);
|
|
417
|
+
const headers = {};
|
|
418
|
+
b.bp("/tags/{arn}");
|
|
419
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
420
|
+
let body;
|
|
421
|
+
b.m("GET").h(headers).b(body);
|
|
422
|
+
return b.build();
|
|
1390
423
|
};
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1400
|
-
];
|
|
1401
|
-
}).s("AmazonConnectCampaignService", "DeleteConnectInstanceConfig", {}).n("ConnectCampaignsClient", "DeleteConnectInstanceConfigCommand").f(void 0, void 0).ser(se_DeleteConnectInstanceConfigCommand).de(de_DeleteConnectInstanceConfigCommand).build() {
|
|
1402
|
-
static {
|
|
1403
|
-
__name(this, "DeleteConnectInstanceConfigCommand");
|
|
1404
|
-
}
|
|
424
|
+
const se_PauseCampaignCommand = async (input, context) => {
|
|
425
|
+
const b = core.requestBuilder(input, context);
|
|
426
|
+
const headers = {};
|
|
427
|
+
b.bp("/campaigns/{id}/pause");
|
|
428
|
+
b.p("id", () => input.id, "{id}", false);
|
|
429
|
+
let body;
|
|
430
|
+
b.m("POST").h(headers).b(body);
|
|
431
|
+
return b.build();
|
|
1405
432
|
};
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
})
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
}
|
|
433
|
+
const se_PutDialRequestBatchCommand = async (input, context) => {
|
|
434
|
+
const b = core.requestBuilder(input, context);
|
|
435
|
+
const headers = {
|
|
436
|
+
"content-type": "application/json",
|
|
437
|
+
};
|
|
438
|
+
b.bp("/campaigns/{id}/dial-requests");
|
|
439
|
+
b.p("id", () => input.id, "{id}", false);
|
|
440
|
+
let body;
|
|
441
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
442
|
+
dialRequests: (_) => se_DialRequestList(_),
|
|
443
|
+
}));
|
|
444
|
+
b.m("PUT").h(headers).b(body);
|
|
445
|
+
return b.build();
|
|
1420
446
|
};
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1430
|
-
];
|
|
1431
|
-
}).s("AmazonConnectCampaignService", "DescribeCampaign", {}).n("ConnectCampaignsClient", "DescribeCampaignCommand").f(void 0, void 0).ser(se_DescribeCampaignCommand).de(de_DescribeCampaignCommand).build() {
|
|
1432
|
-
static {
|
|
1433
|
-
__name(this, "DescribeCampaignCommand");
|
|
1434
|
-
}
|
|
447
|
+
const se_ResumeCampaignCommand = async (input, context) => {
|
|
448
|
+
const b = core.requestBuilder(input, context);
|
|
449
|
+
const headers = {};
|
|
450
|
+
b.bp("/campaigns/{id}/resume");
|
|
451
|
+
b.p("id", () => input.id, "{id}", false);
|
|
452
|
+
let body;
|
|
453
|
+
b.m("POST").h(headers).b(body);
|
|
454
|
+
return b.build();
|
|
1435
455
|
};
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1445
|
-
];
|
|
1446
|
-
}).s("AmazonConnectCampaignService", "GetCampaignStateBatch", {}).n("ConnectCampaignsClient", "GetCampaignStateBatchCommand").f(void 0, void 0).ser(se_GetCampaignStateBatchCommand).de(de_GetCampaignStateBatchCommand).build() {
|
|
1447
|
-
static {
|
|
1448
|
-
__name(this, "GetCampaignStateBatchCommand");
|
|
1449
|
-
}
|
|
456
|
+
const se_StartCampaignCommand = async (input, context) => {
|
|
457
|
+
const b = core.requestBuilder(input, context);
|
|
458
|
+
const headers = {};
|
|
459
|
+
b.bp("/campaigns/{id}/start");
|
|
460
|
+
b.p("id", () => input.id, "{id}", false);
|
|
461
|
+
let body;
|
|
462
|
+
b.m("POST").h(headers).b(body);
|
|
463
|
+
return b.build();
|
|
1450
464
|
};
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
})
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
}
|
|
465
|
+
const se_StartInstanceOnboardingJobCommand = async (input, context) => {
|
|
466
|
+
const b = core.requestBuilder(input, context);
|
|
467
|
+
const headers = {
|
|
468
|
+
"content-type": "application/json",
|
|
469
|
+
};
|
|
470
|
+
b.bp("/connect-instance/{connectInstanceId}/onboarding");
|
|
471
|
+
b.p("connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
472
|
+
let body;
|
|
473
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
474
|
+
encryptionConfig: (_) => smithyClient._json(_),
|
|
475
|
+
}));
|
|
476
|
+
b.m("PUT").h(headers).b(body);
|
|
477
|
+
return b.build();
|
|
1465
478
|
};
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1475
|
-
];
|
|
1476
|
-
}).s("AmazonConnectCampaignService", "GetConnectInstanceConfig", {}).n("ConnectCampaignsClient", "GetConnectInstanceConfigCommand").f(void 0, void 0).ser(se_GetConnectInstanceConfigCommand).de(de_GetConnectInstanceConfigCommand).build() {
|
|
1477
|
-
static {
|
|
1478
|
-
__name(this, "GetConnectInstanceConfigCommand");
|
|
1479
|
-
}
|
|
479
|
+
const se_StopCampaignCommand = async (input, context) => {
|
|
480
|
+
const b = core.requestBuilder(input, context);
|
|
481
|
+
const headers = {};
|
|
482
|
+
b.bp("/campaigns/{id}/stop");
|
|
483
|
+
b.p("id", () => input.id, "{id}", false);
|
|
484
|
+
let body;
|
|
485
|
+
b.m("POST").h(headers).b(body);
|
|
486
|
+
return b.build();
|
|
1480
487
|
};
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
})
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
}
|
|
488
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
489
|
+
const b = core.requestBuilder(input, context);
|
|
490
|
+
const headers = {
|
|
491
|
+
"content-type": "application/json",
|
|
492
|
+
};
|
|
493
|
+
b.bp("/tags/{arn}");
|
|
494
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
495
|
+
let body;
|
|
496
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
497
|
+
tags: (_) => smithyClient._json(_),
|
|
498
|
+
}));
|
|
499
|
+
b.m("POST").h(headers).b(body);
|
|
500
|
+
return b.build();
|
|
1495
501
|
};
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
static {
|
|
1508
|
-
__name(this, "ListCampaignsCommand");
|
|
1509
|
-
}
|
|
502
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
503
|
+
const b = core.requestBuilder(input, context);
|
|
504
|
+
const headers = {};
|
|
505
|
+
b.bp("/tags/{arn}");
|
|
506
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
507
|
+
const query = smithyClient.map({
|
|
508
|
+
[_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
509
|
+
});
|
|
510
|
+
let body;
|
|
511
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
512
|
+
return b.build();
|
|
1510
513
|
};
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
})
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
}
|
|
514
|
+
const se_UpdateCampaignDialerConfigCommand = async (input, context) => {
|
|
515
|
+
const b = core.requestBuilder(input, context);
|
|
516
|
+
const headers = {
|
|
517
|
+
"content-type": "application/json",
|
|
518
|
+
};
|
|
519
|
+
b.bp("/campaigns/{id}/dialer-config");
|
|
520
|
+
b.p("id", () => input.id, "{id}", false);
|
|
521
|
+
let body;
|
|
522
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
523
|
+
dialerConfig: (_) => se_DialerConfig(_),
|
|
524
|
+
}));
|
|
525
|
+
b.m("POST").h(headers).b(body);
|
|
526
|
+
return b.build();
|
|
1525
527
|
};
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
})
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
}
|
|
528
|
+
const se_UpdateCampaignNameCommand = async (input, context) => {
|
|
529
|
+
const b = core.requestBuilder(input, context);
|
|
530
|
+
const headers = {
|
|
531
|
+
"content-type": "application/json",
|
|
532
|
+
};
|
|
533
|
+
b.bp("/campaigns/{id}/name");
|
|
534
|
+
b.p("id", () => input.id, "{id}", false);
|
|
535
|
+
let body;
|
|
536
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
537
|
+
name: [],
|
|
538
|
+
}));
|
|
539
|
+
b.m("POST").h(headers).b(body);
|
|
540
|
+
return b.build();
|
|
1540
541
|
};
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
542
|
+
const se_UpdateCampaignOutboundCallConfigCommand = async (input, context) => {
|
|
543
|
+
const b = core.requestBuilder(input, context);
|
|
544
|
+
const headers = {
|
|
545
|
+
"content-type": "application/json",
|
|
546
|
+
};
|
|
547
|
+
b.bp("/campaigns/{id}/outbound-call-config");
|
|
548
|
+
b.p("id", () => input.id, "{id}", false);
|
|
549
|
+
let body;
|
|
550
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
551
|
+
answerMachineDetectionConfig: (_) => smithyClient._json(_),
|
|
552
|
+
connectContactFlowId: [],
|
|
553
|
+
connectSourcePhoneNumber: [],
|
|
554
|
+
}));
|
|
555
|
+
b.m("POST").h(headers).b(body);
|
|
556
|
+
return b.build();
|
|
1555
557
|
};
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
(
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
558
|
+
const de_CreateCampaignCommand = async (output, context) => {
|
|
559
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
560
|
+
return de_CommandError(output, context);
|
|
561
|
+
}
|
|
562
|
+
const contents = smithyClient.map({
|
|
563
|
+
$metadata: deserializeMetadata(output),
|
|
564
|
+
});
|
|
565
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
566
|
+
const doc = smithyClient.take(data, {
|
|
567
|
+
arn: smithyClient.expectString,
|
|
568
|
+
id: smithyClient.expectString,
|
|
569
|
+
tags: smithyClient._json,
|
|
570
|
+
});
|
|
571
|
+
Object.assign(contents, doc);
|
|
572
|
+
return contents;
|
|
1570
573
|
};
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
];
|
|
1581
|
-
}).s("AmazonConnectCampaignService", "StartCampaign", {}).n("ConnectCampaignsClient", "StartCampaignCommand").f(void 0, void 0).ser(se_StartCampaignCommand).de(de_StartCampaignCommand).build() {
|
|
1582
|
-
static {
|
|
1583
|
-
__name(this, "StartCampaignCommand");
|
|
1584
|
-
}
|
|
574
|
+
const de_DeleteCampaignCommand = async (output, context) => {
|
|
575
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
576
|
+
return de_CommandError(output, context);
|
|
577
|
+
}
|
|
578
|
+
const contents = smithyClient.map({
|
|
579
|
+
$metadata: deserializeMetadata(output),
|
|
580
|
+
});
|
|
581
|
+
await smithyClient.collectBody(output.body, context);
|
|
582
|
+
return contents;
|
|
1585
583
|
};
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
];
|
|
1596
|
-
}).s("AmazonConnectCampaignService", "StartInstanceOnboardingJob", {}).n("ConnectCampaignsClient", "StartInstanceOnboardingJobCommand").f(void 0, void 0).ser(se_StartInstanceOnboardingJobCommand).de(de_StartInstanceOnboardingJobCommand).build() {
|
|
1597
|
-
static {
|
|
1598
|
-
__name(this, "StartInstanceOnboardingJobCommand");
|
|
1599
|
-
}
|
|
584
|
+
const de_DeleteConnectInstanceConfigCommand = async (output, context) => {
|
|
585
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
586
|
+
return de_CommandError(output, context);
|
|
587
|
+
}
|
|
588
|
+
const contents = smithyClient.map({
|
|
589
|
+
$metadata: deserializeMetadata(output),
|
|
590
|
+
});
|
|
591
|
+
await smithyClient.collectBody(output.body, context);
|
|
592
|
+
return contents;
|
|
1600
593
|
};
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
];
|
|
1611
|
-
}).s("AmazonConnectCampaignService", "StopCampaign", {}).n("ConnectCampaignsClient", "StopCampaignCommand").f(void 0, void 0).ser(se_StopCampaignCommand).de(de_StopCampaignCommand).build() {
|
|
1612
|
-
static {
|
|
1613
|
-
__name(this, "StopCampaignCommand");
|
|
1614
|
-
}
|
|
594
|
+
const de_DeleteInstanceOnboardingJobCommand = async (output, context) => {
|
|
595
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
596
|
+
return de_CommandError(output, context);
|
|
597
|
+
}
|
|
598
|
+
const contents = smithyClient.map({
|
|
599
|
+
$metadata: deserializeMetadata(output),
|
|
600
|
+
});
|
|
601
|
+
await smithyClient.collectBody(output.body, context);
|
|
602
|
+
return contents;
|
|
1615
603
|
};
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
(
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
})
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
}
|
|
604
|
+
const de_DescribeCampaignCommand = async (output, context) => {
|
|
605
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
606
|
+
return de_CommandError(output, context);
|
|
607
|
+
}
|
|
608
|
+
const contents = smithyClient.map({
|
|
609
|
+
$metadata: deserializeMetadata(output),
|
|
610
|
+
});
|
|
611
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
612
|
+
const doc = smithyClient.take(data, {
|
|
613
|
+
campaign: (_) => de_Campaign(_),
|
|
614
|
+
});
|
|
615
|
+
Object.assign(contents, doc);
|
|
616
|
+
return contents;
|
|
1630
617
|
};
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
(
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
})
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
}
|
|
618
|
+
const de_GetCampaignStateCommand = async (output, context) => {
|
|
619
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
620
|
+
return de_CommandError(output, context);
|
|
621
|
+
}
|
|
622
|
+
const contents = smithyClient.map({
|
|
623
|
+
$metadata: deserializeMetadata(output),
|
|
624
|
+
});
|
|
625
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
626
|
+
const doc = smithyClient.take(data, {
|
|
627
|
+
state: smithyClient.expectString,
|
|
628
|
+
});
|
|
629
|
+
Object.assign(contents, doc);
|
|
630
|
+
return contents;
|
|
1645
631
|
};
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
(
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
632
|
+
const de_GetCampaignStateBatchCommand = async (output, context) => {
|
|
633
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
634
|
+
return de_CommandError(output, context);
|
|
635
|
+
}
|
|
636
|
+
const contents = smithyClient.map({
|
|
637
|
+
$metadata: deserializeMetadata(output),
|
|
638
|
+
});
|
|
639
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
640
|
+
const doc = smithyClient.take(data, {
|
|
641
|
+
failedRequests: smithyClient._json,
|
|
642
|
+
successfulRequests: smithyClient._json,
|
|
643
|
+
});
|
|
644
|
+
Object.assign(contents, doc);
|
|
645
|
+
return contents;
|
|
1660
646
|
};
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
(
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
})
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
}
|
|
647
|
+
const de_GetConnectInstanceConfigCommand = async (output, context) => {
|
|
648
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
649
|
+
return de_CommandError(output, context);
|
|
650
|
+
}
|
|
651
|
+
const contents = smithyClient.map({
|
|
652
|
+
$metadata: deserializeMetadata(output),
|
|
653
|
+
});
|
|
654
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
655
|
+
const doc = smithyClient.take(data, {
|
|
656
|
+
connectInstanceConfig: smithyClient._json,
|
|
657
|
+
});
|
|
658
|
+
Object.assign(contents, doc);
|
|
659
|
+
return contents;
|
|
1675
660
|
};
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
(
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
})
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
}
|
|
661
|
+
const de_GetInstanceOnboardingJobStatusCommand = async (output, context) => {
|
|
662
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
663
|
+
return de_CommandError(output, context);
|
|
664
|
+
}
|
|
665
|
+
const contents = smithyClient.map({
|
|
666
|
+
$metadata: deserializeMetadata(output),
|
|
667
|
+
});
|
|
668
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
669
|
+
const doc = smithyClient.take(data, {
|
|
670
|
+
connectInstanceOnboardingJobStatus: smithyClient._json,
|
|
671
|
+
});
|
|
672
|
+
Object.assign(contents, doc);
|
|
673
|
+
return contents;
|
|
1690
674
|
};
|
|
675
|
+
const de_ListCampaignsCommand = async (output, context) => {
|
|
676
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
677
|
+
return de_CommandError(output, context);
|
|
678
|
+
}
|
|
679
|
+
const contents = smithyClient.map({
|
|
680
|
+
$metadata: deserializeMetadata(output),
|
|
681
|
+
});
|
|
682
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
683
|
+
const doc = smithyClient.take(data, {
|
|
684
|
+
campaignSummaryList: smithyClient._json,
|
|
685
|
+
nextToken: smithyClient.expectString,
|
|
686
|
+
});
|
|
687
|
+
Object.assign(contents, doc);
|
|
688
|
+
return contents;
|
|
689
|
+
};
|
|
690
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
691
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
692
|
+
return de_CommandError(output, context);
|
|
693
|
+
}
|
|
694
|
+
const contents = smithyClient.map({
|
|
695
|
+
$metadata: deserializeMetadata(output),
|
|
696
|
+
});
|
|
697
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
698
|
+
const doc = smithyClient.take(data, {
|
|
699
|
+
tags: smithyClient._json,
|
|
700
|
+
});
|
|
701
|
+
Object.assign(contents, doc);
|
|
702
|
+
return contents;
|
|
703
|
+
};
|
|
704
|
+
const de_PauseCampaignCommand = async (output, context) => {
|
|
705
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
706
|
+
return de_CommandError(output, context);
|
|
707
|
+
}
|
|
708
|
+
const contents = smithyClient.map({
|
|
709
|
+
$metadata: deserializeMetadata(output),
|
|
710
|
+
});
|
|
711
|
+
await smithyClient.collectBody(output.body, context);
|
|
712
|
+
return contents;
|
|
713
|
+
};
|
|
714
|
+
const de_PutDialRequestBatchCommand = async (output, context) => {
|
|
715
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
716
|
+
return de_CommandError(output, context);
|
|
717
|
+
}
|
|
718
|
+
const contents = smithyClient.map({
|
|
719
|
+
$metadata: deserializeMetadata(output),
|
|
720
|
+
});
|
|
721
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
722
|
+
const doc = smithyClient.take(data, {
|
|
723
|
+
failedRequests: smithyClient._json,
|
|
724
|
+
successfulRequests: smithyClient._json,
|
|
725
|
+
});
|
|
726
|
+
Object.assign(contents, doc);
|
|
727
|
+
return contents;
|
|
728
|
+
};
|
|
729
|
+
const de_ResumeCampaignCommand = async (output, context) => {
|
|
730
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
731
|
+
return de_CommandError(output, context);
|
|
732
|
+
}
|
|
733
|
+
const contents = smithyClient.map({
|
|
734
|
+
$metadata: deserializeMetadata(output),
|
|
735
|
+
});
|
|
736
|
+
await smithyClient.collectBody(output.body, context);
|
|
737
|
+
return contents;
|
|
738
|
+
};
|
|
739
|
+
const de_StartCampaignCommand = async (output, context) => {
|
|
740
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
741
|
+
return de_CommandError(output, context);
|
|
742
|
+
}
|
|
743
|
+
const contents = smithyClient.map({
|
|
744
|
+
$metadata: deserializeMetadata(output),
|
|
745
|
+
});
|
|
746
|
+
await smithyClient.collectBody(output.body, context);
|
|
747
|
+
return contents;
|
|
748
|
+
};
|
|
749
|
+
const de_StartInstanceOnboardingJobCommand = async (output, context) => {
|
|
750
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
751
|
+
return de_CommandError(output, context);
|
|
752
|
+
}
|
|
753
|
+
const contents = smithyClient.map({
|
|
754
|
+
$metadata: deserializeMetadata(output),
|
|
755
|
+
});
|
|
756
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
757
|
+
const doc = smithyClient.take(data, {
|
|
758
|
+
connectInstanceOnboardingJobStatus: smithyClient._json,
|
|
759
|
+
});
|
|
760
|
+
Object.assign(contents, doc);
|
|
761
|
+
return contents;
|
|
762
|
+
};
|
|
763
|
+
const de_StopCampaignCommand = async (output, context) => {
|
|
764
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
765
|
+
return de_CommandError(output, context);
|
|
766
|
+
}
|
|
767
|
+
const contents = smithyClient.map({
|
|
768
|
+
$metadata: deserializeMetadata(output),
|
|
769
|
+
});
|
|
770
|
+
await smithyClient.collectBody(output.body, context);
|
|
771
|
+
return contents;
|
|
772
|
+
};
|
|
773
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
774
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
775
|
+
return de_CommandError(output, context);
|
|
776
|
+
}
|
|
777
|
+
const contents = smithyClient.map({
|
|
778
|
+
$metadata: deserializeMetadata(output),
|
|
779
|
+
});
|
|
780
|
+
await smithyClient.collectBody(output.body, context);
|
|
781
|
+
return contents;
|
|
782
|
+
};
|
|
783
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
784
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
785
|
+
return de_CommandError(output, context);
|
|
786
|
+
}
|
|
787
|
+
const contents = smithyClient.map({
|
|
788
|
+
$metadata: deserializeMetadata(output),
|
|
789
|
+
});
|
|
790
|
+
await smithyClient.collectBody(output.body, context);
|
|
791
|
+
return contents;
|
|
792
|
+
};
|
|
793
|
+
const de_UpdateCampaignDialerConfigCommand = async (output, context) => {
|
|
794
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
795
|
+
return de_CommandError(output, context);
|
|
796
|
+
}
|
|
797
|
+
const contents = smithyClient.map({
|
|
798
|
+
$metadata: deserializeMetadata(output),
|
|
799
|
+
});
|
|
800
|
+
await smithyClient.collectBody(output.body, context);
|
|
801
|
+
return contents;
|
|
802
|
+
};
|
|
803
|
+
const de_UpdateCampaignNameCommand = async (output, context) => {
|
|
804
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
805
|
+
return de_CommandError(output, context);
|
|
806
|
+
}
|
|
807
|
+
const contents = smithyClient.map({
|
|
808
|
+
$metadata: deserializeMetadata(output),
|
|
809
|
+
});
|
|
810
|
+
await smithyClient.collectBody(output.body, context);
|
|
811
|
+
return contents;
|
|
812
|
+
};
|
|
813
|
+
const de_UpdateCampaignOutboundCallConfigCommand = async (output, context) => {
|
|
814
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
815
|
+
return de_CommandError(output, context);
|
|
816
|
+
}
|
|
817
|
+
const contents = smithyClient.map({
|
|
818
|
+
$metadata: deserializeMetadata(output),
|
|
819
|
+
});
|
|
820
|
+
await smithyClient.collectBody(output.body, context);
|
|
821
|
+
return contents;
|
|
822
|
+
};
|
|
823
|
+
const de_CommandError = async (output, context) => {
|
|
824
|
+
const parsedOutput = {
|
|
825
|
+
...output,
|
|
826
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
827
|
+
};
|
|
828
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
829
|
+
switch (errorCode) {
|
|
830
|
+
case "AccessDeniedException":
|
|
831
|
+
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
832
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
833
|
+
case "ConflictException":
|
|
834
|
+
case "com.amazonaws.connectcampaigns#ConflictException":
|
|
835
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
836
|
+
case "InternalServerException":
|
|
837
|
+
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
838
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
839
|
+
case "ResourceNotFoundException":
|
|
840
|
+
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
841
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
842
|
+
case "ServiceQuotaExceededException":
|
|
843
|
+
case "com.amazonaws.connectcampaigns#ServiceQuotaExceededException":
|
|
844
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
845
|
+
case "ThrottlingException":
|
|
846
|
+
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
847
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
848
|
+
case "ValidationException":
|
|
849
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
850
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
851
|
+
case "InvalidStateException":
|
|
852
|
+
case "com.amazonaws.connectcampaigns#InvalidStateException":
|
|
853
|
+
throw await de_InvalidStateExceptionRes(parsedOutput);
|
|
854
|
+
case "InvalidCampaignStateException":
|
|
855
|
+
case "com.amazonaws.connectcampaigns#InvalidCampaignStateException":
|
|
856
|
+
throw await de_InvalidCampaignStateExceptionRes(parsedOutput);
|
|
857
|
+
default:
|
|
858
|
+
const parsedBody = parsedOutput.body;
|
|
859
|
+
return throwDefaultError({
|
|
860
|
+
output,
|
|
861
|
+
parsedBody,
|
|
862
|
+
errorCode,
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
};
|
|
866
|
+
const throwDefaultError = smithyClient.withBaseException(ConnectCampaignsServiceException);
|
|
867
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
868
|
+
const contents = smithyClient.map({
|
|
869
|
+
[_xAET]: [, parsedOutput.headers[_xae]],
|
|
870
|
+
});
|
|
871
|
+
const data = parsedOutput.body;
|
|
872
|
+
const doc = smithyClient.take(data, {
|
|
873
|
+
message: smithyClient.expectString,
|
|
874
|
+
});
|
|
875
|
+
Object.assign(contents, doc);
|
|
876
|
+
const exception = new AccessDeniedException({
|
|
877
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
878
|
+
...contents,
|
|
879
|
+
});
|
|
880
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
881
|
+
};
|
|
882
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
883
|
+
const contents = smithyClient.map({
|
|
884
|
+
[_xAET]: [, parsedOutput.headers[_xae]],
|
|
885
|
+
});
|
|
886
|
+
const data = parsedOutput.body;
|
|
887
|
+
const doc = smithyClient.take(data, {
|
|
888
|
+
message: smithyClient.expectString,
|
|
889
|
+
});
|
|
890
|
+
Object.assign(contents, doc);
|
|
891
|
+
const exception = new ConflictException({
|
|
892
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
893
|
+
...contents,
|
|
894
|
+
});
|
|
895
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
896
|
+
};
|
|
897
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
898
|
+
const contents = smithyClient.map({
|
|
899
|
+
[_xAET]: [, parsedOutput.headers[_xae]],
|
|
900
|
+
});
|
|
901
|
+
const data = parsedOutput.body;
|
|
902
|
+
const doc = smithyClient.take(data, {
|
|
903
|
+
message: smithyClient.expectString,
|
|
904
|
+
});
|
|
905
|
+
Object.assign(contents, doc);
|
|
906
|
+
const exception = new InternalServerException({
|
|
907
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
908
|
+
...contents,
|
|
909
|
+
});
|
|
910
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
911
|
+
};
|
|
912
|
+
const de_InvalidCampaignStateExceptionRes = async (parsedOutput, context) => {
|
|
913
|
+
const contents = smithyClient.map({
|
|
914
|
+
[_xAET]: [, parsedOutput.headers[_xae]],
|
|
915
|
+
});
|
|
916
|
+
const data = parsedOutput.body;
|
|
917
|
+
const doc = smithyClient.take(data, {
|
|
918
|
+
message: smithyClient.expectString,
|
|
919
|
+
state: smithyClient.expectString,
|
|
920
|
+
});
|
|
921
|
+
Object.assign(contents, doc);
|
|
922
|
+
const exception = new InvalidCampaignStateException({
|
|
923
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
924
|
+
...contents,
|
|
925
|
+
});
|
|
926
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
927
|
+
};
|
|
928
|
+
const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
929
|
+
const contents = smithyClient.map({
|
|
930
|
+
[_xAET]: [, parsedOutput.headers[_xae]],
|
|
931
|
+
});
|
|
932
|
+
const data = parsedOutput.body;
|
|
933
|
+
const doc = smithyClient.take(data, {
|
|
934
|
+
message: smithyClient.expectString,
|
|
935
|
+
});
|
|
936
|
+
Object.assign(contents, doc);
|
|
937
|
+
const exception = new InvalidStateException({
|
|
938
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
939
|
+
...contents,
|
|
940
|
+
});
|
|
941
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
942
|
+
};
|
|
943
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
944
|
+
const contents = smithyClient.map({
|
|
945
|
+
[_xAET]: [, parsedOutput.headers[_xae]],
|
|
946
|
+
});
|
|
947
|
+
const data = parsedOutput.body;
|
|
948
|
+
const doc = smithyClient.take(data, {
|
|
949
|
+
message: smithyClient.expectString,
|
|
950
|
+
});
|
|
951
|
+
Object.assign(contents, doc);
|
|
952
|
+
const exception = new ResourceNotFoundException({
|
|
953
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
954
|
+
...contents,
|
|
955
|
+
});
|
|
956
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
957
|
+
};
|
|
958
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
959
|
+
const contents = smithyClient.map({
|
|
960
|
+
[_xAET]: [, parsedOutput.headers[_xae]],
|
|
961
|
+
});
|
|
962
|
+
const data = parsedOutput.body;
|
|
963
|
+
const doc = smithyClient.take(data, {
|
|
964
|
+
message: smithyClient.expectString,
|
|
965
|
+
});
|
|
966
|
+
Object.assign(contents, doc);
|
|
967
|
+
const exception = new ServiceQuotaExceededException({
|
|
968
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
969
|
+
...contents,
|
|
970
|
+
});
|
|
971
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
972
|
+
};
|
|
973
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
974
|
+
const contents = smithyClient.map({
|
|
975
|
+
[_xAET]: [, parsedOutput.headers[_xae]],
|
|
976
|
+
});
|
|
977
|
+
const data = parsedOutput.body;
|
|
978
|
+
const doc = smithyClient.take(data, {
|
|
979
|
+
message: smithyClient.expectString,
|
|
980
|
+
});
|
|
981
|
+
Object.assign(contents, doc);
|
|
982
|
+
const exception = new ThrottlingException({
|
|
983
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
984
|
+
...contents,
|
|
985
|
+
});
|
|
986
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
987
|
+
};
|
|
988
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
989
|
+
const contents = smithyClient.map({
|
|
990
|
+
[_xAET]: [, parsedOutput.headers[_xae]],
|
|
991
|
+
});
|
|
992
|
+
const data = parsedOutput.body;
|
|
993
|
+
const doc = smithyClient.take(data, {
|
|
994
|
+
message: smithyClient.expectString,
|
|
995
|
+
});
|
|
996
|
+
Object.assign(contents, doc);
|
|
997
|
+
const exception = new ValidationException({
|
|
998
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
999
|
+
...contents,
|
|
1000
|
+
});
|
|
1001
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1002
|
+
};
|
|
1003
|
+
const se_AgentlessDialerConfig = (input, context) => {
|
|
1004
|
+
return smithyClient.take(input, {
|
|
1005
|
+
dialingCapacity: smithyClient.serializeFloat,
|
|
1006
|
+
});
|
|
1007
|
+
};
|
|
1008
|
+
const se_DialerConfig = (input, context) => {
|
|
1009
|
+
return exports.DialerConfig.visit(input, {
|
|
1010
|
+
agentlessDialerConfig: (value) => ({ agentlessDialerConfig: se_AgentlessDialerConfig(value) }),
|
|
1011
|
+
predictiveDialerConfig: (value) => ({ predictiveDialerConfig: se_PredictiveDialerConfig(value) }),
|
|
1012
|
+
progressiveDialerConfig: (value) => ({ progressiveDialerConfig: se_ProgressiveDialerConfig(value) }),
|
|
1013
|
+
_: (name, value) => ({ [name]: value }),
|
|
1014
|
+
});
|
|
1015
|
+
};
|
|
1016
|
+
const se_DialRequest = (input, context) => {
|
|
1017
|
+
return smithyClient.take(input, {
|
|
1018
|
+
attributes: smithyClient._json,
|
|
1019
|
+
clientToken: [],
|
|
1020
|
+
expirationTime: smithyClient.serializeDateTime,
|
|
1021
|
+
phoneNumber: [],
|
|
1022
|
+
});
|
|
1023
|
+
};
|
|
1024
|
+
const se_DialRequestList = (input, context) => {
|
|
1025
|
+
return input
|
|
1026
|
+
.filter((e) => e != null)
|
|
1027
|
+
.map((entry) => {
|
|
1028
|
+
return se_DialRequest(entry);
|
|
1029
|
+
});
|
|
1030
|
+
};
|
|
1031
|
+
const se_PredictiveDialerConfig = (input, context) => {
|
|
1032
|
+
return smithyClient.take(input, {
|
|
1033
|
+
bandwidthAllocation: smithyClient.serializeFloat,
|
|
1034
|
+
dialingCapacity: smithyClient.serializeFloat,
|
|
1035
|
+
});
|
|
1036
|
+
};
|
|
1037
|
+
const se_ProgressiveDialerConfig = (input, context) => {
|
|
1038
|
+
return smithyClient.take(input, {
|
|
1039
|
+
bandwidthAllocation: smithyClient.serializeFloat,
|
|
1040
|
+
dialingCapacity: smithyClient.serializeFloat,
|
|
1041
|
+
});
|
|
1042
|
+
};
|
|
1043
|
+
const de_AgentlessDialerConfig = (output, context) => {
|
|
1044
|
+
return smithyClient.take(output, {
|
|
1045
|
+
dialingCapacity: smithyClient.limitedParseDouble,
|
|
1046
|
+
});
|
|
1047
|
+
};
|
|
1048
|
+
const de_Campaign = (output, context) => {
|
|
1049
|
+
return smithyClient.take(output, {
|
|
1050
|
+
arn: smithyClient.expectString,
|
|
1051
|
+
connectInstanceId: smithyClient.expectString,
|
|
1052
|
+
dialerConfig: (_) => de_DialerConfig(core$1.awsExpectUnion(_)),
|
|
1053
|
+
id: smithyClient.expectString,
|
|
1054
|
+
name: smithyClient.expectString,
|
|
1055
|
+
outboundCallConfig: smithyClient._json,
|
|
1056
|
+
tags: smithyClient._json,
|
|
1057
|
+
});
|
|
1058
|
+
};
|
|
1059
|
+
const de_DialerConfig = (output, context) => {
|
|
1060
|
+
if (output.agentlessDialerConfig != null) {
|
|
1061
|
+
return {
|
|
1062
|
+
agentlessDialerConfig: de_AgentlessDialerConfig(output.agentlessDialerConfig),
|
|
1063
|
+
};
|
|
1064
|
+
}
|
|
1065
|
+
if (output.predictiveDialerConfig != null) {
|
|
1066
|
+
return {
|
|
1067
|
+
predictiveDialerConfig: de_PredictiveDialerConfig(output.predictiveDialerConfig),
|
|
1068
|
+
};
|
|
1069
|
+
}
|
|
1070
|
+
if (output.progressiveDialerConfig != null) {
|
|
1071
|
+
return {
|
|
1072
|
+
progressiveDialerConfig: de_ProgressiveDialerConfig(output.progressiveDialerConfig),
|
|
1073
|
+
};
|
|
1074
|
+
}
|
|
1075
|
+
return { $unknown: Object.entries(output)[0] };
|
|
1076
|
+
};
|
|
1077
|
+
const de_PredictiveDialerConfig = (output, context) => {
|
|
1078
|
+
return smithyClient.take(output, {
|
|
1079
|
+
bandwidthAllocation: smithyClient.limitedParseDouble,
|
|
1080
|
+
dialingCapacity: smithyClient.limitedParseDouble,
|
|
1081
|
+
});
|
|
1082
|
+
};
|
|
1083
|
+
const de_ProgressiveDialerConfig = (output, context) => {
|
|
1084
|
+
return smithyClient.take(output, {
|
|
1085
|
+
bandwidthAllocation: smithyClient.limitedParseDouble,
|
|
1086
|
+
dialingCapacity: smithyClient.limitedParseDouble,
|
|
1087
|
+
});
|
|
1088
|
+
};
|
|
1089
|
+
const deserializeMetadata = (output) => ({
|
|
1090
|
+
httpStatusCode: output.statusCode,
|
|
1091
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1092
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1093
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1094
|
+
});
|
|
1095
|
+
const _tK = "tagKeys";
|
|
1096
|
+
const _xAET = "xAmzErrorType";
|
|
1097
|
+
const _xae = "x-amzn-errortype";
|
|
1098
|
+
|
|
1099
|
+
class CreateCampaignCommand extends smithyClient.Command
|
|
1100
|
+
.classBuilder()
|
|
1101
|
+
.ep(commonParams)
|
|
1102
|
+
.m(function (Command, cs, config, o) {
|
|
1103
|
+
return [
|
|
1104
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1105
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1106
|
+
];
|
|
1107
|
+
})
|
|
1108
|
+
.s("AmazonConnectCampaignService", "CreateCampaign", {})
|
|
1109
|
+
.n("ConnectCampaignsClient", "CreateCampaignCommand")
|
|
1110
|
+
.f(void 0, void 0)
|
|
1111
|
+
.ser(se_CreateCampaignCommand)
|
|
1112
|
+
.de(de_CreateCampaignCommand)
|
|
1113
|
+
.build() {
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
class DeleteCampaignCommand extends smithyClient.Command
|
|
1117
|
+
.classBuilder()
|
|
1118
|
+
.ep(commonParams)
|
|
1119
|
+
.m(function (Command, cs, config, o) {
|
|
1120
|
+
return [
|
|
1121
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1122
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1123
|
+
];
|
|
1124
|
+
})
|
|
1125
|
+
.s("AmazonConnectCampaignService", "DeleteCampaign", {})
|
|
1126
|
+
.n("ConnectCampaignsClient", "DeleteCampaignCommand")
|
|
1127
|
+
.f(void 0, void 0)
|
|
1128
|
+
.ser(se_DeleteCampaignCommand)
|
|
1129
|
+
.de(de_DeleteCampaignCommand)
|
|
1130
|
+
.build() {
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
class DeleteConnectInstanceConfigCommand extends smithyClient.Command
|
|
1134
|
+
.classBuilder()
|
|
1135
|
+
.ep(commonParams)
|
|
1136
|
+
.m(function (Command, cs, config, o) {
|
|
1137
|
+
return [
|
|
1138
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1139
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1140
|
+
];
|
|
1141
|
+
})
|
|
1142
|
+
.s("AmazonConnectCampaignService", "DeleteConnectInstanceConfig", {})
|
|
1143
|
+
.n("ConnectCampaignsClient", "DeleteConnectInstanceConfigCommand")
|
|
1144
|
+
.f(void 0, void 0)
|
|
1145
|
+
.ser(se_DeleteConnectInstanceConfigCommand)
|
|
1146
|
+
.de(de_DeleteConnectInstanceConfigCommand)
|
|
1147
|
+
.build() {
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
class DeleteInstanceOnboardingJobCommand extends smithyClient.Command
|
|
1151
|
+
.classBuilder()
|
|
1152
|
+
.ep(commonParams)
|
|
1153
|
+
.m(function (Command, cs, config, o) {
|
|
1154
|
+
return [
|
|
1155
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1156
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1157
|
+
];
|
|
1158
|
+
})
|
|
1159
|
+
.s("AmazonConnectCampaignService", "DeleteInstanceOnboardingJob", {})
|
|
1160
|
+
.n("ConnectCampaignsClient", "DeleteInstanceOnboardingJobCommand")
|
|
1161
|
+
.f(void 0, void 0)
|
|
1162
|
+
.ser(se_DeleteInstanceOnboardingJobCommand)
|
|
1163
|
+
.de(de_DeleteInstanceOnboardingJobCommand)
|
|
1164
|
+
.build() {
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
class DescribeCampaignCommand extends smithyClient.Command
|
|
1168
|
+
.classBuilder()
|
|
1169
|
+
.ep(commonParams)
|
|
1170
|
+
.m(function (Command, cs, config, o) {
|
|
1171
|
+
return [
|
|
1172
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1173
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1174
|
+
];
|
|
1175
|
+
})
|
|
1176
|
+
.s("AmazonConnectCampaignService", "DescribeCampaign", {})
|
|
1177
|
+
.n("ConnectCampaignsClient", "DescribeCampaignCommand")
|
|
1178
|
+
.f(void 0, void 0)
|
|
1179
|
+
.ser(se_DescribeCampaignCommand)
|
|
1180
|
+
.de(de_DescribeCampaignCommand)
|
|
1181
|
+
.build() {
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
class GetCampaignStateBatchCommand extends smithyClient.Command
|
|
1185
|
+
.classBuilder()
|
|
1186
|
+
.ep(commonParams)
|
|
1187
|
+
.m(function (Command, cs, config, o) {
|
|
1188
|
+
return [
|
|
1189
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1190
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1191
|
+
];
|
|
1192
|
+
})
|
|
1193
|
+
.s("AmazonConnectCampaignService", "GetCampaignStateBatch", {})
|
|
1194
|
+
.n("ConnectCampaignsClient", "GetCampaignStateBatchCommand")
|
|
1195
|
+
.f(void 0, void 0)
|
|
1196
|
+
.ser(se_GetCampaignStateBatchCommand)
|
|
1197
|
+
.de(de_GetCampaignStateBatchCommand)
|
|
1198
|
+
.build() {
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
class GetCampaignStateCommand extends smithyClient.Command
|
|
1202
|
+
.classBuilder()
|
|
1203
|
+
.ep(commonParams)
|
|
1204
|
+
.m(function (Command, cs, config, o) {
|
|
1205
|
+
return [
|
|
1206
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1207
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1208
|
+
];
|
|
1209
|
+
})
|
|
1210
|
+
.s("AmazonConnectCampaignService", "GetCampaignState", {})
|
|
1211
|
+
.n("ConnectCampaignsClient", "GetCampaignStateCommand")
|
|
1212
|
+
.f(void 0, void 0)
|
|
1213
|
+
.ser(se_GetCampaignStateCommand)
|
|
1214
|
+
.de(de_GetCampaignStateCommand)
|
|
1215
|
+
.build() {
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
class GetConnectInstanceConfigCommand extends smithyClient.Command
|
|
1219
|
+
.classBuilder()
|
|
1220
|
+
.ep(commonParams)
|
|
1221
|
+
.m(function (Command, cs, config, o) {
|
|
1222
|
+
return [
|
|
1223
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1224
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1225
|
+
];
|
|
1226
|
+
})
|
|
1227
|
+
.s("AmazonConnectCampaignService", "GetConnectInstanceConfig", {})
|
|
1228
|
+
.n("ConnectCampaignsClient", "GetConnectInstanceConfigCommand")
|
|
1229
|
+
.f(void 0, void 0)
|
|
1230
|
+
.ser(se_GetConnectInstanceConfigCommand)
|
|
1231
|
+
.de(de_GetConnectInstanceConfigCommand)
|
|
1232
|
+
.build() {
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
class GetInstanceOnboardingJobStatusCommand extends smithyClient.Command
|
|
1236
|
+
.classBuilder()
|
|
1237
|
+
.ep(commonParams)
|
|
1238
|
+
.m(function (Command, cs, config, o) {
|
|
1239
|
+
return [
|
|
1240
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1241
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1242
|
+
];
|
|
1243
|
+
})
|
|
1244
|
+
.s("AmazonConnectCampaignService", "GetInstanceOnboardingJobStatus", {})
|
|
1245
|
+
.n("ConnectCampaignsClient", "GetInstanceOnboardingJobStatusCommand")
|
|
1246
|
+
.f(void 0, void 0)
|
|
1247
|
+
.ser(se_GetInstanceOnboardingJobStatusCommand)
|
|
1248
|
+
.de(de_GetInstanceOnboardingJobStatusCommand)
|
|
1249
|
+
.build() {
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
class ListCampaignsCommand extends smithyClient.Command
|
|
1253
|
+
.classBuilder()
|
|
1254
|
+
.ep(commonParams)
|
|
1255
|
+
.m(function (Command, cs, config, o) {
|
|
1256
|
+
return [
|
|
1257
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1258
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1259
|
+
];
|
|
1260
|
+
})
|
|
1261
|
+
.s("AmazonConnectCampaignService", "ListCampaigns", {})
|
|
1262
|
+
.n("ConnectCampaignsClient", "ListCampaignsCommand")
|
|
1263
|
+
.f(void 0, void 0)
|
|
1264
|
+
.ser(se_ListCampaignsCommand)
|
|
1265
|
+
.de(de_ListCampaignsCommand)
|
|
1266
|
+
.build() {
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
1270
|
+
.classBuilder()
|
|
1271
|
+
.ep(commonParams)
|
|
1272
|
+
.m(function (Command, cs, config, o) {
|
|
1273
|
+
return [
|
|
1274
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1275
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1276
|
+
];
|
|
1277
|
+
})
|
|
1278
|
+
.s("AmazonConnectCampaignService", "ListTagsForResource", {})
|
|
1279
|
+
.n("ConnectCampaignsClient", "ListTagsForResourceCommand")
|
|
1280
|
+
.f(void 0, void 0)
|
|
1281
|
+
.ser(se_ListTagsForResourceCommand)
|
|
1282
|
+
.de(de_ListTagsForResourceCommand)
|
|
1283
|
+
.build() {
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
class PauseCampaignCommand extends smithyClient.Command
|
|
1287
|
+
.classBuilder()
|
|
1288
|
+
.ep(commonParams)
|
|
1289
|
+
.m(function (Command, cs, config, o) {
|
|
1290
|
+
return [
|
|
1291
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1292
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1293
|
+
];
|
|
1294
|
+
})
|
|
1295
|
+
.s("AmazonConnectCampaignService", "PauseCampaign", {})
|
|
1296
|
+
.n("ConnectCampaignsClient", "PauseCampaignCommand")
|
|
1297
|
+
.f(void 0, void 0)
|
|
1298
|
+
.ser(se_PauseCampaignCommand)
|
|
1299
|
+
.de(de_PauseCampaignCommand)
|
|
1300
|
+
.build() {
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
class PutDialRequestBatchCommand extends smithyClient.Command
|
|
1304
|
+
.classBuilder()
|
|
1305
|
+
.ep(commonParams)
|
|
1306
|
+
.m(function (Command, cs, config, o) {
|
|
1307
|
+
return [
|
|
1308
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1309
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1310
|
+
];
|
|
1311
|
+
})
|
|
1312
|
+
.s("AmazonConnectCampaignService", "PutDialRequestBatch", {})
|
|
1313
|
+
.n("ConnectCampaignsClient", "PutDialRequestBatchCommand")
|
|
1314
|
+
.f(PutDialRequestBatchRequestFilterSensitiveLog, void 0)
|
|
1315
|
+
.ser(se_PutDialRequestBatchCommand)
|
|
1316
|
+
.de(de_PutDialRequestBatchCommand)
|
|
1317
|
+
.build() {
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
class ResumeCampaignCommand extends smithyClient.Command
|
|
1321
|
+
.classBuilder()
|
|
1322
|
+
.ep(commonParams)
|
|
1323
|
+
.m(function (Command, cs, config, o) {
|
|
1324
|
+
return [
|
|
1325
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1326
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1327
|
+
];
|
|
1328
|
+
})
|
|
1329
|
+
.s("AmazonConnectCampaignService", "ResumeCampaign", {})
|
|
1330
|
+
.n("ConnectCampaignsClient", "ResumeCampaignCommand")
|
|
1331
|
+
.f(void 0, void 0)
|
|
1332
|
+
.ser(se_ResumeCampaignCommand)
|
|
1333
|
+
.de(de_ResumeCampaignCommand)
|
|
1334
|
+
.build() {
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
class StartCampaignCommand extends smithyClient.Command
|
|
1338
|
+
.classBuilder()
|
|
1339
|
+
.ep(commonParams)
|
|
1340
|
+
.m(function (Command, cs, config, o) {
|
|
1341
|
+
return [
|
|
1342
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1343
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1344
|
+
];
|
|
1345
|
+
})
|
|
1346
|
+
.s("AmazonConnectCampaignService", "StartCampaign", {})
|
|
1347
|
+
.n("ConnectCampaignsClient", "StartCampaignCommand")
|
|
1348
|
+
.f(void 0, void 0)
|
|
1349
|
+
.ser(se_StartCampaignCommand)
|
|
1350
|
+
.de(de_StartCampaignCommand)
|
|
1351
|
+
.build() {
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
class StartInstanceOnboardingJobCommand extends smithyClient.Command
|
|
1355
|
+
.classBuilder()
|
|
1356
|
+
.ep(commonParams)
|
|
1357
|
+
.m(function (Command, cs, config, o) {
|
|
1358
|
+
return [
|
|
1359
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1360
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1361
|
+
];
|
|
1362
|
+
})
|
|
1363
|
+
.s("AmazonConnectCampaignService", "StartInstanceOnboardingJob", {})
|
|
1364
|
+
.n("ConnectCampaignsClient", "StartInstanceOnboardingJobCommand")
|
|
1365
|
+
.f(void 0, void 0)
|
|
1366
|
+
.ser(se_StartInstanceOnboardingJobCommand)
|
|
1367
|
+
.de(de_StartInstanceOnboardingJobCommand)
|
|
1368
|
+
.build() {
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
class StopCampaignCommand extends smithyClient.Command
|
|
1372
|
+
.classBuilder()
|
|
1373
|
+
.ep(commonParams)
|
|
1374
|
+
.m(function (Command, cs, config, o) {
|
|
1375
|
+
return [
|
|
1376
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1377
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1378
|
+
];
|
|
1379
|
+
})
|
|
1380
|
+
.s("AmazonConnectCampaignService", "StopCampaign", {})
|
|
1381
|
+
.n("ConnectCampaignsClient", "StopCampaignCommand")
|
|
1382
|
+
.f(void 0, void 0)
|
|
1383
|
+
.ser(se_StopCampaignCommand)
|
|
1384
|
+
.de(de_StopCampaignCommand)
|
|
1385
|
+
.build() {
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1389
|
+
.classBuilder()
|
|
1390
|
+
.ep(commonParams)
|
|
1391
|
+
.m(function (Command, cs, config, o) {
|
|
1392
|
+
return [
|
|
1393
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1394
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1395
|
+
];
|
|
1396
|
+
})
|
|
1397
|
+
.s("AmazonConnectCampaignService", "TagResource", {})
|
|
1398
|
+
.n("ConnectCampaignsClient", "TagResourceCommand")
|
|
1399
|
+
.f(void 0, void 0)
|
|
1400
|
+
.ser(se_TagResourceCommand)
|
|
1401
|
+
.de(de_TagResourceCommand)
|
|
1402
|
+
.build() {
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1406
|
+
.classBuilder()
|
|
1407
|
+
.ep(commonParams)
|
|
1408
|
+
.m(function (Command, cs, config, o) {
|
|
1409
|
+
return [
|
|
1410
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1411
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1412
|
+
];
|
|
1413
|
+
})
|
|
1414
|
+
.s("AmazonConnectCampaignService", "UntagResource", {})
|
|
1415
|
+
.n("ConnectCampaignsClient", "UntagResourceCommand")
|
|
1416
|
+
.f(void 0, void 0)
|
|
1417
|
+
.ser(se_UntagResourceCommand)
|
|
1418
|
+
.de(de_UntagResourceCommand)
|
|
1419
|
+
.build() {
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
class UpdateCampaignDialerConfigCommand extends smithyClient.Command
|
|
1423
|
+
.classBuilder()
|
|
1424
|
+
.ep(commonParams)
|
|
1425
|
+
.m(function (Command, cs, config, o) {
|
|
1426
|
+
return [
|
|
1427
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1428
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1429
|
+
];
|
|
1430
|
+
})
|
|
1431
|
+
.s("AmazonConnectCampaignService", "UpdateCampaignDialerConfig", {})
|
|
1432
|
+
.n("ConnectCampaignsClient", "UpdateCampaignDialerConfigCommand")
|
|
1433
|
+
.f(void 0, void 0)
|
|
1434
|
+
.ser(se_UpdateCampaignDialerConfigCommand)
|
|
1435
|
+
.de(de_UpdateCampaignDialerConfigCommand)
|
|
1436
|
+
.build() {
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
class UpdateCampaignNameCommand extends smithyClient.Command
|
|
1440
|
+
.classBuilder()
|
|
1441
|
+
.ep(commonParams)
|
|
1442
|
+
.m(function (Command, cs, config, o) {
|
|
1443
|
+
return [
|
|
1444
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1445
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1446
|
+
];
|
|
1447
|
+
})
|
|
1448
|
+
.s("AmazonConnectCampaignService", "UpdateCampaignName", {})
|
|
1449
|
+
.n("ConnectCampaignsClient", "UpdateCampaignNameCommand")
|
|
1450
|
+
.f(void 0, void 0)
|
|
1451
|
+
.ser(se_UpdateCampaignNameCommand)
|
|
1452
|
+
.de(de_UpdateCampaignNameCommand)
|
|
1453
|
+
.build() {
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
class UpdateCampaignOutboundCallConfigCommand extends smithyClient.Command
|
|
1457
|
+
.classBuilder()
|
|
1458
|
+
.ep(commonParams)
|
|
1459
|
+
.m(function (Command, cs, config, o) {
|
|
1460
|
+
return [
|
|
1461
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1462
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1463
|
+
];
|
|
1464
|
+
})
|
|
1465
|
+
.s("AmazonConnectCampaignService", "UpdateCampaignOutboundCallConfig", {})
|
|
1466
|
+
.n("ConnectCampaignsClient", "UpdateCampaignOutboundCallConfigCommand")
|
|
1467
|
+
.f(void 0, void 0)
|
|
1468
|
+
.ser(se_UpdateCampaignOutboundCallConfigCommand)
|
|
1469
|
+
.de(de_UpdateCampaignOutboundCallConfigCommand)
|
|
1470
|
+
.build() {
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
const commands = {
|
|
1474
|
+
CreateCampaignCommand,
|
|
1475
|
+
DeleteCampaignCommand,
|
|
1476
|
+
DeleteConnectInstanceConfigCommand,
|
|
1477
|
+
DeleteInstanceOnboardingJobCommand,
|
|
1478
|
+
DescribeCampaignCommand,
|
|
1479
|
+
GetCampaignStateCommand,
|
|
1480
|
+
GetCampaignStateBatchCommand,
|
|
1481
|
+
GetConnectInstanceConfigCommand,
|
|
1482
|
+
GetInstanceOnboardingJobStatusCommand,
|
|
1483
|
+
ListCampaignsCommand,
|
|
1484
|
+
ListTagsForResourceCommand,
|
|
1485
|
+
PauseCampaignCommand,
|
|
1486
|
+
PutDialRequestBatchCommand,
|
|
1487
|
+
ResumeCampaignCommand,
|
|
1488
|
+
StartCampaignCommand,
|
|
1489
|
+
StartInstanceOnboardingJobCommand,
|
|
1490
|
+
StopCampaignCommand,
|
|
1491
|
+
TagResourceCommand,
|
|
1492
|
+
UntagResourceCommand,
|
|
1493
|
+
UpdateCampaignDialerConfigCommand,
|
|
1494
|
+
UpdateCampaignNameCommand,
|
|
1495
|
+
UpdateCampaignOutboundCallConfigCommand,
|
|
1496
|
+
};
|
|
1497
|
+
class ConnectCampaigns extends ConnectCampaignsClient {
|
|
1498
|
+
}
|
|
1499
|
+
smithyClient.createAggregatedClient(commands, ConnectCampaigns);
|
|
1691
1500
|
|
|
1692
|
-
|
|
1693
|
-
var commands = {
|
|
1694
|
-
CreateCampaignCommand,
|
|
1695
|
-
DeleteCampaignCommand,
|
|
1696
|
-
DeleteConnectInstanceConfigCommand,
|
|
1697
|
-
DeleteInstanceOnboardingJobCommand,
|
|
1698
|
-
DescribeCampaignCommand,
|
|
1699
|
-
GetCampaignStateCommand,
|
|
1700
|
-
GetCampaignStateBatchCommand,
|
|
1701
|
-
GetConnectInstanceConfigCommand,
|
|
1702
|
-
GetInstanceOnboardingJobStatusCommand,
|
|
1703
|
-
ListCampaignsCommand,
|
|
1704
|
-
ListTagsForResourceCommand,
|
|
1705
|
-
PauseCampaignCommand,
|
|
1706
|
-
PutDialRequestBatchCommand,
|
|
1707
|
-
ResumeCampaignCommand,
|
|
1708
|
-
StartCampaignCommand,
|
|
1709
|
-
StartInstanceOnboardingJobCommand,
|
|
1710
|
-
StopCampaignCommand,
|
|
1711
|
-
TagResourceCommand,
|
|
1712
|
-
UntagResourceCommand,
|
|
1713
|
-
UpdateCampaignDialerConfigCommand,
|
|
1714
|
-
UpdateCampaignNameCommand,
|
|
1715
|
-
UpdateCampaignOutboundCallConfigCommand
|
|
1716
|
-
};
|
|
1717
|
-
var ConnectCampaigns = class extends ConnectCampaignsClient {
|
|
1718
|
-
static {
|
|
1719
|
-
__name(this, "ConnectCampaigns");
|
|
1720
|
-
}
|
|
1721
|
-
};
|
|
1722
|
-
(0, import_smithy_client.createAggregatedClient)(commands, ConnectCampaigns);
|
|
1723
|
-
|
|
1724
|
-
// src/pagination/ListCampaignsPaginator.ts
|
|
1725
|
-
|
|
1726
|
-
var paginateListCampaigns = (0, import_core.createPaginator)(ConnectCampaignsClient, ListCampaignsCommand, "nextToken", "nextToken", "maxResults");
|
|
1727
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1501
|
+
const paginateListCampaigns = core.createPaginator(ConnectCampaignsClient, ListCampaignsCommand, "nextToken", "nextToken", "maxResults");
|
|
1728
1502
|
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
ConnectCampaignsClient,
|
|
1733
|
-
ConnectCampaigns,
|
|
1734
|
-
$Command,
|
|
1735
|
-
CreateCampaignCommand,
|
|
1736
|
-
DeleteCampaignCommand,
|
|
1737
|
-
DeleteConnectInstanceConfigCommand,
|
|
1738
|
-
DeleteInstanceOnboardingJobCommand,
|
|
1739
|
-
DescribeCampaignCommand,
|
|
1740
|
-
GetCampaignStateBatchCommand,
|
|
1741
|
-
GetCampaignStateCommand,
|
|
1742
|
-
GetConnectInstanceConfigCommand,
|
|
1743
|
-
GetInstanceOnboardingJobStatusCommand,
|
|
1744
|
-
ListCampaignsCommand,
|
|
1745
|
-
ListTagsForResourceCommand,
|
|
1746
|
-
PauseCampaignCommand,
|
|
1747
|
-
PutDialRequestBatchCommand,
|
|
1748
|
-
ResumeCampaignCommand,
|
|
1749
|
-
StartCampaignCommand,
|
|
1750
|
-
StartInstanceOnboardingJobCommand,
|
|
1751
|
-
StopCampaignCommand,
|
|
1752
|
-
TagResourceCommand,
|
|
1753
|
-
UntagResourceCommand,
|
|
1754
|
-
UpdateCampaignDialerConfigCommand,
|
|
1755
|
-
UpdateCampaignNameCommand,
|
|
1756
|
-
UpdateCampaignOutboundCallConfigCommand,
|
|
1757
|
-
paginateListCampaigns,
|
|
1758
|
-
AccessDeniedException,
|
|
1759
|
-
ConflictException,
|
|
1760
|
-
DialerConfig,
|
|
1761
|
-
InternalServerException,
|
|
1762
|
-
ResourceNotFoundException,
|
|
1763
|
-
ServiceQuotaExceededException,
|
|
1764
|
-
ThrottlingException,
|
|
1765
|
-
ValidationException,
|
|
1766
|
-
InvalidStateException,
|
|
1767
|
-
CampaignState,
|
|
1768
|
-
GetCampaignStateBatchFailureCode,
|
|
1769
|
-
EncryptionType,
|
|
1770
|
-
InstanceOnboardingJobFailureCode,
|
|
1771
|
-
InstanceOnboardingJobStatusCode,
|
|
1772
|
-
InstanceIdFilterOperator,
|
|
1773
|
-
InvalidCampaignStateException,
|
|
1774
|
-
FailureCode,
|
|
1775
|
-
DialRequestFilterSensitiveLog,
|
|
1776
|
-
PutDialRequestBatchRequestFilterSensitiveLog
|
|
1503
|
+
Object.defineProperty(exports, "$Command", {
|
|
1504
|
+
enumerable: true,
|
|
1505
|
+
get: function () { return smithyClient.Command; }
|
|
1777
1506
|
});
|
|
1778
|
-
|
|
1507
|
+
Object.defineProperty(exports, "__Client", {
|
|
1508
|
+
enumerable: true,
|
|
1509
|
+
get: function () { return smithyClient.Client; }
|
|
1510
|
+
});
|
|
1511
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1512
|
+
exports.CampaignState = CampaignState;
|
|
1513
|
+
exports.ConflictException = ConflictException;
|
|
1514
|
+
exports.ConnectCampaigns = ConnectCampaigns;
|
|
1515
|
+
exports.ConnectCampaignsClient = ConnectCampaignsClient;
|
|
1516
|
+
exports.ConnectCampaignsServiceException = ConnectCampaignsServiceException;
|
|
1517
|
+
exports.CreateCampaignCommand = CreateCampaignCommand;
|
|
1518
|
+
exports.DeleteCampaignCommand = DeleteCampaignCommand;
|
|
1519
|
+
exports.DeleteConnectInstanceConfigCommand = DeleteConnectInstanceConfigCommand;
|
|
1520
|
+
exports.DeleteInstanceOnboardingJobCommand = DeleteInstanceOnboardingJobCommand;
|
|
1521
|
+
exports.DescribeCampaignCommand = DescribeCampaignCommand;
|
|
1522
|
+
exports.DialRequestFilterSensitiveLog = DialRequestFilterSensitiveLog;
|
|
1523
|
+
exports.EncryptionType = EncryptionType;
|
|
1524
|
+
exports.FailureCode = FailureCode;
|
|
1525
|
+
exports.GetCampaignStateBatchCommand = GetCampaignStateBatchCommand;
|
|
1526
|
+
exports.GetCampaignStateBatchFailureCode = GetCampaignStateBatchFailureCode;
|
|
1527
|
+
exports.GetCampaignStateCommand = GetCampaignStateCommand;
|
|
1528
|
+
exports.GetConnectInstanceConfigCommand = GetConnectInstanceConfigCommand;
|
|
1529
|
+
exports.GetInstanceOnboardingJobStatusCommand = GetInstanceOnboardingJobStatusCommand;
|
|
1530
|
+
exports.InstanceIdFilterOperator = InstanceIdFilterOperator;
|
|
1531
|
+
exports.InstanceOnboardingJobFailureCode = InstanceOnboardingJobFailureCode;
|
|
1532
|
+
exports.InstanceOnboardingJobStatusCode = InstanceOnboardingJobStatusCode;
|
|
1533
|
+
exports.InternalServerException = InternalServerException;
|
|
1534
|
+
exports.InvalidCampaignStateException = InvalidCampaignStateException;
|
|
1535
|
+
exports.InvalidStateException = InvalidStateException;
|
|
1536
|
+
exports.ListCampaignsCommand = ListCampaignsCommand;
|
|
1537
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1538
|
+
exports.PauseCampaignCommand = PauseCampaignCommand;
|
|
1539
|
+
exports.PutDialRequestBatchCommand = PutDialRequestBatchCommand;
|
|
1540
|
+
exports.PutDialRequestBatchRequestFilterSensitiveLog = PutDialRequestBatchRequestFilterSensitiveLog;
|
|
1541
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1542
|
+
exports.ResumeCampaignCommand = ResumeCampaignCommand;
|
|
1543
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
1544
|
+
exports.StartCampaignCommand = StartCampaignCommand;
|
|
1545
|
+
exports.StartInstanceOnboardingJobCommand = StartInstanceOnboardingJobCommand;
|
|
1546
|
+
exports.StopCampaignCommand = StopCampaignCommand;
|
|
1547
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1548
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1549
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1550
|
+
exports.UpdateCampaignDialerConfigCommand = UpdateCampaignDialerConfigCommand;
|
|
1551
|
+
exports.UpdateCampaignNameCommand = UpdateCampaignNameCommand;
|
|
1552
|
+
exports.UpdateCampaignOutboundCallConfigCommand = UpdateCampaignOutboundCallConfigCommand;
|
|
1553
|
+
exports.ValidationException = ValidationException;
|
|
1554
|
+
exports.paginateListCampaigns = paginateListCampaigns;
|