@aws-sdk/client-connectcases 3.504.0 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -973,7 +973,7 @@ var se_UpdateTemplateCommand = /* @__PURE__ */ __name(async (input, context) =>
973
973
  }, "se_UpdateTemplateCommand");
974
974
  var de_BatchGetFieldCommand = /* @__PURE__ */ __name(async (output, context) => {
975
975
  if (output.statusCode !== 200 && output.statusCode >= 300) {
976
- return de_BatchGetFieldCommandError(output, context);
976
+ return de_CommandError(output, context);
977
977
  }
978
978
  const contents = (0, import_smithy_client.map)({
979
979
  $metadata: deserializeMetadata(output)
@@ -986,40 +986,9 @@ var de_BatchGetFieldCommand = /* @__PURE__ */ __name(async (output, context) =>
986
986
  Object.assign(contents, doc);
987
987
  return contents;
988
988
  }, "de_BatchGetFieldCommand");
989
- var de_BatchGetFieldCommandError = /* @__PURE__ */ __name(async (output, context) => {
990
- const parsedOutput = {
991
- ...output,
992
- body: await parseErrorBody(output.body, context)
993
- };
994
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
995
- switch (errorCode) {
996
- case "AccessDeniedException":
997
- case "com.amazonaws.connectcases#AccessDeniedException":
998
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
999
- case "InternalServerException":
1000
- case "com.amazonaws.connectcases#InternalServerException":
1001
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1002
- case "ResourceNotFoundException":
1003
- case "com.amazonaws.connectcases#ResourceNotFoundException":
1004
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1005
- case "ThrottlingException":
1006
- case "com.amazonaws.connectcases#ThrottlingException":
1007
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1008
- case "ValidationException":
1009
- case "com.amazonaws.connectcases#ValidationException":
1010
- throw await de_ValidationExceptionRes(parsedOutput, context);
1011
- default:
1012
- const parsedBody = parsedOutput.body;
1013
- return throwDefaultError({
1014
- output,
1015
- parsedBody,
1016
- errorCode
1017
- });
1018
- }
1019
- }, "de_BatchGetFieldCommandError");
1020
989
  var de_BatchPutFieldOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1021
990
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1022
- return de_BatchPutFieldOptionsCommandError(output, context);
991
+ return de_CommandError(output, context);
1023
992
  }
1024
993
  const contents = (0, import_smithy_client.map)({
1025
994
  $metadata: deserializeMetadata(output)
@@ -1031,43 +1000,9 @@ var de_BatchPutFieldOptionsCommand = /* @__PURE__ */ __name(async (output, conte
1031
1000
  Object.assign(contents, doc);
1032
1001
  return contents;
1033
1002
  }, "de_BatchPutFieldOptionsCommand");
1034
- var de_BatchPutFieldOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1035
- const parsedOutput = {
1036
- ...output,
1037
- body: await parseErrorBody(output.body, context)
1038
- };
1039
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1040
- switch (errorCode) {
1041
- case "AccessDeniedException":
1042
- case "com.amazonaws.connectcases#AccessDeniedException":
1043
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1044
- case "InternalServerException":
1045
- case "com.amazonaws.connectcases#InternalServerException":
1046
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1047
- case "ResourceNotFoundException":
1048
- case "com.amazonaws.connectcases#ResourceNotFoundException":
1049
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1050
- case "ServiceQuotaExceededException":
1051
- case "com.amazonaws.connectcases#ServiceQuotaExceededException":
1052
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1053
- case "ThrottlingException":
1054
- case "com.amazonaws.connectcases#ThrottlingException":
1055
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1056
- case "ValidationException":
1057
- case "com.amazonaws.connectcases#ValidationException":
1058
- throw await de_ValidationExceptionRes(parsedOutput, context);
1059
- default:
1060
- const parsedBody = parsedOutput.body;
1061
- return throwDefaultError({
1062
- output,
1063
- parsedBody,
1064
- errorCode
1065
- });
1066
- }
1067
- }, "de_BatchPutFieldOptionsCommandError");
1068
1003
  var de_CreateCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
1069
1004
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1070
- return de_CreateCaseCommandError(output, context);
1005
+ return de_CommandError(output, context);
1071
1006
  }
1072
1007
  const contents = (0, import_smithy_client.map)({
1073
1008
  $metadata: deserializeMetadata(output)
@@ -1080,43 +1015,9 @@ var de_CreateCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
1080
1015
  Object.assign(contents, doc);
1081
1016
  return contents;
1082
1017
  }, "de_CreateCaseCommand");
1083
- var de_CreateCaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
1084
- const parsedOutput = {
1085
- ...output,
1086
- body: await parseErrorBody(output.body, context)
1087
- };
1088
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1089
- switch (errorCode) {
1090
- case "AccessDeniedException":
1091
- case "com.amazonaws.connectcases#AccessDeniedException":
1092
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1093
- case "ConflictException":
1094
- case "com.amazonaws.connectcases#ConflictException":
1095
- throw await de_ConflictExceptionRes(parsedOutput, context);
1096
- case "InternalServerException":
1097
- case "com.amazonaws.connectcases#InternalServerException":
1098
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1099
- case "ResourceNotFoundException":
1100
- case "com.amazonaws.connectcases#ResourceNotFoundException":
1101
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1102
- case "ThrottlingException":
1103
- case "com.amazonaws.connectcases#ThrottlingException":
1104
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1105
- case "ValidationException":
1106
- case "com.amazonaws.connectcases#ValidationException":
1107
- throw await de_ValidationExceptionRes(parsedOutput, context);
1108
- default:
1109
- const parsedBody = parsedOutput.body;
1110
- return throwDefaultError({
1111
- output,
1112
- parsedBody,
1113
- errorCode
1114
- });
1115
- }
1116
- }, "de_CreateCaseCommandError");
1117
1018
  var de_CreateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
1118
1019
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1119
- return de_CreateDomainCommandError(output, context);
1020
+ return de_CommandError(output, context);
1120
1021
  }
1121
1022
  const contents = (0, import_smithy_client.map)({
1122
1023
  $metadata: deserializeMetadata(output)
@@ -1130,43 +1031,9 @@ var de_CreateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
1130
1031
  Object.assign(contents, doc);
1131
1032
  return contents;
1132
1033
  }, "de_CreateDomainCommand");
