@aws-sdk/client-connectcases 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/BatchGetFieldCommand.js +2 -2
- package/dist-cjs/commands/BatchPutFieldOptionsCommand.js +2 -2
- package/dist-cjs/commands/CreateCaseCommand.js +2 -2
- package/dist-cjs/commands/CreateDomainCommand.js +2 -2
- package/dist-cjs/commands/CreateFieldCommand.js +2 -2
- package/dist-cjs/commands/CreateLayoutCommand.js +2 -2
- package/dist-cjs/commands/CreateRelatedItemCommand.js +2 -2
- package/dist-cjs/commands/CreateTemplateCommand.js +2 -2
- package/dist-cjs/commands/DeleteDomainCommand.js +2 -2
- package/dist-cjs/commands/GetCaseCommand.js +2 -2
- package/dist-cjs/commands/GetCaseEventConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetDomainCommand.js +2 -2
- package/dist-cjs/commands/GetLayoutCommand.js +2 -2
- package/dist-cjs/commands/GetTemplateCommand.js +2 -2
- package/dist-cjs/commands/ListCasesForContactCommand.js +2 -2
- package/dist-cjs/commands/ListDomainsCommand.js +2 -2
- package/dist-cjs/commands/ListFieldOptionsCommand.js +2 -2
- package/dist-cjs/commands/ListFieldsCommand.js +2 -2
- package/dist-cjs/commands/ListLayoutsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListTemplatesCommand.js +2 -2
- package/dist-cjs/commands/PutCaseEventConfigurationCommand.js +2 -2
- package/dist-cjs/commands/SearchCasesCommand.js +2 -2
- package/dist-cjs/commands/SearchRelatedItemsCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateCaseCommand.js +2 -2
- package/dist-cjs/commands/UpdateFieldCommand.js +2 -2
- package/dist-cjs/commands/UpdateLayoutCommand.js +2 -2
- package/dist-cjs/commands/UpdateTemplateCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +544 -556
- package/dist-es/commands/BatchGetFieldCommand.js +3 -3
- package/dist-es/commands/BatchPutFieldOptionsCommand.js +3 -3
- package/dist-es/commands/CreateCaseCommand.js +3 -3
- package/dist-es/commands/CreateDomainCommand.js +3 -3
- package/dist-es/commands/CreateFieldCommand.js +3 -3
- package/dist-es/commands/CreateLayoutCommand.js +3 -3
- package/dist-es/commands/CreateRelatedItemCommand.js +3 -3
- package/dist-es/commands/CreateTemplateCommand.js +3 -3
- package/dist-es/commands/DeleteDomainCommand.js +3 -3
- package/dist-es/commands/GetCaseCommand.js +3 -3
- package/dist-es/commands/GetCaseEventConfigurationCommand.js +3 -3
- package/dist-es/commands/GetDomainCommand.js +3 -3
- package/dist-es/commands/GetLayoutCommand.js +3 -3
- package/dist-es/commands/GetTemplateCommand.js +3 -3
- package/dist-es/commands/ListCasesForContactCommand.js +3 -3
- package/dist-es/commands/ListDomainsCommand.js +3 -3
- package/dist-es/commands/ListFieldOptionsCommand.js +3 -3
- package/dist-es/commands/ListFieldsCommand.js +3 -3
- package/dist-es/commands/ListLayoutsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListTemplatesCommand.js +3 -3
- package/dist-es/commands/PutCaseEventConfigurationCommand.js +3 -3
- package/dist-es/commands/SearchCasesCommand.js +3 -3
- package/dist-es/commands/SearchRelatedItemsCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateCaseCommand.js +3 -3
- package/dist-es/commands/UpdateFieldCommand.js +3 -3
- package/dist-es/commands/UpdateLayoutCommand.js +3 -3
- package/dist-es/commands/UpdateTemplateCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +482 -494
- package/dist-types/protocols/Aws_restJson1.d.ts +240 -60
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -60
- package/package.json +29 -29
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.de_ListTagsForResourceCommand = exports.de_ListLayoutsCommand = exports.de_ListFieldsCommand = exports.de_ListFieldOptionsCommand = exports.de_ListDomainsCommand = exports.de_ListCasesForContactCommand = exports.de_GetTemplateCommand = exports.de_GetLayoutCommand = exports.de_GetDomainCommand = exports.de_GetCaseEventConfigurationCommand = exports.de_GetCaseCommand = exports.de_DeleteDomainCommand = exports.de_CreateTemplateCommand = exports.de_CreateRelatedItemCommand = exports.de_CreateLayoutCommand = exports.de_CreateFieldCommand = exports.de_CreateDomainCommand = exports.de_CreateCaseCommand = exports.de_BatchPutFieldOptionsCommand = exports.de_BatchGetFieldCommand = exports.se_UpdateTemplateCommand = exports.se_UpdateLayoutCommand = exports.se_UpdateFieldCommand = exports.se_UpdateCaseCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SearchRelatedItemsCommand = exports.se_SearchCasesCommand = exports.se_PutCaseEventConfigurationCommand = exports.se_ListTemplatesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListLayoutsCommand = exports.se_ListFieldsCommand = exports.se_ListFieldOptionsCommand = exports.se_ListDomainsCommand = exports.se_ListCasesForContactCommand = exports.se_GetTemplateCommand = exports.se_GetLayoutCommand = exports.se_GetDomainCommand = exports.se_GetCaseEventConfigurationCommand = exports.se_GetCaseCommand = exports.se_DeleteDomainCommand = exports.se_CreateTemplateCommand = exports.se_CreateRelatedItemCommand = exports.se_CreateLayoutCommand = exports.se_CreateFieldCommand = exports.se_CreateDomainCommand = exports.se_CreateCaseCommand = exports.se_BatchPutFieldOptionsCommand = exports.se_BatchGetFieldCommand = void 0;
|
|
4
|
+
exports.de_UpdateTemplateCommand = exports.de_UpdateLayoutCommand = exports.de_UpdateFieldCommand = exports.de_UpdateCaseCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SearchRelatedItemsCommand = exports.de_SearchCasesCommand = exports.de_PutCaseEventConfigurationCommand = exports.de_ListTemplatesCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
8
|
const ConnectCasesServiceException_1 = require("../models/ConnectCasesServiceException");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const
|
|
10
|
+
const se_BatchGetFieldCommand = async (input, context) => {
|
|
11
11
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
12
12
|
const headers = {
|
|
13
13
|
"content-type": "application/json",
|
|
@@ -16,7 +16,7 @@ const serializeAws_restJson1BatchGetFieldCommand = async (input, context) => {
|
|
|
16
16
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
17
17
|
let body;
|
|
18
18
|
body = JSON.stringify({
|
|
19
|
-
...(input.fields != null && { fields:
|
|
19
|
+
...(input.fields != null && { fields: se_BatchGetFieldIdentifierList(input.fields, context) }),
|
|
20
20
|
});
|
|
21
21
|
return new protocol_http_1.HttpRequest({
|
|
22
22
|
protocol,
|
|
@@ -28,8 +28,8 @@ const serializeAws_restJson1BatchGetFieldCommand = async (input, context) => {
|
|
|
28
28
|
body,
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
|
-
exports.
|
|
32
|
-
const
|
|
31
|
+
exports.se_BatchGetFieldCommand = se_BatchGetFieldCommand;
|
|
32
|
+
const se_BatchPutFieldOptionsCommand = async (input, context) => {
|
|
33
33
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
34
34
|
const headers = {
|
|
35
35
|
"content-type": "application/json",
|
|
@@ -40,7 +40,7 @@ const serializeAws_restJson1BatchPutFieldOptionsCommand = async (input, context)
|
|
|
40
40
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "fieldId", () => input.fieldId, "{fieldId}", false);
|
|
41
41
|
let body;
|
|
42
42
|
body = JSON.stringify({
|
|
43
|
-
...(input.options != null && { options:
|
|
43
|
+
...(input.options != null && { options: se_FieldOptionsList(input.options, context) }),
|
|
44
44
|
});
|
|
45
45
|
return new protocol_http_1.HttpRequest({
|
|
46
46
|
protocol,
|
|
@@ -52,8 +52,8 @@ const serializeAws_restJson1BatchPutFieldOptionsCommand = async (input, context)
|
|
|
52
52
|
body,
|
|
53
53
|
});
|
|
54
54
|
};
|
|
55
|
-
exports.
|
|
56
|
-
const
|
|
55
|
+
exports.se_BatchPutFieldOptionsCommand = se_BatchPutFieldOptionsCommand;
|
|
56
|
+
const se_CreateCaseCommand = async (input, context) => {
|
|
57
57
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
58
58
|
const headers = {
|
|
59
59
|
"content-type": "application/json",
|
|
@@ -63,7 +63,7 @@ const serializeAws_restJson1CreateCaseCommand = async (input, context) => {
|
|
|
63
63
|
let body;
|
|
64
64
|
body = JSON.stringify({
|
|
65
65
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
66
|
-
...(input.fields != null && { fields:
|
|
66
|
+
...(input.fields != null && { fields: se_FieldValueList(input.fields, context) }),
|
|
67
67
|
...(input.templateId != null && { templateId: input.templateId }),
|
|
68
68
|
});
|
|
69
69
|
return new protocol_http_1.HttpRequest({
|
|
@@ -76,8 +76,8 @@ const serializeAws_restJson1CreateCaseCommand = async (input, context) => {
|
|
|
76
76
|
body,
|
|
77
77
|
});
|
|
78
78
|
};
|
|
79
|
-
exports.
|
|
80
|
-
const
|
|
79
|
+
exports.se_CreateCaseCommand = se_CreateCaseCommand;
|
|
80
|
+
const se_CreateDomainCommand = async (input, context) => {
|
|
81
81
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
82
82
|
const headers = {
|
|
83
83
|
"content-type": "application/json",
|
|
@@ -97,8 +97,8 @@ const serializeAws_restJson1CreateDomainCommand = async (input, context) => {
|
|
|
97
97
|
body,
|
|
98
98
|
});
|
|
99
99
|
};
|
|
100
|
-
exports.
|
|
101
|
-
const
|
|
100
|
+
exports.se_CreateDomainCommand = se_CreateDomainCommand;
|
|
101
|
+
const se_CreateFieldCommand = async (input, context) => {
|
|
102
102
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
103
103
|
const headers = {
|
|
104
104
|
"content-type": "application/json",
|
|
@@ -121,8 +121,8 @@ const serializeAws_restJson1CreateFieldCommand = async (input, context) => {
|
|
|
121
121
|
body,
|
|
122
122
|
});
|
|
123
123
|
};
|
|
124
|
-
exports.
|
|
125
|
-
const
|
|
124
|
+
exports.se_CreateFieldCommand = se_CreateFieldCommand;
|
|
125
|
+
const se_CreateLayoutCommand = async (input, context) => {
|
|
126
126
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
127
127
|
const headers = {
|
|
128
128
|
"content-type": "application/json",
|
|
@@ -131,7 +131,7 @@ const serializeAws_restJson1CreateLayoutCommand = async (input, context) => {
|
|
|
131
131
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
132
132
|
let body;
|
|
133
133
|
body = JSON.stringify({
|
|
134
|
-
...(input.content != null && { content:
|
|
134
|
+
...(input.content != null && { content: se_LayoutContent(input.content, context) }),
|
|
135
135
|
...(input.name != null && { name: input.name }),
|
|
136
136
|
});
|
|
137
137
|
return new protocol_http_1.HttpRequest({
|
|
@@ -144,8 +144,8 @@ const serializeAws_restJson1CreateLayoutCommand = async (input, context) => {
|
|
|
144
144
|
body,
|
|
145
145
|
});
|
|
146
146
|
};
|
|
147
|
-
exports.
|
|
148
|
-
const
|
|
147
|
+
exports.se_CreateLayoutCommand = se_CreateLayoutCommand;
|
|
148
|
+
const se_CreateRelatedItemCommand = async (input, context) => {
|
|
149
149
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
150
150
|
const headers = {
|
|
151
151
|
"content-type": "application/json",
|
|
@@ -156,7 +156,7 @@ const serializeAws_restJson1CreateRelatedItemCommand = async (input, context) =>
|
|
|
156
156
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "caseId", () => input.caseId, "{caseId}", false);
|
|
157
157
|
let body;
|
|
158
158
|
body = JSON.stringify({
|
|
159
|
-
...(input.content != null && { content:
|
|
159
|
+
...(input.content != null && { content: se_RelatedItemInputContent(input.content, context) }),
|
|
160
160
|
...(input.type != null && { type: input.type }),
|
|
161
161
|
});
|
|
162
162
|
return new protocol_http_1.HttpRequest({
|
|
@@ -169,8 +169,8 @@ const serializeAws_restJson1CreateRelatedItemCommand = async (input, context) =>
|
|
|
169
169
|
body,
|
|
170
170
|
});
|
|
171
171
|
};
|
|
172
|
-
exports.
|
|
173
|
-
const
|
|
172
|
+
exports.se_CreateRelatedItemCommand = se_CreateRelatedItemCommand;
|
|
173
|
+
const se_CreateTemplateCommand = async (input, context) => {
|
|
174
174
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
175
175
|
const headers = {
|
|
176
176
|
"content-type": "application/json",
|
|
@@ -181,12 +181,10 @@ const serializeAws_restJson1CreateTemplateCommand = async (input, context) => {
|
|
|
181
181
|
body = JSON.stringify({
|
|
182
182
|
...(input.description != null && { description: input.description }),
|
|
183
183
|
...(input.layoutConfiguration != null && {
|
|
184
|
-
layoutConfiguration:
|
|
184
|
+
layoutConfiguration: se_LayoutConfiguration(input.layoutConfiguration, context),
|
|
185
185
|
}),
|
|
186
186
|
...(input.name != null && { name: input.name }),
|
|
187
|
-
...(input.requiredFields != null && {
|
|
188
|
-
requiredFields: serializeAws_restJson1RequiredFieldList(input.requiredFields, context),
|
|
189
|
-
}),
|
|
187
|
+
...(input.requiredFields != null && { requiredFields: se_RequiredFieldList(input.requiredFields, context) }),
|
|
190
188
|
...(input.status != null && { status: input.status }),
|
|
191
189
|
});
|
|
192
190
|
return new protocol_http_1.HttpRequest({
|
|
@@ -199,8 +197,8 @@ const serializeAws_restJson1CreateTemplateCommand = async (input, context) => {
|
|
|
199
197
|
body,
|
|
200
198
|
});
|
|
201
199
|
};
|
|
202
|
-
exports.
|
|
203
|
-
const
|
|
200
|
+
exports.se_CreateTemplateCommand = se_CreateTemplateCommand;
|
|
201
|
+
const se_DeleteDomainCommand = async (input, context) => {
|
|
204
202
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
205
203
|
const headers = {};
|
|
206
204
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}";
|
|
@@ -216,8 +214,8 @@ const serializeAws_restJson1DeleteDomainCommand = async (input, context) => {
|
|
|
216
214
|
body,
|
|
217
215
|
});
|
|
218
216
|
};
|
|
219
|
-
exports.
|
|
220
|
-
const
|
|
217
|
+
exports.se_DeleteDomainCommand = se_DeleteDomainCommand;
|
|
218
|
+
const se_GetCaseCommand = async (input, context) => {
|
|
221
219
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
222
220
|
const headers = {
|
|
223
221
|
"content-type": "application/json",
|
|
@@ -227,7 +225,7 @@ const serializeAws_restJson1GetCaseCommand = async (input, context) => {
|
|
|
227
225
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
228
226
|
let body;
|
|
229
227
|
body = JSON.stringify({
|
|
230
|
-
...(input.fields != null && { fields:
|
|
228
|
+
...(input.fields != null && { fields: se_FieldIdentifierList(input.fields, context) }),
|
|
231
229
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
232
230
|
});
|
|
233
231
|
return new protocol_http_1.HttpRequest({
|
|
@@ -240,8 +238,8 @@ const serializeAws_restJson1GetCaseCommand = async (input, context) => {
|
|
|
240
238
|
body,
|
|
241
239
|
});
|
|
242
240
|
};
|
|
243
|
-
exports.
|
|
244
|
-
const
|
|
241
|
+
exports.se_GetCaseCommand = se_GetCaseCommand;
|
|
242
|
+
const se_GetCaseEventConfigurationCommand = async (input, context) => {
|
|
245
243
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
246
244
|
const headers = {};
|
|
247
245
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -258,8 +256,8 @@ const serializeAws_restJson1GetCaseEventConfigurationCommand = async (input, con
|
|
|
258
256
|
body,
|
|
259
257
|
});
|
|
260
258
|
};
|
|
261
|
-
exports.
|
|
262
|
-
const
|
|
259
|
+
exports.se_GetCaseEventConfigurationCommand = se_GetCaseEventConfigurationCommand;
|
|
260
|
+
const se_GetDomainCommand = async (input, context) => {
|
|
263
261
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
264
262
|
const headers = {};
|
|
265
263
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}";
|
|
@@ -275,8 +273,8 @@ const serializeAws_restJson1GetDomainCommand = async (input, context) => {
|
|
|
275
273
|
body,
|
|
276
274
|
});
|
|
277
275
|
};
|
|
278
|
-
exports.
|
|
279
|
-
const
|
|
276
|
+
exports.se_GetDomainCommand = se_GetDomainCommand;
|
|
277
|
+
const se_GetLayoutCommand = async (input, context) => {
|
|
280
278
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
281
279
|
const headers = {};
|
|
282
280
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/layouts/{layoutId}";
|
|
@@ -293,8 +291,8 @@ const serializeAws_restJson1GetLayoutCommand = async (input, context) => {
|
|
|
293
291
|
body,
|
|
294
292
|
});
|
|
295
293
|
};
|
|
296
|
-
exports.
|
|
297
|
-
const
|
|
294
|
+
exports.se_GetLayoutCommand = se_GetLayoutCommand;
|
|
295
|
+
const se_GetTemplateCommand = async (input, context) => {
|
|
298
296
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
299
297
|
const headers = {};
|
|
300
298
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -312,8 +310,8 @@ const serializeAws_restJson1GetTemplateCommand = async (input, context) => {
|
|
|
312
310
|
body,
|
|
313
311
|
});
|
|
314
312
|
};
|
|
315
|
-
exports.
|
|
316
|
-
const
|
|
313
|
+
exports.se_GetTemplateCommand = se_GetTemplateCommand;
|
|
314
|
+
const se_ListCasesForContactCommand = async (input, context) => {
|
|
317
315
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
318
316
|
const headers = {
|
|
319
317
|
"content-type": "application/json",
|
|
@@ -337,8 +335,8 @@ const serializeAws_restJson1ListCasesForContactCommand = async (input, context)
|
|
|
337
335
|
body,
|
|
338
336
|
});
|
|
339
337
|
};
|
|
340
|
-
exports.
|
|
341
|
-
const
|
|
338
|
+
exports.se_ListCasesForContactCommand = se_ListCasesForContactCommand;
|
|
339
|
+
const se_ListDomainsCommand = async (input, context) => {
|
|
342
340
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
343
341
|
const headers = {};
|
|
344
342
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains-list";
|
|
@@ -358,8 +356,8 @@ const serializeAws_restJson1ListDomainsCommand = async (input, context) => {
|
|
|
358
356
|
body,
|
|
359
357
|
});
|
|
360
358
|
};
|
|
361
|
-
exports.
|
|
362
|
-
const
|
|
359
|
+
exports.se_ListDomainsCommand = se_ListDomainsCommand;
|
|
360
|
+
const se_ListFieldOptionsCommand = async (input, context) => {
|
|
363
361
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
364
362
|
const headers = {};
|
|
365
363
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -383,8 +381,8 @@ const serializeAws_restJson1ListFieldOptionsCommand = async (input, context) =>
|
|
|
383
381
|
body,
|
|
384
382
|
});
|
|
385
383
|
};
|
|
386
|
-
exports.
|
|
387
|
-
const
|
|
384
|
+
exports.se_ListFieldOptionsCommand = se_ListFieldOptionsCommand;
|
|
385
|
+
const se_ListFieldsCommand = async (input, context) => {
|
|
388
386
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
389
387
|
const headers = {};
|
|
390
388
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/fields-list";
|
|
@@ -405,8 +403,8 @@ const serializeAws_restJson1ListFieldsCommand = async (input, context) => {
|
|
|
405
403
|
body,
|
|
406
404
|
});
|
|
407
405
|
};
|
|
408
|
-
exports.
|
|
409
|
-
const
|
|
406
|
+
exports.se_ListFieldsCommand = se_ListFieldsCommand;
|
|
407
|
+
const se_ListLayoutsCommand = async (input, context) => {
|
|
410
408
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
411
409
|
const headers = {};
|
|
412
410
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/layouts-list";
|
|
@@ -427,8 +425,8 @@ const serializeAws_restJson1ListLayoutsCommand = async (input, context) => {
|
|
|
427
425
|
body,
|
|
428
426
|
});
|
|
429
427
|
};
|
|
430
|
-
exports.
|
|
431
|
-
const
|
|
428
|
+
exports.se_ListLayoutsCommand = se_ListLayoutsCommand;
|
|
429
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
432
430
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
433
431
|
const headers = {};
|
|
434
432
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{arn}";
|
|
@@ -444,8 +442,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
444
442
|
body,
|
|
445
443
|
});
|
|
446
444
|
};
|
|
447
|
-
exports.
|
|
448
|
-
const
|
|
445
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
446
|
+
const se_ListTemplatesCommand = async (input, context) => {
|
|
449
447
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
450
448
|
const headers = {};
|
|
451
449
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/templates-list";
|
|
@@ -467,8 +465,8 @@ const serializeAws_restJson1ListTemplatesCommand = async (input, context) => {
|
|
|
467
465
|
body,
|
|
468
466
|
});
|
|
469
467
|
};
|
|
470
|
-
exports.
|
|
471
|
-
const
|
|
468
|
+
exports.se_ListTemplatesCommand = se_ListTemplatesCommand;
|
|
469
|
+
const se_PutCaseEventConfigurationCommand = async (input, context) => {
|
|
472
470
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
473
471
|
const headers = {
|
|
474
472
|
"content-type": "application/json",
|
|
@@ -478,9 +476,7 @@ const serializeAws_restJson1PutCaseEventConfigurationCommand = async (input, con
|
|
|
478
476
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
479
477
|
let body;
|
|
480
478
|
body = JSON.stringify({
|
|
481
|
-
...(input.eventBridge != null && {
|
|
482
|
-
eventBridge: serializeAws_restJson1EventBridgeConfiguration(input.eventBridge, context),
|
|
483
|
-
}),
|
|
479
|
+
...(input.eventBridge != null && { eventBridge: se_EventBridgeConfiguration(input.eventBridge, context) }),
|
|
484
480
|
});
|
|
485
481
|
return new protocol_http_1.HttpRequest({
|
|
486
482
|
protocol,
|
|
@@ -492,8 +488,8 @@ const serializeAws_restJson1PutCaseEventConfigurationCommand = async (input, con
|
|
|
492
488
|
body,
|
|
493
489
|
});
|
|
494
490
|
};
|
|
495
|
-
exports.
|
|
496
|
-
const
|
|
491
|
+
exports.se_PutCaseEventConfigurationCommand = se_PutCaseEventConfigurationCommand;
|
|
492
|
+
const se_SearchCasesCommand = async (input, context) => {
|
|
497
493
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
498
494
|
const headers = {
|
|
499
495
|
"content-type": "application/json",
|
|
@@ -502,12 +498,12 @@ const serializeAws_restJson1SearchCasesCommand = async (input, context) => {
|
|
|
502
498
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
503
499
|
let body;
|
|
504
500
|
body = JSON.stringify({
|
|
505
|
-
...(input.fields != null && { fields:
|
|
506
|
-
...(input.filter != null && { filter:
|
|
501
|
+
...(input.fields != null && { fields: se_FieldIdentifierList(input.fields, context) }),
|
|
502
|
+
...(input.filter != null && { filter: se_CaseFilter(input.filter, context) }),
|
|
507
503
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
508
504
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
509
505
|
...(input.searchTerm != null && { searchTerm: input.searchTerm }),
|
|
510
|
-
...(input.sorts != null && { sorts:
|
|
506
|
+
...(input.sorts != null && { sorts: se_SortList(input.sorts, context) }),
|
|
511
507
|
});
|
|
512
508
|
return new protocol_http_1.HttpRequest({
|
|
513
509
|
protocol,
|
|
@@ -519,8 +515,8 @@ const serializeAws_restJson1SearchCasesCommand = async (input, context) => {
|
|
|
519
515
|
body,
|
|
520
516
|
});
|
|
521
517
|
};
|
|
522
|
-
exports.
|
|
523
|
-
const
|
|
518
|
+
exports.se_SearchCasesCommand = se_SearchCasesCommand;
|
|
519
|
+
const se_SearchRelatedItemsCommand = async (input, context) => {
|
|
524
520
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
525
521
|
const headers = {
|
|
526
522
|
"content-type": "application/json",
|
|
@@ -531,7 +527,7 @@ const serializeAws_restJson1SearchRelatedItemsCommand = async (input, context) =
|
|
|
531
527
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "caseId", () => input.caseId, "{caseId}", false);
|
|
532
528
|
let body;
|
|
533
529
|
body = JSON.stringify({
|
|
534
|
-
...(input.filters != null && { filters:
|
|
530
|
+
...(input.filters != null && { filters: se_RelatedItemFilterList(input.filters, context) }),
|
|
535
531
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
536
532
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
537
533
|
});
|
|
@@ -545,8 +541,8 @@ const serializeAws_restJson1SearchRelatedItemsCommand = async (input, context) =
|
|
|
545
541
|
body,
|
|
546
542
|
});
|
|
547
543
|
};
|
|
548
|
-
exports.
|
|
549
|
-
const
|
|
544
|
+
exports.se_SearchRelatedItemsCommand = se_SearchRelatedItemsCommand;
|
|
545
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
550
546
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
551
547
|
const headers = {
|
|
552
548
|
"content-type": "application/json",
|
|
@@ -555,7 +551,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
555
551
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "arn", () => input.arn, "{arn}", false);
|
|
556
552
|
let body;
|
|
557
553
|
body = JSON.stringify({
|
|
558
|
-
...(input.tags != null && { tags:
|
|
554
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
559
555
|
});
|
|
560
556
|
return new protocol_http_1.HttpRequest({
|
|
561
557
|
protocol,
|
|
@@ -567,8 +563,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
567
563
|
body,
|
|
568
564
|
});
|
|
569
565
|
};
|
|
570
|
-
exports.
|
|
571
|
-
const
|
|
566
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
567
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
572
568
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
573
569
|
const headers = {};
|
|
574
570
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{arn}";
|
|
@@ -591,8 +587,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
591
587
|
body,
|
|
592
588
|
});
|
|
593
589
|
};
|
|
594
|
-
exports.
|
|
595
|
-
const
|
|
590
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
591
|
+
const se_UpdateCaseCommand = async (input, context) => {
|
|
596
592
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
597
593
|
const headers = {
|
|
598
594
|
"content-type": "application/json",
|
|
@@ -602,7 +598,7 @@ const serializeAws_restJson1UpdateCaseCommand = async (input, context) => {
|
|
|
602
598
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "caseId", () => input.caseId, "{caseId}", false);
|
|
603
599
|
let body;
|
|
604
600
|
body = JSON.stringify({
|
|
605
|
-
...(input.fields != null && { fields:
|
|
601
|
+
...(input.fields != null && { fields: se_FieldValueList(input.fields, context) }),
|
|
606
602
|
});
|
|
607
603
|
return new protocol_http_1.HttpRequest({
|
|
608
604
|
protocol,
|
|
@@ -614,8 +610,8 @@ const serializeAws_restJson1UpdateCaseCommand = async (input, context) => {
|
|
|
614
610
|
body,
|
|
615
611
|
});
|
|
616
612
|
};
|
|
617
|
-
exports.
|
|
618
|
-
const
|
|
613
|
+
exports.se_UpdateCaseCommand = se_UpdateCaseCommand;
|
|
614
|
+
const se_UpdateFieldCommand = async (input, context) => {
|
|
619
615
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
620
616
|
const headers = {
|
|
621
617
|
"content-type": "application/json",
|
|
@@ -638,8 +634,8 @@ const serializeAws_restJson1UpdateFieldCommand = async (input, context) => {
|
|
|
638
634
|
body,
|
|
639
635
|
});
|
|
640
636
|
};
|
|
641
|
-
exports.
|
|
642
|
-
const
|
|
637
|
+
exports.se_UpdateFieldCommand = se_UpdateFieldCommand;
|
|
638
|
+
const se_UpdateLayoutCommand = async (input, context) => {
|
|
643
639
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
644
640
|
const headers = {
|
|
645
641
|
"content-type": "application/json",
|
|
@@ -649,7 +645,7 @@ const serializeAws_restJson1UpdateLayoutCommand = async (input, context) => {
|
|
|
649
645
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "layoutId", () => input.layoutId, "{layoutId}", false);
|
|
650
646
|
let body;
|
|
651
647
|
body = JSON.stringify({
|
|
652
|
-
...(input.content != null && { content:
|
|
648
|
+
...(input.content != null && { content: se_LayoutContent(input.content, context) }),
|
|
653
649
|
...(input.name != null && { name: input.name }),
|
|
654
650
|
});
|
|
655
651
|
return new protocol_http_1.HttpRequest({
|
|
@@ -662,8 +658,8 @@ const serializeAws_restJson1UpdateLayoutCommand = async (input, context) => {
|
|
|
662
658
|
body,
|
|
663
659
|
});
|
|
664
660
|
};
|
|
665
|
-
exports.
|
|
666
|
-
const
|
|
661
|
+
exports.se_UpdateLayoutCommand = se_UpdateLayoutCommand;
|
|
662
|
+
const se_UpdateTemplateCommand = async (input, context) => {
|
|
667
663
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
668
664
|
const headers = {
|
|
669
665
|
"content-type": "application/json",
|
|
@@ -676,12 +672,10 @@ const serializeAws_restJson1UpdateTemplateCommand = async (input, context) => {
|
|
|
676
672
|
body = JSON.stringify({
|
|
677
673
|
...(input.description != null && { description: input.description }),
|
|
678
674
|
...(input.layoutConfiguration != null && {
|
|
679
|
-
layoutConfiguration:
|
|
675
|
+
layoutConfiguration: se_LayoutConfiguration(input.layoutConfiguration, context),
|
|
680
676
|
}),
|
|
681
677
|
...(input.name != null && { name: input.name }),
|
|
682
|
-
...(input.requiredFields != null && {
|
|
683
|
-
requiredFields: serializeAws_restJson1RequiredFieldList(input.requiredFields, context),
|
|
684
|
-
}),
|
|
678
|
+
...(input.requiredFields != null && { requiredFields: se_RequiredFieldList(input.requiredFields, context) }),
|
|
685
679
|
...(input.status != null && { status: input.status }),
|
|
686
680
|
});
|
|
687
681
|
return new protocol_http_1.HttpRequest({
|
|
@@ -694,25 +688,25 @@ const serializeAws_restJson1UpdateTemplateCommand = async (input, context) => {
|
|
|
694
688
|
body,
|
|
695
689
|
});
|
|
696
690
|
};
|
|
697
|
-
exports.
|
|
698
|
-
const
|
|
691
|
+
exports.se_UpdateTemplateCommand = se_UpdateTemplateCommand;
|
|
692
|
+
const de_BatchGetFieldCommand = async (output, context) => {
|
|
699
693
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
700
|
-
return
|
|
694
|
+
return de_BatchGetFieldCommandError(output, context);
|
|
701
695
|
}
|
|
702
696
|
const contents = map({
|
|
703
697
|
$metadata: deserializeMetadata(output),
|
|
704
698
|
});
|
|
705
699
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
706
700
|
if (data.errors != null) {
|
|
707
|
-
contents.errors =
|
|
701
|
+
contents.errors = de_BatchGetFieldErrorList(data.errors, context);
|
|
708
702
|
}
|
|
709
703
|
if (data.fields != null) {
|
|
710
|
-
contents.fields =
|
|
704
|
+
contents.fields = de_BatchGetFieldList(data.fields, context);
|
|
711
705
|
}
|
|
712
706
|
return contents;
|
|
713
707
|
};
|
|
714
|
-
exports.
|
|
715
|
-
const
|
|
708
|
+
exports.de_BatchGetFieldCommand = de_BatchGetFieldCommand;
|
|
709
|
+
const de_BatchGetFieldCommandError = async (output, context) => {
|
|
716
710
|
const parsedOutput = {
|
|
717
711
|
...output,
|
|
718
712
|
body: await parseErrorBody(output.body, context),
|
|
@@ -721,19 +715,19 @@ const deserializeAws_restJson1BatchGetFieldCommandError = async (output, context
|
|
|
721
715
|
switch (errorCode) {
|
|
722
716
|
case "AccessDeniedException":
|
|
723
717
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
724
|
-
throw await
|
|
718
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
725
719
|
case "InternalServerException":
|
|
726
720
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
727
|
-
throw await
|
|
721
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
728
722
|
case "ResourceNotFoundException":
|
|
729
723
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
730
|
-
throw await
|
|
724
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
731
725
|
case "ThrottlingException":
|
|
732
726
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
733
|
-
throw await
|
|
727
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
734
728
|
case "ValidationException":
|
|
735
729
|
case "com.amazonaws.connectcases#ValidationException":
|
|
736
|
-
throw await
|
|
730
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
737
731
|
default:
|
|
738
732
|
const parsedBody = parsedOutput.body;
|
|
739
733
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -744,21 +738,21 @@ const deserializeAws_restJson1BatchGetFieldCommandError = async (output, context
|
|
|
744
738
|
});
|
|
745
739
|
}
|
|
746
740
|
};
|
|
747
|
-
const
|
|
741
|
+
const de_BatchPutFieldOptionsCommand = async (output, context) => {
|
|
748
742
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
749
|
-
return
|
|
743
|
+
return de_BatchPutFieldOptionsCommandError(output, context);
|
|
750
744
|
}
|
|
751
745
|
const contents = map({
|
|
752
746
|
$metadata: deserializeMetadata(output),
|
|
753
747
|
});
|
|
754
748
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
755
749
|
if (data.errors != null) {
|
|
756
|
-
contents.errors =
|
|
750
|
+
contents.errors = de_FieldOptionErrorList(data.errors, context);
|
|
757
751
|
}
|
|
758
752
|
return contents;
|
|
759
753
|
};
|
|
760
|
-
exports.
|
|
761
|
-
const
|
|
754
|
+
exports.de_BatchPutFieldOptionsCommand = de_BatchPutFieldOptionsCommand;
|
|
755
|
+
const de_BatchPutFieldOptionsCommandError = async (output, context) => {
|
|
762
756
|
const parsedOutput = {
|
|
763
757
|
...output,
|
|
764
758
|
body: await parseErrorBody(output.body, context),
|
|
@@ -767,22 +761,22 @@ const deserializeAws_restJson1BatchPutFieldOptionsCommandError = async (output,
|
|
|
767
761
|
switch (errorCode) {
|
|
768
762
|
case "AccessDeniedException":
|
|
769
763
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
770
|
-
throw await
|
|
764
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
771
765
|
case "InternalServerException":
|
|
772
766
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
773
|
-
throw await
|
|
767
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
774
768
|
case "ResourceNotFoundException":
|
|
775
769
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
776
|
-
throw await
|
|
770
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
777
771
|
case "ServiceQuotaExceededException":
|
|
778
772
|
case "com.amazonaws.connectcases#ServiceQuotaExceededException":
|
|
779
|
-
throw await
|
|
773
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
780
774
|
case "ThrottlingException":
|
|
781
775
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
782
|
-
throw await
|
|
776
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
783
777
|
case "ValidationException":
|
|
784
778
|
case "com.amazonaws.connectcases#ValidationException":
|
|
785
|
-
throw await
|
|
779
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
786
780
|
default:
|
|
787
781
|
const parsedBody = parsedOutput.body;
|
|
788
782
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -793,9 +787,9 @@ const deserializeAws_restJson1BatchPutFieldOptionsCommandError = async (output,
|
|
|
793
787
|
});
|
|
794
788
|
}
|
|
795
789
|
};
|
|
796
|
-
const
|
|
790
|
+
const de_CreateCaseCommand = async (output, context) => {
|
|
797
791
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
798
|
-
return
|
|
792
|
+
return de_CreateCaseCommandError(output, context);
|
|
799
793
|
}
|
|
800
794
|
const contents = map({
|
|
801
795
|
$metadata: deserializeMetadata(output),
|
|
@@ -809,8 +803,8 @@ const deserializeAws_restJson1CreateCaseCommand = async (output, context) => {
|
|
|
809
803
|
}
|
|
810
804
|
return contents;
|
|
811
805
|
};
|
|
812
|
-
exports.
|
|
813
|
-
const
|
|
806
|
+
exports.de_CreateCaseCommand = de_CreateCaseCommand;
|
|
807
|
+
const de_CreateCaseCommandError = async (output, context) => {
|
|
814
808
|
const parsedOutput = {
|
|
815
809
|
...output,
|
|
816
810
|
body: await parseErrorBody(output.body, context),
|
|
@@ -819,22 +813,22 @@ const deserializeAws_restJson1CreateCaseCommandError = async (output, context) =
|
|
|
819
813
|
switch (errorCode) {
|
|
820
814
|
case "AccessDeniedException":
|
|
821
815
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
822
|
-
throw await
|
|
816
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
823
817
|
case "ConflictException":
|
|
824
818
|
case "com.amazonaws.connectcases#ConflictException":
|
|
825
|
-
throw await
|
|
819
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
826
820
|
case "InternalServerException":
|
|
827
821
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
828
|
-
throw await
|
|
822
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
829
823
|
case "ResourceNotFoundException":
|
|
830
824
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
831
|
-
throw await
|
|
825
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
832
826
|
case "ThrottlingException":
|
|
833
827
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
834
|
-
throw await
|
|
828
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
835
829
|
case "ValidationException":
|
|
836
830
|
case "com.amazonaws.connectcases#ValidationException":
|
|
837
|
-
throw await
|
|
831
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
838
832
|
default:
|
|
839
833
|
const parsedBody = parsedOutput.body;
|
|
840
834
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -845,9 +839,9 @@ const deserializeAws_restJson1CreateCaseCommandError = async (output, context) =
|
|
|
845
839
|
});
|
|
846
840
|
}
|
|
847
841
|
};
|
|
848
|
-
const
|
|
842
|
+
const de_CreateDomainCommand = async (output, context) => {
|
|
849
843
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
850
|
-
return
|
|
844
|
+
return de_CreateDomainCommandError(output, context);
|
|
851
845
|
}
|
|
852
846
|
const contents = map({
|
|
853
847
|
$metadata: deserializeMetadata(output),
|
|
@@ -864,8 +858,8 @@ const deserializeAws_restJson1CreateDomainCommand = async (output, context) => {
|
|
|
864
858
|
}
|
|
865
859
|
return contents;
|
|
866
860
|
};
|
|
867
|
-
exports.
|
|
868
|
-
const
|
|
861
|
+
exports.de_CreateDomainCommand = de_CreateDomainCommand;
|
|
862
|
+
const de_CreateDomainCommandError = async (output, context) => {
|
|
869
863
|
const parsedOutput = {
|
|
870
864
|
...output,
|
|
871
865
|
body: await parseErrorBody(output.body, context),
|
|
@@ -874,22 +868,22 @@ const deserializeAws_restJson1CreateDomainCommandError = async (output, context)
|
|
|
874
868
|
switch (errorCode) {
|
|
875
869
|
case "AccessDeniedException":
|
|
876
870
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
877
|
-
throw await
|
|
871
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
878
872
|
case "ConflictException":
|
|
879
873
|
case "com.amazonaws.connectcases#ConflictException":
|
|
880
|
-
throw await
|
|
874
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
881
875
|
case "InternalServerException":
|
|
882
876
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
883
|
-
throw await
|
|
877
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
884
878
|
case "ServiceQuotaExceededException":
|
|
885
879
|
case "com.amazonaws.connectcases#ServiceQuotaExceededException":
|
|
886
|
-
throw await
|
|
880
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
887
881
|
case "ThrottlingException":
|
|
888
882
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
889
|
-
throw await
|
|
883
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
890
884
|
case "ValidationException":
|
|
891
885
|
case "com.amazonaws.connectcases#ValidationException":
|
|
892
|
-
throw await
|
|
886
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
893
887
|
default:
|
|
894
888
|
const parsedBody = parsedOutput.body;
|
|
895
889
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -900,9 +894,9 @@ const deserializeAws_restJson1CreateDomainCommandError = async (output, context)
|
|
|
900
894
|
});
|
|
901
895
|
}
|
|
902
896
|
};
|
|
903
|
-
const
|
|
897
|
+
const de_CreateFieldCommand = async (output, context) => {
|
|
904
898
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
905
|
-
return
|
|
899
|
+
return de_CreateFieldCommandError(output, context);
|
|
906
900
|
}
|
|
907
901
|
const contents = map({
|
|
908
902
|
$metadata: deserializeMetadata(output),
|
|
@@ -916,8 +910,8 @@ const deserializeAws_restJson1CreateFieldCommand = async (output, context) => {
|
|
|
916
910
|
}
|
|
917
911
|
return contents;
|
|
918
912
|
};
|
|
919
|
-
exports.
|
|
920
|
-
const
|
|
913
|
+
exports.de_CreateFieldCommand = de_CreateFieldCommand;
|
|
914
|
+
const de_CreateFieldCommandError = async (output, context) => {
|
|
921
915
|
const parsedOutput = {
|
|
922
916
|
...output,
|
|
923
917
|
body: await parseErrorBody(output.body, context),
|
|
@@ -926,25 +920,25 @@ const deserializeAws_restJson1CreateFieldCommandError = async (output, context)
|
|
|
926
920
|
switch (errorCode) {
|
|
927
921
|
case "AccessDeniedException":
|
|
928
922
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
929
|
-
throw await
|
|
923
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
930
924
|
case "ConflictException":
|
|
931
925
|
case "com.amazonaws.connectcases#ConflictException":
|
|
932
|
-
throw await
|
|
926
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
933
927
|
case "InternalServerException":
|
|
934
928
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
935
|
-
throw await
|
|
929
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
936
930
|
case "ResourceNotFoundException":
|
|
937
931
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
938
|
-
throw await
|
|
932
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
939
933
|
case "ServiceQuotaExceededException":
|
|
940
934
|
case "com.amazonaws.connectcases#ServiceQuotaExceededException":
|
|
941
|
-
throw await
|
|
935
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
942
936
|
case "ThrottlingException":
|
|
943
937
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
944
|
-
throw await
|
|
938
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
945
939
|
case "ValidationException":
|
|
946
940
|
case "com.amazonaws.connectcases#ValidationException":
|
|
947
|
-
throw await
|
|
941
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
948
942
|
default:
|
|
949
943
|
const parsedBody = parsedOutput.body;
|
|
950
944
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -955,9 +949,9 @@ const deserializeAws_restJson1CreateFieldCommandError = async (output, context)
|
|
|
955
949
|
});
|
|
956
950
|
}
|
|
957
951
|
};
|
|
958
|
-
const
|
|
952
|
+
const de_CreateLayoutCommand = async (output, context) => {
|
|
959
953
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
960
|
-
return
|
|
954
|
+
return de_CreateLayoutCommandError(output, context);
|
|
961
955
|
}
|
|
962
956
|
const contents = map({
|
|
963
957
|
$metadata: deserializeMetadata(output),
|
|
@@ -971,8 +965,8 @@ const deserializeAws_restJson1CreateLayoutCommand = async (output, context) => {
|
|
|
971
965
|
}
|
|
972
966
|
return contents;
|
|
973
967
|
};
|
|
974
|
-
exports.
|
|
975
|
-
const
|
|
968
|
+
exports.de_CreateLayoutCommand = de_CreateLayoutCommand;
|
|
969
|
+
const de_CreateLayoutCommandError = async (output, context) => {
|
|
976
970
|
const parsedOutput = {
|
|
977
971
|
...output,
|
|
978
972
|
body: await parseErrorBody(output.body, context),
|
|
@@ -981,25 +975,25 @@ const deserializeAws_restJson1CreateLayoutCommandError = async (output, context)
|
|
|
981
975
|
switch (errorCode) {
|
|
982
976
|
case "AccessDeniedException":
|
|
983
977
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
984
|
-
throw await
|
|
978
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
985
979
|
case "ConflictException":
|
|
986
980
|
case "com.amazonaws.connectcases#ConflictException":
|
|
987
|
-
throw await
|
|
981
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
988
982
|
case "InternalServerException":
|
|
989
983
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
990
|
-
throw await
|
|
984
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
991
985
|
case "ResourceNotFoundException":
|
|
992
986
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
993
|
-
throw await
|
|
987
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
994
988
|
case "ServiceQuotaExceededException":
|
|
995
989
|
case "com.amazonaws.connectcases#ServiceQuotaExceededException":
|
|
996
|
-
throw await
|
|
990
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
997
991
|
case "ThrottlingException":
|
|
998
992
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
999
|
-
throw await
|
|
993
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1000
994
|
case "ValidationException":
|
|
1001
995
|
case "com.amazonaws.connectcases#ValidationException":
|
|
1002
|
-
throw await
|
|
996
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1003
997
|
default:
|
|
1004
998
|
const parsedBody = parsedOutput.body;
|
|
1005
999
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1010,9 +1004,9 @@ const deserializeAws_restJson1CreateLayoutCommandError = async (output, context)
|
|
|
1010
1004
|
});
|
|
1011
1005
|
}
|
|
1012
1006
|
};
|
|
1013
|
-
const
|
|
1007
|
+
const de_CreateRelatedItemCommand = async (output, context) => {
|
|
1014
1008
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1015
|
-
return
|
|
1009
|
+
return de_CreateRelatedItemCommandError(output, context);
|
|
1016
1010
|
}
|
|
1017
1011
|
const contents = map({
|
|
1018
1012
|
$metadata: deserializeMetadata(output),
|
|
@@ -1026,8 +1020,8 @@ const deserializeAws_restJson1CreateRelatedItemCommand = async (output, context)
|
|
|
1026
1020
|
}
|
|
1027
1021
|
return contents;
|
|
1028
1022
|
};
|
|
1029
|
-
exports.
|
|
1030
|
-
const
|
|
1023
|
+
exports.de_CreateRelatedItemCommand = de_CreateRelatedItemCommand;
|
|
1024
|
+
const de_CreateRelatedItemCommandError = async (output, context) => {
|
|
1031
1025
|
const parsedOutput = {
|
|
1032
1026
|
...output,
|
|
1033
1027
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1036,22 +1030,22 @@ const deserializeAws_restJson1CreateRelatedItemCommandError = async (output, con
|
|
|
1036
1030
|
switch (errorCode) {
|
|
1037
1031
|
case "AccessDeniedException":
|
|
1038
1032
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1039
|
-
throw await
|
|
1033
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1040
1034
|
case "InternalServerException":
|
|
1041
1035
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
1042
|
-
throw await
|
|
1036
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1043
1037
|
case "ResourceNotFoundException":
|
|
1044
1038
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1045
|
-
throw await
|
|
1039
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1046
1040
|
case "ServiceQuotaExceededException":
|
|
1047
1041
|
case "com.amazonaws.connectcases#ServiceQuotaExceededException":
|
|
1048
|
-
throw await
|
|
1042
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1049
1043
|
case "ThrottlingException":
|
|
1050
1044
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1051
|
-
throw await
|
|
1045
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1052
1046
|
case "ValidationException":
|
|
1053
1047
|
case "com.amazonaws.connectcases#ValidationException":
|
|
1054
|
-
throw await
|
|
1048
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1055
1049
|
default:
|
|
1056
1050
|
const parsedBody = parsedOutput.body;
|
|
1057
1051
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1062,9 +1056,9 @@ const deserializeAws_restJson1CreateRelatedItemCommandError = async (output, con
|
|
|
1062
1056
|
});
|
|
1063
1057
|
}
|
|
1064
1058
|
};
|
|
1065
|
-
const
|
|
1059
|
+
const de_CreateTemplateCommand = async (output, context) => {
|
|
1066
1060
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1067
|
-
return
|
|
1061
|
+
return de_CreateTemplateCommandError(output, context);
|
|
1068
1062
|
}
|
|
1069
1063
|
const contents = map({
|
|
1070
1064
|
$metadata: deserializeMetadata(output),
|
|
@@ -1078,8 +1072,8 @@ const deserializeAws_restJson1CreateTemplateCommand = async (output, context) =>
|
|
|
1078
1072
|
}
|
|
1079
1073
|
return contents;
|
|
1080
1074
|
};
|
|
1081
|
-
exports.
|
|
1082
|
-
const
|
|
1075
|
+
exports.de_CreateTemplateCommand = de_CreateTemplateCommand;
|
|
1076
|
+
const de_CreateTemplateCommandError = async (output, context) => {
|
|
1083
1077
|
const parsedOutput = {
|
|
1084
1078
|
...output,
|
|
1085
1079
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1088,25 +1082,25 @@ const deserializeAws_restJson1CreateTemplateCommandError = async (output, contex
|
|
|
1088
1082
|
switch (errorCode) {
|
|
1089
1083
|
case "AccessDeniedException":
|
|
1090
1084
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1091
|
-
throw await
|
|
1085
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1092
1086
|
case "ConflictException":
|
|
1093
1087
|
case "com.amazonaws.connectcases#ConflictException":
|
|
1094
|
-
throw await
|
|
1088
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1095
1089
|
case "InternalServerException":
|
|
1096
1090
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
1097
|
-
throw await
|
|
1091
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1098
1092
|
case "ResourceNotFoundException":
|
|
1099
1093
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1100
|
-
throw await
|
|
1094
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1101
1095
|
case "ServiceQuotaExceededException":
|
|
1102
1096
|
case "com.amazonaws.connectcases#ServiceQuotaExceededException":
|
|
1103
|
-
throw await
|
|
1097
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1104
1098
|
case "ThrottlingException":
|
|
1105
1099
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1106
|
-
throw await
|
|
1100
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1107
1101
|
case "ValidationException":
|
|
1108
1102
|
case "com.amazonaws.connectcases#ValidationException":
|
|
1109
|
-
throw await
|
|
1103
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1110
1104
|
default:
|
|
1111
1105
|
const parsedBody = parsedOutput.body;
|
|
1112
1106
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1117,9 +1111,9 @@ const deserializeAws_restJson1CreateTemplateCommandError = async (output, contex
|
|
|
1117
1111
|
});
|
|
1118
1112
|
}
|
|
1119
1113
|
};
|
|
1120
|
-
const
|
|
1114
|
+
const de_DeleteDomainCommand = async (output, context) => {
|
|
1121
1115
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1122
|
-
return
|
|
1116
|
+
return de_DeleteDomainCommandError(output, context);
|
|
1123
1117
|
}
|
|
1124
1118
|
const contents = map({
|
|
1125
1119
|
$metadata: deserializeMetadata(output),
|
|
@@ -1127,8 +1121,8 @@ const deserializeAws_restJson1DeleteDomainCommand = async (output, context) => {
|
|
|
1127
1121
|
await collectBody(output.body, context);
|
|
1128
1122
|
return contents;
|
|
1129
1123
|
};
|
|
1130
|
-
exports.
|
|
1131
|
-
const
|
|
1124
|
+
exports.de_DeleteDomainCommand = de_DeleteDomainCommand;
|
|
1125
|
+
const de_DeleteDomainCommandError = async (output, context) => {
|
|
1132
1126
|
const parsedOutput = {
|
|
1133
1127
|
...output,
|
|
1134
1128
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1137,22 +1131,22 @@ const deserializeAws_restJson1DeleteDomainCommandError = async (output, context)
|
|
|
1137
1131
|
switch (errorCode) {
|
|
1138
1132
|
case "AccessDeniedException":
|
|
1139
1133
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1140
|
-
throw await
|
|
1134
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1141
1135
|
case "ConflictException":
|
|
1142
1136
|
case "com.amazonaws.connectcases#ConflictException":
|
|
1143
|
-
throw await
|
|
1137
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1144
1138
|
case "InternalServerException":
|
|
1145
1139
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
1146
|
-
throw await
|
|
1140
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1147
1141
|
case "ResourceNotFoundException":
|
|
1148
1142
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1149
|
-
throw await
|
|
1143
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1150
1144
|
case "ThrottlingException":
|
|
1151
1145
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1152
|
-
throw await
|
|
1146
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1153
1147
|
case "ValidationException":
|
|
1154
1148
|
case "com.amazonaws.connectcases#ValidationException":
|
|
1155
|
-
throw await
|
|
1149
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1156
1150
|
default:
|
|
1157
1151
|
const parsedBody = parsedOutput.body;
|
|
1158
1152
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1163,30 +1157,30 @@ const deserializeAws_restJson1DeleteDomainCommandError = async (output, context)
|
|
|
1163
1157
|
});
|
|
1164
1158
|
}
|
|
1165
1159
|
};
|
|
1166
|
-
const
|
|
1160
|
+
const de_GetCaseCommand = async (output, context) => {
|
|
1167
1161
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1168
|
-
return
|
|
1162
|
+
return de_GetCaseCommandError(output, context);
|
|
1169
1163
|
}
|
|
1170
1164
|
const contents = map({
|
|
1171
1165
|
$metadata: deserializeMetadata(output),
|
|
1172
1166
|
});
|
|
1173
1167
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1174
1168
|
if (data.fields != null) {
|
|
1175
|
-
contents.fields =
|
|
1169
|
+
contents.fields = de_FieldValueList(data.fields, context);
|
|
1176
1170
|
}
|
|
1177
1171
|
if (data.nextToken != null) {
|
|
1178
1172
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1179
1173
|
}
|
|
1180
1174
|
if (data.tags != null) {
|
|
1181
|
-
contents.tags =
|
|
1175
|
+
contents.tags = de_Tags(data.tags, context);
|
|
1182
1176
|
}
|
|
1183
1177
|
if (data.templateId != null) {
|
|
1184
1178
|
contents.templateId = (0, smithy_client_1.expectString)(data.templateId);
|
|
1185
1179
|
}
|
|
1186
1180
|
return contents;
|
|
1187
1181
|
};
|
|
1188
|
-
exports.
|
|
1189
|
-
const
|
|
1182
|
+
exports.de_GetCaseCommand = de_GetCaseCommand;
|
|
1183
|
+
const de_GetCaseCommandError = async (output, context) => {
|
|
1190
1184
|
const parsedOutput = {
|
|
1191
1185
|
...output,
|
|
1192
1186
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1195,19 +1189,19 @@ const deserializeAws_restJson1GetCaseCommandError = async (output, context) => {
|
|
|
1195
1189
|
switch (errorCode) {
|
|
1196
1190
|
case "AccessDeniedException":
|
|
1197
1191
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1198
|
-
throw await
|
|
1192
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1199
1193
|
case "InternalServerException":
|
|
1200
1194
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
1201
|
-
throw await
|
|
1195
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1202
1196
|
case "ResourceNotFoundException":
|
|
1203
1197
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1204
|
-
throw await
|
|
1198
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1205
1199
|
case "ThrottlingException":
|
|
1206
1200
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1207
|
-
throw await
|
|
1201
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1208
1202
|
case "ValidationException":
|
|
1209
1203
|
case "com.amazonaws.connectcases#ValidationException":
|
|
1210
|
-
throw await
|
|
1204
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1211
1205
|
default:
|
|
1212
1206
|
const parsedBody = parsedOutput.body;
|
|
1213
1207
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1218,21 +1212,21 @@ const deserializeAws_restJson1GetCaseCommandError = async (output, context) => {
|
|
|
1218
1212
|
});
|
|
1219
1213
|
}
|
|
1220
1214
|
};
|
|
1221
|
-
const
|
|
1215
|
+
const de_GetCaseEventConfigurationCommand = async (output, context) => {
|
|
1222
1216
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1223
|
-
return
|
|
1217
|
+
return de_GetCaseEventConfigurationCommandError(output, context);
|
|
1224
1218
|
}
|
|
1225
1219
|
const contents = map({
|
|
1226
1220
|
$metadata: deserializeMetadata(output),
|
|
1227
1221
|
});
|
|
1228
1222
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1229
1223
|
if (data.eventBridge != null) {
|
|
1230
|
-
contents.eventBridge =
|
|
1224
|
+
contents.eventBridge = de_EventBridgeConfiguration(data.eventBridge, context);
|
|
1231
1225
|
}
|
|
1232
1226
|
return contents;
|
|
1233
1227
|
};
|
|
1234
|
-
exports.
|
|
1235
|
-
const
|
|
1228
|
+
exports.de_GetCaseEventConfigurationCommand = de_GetCaseEventConfigurationCommand;
|
|
1229
|
+
const de_GetCaseEventConfigurationCommandError = async (output, context) => {
|
|
1236
1230
|
const parsedOutput = {
|
|
1237
1231
|
...output,
|
|
1238
1232
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1241,19 +1235,19 @@ const deserializeAws_restJson1GetCaseEventConfigurationCommandError = async (out
|
|
|
1241
1235
|
switch (errorCode) {
|
|
1242
1236
|
case "AccessDeniedException":
|
|
1243
1237
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1244
|
-
throw await
|
|
1238
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1245
1239
|
case "InternalServerException":
|
|
1246
1240
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
1247
|
-
throw await
|
|
1241
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1248
1242
|
case "ResourceNotFoundException":
|
|
1249
1243
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1250
|
-
throw await
|
|
1244
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1251
1245
|
case "ThrottlingException":
|
|
1252
1246
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1253
|
-
throw await
|
|
1247
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1254
1248
|
case "ValidationException":
|
|
1255
1249
|
case "com.amazonaws.connectcases#ValidationException":
|
|
1256
|
-
throw await
|
|
1250
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1257
1251
|
default:
|
|
1258
1252
|
const parsedBody = parsedOutput.body;
|
|
1259
1253
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1264,9 +1258,9 @@ const deserializeAws_restJson1GetCaseEventConfigurationCommandError = async (out
|
|
|
1264
1258
|
});
|
|
1265
1259
|
}
|
|
1266
1260
|
};
|
|
1267
|
-
const
|
|
1261
|
+
const de_GetDomainCommand = async (output, context) => {
|
|
1268
1262
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1269
|
-
return
|
|
1263
|
+
return de_GetDomainCommandError(output, context);
|
|
1270
1264
|
}
|
|
1271
1265
|
const contents = map({
|
|
1272
1266
|
$metadata: deserializeMetadata(output),
|
|
@@ -1288,12 +1282,12 @@ const deserializeAws_restJson1GetDomainCommand = async (output, context) => {
|
|
|
1288
1282
|
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1289
1283
|
}
|
|
1290
1284
|
if (data.tags != null) {
|
|
1291
|
-
contents.tags =
|
|
1285
|
+
contents.tags = de_Tags(data.tags, context);
|
|
1292
1286
|
}
|
|
1293
1287
|
return contents;
|
|
1294
1288
|
};
|
|
1295
|
-
exports.
|
|
1296
|
-
const
|
|
1289
|
+
exports.de_GetDomainCommand = de_GetDomainCommand;
|
|
1290
|
+
const de_GetDomainCommandError = async (output, context) => {
|
|
1297
1291
|
const parsedOutput = {
|
|
1298
1292
|
...output,
|
|
1299
1293
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1302,19 +1296,19 @@ const deserializeAws_restJson1GetDomainCommandError = async (output, context) =>
|
|
|
1302
1296
|
switch (errorCode) {
|
|
1303
1297
|
case "AccessDeniedException":
|
|
1304
1298
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1305
|
-
throw await
|
|
1299
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1306
1300
|
case "InternalServerException":
|
|
1307
1301
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
1308
|
-
throw await
|
|
1302
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1309
1303
|
case "ResourceNotFoundException":
|
|
1310
1304
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1311
|
-
throw await
|
|
1305
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1312
1306
|
case "ThrottlingException":
|
|
1313
1307
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1314
|
-
throw await
|
|
1308
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1315
1309
|
case "ValidationException":
|
|
1316
1310
|
case "com.amazonaws.connectcases#ValidationException":
|
|
1317
|
-
throw await
|
|
1311
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1318
1312
|
default:
|
|
1319
1313
|
const parsedBody = parsedOutput.body;
|
|
1320
1314
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1325,16 +1319,16 @@ const deserializeAws_restJson1GetDomainCommandError = async (output, context) =>
|
|
|
1325
1319
|
});
|
|
1326
1320
|
}
|
|
1327
1321
|
};
|
|
1328
|
-
const
|
|
1322
|
+
const de_GetLayoutCommand = async (output, context) => {
|
|
1329
1323
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1330
|
-
return
|
|
1324
|
+
return de_GetLayoutCommandError(output, context);
|
|
1331
1325
|
}
|
|
1332
1326
|
const contents = map({
|
|
1333
1327
|
$metadata: deserializeMetadata(output),
|
|
1334
1328
|
});
|
|
1335
1329
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1336
1330
|
if (data.content != null) {
|
|
1337
|
-
contents.content =
|
|
1331
|
+
contents.content = de_LayoutContent((0, smithy_client_1.expectUnion)(data.content), context);
|
|
1338
1332
|
}
|
|
1339
1333
|
if (data.layoutArn != null) {
|
|
1340
1334
|
contents.layoutArn = (0, smithy_client_1.expectString)(data.layoutArn);
|
|
@@ -1346,12 +1340,12 @@ const deserializeAws_restJson1GetLayoutCommand = async (output, context) => {
|
|
|
1346
1340
|
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1347
1341
|
}
|
|
1348
1342
|
if (data.tags != null) {
|
|
1349
|
-
contents.tags =
|
|
1343
|
+
contents.tags = de_Tags(data.tags, context);
|
|
1350
1344
|
}
|
|
1351
1345
|
return contents;
|
|
1352
1346
|
};
|
|
1353
|
-
exports.
|
|
1354
|
-
const
|
|
1347
|
+
exports.de_GetLayoutCommand = de_GetLayoutCommand;
|
|
1348
|
+
const de_GetLayoutCommandError = async (output, context) => {
|
|
1355
1349
|
const parsedOutput = {
|
|
1356
1350
|
...output,
|
|
1357
1351
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1360,19 +1354,19 @@ const deserializeAws_restJson1GetLayoutCommandError = async (output, context) =>
|
|
|
1360
1354
|
switch (errorCode) {
|
|
1361
1355
|
case "AccessDeniedException":
|
|
1362
1356
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1363
|
-
throw await
|
|
1357
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1364
1358
|
case "InternalServerException":
|
|
1365
1359
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
1366
|
-
throw await
|
|
1360
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1367
1361
|
case "ResourceNotFoundException":
|
|
1368
1362
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1369
|
-
throw await
|
|
1363
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1370
1364
|
case "ThrottlingException":
|
|
1371
1365
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1372
|
-
throw await
|
|
1366
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1373
1367
|
case "ValidationException":
|
|
1374
1368
|
case "com.amazonaws.connectcases#ValidationException":
|
|
1375
|
-
throw await
|
|
1369
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1376
1370
|
default:
|
|
1377
1371
|
const parsedBody = parsedOutput.body;
|
|
1378
1372
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1383,9 +1377,9 @@ const deserializeAws_restJson1GetLayoutCommandError = async (output, context) =>
|
|
|
1383
1377
|
});
|
|
1384
1378
|
}
|
|
1385
1379
|
};
|
|
1386
|
-
const
|
|
1380
|
+
const de_GetTemplateCommand = async (output, context) => {
|
|
1387
1381
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1388
|
-
return
|
|
1382
|
+
return de_GetTemplateCommandError(output, context);
|
|
1389
1383
|
}
|
|
1390
1384
|
const contents = map({
|
|
1391
1385
|
$metadata: deserializeMetadata(output),
|
|
@@ -1395,19 +1389,19 @@ const deserializeAws_restJson1GetTemplateCommand = async (output, context) => {
|
|
|
1395
1389
|
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
1396
1390
|
}
|
|
1397
1391
|
if (data.layoutConfiguration != null) {
|
|
1398
|
-
contents.layoutConfiguration =
|
|
1392
|
+
contents.layoutConfiguration = de_LayoutConfiguration(data.layoutConfiguration, context);
|
|
1399
1393
|
}
|
|
1400
1394
|
if (data.name != null) {
|
|
1401
1395
|
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1402
1396
|
}
|
|
1403
1397
|
if (data.requiredFields != null) {
|
|
1404
|
-
contents.requiredFields =
|
|
1398
|
+
contents.requiredFields = de_RequiredFieldList(data.requiredFields, context);
|
|
1405
1399
|
}
|
|
1406
1400
|
if (data.status != null) {
|
|
1407
1401
|
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1408
1402
|
}
|
|
1409
1403
|
if (data.tags != null) {
|
|
1410
|
-
contents.tags =
|
|
1404
|
+
contents.tags = de_Tags(data.tags, context);
|
|
1411
1405
|
}
|
|
1412
1406
|
if (data.templateArn != null) {
|
|
1413
1407
|
contents.templateArn = (0, smithy_client_1.expectString)(data.templateArn);
|
|
@@ -1417,8 +1411,8 @@ const deserializeAws_restJson1GetTemplateCommand = async (output, context) => {
|
|
|
1417
1411
|
}
|
|
1418
1412
|
return contents;
|
|
1419
1413
|
};
|
|
1420
|
-
exports.
|
|
1421
|
-
const
|
|
1414
|
+
exports.de_GetTemplateCommand = de_GetTemplateCommand;
|
|
1415
|
+
const de_GetTemplateCommandError = async (output, context) => {
|
|
1422
1416
|
const parsedOutput = {
|
|
1423
1417
|
...output,
|
|
1424
1418
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1427,19 +1421,19 @@ const deserializeAws_restJson1GetTemplateCommandError = async (output, context)
|
|
|
1427
1421
|
switch (errorCode) {
|
|
1428
1422
|
case "AccessDeniedException":
|
|
1429
1423
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1430
|
-
throw await
|
|
1424
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1431
1425
|
case "InternalServerException":
|
|
1432
1426
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
1433
|
-
throw await
|
|
1427
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1434
1428
|
case "ResourceNotFoundException":
|
|
1435
1429
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1436
|
-
throw await
|
|
1430
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1437
1431
|
case "ThrottlingException":
|
|
1438
1432
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1439
|
-
throw await
|
|
1433
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1440
1434
|
case "ValidationException":
|
|
1441
1435
|
case "com.amazonaws.connectcases#ValidationException":
|
|
1442
|
-
throw await
|
|
1436
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1443
1437
|
default:
|
|
1444
1438
|
const parsedBody = parsedOutput.body;
|
|
1445
1439
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1450,24 +1444,24 @@ const deserializeAws_restJson1GetTemplateCommandError = async (output, context)
|
|
|
1450
1444
|
});
|
|
1451
1445
|
}
|
|
1452
1446
|
};
|
|
1453
|
-
const
|
|
1447
|
+
const de_ListCasesForContactCommand = async (output, context) => {
|
|
1454
1448
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1455
|
-
return
|
|
1449
|
+
return de_ListCasesForContactCommandError(output, context);
|
|
1456
1450
|
}
|
|
1457
1451
|
const contents = map({
|
|
1458
1452
|
$metadata: deserializeMetadata(output),
|
|
1459
1453
|
});
|
|
1460
1454
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1461
1455
|
if (data.cases != null) {
|
|
1462
|
-
contents.cases =
|
|
1456
|
+
contents.cases = de_CaseSummaryList(data.cases, context);
|
|
1463
1457
|
}
|
|
1464
1458
|
if (data.nextToken != null) {
|
|
1465
1459
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1466
1460
|
}
|
|
1467
1461
|
return contents;
|
|
1468
1462
|
};
|
|
1469
|
-
exports.
|
|
1470
|
-
const
|
|
1463
|
+
exports.de_ListCasesForContactCommand = de_ListCasesForContactCommand;
|
|
1464
|
+
const de_ListCasesForContactCommandError = async (output, context) => {
|
|
1471
1465
|
const parsedOutput = {
|
|
1472
1466
|
...output,
|
|
1473
1467
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1476,19 +1470,19 @@ const deserializeAws_restJson1ListCasesForContactCommandError = async (output, c
|
|
|
1476
1470
|
switch (errorCode) {
|
|
1477
1471
|
case "AccessDeniedException":
|
|
1478
1472
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1479
|
-
throw await
|
|
1473
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1480
1474
|
case "InternalServerException":
|
|
1481
1475
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
1482
|
-
throw await
|
|
1476
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1483
1477
|
case "ResourceNotFoundException":
|
|
1484
1478
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1485
|
-
throw await
|
|
1479
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1486
1480
|
case "ThrottlingException":
|
|
1487
1481
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1488
|
-
throw await
|
|
1482
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1489
1483
|
case "ValidationException":
|
|
1490
1484
|
case "com.amazonaws.connectcases#ValidationException":
|
|
1491
|
-
throw await
|
|
1485
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1492
1486
|
default:
|
|
1493
1487
|
const parsedBody = parsedOutput.body;
|
|
1494
1488
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1499,24 +1493,24 @@ const deserializeAws_restJson1ListCasesForContactCommandError = async (output, c
|
|
|
1499
1493
|
});
|
|
1500
1494
|
}
|
|
1501
1495
|
};
|
|
1502
|
-
const
|
|
1496
|
+
const de_ListDomainsCommand = async (output, context) => {
|
|
1503
1497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1504
|
-
return
|
|
1498
|
+
return de_ListDomainsCommandError(output, context);
|
|
1505
1499
|
}
|
|
1506
1500
|
const contents = map({
|
|
1507
1501
|
$metadata: deserializeMetadata(output),
|
|
1508
1502
|
});
|
|
1509
1503
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1510
1504
|
if (data.domains != null) {
|
|
1511
|
-
contents.domains =
|
|
1505
|
+
contents.domains = de_DomainSummaryList(data.domains, context);
|
|
1512
1506
|
}
|
|
1513
1507
|
if (data.nextToken != null) {
|
|
1514
1508
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1515
1509
|
}
|
|
1516
1510
|
return contents;
|
|
1517
1511
|
};
|
|
1518
|
-
exports.
|
|
1519
|
-
const
|
|
1512
|
+
exports.de_ListDomainsCommand = de_ListDomainsCommand;
|
|
1513
|
+
const de_ListDomainsCommandError = async (output, context) => {
|
|
1520
1514
|
const parsedOutput = {
|
|
1521
1515
|
...output,
|
|
1522
1516
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1525,16 +1519,16 @@ const deserializeAws_restJson1ListDomainsCommandError = async (output, context)
|
|
|
1525
1519
|
switch (errorCode) {
|
|
1526
1520
|
case "AccessDeniedException":
|
|
1527
1521
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1528
|
-
throw await
|
|
1522
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1529
1523
|
case "InternalServerException":
|
|
1530
1524
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
1531
|
-
throw await
|
|
1525
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1532
1526
|
case "ThrottlingException":
|
|
1533
1527
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1534
|
-
throw await
|
|
1528
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1535
1529
|
case "ValidationException":
|
|
1536
1530
|
case "com.amazonaws.connectcases#ValidationException":
|
|
1537
|
-
throw await
|
|
1531
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1538
1532
|
default:
|
|
1539
1533
|
const parsedBody = parsedOutput.body;
|
|
1540
1534
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1545,9 +1539,9 @@ const deserializeAws_restJson1ListDomainsCommandError = async (output, context)
|
|
|
1545
1539
|
});
|
|
1546
1540
|
}
|
|
1547
1541
|
};
|
|
1548
|
-
const
|
|
1542
|
+
const de_ListFieldOptionsCommand = async (output, context) => {
|
|
1549
1543
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1550
|
-
return
|
|
1544
|
+
return de_ListFieldOptionsCommandError(output, context);
|
|
1551
1545
|
}
|
|
1552
1546
|
const contents = map({
|
|
1553
1547
|
$metadata: deserializeMetadata(output),
|
|
@@ -1557,12 +1551,12 @@ const deserializeAws_restJson1ListFieldOptionsCommand = async (output, context)
|
|
|
1557
1551
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1558
1552
|
}
|
|
1559
1553
|
if (data.options != null) {
|
|
1560
|
-
contents.options =
|
|
1554
|
+
contents.options = de_FieldOptionsList(data.options, context);
|
|
1561
1555
|
}
|
|
1562
1556
|
return contents;
|
|
1563
1557
|
};
|
|
1564
|
-
exports.
|
|
1565
|
-
const
|
|
1558
|
+
exports.de_ListFieldOptionsCommand = de_ListFieldOptionsCommand;
|
|
1559
|
+
const de_ListFieldOptionsCommandError = async (output, context) => {
|
|
1566
1560
|
const parsedOutput = {
|
|
1567
1561
|
...output,
|
|
1568
1562
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1571,19 +1565,19 @@ const deserializeAws_restJson1ListFieldOptionsCommandError = async (output, cont
|
|
|
1571
1565
|
switch (errorCode) {
|
|
1572
1566
|
case "AccessDeniedException":
|
|
1573
1567
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1574
|
-
throw await
|
|
1568
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1575
1569
|
case "InternalServerException":
|
|
1576
1570
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
1577
|
-
throw await
|
|
1571
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1578
1572
|
case "ResourceNotFoundException":
|
|
1579
1573
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1580
|
-
throw await
|
|
1574
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1581
1575
|
case "ThrottlingException":
|
|
1582
1576
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1583
|
-
throw await
|
|
1577
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1584
1578
|
case "ValidationException":
|
|
1585
1579
|
case "com.amazonaws.connectcases#ValidationException":
|
|
1586
|
-
throw await
|
|
1580
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1587
1581
|
default:
|
|
1588
1582
|
const parsedBody = parsedOutput.body;
|
|
1589
1583
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1594,24 +1588,24 @@ const deserializeAws_restJson1ListFieldOptionsCommandError = async (output, cont
|
|
|
1594
1588
|
});
|
|
1595
1589
|
}
|
|
1596
1590
|
};
|
|
1597
|
-
const
|
|
1591
|
+
const de_ListFieldsCommand = async (output, context) => {
|
|
1598
1592
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1599
|
-
return
|
|
1593
|
+
return de_ListFieldsCommandError(output, context);
|
|
1600
1594
|
}
|
|
1601
1595
|
const contents = map({
|
|
1602
1596
|
$metadata: deserializeMetadata(output),
|
|
1603
1597
|
});
|
|
1604
1598
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1605
1599
|
if (data.fields != null) {
|
|
1606
|
-
contents.fields =
|
|
1600
|
+
contents.fields = de_FieldSummaryList(data.fields, context);
|
|
1607
1601
|
}
|
|
1608
1602
|
if (data.nextToken != null) {
|
|
1609
1603
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1610
1604
|
}
|
|
1611
1605
|
return contents;
|
|
1612
1606
|
};
|
|
1613
|
-
exports.
|
|
1614
|
-
const
|
|
1607
|
+
exports.de_ListFieldsCommand = de_ListFieldsCommand;
|
|
1608
|
+
const de_ListFieldsCommandError = async (output, context) => {
|
|
1615
1609
|
const parsedOutput = {
|
|
1616
1610
|
...output,
|
|
1617
1611
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1620,19 +1614,19 @@ const deserializeAws_restJson1ListFieldsCommandError = async (output, context) =
|
|
|
1620
1614
|
switch (errorCode) {
|
|
1621
1615
|
case "AccessDeniedException":
|
|
1622
1616
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1623
|
-
throw await
|
|
1617
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1624
1618
|
case "InternalServerException":
|
|
1625
1619
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
1626
|
-
throw await
|
|
1620
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1627
1621
|
case "ResourceNotFoundException":
|
|
1628
1622
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1629
|
-
throw await
|
|
1623
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1630
1624
|
case "ThrottlingException":
|
|
1631
1625
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1632
|
-
throw await
|
|
1626
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1633
1627
|
case "ValidationException":
|
|
1634
1628
|
case "com.amazonaws.connectcases#ValidationException":
|
|
1635
|
-
throw await
|
|
1629
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1636
1630
|
default:
|
|
1637
1631
|
const parsedBody = parsedOutput.body;
|
|
1638
1632
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1643,24 +1637,24 @@ const deserializeAws_restJson1ListFieldsCommandError = async (output, context) =
|
|
|
1643
1637
|
});
|
|
1644
1638
|
}
|
|
1645
1639
|
};
|
|
1646
|
-
const
|
|
1640
|
+
const de_ListLayoutsCommand = async (output, context) => {
|
|
1647
1641
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1648
|
-
return
|
|
1642
|
+
return de_ListLayoutsCommandError(output, context);
|
|
1649
1643
|
}
|
|
1650
1644
|
const contents = map({
|
|
1651
1645
|
$metadata: deserializeMetadata(output),
|
|
1652
1646
|
});
|
|
1653
1647
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1654
1648
|
if (data.layouts != null) {
|
|
1655
|
-
contents.layouts =
|
|
1649
|
+
contents.layouts = de_LayoutSummaryList(data.layouts, context);
|
|
1656
1650
|
}
|
|
1657
1651
|
if (data.nextToken != null) {
|
|
1658
1652
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1659
1653
|
}
|
|
1660
1654
|
return contents;
|
|
1661
1655
|
};
|
|
1662
|
-
exports.
|
|
1663
|
-
const
|
|
1656
|
+
exports.de_ListLayoutsCommand = de_ListLayoutsCommand;
|
|
1657
|
+
const de_ListLayoutsCommandError = async (output, context) => {
|
|
1664
1658
|
const parsedOutput = {
|
|
1665
1659
|
...output,
|
|
1666
1660
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1669,19 +1663,19 @@ const deserializeAws_restJson1ListLayoutsCommandError = async (output, context)
|
|
|
1669
1663
|
switch (errorCode) {
|
|
1670
1664
|
case "AccessDeniedException":
|
|
1671
1665
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1672
|
-
throw await
|
|
1666
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1673
1667
|
case "InternalServerException":
|
|
1674
1668
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
1675
|
-
throw await
|
|
1669
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1676
1670
|
case "ResourceNotFoundException":
|
|
1677
1671
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1678
|
-
throw await
|
|
1672
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1679
1673
|
case "ThrottlingException":
|
|
1680
1674
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1681
|
-
throw await
|
|
1675
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1682
1676
|
case "ValidationException":
|
|
1683
1677
|
case "com.amazonaws.connectcases#ValidationException":
|
|
1684
|
-
throw await
|
|
1678
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1685
1679
|
default:
|
|
1686
1680
|
const parsedBody = parsedOutput.body;
|
|
1687
1681
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1692,21 +1686,21 @@ const deserializeAws_restJson1ListLayoutsCommandError = async (output, context)
|
|
|
1692
1686
|
});
|
|
1693
1687
|
}
|
|
1694
1688
|
};
|
|
1695
|
-
const
|
|
1689
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1696
1690
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1697
|
-
return
|
|
1691
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1698
1692
|
}
|
|
1699
1693
|
const contents = map({
|
|
1700
1694
|
$metadata: deserializeMetadata(output),
|
|
1701
1695
|
});
|
|
1702
1696
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1703
1697
|
if (data.tags != null) {
|
|
1704
|
-
contents.tags =
|
|
1698
|
+
contents.tags = de_Tags(data.tags, context);
|
|
1705
1699
|
}
|
|
1706
1700
|
return contents;
|
|
1707
1701
|
};
|
|
1708
|
-
exports.
|
|
1709
|
-
const
|
|
1702
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1703
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1710
1704
|
const parsedOutput = {
|
|
1711
1705
|
...output,
|
|
1712
1706
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1715,19 +1709,19 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1715
1709
|
switch (errorCode) {
|
|
1716
1710
|
case "AccessDeniedException":
|
|
1717
1711
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1718
|
-
throw await
|
|
1712
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1719
1713
|
case "InternalServerException":
|
|
1720
1714
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
1721
|
-
throw await
|
|
1715
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1722
1716
|
case "ResourceNotFoundException":
|
|
1723
1717
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1724
|
-
throw await
|
|
1718
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1725
1719
|
case "ThrottlingException":
|
|
1726
1720
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1727
|
-
throw await
|
|
1721
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1728
1722
|
case "ValidationException":
|
|
1729
1723
|
case "com.amazonaws.connectcases#ValidationException":
|
|
1730
|
-
throw await
|
|
1724
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1731
1725
|
default:
|
|
1732
1726
|
const parsedBody = parsedOutput.body;
|
|
1733
1727
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1738,9 +1732,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1738
1732
|
});
|
|
1739
1733
|
}
|
|
1740
1734
|
};
|
|
1741
|
-
const
|
|
1735
|
+
const de_ListTemplatesCommand = async (output, context) => {
|
|
1742
1736
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1743
|
-
return
|
|
1737
|
+
return de_ListTemplatesCommandError(output, context);
|
|
1744
1738
|
}
|
|
1745
1739
|
const contents = map({
|
|
1746
1740
|
$metadata: deserializeMetadata(output),
|
|
@@ -1750,12 +1744,12 @@ const deserializeAws_restJson1ListTemplatesCommand = async (output, context) =>
|
|
|
1750
1744
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1751
1745
|
}
|
|
1752
1746
|
if (data.templates != null) {
|
|
1753
|
-
contents.templates =
|
|
1747
|
+
contents.templates = de_TemplateSummaryList(data.templates, context);
|
|
1754
1748
|
}
|
|
1755
1749
|
return contents;
|
|
1756
1750
|
};
|
|
1757
|
-
exports.
|
|
1758
|
-
const
|
|
1751
|
+
exports.de_ListTemplatesCommand = de_ListTemplatesCommand;
|
|
1752
|
+
const de_ListTemplatesCommandError = async (output, context) => {
|
|
1759
1753
|
const parsedOutput = {
|
|
1760
1754
|
...output,
|
|
1761
1755
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1764,19 +1758,19 @@ const deserializeAws_restJson1ListTemplatesCommandError = async (output, context
|
|
|
1764
1758
|
switch (errorCode) {
|
|
1765
1759
|
case "AccessDeniedException":
|
|
1766
1760
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1767
|
-
throw await
|
|
1761
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1768
1762
|
case "InternalServerException":
|
|
1769
1763
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
1770
|
-
throw await
|
|
1764
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1771
1765
|
case "ResourceNotFoundException":
|
|
1772
1766
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1773
|
-
throw await
|
|
1767
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1774
1768
|
case "ThrottlingException":
|
|
1775
1769
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1776
|
-
throw await
|
|
1770
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1777
1771
|
case "ValidationException":
|
|
1778
1772
|
case "com.amazonaws.connectcases#ValidationException":
|
|
1779
|
-
throw await
|
|
1773
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1780
1774
|
default:
|
|
1781
1775
|
const parsedBody = parsedOutput.body;
|
|
1782
1776
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1787,9 +1781,9 @@ const deserializeAws_restJson1ListTemplatesCommandError = async (output, context
|
|
|
1787
1781
|
});
|
|
1788
1782
|
}
|
|
1789
1783
|
};
|
|
1790
|
-
const
|
|
1784
|
+
const de_PutCaseEventConfigurationCommand = async (output, context) => {
|
|
1791
1785
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1792
|
-
return
|
|
1786
|
+
return de_PutCaseEventConfigurationCommandError(output, context);
|
|
1793
1787
|
}
|
|
1794
1788
|
const contents = map({
|
|
1795
1789
|
$metadata: deserializeMetadata(output),
|
|
@@ -1797,8 +1791,8 @@ const deserializeAws_restJson1PutCaseEventConfigurationCommand = async (output,
|
|
|
1797
1791
|
await collectBody(output.body, context);
|
|
1798
1792
|
return contents;
|
|
1799
1793
|
};
|
|
1800
|
-
exports.
|
|
1801
|
-
const
|
|
1794
|
+
exports.de_PutCaseEventConfigurationCommand = de_PutCaseEventConfigurationCommand;
|
|
1795
|
+
const de_PutCaseEventConfigurationCommandError = async (output, context) => {
|
|
1802
1796
|
const parsedOutput = {
|
|
1803
1797
|
...output,
|
|
1804
1798
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1807,19 +1801,19 @@ const deserializeAws_restJson1PutCaseEventConfigurationCommandError = async (out
|
|
|
1807
1801
|
switch (errorCode) {
|
|
1808
1802
|
case "AccessDeniedException":
|
|
1809
1803
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1810
|
-
throw await
|
|
1804
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1811
1805
|
case "InternalServerException":
|
|
1812
1806
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
1813
|
-
throw await
|
|
1807
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1814
1808
|
case "ResourceNotFoundException":
|
|
1815
1809
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1816
|
-
throw await
|
|
1810
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1817
1811
|
case "ThrottlingException":
|
|
1818
1812
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1819
|
-
throw await
|
|
1813
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1820
1814
|
case "ValidationException":
|
|
1821
1815
|
case "com.amazonaws.connectcases#ValidationException":
|
|
1822
|
-
throw await
|
|
1816
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1823
1817
|
default:
|
|
1824
1818
|
const parsedBody = parsedOutput.body;
|
|
1825
1819
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1830,24 +1824,24 @@ const deserializeAws_restJson1PutCaseEventConfigurationCommandError = async (out
|
|
|
1830
1824
|
});
|
|
1831
1825
|
}
|
|
1832
1826
|
};
|
|
1833
|
-
const
|
|
1827
|
+
const de_SearchCasesCommand = async (output, context) => {
|
|
1834
1828
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1835
|
-
return
|
|
1829
|
+
return de_SearchCasesCommandError(output, context);
|
|
1836
1830
|
}
|
|
1837
1831
|
const contents = map({
|
|
1838
1832
|
$metadata: deserializeMetadata(output),
|
|
1839
1833
|
});
|
|
1840
1834
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1841
1835
|
if (data.cases != null) {
|
|
1842
|
-
contents.cases =
|
|
1836
|
+
contents.cases = de_SearchCasesResponseItemList(data.cases, context);
|
|
1843
1837
|
}
|
|
1844
1838
|
if (data.nextToken != null) {
|
|
1845
1839
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1846
1840
|
}
|
|
1847
1841
|
return contents;
|
|
1848
1842
|
};
|
|
1849
|
-
exports.
|
|
1850
|
-
const
|
|
1843
|
+
exports.de_SearchCasesCommand = de_SearchCasesCommand;
|
|
1844
|
+
const de_SearchCasesCommandError = async (output, context) => {
|
|
1851
1845
|
const parsedOutput = {
|
|
1852
1846
|
...output,
|
|
1853
1847
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1856,19 +1850,19 @@ const deserializeAws_restJson1SearchCasesCommandError = async (output, context)
|
|
|
1856
1850
|
switch (errorCode) {
|
|
1857
1851
|
case "AccessDeniedException":
|
|
1858
1852
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1859
|
-
throw await
|
|
1853
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1860
1854
|
case "InternalServerException":
|
|
1861
1855
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
1862
|
-
throw await
|
|
1856
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1863
1857
|
case "ResourceNotFoundException":
|
|
1864
1858
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1865
|
-
throw await
|
|
1859
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1866
1860
|
case "ThrottlingException":
|
|
1867
1861
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1868
|
-
throw await
|
|
1862
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1869
1863
|
case "ValidationException":
|
|
1870
1864
|
case "com.amazonaws.connectcases#ValidationException":
|
|
1871
|
-
throw await
|
|
1865
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1872
1866
|
default:
|
|
1873
1867
|
const parsedBody = parsedOutput.body;
|
|
1874
1868
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1879,9 +1873,9 @@ const deserializeAws_restJson1SearchCasesCommandError = async (output, context)
|
|
|
1879
1873
|
});
|
|
1880
1874
|
}
|
|
1881
1875
|
};
|
|
1882
|
-
const
|
|
1876
|
+
const de_SearchRelatedItemsCommand = async (output, context) => {
|
|
1883
1877
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1884
|
-
return
|
|
1878
|
+
return de_SearchRelatedItemsCommandError(output, context);
|
|
1885
1879
|
}
|
|
1886
1880
|
const contents = map({
|
|
1887
1881
|
$metadata: deserializeMetadata(output),
|
|
@@ -1891,12 +1885,12 @@ const deserializeAws_restJson1SearchRelatedItemsCommand = async (output, context
|
|
|
1891
1885
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1892
1886
|
}
|
|
1893
1887
|
if (data.relatedItems != null) {
|
|
1894
|
-
contents.relatedItems =
|
|
1888
|
+
contents.relatedItems = de_SearchRelatedItemsResponseItemList(data.relatedItems, context);
|
|
1895
1889
|
}
|
|
1896
1890
|
return contents;
|
|
1897
1891
|
};
|
|
1898
|
-
exports.
|
|
1899
|
-
const
|
|
1892
|
+
exports.de_SearchRelatedItemsCommand = de_SearchRelatedItemsCommand;
|
|
1893
|
+
const de_SearchRelatedItemsCommandError = async (output, context) => {
|
|
1900
1894
|
const parsedOutput = {
|
|
1901
1895
|
...output,
|
|
1902
1896
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1905,19 +1899,19 @@ const deserializeAws_restJson1SearchRelatedItemsCommandError = async (output, co
|
|
|
1905
1899
|
switch (errorCode) {
|
|
1906
1900
|
case "AccessDeniedException":
|
|
1907
1901
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1908
|
-
throw await
|
|
1902
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1909
1903
|
case "InternalServerException":
|
|
1910
1904
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
1911
|
-
throw await
|
|
1905
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1912
1906
|
case "ResourceNotFoundException":
|
|
1913
1907
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1914
|
-
throw await
|
|
1908
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1915
1909
|
case "ThrottlingException":
|
|
1916
1910
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1917
|
-
throw await
|
|
1911
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1918
1912
|
case "ValidationException":
|
|
1919
1913
|
case "com.amazonaws.connectcases#ValidationException":
|
|
1920
|
-
throw await
|
|
1914
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1921
1915
|
default:
|
|
1922
1916
|
const parsedBody = parsedOutput.body;
|
|
1923
1917
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1928,9 +1922,9 @@ const deserializeAws_restJson1SearchRelatedItemsCommandError = async (output, co
|
|
|
1928
1922
|
});
|
|
1929
1923
|
}
|
|
1930
1924
|
};
|
|
1931
|
-
const
|
|
1925
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1932
1926
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1933
|
-
return
|
|
1927
|
+
return de_TagResourceCommandError(output, context);
|
|
1934
1928
|
}
|
|
1935
1929
|
const contents = map({
|
|
1936
1930
|
$metadata: deserializeMetadata(output),
|
|
@@ -1938,8 +1932,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
1938
1932
|
await collectBody(output.body, context);
|
|
1939
1933
|
return contents;
|
|
1940
1934
|
};
|
|
1941
|
-
exports.
|
|
1942
|
-
const
|
|
1935
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1936
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1943
1937
|
const parsedOutput = {
|
|
1944
1938
|
...output,
|
|
1945
1939
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1948,19 +1942,19 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1948
1942
|
switch (errorCode) {
|
|
1949
1943
|
case "AccessDeniedException":
|
|
1950
1944
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1951
|
-
throw await
|
|
1945
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1952
1946
|
case "InternalServerException":
|
|
1953
1947
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
1954
|
-
throw await
|
|
1948
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1955
1949
|
case "ResourceNotFoundException":
|
|
1956
1950
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1957
|
-
throw await
|
|
1951
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1958
1952
|
case "ThrottlingException":
|
|
1959
1953
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1960
|
-
throw await
|
|
1954
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1961
1955
|
case "ValidationException":
|
|
1962
1956
|
case "com.amazonaws.connectcases#ValidationException":
|
|
1963
|
-
throw await
|
|
1957
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1964
1958
|
default:
|
|
1965
1959
|
const parsedBody = parsedOutput.body;
|
|
1966
1960
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1971,9 +1965,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1971
1965
|
});
|
|
1972
1966
|
}
|
|
1973
1967
|
};
|
|
1974
|
-
const
|
|
1968
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1975
1969
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1976
|
-
return
|
|
1970
|
+
return de_UntagResourceCommandError(output, context);
|
|
1977
1971
|
}
|
|
1978
1972
|
const contents = map({
|
|
1979
1973
|
$metadata: deserializeMetadata(output),
|
|
@@ -1981,8 +1975,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
1981
1975
|
await collectBody(output.body, context);
|
|
1982
1976
|
return contents;
|
|
1983
1977
|
};
|
|
1984
|
-
exports.
|
|
1985
|
-
const
|
|
1978
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1979
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1986
1980
|
const parsedOutput = {
|
|
1987
1981
|
...output,
|
|
1988
1982
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1991,19 +1985,19 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1991
1985
|
switch (errorCode) {
|
|
1992
1986
|
case "AccessDeniedException":
|
|
1993
1987
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1994
|
-
throw await
|
|
1988
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1995
1989
|
case "InternalServerException":
|
|
1996
1990
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
1997
|
-
throw await
|
|
1991
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1998
1992
|
case "ResourceNotFoundException":
|
|
1999
1993
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
2000
|
-
throw await
|
|
1994
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2001
1995
|
case "ThrottlingException":
|
|
2002
1996
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
2003
|
-
throw await
|
|
1997
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2004
1998
|
case "ValidationException":
|
|
2005
1999
|
case "com.amazonaws.connectcases#ValidationException":
|
|
2006
|
-
throw await
|
|
2000
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2007
2001
|
default:
|
|
2008
2002
|
const parsedBody = parsedOutput.body;
|
|
2009
2003
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2014,9 +2008,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2014
2008
|
});
|
|
2015
2009
|
}
|
|
2016
2010
|
};
|
|
2017
|
-
const
|
|
2011
|
+
const de_UpdateCaseCommand = async (output, context) => {
|
|
2018
2012
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2019
|
-
return
|
|
2013
|
+
return de_UpdateCaseCommandError(output, context);
|
|
2020
2014
|
}
|
|
2021
2015
|
const contents = map({
|
|
2022
2016
|
$metadata: deserializeMetadata(output),
|
|
@@ -2024,8 +2018,8 @@ const deserializeAws_restJson1UpdateCaseCommand = async (output, context) => {
|
|
|
2024
2018
|
await collectBody(output.body, context);
|
|
2025
2019
|
return contents;
|
|
2026
2020
|
};
|
|
2027
|
-
exports.
|
|
2028
|
-
const
|
|
2021
|
+
exports.de_UpdateCaseCommand = de_UpdateCaseCommand;
|
|
2022
|
+
const de_UpdateCaseCommandError = async (output, context) => {
|
|
2029
2023
|
const parsedOutput = {
|
|
2030
2024
|
...output,
|
|
2031
2025
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2034,19 +2028,19 @@ const deserializeAws_restJson1UpdateCaseCommandError = async (output, context) =
|
|
|
2034
2028
|
switch (errorCode) {
|
|
2035
2029
|
case "AccessDeniedException":
|
|
2036
2030
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
2037
|
-
throw await
|
|
2031
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2038
2032
|
case "InternalServerException":
|
|
2039
2033
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
2040
|
-
throw await
|
|
2034
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2041
2035
|
case "ResourceNotFoundException":
|
|
2042
2036
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
2043
|
-
throw await
|
|
2037
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2044
2038
|
case "ThrottlingException":
|
|
2045
2039
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
2046
|
-
throw await
|
|
2040
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2047
2041
|
case "ValidationException":
|
|
2048
2042
|
case "com.amazonaws.connectcases#ValidationException":
|
|
2049
|
-
throw await
|
|
2043
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2050
2044
|
default:
|
|
2051
2045
|
const parsedBody = parsedOutput.body;
|
|
2052
2046
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2057,9 +2051,9 @@ const deserializeAws_restJson1UpdateCaseCommandError = async (output, context) =
|
|
|
2057
2051
|
});
|
|
2058
2052
|
}
|
|
2059
2053
|
};
|
|
2060
|
-
const
|
|
2054
|
+
const de_UpdateFieldCommand = async (output, context) => {
|
|
2061
2055
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2062
|
-
return
|
|
2056
|
+
return de_UpdateFieldCommandError(output, context);
|
|
2063
2057
|
}
|
|
2064
2058
|
const contents = map({
|
|
2065
2059
|
$metadata: deserializeMetadata(output),
|
|
@@ -2067,8 +2061,8 @@ const deserializeAws_restJson1UpdateFieldCommand = async (output, context) => {
|
|
|
2067
2061
|
await collectBody(output.body, context);
|
|
2068
2062
|
return contents;
|
|
2069
2063
|
};
|
|
2070
|
-
exports.
|
|
2071
|
-
const
|
|
2064
|
+
exports.de_UpdateFieldCommand = de_UpdateFieldCommand;
|
|
2065
|
+
const de_UpdateFieldCommandError = async (output, context) => {
|
|
2072
2066
|
const parsedOutput = {
|
|
2073
2067
|
...output,
|
|
2074
2068
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2077,22 +2071,22 @@ const deserializeAws_restJson1UpdateFieldCommandError = async (output, context)
|
|
|
2077
2071
|
switch (errorCode) {
|
|
2078
2072
|
case "AccessDeniedException":
|
|
2079
2073
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
2080
|
-
throw await
|
|
2074
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2081
2075
|
case "ConflictException":
|
|
2082
2076
|
case "com.amazonaws.connectcases#ConflictException":
|
|
2083
|
-
throw await
|
|
2077
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2084
2078
|
case "InternalServerException":
|
|
2085
2079
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
2086
|
-
throw await
|
|
2080
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2087
2081
|
case "ResourceNotFoundException":
|
|
2088
2082
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
2089
|
-
throw await
|
|
2083
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2090
2084
|
case "ThrottlingException":
|
|
2091
2085
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
2092
|
-
throw await
|
|
2086
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2093
2087
|
case "ValidationException":
|
|
2094
2088
|
case "com.amazonaws.connectcases#ValidationException":
|
|
2095
|
-
throw await
|
|
2089
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2096
2090
|
default:
|
|
2097
2091
|
const parsedBody = parsedOutput.body;
|
|
2098
2092
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2103,9 +2097,9 @@ const deserializeAws_restJson1UpdateFieldCommandError = async (output, context)
|
|
|
2103
2097
|
});
|
|
2104
2098
|
}
|
|
2105
2099
|
};
|
|
2106
|
-
const
|
|
2100
|
+
const de_UpdateLayoutCommand = async (output, context) => {
|
|
2107
2101
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2108
|
-
return
|
|
2102
|
+
return de_UpdateLayoutCommandError(output, context);
|
|
2109
2103
|
}
|
|
2110
2104
|
const contents = map({
|
|
2111
2105
|
$metadata: deserializeMetadata(output),
|
|
@@ -2113,8 +2107,8 @@ const deserializeAws_restJson1UpdateLayoutCommand = async (output, context) => {
|
|
|
2113
2107
|
await collectBody(output.body, context);
|
|
2114
2108
|
return contents;
|
|
2115
2109
|
};
|
|
2116
|
-
exports.
|
|
2117
|
-
const
|
|
2110
|
+
exports.de_UpdateLayoutCommand = de_UpdateLayoutCommand;
|
|
2111
|
+
const de_UpdateLayoutCommandError = async (output, context) => {
|
|
2118
2112
|
const parsedOutput = {
|
|
2119
2113
|
...output,
|
|
2120
2114
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2123,25 +2117,25 @@ const deserializeAws_restJson1UpdateLayoutCommandError = async (output, context)
|
|
|
2123
2117
|
switch (errorCode) {
|
|
2124
2118
|
case "AccessDeniedException":
|
|
2125
2119
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
2126
|
-
throw await
|
|
2120
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2127
2121
|
case "ConflictException":
|
|
2128
2122
|
case "com.amazonaws.connectcases#ConflictException":
|
|
2129
|
-
throw await
|
|
2123
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2130
2124
|
case "InternalServerException":
|
|
2131
2125
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
2132
|
-
throw await
|
|
2126
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2133
2127
|
case "ResourceNotFoundException":
|
|
2134
2128
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
2135
|
-
throw await
|
|
2129
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2136
2130
|
case "ServiceQuotaExceededException":
|
|
2137
2131
|
case "com.amazonaws.connectcases#ServiceQuotaExceededException":
|
|
2138
|
-
throw await
|
|
2132
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2139
2133
|
case "ThrottlingException":
|
|
2140
2134
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
2141
|
-
throw await
|
|
2135
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2142
2136
|
case "ValidationException":
|
|
2143
2137
|
case "com.amazonaws.connectcases#ValidationException":
|
|
2144
|
-
throw await
|
|
2138
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2145
2139
|
default:
|
|
2146
2140
|
const parsedBody = parsedOutput.body;
|
|
2147
2141
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2152,9 +2146,9 @@ const deserializeAws_restJson1UpdateLayoutCommandError = async (output, context)
|
|
|
2152
2146
|
});
|
|
2153
2147
|
}
|
|
2154
2148
|
};
|
|
2155
|
-
const
|
|
2149
|
+
const de_UpdateTemplateCommand = async (output, context) => {
|
|
2156
2150
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2157
|
-
return
|
|
2151
|
+
return de_UpdateTemplateCommandError(output, context);
|
|
2158
2152
|
}
|
|
2159
2153
|
const contents = map({
|
|
2160
2154
|
$metadata: deserializeMetadata(output),
|
|
@@ -2162,8 +2156,8 @@ const deserializeAws_restJson1UpdateTemplateCommand = async (output, context) =>
|
|
|
2162
2156
|
await collectBody(output.body, context);
|
|
2163
2157
|
return contents;
|
|
2164
2158
|
};
|
|
2165
|
-
exports.
|
|
2166
|
-
const
|
|
2159
|
+
exports.de_UpdateTemplateCommand = de_UpdateTemplateCommand;
|
|
2160
|
+
const de_UpdateTemplateCommandError = async (output, context) => {
|
|
2167
2161
|
const parsedOutput = {
|
|
2168
2162
|
...output,
|
|
2169
2163
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2172,22 +2166,22 @@ const deserializeAws_restJson1UpdateTemplateCommandError = async (output, contex
|
|
|
2172
2166
|
switch (errorCode) {
|
|
2173
2167
|
case "AccessDeniedException":
|
|
2174
2168
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
2175
|
-
throw await
|
|
2169
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2176
2170
|
case "ConflictException":
|
|
2177
2171
|
case "com.amazonaws.connectcases#ConflictException":
|
|
2178
|
-
throw await
|
|
2172
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2179
2173
|
case "InternalServerException":
|
|
2180
2174
|
case "com.amazonaws.connectcases#InternalServerException":
|
|
2181
|
-
throw await
|
|
2175
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2182
2176
|
case "ResourceNotFoundException":
|
|
2183
2177
|
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
2184
|
-
throw await
|
|
2178
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2185
2179
|
case "ThrottlingException":
|
|
2186
2180
|
case "com.amazonaws.connectcases#ThrottlingException":
|
|
2187
|
-
throw await
|
|
2181
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2188
2182
|
case "ValidationException":
|
|
2189
2183
|
case "com.amazonaws.connectcases#ValidationException":
|
|
2190
|
-
throw await
|
|
2184
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2191
2185
|
default:
|
|
2192
2186
|
const parsedBody = parsedOutput.body;
|
|
2193
2187
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2199,7 +2193,7 @@ const deserializeAws_restJson1UpdateTemplateCommandError = async (output, contex
|
|
|
2199
2193
|
}
|
|
2200
2194
|
};
|
|
2201
2195
|
const map = smithy_client_1.map;
|
|
2202
|
-
const
|
|
2196
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2203
2197
|
const contents = map({});
|
|
2204
2198
|
const data = parsedOutput.body;
|
|
2205
2199
|
if (data.message != null) {
|
|
@@ -2211,7 +2205,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
2211
2205
|
});
|
|
2212
2206
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2213
2207
|
};
|
|
2214
|
-
const
|
|
2208
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2215
2209
|
const contents = map({});
|
|
2216
2210
|
const data = parsedOutput.body;
|
|
2217
2211
|
if (data.message != null) {
|
|
@@ -2223,7 +2217,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
2223
2217
|
});
|
|
2224
2218
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2225
2219
|
};
|
|
2226
|
-
const
|
|
2220
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2227
2221
|
const contents = map({
|
|
2228
2222
|
retryAfterSeconds: [
|
|
2229
2223
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
@@ -2240,7 +2234,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
2240
2234
|
});
|
|
2241
2235
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2242
2236
|
};
|
|
2243
|
-
const
|
|
2237
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2244
2238
|
const contents = map({});
|
|
2245
2239
|
const data = parsedOutput.body;
|
|
2246
2240
|
if (data.message != null) {
|
|
@@ -2258,7 +2252,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
2258
2252
|
});
|
|
2259
2253
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2260
2254
|
};
|
|
2261
|
-
const
|
|
2255
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2262
2256
|
const contents = map({});
|
|
2263
2257
|
const data = parsedOutput.body;
|
|
2264
2258
|
if (data.message != null) {
|
|
@@ -2270,7 +2264,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
2270
2264
|
});
|
|
2271
2265
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2272
2266
|
};
|
|
2273
|
-
const
|
|
2267
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2274
2268
|
const contents = map({});
|
|
2275
2269
|
const data = parsedOutput.body;
|
|
2276
2270
|
if (data.message != null) {
|
|
@@ -2282,7 +2276,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
2282
2276
|
});
|
|
2283
2277
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2284
2278
|
};
|
|
2285
|
-
const
|
|
2279
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2286
2280
|
const contents = map({});
|
|
2287
2281
|
const data = parsedOutput.body;
|
|
2288
2282
|
if (data.message != null) {
|
|
@@ -2294,151 +2288,149 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2294
2288
|
});
|
|
2295
2289
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2296
2290
|
};
|
|
2297
|
-
const
|
|
2291
|
+
const se_BasicLayout = (input, context) => {
|
|
2298
2292
|
return {
|
|
2299
|
-
...(input.moreInfo != null && { moreInfo:
|
|
2300
|
-
...(input.topPanel != null && { topPanel:
|
|
2293
|
+
...(input.moreInfo != null && { moreInfo: se_LayoutSections(input.moreInfo, context) }),
|
|
2294
|
+
...(input.topPanel != null && { topPanel: se_LayoutSections(input.topPanel, context) }),
|
|
2301
2295
|
};
|
|
2302
2296
|
};
|
|
2303
|
-
const
|
|
2297
|
+
const se_BatchGetFieldIdentifierList = (input, context) => {
|
|
2304
2298
|
return input
|
|
2305
2299
|
.filter((e) => e != null)
|
|
2306
2300
|
.map((entry) => {
|
|
2307
|
-
return
|
|
2301
|
+
return se_FieldIdentifier(entry, context);
|
|
2308
2302
|
});
|
|
2309
2303
|
};
|
|
2310
|
-
const
|
|
2304
|
+
const se_CaseEventIncludedData = (input, context) => {
|
|
2311
2305
|
return {
|
|
2312
|
-
...(input.fields != null && { fields:
|
|
2306
|
+
...(input.fields != null && { fields: se_FieldIdentifierList(input.fields, context) }),
|
|
2313
2307
|
};
|
|
2314
2308
|
};
|
|
2315
|
-
const
|
|
2309
|
+
const se_CaseFilter = (input, context) => {
|
|
2316
2310
|
return models_0_1.CaseFilter.visit(input, {
|
|
2317
|
-
andAll: (value) => ({ andAll:
|
|
2318
|
-
field: (value) => ({ field:
|
|
2319
|
-
not: (value) => ({ not:
|
|
2311
|
+
andAll: (value) => ({ andAll: se_CaseFilterList(value, context) }),
|
|
2312
|
+
field: (value) => ({ field: se_FieldFilter(value, context) }),
|
|
2313
|
+
not: (value) => ({ not: se_CaseFilter(value, context) }),
|
|
2320
2314
|
_: (name, value) => ({ name: value }),
|
|
2321
2315
|
});
|
|
2322
2316
|
};
|
|
2323
|
-
const
|
|
2317
|
+
const se_CaseFilterList = (input, context) => {
|
|
2324
2318
|
return input
|
|
2325
2319
|
.filter((e) => e != null)
|
|
2326
2320
|
.map((entry) => {
|
|
2327
|
-
return
|
|
2321
|
+
return se_CaseFilter(entry, context);
|
|
2328
2322
|
});
|
|
2329
2323
|
};
|
|
2330
|
-
const
|
|
2324
|
+
const se_ChannelList = (input, context) => {
|
|
2331
2325
|
return input
|
|
2332
2326
|
.filter((e) => e != null)
|
|
2333
2327
|
.map((entry) => {
|
|
2334
2328
|
return entry;
|
|
2335
2329
|
});
|
|
2336
2330
|
};
|
|
2337
|
-
const
|
|
2331
|
+
const se_CommentContent = (input, context) => {
|
|
2338
2332
|
return {
|
|
2339
2333
|
...(input.body != null && { body: input.body }),
|
|
2340
2334
|
...(input.contentType != null && { contentType: input.contentType }),
|
|
2341
2335
|
};
|
|
2342
2336
|
};
|
|
2343
|
-
const
|
|
2337
|
+
const se_CommentFilter = (input, context) => {
|
|
2344
2338
|
return {};
|
|
2345
2339
|
};
|
|
2346
|
-
const
|
|
2340
|
+
const se_Contact = (input, context) => {
|
|
2347
2341
|
return {
|
|
2348
2342
|
...(input.contactArn != null && { contactArn: input.contactArn }),
|
|
2349
2343
|
};
|
|
2350
2344
|
};
|
|
2351
|
-
const
|
|
2345
|
+
const se_ContactFilter = (input, context) => {
|
|
2352
2346
|
return {
|
|
2353
|
-
...(input.channel != null && { channel:
|
|
2347
|
+
...(input.channel != null && { channel: se_ChannelList(input.channel, context) }),
|
|
2354
2348
|
...(input.contactArn != null && { contactArn: input.contactArn }),
|
|
2355
2349
|
};
|
|
2356
2350
|
};
|
|
2357
|
-
const
|
|
2351
|
+
const se_EventBridgeConfiguration = (input, context) => {
|
|
2358
2352
|
return {
|
|
2359
2353
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
2360
|
-
...(input.includedData != null && {
|
|
2361
|
-
includedData: serializeAws_restJson1EventIncludedData(input.includedData, context),
|
|
2362
|
-
}),
|
|
2354
|
+
...(input.includedData != null && { includedData: se_EventIncludedData(input.includedData, context) }),
|
|
2363
2355
|
};
|
|
2364
2356
|
};
|
|
2365
|
-
const
|
|
2357
|
+
const se_EventIncludedData = (input, context) => {
|
|
2366
2358
|
return {
|
|
2367
|
-
...(input.caseData != null && { caseData:
|
|
2359
|
+
...(input.caseData != null && { caseData: se_CaseEventIncludedData(input.caseData, context) }),
|
|
2368
2360
|
...(input.relatedItemData != null && {
|
|
2369
|
-
relatedItemData:
|
|
2361
|
+
relatedItemData: se_RelatedItemEventIncludedData(input.relatedItemData, context),
|
|
2370
2362
|
}),
|
|
2371
2363
|
};
|
|
2372
2364
|
};
|
|
2373
|
-
const
|
|
2365
|
+
const se_FieldFilter = (input, context) => {
|
|
2374
2366
|
return models_0_1.FieldFilter.visit(input, {
|
|
2375
|
-
contains: (value) => ({ contains:
|
|
2376
|
-
equalTo: (value) => ({ equalTo:
|
|
2377
|
-
greaterThan: (value) => ({ greaterThan:
|
|
2378
|
-
greaterThanOrEqualTo: (value) => ({ greaterThanOrEqualTo:
|
|
2379
|
-
lessThan: (value) => ({ lessThan:
|
|
2380
|
-
lessThanOrEqualTo: (value) => ({ lessThanOrEqualTo:
|
|
2367
|
+
contains: (value) => ({ contains: se_FieldValue(value, context) }),
|
|
2368
|
+
equalTo: (value) => ({ equalTo: se_FieldValue(value, context) }),
|
|
2369
|
+
greaterThan: (value) => ({ greaterThan: se_FieldValue(value, context) }),
|
|
2370
|
+
greaterThanOrEqualTo: (value) => ({ greaterThanOrEqualTo: se_FieldValue(value, context) }),
|
|
2371
|
+
lessThan: (value) => ({ lessThan: se_FieldValue(value, context) }),
|
|
2372
|
+
lessThanOrEqualTo: (value) => ({ lessThanOrEqualTo: se_FieldValue(value, context) }),
|
|
2381
2373
|
_: (name, value) => ({ name: value }),
|
|
2382
2374
|
});
|
|
2383
2375
|
};
|
|
2384
|
-
const
|
|
2376
|
+
const se_FieldGroup = (input, context) => {
|
|
2385
2377
|
return {
|
|
2386
|
-
...(input.fields != null && { fields:
|
|
2378
|
+
...(input.fields != null && { fields: se_FieldList(input.fields, context) }),
|
|
2387
2379
|
...(input.name != null && { name: input.name }),
|
|
2388
2380
|
};
|
|
2389
2381
|
};
|
|
2390
|
-
const
|
|
2382
|
+
const se_FieldIdentifier = (input, context) => {
|
|
2391
2383
|
return {
|
|
2392
2384
|
...(input.id != null && { id: input.id }),
|
|
2393
2385
|
};
|
|
2394
2386
|
};
|
|
2395
|
-
const
|
|
2387
|
+
const se_FieldIdentifierList = (input, context) => {
|
|
2396
2388
|
return input
|
|
2397
2389
|
.filter((e) => e != null)
|
|
2398
2390
|
.map((entry) => {
|
|
2399
|
-
return
|
|
2391
|
+
return se_FieldIdentifier(entry, context);
|
|
2400
2392
|
});
|
|
2401
2393
|
};
|
|
2402
|
-
const
|
|
2394
|
+
const se_FieldItem = (input, context) => {
|
|
2403
2395
|
return {
|
|
2404
2396
|
...(input.id != null && { id: input.id }),
|
|
2405
2397
|
};
|
|
2406
2398
|
};
|
|
2407
|
-
const
|
|
2399
|
+
const se_FieldList = (input, context) => {
|
|
2408
2400
|
return input
|
|
2409
2401
|
.filter((e) => e != null)
|
|
2410
2402
|
.map((entry) => {
|
|
2411
|
-
return
|
|
2403
|
+
return se_FieldItem(entry, context);
|
|
2412
2404
|
});
|
|
2413
2405
|
};
|
|
2414
|
-
const
|
|
2406
|
+
const se_FieldOption = (input, context) => {
|
|
2415
2407
|
return {
|
|
2416
2408
|
...(input.active != null && { active: input.active }),
|
|
2417
2409
|
...(input.name != null && { name: input.name }),
|
|
2418
2410
|
...(input.value != null && { value: input.value }),
|
|
2419
2411
|
};
|
|
2420
2412
|
};
|
|
2421
|
-
const
|
|
2413
|
+
const se_FieldOptionsList = (input, context) => {
|
|
2422
2414
|
return input
|
|
2423
2415
|
.filter((e) => e != null)
|
|
2424
2416
|
.map((entry) => {
|
|
2425
|
-
return
|
|
2417
|
+
return se_FieldOption(entry, context);
|
|
2426
2418
|
});
|
|
2427
2419
|
};
|
|
2428
|
-
const
|
|
2420
|
+
const se_FieldValue = (input, context) => {
|
|
2429
2421
|
return {
|
|
2430
2422
|
...(input.id != null && { id: input.id }),
|
|
2431
|
-
...(input.value != null && { value:
|
|
2423
|
+
...(input.value != null && { value: se_FieldValueUnion(input.value, context) }),
|
|
2432
2424
|
};
|
|
2433
2425
|
};
|
|
2434
|
-
const
|
|
2426
|
+
const se_FieldValueList = (input, context) => {
|
|
2435
2427
|
return input
|
|
2436
2428
|
.filter((e) => e != null)
|
|
2437
2429
|
.map((entry) => {
|
|
2438
|
-
return
|
|
2430
|
+
return se_FieldValue(entry, context);
|
|
2439
2431
|
});
|
|
2440
2432
|
};
|
|
2441
|
-
const
|
|
2433
|
+
const se_FieldValueUnion = (input, context) => {
|
|
2442
2434
|
return models_0_1.FieldValueUnion.visit(input, {
|
|
2443
2435
|
booleanValue: (value) => ({ booleanValue: value }),
|
|
2444
2436
|
doubleValue: (value) => ({ doubleValue: (0, smithy_client_1.serializeFloat)(value) }),
|
|
@@ -2446,87 +2438,87 @@ const serializeAws_restJson1FieldValueUnion = (input, context) => {
|
|
|
2446
2438
|
_: (name, value) => ({ name: value }),
|
|
2447
2439
|
});
|
|
2448
2440
|
};
|
|
2449
|
-
const
|
|
2441
|
+
const se_LayoutConfiguration = (input, context) => {
|
|
2450
2442
|
return {
|
|
2451
2443
|
...(input.defaultLayout != null && { defaultLayout: input.defaultLayout }),
|
|
2452
2444
|
};
|
|
2453
2445
|
};
|
|
2454
|
-
const
|
|
2446
|
+
const se_LayoutContent = (input, context) => {
|
|
2455
2447
|
return models_0_1.LayoutContent.visit(input, {
|
|
2456
|
-
basic: (value) => ({ basic:
|
|
2448
|
+
basic: (value) => ({ basic: se_BasicLayout(value, context) }),
|
|
2457
2449
|
_: (name, value) => ({ name: value }),
|
|
2458
2450
|
});
|
|
2459
2451
|
};
|
|
2460
|
-
const
|
|
2452
|
+
const se_LayoutSections = (input, context) => {
|
|
2461
2453
|
return {
|
|
2462
|
-
...(input.sections != null && { sections:
|
|
2454
|
+
...(input.sections != null && { sections: se_SectionsList(input.sections, context) }),
|
|
2463
2455
|
};
|
|
2464
2456
|
};
|
|
2465
|
-
const
|
|
2457
|
+
const se_RelatedItemEventIncludedData = (input, context) => {
|
|
2466
2458
|
return {
|
|
2467
2459
|
...(input.includeContent != null && { includeContent: input.includeContent }),
|
|
2468
2460
|
};
|
|
2469
2461
|
};
|
|
2470
|
-
const
|
|
2462
|
+
const se_RelatedItemFilterList = (input, context) => {
|
|
2471
2463
|
return input
|
|
2472
2464
|
.filter((e) => e != null)
|
|
2473
2465
|
.map((entry) => {
|
|
2474
|
-
return
|
|
2466
|
+
return se_RelatedItemTypeFilter(entry, context);
|
|
2475
2467
|
});
|
|
2476
2468
|
};
|
|
2477
|
-
const
|
|
2469
|
+
const se_RelatedItemInputContent = (input, context) => {
|
|
2478
2470
|
return models_0_1.RelatedItemInputContent.visit(input, {
|
|
2479
|
-
comment: (value) => ({ comment:
|
|
2480
|
-
contact: (value) => ({ contact:
|
|
2471
|
+
comment: (value) => ({ comment: se_CommentContent(value, context) }),
|
|
2472
|
+
contact: (value) => ({ contact: se_Contact(value, context) }),
|
|
2481
2473
|
_: (name, value) => ({ name: value }),
|
|
2482
2474
|
});
|
|
2483
2475
|
};
|
|
2484
|
-
const
|
|
2476
|
+
const se_RelatedItemTypeFilter = (input, context) => {
|
|
2485
2477
|
return models_0_1.RelatedItemTypeFilter.visit(input, {
|
|
2486
|
-
comment: (value) => ({ comment:
|
|
2487
|
-
contact: (value) => ({ contact:
|
|
2478
|
+
comment: (value) => ({ comment: se_CommentFilter(value, context) }),
|
|
2479
|
+
contact: (value) => ({ contact: se_ContactFilter(value, context) }),
|
|
2488
2480
|
_: (name, value) => ({ name: value }),
|
|
2489
2481
|
});
|
|
2490
2482
|
};
|
|
2491
|
-
const
|
|
2483
|
+
const se_RequiredField = (input, context) => {
|
|
2492
2484
|
return {
|
|
2493
2485
|
...(input.fieldId != null && { fieldId: input.fieldId }),
|
|
2494
2486
|
};
|
|
2495
2487
|
};
|
|
2496
|
-
const
|
|
2488
|
+
const se_RequiredFieldList = (input, context) => {
|
|
2497
2489
|
return input
|
|
2498
2490
|
.filter((e) => e != null)
|
|
2499
2491
|
.map((entry) => {
|
|
2500
|
-
return
|
|
2492
|
+
return se_RequiredField(entry, context);
|
|
2501
2493
|
});
|
|
2502
2494
|
};
|
|
2503
|
-
const
|
|
2495
|
+
const se_Section = (input, context) => {
|
|
2504
2496
|
return models_0_1.Section.visit(input, {
|
|
2505
|
-
fieldGroup: (value) => ({ fieldGroup:
|
|
2497
|
+
fieldGroup: (value) => ({ fieldGroup: se_FieldGroup(value, context) }),
|
|
2506
2498
|
_: (name, value) => ({ name: value }),
|
|
2507
2499
|
});
|
|
2508
2500
|
};
|
|
2509
|
-
const
|
|
2501
|
+
const se_SectionsList = (input, context) => {
|
|
2510
2502
|
return input
|
|
2511
2503
|
.filter((e) => e != null)
|
|
2512
2504
|
.map((entry) => {
|
|
2513
|
-
return
|
|
2505
|
+
return se_Section(entry, context);
|
|
2514
2506
|
});
|
|
2515
2507
|
};
|
|
2516
|
-
const
|
|
2508
|
+
const se_Sort = (input, context) => {
|
|
2517
2509
|
return {
|
|
2518
2510
|
...(input.fieldId != null && { fieldId: input.fieldId }),
|
|
2519
2511
|
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2520
2512
|
};
|
|
2521
2513
|
};
|
|
2522
|
-
const
|
|
2514
|
+
const se_SortList = (input, context) => {
|
|
2523
2515
|
return input
|
|
2524
2516
|
.filter((e) => e != null)
|
|
2525
2517
|
.map((entry) => {
|
|
2526
|
-
return
|
|
2518
|
+
return se_Sort(entry, context);
|
|
2527
2519
|
});
|
|
2528
2520
|
};
|
|
2529
|
-
const
|
|
2521
|
+
const se_Tags = (input, context) => {
|
|
2530
2522
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2531
2523
|
if (value === null) {
|
|
2532
2524
|
acc[key] = null;
|
|
@@ -2536,63 +2528,63 @@ const serializeAws_restJson1Tags = (input, context) => {
|
|
|
2536
2528
|
return acc;
|
|
2537
2529
|
}, {});
|
|
2538
2530
|
};
|
|
2539
|
-
const
|
|
2531
|
+
const de_BasicLayout = (output, context) => {
|
|
2540
2532
|
return {
|
|
2541
|
-
moreInfo: output.moreInfo != null ?
|
|
2542
|
-
topPanel: output.topPanel != null ?
|
|
2533
|
+
moreInfo: output.moreInfo != null ? de_LayoutSections(output.moreInfo, context) : undefined,
|
|
2534
|
+
topPanel: output.topPanel != null ? de_LayoutSections(output.topPanel, context) : undefined,
|
|
2543
2535
|
};
|
|
2544
2536
|
};
|
|
2545
|
-
const
|
|
2537
|
+
const de_BatchGetFieldErrorList = (output, context) => {
|
|
2546
2538
|
const retVal = (output || [])
|
|
2547
2539
|
.filter((e) => e != null)
|
|
2548
2540
|
.map((entry) => {
|
|
2549
2541
|
if (entry === null) {
|
|
2550
2542
|
return null;
|
|
2551
2543
|
}
|
|
2552
|
-
return
|
|
2544
|
+
return de_FieldError(entry, context);
|
|
2553
2545
|
});
|
|
2554
2546
|
return retVal;
|
|
2555
2547
|
};
|
|
2556
|
-
const
|
|
2548
|
+
const de_BatchGetFieldList = (output, context) => {
|
|
2557
2549
|
const retVal = (output || [])
|
|
2558
2550
|
.filter((e) => e != null)
|
|
2559
2551
|
.map((entry) => {
|
|
2560
2552
|
if (entry === null) {
|
|
2561
2553
|
return null;
|
|
2562
2554
|
}
|
|
2563
|
-
return
|
|
2555
|
+
return de_GetFieldResponse(entry, context);
|
|
2564
2556
|
});
|
|
2565
2557
|
return retVal;
|
|
2566
2558
|
};
|
|
2567
|
-
const
|
|
2559
|
+
const de_CaseEventIncludedData = (output, context) => {
|
|
2568
2560
|
return {
|
|
2569
|
-
fields: output.fields != null ?
|
|
2561
|
+
fields: output.fields != null ? de_FieldIdentifierList(output.fields, context) : undefined,
|
|
2570
2562
|
};
|
|
2571
2563
|
};
|
|
2572
|
-
const
|
|
2564
|
+
const de_CaseSummary = (output, context) => {
|
|
2573
2565
|
return {
|
|
2574
2566
|
caseId: (0, smithy_client_1.expectString)(output.caseId),
|
|
2575
2567
|
templateId: (0, smithy_client_1.expectString)(output.templateId),
|
|
2576
2568
|
};
|
|
2577
2569
|
};
|
|
2578
|
-
const
|
|
2570
|
+
const de_CaseSummaryList = (output, context) => {
|
|
2579
2571
|
const retVal = (output || [])
|
|
2580
2572
|
.filter((e) => e != null)
|
|
2581
2573
|
.map((entry) => {
|
|
2582
2574
|
if (entry === null) {
|
|
2583
2575
|
return null;
|
|
2584
2576
|
}
|
|
2585
|
-
return
|
|
2577
|
+
return de_CaseSummary(entry, context);
|
|
2586
2578
|
});
|
|
2587
2579
|
return retVal;
|
|
2588
2580
|
};
|
|
2589
|
-
const
|
|
2581
|
+
const de_CommentContent = (output, context) => {
|
|
2590
2582
|
return {
|
|
2591
2583
|
body: (0, smithy_client_1.expectString)(output.body),
|
|
2592
2584
|
contentType: (0, smithy_client_1.expectString)(output.contentType),
|
|
2593
2585
|
};
|
|
2594
2586
|
};
|
|
2595
|
-
const
|
|
2587
|
+
const de_ContactContent = (output, context) => {
|
|
2596
2588
|
return {
|
|
2597
2589
|
channel: (0, smithy_client_1.expectString)(output.channel),
|
|
2598
2590
|
connectedToSystemTime: output.connectedToSystemTime != null
|
|
@@ -2601,120 +2593,118 @@ const deserializeAws_restJson1ContactContent = (output, context) => {
|
|
|
2601
2593
|
contactArn: (0, smithy_client_1.expectString)(output.contactArn),
|
|
2602
2594
|
};
|
|
2603
2595
|
};
|
|
2604
|
-
const
|
|
2596
|
+
const de_DomainSummary = (output, context) => {
|
|
2605
2597
|
return {
|
|
2606
2598
|
domainArn: (0, smithy_client_1.expectString)(output.domainArn),
|
|
2607
2599
|
domainId: (0, smithy_client_1.expectString)(output.domainId),
|
|
2608
2600
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2609
2601
|
};
|
|
2610
2602
|
};
|
|
2611
|
-
const
|
|
2603
|
+
const de_DomainSummaryList = (output, context) => {
|
|
2612
2604
|
const retVal = (output || [])
|
|
2613
2605
|
.filter((e) => e != null)
|
|
2614
2606
|
.map((entry) => {
|
|
2615
2607
|
if (entry === null) {
|
|
2616
2608
|
return null;
|
|
2617
2609
|
}
|
|
2618
|
-
return
|
|
2610
|
+
return de_DomainSummary(entry, context);
|
|
2619
2611
|
});
|
|
2620
2612
|
return retVal;
|
|
2621
2613
|
};
|
|
2622
|
-
const
|
|
2614
|
+
const de_EventBridgeConfiguration = (output, context) => {
|
|
2623
2615
|
return {
|
|
2624
2616
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
2625
|
-
includedData: output.includedData != null ?
|
|
2617
|
+
includedData: output.includedData != null ? de_EventIncludedData(output.includedData, context) : undefined,
|
|
2626
2618
|
};
|
|
2627
2619
|
};
|
|
2628
|
-
const
|
|
2620
|
+
const de_EventIncludedData = (output, context) => {
|
|
2629
2621
|
return {
|
|
2630
|
-
caseData: output.caseData != null ?
|
|
2631
|
-
relatedItemData: output.relatedItemData != null
|
|
2632
|
-
? deserializeAws_restJson1RelatedItemEventIncludedData(output.relatedItemData, context)
|
|
2633
|
-
: undefined,
|
|
2622
|
+
caseData: output.caseData != null ? de_CaseEventIncludedData(output.caseData, context) : undefined,
|
|
2623
|
+
relatedItemData: output.relatedItemData != null ? de_RelatedItemEventIncludedData(output.relatedItemData, context) : undefined,
|
|
2634
2624
|
};
|
|
2635
2625
|
};
|
|
2636
|
-
const
|
|
2626
|
+
const de_FieldError = (output, context) => {
|
|
2637
2627
|
return {
|
|
2638
2628
|
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
2639
2629
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2640
2630
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2641
2631
|
};
|
|
2642
2632
|
};
|
|
2643
|
-
const
|
|
2633
|
+
const de_FieldGroup = (output, context) => {
|
|
2644
2634
|
return {
|
|
2645
|
-
fields: output.fields != null ?
|
|
2635
|
+
fields: output.fields != null ? de_FieldList(output.fields, context) : undefined,
|
|
2646
2636
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2647
2637
|
};
|
|
2648
2638
|
};
|
|
2649
|
-
const
|
|
2639
|
+
const de_FieldIdentifier = (output, context) => {
|
|
2650
2640
|
return {
|
|
2651
2641
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2652
2642
|
};
|
|
2653
2643
|
};
|
|
2654
|
-
const
|
|
2644
|
+
const de_FieldIdentifierList = (output, context) => {
|
|
2655
2645
|
const retVal = (output || [])
|
|
2656
2646
|
.filter((e) => e != null)
|
|
2657
2647
|
.map((entry) => {
|
|
2658
2648
|
if (entry === null) {
|
|
2659
2649
|
return null;
|
|
2660
2650
|
}
|
|
2661
|
-
return
|
|
2651
|
+
return de_FieldIdentifier(entry, context);
|
|
2662
2652
|
});
|
|
2663
2653
|
return retVal;
|
|
2664
2654
|
};
|
|
2665
|
-
const
|
|
2655
|
+
const de_FieldItem = (output, context) => {
|
|
2666
2656
|
return {
|
|
2667
2657
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2668
2658
|
};
|
|
2669
2659
|
};
|
|
2670
|
-
const
|
|
2660
|
+
const de_FieldList = (output, context) => {
|
|
2671
2661
|
const retVal = (output || [])
|
|
2672
2662
|
.filter((e) => e != null)
|
|
2673
2663
|
.map((entry) => {
|
|
2674
2664
|
if (entry === null) {
|
|
2675
2665
|
return null;
|
|
2676
2666
|
}
|
|
2677
|
-
return
|
|
2667
|
+
return de_FieldItem(entry, context);
|
|
2678
2668
|
});
|
|
2679
2669
|
return retVal;
|
|
2680
2670
|
};
|
|
2681
|
-
const
|
|
2671
|
+
const de_FieldOption = (output, context) => {
|
|
2682
2672
|
return {
|
|
2683
2673
|
active: (0, smithy_client_1.expectBoolean)(output.active),
|
|
2684
2674
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2685
2675
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
2686
2676
|
};
|
|
2687
2677
|
};
|
|
2688
|
-
const
|
|
2678
|
+
const de_FieldOptionError = (output, context) => {
|
|
2689
2679
|
return {
|
|
2690
2680
|
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
2691
2681
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2692
2682
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
2693
2683
|
};
|
|
2694
2684
|
};
|
|
2695
|
-
const
|
|
2685
|
+
const de_FieldOptionErrorList = (output, context) => {
|
|
2696
2686
|
const retVal = (output || [])
|
|
2697
2687
|
.filter((e) => e != null)
|
|
2698
2688
|
.map((entry) => {
|
|
2699
2689
|
if (entry === null) {
|
|
2700
2690
|
return null;
|
|
2701
2691
|
}
|
|
2702
|
-
return
|
|
2692
|
+
return de_FieldOptionError(entry, context);
|
|
2703
2693
|
});
|
|
2704
2694
|
return retVal;
|
|
2705
2695
|
};
|
|
2706
|
-
const
|
|
2696
|
+
const de_FieldOptionsList = (output, context) => {
|
|
2707
2697
|
const retVal = (output || [])
|
|
2708
2698
|
.filter((e) => e != null)
|
|
2709
2699
|
.map((entry) => {
|
|
2710
2700
|
if (entry === null) {
|
|
2711
2701
|
return null;
|
|
2712
2702
|
}
|
|
2713
|
-
return
|
|
2703
|
+
return de_FieldOption(entry, context);
|
|
2714
2704
|
});
|
|
2715
2705
|
return retVal;
|
|
2716
2706
|
};
|
|
2717
|
-
const
|
|
2707
|
+
const de_FieldSummary = (output, context) => {
|
|
2718
2708
|
return {
|
|
2719
2709
|
fieldArn: (0, smithy_client_1.expectString)(output.fieldArn),
|
|
2720
2710
|
fieldId: (0, smithy_client_1.expectString)(output.fieldId),
|
|
@@ -2723,35 +2713,35 @@ const deserializeAws_restJson1FieldSummary = (output, context) => {
|
|
|
2723
2713
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2724
2714
|
};
|
|
2725
2715
|
};
|
|
2726
|
-
const
|
|
2716
|
+
const de_FieldSummaryList = (output, context) => {
|
|
2727
2717
|
const retVal = (output || [])
|
|
2728
2718
|
.filter((e) => e != null)
|
|
2729
2719
|
.map((entry) => {
|
|
2730
2720
|
if (entry === null) {
|
|
2731
2721
|
return null;
|
|
2732
2722
|
}
|
|
2733
|
-
return
|
|
2723
|
+
return de_FieldSummary(entry, context);
|
|
2734
2724
|
});
|
|
2735
2725
|
return retVal;
|
|
2736
2726
|
};
|
|
2737
|
-
const
|
|
2727
|
+
const de_FieldValue = (output, context) => {
|
|
2738
2728
|
return {
|
|
2739
2729
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2740
|
-
value: output.value != null ?
|
|
2730
|
+
value: output.value != null ? de_FieldValueUnion((0, smithy_client_1.expectUnion)(output.value), context) : undefined,
|
|
2741
2731
|
};
|
|
2742
2732
|
};
|
|
2743
|
-
const
|
|
2733
|
+
const de_FieldValueList = (output, context) => {
|
|
2744
2734
|
const retVal = (output || [])
|
|
2745
2735
|
.filter((e) => e != null)
|
|
2746
2736
|
.map((entry) => {
|
|
2747
2737
|
if (entry === null) {
|
|
2748
2738
|
return null;
|
|
2749
2739
|
}
|
|
2750
|
-
return
|
|
2740
|
+
return de_FieldValue(entry, context);
|
|
2751
2741
|
});
|
|
2752
2742
|
return retVal;
|
|
2753
2743
|
};
|
|
2754
|
-
const
|
|
2744
|
+
const de_FieldValueUnion = (output, context) => {
|
|
2755
2745
|
if ((0, smithy_client_1.expectBoolean)(output.booleanValue) !== undefined) {
|
|
2756
2746
|
return { booleanValue: (0, smithy_client_1.expectBoolean)(output.booleanValue) };
|
|
2757
2747
|
}
|
|
@@ -2763,146 +2753,144 @@ const deserializeAws_restJson1FieldValueUnion = (output, context) => {
|
|
|
2763
2753
|
}
|
|
2764
2754
|
return { $unknown: Object.entries(output)[0] };
|
|
2765
2755
|
};
|
|
2766
|
-
const
|
|
2756
|
+
const de_GetFieldResponse = (output, context) => {
|
|
2767
2757
|
return {
|
|
2768
2758
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
2769
2759
|
fieldArn: (0, smithy_client_1.expectString)(output.fieldArn),
|
|
2770
2760
|
fieldId: (0, smithy_client_1.expectString)(output.fieldId),
|
|
2771
2761
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2772
2762
|
namespace: (0, smithy_client_1.expectString)(output.namespace),
|
|
2773
|
-
tags: output.tags != null ?
|
|
2763
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2774
2764
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2775
2765
|
};
|
|
2776
2766
|
};
|
|
2777
|
-
const
|
|
2767
|
+
const de_LayoutConfiguration = (output, context) => {
|
|
2778
2768
|
return {
|
|
2779
2769
|
defaultLayout: (0, smithy_client_1.expectString)(output.defaultLayout),
|
|
2780
2770
|
};
|
|
2781
2771
|
};
|
|
2782
|
-
const
|
|
2772
|
+
const de_LayoutContent = (output, context) => {
|
|
2783
2773
|
if (output.basic != null) {
|
|
2784
2774
|
return {
|
|
2785
|
-
basic:
|
|
2775
|
+
basic: de_BasicLayout(output.basic, context),
|
|
2786
2776
|
};
|
|
2787
2777
|
}
|
|
2788
2778
|
return { $unknown: Object.entries(output)[0] };
|
|
2789
2779
|
};
|
|
2790
|
-
const
|
|
2780
|
+
const de_LayoutSections = (output, context) => {
|
|
2791
2781
|
return {
|
|
2792
|
-
sections: output.sections != null ?
|
|
2782
|
+
sections: output.sections != null ? de_SectionsList(output.sections, context) : undefined,
|
|
2793
2783
|
};
|
|
2794
2784
|
};
|
|
2795
|
-
const
|
|
2785
|
+
const de_LayoutSummary = (output, context) => {
|
|
2796
2786
|
return {
|
|
2797
2787
|
layoutArn: (0, smithy_client_1.expectString)(output.layoutArn),
|
|
2798
2788
|
layoutId: (0, smithy_client_1.expectString)(output.layoutId),
|
|
2799
2789
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2800
2790
|
};
|
|
2801
2791
|
};
|
|
2802
|
-
const
|
|
2792
|
+
const de_LayoutSummaryList = (output, context) => {
|
|
2803
2793
|
const retVal = (output || [])
|
|
2804
2794
|
.filter((e) => e != null)
|
|
2805
2795
|
.map((entry) => {
|
|
2806
2796
|
if (entry === null) {
|
|
2807
2797
|
return null;
|
|
2808
2798
|
}
|
|
2809
|
-
return
|
|
2799
|
+
return de_LayoutSummary(entry, context);
|
|
2810
2800
|
});
|
|
2811
2801
|
return retVal;
|
|
2812
2802
|
};
|
|
2813
|
-
const
|
|
2803
|
+
const de_RelatedItemContent = (output, context) => {
|
|
2814
2804
|
if (output.comment != null) {
|
|
2815
2805
|
return {
|
|
2816
|
-
comment:
|
|
2806
|
+
comment: de_CommentContent(output.comment, context),
|
|
2817
2807
|
};
|
|
2818
2808
|
}
|
|
2819
2809
|
if (output.contact != null) {
|
|
2820
2810
|
return {
|
|
2821
|
-
contact:
|
|
2811
|
+
contact: de_ContactContent(output.contact, context),
|
|
2822
2812
|
};
|
|
2823
2813
|
}
|
|
2824
2814
|
return { $unknown: Object.entries(output)[0] };
|
|
2825
2815
|
};
|
|
2826
|
-
const
|
|
2816
|
+
const de_RelatedItemEventIncludedData = (output, context) => {
|
|
2827
2817
|
return {
|
|
2828
2818
|
includeContent: (0, smithy_client_1.expectBoolean)(output.includeContent),
|
|
2829
2819
|
};
|
|
2830
2820
|
};
|
|
2831
|
-
const
|
|
2821
|
+
const de_RequiredField = (output, context) => {
|
|
2832
2822
|
return {
|
|
2833
2823
|
fieldId: (0, smithy_client_1.expectString)(output.fieldId),
|
|
2834
2824
|
};
|
|
2835
2825
|
};
|
|
2836
|
-
const
|
|
2826
|
+
const de_RequiredFieldList = (output, context) => {
|
|
2837
2827
|
const retVal = (output || [])
|
|
2838
2828
|
.filter((e) => e != null)
|
|
2839
2829
|
.map((entry) => {
|
|
2840
2830
|
if (entry === null) {
|
|
2841
2831
|
return null;
|
|
2842
2832
|
}
|
|
2843
|
-
return
|
|
2833
|
+
return de_RequiredField(entry, context);
|
|
2844
2834
|
});
|
|
2845
2835
|
return retVal;
|
|
2846
2836
|
};
|
|
2847
|
-
const
|
|
2837
|
+
const de_SearchCasesResponseItem = (output, context) => {
|
|
2848
2838
|
return {
|
|
2849
2839
|
caseId: (0, smithy_client_1.expectString)(output.caseId),
|
|
2850
|
-
fields: output.fields != null ?
|
|
2851
|
-
tags: output.tags != null ?
|
|
2840
|
+
fields: output.fields != null ? de_FieldValueList(output.fields, context) : undefined,
|
|
2841
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2852
2842
|
templateId: (0, smithy_client_1.expectString)(output.templateId),
|
|
2853
2843
|
};
|
|
2854
2844
|
};
|
|
2855
|
-
const
|
|
2845
|
+
const de_SearchCasesResponseItemList = (output, context) => {
|
|
2856
2846
|
const retVal = (output || []).map((entry) => {
|
|
2857
2847
|
if (entry === null) {
|
|
2858
2848
|
return null;
|
|
2859
2849
|
}
|
|
2860
|
-
return
|
|
2850
|
+
return de_SearchCasesResponseItem(entry, context);
|
|
2861
2851
|
});
|
|
2862
2852
|
return retVal;
|
|
2863
2853
|
};
|
|
2864
|
-
const
|
|
2854
|
+
const de_SearchRelatedItemsResponseItem = (output, context) => {
|
|
2865
2855
|
return {
|
|
2866
2856
|
associationTime: output.associationTime != null
|
|
2867
2857
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.associationTime))
|
|
2868
2858
|
: undefined,
|
|
2869
|
-
content: output.content != null
|
|
2870
|
-
? deserializeAws_restJson1RelatedItemContent((0, smithy_client_1.expectUnion)(output.content), context)
|
|
2871
|
-
: undefined,
|
|
2859
|
+
content: output.content != null ? de_RelatedItemContent((0, smithy_client_1.expectUnion)(output.content), context) : undefined,
|
|
2872
2860
|
relatedItemId: (0, smithy_client_1.expectString)(output.relatedItemId),
|
|
2873
|
-
tags: output.tags != null ?
|
|
2861
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2874
2862
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2875
2863
|
};
|
|
2876
2864
|
};
|
|
2877
|
-
const
|
|
2865
|
+
const de_SearchRelatedItemsResponseItemList = (output, context) => {
|
|
2878
2866
|
const retVal = (output || []).map((entry) => {
|
|
2879
2867
|
if (entry === null) {
|
|
2880
2868
|
return null;
|
|
2881
2869
|
}
|
|
2882
|
-
return
|
|
2870
|
+
return de_SearchRelatedItemsResponseItem(entry, context);
|
|
2883
2871
|
});
|
|
2884
2872
|
return retVal;
|
|
2885
2873
|
};
|
|
2886
|
-
const
|
|
2874
|
+
const de_Section = (output, context) => {
|
|
2887
2875
|
if (output.fieldGroup != null) {
|
|
2888
2876
|
return {
|
|
2889
|
-
fieldGroup:
|
|
2877
|
+
fieldGroup: de_FieldGroup(output.fieldGroup, context),
|
|
2890
2878
|
};
|
|
2891
2879
|
}
|
|
2892
2880
|
return { $unknown: Object.entries(output)[0] };
|
|
2893
2881
|
};
|
|
2894
|
-
const
|
|
2882
|
+
const de_SectionsList = (output, context) => {
|
|
2895
2883
|
const retVal = (output || [])
|
|
2896
2884
|
.filter((e) => e != null)
|
|
2897
2885
|
.map((entry) => {
|
|
2898
2886
|
if (entry === null) {
|
|
2899
2887
|
return null;
|
|
2900
2888
|
}
|
|
2901
|
-
return
|
|
2889
|
+
return de_Section((0, smithy_client_1.expectUnion)(entry), context);
|
|
2902
2890
|
});
|
|
2903
2891
|
return retVal;
|
|
2904
2892
|
};
|
|
2905
|
-
const
|
|
2893
|
+
const de_Tags = (output, context) => {
|
|
2906
2894
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2907
2895
|
if (value === null) {
|
|
2908
2896
|
acc[key] = null;
|
|
@@ -2912,7 +2900,7 @@ const deserializeAws_restJson1Tags = (output, context) => {
|
|
|
2912
2900
|
return acc;
|
|
2913
2901
|
}, {});
|
|
2914
2902
|
};
|
|
2915
|
-
const
|
|
2903
|
+
const de_TemplateSummary = (output, context) => {
|
|
2916
2904
|
return {
|
|
2917
2905
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2918
2906
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
@@ -2920,14 +2908,14 @@ const deserializeAws_restJson1TemplateSummary = (output, context) => {
|
|
|
2920
2908
|
templateId: (0, smithy_client_1.expectString)(output.templateId),
|
|
2921
2909
|
};
|
|
2922
2910
|
};
|
|
2923
|
-
const
|
|
2911
|
+
const de_TemplateSummaryList = (output, context) => {
|
|
2924
2912
|
const retVal = (output || [])
|
|
2925
2913
|
.filter((e) => e != null)
|
|
2926
2914
|
.map((entry) => {
|
|
2927
2915
|
if (entry === null) {
|
|
2928
2916
|
return null;
|
|
2929
2917
|
}
|
|
2930
|
-
return
|
|
2918
|
+
return de_TemplateSummary(entry, context);
|
|
2931
2919
|
});
|
|
2932
2920
|
return retVal;
|
|
2933
2921
|
};
|