@aws-sdk/client-connectcampaigns 3.303.0 → 3.309.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/commands/CreateCampaignCommand.js +2 -2
- package/dist-cjs/commands/DeleteCampaignCommand.js +2 -2
- package/dist-cjs/commands/DeleteConnectInstanceConfigCommand.js +2 -2
- package/dist-cjs/commands/DeleteInstanceOnboardingJobCommand.js +2 -2
- package/dist-cjs/commands/DescribeCampaignCommand.js +2 -2
- package/dist-cjs/commands/GetCampaignStateBatchCommand.js +2 -2
- package/dist-cjs/commands/GetCampaignStateCommand.js +2 -2
- package/dist-cjs/commands/GetConnectInstanceConfigCommand.js +2 -2
- package/dist-cjs/commands/GetInstanceOnboardingJobStatusCommand.js +2 -2
- package/dist-cjs/commands/ListCampaignsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PauseCampaignCommand.js +2 -2
- package/dist-cjs/commands/PutDialRequestBatchCommand.js +2 -2
- package/dist-cjs/commands/ResumeCampaignCommand.js +2 -2
- package/dist-cjs/commands/StartCampaignCommand.js +2 -2
- package/dist-cjs/commands/StartInstanceOnboardingJobCommand.js +2 -2
- package/dist-cjs/commands/StopCampaignCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateCampaignDialerConfigCommand.js +2 -2
- package/dist-cjs/commands/UpdateCampaignNameCommand.js +2 -2
- package/dist-cjs/commands/UpdateCampaignOutboundCallConfigCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +332 -352
- package/dist-es/commands/CreateCampaignCommand.js +3 -3
- package/dist-es/commands/DeleteCampaignCommand.js +3 -3
- package/dist-es/commands/DeleteConnectInstanceConfigCommand.js +3 -3
- package/dist-es/commands/DeleteInstanceOnboardingJobCommand.js +3 -3
- package/dist-es/commands/DescribeCampaignCommand.js +3 -3
- package/dist-es/commands/GetCampaignStateBatchCommand.js +3 -3
- package/dist-es/commands/GetCampaignStateCommand.js +3 -3
- package/dist-es/commands/GetConnectInstanceConfigCommand.js +3 -3
- package/dist-es/commands/GetInstanceOnboardingJobStatusCommand.js +3 -3
- package/dist-es/commands/ListCampaignsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PauseCampaignCommand.js +3 -3
- package/dist-es/commands/PutDialRequestBatchCommand.js +3 -3
- package/dist-es/commands/ResumeCampaignCommand.js +3 -3
- package/dist-es/commands/StartCampaignCommand.js +3 -3
- package/dist-es/commands/StartInstanceOnboardingJobCommand.js +3 -3
- package/dist-es/commands/StopCampaignCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateCampaignDialerConfigCommand.js +3 -3
- package/dist-es/commands/UpdateCampaignNameCommand.js +3 -3
- package/dist-es/commands/UpdateCampaignOutboundCallConfigCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +287 -307
- package/dist-types/protocols/Aws_restJson1.d.ts +176 -44
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +44 -44
- package/package.json +29 -29
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UpdateCampaignOutboundCallConfigCommand = exports.de_UpdateCampaignNameCommand = exports.de_UpdateCampaignDialerConfigCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopCampaignCommand = exports.de_StartInstanceOnboardingJobCommand = exports.de_StartCampaignCommand = exports.de_ResumeCampaignCommand = exports.de_PutDialRequestBatchCommand = exports.de_PauseCampaignCommand = exports.de_ListTagsForResourceCommand = exports.de_ListCampaignsCommand = exports.de_GetInstanceOnboardingJobStatusCommand = exports.de_GetConnectInstanceConfigCommand = exports.de_GetCampaignStateBatchCommand = exports.de_GetCampaignStateCommand = exports.de_DescribeCampaignCommand = exports.de_DeleteInstanceOnboardingJobCommand = exports.de_DeleteConnectInstanceConfigCommand = exports.de_DeleteCampaignCommand = exports.de_CreateCampaignCommand = exports.se_UpdateCampaignOutboundCallConfigCommand = exports.se_UpdateCampaignNameCommand = exports.se_UpdateCampaignDialerConfigCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopCampaignCommand = exports.se_StartInstanceOnboardingJobCommand = exports.se_StartCampaignCommand = exports.se_ResumeCampaignCommand = exports.se_PutDialRequestBatchCommand = exports.se_PauseCampaignCommand = exports.se_ListTagsForResourceCommand = exports.se_ListCampaignsCommand = exports.se_GetInstanceOnboardingJobStatusCommand = exports.se_GetConnectInstanceConfigCommand = exports.se_GetCampaignStateBatchCommand = exports.se_GetCampaignStateCommand = exports.se_DescribeCampaignCommand = exports.se_DeleteInstanceOnboardingJobCommand = exports.se_DeleteConnectInstanceConfigCommand = exports.se_DeleteCampaignCommand = exports.se_CreateCampaignCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const ConnectCampaignsServiceException_1 = require("../models/ConnectCampaignsServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const
|
|
8
|
+
const se_CreateCampaignCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
@@ -14,14 +14,12 @@ const serializeAws_restJson1CreateCampaignCommand = async (input, context) => {
|
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
16
|
...(input.connectInstanceId != null && { connectInstanceId: input.connectInstanceId }),
|
|
17
|
-
...(input.dialerConfig != null && {
|
|
18
|
-
dialerConfig: serializeAws_restJson1DialerConfig(input.dialerConfig, context),
|
|
19
|
-
}),
|
|
17
|
+
...(input.dialerConfig != null && { dialerConfig: se_DialerConfig(input.dialerConfig, context) }),
|
|
20
18
|
...(input.name != null && { name: input.name }),
|
|
21
19
|
...(input.outboundCallConfig != null && {
|
|
22
|
-
outboundCallConfig:
|
|
20
|
+
outboundCallConfig: se_OutboundCallConfig(input.outboundCallConfig, context),
|
|
23
21
|
}),
|
|
24
|
-
...(input.tags != null && { tags:
|
|
22
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
25
23
|
});
|
|
26
24
|
return new protocol_http_1.HttpRequest({
|
|
27
25
|
protocol,
|
|
@@ -33,8 +31,8 @@ const serializeAws_restJson1CreateCampaignCommand = async (input, context) => {
|
|
|
33
31
|
body,
|
|
34
32
|
});
|
|
35
33
|
};
|
|
36
|
-
exports.
|
|
37
|
-
const
|
|
34
|
+
exports.se_CreateCampaignCommand = se_CreateCampaignCommand;
|
|
35
|
+
const se_DeleteCampaignCommand = async (input, context) => {
|
|
38
36
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
39
37
|
const headers = {};
|
|
40
38
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns/{id}";
|
|
@@ -50,8 +48,8 @@ const serializeAws_restJson1DeleteCampaignCommand = async (input, context) => {
|
|
|
50
48
|
body,
|
|
51
49
|
});
|
|
52
50
|
};
|
|
53
|
-
exports.
|
|
54
|
-
const
|
|
51
|
+
exports.se_DeleteCampaignCommand = se_DeleteCampaignCommand;
|
|
52
|
+
const se_DeleteConnectInstanceConfigCommand = async (input, context) => {
|
|
55
53
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
56
54
|
const headers = {};
|
|
57
55
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -68,8 +66,8 @@ const serializeAws_restJson1DeleteConnectInstanceConfigCommand = async (input, c
|
|
|
68
66
|
body,
|
|
69
67
|
});
|
|
70
68
|
};
|
|
71
|
-
exports.
|
|
72
|
-
const
|
|
69
|
+
exports.se_DeleteConnectInstanceConfigCommand = se_DeleteConnectInstanceConfigCommand;
|
|
70
|
+
const se_DeleteInstanceOnboardingJobCommand = async (input, context) => {
|
|
73
71
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
74
72
|
const headers = {};
|
|
75
73
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -86,8 +84,8 @@ const serializeAws_restJson1DeleteInstanceOnboardingJobCommand = async (input, c
|
|
|
86
84
|
body,
|
|
87
85
|
});
|
|
88
86
|
};
|
|
89
|
-
exports.
|
|
90
|
-
const
|
|
87
|
+
exports.se_DeleteInstanceOnboardingJobCommand = se_DeleteInstanceOnboardingJobCommand;
|
|
88
|
+
const se_DescribeCampaignCommand = async (input, context) => {
|
|
91
89
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
92
90
|
const headers = {};
|
|
93
91
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns/{id}";
|
|
@@ -103,8 +101,8 @@ const serializeAws_restJson1DescribeCampaignCommand = async (input, context) =>
|
|
|
103
101
|
body,
|
|
104
102
|
});
|
|
105
103
|
};
|
|
106
|
-
exports.
|
|
107
|
-
const
|
|
104
|
+
exports.se_DescribeCampaignCommand = se_DescribeCampaignCommand;
|
|
105
|
+
const se_GetCampaignStateCommand = async (input, context) => {
|
|
108
106
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
109
107
|
const headers = {};
|
|
110
108
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns/{id}/state";
|
|
@@ -120,8 +118,8 @@ const serializeAws_restJson1GetCampaignStateCommand = async (input, context) =>
|
|
|
120
118
|
body,
|
|
121
119
|
});
|
|
122
120
|
};
|
|
123
|
-
exports.
|
|
124
|
-
const
|
|
121
|
+
exports.se_GetCampaignStateCommand = se_GetCampaignStateCommand;
|
|
122
|
+
const se_GetCampaignStateBatchCommand = async (input, context) => {
|
|
125
123
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
126
124
|
const headers = {
|
|
127
125
|
"content-type": "application/json",
|
|
@@ -129,7 +127,7 @@ const serializeAws_restJson1GetCampaignStateBatchCommand = async (input, context
|
|
|
129
127
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns-state";
|
|
130
128
|
let body;
|
|
131
129
|
body = JSON.stringify({
|
|
132
|
-
...(input.campaignIds != null && { campaignIds:
|
|
130
|
+
...(input.campaignIds != null && { campaignIds: se_CampaignIdList(input.campaignIds, context) }),
|
|
133
131
|
});
|
|
134
132
|
return new protocol_http_1.HttpRequest({
|
|
135
133
|
protocol,
|
|
@@ -141,8 +139,8 @@ const serializeAws_restJson1GetCampaignStateBatchCommand = async (input, context
|
|
|
141
139
|
body,
|
|
142
140
|
});
|
|
143
141
|
};
|
|
144
|
-
exports.
|
|
145
|
-
const
|
|
142
|
+
exports.se_GetCampaignStateBatchCommand = se_GetCampaignStateBatchCommand;
|
|
143
|
+
const se_GetConnectInstanceConfigCommand = async (input, context) => {
|
|
146
144
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
147
145
|
const headers = {};
|
|
148
146
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -159,8 +157,8 @@ const serializeAws_restJson1GetConnectInstanceConfigCommand = async (input, cont
|
|
|
159
157
|
body,
|
|
160
158
|
});
|
|
161
159
|
};
|
|
162
|
-
exports.
|
|
163
|
-
const
|
|
160
|
+
exports.se_GetConnectInstanceConfigCommand = se_GetConnectInstanceConfigCommand;
|
|
161
|
+
const se_GetInstanceOnboardingJobStatusCommand = async (input, context) => {
|
|
164
162
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
165
163
|
const headers = {};
|
|
166
164
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -177,8 +175,8 @@ const serializeAws_restJson1GetInstanceOnboardingJobStatusCommand = async (input
|
|
|
177
175
|
body,
|
|
178
176
|
});
|
|
179
177
|
};
|
|
180
|
-
exports.
|
|
181
|
-
const
|
|
178
|
+
exports.se_GetInstanceOnboardingJobStatusCommand = se_GetInstanceOnboardingJobStatusCommand;
|
|
179
|
+
const se_ListCampaignsCommand = async (input, context) => {
|
|
182
180
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
183
181
|
const headers = {
|
|
184
182
|
"content-type": "application/json",
|
|
@@ -186,7 +184,7 @@ const serializeAws_restJson1ListCampaignsCommand = async (input, context) => {
|
|
|
186
184
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns-summary";
|
|
187
185
|
let body;
|
|
188
186
|
body = JSON.stringify({
|
|
189
|
-
...(input.filters != null && { filters:
|
|
187
|
+
...(input.filters != null && { filters: se_CampaignFilters(input.filters, context) }),
|
|
190
188
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
191
189
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
192
190
|
});
|
|
@@ -200,8 +198,8 @@ const serializeAws_restJson1ListCampaignsCommand = async (input, context) => {
|
|
|
200
198
|
body,
|
|
201
199
|
});
|
|
202
200
|
};
|
|
203
|
-
exports.
|
|
204
|
-
const
|
|
201
|
+
exports.se_ListCampaignsCommand = se_ListCampaignsCommand;
|
|
202
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
205
203
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
206
204
|
const headers = {};
|
|
207
205
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{arn}";
|
|
@@ -217,8 +215,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
217
215
|
body,
|
|
218
216
|
});
|
|
219
217
|
};
|
|
220
|
-
exports.
|
|
221
|
-
const
|
|
218
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
219
|
+
const se_PauseCampaignCommand = async (input, context) => {
|
|
222
220
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
223
221
|
const headers = {};
|
|
224
222
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns/{id}/pause";
|
|
@@ -234,8 +232,8 @@ const serializeAws_restJson1PauseCampaignCommand = async (input, context) => {
|
|
|
234
232
|
body,
|
|
235
233
|
});
|
|
236
234
|
};
|
|
237
|
-
exports.
|
|
238
|
-
const
|
|
235
|
+
exports.se_PauseCampaignCommand = se_PauseCampaignCommand;
|
|
236
|
+
const se_PutDialRequestBatchCommand = async (input, context) => {
|
|
239
237
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
240
238
|
const headers = {
|
|
241
239
|
"content-type": "application/json",
|
|
@@ -244,9 +242,7 @@ const serializeAws_restJson1PutDialRequestBatchCommand = async (input, context)
|
|
|
244
242
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
245
243
|
let body;
|
|
246
244
|
body = JSON.stringify({
|
|
247
|
-
...(input.dialRequests != null && {
|
|
248
|
-
dialRequests: serializeAws_restJson1DialRequestList(input.dialRequests, context),
|
|
249
|
-
}),
|
|
245
|
+
...(input.dialRequests != null && { dialRequests: se_DialRequestList(input.dialRequests, context) }),
|
|
250
246
|
});
|
|
251
247
|
return new protocol_http_1.HttpRequest({
|
|
252
248
|
protocol,
|
|
@@ -258,8 +254,8 @@ const serializeAws_restJson1PutDialRequestBatchCommand = async (input, context)
|
|
|
258
254
|
body,
|
|
259
255
|
});
|
|
260
256
|
};
|
|
261
|
-
exports.
|
|
262
|
-
const
|
|
257
|
+
exports.se_PutDialRequestBatchCommand = se_PutDialRequestBatchCommand;
|
|
258
|
+
const se_ResumeCampaignCommand = async (input, context) => {
|
|
263
259
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
264
260
|
const headers = {};
|
|
265
261
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns/{id}/resume";
|
|
@@ -275,8 +271,8 @@ const serializeAws_restJson1ResumeCampaignCommand = async (input, context) => {
|
|
|
275
271
|
body,
|
|
276
272
|
});
|
|
277
273
|
};
|
|
278
|
-
exports.
|
|
279
|
-
const
|
|
274
|
+
exports.se_ResumeCampaignCommand = se_ResumeCampaignCommand;
|
|
275
|
+
const se_StartCampaignCommand = async (input, context) => {
|
|
280
276
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
281
277
|
const headers = {};
|
|
282
278
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns/{id}/start";
|
|
@@ -292,8 +288,8 @@ const serializeAws_restJson1StartCampaignCommand = async (input, context) => {
|
|
|
292
288
|
body,
|
|
293
289
|
});
|
|
294
290
|
};
|
|
295
|
-
exports.
|
|
296
|
-
const
|
|
291
|
+
exports.se_StartCampaignCommand = se_StartCampaignCommand;
|
|
292
|
+
const se_StartInstanceOnboardingJobCommand = async (input, context) => {
|
|
297
293
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
298
294
|
const headers = {
|
|
299
295
|
"content-type": "application/json",
|
|
@@ -303,9 +299,7 @@ const serializeAws_restJson1StartInstanceOnboardingJobCommand = async (input, co
|
|
|
303
299
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "connectInstanceId", () => input.connectInstanceId, "{connectInstanceId}", false);
|
|
304
300
|
let body;
|
|
305
301
|
body = JSON.stringify({
|
|
306
|
-
...(input.encryptionConfig != null && {
|
|
307
|
-
encryptionConfig: serializeAws_restJson1EncryptionConfig(input.encryptionConfig, context),
|
|
308
|
-
}),
|
|
302
|
+
...(input.encryptionConfig != null && { encryptionConfig: se_EncryptionConfig(input.encryptionConfig, context) }),
|
|
309
303
|
});
|
|
310
304
|
return new protocol_http_1.HttpRequest({
|
|
311
305
|
protocol,
|
|
@@ -317,8 +311,8 @@ const serializeAws_restJson1StartInstanceOnboardingJobCommand = async (input, co
|
|
|
317
311
|
body,
|
|
318
312
|
});
|
|
319
313
|
};
|
|
320
|
-
exports.
|
|
321
|
-
const
|
|
314
|
+
exports.se_StartInstanceOnboardingJobCommand = se_StartInstanceOnboardingJobCommand;
|
|
315
|
+
const se_StopCampaignCommand = async (input, context) => {
|
|
322
316
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
323
317
|
const headers = {};
|
|
324
318
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns/{id}/stop";
|
|
@@ -334,8 +328,8 @@ const serializeAws_restJson1StopCampaignCommand = async (input, context) => {
|
|
|
334
328
|
body,
|
|
335
329
|
});
|
|
336
330
|
};
|
|
337
|
-
exports.
|
|
338
|
-
const
|
|
331
|
+
exports.se_StopCampaignCommand = se_StopCampaignCommand;
|
|
332
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
339
333
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
340
334
|
const headers = {
|
|
341
335
|
"content-type": "application/json",
|
|
@@ -344,7 +338,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
344
338
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "arn", () => input.arn, "{arn}", false);
|
|
345
339
|
let body;
|
|
346
340
|
body = JSON.stringify({
|
|
347
|
-
...(input.tags != null && { tags:
|
|
341
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
348
342
|
});
|
|
349
343
|
return new protocol_http_1.HttpRequest({
|
|
350
344
|
protocol,
|
|
@@ -356,8 +350,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
356
350
|
body,
|
|
357
351
|
});
|
|
358
352
|
};
|
|
359
|
-
exports.
|
|
360
|
-
const
|
|
353
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
354
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
361
355
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
362
356
|
const headers = {};
|
|
363
357
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{arn}";
|
|
@@ -380,8 +374,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
380
374
|
body,
|
|
381
375
|
});
|
|
382
376
|
};
|
|
383
|
-
exports.
|
|
384
|
-
const
|
|
377
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
378
|
+
const se_UpdateCampaignDialerConfigCommand = async (input, context) => {
|
|
385
379
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
386
380
|
const headers = {
|
|
387
381
|
"content-type": "application/json",
|
|
@@ -390,9 +384,7 @@ const serializeAws_restJson1UpdateCampaignDialerConfigCommand = async (input, co
|
|
|
390
384
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
391
385
|
let body;
|
|
392
386
|
body = JSON.stringify({
|
|
393
|
-
...(input.dialerConfig != null && {
|
|
394
|
-
dialerConfig: serializeAws_restJson1DialerConfig(input.dialerConfig, context),
|
|
395
|
-
}),
|
|
387
|
+
...(input.dialerConfig != null && { dialerConfig: se_DialerConfig(input.dialerConfig, context) }),
|
|
396
388
|
});
|
|
397
389
|
return new protocol_http_1.HttpRequest({
|
|
398
390
|
protocol,
|
|
@@ -404,8 +396,8 @@ const serializeAws_restJson1UpdateCampaignDialerConfigCommand = async (input, co
|
|
|
404
396
|
body,
|
|
405
397
|
});
|
|
406
398
|
};
|
|
407
|
-
exports.
|
|
408
|
-
const
|
|
399
|
+
exports.se_UpdateCampaignDialerConfigCommand = se_UpdateCampaignDialerConfigCommand;
|
|
400
|
+
const se_UpdateCampaignNameCommand = async (input, context) => {
|
|
409
401
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
410
402
|
const headers = {
|
|
411
403
|
"content-type": "application/json",
|
|
@@ -426,8 +418,8 @@ const serializeAws_restJson1UpdateCampaignNameCommand = async (input, context) =
|
|
|
426
418
|
body,
|
|
427
419
|
});
|
|
428
420
|
};
|
|
429
|
-
exports.
|
|
430
|
-
const
|
|
421
|
+
exports.se_UpdateCampaignNameCommand = se_UpdateCampaignNameCommand;
|
|
422
|
+
const se_UpdateCampaignOutboundCallConfigCommand = async (input, context) => {
|
|
431
423
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
432
424
|
const headers = {
|
|
433
425
|
"content-type": "application/json",
|
|
@@ -437,7 +429,7 @@ const serializeAws_restJson1UpdateCampaignOutboundCallConfigCommand = async (inp
|
|
|
437
429
|
let body;
|
|
438
430
|
body = JSON.stringify({
|
|
439
431
|
...(input.answerMachineDetectionConfig != null && {
|
|
440
|
-
answerMachineDetectionConfig:
|
|
432
|
+
answerMachineDetectionConfig: se_AnswerMachineDetectionConfig(input.answerMachineDetectionConfig, context),
|
|
441
433
|
}),
|
|
442
434
|
...(input.connectContactFlowId != null && { connectContactFlowId: input.connectContactFlowId }),
|
|
443
435
|
...(input.connectSourcePhoneNumber != null && { connectSourcePhoneNumber: input.connectSourcePhoneNumber }),
|
|
@@ -452,10 +444,10 @@ const serializeAws_restJson1UpdateCampaignOutboundCallConfigCommand = async (inp
|
|
|
452
444
|
body,
|
|
453
445
|
});
|
|
454
446
|
};
|
|
455
|
-
exports.
|
|
456
|
-
const
|
|
447
|
+
exports.se_UpdateCampaignOutboundCallConfigCommand = se_UpdateCampaignOutboundCallConfigCommand;
|
|
448
|
+
const de_CreateCampaignCommand = async (output, context) => {
|
|
457
449
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
458
|
-
return
|
|
450
|
+
return de_CreateCampaignCommandError(output, context);
|
|
459
451
|
}
|
|
460
452
|
const contents = map({
|
|
461
453
|
$metadata: deserializeMetadata(output),
|
|
@@ -468,12 +460,12 @@ const deserializeAws_restJson1CreateCampaignCommand = async (output, context) =>
|
|
|
468
460
|
contents.id = (0, smithy_client_1.expectString)(data.id);
|
|
469
461
|
}
|
|
470
462
|
if (data.tags != null) {
|
|
471
|
-
contents.tags =
|
|
463
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
472
464
|
}
|
|
473
465
|
return contents;
|
|
474
466
|
};
|
|
475
|
-
exports.
|
|
476
|
-
const
|
|
467
|
+
exports.de_CreateCampaignCommand = de_CreateCampaignCommand;
|
|
468
|
+
const de_CreateCampaignCommandError = async (output, context) => {
|
|
477
469
|
const parsedOutput = {
|
|
478
470
|
...output,
|
|
479
471
|
body: await parseErrorBody(output.body, context),
|
|
@@ -482,25 +474,25 @@ const deserializeAws_restJson1CreateCampaignCommandError = async (output, contex
|
|
|
482
474
|
switch (errorCode) {
|
|
483
475
|
case "AccessDeniedException":
|
|
484
476
|
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
485
|
-
throw await
|
|
477
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
486
478
|
case "ConflictException":
|
|
487
479
|
case "com.amazonaws.connectcampaigns#ConflictException":
|
|
488
|
-
throw await
|
|
480
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
489
481
|
case "InternalServerException":
|
|
490
482
|
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
491
|
-
throw await
|
|
483
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
492
484
|
case "ResourceNotFoundException":
|
|
493
485
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
494
|
-
throw await
|
|
486
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
495
487
|
case "ServiceQuotaExceededException":
|
|
496
488
|
case "com.amazonaws.connectcampaigns#ServiceQuotaExceededException":
|
|
497
|
-
throw await
|
|
489
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
498
490
|
case "ThrottlingException":
|
|
499
491
|
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
500
|
-
throw await
|
|
492
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
501
493
|
case "ValidationException":
|
|
502
494
|
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
503
|
-
throw await
|
|
495
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
504
496
|
default:
|
|
505
497
|
const parsedBody = parsedOutput.body;
|
|
506
498
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -511,9 +503,9 @@ const deserializeAws_restJson1CreateCampaignCommandError = async (output, contex
|
|
|
511
503
|
});
|
|
512
504
|
}
|
|
513
505
|
};
|
|
514
|
-
const
|
|
506
|
+
const de_DeleteCampaignCommand = async (output, context) => {
|
|
515
507
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
516
|
-
return
|
|
508
|
+
return de_DeleteCampaignCommandError(output, context);
|
|
517
509
|
}
|
|
518
510
|
const contents = map({
|
|
519
511
|
$metadata: deserializeMetadata(output),
|
|
@@ -521,8 +513,8 @@ const deserializeAws_restJson1DeleteCampaignCommand = async (output, context) =>
|
|
|
521
513
|
await collectBody(output.body, context);
|
|
522
514
|
return contents;
|
|
523
515
|
};
|
|
524
|
-
exports.
|
|
525
|
-
const
|
|
516
|
+
exports.de_DeleteCampaignCommand = de_DeleteCampaignCommand;
|
|
517
|
+
const de_DeleteCampaignCommandError = async (output, context) => {
|
|
526
518
|
const parsedOutput = {
|
|
527
519
|
...output,
|
|
528
520
|
body: await parseErrorBody(output.body, context),
|
|
@@ -531,16 +523,16 @@ const deserializeAws_restJson1DeleteCampaignCommandError = async (output, contex
|
|
|
531
523
|
switch (errorCode) {
|
|
532
524
|
case "AccessDeniedException":
|
|
533
525
|
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
534
|
-
throw await
|
|
526
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
535
527
|
case "InternalServerException":
|
|
536
528
|
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
537
|
-
throw await
|
|
529
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
538
530
|
case "ResourceNotFoundException":
|
|
539
531
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
540
|
-
throw await
|
|
532
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
541
533
|
case "ValidationException":
|
|
542
534
|
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
543
|
-
throw await
|
|
535
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
544
536
|
default:
|
|
545
537
|
const parsedBody = parsedOutput.body;
|
|
546
538
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -551,9 +543,9 @@ const deserializeAws_restJson1DeleteCampaignCommandError = async (output, contex
|
|
|
551
543
|
});
|
|
552
544
|
}
|
|
553
545
|
};
|
|
554
|
-
const
|
|
546
|
+
const de_DeleteConnectInstanceConfigCommand = async (output, context) => {
|
|
555
547
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
556
|
-
return
|
|
548
|
+
return de_DeleteConnectInstanceConfigCommandError(output, context);
|
|
557
549
|
}
|
|
558
550
|
const contents = map({
|
|
559
551
|
$metadata: deserializeMetadata(output),
|
|
@@ -561,8 +553,8 @@ const deserializeAws_restJson1DeleteConnectInstanceConfigCommand = async (output
|
|
|
561
553
|
await collectBody(output.body, context);
|
|
562
554
|
return contents;
|
|
563
555
|
};
|
|
564
|
-
exports.
|
|
565
|
-
const
|
|
556
|
+
exports.de_DeleteConnectInstanceConfigCommand = de_DeleteConnectInstanceConfigCommand;
|
|
557
|
+
const de_DeleteConnectInstanceConfigCommandError = async (output, context) => {
|
|
566
558
|
const parsedOutput = {
|
|
567
559
|
...output,
|
|
568
560
|
body: await parseErrorBody(output.body, context),
|
|
@@ -571,22 +563,22 @@ const deserializeAws_restJson1DeleteConnectInstanceConfigCommandError = async (o
|
|
|
571
563
|
switch (errorCode) {
|
|
572
564
|
case "AccessDeniedException":
|
|
573
565
|
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
574
|
-
throw await
|
|
566
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
575
567
|
case "InternalServerException":
|
|
576
568
|
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
577
|
-
throw await
|
|
569
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
578
570
|
case "InvalidStateException":
|
|
579
571
|
case "com.amazonaws.connectcampaigns#InvalidStateException":
|
|
580
|
-
throw await
|
|
572
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
581
573
|
case "ResourceNotFoundException":
|
|
582
574
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
583
|
-
throw await
|
|
575
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
584
576
|
case "ThrottlingException":
|
|
585
577
|
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
586
|
-
throw await
|
|
578
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
587
579
|
case "ValidationException":
|
|
588
580
|
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
589
|
-
throw await
|
|
581
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
590
582
|
default:
|
|
591
583
|
const parsedBody = parsedOutput.body;
|
|
592
584
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -597,9 +589,9 @@ const deserializeAws_restJson1DeleteConnectInstanceConfigCommandError = async (o
|
|
|
597
589
|
});
|
|
598
590
|
}
|
|
599
591
|
};
|
|
600
|
-
const
|
|
592
|
+
const de_DeleteInstanceOnboardingJobCommand = async (output, context) => {
|
|
601
593
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
602
|
-
return
|
|
594
|
+
return de_DeleteInstanceOnboardingJobCommandError(output, context);
|
|
603
595
|
}
|
|
604
596
|
const contents = map({
|
|
605
597
|
$metadata: deserializeMetadata(output),
|
|
@@ -607,8 +599,8 @@ const deserializeAws_restJson1DeleteInstanceOnboardingJobCommand = async (output
|
|
|
607
599
|
await collectBody(output.body, context);
|
|
608
600
|
return contents;
|
|
609
601
|
};
|
|
610
|
-
exports.
|
|
611
|
-
const
|
|
602
|
+
exports.de_DeleteInstanceOnboardingJobCommand = de_DeleteInstanceOnboardingJobCommand;
|
|
603
|
+
const de_DeleteInstanceOnboardingJobCommandError = async (output, context) => {
|
|
612
604
|
const parsedOutput = {
|
|
613
605
|
...output,
|
|
614
606
|
body: await parseErrorBody(output.body, context),
|
|
@@ -617,19 +609,19 @@ const deserializeAws_restJson1DeleteInstanceOnboardingJobCommandError = async (o
|
|
|
617
609
|
switch (errorCode) {
|
|
618
610
|
case "AccessDeniedException":
|
|
619
611
|
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
620
|
-
throw await
|
|
612
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
621
613
|
case "InternalServerException":
|
|
622
614
|
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
623
|
-
throw await
|
|
615
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
624
616
|
case "InvalidStateException":
|
|
625
617
|
case "com.amazonaws.connectcampaigns#InvalidStateException":
|
|
626
|
-
throw await
|
|
618
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
627
619
|
case "ResourceNotFoundException":
|
|
628
620
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
629
|
-
throw await
|
|
621
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
630
622
|
case "ValidationException":
|
|
631
623
|
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
632
|
-
throw await
|
|
624
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
633
625
|
default:
|
|
634
626
|
const parsedBody = parsedOutput.body;
|
|
635
627
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -640,21 +632,21 @@ const deserializeAws_restJson1DeleteInstanceOnboardingJobCommandError = async (o
|
|
|
640
632
|
});
|
|
641
633
|
}
|
|
642
634
|
};
|
|
643
|
-
const
|
|
635
|
+
const de_DescribeCampaignCommand = async (output, context) => {
|
|
644
636
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
645
|
-
return
|
|
637
|
+
return de_DescribeCampaignCommandError(output, context);
|
|
646
638
|
}
|
|
647
639
|
const contents = map({
|
|
648
640
|
$metadata: deserializeMetadata(output),
|
|
649
641
|
});
|
|
650
642
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
651
643
|
if (data.campaign != null) {
|
|
652
|
-
contents.campaign =
|
|
644
|
+
contents.campaign = de_Campaign(data.campaign, context);
|
|
653
645
|
}
|
|
654
646
|
return contents;
|
|
655
647
|
};
|
|
656
|
-
exports.
|
|
657
|
-
const
|
|
648
|
+
exports.de_DescribeCampaignCommand = de_DescribeCampaignCommand;
|
|
649
|
+
const de_DescribeCampaignCommandError = async (output, context) => {
|
|
658
650
|
const parsedOutput = {
|
|
659
651
|
...output,
|
|
660
652
|
body: await parseErrorBody(output.body, context),
|
|
@@ -663,16 +655,16 @@ const deserializeAws_restJson1DescribeCampaignCommandError = async (output, cont
|
|
|
663
655
|
switch (errorCode) {
|
|
664
656
|
case "AccessDeniedException":
|
|
665
657
|
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
666
|
-
throw await
|
|
658
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
667
659
|
case "InternalServerException":
|
|
668
660
|
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
669
|
-
throw await
|
|
661
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
670
662
|
case "ResourceNotFoundException":
|
|
671
663
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
672
|
-
throw await
|
|
664
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
673
665
|
case "ValidationException":
|
|
674
666
|
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
675
|
-
throw await
|
|
667
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
676
668
|
default:
|
|
677
669
|
const parsedBody = parsedOutput.body;
|
|
678
670
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -683,9 +675,9 @@ const deserializeAws_restJson1DescribeCampaignCommandError = async (output, cont
|
|
|
683
675
|
});
|
|
684
676
|
}
|
|
685
677
|
};
|
|
686
|
-
const
|
|
678
|
+
const de_GetCampaignStateCommand = async (output, context) => {
|
|
687
679
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
688
|
-
return
|
|
680
|
+
return de_GetCampaignStateCommandError(output, context);
|
|
689
681
|
}
|
|
690
682
|
const contents = map({
|
|
691
683
|
$metadata: deserializeMetadata(output),
|
|
@@ -696,8 +688,8 @@ const deserializeAws_restJson1GetCampaignStateCommand = async (output, context)
|
|
|
696
688
|
}
|
|
697
689
|
return contents;
|
|
698
690
|
};
|
|
699
|
-
exports.
|
|
700
|
-
const
|
|
691
|
+
exports.de_GetCampaignStateCommand = de_GetCampaignStateCommand;
|
|
692
|
+
const de_GetCampaignStateCommandError = async (output, context) => {
|
|
701
693
|
const parsedOutput = {
|
|
702
694
|
...output,
|
|
703
695
|
body: await parseErrorBody(output.body, context),
|
|
@@ -706,19 +698,19 @@ const deserializeAws_restJson1GetCampaignStateCommandError = async (output, cont
|
|
|
706
698
|
switch (errorCode) {
|
|
707
699
|
case "AccessDeniedException":
|
|
708
700
|
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
709
|
-
throw await
|
|
701
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
710
702
|
case "InternalServerException":
|
|
711
703
|
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
712
|
-
throw await
|
|
704
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
713
705
|
case "ResourceNotFoundException":
|
|
714
706
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
715
|
-
throw await
|
|
707
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
716
708
|
case "ThrottlingException":
|
|
717
709
|
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
718
|
-
throw await
|
|
710
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
719
711
|
case "ValidationException":
|
|
720
712
|
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
721
|
-
throw await
|
|
713
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
722
714
|
default:
|
|
723
715
|
const parsedBody = parsedOutput.body;
|
|
724
716
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -729,24 +721,24 @@ const deserializeAws_restJson1GetCampaignStateCommandError = async (output, cont
|
|
|
729
721
|
});
|
|
730
722
|
}
|
|
731
723
|
};
|
|
732
|
-
const
|
|
724
|
+
const de_GetCampaignStateBatchCommand = async (output, context) => {
|
|
733
725
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
734
|
-
return
|
|
726
|
+
return de_GetCampaignStateBatchCommandError(output, context);
|
|
735
727
|
}
|
|
736
728
|
const contents = map({
|
|
737
729
|
$metadata: deserializeMetadata(output),
|
|
738
730
|
});
|
|
739
731
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
740
732
|
if (data.failedRequests != null) {
|
|
741
|
-
contents.failedRequests =
|
|
733
|
+
contents.failedRequests = de_FailedCampaignStateResponseList(data.failedRequests, context);
|
|
742
734
|
}
|
|
743
735
|
if (data.successfulRequests != null) {
|
|
744
|
-
contents.successfulRequests =
|
|
736
|
+
contents.successfulRequests = de_SuccessfulCampaignStateResponseList(data.successfulRequests, context);
|
|
745
737
|
}
|
|
746
738
|
return contents;
|
|
747
739
|
};
|
|
748
|
-
exports.
|
|
749
|
-
const
|
|
740
|
+
exports.de_GetCampaignStateBatchCommand = de_GetCampaignStateBatchCommand;
|
|
741
|
+
const de_GetCampaignStateBatchCommandError = async (output, context) => {
|
|
750
742
|
const parsedOutput = {
|
|
751
743
|
...output,
|
|
752
744
|
body: await parseErrorBody(output.body, context),
|
|
@@ -755,16 +747,16 @@ const deserializeAws_restJson1GetCampaignStateBatchCommandError = async (output,
|
|
|
755
747
|
switch (errorCode) {
|
|
756
748
|
case "AccessDeniedException":
|
|
757
749
|
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
758
|
-
throw await
|
|
750
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
759
751
|
case "InternalServerException":
|
|
760
752
|
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
761
|
-
throw await
|
|
753
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
762
754
|
case "ThrottlingException":
|
|
763
755
|
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
764
|
-
throw await
|
|
756
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
765
757
|
case "ValidationException":
|
|
766
758
|
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
767
|
-
throw await
|
|
759
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
768
760
|
default:
|
|
769
761
|
const parsedBody = parsedOutput.body;
|
|
770
762
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -775,21 +767,21 @@ const deserializeAws_restJson1GetCampaignStateBatchCommandError = async (output,
|
|
|
775
767
|
});
|
|
776
768
|
}
|
|
777
769
|
};
|
|
778
|
-
const
|
|
770
|
+
const de_GetConnectInstanceConfigCommand = async (output, context) => {
|
|
779
771
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
780
|
-
return
|
|
772
|
+
return de_GetConnectInstanceConfigCommandError(output, context);
|
|
781
773
|
}
|
|
782
774
|
const contents = map({
|
|
783
775
|
$metadata: deserializeMetadata(output),
|
|
784
776
|
});
|
|
785
777
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
786
778
|
if (data.connectInstanceConfig != null) {
|
|
787
|
-
contents.connectInstanceConfig =
|
|
779
|
+
contents.connectInstanceConfig = de_InstanceConfig(data.connectInstanceConfig, context);
|
|
788
780
|
}
|
|
789
781
|
return contents;
|
|
790
782
|
};
|
|
791
|
-
exports.
|
|
792
|
-
const
|
|
783
|
+
exports.de_GetConnectInstanceConfigCommand = de_GetConnectInstanceConfigCommand;
|
|
784
|
+
const de_GetConnectInstanceConfigCommandError = async (output, context) => {
|
|
793
785
|
const parsedOutput = {
|
|
794
786
|
...output,
|
|
795
787
|
body: await parseErrorBody(output.body, context),
|
|
@@ -798,16 +790,16 @@ const deserializeAws_restJson1GetConnectInstanceConfigCommandError = async (outp
|
|
|
798
790
|
switch (errorCode) {
|
|
799
791
|
case "AccessDeniedException":
|
|
800
792
|
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
801
|
-
throw await
|
|
793
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
802
794
|
case "InternalServerException":
|
|
803
795
|
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
804
|
-
throw await
|
|
796
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
805
797
|
case "ResourceNotFoundException":
|
|
806
798
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
807
|
-
throw await
|
|
799
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
808
800
|
case "ValidationException":
|
|
809
801
|
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
810
|
-
throw await
|
|
802
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
811
803
|
default:
|
|
812
804
|
const parsedBody = parsedOutput.body;
|
|
813
805
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -818,21 +810,21 @@ const deserializeAws_restJson1GetConnectInstanceConfigCommandError = async (outp
|
|
|
818
810
|
});
|
|
819
811
|
}
|
|
820
812
|
};
|
|
821
|
-
const
|
|
813
|
+
const de_GetInstanceOnboardingJobStatusCommand = async (output, context) => {
|
|
822
814
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
823
|
-
return
|
|
815
|
+
return de_GetInstanceOnboardingJobStatusCommandError(output, context);
|
|
824
816
|
}
|
|
825
817
|
const contents = map({
|
|
826
818
|
$metadata: deserializeMetadata(output),
|
|
827
819
|
});
|
|
828
820
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
829
821
|
if (data.connectInstanceOnboardingJobStatus != null) {
|
|
830
|
-
contents.connectInstanceOnboardingJobStatus =
|
|
822
|
+
contents.connectInstanceOnboardingJobStatus = de_InstanceOnboardingJobStatus(data.connectInstanceOnboardingJobStatus, context);
|
|
831
823
|
}
|
|
832
824
|
return contents;
|
|
833
825
|
};
|
|
834
|
-
exports.
|
|
835
|
-
const
|
|
826
|
+
exports.de_GetInstanceOnboardingJobStatusCommand = de_GetInstanceOnboardingJobStatusCommand;
|
|
827
|
+
const de_GetInstanceOnboardingJobStatusCommandError = async (output, context) => {
|
|
836
828
|
const parsedOutput = {
|
|
837
829
|
...output,
|
|
838
830
|
body: await parseErrorBody(output.body, context),
|
|
@@ -841,16 +833,16 @@ const deserializeAws_restJson1GetInstanceOnboardingJobStatusCommandError = async
|
|
|
841
833
|
switch (errorCode) {
|
|
842
834
|
case "AccessDeniedException":
|
|
843
835
|
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
844
|
-
throw await
|
|
836
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
845
837
|
case "InternalServerException":
|
|
846
838
|
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
847
|
-
throw await
|
|
839
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
848
840
|
case "ResourceNotFoundException":
|
|
849
841
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
850
|
-
throw await
|
|
842
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
851
843
|
case "ValidationException":
|
|
852
844
|
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
853
|
-
throw await
|
|
845
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
854
846
|
default:
|
|
855
847
|
const parsedBody = parsedOutput.body;
|
|
856
848
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -861,24 +853,24 @@ const deserializeAws_restJson1GetInstanceOnboardingJobStatusCommandError = async
|
|
|
861
853
|
});
|
|
862
854
|
}
|
|
863
855
|
};
|
|
864
|
-
const
|
|
856
|
+
const de_ListCampaignsCommand = async (output, context) => {
|
|
865
857
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
866
|
-
return
|
|
858
|
+
return de_ListCampaignsCommandError(output, context);
|
|
867
859
|
}
|
|
868
860
|
const contents = map({
|
|
869
861
|
$metadata: deserializeMetadata(output),
|
|
870
862
|
});
|
|
871
863
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
872
864
|
if (data.campaignSummaryList != null) {
|
|
873
|
-
contents.campaignSummaryList =
|
|
865
|
+
contents.campaignSummaryList = de_CampaignSummaryList(data.campaignSummaryList, context);
|
|
874
866
|
}
|
|
875
867
|
if (data.nextToken != null) {
|
|
876
868
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
877
869
|
}
|
|
878
870
|
return contents;
|
|
879
871
|
};
|
|
880
|
-
exports.
|
|
881
|
-
const
|
|
872
|
+
exports.de_ListCampaignsCommand = de_ListCampaignsCommand;
|
|
873
|
+
const de_ListCampaignsCommandError = async (output, context) => {
|
|
882
874
|
const parsedOutput = {
|
|
883
875
|
...output,
|
|
884
876
|
body: await parseErrorBody(output.body, context),
|
|
@@ -887,13 +879,13 @@ const deserializeAws_restJson1ListCampaignsCommandError = async (output, context
|
|
|
887
879
|
switch (errorCode) {
|
|
888
880
|
case "AccessDeniedException":
|
|
889
881
|
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
890
|
-
throw await
|
|
882
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
891
883
|
case "InternalServerException":
|
|
892
884
|
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
893
|
-
throw await
|
|
885
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
894
886
|
case "ValidationException":
|
|
895
887
|
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
896
|
-
throw await
|
|
888
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
897
889
|
default:
|
|
898
890
|
const parsedBody = parsedOutput.body;
|
|
899
891
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -904,21 +896,21 @@ const deserializeAws_restJson1ListCampaignsCommandError = async (output, context
|
|
|
904
896
|
});
|
|
905
897
|
}
|
|
906
898
|
};
|
|
907
|
-
const
|
|
899
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
908
900
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
909
|
-
return
|
|
901
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
910
902
|
}
|
|
911
903
|
const contents = map({
|
|
912
904
|
$metadata: deserializeMetadata(output),
|
|
913
905
|
});
|
|
914
906
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
915
907
|
if (data.tags != null) {
|
|
916
|
-
contents.tags =
|
|
908
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
917
909
|
}
|
|
918
910
|
return contents;
|
|
919
911
|
};
|
|
920
|
-
exports.
|
|
921
|
-
const
|
|
912
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
913
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
922
914
|
const parsedOutput = {
|
|
923
915
|
...output,
|
|
924
916
|
body: await parseErrorBody(output.body, context),
|
|
@@ -927,19 +919,19 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
927
919
|
switch (errorCode) {
|
|
928
920
|
case "AccessDeniedException":
|
|
929
921
|
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
930
|
-
throw await
|
|
922
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
931
923
|
case "InternalServerException":
|
|
932
924
|
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
933
|
-
throw await
|
|
925
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
934
926
|
case "ResourceNotFoundException":
|
|
935
927
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
936
|
-
throw await
|
|
928
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
937
929
|
case "ThrottlingException":
|
|
938
930
|
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
939
|
-
throw await
|
|
931
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
940
932
|
case "ValidationException":
|
|
941
933
|
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
942
|
-
throw await
|
|
934
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
943
935
|
default:
|
|
944
936
|
const parsedBody = parsedOutput.body;
|
|
945
937
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -950,9 +942,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
950
942
|
});
|
|
951
943
|
}
|
|
952
944
|
};
|
|
953
|
-
const
|
|
945
|
+
const de_PauseCampaignCommand = async (output, context) => {
|
|
954
946
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
955
|
-
return
|
|
947
|
+
return de_PauseCampaignCommandError(output, context);
|
|
956
948
|
}
|
|
957
949
|
const contents = map({
|
|
958
950
|
$metadata: deserializeMetadata(output),
|
|
@@ -960,8 +952,8 @@ const deserializeAws_restJson1PauseCampaignCommand = async (output, context) =>
|
|
|
960
952
|
await collectBody(output.body, context);
|
|
961
953
|
return contents;
|
|
962
954
|
};
|
|
963
|
-
exports.
|
|
964
|
-
const
|
|
955
|
+
exports.de_PauseCampaignCommand = de_PauseCampaignCommand;
|
|
956
|
+
const de_PauseCampaignCommandError = async (output, context) => {
|
|
965
957
|
const parsedOutput = {
|
|
966
958
|
...output,
|
|
967
959
|
body: await parseErrorBody(output.body, context),
|
|
@@ -970,25 +962,25 @@ const deserializeAws_restJson1PauseCampaignCommandError = async (output, context
|
|
|
970
962
|
switch (errorCode) {
|
|
971
963
|
case "AccessDeniedException":
|
|
972
964
|
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
973
|
-
throw await
|
|
965
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
974
966
|
case "ConflictException":
|
|
975
967
|
case "com.amazonaws.connectcampaigns#ConflictException":
|
|
976
|
-
throw await
|
|
968
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
977
969
|
case "InternalServerException":
|
|
978
970
|
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
979
|
-
throw await
|
|
971
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
980
972
|
case "InvalidCampaignStateException":
|
|
981
973
|
case "com.amazonaws.connectcampaigns#InvalidCampaignStateException":
|
|
982
|
-
throw await
|
|
974
|
+
throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context);
|
|
983
975
|
case "ResourceNotFoundException":
|
|
984
976
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
985
|
-
throw await
|
|
977
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
986
978
|
case "ThrottlingException":
|
|
987
979
|
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
988
|
-
throw await
|
|
980
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
989
981
|
case "ValidationException":
|
|
990
982
|
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
991
|
-
throw await
|
|
983
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
992
984
|
default:
|
|
993
985
|
const parsedBody = parsedOutput.body;
|
|
994
986
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -999,24 +991,24 @@ const deserializeAws_restJson1PauseCampaignCommandError = async (output, context
|
|
|
999
991
|
});
|
|
1000
992
|
}
|
|
1001
993
|
};
|
|
1002
|
-
const
|
|
994
|
+
const de_PutDialRequestBatchCommand = async (output, context) => {
|
|
1003
995
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1004
|
-
return
|
|
996
|
+
return de_PutDialRequestBatchCommandError(output, context);
|
|
1005
997
|
}
|
|
1006
998
|
const contents = map({
|
|
1007
999
|
$metadata: deserializeMetadata(output),
|
|
1008
1000
|
});
|
|
1009
1001
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1010
1002
|
if (data.failedRequests != null) {
|
|
1011
|
-
contents.failedRequests =
|
|
1003
|
+
contents.failedRequests = de_FailedRequestList(data.failedRequests, context);
|
|
1012
1004
|
}
|
|
1013
1005
|
if (data.successfulRequests != null) {
|
|
1014
|
-
contents.successfulRequests =
|
|
1006
|
+
contents.successfulRequests = de_SuccessfulRequestList(data.successfulRequests, context);
|
|
1015
1007
|
}
|
|
1016
1008
|
return contents;
|
|
1017
1009
|
};
|
|
1018
|
-
exports.
|
|
1019
|
-
const
|
|
1010
|
+
exports.de_PutDialRequestBatchCommand = de_PutDialRequestBatchCommand;
|
|
1011
|
+
const de_PutDialRequestBatchCommandError = async (output, context) => {
|
|
1020
1012
|
const parsedOutput = {
|
|
1021
1013
|
...output,
|
|
1022
1014
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1025,25 +1017,25 @@ const deserializeAws_restJson1PutDialRequestBatchCommandError = async (output, c
|
|
|
1025
1017
|
switch (errorCode) {
|
|
1026
1018
|
case "AccessDeniedException":
|
|
1027
1019
|
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1028
|
-
throw await
|
|
1020
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1029
1021
|
case "ConflictException":
|
|
1030
1022
|
case "com.amazonaws.connectcampaigns#ConflictException":
|
|
1031
|
-
throw await
|
|
1023
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1032
1024
|
case "InternalServerException":
|
|
1033
1025
|
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1034
|
-
throw await
|
|
1026
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1035
1027
|
case "InvalidCampaignStateException":
|
|
1036
1028
|
case "com.amazonaws.connectcampaigns#InvalidCampaignStateException":
|
|
1037
|
-
throw await
|
|
1029
|
+
throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context);
|
|
1038
1030
|
case "ResourceNotFoundException":
|
|
1039
1031
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1040
|
-
throw await
|
|
1032
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1041
1033
|
case "ThrottlingException":
|
|
1042
1034
|
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1043
|
-
throw await
|
|
1035
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1044
1036
|
case "ValidationException":
|
|
1045
1037
|
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1046
|
-
throw await
|
|
1038
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1047
1039
|
default:
|
|
1048
1040
|
const parsedBody = parsedOutput.body;
|
|
1049
1041
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1054,9 +1046,9 @@ const deserializeAws_restJson1PutDialRequestBatchCommandError = async (output, c
|
|
|
1054
1046
|
});
|
|
1055
1047
|
}
|
|
1056
1048
|
};
|
|
1057
|
-
const
|
|
1049
|
+
const de_ResumeCampaignCommand = async (output, context) => {
|
|
1058
1050
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1059
|
-
return
|
|
1051
|
+
return de_ResumeCampaignCommandError(output, context);
|
|
1060
1052
|
}
|
|
1061
1053
|
const contents = map({
|
|
1062
1054
|
$metadata: deserializeMetadata(output),
|
|
@@ -1064,8 +1056,8 @@ const deserializeAws_restJson1ResumeCampaignCommand = async (output, context) =>
|
|
|
1064
1056
|
await collectBody(output.body, context);
|
|
1065
1057
|
return contents;
|
|
1066
1058
|
};
|
|
1067
|
-
exports.
|
|
1068
|
-
const
|
|
1059
|
+
exports.de_ResumeCampaignCommand = de_ResumeCampaignCommand;
|
|
1060
|
+
const de_ResumeCampaignCommandError = async (output, context) => {
|
|
1069
1061
|
const parsedOutput = {
|
|
1070
1062
|
...output,
|
|
1071
1063
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1074,25 +1066,25 @@ const deserializeAws_restJson1ResumeCampaignCommandError = async (output, contex
|
|
|
1074
1066
|
switch (errorCode) {
|
|
1075
1067
|
case "AccessDeniedException":
|
|
1076
1068
|
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1077
|
-
throw await
|
|
1069
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1078
1070
|
case "ConflictException":
|
|
1079
1071
|
case "com.amazonaws.connectcampaigns#ConflictException":
|
|
1080
|
-
throw await
|
|
1072
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1081
1073
|
case "InternalServerException":
|
|
1082
1074
|
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1083
|
-
throw await
|
|
1075
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1084
1076
|
case "InvalidCampaignStateException":
|
|
1085
1077
|
case "com.amazonaws.connectcampaigns#InvalidCampaignStateException":
|
|
1086
|
-
throw await
|
|
1078
|
+
throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context);
|
|
1087
1079
|
case "ResourceNotFoundException":
|
|
1088
1080
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1089
|
-
throw await
|
|
1081
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1090
1082
|
case "ThrottlingException":
|
|
1091
1083
|
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1092
|
-
throw await
|
|
1084
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1093
1085
|
case "ValidationException":
|
|
1094
1086
|
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1095
|
-
throw await
|
|
1087
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1096
1088
|
default:
|
|
1097
1089
|
const parsedBody = parsedOutput.body;
|
|
1098
1090
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1103,9 +1095,9 @@ const deserializeAws_restJson1ResumeCampaignCommandError = async (output, contex
|
|
|
1103
1095
|
});
|
|
1104
1096
|
}
|
|
1105
1097
|
};
|
|
1106
|
-
const
|
|
1098
|
+
const de_StartCampaignCommand = async (output, context) => {
|
|
1107
1099
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1108
|
-
return
|
|
1100
|
+
return de_StartCampaignCommandError(output, context);
|
|
1109
1101
|
}
|
|
1110
1102
|
const contents = map({
|
|
1111
1103
|
$metadata: deserializeMetadata(output),
|
|
@@ -1113,8 +1105,8 @@ const deserializeAws_restJson1StartCampaignCommand = async (output, context) =>
|
|
|
1113
1105
|
await collectBody(output.body, context);
|
|
1114
1106
|
return contents;
|
|
1115
1107
|
};
|
|
1116
|
-
exports.
|
|
1117
|
-
const
|
|
1108
|
+
exports.de_StartCampaignCommand = de_StartCampaignCommand;
|
|
1109
|
+
const de_StartCampaignCommandError = async (output, context) => {
|
|
1118
1110
|
const parsedOutput = {
|
|
1119
1111
|
...output,
|
|
1120
1112
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1123,25 +1115,25 @@ const deserializeAws_restJson1StartCampaignCommandError = async (output, context
|
|
|
1123
1115
|
switch (errorCode) {
|
|
1124
1116
|
case "AccessDeniedException":
|
|
1125
1117
|
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1126
|
-
throw await
|
|
1118
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1127
1119
|
case "ConflictException":
|
|
1128
1120
|
case "com.amazonaws.connectcampaigns#ConflictException":
|
|
1129
|
-
throw await
|
|
1121
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1130
1122
|
case "InternalServerException":
|
|
1131
1123
|
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1132
|
-
throw await
|
|
1124
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1133
1125
|
case "InvalidCampaignStateException":
|
|
1134
1126
|
case "com.amazonaws.connectcampaigns#InvalidCampaignStateException":
|
|
1135
|
-
throw await
|
|
1127
|
+
throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context);
|
|
1136
1128
|
case "ResourceNotFoundException":
|
|
1137
1129
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1138
|
-
throw await
|
|
1130
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1139
1131
|
case "ThrottlingException":
|
|
1140
1132
|
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1141
|
-
throw await
|
|
1133
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1142
1134
|
case "ValidationException":
|
|
1143
1135
|
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1144
|
-
throw await
|
|
1136
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1145
1137
|
default:
|
|
1146
1138
|
const parsedBody = parsedOutput.body;
|
|
1147
1139
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1152,21 +1144,21 @@ const deserializeAws_restJson1StartCampaignCommandError = async (output, context
|
|
|
1152
1144
|
});
|
|
1153
1145
|
}
|
|
1154
1146
|
};
|
|
1155
|
-
const
|
|
1147
|
+
const de_StartInstanceOnboardingJobCommand = async (output, context) => {
|
|
1156
1148
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1157
|
-
return
|
|
1149
|
+
return de_StartInstanceOnboardingJobCommandError(output, context);
|
|
1158
1150
|
}
|
|
1159
1151
|
const contents = map({
|
|
1160
1152
|
$metadata: deserializeMetadata(output),
|
|
1161
1153
|
});
|
|
1162
1154
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1163
1155
|
if (data.connectInstanceOnboardingJobStatus != null) {
|
|
1164
|
-
contents.connectInstanceOnboardingJobStatus =
|
|
1156
|
+
contents.connectInstanceOnboardingJobStatus = de_InstanceOnboardingJobStatus(data.connectInstanceOnboardingJobStatus, context);
|
|
1165
1157
|
}
|
|
1166
1158
|
return contents;
|
|
1167
1159
|
};
|
|
1168
|
-
exports.
|
|
1169
|
-
const
|
|
1160
|
+
exports.de_StartInstanceOnboardingJobCommand = de_StartInstanceOnboardingJobCommand;
|
|
1161
|
+
const de_StartInstanceOnboardingJobCommandError = async (output, context) => {
|
|
1170
1162
|
const parsedOutput = {
|
|
1171
1163
|
...output,
|
|
1172
1164
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1175,22 +1167,22 @@ const deserializeAws_restJson1StartInstanceOnboardingJobCommandError = async (ou
|
|
|
1175
1167
|
switch (errorCode) {
|
|
1176
1168
|
case "AccessDeniedException":
|
|
1177
1169
|
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1178
|
-
throw await
|
|
1170
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1179
1171
|
case "ConflictException":
|
|
1180
1172
|
case "com.amazonaws.connectcampaigns#ConflictException":
|
|
1181
|
-
throw await
|
|
1173
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1182
1174
|
case "InternalServerException":
|
|
1183
1175
|
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1184
|
-
throw await
|
|
1176
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1185
1177
|
case "ResourceNotFoundException":
|
|
1186
1178
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1187
|
-
throw await
|
|
1179
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1188
1180
|
case "ThrottlingException":
|
|
1189
1181
|
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1190
|
-
throw await
|
|
1182
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1191
1183
|
case "ValidationException":
|
|
1192
1184
|
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1193
|
-
throw await
|
|
1185
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1194
1186
|
default:
|
|
1195
1187
|
const parsedBody = parsedOutput.body;
|
|
1196
1188
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1201,9 +1193,9 @@ const deserializeAws_restJson1StartInstanceOnboardingJobCommandError = async (ou
|
|
|
1201
1193
|
});
|
|
1202
1194
|
}
|
|
1203
1195
|
};
|
|
1204
|
-
const
|
|
1196
|
+
const de_StopCampaignCommand = async (output, context) => {
|
|
1205
1197
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1206
|
-
return
|
|
1198
|
+
return de_StopCampaignCommandError(output, context);
|
|
1207
1199
|
}
|
|
1208
1200
|
const contents = map({
|
|
1209
1201
|
$metadata: deserializeMetadata(output),
|
|
@@ -1211,8 +1203,8 @@ const deserializeAws_restJson1StopCampaignCommand = async (output, context) => {
|
|
|
1211
1203
|
await collectBody(output.body, context);
|
|
1212
1204
|
return contents;
|
|
1213
1205
|
};
|
|
1214
|
-
exports.
|
|
1215
|
-
const
|
|
1206
|
+
exports.de_StopCampaignCommand = de_StopCampaignCommand;
|
|
1207
|
+
const de_StopCampaignCommandError = async (output, context) => {
|
|
1216
1208
|
const parsedOutput = {
|
|
1217
1209
|
...output,
|
|
1218
1210
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1221,25 +1213,25 @@ const deserializeAws_restJson1StopCampaignCommandError = async (output, context)
|
|
|
1221
1213
|
switch (errorCode) {
|
|
1222
1214
|
case "AccessDeniedException":
|
|
1223
1215
|
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1224
|
-
throw await
|
|
1216
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1225
1217
|
case "ConflictException":
|
|
1226
1218
|
case "com.amazonaws.connectcampaigns#ConflictException":
|
|
1227
|
-
throw await
|
|
1219
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1228
1220
|
case "InternalServerException":
|
|
1229
1221
|
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1230
|
-
throw await
|
|
1222
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1231
1223
|
case "InvalidCampaignStateException":
|
|
1232
1224
|
case "com.amazonaws.connectcampaigns#InvalidCampaignStateException":
|
|
1233
|
-
throw await
|
|
1225
|
+
throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context);
|
|
1234
1226
|
case "ResourceNotFoundException":
|
|
1235
1227
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1236
|
-
throw await
|
|
1228
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1237
1229
|
case "ThrottlingException":
|
|
1238
1230
|
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1239
|
-
throw await
|
|
1231
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1240
1232
|
case "ValidationException":
|
|
1241
1233
|
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1242
|
-
throw await
|
|
1234
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1243
1235
|
default:
|
|
1244
1236
|
const parsedBody = parsedOutput.body;
|
|
1245
1237
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1250,9 +1242,9 @@ const deserializeAws_restJson1StopCampaignCommandError = async (output, context)
|
|
|
1250
1242
|
});
|
|
1251
1243
|
}
|
|
1252
1244
|
};
|
|
1253
|
-
const
|
|
1245
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1254
1246
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1255
|
-
return
|
|
1247
|
+
return de_TagResourceCommandError(output, context);
|
|
1256
1248
|
}
|
|
1257
1249
|
const contents = map({
|
|
1258
1250
|
$metadata: deserializeMetadata(output),
|
|
@@ -1260,8 +1252,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
1260
1252
|
await collectBody(output.body, context);
|
|
1261
1253
|
return contents;
|
|
1262
1254
|
};
|
|
1263
|
-
exports.
|
|
1264
|
-
const
|
|
1255
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1256
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1265
1257
|
const parsedOutput = {
|
|
1266
1258
|
...output,
|
|
1267
1259
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1270,19 +1262,19 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1270
1262
|
switch (errorCode) {
|
|
1271
1263
|
case "AccessDeniedException":
|
|
1272
1264
|
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1273
|
-
throw await
|
|
1265
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1274
1266
|
case "InternalServerException":
|
|
1275
1267
|
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1276
|
-
throw await
|
|
1268
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1277
1269
|
case "ResourceNotFoundException":
|
|
1278
1270
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1279
|
-
throw await
|
|
1271
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1280
1272
|
case "ThrottlingException":
|
|
1281
1273
|
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1282
|
-
throw await
|
|
1274
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1283
1275
|
case "ValidationException":
|
|
1284
1276
|
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1285
|
-
throw await
|
|
1277
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1286
1278
|
default:
|
|
1287
1279
|
const parsedBody = parsedOutput.body;
|
|
1288
1280
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1293,9 +1285,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1293
1285
|
});
|
|
1294
1286
|
}
|
|
1295
1287
|
};
|
|
1296
|
-
const
|
|
1288
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1297
1289
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1298
|
-
return
|
|
1290
|
+
return de_UntagResourceCommandError(output, context);
|
|
1299
1291
|
}
|
|
1300
1292
|
const contents = map({
|
|
1301
1293
|
$metadata: deserializeMetadata(output),
|
|
@@ -1303,8 +1295,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
1303
1295
|
await collectBody(output.body, context);
|
|
1304
1296
|
return contents;
|
|
1305
1297
|
};
|
|
1306
|
-
exports.
|
|
1307
|
-
const
|
|
1298
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1299
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1308
1300
|
const parsedOutput = {
|
|
1309
1301
|
...output,
|
|
1310
1302
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1313,19 +1305,19 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1313
1305
|
switch (errorCode) {
|
|
1314
1306
|
case "AccessDeniedException":
|
|
1315
1307
|
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1316
|
-
throw await
|
|
1308
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1317
1309
|
case "InternalServerException":
|
|
1318
1310
|
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1319
|
-
throw await
|
|
1311
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1320
1312
|
case "ResourceNotFoundException":
|
|
1321
1313
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1322
|
-
throw await
|
|
1314
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1323
1315
|
case "ThrottlingException":
|
|
1324
1316
|
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1325
|
-
throw await
|
|
1317
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1326
1318
|
case "ValidationException":
|
|
1327
1319
|
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1328
|
-
throw await
|
|
1320
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1329
1321
|
default:
|
|
1330
1322
|
const parsedBody = parsedOutput.body;
|
|
1331
1323
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1336,9 +1328,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1336
1328
|
});
|
|
1337
1329
|
}
|
|
1338
1330
|
};
|
|
1339
|
-
const
|
|
1331
|
+
const de_UpdateCampaignDialerConfigCommand = async (output, context) => {
|
|
1340
1332
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1341
|
-
return
|
|
1333
|
+
return de_UpdateCampaignDialerConfigCommandError(output, context);
|
|
1342
1334
|
}
|
|
1343
1335
|
const contents = map({
|
|
1344
1336
|
$metadata: deserializeMetadata(output),
|
|
@@ -1346,8 +1338,8 @@ const deserializeAws_restJson1UpdateCampaignDialerConfigCommand = async (output,
|
|
|
1346
1338
|
await collectBody(output.body, context);
|
|
1347
1339
|
return contents;
|
|
1348
1340
|
};
|
|
1349
|
-
exports.
|
|
1350
|
-
const
|
|
1341
|
+
exports.de_UpdateCampaignDialerConfigCommand = de_UpdateCampaignDialerConfigCommand;
|
|
1342
|
+
const de_UpdateCampaignDialerConfigCommandError = async (output, context) => {
|
|
1351
1343
|
const parsedOutput = {
|
|
1352
1344
|
...output,
|
|
1353
1345
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1356,19 +1348,19 @@ const deserializeAws_restJson1UpdateCampaignDialerConfigCommandError = async (ou
|
|
|
1356
1348
|
switch (errorCode) {
|
|
1357
1349
|
case "AccessDeniedException":
|
|
1358
1350
|
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1359
|
-
throw await
|
|
1351
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1360
1352
|
case "ConflictException":
|
|
1361
1353
|
case "com.amazonaws.connectcampaigns#ConflictException":
|
|
1362
|
-
throw await
|
|
1354
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1363
1355
|
case "InternalServerException":
|
|
1364
1356
|
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1365
|
-
throw await
|
|
1357
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1366
1358
|
case "ResourceNotFoundException":
|
|
1367
1359
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1368
|
-
throw await
|
|
1360
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1369
1361
|
case "ValidationException":
|
|
1370
1362
|
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1371
|
-
throw await
|
|
1363
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1372
1364
|
default:
|
|
1373
1365
|
const parsedBody = parsedOutput.body;
|
|
1374
1366
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1379,9 +1371,9 @@ const deserializeAws_restJson1UpdateCampaignDialerConfigCommandError = async (ou
|
|
|
1379
1371
|
});
|
|
1380
1372
|
}
|
|
1381
1373
|
};
|
|
1382
|
-
const
|
|
1374
|
+
const de_UpdateCampaignNameCommand = async (output, context) => {
|
|
1383
1375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1384
|
-
return
|
|
1376
|
+
return de_UpdateCampaignNameCommandError(output, context);
|
|
1385
1377
|
}
|
|
1386
1378
|
const contents = map({
|
|
1387
1379
|
$metadata: deserializeMetadata(output),
|
|
@@ -1389,8 +1381,8 @@ const deserializeAws_restJson1UpdateCampaignNameCommand = async (output, context
|
|
|
1389
1381
|
await collectBody(output.body, context);
|
|
1390
1382
|
return contents;
|
|
1391
1383
|
};
|
|
1392
|
-
exports.
|
|
1393
|
-
const
|
|
1384
|
+
exports.de_UpdateCampaignNameCommand = de_UpdateCampaignNameCommand;
|
|
1385
|
+
const de_UpdateCampaignNameCommandError = async (output, context) => {
|
|
1394
1386
|
const parsedOutput = {
|
|
1395
1387
|
...output,
|
|
1396
1388
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1399,19 +1391,19 @@ const deserializeAws_restJson1UpdateCampaignNameCommandError = async (output, co
|
|
|
1399
1391
|
switch (errorCode) {
|
|
1400
1392
|
case "AccessDeniedException":
|
|
1401
1393
|
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1402
|
-
throw await
|
|
1394
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1403
1395
|
case "ConflictException":
|
|
1404
1396
|
case "com.amazonaws.connectcampaigns#ConflictException":
|
|
1405
|
-
throw await
|
|
1397
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1406
1398
|
case "InternalServerException":
|
|
1407
1399
|
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1408
|
-
throw await
|
|
1400
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1409
1401
|
case "ResourceNotFoundException":
|
|
1410
1402
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1411
|
-
throw await
|
|
1403
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1412
1404
|
case "ValidationException":
|
|
1413
1405
|
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1414
|
-
throw await
|
|
1406
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1415
1407
|
default:
|
|
1416
1408
|
const parsedBody = parsedOutput.body;
|
|
1417
1409
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1422,9 +1414,9 @@ const deserializeAws_restJson1UpdateCampaignNameCommandError = async (output, co
|
|
|
1422
1414
|
});
|
|
1423
1415
|
}
|
|
1424
1416
|
};
|
|
1425
|
-
const
|
|
1417
|
+
const de_UpdateCampaignOutboundCallConfigCommand = async (output, context) => {
|
|
1426
1418
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1427
|
-
return
|
|
1419
|
+
return de_UpdateCampaignOutboundCallConfigCommandError(output, context);
|
|
1428
1420
|
}
|
|
1429
1421
|
const contents = map({
|
|
1430
1422
|
$metadata: deserializeMetadata(output),
|
|
@@ -1432,8 +1424,8 @@ const deserializeAws_restJson1UpdateCampaignOutboundCallConfigCommand = async (o
|
|
|
1432
1424
|
await collectBody(output.body, context);
|
|
1433
1425
|
return contents;
|
|
1434
1426
|
};
|
|
1435
|
-
exports.
|
|
1436
|
-
const
|
|
1427
|
+
exports.de_UpdateCampaignOutboundCallConfigCommand = de_UpdateCampaignOutboundCallConfigCommand;
|
|
1428
|
+
const de_UpdateCampaignOutboundCallConfigCommandError = async (output, context) => {
|
|
1437
1429
|
const parsedOutput = {
|
|
1438
1430
|
...output,
|
|
1439
1431
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1442,22 +1434,22 @@ const deserializeAws_restJson1UpdateCampaignOutboundCallConfigCommandError = asy
|
|
|
1442
1434
|
switch (errorCode) {
|
|
1443
1435
|
case "AccessDeniedException":
|
|
1444
1436
|
case "com.amazonaws.connectcampaigns#AccessDeniedException":
|
|
1445
|
-
throw await
|
|
1437
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1446
1438
|
case "ConflictException":
|
|
1447
1439
|
case "com.amazonaws.connectcampaigns#ConflictException":
|
|
1448
|
-
throw await
|
|
1440
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1449
1441
|
case "InternalServerException":
|
|
1450
1442
|
case "com.amazonaws.connectcampaigns#InternalServerException":
|
|
1451
|
-
throw await
|
|
1443
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1452
1444
|
case "ResourceNotFoundException":
|
|
1453
1445
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
|
|
1454
|
-
throw await
|
|
1446
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1455
1447
|
case "ThrottlingException":
|
|
1456
1448
|
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1457
|
-
throw await
|
|
1449
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1458
1450
|
case "ValidationException":
|
|
1459
1451
|
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1460
|
-
throw await
|
|
1452
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1461
1453
|
default:
|
|
1462
1454
|
const parsedBody = parsedOutput.body;
|
|
1463
1455
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1469,7 +1461,7 @@ const deserializeAws_restJson1UpdateCampaignOutboundCallConfigCommandError = asy
|
|
|
1469
1461
|
}
|
|
1470
1462
|
};
|
|
1471
1463
|
const map = smithy_client_1.map;
|
|
1472
|
-
const
|
|
1464
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1473
1465
|
const contents = map({
|
|
1474
1466
|
xAmzErrorType: [, parsedOutput.headers["x-amzn-errortype"]],
|
|
1475
1467
|
});
|
|
@@ -1483,7 +1475,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
1483
1475
|
});
|
|
1484
1476
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1485
1477
|
};
|
|
1486
|
-
const
|
|
1478
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1487
1479
|
const contents = map({
|
|
1488
1480
|
xAmzErrorType: [, parsedOutput.headers["x-amzn-errortype"]],
|
|
1489
1481
|
});
|
|
@@ -1497,7 +1489,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1497
1489
|
});
|
|
1498
1490
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1499
1491
|
};
|
|
1500
|
-
const
|
|
1492
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1501
1493
|
const contents = map({
|
|
1502
1494
|
xAmzErrorType: [, parsedOutput.headers["x-amzn-errortype"]],
|
|
1503
1495
|
});
|
|
@@ -1511,7 +1503,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
1511
1503
|
});
|
|
1512
1504
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1513
1505
|
};
|
|
1514
|
-
const
|
|
1506
|
+
const de_InvalidCampaignStateExceptionRes = async (parsedOutput, context) => {
|
|
1515
1507
|
const contents = map({
|
|
1516
1508
|
xAmzErrorType: [, parsedOutput.headers["x-amzn-errortype"]],
|
|
1517
1509
|
});
|
|
@@ -1528,7 +1520,7 @@ const deserializeAws_restJson1InvalidCampaignStateExceptionResponse = async (par
|
|
|
1528
1520
|
});
|
|
1529
1521
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1530
1522
|
};
|
|
1531
|
-
const
|
|
1523
|
+
const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
1532
1524
|
const contents = map({
|
|
1533
1525
|
xAmzErrorType: [, parsedOutput.headers["x-amzn-errortype"]],
|
|
1534
1526
|
});
|
|
@@ -1542,7 +1534,7 @@ const deserializeAws_restJson1InvalidStateExceptionResponse = async (parsedOutpu
|
|
|
1542
1534
|
});
|
|
1543
1535
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1544
1536
|
};
|
|
1545
|
-
const
|
|
1537
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1546
1538
|
const contents = map({
|
|
1547
1539
|
xAmzErrorType: [, parsedOutput.headers["x-amzn-errortype"]],
|
|
1548
1540
|
});
|
|
@@ -1556,7 +1548,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1556
1548
|
});
|
|
1557
1549
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1558
1550
|
};
|
|
1559
|
-
const
|
|
1551
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1560
1552
|
const contents = map({
|
|
1561
1553
|
xAmzErrorType: [, parsedOutput.headers["x-amzn-errortype"]],
|
|
1562
1554
|
});
|
|
@@ -1570,7 +1562,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
1570
1562
|
});
|
|
1571
1563
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1572
1564
|
};
|
|
1573
|
-
const
|
|
1565
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1574
1566
|
const contents = map({
|
|
1575
1567
|
xAmzErrorType: [, parsedOutput.headers["x-amzn-errortype"]],
|
|
1576
1568
|
});
|
|
@@ -1584,7 +1576,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
1584
1576
|
});
|
|
1585
1577
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1586
1578
|
};
|
|
1587
|
-
const
|
|
1579
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1588
1580
|
const contents = map({
|
|
1589
1581
|
xAmzErrorType: [, parsedOutput.headers["x-amzn-errortype"]],
|
|
1590
1582
|
});
|
|
@@ -1598,14 +1590,14 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1598
1590
|
});
|
|
1599
1591
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1600
1592
|
};
|
|
1601
|
-
const
|
|
1593
|
+
const se_AnswerMachineDetectionConfig = (input, context) => {
|
|
1602
1594
|
return {
|
|
1603
1595
|
...(input.enableAnswerMachineDetection != null && {
|
|
1604
1596
|
enableAnswerMachineDetection: input.enableAnswerMachineDetection,
|
|
1605
1597
|
}),
|
|
1606
1598
|
};
|
|
1607
1599
|
};
|
|
1608
|
-
const
|
|
1600
|
+
const se_Attributes = (input, context) => {
|
|
1609
1601
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1610
1602
|
if (value === null) {
|
|
1611
1603
|
return acc;
|
|
@@ -1614,80 +1606,74 @@ const serializeAws_restJson1Attributes = (input, context) => {
|
|
|
1614
1606
|
return acc;
|
|
1615
1607
|
}, {});
|
|
1616
1608
|
};
|
|
1617
|
-
const
|
|
1609
|
+
const se_CampaignFilters = (input, context) => {
|
|
1618
1610
|
return {
|
|
1619
|
-
...(input.instanceIdFilter != null && {
|
|
1620
|
-
instanceIdFilter: serializeAws_restJson1InstanceIdFilter(input.instanceIdFilter, context),
|
|
1621
|
-
}),
|
|
1611
|
+
...(input.instanceIdFilter != null && { instanceIdFilter: se_InstanceIdFilter(input.instanceIdFilter, context) }),
|
|
1622
1612
|
};
|
|
1623
1613
|
};
|
|
1624
|
-
const
|
|
1614
|
+
const se_CampaignIdList = (input, context) => {
|
|
1625
1615
|
return input
|
|
1626
1616
|
.filter((e) => e != null)
|
|
1627
1617
|
.map((entry) => {
|
|
1628
1618
|
return entry;
|
|
1629
1619
|
});
|
|
1630
1620
|
};
|
|
1631
|
-
const
|
|
1621
|
+
const se_DialerConfig = (input, context) => {
|
|
1632
1622
|
return models_0_1.DialerConfig.visit(input, {
|
|
1633
|
-
predictiveDialerConfig: (value) => ({
|
|
1634
|
-
|
|
1635
|
-
}),
|
|
1636
|
-
progressiveDialerConfig: (value) => ({
|
|
1637
|
-
progressiveDialerConfig: serializeAws_restJson1ProgressiveDialerConfig(value, context),
|
|
1638
|
-
}),
|
|
1623
|
+
predictiveDialerConfig: (value) => ({ predictiveDialerConfig: se_PredictiveDialerConfig(value, context) }),
|
|
1624
|
+
progressiveDialerConfig: (value) => ({ progressiveDialerConfig: se_ProgressiveDialerConfig(value, context) }),
|
|
1639
1625
|
_: (name, value) => ({ name: value }),
|
|
1640
1626
|
});
|
|
1641
1627
|
};
|
|
1642
|
-
const
|
|
1628
|
+
const se_DialRequest = (input, context) => {
|
|
1643
1629
|
return {
|
|
1644
|
-
...(input.attributes != null && { attributes:
|
|
1630
|
+
...(input.attributes != null && { attributes: se_Attributes(input.attributes, context) }),
|
|
1645
1631
|
...(input.clientToken != null && { clientToken: input.clientToken }),
|
|
1646
1632
|
...(input.expirationTime != null && { expirationTime: input.expirationTime.toISOString().split(".")[0] + "Z" }),
|
|
1647
1633
|
...(input.phoneNumber != null && { phoneNumber: input.phoneNumber }),
|
|
1648
1634
|
};
|
|
1649
1635
|
};
|
|
1650
|
-
const
|
|
1636
|
+
const se_DialRequestList = (input, context) => {
|
|
1651
1637
|
return input
|
|
1652
1638
|
.filter((e) => e != null)
|
|
1653
1639
|
.map((entry) => {
|
|
1654
|
-
return
|
|
1640
|
+
return se_DialRequest(entry, context);
|
|
1655
1641
|
});
|
|
1656
1642
|
};
|
|
1657
|
-
const
|
|
1643
|
+
const se_EncryptionConfig = (input, context) => {
|
|
1658
1644
|
return {
|
|
1659
1645
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
1660
1646
|
...(input.encryptionType != null && { encryptionType: input.encryptionType }),
|
|
1661
1647
|
...(input.keyArn != null && { keyArn: input.keyArn }),
|
|
1662
1648
|
};
|
|
1663
1649
|
};
|
|
1664
|
-
const
|
|
1650
|
+
const se_InstanceIdFilter = (input, context) => {
|
|
1665
1651
|
return {
|
|
1666
1652
|
...(input.operator != null && { operator: input.operator }),
|
|
1667
1653
|
...(input.value != null && { value: input.value }),
|
|
1668
1654
|
};
|
|
1669
1655
|
};
|
|
1670
|
-
const
|
|
1656
|
+
const se_OutboundCallConfig = (input, context) => {
|
|
1671
1657
|
return {
|
|
1672
1658
|
...(input.answerMachineDetectionConfig != null && {
|
|
1673
|
-
answerMachineDetectionConfig:
|
|
1659
|
+
answerMachineDetectionConfig: se_AnswerMachineDetectionConfig(input.answerMachineDetectionConfig, context),
|
|
1674
1660
|
}),
|
|
1675
1661
|
...(input.connectContactFlowId != null && { connectContactFlowId: input.connectContactFlowId }),
|
|
1676
1662
|
...(input.connectQueueId != null && { connectQueueId: input.connectQueueId }),
|
|
1677
1663
|
...(input.connectSourcePhoneNumber != null && { connectSourcePhoneNumber: input.connectSourcePhoneNumber }),
|
|
1678
1664
|
};
|
|
1679
1665
|
};
|
|
1680
|
-
const
|
|
1666
|
+
const se_PredictiveDialerConfig = (input, context) => {
|
|
1681
1667
|
return {
|
|
1682
1668
|
...(input.bandwidthAllocation != null && { bandwidthAllocation: (0, smithy_client_1.serializeFloat)(input.bandwidthAllocation) }),
|
|
1683
1669
|
};
|
|
1684
1670
|
};
|
|
1685
|
-
const
|
|
1671
|
+
const se_ProgressiveDialerConfig = (input, context) => {
|
|
1686
1672
|
return {
|
|
1687
1673
|
...(input.bandwidthAllocation != null && { bandwidthAllocation: (0, smithy_client_1.serializeFloat)(input.bandwidthAllocation) }),
|
|
1688
1674
|
};
|
|
1689
1675
|
};
|
|
1690
|
-
const
|
|
1676
|
+
const se_TagMap = (input, context) => {
|
|
1691
1677
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1692
1678
|
if (value === null) {
|
|
1693
1679
|
return acc;
|
|
@@ -1696,27 +1682,23 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1696
1682
|
return acc;
|
|
1697
1683
|
}, {});
|
|
1698
1684
|
};
|
|
1699
|
-
const
|
|
1685
|
+
const de_AnswerMachineDetectionConfig = (output, context) => {
|
|
1700
1686
|
return {
|
|
1701
1687
|
enableAnswerMachineDetection: (0, smithy_client_1.expectBoolean)(output.enableAnswerMachineDetection),
|
|
1702
1688
|
};
|
|
1703
1689
|
};
|
|
1704
|
-
const
|
|
1690
|
+
const de_Campaign = (output, context) => {
|
|
1705
1691
|
return {
|
|
1706
1692
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1707
1693
|
connectInstanceId: (0, smithy_client_1.expectString)(output.connectInstanceId),
|
|
1708
|
-
dialerConfig: output.dialerConfig != null
|
|
1709
|
-
? deserializeAws_restJson1DialerConfig((0, smithy_client_1.expectUnion)(output.dialerConfig), context)
|
|
1710
|
-
: undefined,
|
|
1694
|
+
dialerConfig: output.dialerConfig != null ? de_DialerConfig((0, smithy_client_1.expectUnion)(output.dialerConfig), context) : undefined,
|
|
1711
1695
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1712
1696
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1713
|
-
outboundCallConfig: output.outboundCallConfig != null
|
|
1714
|
-
|
|
1715
|
-
: undefined,
|
|
1716
|
-
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
1697
|
+
outboundCallConfig: output.outboundCallConfig != null ? de_OutboundCallConfig(output.outboundCallConfig, context) : undefined,
|
|
1698
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1717
1699
|
};
|
|
1718
1700
|
};
|
|
1719
|
-
const
|
|
1701
|
+
const de_CampaignSummary = (output, context) => {
|
|
1720
1702
|
return {
|
|
1721
1703
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1722
1704
|
connectInstanceId: (0, smithy_client_1.expectString)(output.connectInstanceId),
|
|
@@ -1724,143 +1706,141 @@ const deserializeAws_restJson1CampaignSummary = (output, context) => {
|
|
|
1724
1706
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1725
1707
|
};
|
|
1726
1708
|
};
|
|
1727
|
-
const
|
|
1709
|
+
const de_CampaignSummaryList = (output, context) => {
|
|
1728
1710
|
const retVal = (output || [])
|
|
1729
1711
|
.filter((e) => e != null)
|
|
1730
1712
|
.map((entry) => {
|
|
1731
1713
|
if (entry === null) {
|
|
1732
1714
|
return null;
|
|
1733
1715
|
}
|
|
1734
|
-
return
|
|
1716
|
+
return de_CampaignSummary(entry, context);
|
|
1735
1717
|
});
|
|
1736
1718
|
return retVal;
|
|
1737
1719
|
};
|
|
1738
|
-
const
|
|
1720
|
+
const de_DialerConfig = (output, context) => {
|
|
1739
1721
|
if (output.predictiveDialerConfig != null) {
|
|
1740
1722
|
return {
|
|
1741
|
-
predictiveDialerConfig:
|
|
1723
|
+
predictiveDialerConfig: de_PredictiveDialerConfig(output.predictiveDialerConfig, context),
|
|
1742
1724
|
};
|
|
1743
1725
|
}
|
|
1744
1726
|
if (output.progressiveDialerConfig != null) {
|
|
1745
1727
|
return {
|
|
1746
|
-
progressiveDialerConfig:
|
|
1728
|
+
progressiveDialerConfig: de_ProgressiveDialerConfig(output.progressiveDialerConfig, context),
|
|
1747
1729
|
};
|
|
1748
1730
|
}
|
|
1749
1731
|
return { $unknown: Object.entries(output)[0] };
|
|
1750
1732
|
};
|
|
1751
|
-
const
|
|
1733
|
+
const de_EncryptionConfig = (output, context) => {
|
|
1752
1734
|
return {
|
|
1753
1735
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
1754
1736
|
encryptionType: (0, smithy_client_1.expectString)(output.encryptionType),
|
|
1755
1737
|
keyArn: (0, smithy_client_1.expectString)(output.keyArn),
|
|
1756
1738
|
};
|
|
1757
1739
|
};
|
|
1758
|
-
const
|
|
1740
|
+
const de_FailedCampaignStateResponse = (output, context) => {
|
|
1759
1741
|
return {
|
|
1760
1742
|
campaignId: (0, smithy_client_1.expectString)(output.campaignId),
|
|
1761
1743
|
failureCode: (0, smithy_client_1.expectString)(output.failureCode),
|
|
1762
1744
|
};
|
|
1763
1745
|
};
|
|
1764
|
-
const
|
|
1746
|
+
const de_FailedCampaignStateResponseList = (output, context) => {
|
|
1765
1747
|
const retVal = (output || [])
|
|
1766
1748
|
.filter((e) => e != null)
|
|
1767
1749
|
.map((entry) => {
|
|
1768
1750
|
if (entry === null) {
|
|
1769
1751
|
return null;
|
|
1770
1752
|
}
|
|
1771
|
-
return
|
|
1753
|
+
return de_FailedCampaignStateResponse(entry, context);
|
|
1772
1754
|
});
|
|
1773
1755
|
return retVal;
|
|
1774
1756
|
};
|
|
1775
|
-
const
|
|
1757
|
+
const de_FailedRequest = (output, context) => {
|
|
1776
1758
|
return {
|
|
1777
1759
|
clientToken: (0, smithy_client_1.expectString)(output.clientToken),
|
|
1778
1760
|
failureCode: (0, smithy_client_1.expectString)(output.failureCode),
|
|
1779
1761
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1780
1762
|
};
|
|
1781
1763
|
};
|
|
1782
|
-
const
|
|
1764
|
+
const de_FailedRequestList = (output, context) => {
|
|
1783
1765
|
const retVal = (output || [])
|
|
1784
1766
|
.filter((e) => e != null)
|
|
1785
1767
|
.map((entry) => {
|
|
1786
1768
|
if (entry === null) {
|
|
1787
1769
|
return null;
|
|
1788
1770
|
}
|
|
1789
|
-
return
|
|
1771
|
+
return de_FailedRequest(entry, context);
|
|
1790
1772
|
});
|
|
1791
1773
|
return retVal;
|
|
1792
1774
|
};
|
|
1793
|
-
const
|
|
1775
|
+
const de_InstanceConfig = (output, context) => {
|
|
1794
1776
|
return {
|
|
1795
1777
|
connectInstanceId: (0, smithy_client_1.expectString)(output.connectInstanceId),
|
|
1796
|
-
encryptionConfig: output.encryptionConfig != null
|
|
1797
|
-
? deserializeAws_restJson1EncryptionConfig(output.encryptionConfig, context)
|
|
1798
|
-
: undefined,
|
|
1778
|
+
encryptionConfig: output.encryptionConfig != null ? de_EncryptionConfig(output.encryptionConfig, context) : undefined,
|
|
1799
1779
|
serviceLinkedRoleArn: (0, smithy_client_1.expectString)(output.serviceLinkedRoleArn),
|
|
1800
1780
|
};
|
|
1801
1781
|
};
|
|
1802
|
-
const
|
|
1782
|
+
const de_InstanceOnboardingJobStatus = (output, context) => {
|
|
1803
1783
|
return {
|
|
1804
1784
|
connectInstanceId: (0, smithy_client_1.expectString)(output.connectInstanceId),
|
|
1805
1785
|
failureCode: (0, smithy_client_1.expectString)(output.failureCode),
|
|
1806
1786
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1807
1787
|
};
|
|
1808
1788
|
};
|
|
1809
|
-
const
|
|
1789
|
+
const de_OutboundCallConfig = (output, context) => {
|
|
1810
1790
|
return {
|
|
1811
1791
|
answerMachineDetectionConfig: output.answerMachineDetectionConfig != null
|
|
1812
|
-
?
|
|
1792
|
+
? de_AnswerMachineDetectionConfig(output.answerMachineDetectionConfig, context)
|
|
1813
1793
|
: undefined,
|
|
1814
1794
|
connectContactFlowId: (0, smithy_client_1.expectString)(output.connectContactFlowId),
|
|
1815
1795
|
connectQueueId: (0, smithy_client_1.expectString)(output.connectQueueId),
|
|
1816
1796
|
connectSourcePhoneNumber: (0, smithy_client_1.expectString)(output.connectSourcePhoneNumber),
|
|
1817
1797
|
};
|
|
1818
1798
|
};
|
|
1819
|
-
const
|
|
1799
|
+
const de_PredictiveDialerConfig = (output, context) => {
|
|
1820
1800
|
return {
|
|
1821
1801
|
bandwidthAllocation: (0, smithy_client_1.limitedParseDouble)(output.bandwidthAllocation),
|
|
1822
1802
|
};
|
|
1823
1803
|
};
|
|
1824
|
-
const
|
|
1804
|
+
const de_ProgressiveDialerConfig = (output, context) => {
|
|
1825
1805
|
return {
|
|
1826
1806
|
bandwidthAllocation: (0, smithy_client_1.limitedParseDouble)(output.bandwidthAllocation),
|
|
1827
1807
|
};
|
|
1828
1808
|
};
|
|
1829
|
-
const
|
|
1809
|
+
const de_SuccessfulCampaignStateResponse = (output, context) => {
|
|
1830
1810
|
return {
|
|
1831
1811
|
campaignId: (0, smithy_client_1.expectString)(output.campaignId),
|
|
1832
1812
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
1833
1813
|
};
|
|
1834
1814
|
};
|
|
1835
|
-
const
|
|
1815
|
+
const de_SuccessfulCampaignStateResponseList = (output, context) => {
|
|
1836
1816
|
const retVal = (output || [])
|
|
1837
1817
|
.filter((e) => e != null)
|
|
1838
1818
|
.map((entry) => {
|
|
1839
1819
|
if (entry === null) {
|
|
1840
1820
|
return null;
|
|
1841
1821
|
}
|
|
1842
|
-
return
|
|
1822
|
+
return de_SuccessfulCampaignStateResponse(entry, context);
|
|
1843
1823
|
});
|
|
1844
1824
|
return retVal;
|
|
1845
1825
|
};
|
|
1846
|
-
const
|
|
1826
|
+
const de_SuccessfulRequest = (output, context) => {
|
|
1847
1827
|
return {
|
|
1848
1828
|
clientToken: (0, smithy_client_1.expectString)(output.clientToken),
|
|
1849
1829
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1850
1830
|
};
|
|
1851
1831
|
};
|
|
1852
|
-
const
|
|
1832
|
+
const de_SuccessfulRequestList = (output, context) => {
|
|
1853
1833
|
const retVal = (output || [])
|
|
1854
1834
|
.filter((e) => e != null)
|
|
1855
1835
|
.map((entry) => {
|
|
1856
1836
|
if (entry === null) {
|
|
1857
1837
|
return null;
|
|
1858
1838
|
}
|
|
1859
|
-
return
|
|
1839
|
+
return de_SuccessfulRequest(entry, context);
|
|
1860
1840
|
});
|
|
1861
1841
|
return retVal;
|
|
1862
1842
|
};
|
|
1863
|
-
const
|
|
1843
|
+
const de_TagMap = (output, context) => {
|
|
1864
1844
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1865
1845
|
if (value === null) {
|
|
1866
1846
|
return acc;
|