1133
- var de_CreateDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
1134
- const parsedOutput = {
1135
- ...output,
1136
- body: await parseErrorBody(output.body, context)
1137
- };
1138
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1139
- switch (errorCode) {
1140
- case "AccessDeniedException":
1141
- case "com.amazonaws.connectcases#AccessDeniedException":
1142
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1143
- case "ConflictException":
1144
- case "com.amazonaws.connectcases#ConflictException":
1145
- throw await de_ConflictExceptionRes(parsedOutput, context);
1146
- case "InternalServerException":
1147
- case "com.amazonaws.connectcases#InternalServerException":
1148
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1149
- case "ServiceQuotaExceededException":
1150
- case "com.amazonaws.connectcases#ServiceQuotaExceededException":
1151
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1152
- case "ThrottlingException":
1153
- case "com.amazonaws.connectcases#ThrottlingException":
1154
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1155
- case "ValidationException":
1156
- case "com.amazonaws.connectcases#ValidationException":
1157
- throw await de_ValidationExceptionRes(parsedOutput, context);
1158
- default:
1159
- const parsedBody = parsedOutput.body;
1160
- return throwDefaultError({
1161
- output,
1162
- parsedBody,
1163
- errorCode
1164
- });
1165
- }
1166
- }, "de_CreateDomainCommandError");
1167
1034
  var de_CreateFieldCommand = /* @__PURE__ */ __name(async (output, context) => {
1168
1035
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1169
- return de_CreateFieldCommandError(output, context);
1036
+ return de_CommandError(output, context);
1170
1037
  }
1171
1038
  const contents = (0, import_smithy_client.map)({
1172
1039
  $metadata: deserializeMetadata(output)
@@ -1179,46 +1046,9 @@ var de_CreateFieldCommand = /* @__PURE__ */ __name(async (output, context) => {
1179
1046
  Object.assign(contents, doc);
1180
1047
  return contents;
1181
1048
  }, "de_CreateFieldCommand");
1182
- var de_CreateFieldCommandError = /* @__PURE__ */ __name(async (output, context) => {
1183
- const parsedOutput = {
1184
- ...output,
1185
- body: await parseErrorBody(output.body, context)
1186
- };
1187
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1188
- switch (errorCode) {
1189
- case "AccessDeniedException":
1190
- case "com.amazonaws.connectcases#AccessDeniedException":
1191
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1192
- case "ConflictException":
1193
- case "com.amazonaws.connectcases#ConflictException":
1194
- throw await de_ConflictExceptionRes(parsedOutput, context);
1195
- case "InternalServerException":
1196
- case "com.amazonaws.connectcases#InternalServerException":
1197
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1198
- case "ResourceNotFoundException":
1199
- case "com.amazonaws.connectcases#ResourceNotFoundException":
1200
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1201
- case "ServiceQuotaExceededException":
1202
- case "com.amazonaws.connectcases#ServiceQuotaExceededException":
1203
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1204
- case "ThrottlingException":
1205
- case "com.amazonaws.connectcases#ThrottlingException":
1206
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1207
- case "ValidationException":
1208
- case "com.amazonaws.connectcases#ValidationException":
1209
- throw await de_ValidationExceptionRes(parsedOutput, context);
1210
- default:
1211
- const parsedBody = parsedOutput.body;
1212
- return throwDefaultError({
1213
- output,
1214
- parsedBody,
1215
- errorCode
1216
- });
1217
- }
1218
- }, "de_CreateFieldCommandError");
1219
1049
  var de_CreateLayoutCommand = /* @__PURE__ */ __name(async (output, context) => {
1220
1050
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1221
- return de_CreateLayoutCommandError(output, context);
1051
+ return de_CommandError(output, context);
1222
1052
  }
1223
1053
  const contents = (0, import_smithy_client.map)({
1224
1054
  $metadata: deserializeMetadata(output)
@@ -1231,46 +1061,9 @@ var de_CreateLayoutCommand = /* @__PURE__ */ __name(async (output, context) => {
1231
1061
  Object.assign(contents, doc);
1232
1062
  return contents;
1233
1063
  }, "de_CreateLayoutCommand");
1234
- var de_CreateLayoutCommandError = /* @__PURE__ */ __name(async (output, context) => {
1235
- const parsedOutput = {
1236
- ...output,
1237
- body: await parseErrorBody(output.body, context)
1238
- };
1239
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1240
- switch (errorCode) {
1241
- case "AccessDeniedException":
1242
- case "com.amazonaws.connectcases#AccessDeniedException":
1243
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1244
- case "ConflictException":
1245
- case "com.amazonaws.connectcases#ConflictException":
1246
- throw await de_ConflictExceptionRes(parsedOutput, context);
1247
- case "InternalServerException":
1248
- case "com.amazonaws.connectcases#InternalServerException":
1249
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1250
- case "ResourceNotFoundException":
1251
- case "com.amazonaws.connectcases#ResourceNotFoundException":
1252
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1253
- case "ServiceQuotaExceededException":
1254
- case "com.amazonaws.connectcases#ServiceQuotaExceededException":
1255
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1256
- case "ThrottlingException":
1257
- case "com.amazonaws.connectcases#ThrottlingException":
1258
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1259
- case "ValidationException":
1260
- case "com.amazonaws.connectcases#ValidationException":
1261
- throw await de_ValidationExceptionRes(parsedOutput, context);
1262
- default:
1263
- const parsedBody = parsedOutput.body;
1264
- return throwDefaultError({
1265
- output,
1266
- parsedBody,
1267
- errorCode
1268
- });
1269
- }
1270
- }, "de_CreateLayoutCommandError");
1271
1064
  var de_CreateRelatedItemCommand = /* @__PURE__ */ __name(async (output, context) => {
1272
1065
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1273
- return de_CreateRelatedItemCommandError(output, context);
1066
+ return de_CommandError(output, context);
1274
1067
  }
1275
1068
  const contents = (0, import_smithy_client.map)({
1276
1069
  $metadata: deserializeMetadata(output)
@@ -1283,43 +1076,9 @@ var de_CreateRelatedItemCommand = /* @__PURE__ */ __name(async (output, context)
1283
1076
  Object.assign(contents, doc);
1284
1077
  return contents;
1285
1078
  }, "de_CreateRelatedItemCommand");
1286
- var de_CreateRelatedItemCommandError = /* @__PURE__ */ __name(async (output, context) => {
1287
- const parsedOutput = {
1288
- ...output,
1289
- body: await parseErrorBody(output.body, context)
1290
- };
1291
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1292
- switch (errorCode) {
1293
- case "AccessDeniedException":
1294
- case "com.amazonaws.connectcases#AccessDeniedException":
1295
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1296
- case "InternalServerException":
1297
- case "com.amazonaws.connectcases#InternalServerException":
1298
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1299
- case "ResourceNotFoundException":
1300
- case "com.amazonaws.connectcases#ResourceNotFoundException":
1301
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1302
- case "ServiceQuotaExceededException":
1303
- case "com.amazonaws.connectcases#ServiceQuotaExceededException":
1304
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1305
- case "ThrottlingException":
1306
- case "com.amazonaws.connectcases#ThrottlingException":
1307
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1308
- case "ValidationException":
1309
- case "com.amazonaws.connectcases#ValidationException":
1310
- throw await de_ValidationExceptionRes(parsedOutput, context);
1311
- default:
1312
- const parsedBody = parsedOutput.body;
1313
- return throwDefaultError({
1314
- output,
1315
- parsedBody,
1316
- errorCode
1317
- });
1318
- }
1319
- }, "de_CreateRelatedItemCommandError");
1320
1079
  var de_CreateTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1321
1080
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1322
- return de_CreateTemplateCommandError(output, context);
1081
+ return de_CommandError(output, context);
1323
1082
  }
1324
1083
  const contents = (0, import_smithy_client.map)({
1325
1084
  $metadata: deserializeMetadata(output)
@@ -1332,46 +1091,9 @@ var de_CreateTemplateCommand = /* @__PURE__ */ __name(async (output, context) =>
1332
1091
  Object.assign(contents, doc);
1333
1092
  return contents;
1334
1093
  }, "de_CreateTemplateCommand");
1335
- var de_CreateTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1336
- const parsedOutput = {
1337
- ...output,
1338
- body: await parseErrorBody(output.body, context)
1339
- };
1340
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1341
- switch (errorCode) {
1342
- case "AccessDeniedException":
1343
- case "com.amazonaws.connectcases#AccessDeniedException":
1344
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1345
- case "ConflictException":
1346
- case "com.amazonaws.connectcases#ConflictException":
1347
- throw await de_ConflictExceptionRes(parsedOutput, context);
1348
- case "InternalServerException":
1349
- case "com.amazonaws.connectcases#InternalServerException":
1350
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1351
- case "ResourceNotFoundException":
1352
- case "com.amazonaws.connectcases#ResourceNotFoundException":
1353
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1354
- case "ServiceQuotaExceededException":
1355
- case "com.amazonaws.connectcases#ServiceQuotaExceededException":
1356
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1357
- case "ThrottlingException":
1358
- case "com.amazonaws.connectcases#ThrottlingException":
1359
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1360
- case "ValidationException":
1361
- case "com.amazonaws.connectcases#ValidationException":
1362
- throw await de_ValidationExceptionRes(parsedOutput, context);
1363
- default:
1364
- const parsedBody = parsedOutput.body;
1365
- return throwDefaultError({
1366
- output,
1367
- parsedBody,
1368
- errorCode
1369
- });
1370
- }
1371
- }, "de_CreateTemplateCommandError");
1372
1094
  var de_DeleteDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
1373
1095
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1374
- return de_DeleteDomainCommandError(output, context);
1096
+ return de_CommandError(output, context);
1375
1097
  }
1376
1098
  const contents = (0, import_smithy_client.map)({
1377
1099
  $metadata: deserializeMetadata(output)
@@ -1379,43 +1101,9 @@ var de_DeleteDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
1379
1101
  await (0, import_smithy_client.collectBody)(output.body, context);
1380
1102
  return contents;
1381
1103
  }, "de_DeleteDomainCommand");
1382
- var de_DeleteDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
1383
- const parsedOutput = {
1384
- ...output,
1385
- body: await parseErrorBody(output.body, context)
1386
- };
1387
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1388
- switch (errorCode) {
1389
- case "AccessDeniedException":
1390
- case "com.amazonaws.connectcases#AccessDeniedException":
1391
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1392
- case "ConflictException":
1393
- case "com.amazonaws.connectcases#ConflictException":
1394
- throw await de_ConflictExceptionRes(parsedOutput, context);
1395
- case "InternalServerException":
1396
- case "com.amazonaws.connectcases#InternalServerException":
1397
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1398
- case "ResourceNotFoundException":
1399
- case "com.amazonaws.connectcases#ResourceNotFoundException":
1400
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1401
- case "ThrottlingException":
1402
- case "com.amazonaws.connectcases#ThrottlingException":
1403
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1404
- case "ValidationException":
1405
- case "com.amazonaws.connectcases#ValidationException":
1406
- throw await de_ValidationExceptionRes(parsedOutput, context);
1407
- default:
1408
- const parsedBody = parsedOutput.body;
1409
- return throwDefaultError({
1410
- output,
1411
- parsedBody,
1412
- errorCode
1413
- });
1414
- }
1415
- }, "de_DeleteDomainCommandError");
1416
1104
  var de_GetCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
1417
1105
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1418
- return de_GetCaseCommandError(output, context);
1106
+ return de_CommandError(output, context);
1419
1107
  }
1420
1108
  const contents = (0, import_smithy_client.map)({
1421
1109
  $metadata: deserializeMetadata(output)
@@ -1430,40 +1118,9 @@ var de_GetCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
1430
1118
  Object.assign(contents, doc);
1431
1119
  return contents;
1432
1120
  }, "de_GetCaseCommand");
1433
- var de_GetCaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
1434
- const parsedOutput = {
1435
- ...output,
1436
- body: await parseErrorBody(output.body, context)
1437
- };
1438
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1439
- switch (errorCode) {
1440
- case "AccessDeniedException":
1441
- case "com.amazonaws.connectcases#AccessDeniedException":
1442
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1443
- case "InternalServerException":
1444
- case "com.amazonaws.connectcases#InternalServerException":
1445
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1446
- case "ResourceNotFoundException":
1447
- case "com.amazonaws.connectcases#ResourceNotFoundException":
1448
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1449
- case "ThrottlingException":
1450
- case "com.amazonaws.connectcases#ThrottlingException":
1451
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1452
- case "ValidationException":
1453
- case "com.amazonaws.connectcases#ValidationException":
1454
- throw await de_ValidationExceptionRes(parsedOutput, context);
1455
- default:
1456
- const parsedBody = parsedOutput.body;
1457
- return throwDefaultError({
1458
- output,
1459
- parsedBody,
1460
- errorCode
1461
- });
1462
- }
1463
- }, "de_GetCaseCommandError");
1464
1121
  var de_GetCaseAuditEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
