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