@aws-sdk/client-connectcases 3.523.0 → 3.529.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 +25 -66
- package/dist-es/protocols/Aws_restJson1.js +1 -41
- package/package.json +17 -17
- package/dist-cjs/ConnectCases.js +0 -1
- package/dist-cjs/ConnectCasesClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/BatchGetFieldCommand.js +0 -1
- package/dist-cjs/commands/BatchPutFieldOptionsCommand.js +0 -1
- package/dist-cjs/commands/CreateCaseCommand.js +0 -1
- package/dist-cjs/commands/CreateDomainCommand.js +0 -1
- package/dist-cjs/commands/CreateFieldCommand.js +0 -1
- package/dist-cjs/commands/CreateLayoutCommand.js +0 -1
- package/dist-cjs/commands/CreateRelatedItemCommand.js +0 -1
- package/dist-cjs/commands/CreateTemplateCommand.js +0 -1
- package/dist-cjs/commands/DeleteDomainCommand.js +0 -1
- package/dist-cjs/commands/GetCaseAuditEventsCommand.js +0 -1
- package/dist-cjs/commands/GetCaseCommand.js +0 -1
- package/dist-cjs/commands/GetCaseEventConfigurationCommand.js +0 -1
- package/dist-cjs/commands/GetDomainCommand.js +0 -1
- package/dist-cjs/commands/GetLayoutCommand.js +0 -1
- package/dist-cjs/commands/GetTemplateCommand.js +0 -1
- package/dist-cjs/commands/ListCasesForContactCommand.js +0 -1
- package/dist-cjs/commands/ListDomainsCommand.js +0 -1
- package/dist-cjs/commands/ListFieldOptionsCommand.js +0 -1
- package/dist-cjs/commands/ListFieldsCommand.js +0 -1
- package/dist-cjs/commands/ListLayoutsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/ListTemplatesCommand.js +0 -1
- package/dist-cjs/commands/PutCaseEventConfigurationCommand.js +0 -1
- package/dist-cjs/commands/SearchCasesCommand.js +0 -1
- package/dist-cjs/commands/SearchRelatedItemsCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateCaseCommand.js +0 -1
- package/dist-cjs/commands/UpdateFieldCommand.js +0 -1
- package/dist-cjs/commands/UpdateLayoutCommand.js +0 -1
- package/dist-cjs/commands/UpdateTemplateCommand.js +0 -1
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/endpoint/EndpointParameters.js +0 -1
- package/dist-cjs/extensionConfiguration.js +0 -1
- package/dist-cjs/models/ConnectCasesServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/GetCaseAuditEventsPaginator.js +0 -1
- package/dist-cjs/pagination/GetCasePaginator.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListCasesForContactPaginator.js +0 -1
- package/dist-cjs/pagination/ListDomainsPaginator.js +0 -1
- package/dist-cjs/pagination/ListFieldOptionsPaginator.js +0 -1
- package/dist-cjs/pagination/ListFieldsPaginator.js +0 -1
- package/dist-cjs/pagination/ListLayoutsPaginator.js +0 -1
- package/dist-cjs/pagination/ListTemplatesPaginator.js +0 -1
- package/dist-cjs/pagination/SearchCasesPaginator.js +0 -1
- package/dist-cjs/pagination/SearchRelatedItemsPaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -1036,7 +1036,7 @@ var de_BatchGetFieldCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1036
1036
|
const contents = (0, import_smithy_client.map)({
|
|
1037
1037
|
$metadata: deserializeMetadata(output)
|
|
1038
1038
|
});
|
|
1039
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1039
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1040
1040
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1041
1041
|
errors: import_smithy_client._json,
|
|
1042
1042
|
fields: (_) => de_BatchGetFieldList(_, context)
|
|
@@ -1051,7 +1051,7 @@ var de_BatchPutFieldOptionsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1051
1051
|
const contents = (0, import_smithy_client.map)({
|
|
1052
1052
|
$metadata: deserializeMetadata(output)
|
|
1053
1053
|
});
|
|
1054
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1054
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1055
1055
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1056
1056
|
errors: import_smithy_client._json
|
|
1057
1057
|
});
|
|
@@ -1065,7 +1065,7 @@ var de_CreateCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1065
1065
|
const contents = (0, import_smithy_client.map)({
|
|
1066
1066
|
$metadata: deserializeMetadata(output)
|
|
1067
1067
|
});
|
|
1068
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1068
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1069
1069
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1070
1070
|
caseArn: import_smithy_client.expectString,
|
|
1071
1071
|
caseId: import_smithy_client.expectString
|
|
@@ -1080,7 +1080,7 @@ var de_CreateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1080
1080
|
const contents = (0, import_smithy_client.map)({
|
|
1081
1081
|
$metadata: deserializeMetadata(output)
|
|
1082
1082
|
});
|
|
1083
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1083
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1084
1084
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1085
1085
|
domainArn: import_smithy_client.expectString,
|
|
1086
1086
|
domainId: import_smithy_client.expectString,
|
|
@@ -1096,7 +1096,7 @@ var de_CreateFieldCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1096
1096
|
const contents = (0, import_smithy_client.map)({
|
|
1097
1097
|
$metadata: deserializeMetadata(output)
|
|
1098
1098
|
});
|
|
1099
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1099
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1100
1100
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1101
1101
|
fieldArn: import_smithy_client.expectString,
|
|
1102
1102
|
fieldId: import_smithy_client.expectString
|
|
@@ -1111,7 +1111,7 @@ var de_CreateLayoutCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1111
1111
|
const contents = (0, import_smithy_client.map)({
|
|
1112
1112
|
$metadata: deserializeMetadata(output)
|
|
1113
1113
|
});
|
|
1114
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1114
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1115
1115
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1116
1116
|
layoutArn: import_smithy_client.expectString,
|
|
1117
1117
|
layoutId: import_smithy_client.expectString
|
|
@@ -1126,7 +1126,7 @@ var de_CreateRelatedItemCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1126
1126
|
const contents = (0, import_smithy_client.map)({
|
|
1127
1127
|
$metadata: deserializeMetadata(output)
|
|
1128
1128
|
});
|
|
1129
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1129
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1130
1130
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1131
1131
|
relatedItemArn: import_smithy_client.expectString,
|
|
1132
1132
|
relatedItemId: import_smithy_client.expectString
|
|
@@ -1141,7 +1141,7 @@ var de_CreateTemplateCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1141
1141
|
const contents = (0, import_smithy_client.map)({
|
|
1142
1142
|
$metadata: deserializeMetadata(output)
|
|
1143
1143
|
});
|
|
1144
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1144
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1145
1145
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1146
1146
|
templateArn: import_smithy_client.expectString,
|
|
1147
1147
|
templateId: import_smithy_client.expectString
|
|
@@ -1166,7 +1166,7 @@ var de_GetCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1166
1166
|
const contents = (0, import_smithy_client.map)({
|
|
1167
1167
|
$metadata: deserializeMetadata(output)
|
|
1168
1168
|
});
|
|
1169
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1169
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1170
1170
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1171
1171
|
fields: (_) => de_FieldValueList(_, context),
|
|
1172
1172
|
nextToken: import_smithy_client.expectString,
|
|
@@ -1183,7 +1183,7 @@ var de_GetCaseAuditEventsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1183
1183
|
const contents = (0, import_smithy_client.map)({
|
|
1184
1184
|
$metadata: deserializeMetadata(output)
|
|
1185
1185
|
});
|
|
1186
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1186
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1187
1187
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1188
1188
|
auditEvents: (_) => de_AuditEventsList(_, context),
|
|
1189
1189
|
nextToken: import_smithy_client.expectString
|
|
@@ -1198,7 +1198,7 @@ var de_GetCaseEventConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1198
1198
|
const contents = (0, import_smithy_client.map)({
|
|
1199
1199
|
$metadata: deserializeMetadata(output)
|
|
1200
1200
|
});
|
|
1201
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1201
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1202
1202
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1203
1203
|
eventBridge: import_smithy_client._json
|
|
1204
1204
|
});
|
|
@@ -1212,7 +1212,7 @@ var de_GetDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1212
1212
|
const contents = (0, import_smithy_client.map)({
|
|
1213
1213
|
$metadata: deserializeMetadata(output)
|
|
1214
1214
|
});
|
|
1215
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1215
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1216
1216
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1217
1217
|
createdTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1218
1218
|
domainArn: import_smithy_client.expectString,
|
|
@@ -1231,7 +1231,7 @@ var de_GetLayoutCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1231
1231
|
const contents = (0, import_smithy_client.map)({
|
|
1232
1232
|
$metadata: deserializeMetadata(output)
|
|
1233
1233
|
});
|
|
1234
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1234
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1235
1235
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1236
1236
|
content: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
1237
1237
|
layoutArn: import_smithy_client.expectString,
|
|
@@ -1249,7 +1249,7 @@ var de_GetTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1249
1249
|
const contents = (0, import_smithy_client.map)({
|
|
1250
1250
|
$metadata: deserializeMetadata(output)
|
|
1251
1251
|
});
|
|
1252
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1252
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1253
1253
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1254
1254
|
description: import_smithy_client.expectString,
|
|
1255
1255
|
layoutConfiguration: import_smithy_client._json,
|
|
@@ -1270,7 +1270,7 @@ var de_ListCasesForContactCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1270
1270
|
const contents = (0, import_smithy_client.map)({
|
|
1271
1271
|
$metadata: deserializeMetadata(output)
|
|
1272
1272
|
});
|
|
1273
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1273
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1274
1274
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1275
1275
|
cases: import_smithy_client._json,
|
|
1276
1276
|
nextToken: import_smithy_client.expectString
|
|
@@ -1285,7 +1285,7 @@ var de_ListDomainsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1285
1285
|
const contents = (0, import_smithy_client.map)({
|
|
1286
1286
|
$metadata: deserializeMetadata(output)
|
|
1287
1287
|
});
|
|
1288
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1288
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1289
1289
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1290
1290
|
domains: import_smithy_client._json,
|
|
1291
1291
|
nextToken: import_smithy_client.expectString
|
|
@@ -1300,7 +1300,7 @@ var de_ListFieldOptionsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1300
1300
|
const contents = (0, import_smithy_client.map)({
|
|
1301
1301
|
$metadata: deserializeMetadata(output)
|
|
1302
1302
|
});
|
|
1303
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1303
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1304
1304
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1305
1305
|
nextToken: import_smithy_client.expectString,
|
|
1306
1306
|
options: import_smithy_client._json
|
|
@@ -1315,7 +1315,7 @@ var de_ListFieldsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1315
1315
|
const contents = (0, import_smithy_client.map)({
|
|
1316
1316
|
$metadata: deserializeMetadata(output)
|
|
1317
1317
|
});
|
|
1318
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1318
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1319
1319
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1320
1320
|
fields: import_smithy_client._json,
|
|
1321
1321
|
nextToken: import_smithy_client.expectString
|
|
@@ -1330,7 +1330,7 @@ var de_ListLayoutsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1330
1330
|
const contents = (0, import_smithy_client.map)({
|
|
1331
1331
|
$metadata: deserializeMetadata(output)
|
|
1332
1332
|
});
|
|
1333
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1333
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1334
1334
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1335
1335
|
layouts: import_smithy_client._json,
|
|
1336
1336
|
nextToken: import_smithy_client.expectString
|
|
@@ -1345,7 +1345,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1345
1345
|
const contents = (0, import_smithy_client.map)({
|
|
1346
1346
|
$metadata: deserializeMetadata(output)
|
|
1347
1347
|
});
|
|
1348
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1348
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1349
1349
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1350
1350
|
tags: (_) => de_Tags(_, context)
|
|
1351
1351
|
});
|
|
@@ -1359,7 +1359,7 @@ var de_ListTemplatesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1359
1359
|
const contents = (0, import_smithy_client.map)({
|
|
1360
1360
|
$metadata: deserializeMetadata(output)
|
|
1361
1361
|
});
|
|
1362
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1362
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1363
1363
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1364
1364
|
nextToken: import_smithy_client.expectString,
|
|
1365
1365
|
templates: import_smithy_client._json
|
|
@@ -1384,7 +1384,7 @@ var de_SearchCasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1384
1384
|
const contents = (0, import_smithy_client.map)({
|
|
1385
1385
|
$metadata: deserializeMetadata(output)
|
|
1386
1386
|
});
|
|
1387
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1387
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1388
1388
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1389
1389
|
cases: (_) => de_SearchCasesResponseItemList(_, context),
|
|
1390
1390
|
nextToken: import_smithy_client.expectString
|
|
@@ -1399,7 +1399,7 @@ var de_SearchRelatedItemsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1399
1399
|
const contents = (0, import_smithy_client.map)({
|
|
1400
1400
|
$metadata: deserializeMetadata(output)
|
|
1401
1401
|
});
|
|
1402
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1402
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1403
1403
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1404
1404
|
nextToken: import_smithy_client.expectString,
|
|
1405
1405
|
relatedItems: (_) => de_SearchRelatedItemsResponseItemList(_, context)
|
|
@@ -1470,9 +1470,9 @@ var de_UpdateTemplateCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1470
1470
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1471
1471
|
const parsedOutput = {
|
|
1472
1472
|
...output,
|
|
1473
|
-
body: await
|
|
1473
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1474
1474
|
};
|
|
1475
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1475
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1476
1476
|
switch (errorCode) {
|
|
1477
1477
|
case "AccessDeniedException":
|
|
1478
1478
|
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
@@ -1832,7 +1832,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1832
1832
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1833
1833
|
cfId: output.headers["x-amz-cf-id"]
|
|
1834
1834
|
}), "deserializeMetadata");
|
|
1835
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1836
1835
|
var _mR = "maxResults";
|
|
1837
1836
|
var _nT = "nextToken";
|
|
1838
1837
|
var _rAS = "retryAfterSeconds";
|
|
@@ -1840,46 +1839,6 @@ var _ra = "retry-after";
|
|
|
1840
1839
|
var _s = "status";
|
|
1841
1840
|
var _tK = "tagKeys";
|
|
1842
1841
|
var _v = "values";
|
|
1843
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1844
|
-
if (encoded.length) {
|
|
1845
|
-
return JSON.parse(encoded);
|
|
1846
|
-
}
|
|
1847
|
-
return {};
|
|
1848
|
-
}), "parseBody");
|
|
1849
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1850
|
-
const value = await parseBody(errorBody, context);
|
|
1851
|
-
value.message = value.message ?? value.Message;
|
|
1852
|
-
return value;
|
|
1853
|
-
}, "parseErrorBody");
|
|
1854
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1855
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1856
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1857
|
-
let cleanValue = rawValue;
|
|
1858
|
-
if (typeof cleanValue === "number") {
|
|
1859
|
-
cleanValue = cleanValue.toString();
|
|
1860
|
-
}
|
|
1861
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1862
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1863
|
-
}
|
|
1864
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1865
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1866
|
-
}
|
|
1867
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1868
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1869
|
-
}
|
|
1870
|
-
return cleanValue;
|
|
1871
|
-
}, "sanitizeErrorCode");
|
|
1872
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1873
|
-
if (headerKey !== void 0) {
|
|
1874
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1875
|
-
}
|
|
1876
|
-
if (data.code !== void 0) {
|
|
1877
|
-
return sanitizeErrorCode(data.code);
|
|
1878
|
-
}
|
|
1879
|
-
if (data["__type"] !== void 0) {
|
|
1880
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1881
|
-
}
|
|
1882
|
-
}, "loadRestJsonErrorCode");
|
|
1883
1842
|
|
|
1884
1843
|
// src/commands/BatchGetFieldCommand.ts
|
|
1885
1844
|
var _BatchGetFieldCommand = class _BatchGetFieldCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
|
|
1
|
+
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -1270,43 +1270,3 @@ const _ra = "retry-after";
|
|
|
1270
1270
|
const _s = "status";
|
|
1271
1271
|
const _tK = "tagKeys";
|
|
1272
1272
|
const _v = "values";
|
|
1273
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1274
|
-
if (encoded.length) {
|
|
1275
|
-
return JSON.parse(encoded);
|
|
1276
|
-
}
|
|
1277
|
-
return {};
|
|
1278
|
-
});
|
|
1279
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1280
|
-
const value = await parseBody(errorBody, context);
|
|
1281
|
-
value.message = value.message ?? value.Message;
|
|
1282
|
-
return value;
|
|
1283
|
-
};
|
|
1284
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1285
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1286
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1287
|
-
let cleanValue = rawValue;
|
|
1288
|
-
if (typeof cleanValue === "number") {
|
|
1289
|
-
cleanValue = cleanValue.toString();
|
|
1290
|
-
}
|
|
1291
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1292
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1293
|
-
}
|
|
1294
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1295
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1296
|
-
}
|
|
1297
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1298
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1299
|
-
}
|
|
1300
|
-
return cleanValue;
|
|
1301
|
-
};
|
|
1302
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1303
|
-
if (headerKey !== undefined) {
|
|
1304
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1305
|
-
}
|
|
1306
|
-
if (data.code !== undefined) {
|
|
1307
|
-
return sanitizeErrorCode(data.code);
|
|
1308
|
-
}
|
|
1309
|
-
if (data["__type"] !== undefined) {
|
|
1310
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1311
|
-
}
|
|
1312
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-connectcases",
|
|
3
3
|
"description": "AWS SDK for JavaScript Connectcases Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-connectcases",
|
|
@@ -20,40 +20,40 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.525.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.525.0",
|
|
31
31
|
"@aws-sdk/types": "3.523.0",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.525.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.523.0",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.1.
|
|
36
|
-
"@smithy/core": "^1.3.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.525.0",
|
|
35
|
+
"@smithy/config-resolver": "^2.1.4",
|
|
36
|
+
"@smithy/core": "^1.3.5",
|
|
37
37
|
"@smithy/fetch-http-handler": "^2.4.3",
|
|
38
38
|
"@smithy/hash-node": "^2.1.3",
|
|
39
39
|
"@smithy/invalid-dependency": "^2.1.3",
|
|
40
40
|
"@smithy/middleware-content-length": "^2.1.3",
|
|
41
|
-
"@smithy/middleware-endpoint": "^2.4.
|
|
42
|
-
"@smithy/middleware-retry": "^2.1.
|
|
41
|
+
"@smithy/middleware-endpoint": "^2.4.4",
|
|
42
|
+
"@smithy/middleware-retry": "^2.1.4",
|
|
43
43
|
"@smithy/middleware-serde": "^2.1.3",
|
|
44
44
|
"@smithy/middleware-stack": "^2.1.3",
|
|
45
|
-
"@smithy/node-config-provider": "^2.2.
|
|
45
|
+
"@smithy/node-config-provider": "^2.2.4",
|
|
46
46
|
"@smithy/node-http-handler": "^2.4.1",
|
|
47
47
|
"@smithy/protocol-http": "^3.2.1",
|
|
48
|
-
"@smithy/smithy-client": "^2.4.
|
|
48
|
+
"@smithy/smithy-client": "^2.4.2",
|
|
49
49
|
"@smithy/types": "^2.10.1",
|
|
50
50
|
"@smithy/url-parser": "^2.1.3",
|
|
51
51
|
"@smithy/util-base64": "^2.1.1",
|
|
52
52
|
"@smithy/util-body-length-browser": "^2.1.1",
|
|
53
53
|
"@smithy/util-body-length-node": "^2.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^2.1.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.2.
|
|
56
|
-
"@smithy/util-endpoints": "^1.1.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^2.1.4",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^2.2.3",
|
|
56
|
+
"@smithy/util-endpoints": "^1.1.4",
|
|
57
57
|
"@smithy/util-middleware": "^2.1.3",
|
|
58
58
|
"@smithy/util-retry": "^2.1.3",
|
|
59
59
|
"@smithy/util-utf8": "^2.1.1",
|
package/dist-cjs/ConnectCases.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|