1465
1122
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1466
- return de_GetCaseAuditEventsCommandError(output, context);
1123
+ return de_CommandError(output, context);
1467
1124
  }
1468
1125
  const contents = (0, import_smithy_client.map)({
1469
1126
  $metadata: deserializeMetadata(output)
@@ -1476,40 +1133,9 @@ var de_GetCaseAuditEventsCommand = /* @__PURE__ */ __name(async (output, context
1476
1133
  Object.assign(contents, doc);
1477
1134
  return contents;
1478
1135
  }, "de_GetCaseAuditEventsCommand");
1479
- var de_GetCaseAuditEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1480
- const parsedOutput = {
1481
- ...output,
1482
- body: await parseErrorBody(output.body, context)
1483
- };
1484
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1485
- switch (errorCode) {
1486
- case "AccessDeniedException":
1487
- case "com.amazonaws.connectcases#AccessDeniedException":
1488
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1489
- case "InternalServerException":
1490
- case "com.amazonaws.connectcases#InternalServerException":
1491
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1492
- case "ResourceNotFoundException":
1493
- case "com.amazonaws.connectcases#ResourceNotFoundException":
1494
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1495
- case "ThrottlingException":
1496
- case "com.amazonaws.connectcases#ThrottlingException":
1497
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1498
- case "ValidationException":
1499
- case "com.amazonaws.connectcases#ValidationException":
1500
- throw await de_ValidationExceptionRes(parsedOutput, context);
1501
- default:
1502
- const parsedBody = parsedOutput.body;
1503
- return throwDefaultError({
1504
- output,
1505
- parsedBody,
1506
- errorCode
1507
- });
1508
- }
1509
- }, "de_GetCaseAuditEventsCommandError");
1510
1136
  var de_GetCaseEventConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1511
1137
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1512
- return de_GetCaseEventConfigurationCommandError(output, context);
1138
+ return de_CommandError(output, context);
1513
1139
  }
1514
1140
  const contents = (0, import_smithy_client.map)({
1515
1141
  $metadata: deserializeMetadata(output)
@@ -1521,40 +1147,9 @@ var de_GetCaseEventConfigurationCommand = /* @__PURE__ */ __name(async (output,
1521
1147
  Object.assign(contents, doc);
1522
1148
  return contents;
1523
1149
  }, "de_GetCaseEventConfigurationCommand");
1524
- var de_GetCaseEventConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1525
- const parsedOutput = {
1526
- ...output,
1527
- body: await parseErrorBody(output.body, context)
1528
- };
1529
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1530
- switch (errorCode) {
1531
- case "AccessDeniedException":
1532
- case "com.amazonaws.connectcases#AccessDeniedException":
1533
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1534
- case "InternalServerException":
1535
- case "com.amazonaws.connectcases#InternalServerException":
1536
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1537
- case "ResourceNotFoundException":
1538
- case "com.amazonaws.connectcases#ResourceNotFoundException":
1539
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1540
- case "ThrottlingException":
1541
- case "com.amazonaws.connectcases#ThrottlingException":
1542
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1543
- case "ValidationException":
1544
- case "com.amazonaws.connectcases#ValidationException":
1545
- throw await de_ValidationExceptionRes(parsedOutput, context);
1546
- default:
1547
- const parsedBody = parsedOutput.body;
1548
- return throwDefaultError({
1549
- output,
1550
- parsedBody,
1551
- errorCode
1552
- });
1553
- }
1554
- }, "de_GetCaseEventConfigurationCommandError");
1555
1150
  var de_GetDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
1556
1151
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1557
- return de_GetDomainCommandError(output, context);
1152
+ return de_CommandError(output, context);
1558
1153
  }
1559
1154
  const contents = (0, import_smithy_client.map)({
1560
1155
  $metadata: deserializeMetadata(output)
@@ -1566,94 +1161,32 @@ var de_GetDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
1566
1161
  domainId: import_smithy_client.expectString,
1567
1162
  domainStatus: import_smithy_client.expectString,
1568
1163
  name: import_smithy_client.expectString,
1569
- tags: (_) => de_Tags(_, context)
1570
- });
1571
- Object.assign(contents, doc);
1572
- return contents;
1573
- }, "de_GetDomainCommand");
1574
- var de_GetDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
1575
- const parsedOutput = {
1576
- ...output,
1577
- body: await parseErrorBody(output.body, context)
1578
- };
1579
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1580
- switch (errorCode) {
1581
- case "AccessDeniedException":
1582
- case "com.amazonaws.connectcases#AccessDeniedException":
1583
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1584
- case "InternalServerException":
1585
- case "com.amazonaws.connectcases#InternalServerException":
1586
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1587
- case "ResourceNotFoundException":
1588
- case "com.amazonaws.connectcases#ResourceNotFoundException":
1589
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1590
- case "ThrottlingException":
1591
- case "com.amazonaws.connectcases#ThrottlingException":
1592
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1593
- case "ValidationException":
1594
- case "com.amazonaws.connectcases#ValidationException":
1595
- throw await de_ValidationExceptionRes(parsedOutput, context);
1596
- default:
1597
- const parsedBody = parsedOutput.body;
1598
- return throwDefaultError({
1599
- output,
1600
- parsedBody,
1601
- errorCode
1602
- });
1603
- }
1604
- }, "de_GetDomainCommandError");
1605
- var de_GetLayoutCommand = /* @__PURE__ */ __name(async (output, context) => {
1606
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1607
- return de_GetLayoutCommandError(output, context);
1608
- }
1609
- const contents = (0, import_smithy_client.map)({
1610
- $metadata: deserializeMetadata(output)
1611
- });
1612
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1613
- const doc = (0, import_smithy_client.take)(data, {
1614
- content: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
1615
- layoutArn: import_smithy_client.expectString,
1616
- layoutId: import_smithy_client.expectString,
1617
- name: import_smithy_client.expectString,
1618
- tags: (_) => de_Tags(_, context)
1619
- });
1620
- Object.assign(contents, doc);
1621
- return contents;
1622
- }, "de_GetLayoutCommand");
1623
- var de_GetLayoutCommandError = /* @__PURE__ */ __name(async (output, context) => {
1624
- const parsedOutput = {
1625
- ...output,
1626
- body: await parseErrorBody(output.body, context)
1627
- };
1628
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1629
- switch (errorCode) {
1630
- case "AccessDeniedException":
1631
- case "com.amazonaws.connectcases#AccessDeniedException":
1632
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1633
- case "InternalServerException":
1634
- case "com.amazonaws.connectcases#InternalServerException":
1635
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1636
- case "ResourceNotFoundException":
1637
- case "com.amazonaws.connectcases#ResourceNotFoundException":
1638
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1639
- case "ThrottlingException":
1640
- case "com.amazonaws.connectcases#ThrottlingException":
1641
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1642
- case "ValidationException":
1643
- case "com.amazonaws.connectcases#ValidationException":
1644
- throw await de_ValidationExceptionRes(parsedOutput, context);
1645
- default:
1646
- const parsedBody = parsedOutput.body;
1647
- return throwDefaultError({
1648
- output,
1649
- parsedBody,
1650
- errorCode
1651
- });
1164
+ tags: (_) => de_Tags(_, context)
1165
+ });
1166
+ Object.assign(contents, doc);
1167
+ return contents;
1168
+ }, "de_GetDomainCommand");
1169
+ var de_GetLayoutCommand = /* @__PURE__ */ __name(async (output, context) => {
1170
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1171
+ return de_CommandError(output, context);
1652
1172
  }
1653
- }, "de_GetLayoutCommandError");
1173
+ const contents = (0, import_smithy_client.map)({
1174
+ $metadata: deserializeMetadata(output)
1175
+ });
1176
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1177
+ const doc = (0, import_smithy_client.take)(data, {
1178
+ content: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
1179
+ layoutArn: import_smithy_client.expectString,
1180
+ layoutId: import_smithy_client.expectString,
1181
+ name: import_smithy_client.expectString,
1182
+ tags: (_) => de_Tags(_, context)
1183
+ });
1184
+ Object.assign(contents, doc);
1185
+ return contents;
1186
+ }, "de_GetLayoutCommand");
1654
1187
  var de_GetTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1655
1188
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1656
- return de_GetTemplateCommandError(output, context);
1189
+ return de_CommandError(output, context);
1657
1190
  }
1658
1191
  const contents = (0, import_smithy_client.map)({
1659
1192
  $metadata: deserializeMetadata(output)
@@ -1672,40 +1205,9 @@ var de_GetTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1672
1205
  Object.assign(contents, doc);
1673
1206
  return contents;
1674
1207
  }, "de_GetTemplateCommand");
1675
- var de_GetTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1676
- const parsedOutput = {
1677
- ...output,
1678
- body: await parseErrorBody(output.body, context)
1679
- };
1680
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1681
- switch (errorCode) {
1682
- case "AccessDeniedException":
1683
- case "com.amazonaws.connectcases#AccessDeniedException":
1684
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1685
- case "InternalServerException":
1686
- case "com.amazonaws.connectcases#InternalServerException":
1687
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1688
- case "ResourceNotFoundException":
1689
- case "com.amazonaws.connectcases#ResourceNotFoundException":
1690
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1691
- case "ThrottlingException":
1692
- case "com.amazonaws.connectcases#ThrottlingException":
1693
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1694
- case "ValidationException":
1695
- case "com.amazonaws.connectcases#ValidationException":
1696
- throw await de_ValidationExceptionRes(parsedOutput, context);
1697
- default:
1698
- const parsedBody = parsedOutput.body;
1699
- return throwDefaultError({
1700
- output,
1701
- parsedBody,
1702
- errorCode
1703
- });
1704
- }
1705
- }, "de_GetTemplateCommandError");
1706
1208
  var de_ListCasesForContactCommand = /* @__PURE__ */ __name(async (output, context) => {
1707
1209
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1708
- return de_ListCasesForContactCommandError(output, context);
1210
+ return de_CommandError(output, context);
1709
1211
  }
1710
1212
  const contents = (0, import_smithy_client.map)({
1711
1213
  $metadata: deserializeMetadata(output)
@@ -1718,40 +1220,9 @@ var de_ListCasesForContactCommand = /* @__PURE__ */ __name(async (output, contex
1718
1220
  Object.assign(contents, doc);
1719
1221
  return contents;
1720
1222
  }, "de_ListCasesForContactCommand");
1721
- var de_ListCasesForContactCommandError = /* @__PURE__ */ __name(async (output, context) => {
1722
- const parsedOutput = {
1723
- ...output,
1724
- body: await parseErrorBody(output.body, context)
1725
- };
1726
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1727
- switch (errorCode) {
1728
- case "AccessDeniedException":
1729
- case "com.amazonaws.connectcases#AccessDeniedException":
1730
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1731
- case "InternalServerException":
1732
- case "com.amazonaws.connectcases#InternalServerException":
1733
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1734
- case "ResourceNotFoundException":
1735
- case "com.amazonaws.connectcases#ResourceNotFoundException":
1736
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1737
- case "ThrottlingException":
1738
- case "com.amazonaws.connectcases#ThrottlingException":
1739
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1740
- case "ValidationException":
1741
- case "com.amazonaws.connectcases#ValidationException":
1742
- throw await de_ValidationExceptionRes(parsedOutput, context);
1743
- default:
1744
- const parsedBody = parsedOutput.body;
1745
- return throwDefaultError({
1746
- output,
1747
- parsedBody,
1748
- errorCode
1749
- });
1750
- }
1751
- }, "de_ListCasesForContactCommandError");
1752
1223
  var de_ListDomainsCommand = /* @__PURE__ */ __name(async (output, context) => {
1753
1224
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1754
- return de_ListDomainsCommandError(output, context);
1225
+ return de_CommandError(output, context);
1755
1226
  }
1756
1227
  const contents = (0, import_smithy_client.map)({
1757
1228
  $metadata: deserializeMetadata(output)
@@ -1764,37 +1235,9 @@ var de_ListDomainsCommand = /* @__PURE__ */ __name(async (output, context) => {
1764
1235
  Object.assign(contents, doc);
1765
1236
  return contents;
1766
1237
  }, "de_ListDomainsCommand");
1767
- var de_ListDomainsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1768
- const parsedOutput = {
1769
- ...output,
1770
- body: await parseErrorBody(output.body, context)
1771
- };
1772
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1773
- switch (errorCode) {
1774
- case "AccessDeniedException":
1775
- case "com.amazonaws.connectcases#AccessDeniedException":
1776
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1777
- case "InternalServerException":
1778
- case "com.amazonaws.connectcases#InternalServerException":
1779
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1780
- case "ThrottlingException":
1781
- case "com.amazonaws.connectcases#ThrottlingException":
1782
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1783
- case "ValidationException":
1784
- case "com.amazonaws.connectcases#ValidationException":
1785
- throw await de_ValidationExceptionRes(parsedOutput, context);
1786
- default:
1787
- const parsedBody = parsedOutput.body;
1788
- return throwDefaultError({
1789
- output,
1790
- parsedBody,
1791
- errorCode
1792
- });
1793
- }
1794
- }, "de_ListDomainsCommandError");
1795
1238
  var de_ListFieldOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1796
1239
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1797
- return de_ListFieldOptionsCommandError(output, context);
1240
+ return de_CommandError(output, context);
1798
1241
  }
1799
1242
  const contents = (0, import_smithy_client.map)({
1800
1243
  $metadata: deserializeMetadata(output)
@@ -1807,40 +1250,9 @@ var de_ListFieldOptionsCommand = /* @__PURE__ */ __name(async (output, context)
1807
1250
  Object.assign(contents, doc);
1808
1251
  return contents;
1809
1252
  }, "de_ListFieldOptionsCommand");
1810
- var de_ListFieldOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1811
- const parsedOutput = {
1812
- ...output,
1813
- body: await parseErrorBody(output.body, context)
1814
- };
1815
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1816
- switch (errorCode) {
1817
- case "AccessDeniedException":
1818
- case "com.amazonaws.connectcases#AccessDeniedException":
1819
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1820
- case "InternalServerException":
1821
- case "com.amazonaws.connectcases#InternalServerException":
1822
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1823
- case "ResourceNotFoundException":
1824
- case "com.amazonaws.connectcases#ResourceNotFoundException":
1825
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1826
- case "ThrottlingException":
1827
- case "com.amazonaws.connectcases#ThrottlingException":
1828
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1829
- case "ValidationException":
1830
- case "com.amazonaws.connectcases#ValidationException":
1831
- throw await de_ValidationExceptionRes(parsedOutput, context);
1832
- default:
1833
- const parsedBody = parsedOutput.body;
1834
- return throwDefaultError({
1835
- output,
1836
- parsedBody,
1837
- errorCode
1838
- });
1839
- }
1840
- }, "de_ListFieldOptionsCommandError");
1841
1253
  var de_ListFieldsCommand = /* @__PURE__ */ __name(async (output, context) => {
1842
1254
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1843
- return de_ListFieldsCommandError(output, context);
1255
+ return de_CommandError(output, context);
1844
1256
  }
1845
1257
  const contents = (0, import_smithy_client.map)({
1846
1258
  $metadata: deserializeMetadata(output)
@@ -1853,40 +1265,9 @@ var de_ListFieldsCommand = /* @__PURE__ */ __name(async (output, context) => {
1853
1265
  Object.assign(contents, doc);
1854
1266
  return contents;
1855
1267
  }, "de_ListFieldsCommand");
1856
- var de_ListFieldsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1857
- const parsedOutput = {
1858
- ...output,
1859
- body: await parseErrorBody(output.body, context)
1860
- };
1861
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1862
- switch (errorCode) {
1863
- case "AccessDeniedException":
1864
- case "com.amazonaws.connectcases#AccessDeniedException":
1865
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1866
- case "InternalServerException":
1867
- case "com.amazonaws.connectcases#InternalServerException":
1868
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1869
- case "ResourceNotFoundException":
1870
- case "com.amazonaws.connectcases#ResourceNotFoundException":
1871
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1872
- case "ThrottlingException":
1873
- case "com.amazonaws.connectcases#ThrottlingException":
1874
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1875
- case "ValidationException":
1876
- case "com.amazonaws.connectcases#ValidationException":
1877
- throw await de_ValidationExceptionRes(parsedOutput, context);
1878
- default:
1879
- const parsedBody = parsedOutput.body;
1880
- return throwDefaultError({
1881
- output,
1882
- parsedBody,
1883
- errorCode
1884
- });
1885
- }
1886
- }, "de_ListFieldsCommandError");
1887
1268
  var de_ListLayoutsCommand = /* @__PURE__ */ __name(async (output, context) => {
1888
1269
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1889
- return de_ListLayoutsCommandError(output, context);
1270
+ return de_CommandError(output, context);
1890
1271
  }
1891
1272
  const contents = (0, import_smithy_client.map)({
1892
1273
  $metadata: deserializeMetadata(output)
@@ -1899,40 +1280,9 @@ var de_ListLayoutsCommand = /* @__PURE__ */ __name(async (output, context) => {
1899
1280
  Object.assign(contents, doc);
1900
1281
  return contents;
1901
1282
  }, "de_ListLayoutsCommand");
1902
- var de_ListLayoutsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1903
- const parsedOutput = {
1904
- ...output,
1905
- body: await parseErrorBody(output.body, context)
1906
- };
1907
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1908
- switch (errorCode) {
1909
- case "AccessDeniedException":
1910
- case "com.amazonaws.connectcases#AccessDeniedException":
1911
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1912
- case "InternalServerException":
1913
- case "com.amazonaws.connectcases#InternalServerException":
1914
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1915
- case "ResourceNotFoundException":
1916
- case "com.amazonaws.connectcases#ResourceNotFoundException":
1917
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1918
- case "ThrottlingException":
1919
- case "com.amazonaws.connectcases#ThrottlingException":
1920
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1921
- case "ValidationException":
1922
- case "com.amazonaws.connectcases#ValidationException":
1923
- throw await de_ValidationExceptionRes(parsedOutput, context);
1924
- default:
1925
- const parsedBody = parsedOutput.body;
1926
- return throwDefaultError({
1927
- output,
1928
- parsedBody,
1929
- errorCode
1930
- });
1931
- }
1932
- }, "de_ListLayoutsCommandError");
1933
1283
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1934
1284
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1935
- return de_ListTagsForResourceCommandError(output, context);
1285
+ return de_CommandError(output, context);
1936
1286
  }
1937
1287
  const contents = (0, import_smithy_client.map)({
1938
1288
  $metadata: deserializeMetadata(output)
@@ -1944,86 +1294,24 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1944
1294
  Object.assign(contents, doc);
1945
1295
  return contents;
1946
1296
  }, "de_ListTagsForResourceCommand");
1947
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1948
- const parsedOutput = {
1949
- ...output,
1950
- body: await parseErrorBody(output.body, context)
1951
- };
1952
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1953
- switch (errorCode) {
1954
- case "AccessDeniedException":
1955
- case "com.amazonaws.connectcases#AccessDeniedException":
1956
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1957
- case "InternalServerException":
1958
- case "com.amazonaws.connectcases#InternalServerException":
1959
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1960
- case "ResourceNotFoundException":
1961
- case "com.amazonaws.connectcases#ResourceNotFoundException":
1962
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1963
- case "ThrottlingException":
1964
- case "com.amazonaws.connectcases#ThrottlingException":
1965
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1966
- case "ValidationException":
1967
- case "com.amazonaws.connectcases#ValidationException":
1968
- throw await de_ValidationExceptionRes(parsedOutput, context);
1969
- default:
1970
- const parsedBody = parsedOutput.body;
1971
- return throwDefaultError({
1972
- output,
1973
- parsedBody,
1974
- errorCode
1975
- });
1976
- }
1977
- }, "de_ListTagsForResourceCommandError");
1978
1297
  var de_ListTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
1979
1298
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1980
- return de_ListTemplatesCommandError(output, context);
1299
+ return de_CommandError(output, context);
1981
1300
  }
1982
1301
  const contents = (0, import_smithy_client.map)({
1983
1302
  $metadata: deserializeMetadata(output)
1984
1303
  });
1985
1304
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1986
1305
  const doc = (0, import_smithy_client.take)(data, {
1987
- nextToken: import_smithy_client.expectString,
1988
- templates: import_smithy_client._json
1989
- });
1990
- Object.assign(contents, doc);
1991
- return contents;
1992
- }, "de_ListTemplatesCommand");
1993
- var de_ListTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1994
- const parsedOutput = {
1995
- ...output,
1996
- body: await parseErrorBody(output.body, context)
1997
- };
1998
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1999
- switch (errorCode) {
2000
- case "AccessDeniedException":
2001
- case "com.amazonaws.connectcases#AccessDeniedException":
2002
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2003
- case "InternalServerException":
2004
- case "com.amazonaws.connectcases#InternalServerException":
2005
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2006
- case "ResourceNotFoundException":
2007
- case "com.amazonaws.connectcases#ResourceNotFoundException":
2008
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2009
- case "ThrottlingException":
2010
- case "com.amazonaws.connectcases#ThrottlingException":
2011
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2012
- case "ValidationException":
2013
- case "com.amazonaws.connectcases#ValidationException":
2014
- throw await de_ValidationExceptionRes(parsedOutput, context);
2015
- default:
2016
- const parsedBody = parsedOutput.body;
2017
- return throwDefaultError({
2018
- output,
2019
- parsedBody,
2020
- errorCode
2021
- });
2022
- }
2023
- }, "de_ListTemplatesCommandError");
1306
+ nextToken: import_smithy_client.expectString,
1307
+ templates: import_smithy_client._json
1308
+ });
1309
+ Object.assign(contents, doc);
1310
+ return contents;
1311
+ }, "de_ListTemplatesCommand");
2024
1312
  var de_PutCaseEventConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
2025
1313
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2026
- return de_PutCaseEventConfigurationCommandError(output, context);
1314
+ return de_CommandError(output, context);
2027
1315
  }
2028
1316
  const contents = (0, import_smithy_client.map)({
2029
1317
  $metadata: deserializeMetadata(output)
@@ -2031,40 +1319,9 @@ var de_PutCaseEventConfigurationCommand = /* @__PURE__ */ __name(async (output,
2031
1319
  await (0, import_smithy_client.collectBody)(output.body, context);
2032
1320
  return contents;
2033
1321
  }, "de_PutCaseEventConfigurationCommand");
2034
- var de_PutCaseEventConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2035
- const parsedOutput = {
2036
- ...output,
2037
- body: await parseErrorBody(output.body, context)
2038
- };
2039
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2040
- switch (errorCode) {
2041
- case "AccessDeniedException":
2042
- case "com.amazonaws.connectcases#AccessDeniedException":
2043
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2044
- case "InternalServerException":
2045
- case "com.amazonaws.connectcases#InternalServerException":
2046
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2047
- case "ResourceNotFoundException":
2048
- case "com.amazonaws.connectcases#ResourceNotFoundException":
2049
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2050
- case "ThrottlingException":
2051
- case "com.amazonaws.connectcases#ThrottlingException":
2052
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2053
- case "ValidationException":
2054
- case "com.amazonaws.connectcases#ValidationException":
2055
- throw await de_ValidationExceptionRes(parsedOutput, context);
2056
- default:
2057
- const parsedBody = parsedOutput.body;
2058
- return throwDefaultError({
2059
- output,
2060
- parsedBody,
2061
- errorCode
2062
- });
2063
- }
2064
- }, "de_PutCaseEventConfigurationCommandError");
2065
1322
  var de_SearchCasesCommand = /* @__PURE__ */ __name(async (output, context) => {
2066
1323
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2067
- return de_SearchCasesCommandError(output, context);
1324
+ return de_CommandError(output, context);
2068
1325
  }
2069
1326
  const contents = (0, import_smithy_client.map)({
2070
1327
  $metadata: deserializeMetadata(output)
@@ -2077,40 +1334,9 @@ var de_SearchCasesCommand = /* @__PURE__ */ __name(async (output, context) => {
2077
1334
  Object.assign(contents, doc);
2078
1335
  return contents;
2079
1336
  }, "de_SearchCasesCommand");
2080
- var de_SearchCasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2081
- const parsedOutput = {
2082
- ...output,
2083
- body: await parseErrorBody(output.body, context)
2084
- };
2085
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2086
- switch (errorCode) {
2087
- case "AccessDeniedException":
2088
- case "com.amazonaws.connectcases#AccessDeniedException":
2089
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2090
- case "InternalServerException":
2091
- case "com.amazonaws.connectcases#InternalServerException":
2092
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2093
- case "ResourceNotFoundException":
2094
- case "com.amazonaws.connectcases#ResourceNotFoundException":
2095
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2096
- case "ThrottlingException":
2097
- case "com.amazonaws.connectcases#ThrottlingException":
2098
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2099
- case "ValidationException":
2100
- case "com.amazonaws.connectcases#ValidationException":
2101
- throw await de_ValidationExceptionRes(parsedOutput, context);
2102
- default:
2103
- const parsedBody = parsedOutput.body;
2104
- return throwDefaultError({
2105
- output,
2106
- parsedBody,
2107
- errorCode
2108
- });
2109
- }
2110
- }, "de_SearchCasesCommandError");
2111
1337
  var de_SearchRelatedItemsCommand = /* @__PURE__ */ __name(async (output, context) => {
2112
1338
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2113
- return de_SearchRelatedItemsCommandError(output, context);
1339
+ return de_CommandError(output, context);
2114
1340
  }
2115
1341
  const contents = (0, import_smithy_client.map)({
2116
1342
  $metadata: deserializeMetadata(output)
@@ -2123,40 +1349,9 @@ var de_SearchRelatedItemsCommand = /* @__PURE__ */ __name(async (output, context
2123
1349
  Object.assign(contents, doc);
2124
1350
  return contents;
2125
1351
  }, "de_SearchRelatedItemsCommand");
2126
- var de_SearchRelatedItemsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2127
- const parsedOutput = {
2128
- ...output,
2129
- body: await parseErrorBody(output.body, context)
2130
- };
2131
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2132
- switch (errorCode) {
2133
- case "AccessDeniedException":
2134
- case "com.amazonaws.connectcases#AccessDeniedException":
2135
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2136
- case "InternalServerException":
2137
- case "com.amazonaws.connectcases#InternalServerException":
2138
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2139
- case "ResourceNotFoundException":
2140
- case "com.amazonaws.connectcases#ResourceNotFoundException":
2141
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2142
- case "ThrottlingException":
2143
- case "com.amazonaws.connectcases#ThrottlingException":
2144
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2145
- case "ValidationException":
2146
- case "com.amazonaws.connectcases#ValidationException":
2147
- throw await de_ValidationExceptionRes(parsedOutput, context);
2148
- default:
2149
- const parsedBody = parsedOutput.body;
2150
- return throwDefaultError({
2151
- output,
2152
- parsedBody,
2153
- errorCode
2154
- });
2155
- }
2156
- }, "de_SearchRelatedItemsCommandError");
2157
1352
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2158
1353
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2159
- return de_TagResourceCommandError(output, context);
1354
+ return de_CommandError(output, context);
2160
1355
  }
2161
1356
  const contents = (0, import_smithy_client.map)({
2162
1357
  $metadata: deserializeMetadata(output)
@@ -2164,40 +1359,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2164
1359
  await (0, import_smithy_client.collectBody)(output.body, context);
2165
1360
  return contents;
2166
1361
  }, "de_TagResourceCommand");
2167
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2168
- const parsedOutput = {
2169
- ...output,
2170
- body: await parseErrorBody(output.body, context)
2171
- };
2172
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2173
- switch (errorCode) {
2174
- case "AccessDeniedException":
2175
- case "com.amazonaws.connectcases#AccessDeniedException":
2176
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2177
- case "InternalServerException":
2178
- case "com.amazonaws.connectcases#InternalServerException":
2179
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2180
- case "ResourceNotFoundException":
2181
- case "com.amazonaws.connectcases#ResourceNotFoundException":
2182
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2183
- case "ThrottlingException":
2184
- case "com.amazonaws.connectcases#ThrottlingException":
2185
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2186
- case "ValidationException":
2187
- case "com.amazonaws.connectcases#ValidationException":
2188
- throw await de_ValidationExceptionRes(parsedOutput, context);
2189
- default:
2190
- const parsedBody = parsedOutput.body;
2191
- return throwDefaultError({
2192
- output,
2193
- parsedBody,
2194
- errorCode
2195
- });
2196
- }
2197
- }, "de_TagResourceCommandError");
2198
1362
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2199
1363
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2200
- return de_UntagResourceCommandError(output, context);
1364
+ return de_CommandError(output, context);
2201
1365
  }
2202
1366
  const contents = (0, import_smithy_client.map)({
2203
1367
  $metadata: deserializeMetadata(output)
@@ -2205,40 +1369,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
2205
1369
  await (0, import_smithy_client.collectBody)(output.body, context);
2206
1370
  return contents;
2207
1371
  }, "de_UntagResourceCommand");
2208
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2209
- const parsedOutput = {
2210
- ...output,
2211
- body: await parseErrorBody(output.body, context)
2212
- };
2213
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2214
- switch (errorCode) {
2215
- case "AccessDeniedException":
2216
- case "com.amazonaws.connectcases#AccessDeniedException":
2217
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2218
- case "InternalServerException":
2219
- case "com.amazonaws.connectcases#InternalServerException":
2220
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2221
- case "ResourceNotFoundException":
2222
- case "com.amazonaws.connectcases#ResourceNotFoundException":
2223
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2224
- case "ThrottlingException":
2225
- case "com.amazonaws.connectcases#ThrottlingException":
2226
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2227
- case "ValidationException":
2228
- case "com.amazonaws.connectcases#ValidationException":
2229
- throw await de_ValidationExceptionRes(parsedOutput, context);
2230
- default:
2231
- const parsedBody = parsedOutput.body;
2232
- return throwDefaultError({
2233
- output,
2234
- parsedBody,
2235
- errorCode
2236
- });
2237
- }
2238
- }, "de_UntagResourceCommandError");
2239
1372
  var de_UpdateCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
2240
1373
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2241
- return de_UpdateCaseCommandError(output, context);
1374
+ return de_CommandError(output, context);
2242
1375
  }
2243
1376
  const contents = (0, import_smithy_client.map)({
2244
1377
  $metadata: deserializeMetadata(output)
@@ -2246,40 +1379,9 @@ var de_UpdateCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
2246
1379
  await (0, import_smithy_client.collectBody)(output.body, context);
2247
1380
  return contents;
2248
1381
  }, "de_UpdateCaseCommand");
2249
- var de_UpdateCaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
2250
- const parsedOutput = {
2251
- ...output,
2252
- body: await parseErrorBody(output.body, context)
2253
- };
2254
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2255
- switch (errorCode) {
2256
- case "AccessDeniedException":
2257
- case "com.amazonaws.connectcases#AccessDeniedException":
2258
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2259
- case "InternalServerException":
2260
- case "com.amazonaws.connectcases#InternalServerException":
2261
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2262
- case "ResourceNotFoundException":
2263
- case "com.amazonaws.connectcases#ResourceNotFoundException":
2264
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2265
- case "ThrottlingException":
2266
- case "com.amazonaws.connectcases#ThrottlingException":
2267
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2268
- case "ValidationException":
2269
- case "com.amazonaws.connectcases#ValidationException":
2270
- throw await de_ValidationExceptionRes(parsedOutput, context);
2271
- default:
2272
- const parsedBody = parsedOutput.body;
2273
- return throwDefaultError({
2274
- output,
2275
- parsedBody,
2276
- errorCode
2277
- });
2278
- }
2279
- }, "de_UpdateCaseCommandError");
2280
1382
  var de_UpdateFieldCommand = /* @__PURE__ */ __name(async (output, context) => {
2281
1383
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2282
- return de_UpdateFieldCommandError(output, context);
1384
+ return de_CommandError(output, context);
2283
1385
  }
2284
1386
  const contents = (0, import_smithy_client.map)({
2285
1387
  $metadata: deserializeMetadata(output)
@@ -2287,43 +1389,9 @@ var de_UpdateFieldCommand = /* @__PURE__ */ __name(async (output, context) => {
2287
1389
  await (0, import_smithy_client.collectBody)(output.body, context);
2288
1390
  return contents;
2289
1391
  }, "de_UpdateFieldCommand");
2290
- var de_UpdateFieldCommandError = /* @__PURE__ */ __name(async (output, context) => {
2291
- const parsedOutput = {
2292
- ...output,
2293
- body: await parseErrorBody(output.body, context)
2294
- };
2295
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2296
- switch (errorCode) {
2297
- case "AccessDeniedException":
2298
- case "com.amazonaws.connectcases#AccessDeniedException":
2299
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2300
- case "ConflictException":
2301
- case "com.amazonaws.connectcases#ConflictException":
2302
- throw await de_ConflictExceptionRes(parsedOutput, context);
2303
- case "InternalServerException":
2304
- case "com.amazonaws.connectcases#InternalServerException":
2305
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2306
- case "ResourceNotFoundException":
2307
- case "com.amazonaws.connectcases#ResourceNotFoundException":
2308
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2309
- case "ThrottlingException":
2310
- case "com.amazonaws.connectcases#ThrottlingException":
2311
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2312
- case "ValidationException":
2313
- case "com.amazonaws.connectcases#ValidationException":
2314
- throw await de_ValidationExceptionRes(parsedOutput, context);
2315
- default:
2316
- const parsedBody = parsedOutput.body;
2317
- return throwDefaultError({
2318
- output,
2319
- parsedBody,
2320
- errorCode
2321
- });
2322
- }
2323
- }, "de_UpdateFieldCommandError");
2324
1392
  var de_UpdateLayoutCommand = /* @__PURE__ */ __name(async (output, context) => {
2325
1393
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2326
- return de_UpdateLayoutCommandError(output, context);
1394
+ return de_CommandError(output, context);
2327
1395
  }
2328
1396
  const contents = (0, import_smithy_client.map)({
2329
1397
  $metadata: deserializeMetadata(output)
@@ -2331,46 +1399,9 @@ var de_UpdateLayoutCommand = /* @__PURE__ */ __name(async (output, context) => {
2331
1399
  await (0, import_smithy_client.collectBody)(output.body, context);
2332
1400
  return contents;
2333
1401
  }, "de_UpdateLayoutCommand");
2334
- var de_UpdateLayoutCommandError = /* @__PURE__ */ __name(async (output, context) => {
2335
- const parsedOutput = {
2336
- ...output,
2337
- body: await parseErrorBody(output.body, context)
2338
- };
2339
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2340
- switch (errorCode) {
2341
- case "AccessDeniedException":
2342
- case "com.amazonaws.connectcases#AccessDeniedException":
2343
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2344
- case "ConflictException":
2345
- case "com.amazonaws.connectcases#ConflictException":
2346
- throw await de_ConflictExceptionRes(parsedOutput, context);
2347
- case "InternalServerException":
2348
- case "com.amazonaws.connectcases#InternalServerException":
2349
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2350
- case "ResourceNotFoundException":
2351
- case "com.amazonaws.connectcases#ResourceNotFoundException":
2352
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2353
- case "ServiceQuotaExceededException":
2354
- case "com.amazonaws.connectcases#ServiceQuotaExceededException":
2355
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2356
- case "ThrottlingException":
2357
- case "com.amazonaws.connectcases#ThrottlingException":
2358
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2359
- case "ValidationException":
2360
- case "com.amazonaws.connectcases#ValidationException":
2361
- throw await de_ValidationExceptionRes(parsedOutput, context);
2362
- default:
2363
- const parsedBody = parsedOutput.body;
2364
- return throwDefaultError({
2365
- output,
2366
- parsedBody,
2367
- errorCode
2368
- });
2369
- }
2370
- }, "de_UpdateLayoutCommandError");
2371
1402
  var de_UpdateTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
2372
1403
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2373
- return de_UpdateTemplateCommandError(output, context);
1404
+ return de_CommandError(output, context);
2374
1405
  }
2375
1406
  const contents = (0, import_smithy_client.map)({
2376
1407
  $metadata: deserializeMetadata(output)
@@ -2378,7 +1409,7 @@ var de_UpdateTemplateCommand = /* @__PURE__ */ __name(async (output, context) =>
2378
1409
  await (0, import_smithy_client.collectBody)(output.body, context);
2379
1410
  return contents;
2380
1411
  }, "de_UpdateTemplateCommand");
2381
- var de_UpdateTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1412
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2382
1413
  const parsedOutput = {
2383
1414
  ...output,
2384
1415
  body: await parseErrorBody(output.body, context)
@@ -2388,9 +1419,6 @@ var de_UpdateTemplateCommandError = /* @__PURE__ */ __name(async (output, contex
2388
1419
  case "AccessDeniedException":
2389
1420
  case "com.amazonaws.connectcases#AccessDeniedException":
2390
1421
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2391
- case "ConflictException":
2392
- case "com.amazonaws.connectcases#ConflictException":
2393
- throw await de_ConflictExceptionRes(parsedOutput, context);
2394
1422
  case "InternalServerException":
2395
1423
  case "com.amazonaws.connectcases#InternalServerException":
2396
1424
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -2403,6 +1431,12 @@ var de_UpdateTemplateCommandError = /* @__PURE__ */ __name(async (output, contex
2403
1431
  case "ValidationException":
2404
1432
  case "com.amazonaws.connectcases#ValidationException":
2405
1433
  throw await de_ValidationExceptionRes(parsedOutput, context);
1434
+ case "ServiceQuotaExceededException":
1435
+ case "com.amazonaws.connectcases#ServiceQuotaExceededException":
1436
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1437
+ case "ConflictException":
1438
+ case "com.amazonaws.connectcases#ConflictException":
1439
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2406
1440
  default:
2407
1441
  const parsedBody = parsedOutput.body;
2408
1442
  return throwDefaultError({
@@ -2411,7 +1445,7 @@ var de_UpdateTemplateCommandError = /* @__PURE__ */ __name(async (output, contex
2411
1445
  errorCode
2412
1446
  });
2413
1447
  }
2414
- }, "de_UpdateTemplateCommandError");
1448
+ }, "de_CommandError");
2415
1449
  var throwDefaultError = (0, import_smithy_client.withBaseException)(ConnectCasesServiceException);
2416
1450
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2417
1451
  const contents = (0, import_smithy_client.map)({});