@aws-sdk/client-kendra 3.301.0 → 3.303.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/README.md +40 -0
- package/dist-cjs/Kendra.js +75 -0
- package/dist-cjs/commands/BatchDeleteFeaturedResultsSetCommand.js +45 -0
- package/dist-cjs/commands/CreateFeaturedResultsSetCommand.js +45 -0
- package/dist-cjs/commands/DescribeFeaturedResultsSetCommand.js +45 -0
- package/dist-cjs/commands/ListFeaturedResultsSetsCommand.js +45 -0
- package/dist-cjs/commands/UpdateFeaturedResultsSetCommand.js +45 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +381 -438
- package/dist-cjs/models/models_1.js +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +597 -4
- package/dist-es/Kendra.js +75 -0
- package/dist-es/commands/BatchDeleteFeaturedResultsSetCommand.js +41 -0
- package/dist-es/commands/CreateFeaturedResultsSetCommand.js +41 -0
- package/dist-es/commands/DescribeFeaturedResultsSetCommand.js +41 -0
- package/dist-es/commands/ListFeaturedResultsSetsCommand.js +41 -0
- package/dist-es/commands/UpdateFeaturedResultsSetCommand.js +41 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +377 -434
- package/dist-es/models/models_1.js +18 -1
- package/dist-es/protocols/Aws_json1_1.js +584 -1
- package/dist-types/Kendra.d.ts +163 -132
- package/dist-types/KendraClient.d.ts +7 -2
- package/dist-types/commands/AssociateEntitiesToExperienceCommand.d.ts +1 -1
- package/dist-types/commands/AssociatePersonasToEntitiesCommand.d.ts +1 -1
- package/dist-types/commands/BatchDeleteDocumentCommand.d.ts +6 -6
- package/dist-types/commands/BatchDeleteFeaturedResultsSetCommand.d.ts +88 -0
- package/dist-types/commands/BatchGetDocumentStatusCommand.d.ts +9 -13
- package/dist-types/commands/BatchPutDocumentCommand.d.ts +14 -13
- package/dist-types/commands/ClearQuerySuggestionsCommand.d.ts +1 -1
- package/dist-types/commands/CreateAccessControlConfigurationCommand.d.ts +17 -20
- package/dist-types/commands/CreateDataSourceCommand.d.ts +3 -4
- package/dist-types/commands/CreateExperienceCommand.d.ts +3 -2
- package/dist-types/commands/CreateFaqCommand.d.ts +6 -6
- package/dist-types/commands/CreateFeaturedResultsSetCommand.d.ts +117 -0
- package/dist-types/commands/CreateIndexCommand.d.ts +3 -2
- package/dist-types/commands/CreateQuerySuggestionsBlockListCommand.d.ts +3 -2
- package/dist-types/commands/CreateThesaurusCommand.d.ts +3 -2
- package/dist-types/commands/DeleteAccessControlConfigurationCommand.d.ts +5 -5
- package/dist-types/commands/DeleteDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/DeleteExperienceCommand.d.ts +1 -1
- package/dist-types/commands/DeleteFaqCommand.d.ts +1 -1
- package/dist-types/commands/DeleteIndexCommand.d.ts +1 -1
- package/dist-types/commands/DeletePrincipalMappingCommand.d.ts +13 -15
- package/dist-types/commands/DeleteQuerySuggestionsBlockListCommand.d.ts +1 -1
- package/dist-types/commands/DeleteThesaurusCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAccessControlConfigurationCommand.d.ts +3 -3
- package/dist-types/commands/DescribeDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/DescribeExperienceCommand.d.ts +1 -1
- package/dist-types/commands/DescribeFaqCommand.d.ts +1 -1
- package/dist-types/commands/DescribeFeaturedResultsSetCommand.d.ts +86 -0
- package/dist-types/commands/DescribeIndexCommand.d.ts +1 -1
- package/dist-types/commands/DescribePrincipalMappingCommand.d.ts +8 -9
- package/dist-types/commands/DescribeQuerySuggestionsBlockListCommand.d.ts +1 -1
- package/dist-types/commands/DescribeQuerySuggestionsConfigCommand.d.ts +1 -1
- package/dist-types/commands/DescribeThesaurusCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateEntitiesFromExperienceCommand.d.ts +1 -1
- package/dist-types/commands/DisassociatePersonasFromEntitiesCommand.d.ts +1 -1
- package/dist-types/commands/GetQuerySuggestionsCommand.d.ts +3 -2
- package/dist-types/commands/GetSnapshotsCommand.d.ts +3 -4
- package/dist-types/commands/ListAccessControlConfigurationsCommand.d.ts +5 -5
- package/dist-types/commands/ListDataSourceSyncJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListDataSourcesCommand.d.ts +1 -1
- package/dist-types/commands/ListEntityPersonasCommand.d.ts +1 -1
- package/dist-types/commands/ListExperienceEntitiesCommand.d.ts +1 -1
- package/dist-types/commands/ListExperiencesCommand.d.ts +1 -1
- package/dist-types/commands/ListFaqsCommand.d.ts +1 -1
- package/dist-types/commands/ListFeaturedResultsSetsCommand.d.ts +87 -0
- package/dist-types/commands/ListGroupsOlderThanOrderingIdCommand.d.ts +4 -5
- package/dist-types/commands/ListIndicesCommand.d.ts +1 -1
- package/dist-types/commands/ListQuerySuggestionsBlockListsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -3
- package/dist-types/commands/ListThesauriCommand.d.ts +1 -1
- package/dist-types/commands/PutPrincipalMappingCommand.d.ts +15 -21
- package/dist-types/commands/QueryCommand.d.ts +3 -2
- package/dist-types/commands/StartDataSourceSyncJobCommand.d.ts +2 -2
- package/dist-types/commands/StopDataSourceSyncJobCommand.d.ts +2 -2
- package/dist-types/commands/SubmitFeedbackCommand.d.ts +2 -2
- package/dist-types/commands/TagResourceCommand.d.ts +4 -5
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateAccessControlConfigurationCommand.d.ts +20 -20
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateExperienceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateFeaturedResultsSetCommand.d.ts +105 -0
- package/dist-types/commands/UpdateIndexCommand.d.ts +4 -3
- package/dist-types/commands/UpdateQuerySuggestionsBlockListCommand.d.ts +2 -2
- package/dist-types/commands/UpdateQuerySuggestionsConfigCommand.d.ts +1 -1
- package/dist-types/commands/UpdateThesaurusCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +1943 -1687
- package/dist-types/models/models_1.d.ts +491 -72
- package/dist-types/protocols/Aws_json1_1.d.ts +15 -0
- package/dist-types/ts3.4/Kendra.d.ts +85 -0
- package/dist-types/ts3.4/KendraClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/BatchDeleteFeaturedResultsSetCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateFeaturedResultsSetCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeFeaturedResultsSetCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListFeaturedResultsSetsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/StartDataSourceSyncJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StopDataSourceSyncJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SubmitFeedbackCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAccessControlConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateDataSourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateExperienceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateFeaturedResultsSetCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateIndexCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateQuerySuggestionsBlockListCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +563 -453
- package/dist-types/ts3.4/models/models_1.d.ts +127 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +60 -0
- package/package.json +34 -34
|
@@ -2,7 +2,8 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { KendraServiceException as __BaseException } from "../models/KendraServiceException";
|
|
5
|
-
import { AccessDeniedException, ConflictException, InternalServerException, InvalidRequestException, ResourceAlreadyExistException,
|
|
5
|
+
import { AccessDeniedException, ConflictException, FeaturedResultsConflictException, InternalServerException, InvalidRequestException, ResourceAlreadyExistException, ResourceNotFoundException, ResourceUnavailableException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
+
import { ResourceInUseException, } from "../models/models_1";
|
|
6
7
|
export const serializeAws_json1_1AssociateEntitiesToExperienceCommand = async (input, context) => {
|
|
7
8
|
const headers = {
|
|
8
9
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -30,6 +31,15 @@ export const serializeAws_json1_1BatchDeleteDocumentCommand = async (input, cont
|
|
|
30
31
|
body = JSON.stringify(serializeAws_json1_1BatchDeleteDocumentRequest(input, context));
|
|
31
32
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
32
33
|
};
|
|
34
|
+
export const serializeAws_json1_1BatchDeleteFeaturedResultsSetCommand = async (input, context) => {
|
|
35
|
+
const headers = {
|
|
36
|
+
"content-type": "application/x-amz-json-1.1",
|
|
37
|
+
"x-amz-target": "AWSKendraFrontendService.BatchDeleteFeaturedResultsSet",
|
|
38
|
+
};
|
|
39
|
+
let body;
|
|
40
|
+
body = JSON.stringify(serializeAws_json1_1BatchDeleteFeaturedResultsSetRequest(input, context));
|
|
41
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
+
};
|
|
33
43
|
export const serializeAws_json1_1BatchGetDocumentStatusCommand = async (input, context) => {
|
|
34
44
|
const headers = {
|
|
35
45
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -93,6 +103,15 @@ export const serializeAws_json1_1CreateFaqCommand = async (input, context) => {
|
|
|
93
103
|
body = JSON.stringify(serializeAws_json1_1CreateFaqRequest(input, context));
|
|
94
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
105
|
};
|
|
106
|
+
export const serializeAws_json1_1CreateFeaturedResultsSetCommand = async (input, context) => {
|
|
107
|
+
const headers = {
|
|
108
|
+
"content-type": "application/x-amz-json-1.1",
|
|
109
|
+
"x-amz-target": "AWSKendraFrontendService.CreateFeaturedResultsSet",
|
|
110
|
+
};
|
|
111
|
+
let body;
|
|
112
|
+
body = JSON.stringify(serializeAws_json1_1CreateFeaturedResultsSetRequest(input, context));
|
|
113
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
|
+
};
|
|
96
115
|
export const serializeAws_json1_1CreateIndexCommand = async (input, context) => {
|
|
97
116
|
const headers = {
|
|
98
117
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -228,6 +247,15 @@ export const serializeAws_json1_1DescribeFaqCommand = async (input, context) =>
|
|
|
228
247
|
body = JSON.stringify(serializeAws_json1_1DescribeFaqRequest(input, context));
|
|
229
248
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
230
249
|
};
|
|
250
|
+
export const serializeAws_json1_1DescribeFeaturedResultsSetCommand = async (input, context) => {
|
|
251
|
+
const headers = {
|
|
252
|
+
"content-type": "application/x-amz-json-1.1",
|
|
253
|
+
"x-amz-target": "AWSKendraFrontendService.DescribeFeaturedResultsSet",
|
|
254
|
+
};
|
|
255
|
+
let body;
|
|
256
|
+
body = JSON.stringify(serializeAws_json1_1DescribeFeaturedResultsSetRequest(input, context));
|
|
257
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
258
|
+
};
|
|
231
259
|
export const serializeAws_json1_1DescribeIndexCommand = async (input, context) => {
|
|
232
260
|
const headers = {
|
|
233
261
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -372,6 +400,15 @@ export const serializeAws_json1_1ListFaqsCommand = async (input, context) => {
|
|
|
372
400
|
body = JSON.stringify(serializeAws_json1_1ListFaqsRequest(input, context));
|
|
373
401
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
374
402
|
};
|
|
403
|
+
export const serializeAws_json1_1ListFeaturedResultsSetsCommand = async (input, context) => {
|
|
404
|
+
const headers = {
|
|
405
|
+
"content-type": "application/x-amz-json-1.1",
|
|
406
|
+
"x-amz-target": "AWSKendraFrontendService.ListFeaturedResultsSets",
|
|
407
|
+
};
|
|
408
|
+
let body;
|
|
409
|
+
body = JSON.stringify(serializeAws_json1_1ListFeaturedResultsSetsRequest(input, context));
|
|
410
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
411
|
+
};
|
|
375
412
|
export const serializeAws_json1_1ListGroupsOlderThanOrderingIdCommand = async (input, context) => {
|
|
376
413
|
const headers = {
|
|
377
414
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -507,6 +544,15 @@ export const serializeAws_json1_1UpdateExperienceCommand = async (input, context
|
|
|
507
544
|
body = JSON.stringify(serializeAws_json1_1UpdateExperienceRequest(input, context));
|
|
508
545
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
509
546
|
};
|
|
547
|
+
export const serializeAws_json1_1UpdateFeaturedResultsSetCommand = async (input, context) => {
|
|
548
|
+
const headers = {
|
|
549
|
+
"content-type": "application/x-amz-json-1.1",
|
|
550
|
+
"x-amz-target": "AWSKendraFrontendService.UpdateFeaturedResultsSet",
|
|
551
|
+
};
|
|
552
|
+
let body;
|
|
553
|
+
body = JSON.stringify(serializeAws_json1_1UpdateFeaturedResultsSetRequest(input, context));
|
|
554
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
555
|
+
};
|
|
510
556
|
export const serializeAws_json1_1UpdateIndexCommand = async (input, context) => {
|
|
511
557
|
const headers = {
|
|
512
558
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -687,6 +733,51 @@ const deserializeAws_json1_1BatchDeleteDocumentCommandError = async (output, con
|
|
|
687
733
|
});
|
|
688
734
|
}
|
|
689
735
|
};
|
|
736
|
+
export const deserializeAws_json1_1BatchDeleteFeaturedResultsSetCommand = async (output, context) => {
|
|
737
|
+
if (output.statusCode >= 300) {
|
|
738
|
+
return deserializeAws_json1_1BatchDeleteFeaturedResultsSetCommandError(output, context);
|
|
739
|
+
}
|
|
740
|
+
const data = await parseBody(output.body, context);
|
|
741
|
+
let contents = {};
|
|
742
|
+
contents = deserializeAws_json1_1BatchDeleteFeaturedResultsSetResponse(data, context);
|
|
743
|
+
const response = {
|
|
744
|
+
$metadata: deserializeMetadata(output),
|
|
745
|
+
...contents,
|
|
746
|
+
};
|
|
747
|
+
return Promise.resolve(response);
|
|
748
|
+
};
|
|
749
|
+
const deserializeAws_json1_1BatchDeleteFeaturedResultsSetCommandError = async (output, context) => {
|
|
750
|
+
const parsedOutput = {
|
|
751
|
+
...output,
|
|
752
|
+
body: await parseErrorBody(output.body, context),
|
|
753
|
+
};
|
|
754
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
755
|
+
switch (errorCode) {
|
|
756
|
+
case "AccessDeniedException":
|
|
757
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
758
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
759
|
+
case "InternalServerException":
|
|
760
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
761
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
762
|
+
case "ResourceNotFoundException":
|
|
763
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
764
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
765
|
+
case "ThrottlingException":
|
|
766
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
767
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
768
|
+
case "ValidationException":
|
|
769
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
770
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
771
|
+
default:
|
|
772
|
+
const parsedBody = parsedOutput.body;
|
|
773
|
+
throwDefaultError({
|
|
774
|
+
output,
|
|
775
|
+
parsedBody,
|
|
776
|
+
exceptionCtor: __BaseException,
|
|
777
|
+
errorCode,
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
};
|
|
690
781
|
export const deserializeAws_json1_1BatchGetDocumentStatusCommand = async (output, context) => {
|
|
691
782
|
if (output.statusCode >= 300) {
|
|
692
783
|
return deserializeAws_json1_1BatchGetDocumentStatusCommandError(output, context);
|
|
@@ -1038,6 +1129,57 @@ const deserializeAws_json1_1CreateFaqCommandError = async (output, context) => {
|
|
|
1038
1129
|
});
|
|
1039
1130
|
}
|
|
1040
1131
|
};
|
|
1132
|
+
export const deserializeAws_json1_1CreateFeaturedResultsSetCommand = async (output, context) => {
|
|
1133
|
+
if (output.statusCode >= 300) {
|
|
1134
|
+
return deserializeAws_json1_1CreateFeaturedResultsSetCommandError(output, context);
|
|
1135
|
+
}
|
|
1136
|
+
const data = await parseBody(output.body, context);
|
|
1137
|
+
let contents = {};
|
|
1138
|
+
contents = deserializeAws_json1_1CreateFeaturedResultsSetResponse(data, context);
|
|
1139
|
+
const response = {
|
|
1140
|
+
$metadata: deserializeMetadata(output),
|
|
1141
|
+
...contents,
|
|
1142
|
+
};
|
|
1143
|
+
return Promise.resolve(response);
|
|
1144
|
+
};
|
|
1145
|
+
const deserializeAws_json1_1CreateFeaturedResultsSetCommandError = async (output, context) => {
|
|
1146
|
+
const parsedOutput = {
|
|
1147
|
+
...output,
|
|
1148
|
+
body: await parseErrorBody(output.body, context),
|
|
1149
|
+
};
|
|
1150
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1151
|
+
switch (errorCode) {
|
|
1152
|
+
case "AccessDeniedException":
|
|
1153
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1154
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1155
|
+
case "ConflictException":
|
|
1156
|
+
case "com.amazonaws.kendra#ConflictException":
|
|
1157
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1158
|
+
case "FeaturedResultsConflictException":
|
|
1159
|
+
case "com.amazonaws.kendra#FeaturedResultsConflictException":
|
|
1160
|
+
throw await deserializeAws_json1_1FeaturedResultsConflictExceptionResponse(parsedOutput, context);
|
|
1161
|
+
case "InternalServerException":
|
|
1162
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
1163
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1164
|
+
case "ResourceNotFoundException":
|
|
1165
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1166
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1167
|
+
case "ThrottlingException":
|
|
1168
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
1169
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1170
|
+
case "ValidationException":
|
|
1171
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
1172
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1173
|
+
default:
|
|
1174
|
+
const parsedBody = parsedOutput.body;
|
|
1175
|
+
throwDefaultError({
|
|
1176
|
+
output,
|
|
1177
|
+
parsedBody,
|
|
1178
|
+
exceptionCtor: __BaseException,
|
|
1179
|
+
errorCode,
|
|
1180
|
+
});
|
|
1181
|
+
}
|
|
1182
|
+
};
|
|
1041
1183
|
export const deserializeAws_json1_1CreateIndexCommand = async (output, context) => {
|
|
1042
1184
|
if (output.statusCode >= 300) {
|
|
1043
1185
|
return deserializeAws_json1_1CreateIndexCommandError(output, context);
|
|
@@ -1737,6 +1879,51 @@ const deserializeAws_json1_1DescribeFaqCommandError = async (output, context) =>
|
|
|
1737
1879
|
});
|
|
1738
1880
|
}
|
|
1739
1881
|
};
|
|
1882
|
+
export const deserializeAws_json1_1DescribeFeaturedResultsSetCommand = async (output, context) => {
|
|
1883
|
+
if (output.statusCode >= 300) {
|
|
1884
|
+
return deserializeAws_json1_1DescribeFeaturedResultsSetCommandError(output, context);
|
|
1885
|
+
}
|
|
1886
|
+
const data = await parseBody(output.body, context);
|
|
1887
|
+
let contents = {};
|
|
1888
|
+
contents = deserializeAws_json1_1DescribeFeaturedResultsSetResponse(data, context);
|
|
1889
|
+
const response = {
|
|
1890
|
+
$metadata: deserializeMetadata(output),
|
|
1891
|
+
...contents,
|
|
1892
|
+
};
|
|
1893
|
+
return Promise.resolve(response);
|
|
1894
|
+
};
|
|
1895
|
+
const deserializeAws_json1_1DescribeFeaturedResultsSetCommandError = async (output, context) => {
|
|
1896
|
+
const parsedOutput = {
|
|
1897
|
+
...output,
|
|
1898
|
+
body: await parseErrorBody(output.body, context),
|
|
1899
|
+
};
|
|
1900
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1901
|
+
switch (errorCode) {
|
|
1902
|
+
case "AccessDeniedException":
|
|
1903
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1904
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1905
|
+
case "InternalServerException":
|
|
1906
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
1907
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1908
|
+
case "ResourceNotFoundException":
|
|
1909
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1910
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1911
|
+
case "ThrottlingException":
|
|
1912
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
1913
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1914
|
+
case "ValidationException":
|
|
1915
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
1916
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1917
|
+
default:
|
|
1918
|
+
const parsedBody = parsedOutput.body;
|
|
1919
|
+
throwDefaultError({
|
|
1920
|
+
output,
|
|
1921
|
+
parsedBody,
|
|
1922
|
+
exceptionCtor: __BaseException,
|
|
1923
|
+
errorCode,
|
|
1924
|
+
});
|
|
1925
|
+
}
|
|
1926
|
+
};
|
|
1740
1927
|
export const deserializeAws_json1_1DescribeIndexCommand = async (output, context) => {
|
|
1741
1928
|
if (output.statusCode >= 300) {
|
|
1742
1929
|
return deserializeAws_json1_1DescribeIndexCommandError(output, context);
|
|
@@ -2463,6 +2650,51 @@ const deserializeAws_json1_1ListFaqsCommandError = async (output, context) => {
|
|
|
2463
2650
|
});
|
|
2464
2651
|
}
|
|
2465
2652
|
};
|
|
2653
|
+
export const deserializeAws_json1_1ListFeaturedResultsSetsCommand = async (output, context) => {
|
|
2654
|
+
if (output.statusCode >= 300) {
|
|
2655
|
+
return deserializeAws_json1_1ListFeaturedResultsSetsCommandError(output, context);
|
|
2656
|
+
}
|
|
2657
|
+
const data = await parseBody(output.body, context);
|
|
2658
|
+
let contents = {};
|
|
2659
|
+
contents = deserializeAws_json1_1ListFeaturedResultsSetsResponse(data, context);
|
|
2660
|
+
const response = {
|
|
2661
|
+
$metadata: deserializeMetadata(output),
|
|
2662
|
+
...contents,
|
|
2663
|
+
};
|
|
2664
|
+
return Promise.resolve(response);
|
|
2665
|
+
};
|
|
2666
|
+
const deserializeAws_json1_1ListFeaturedResultsSetsCommandError = async (output, context) => {
|
|
2667
|
+
const parsedOutput = {
|
|
2668
|
+
...output,
|
|
2669
|
+
body: await parseErrorBody(output.body, context),
|
|
2670
|
+
};
|
|
2671
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2672
|
+
switch (errorCode) {
|
|
2673
|
+
case "AccessDeniedException":
|
|
2674
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2675
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2676
|
+
case "InternalServerException":
|
|
2677
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
2678
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2679
|
+
case "ResourceNotFoundException":
|
|
2680
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2681
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2682
|
+
case "ThrottlingException":
|
|
2683
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
2684
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2685
|
+
case "ValidationException":
|
|
2686
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
2687
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2688
|
+
default:
|
|
2689
|
+
const parsedBody = parsedOutput.body;
|
|
2690
|
+
throwDefaultError({
|
|
2691
|
+
output,
|
|
2692
|
+
parsedBody,
|
|
2693
|
+
exceptionCtor: __BaseException,
|
|
2694
|
+
errorCode,
|
|
2695
|
+
});
|
|
2696
|
+
}
|
|
2697
|
+
};
|
|
2466
2698
|
export const deserializeAws_json1_1ListGroupsOlderThanOrderingIdCommand = async (output, context) => {
|
|
2467
2699
|
if (output.statusCode >= 300) {
|
|
2468
2700
|
return deserializeAws_json1_1ListGroupsOlderThanOrderingIdCommandError(output, context);
|
|
@@ -3156,6 +3388,54 @@ const deserializeAws_json1_1UpdateExperienceCommandError = async (output, contex
|
|
|
3156
3388
|
});
|
|
3157
3389
|
}
|
|
3158
3390
|
};
|
|
3391
|
+
export const deserializeAws_json1_1UpdateFeaturedResultsSetCommand = async (output, context) => {
|
|
3392
|
+
if (output.statusCode >= 300) {
|
|
3393
|
+
return deserializeAws_json1_1UpdateFeaturedResultsSetCommandError(output, context);
|
|
3394
|
+
}
|
|
3395
|
+
const data = await parseBody(output.body, context);
|
|
3396
|
+
let contents = {};
|
|
3397
|
+
contents = deserializeAws_json1_1UpdateFeaturedResultsSetResponse(data, context);
|
|
3398
|
+
const response = {
|
|
3399
|
+
$metadata: deserializeMetadata(output),
|
|
3400
|
+
...contents,
|
|
3401
|
+
};
|
|
3402
|
+
return Promise.resolve(response);
|
|
3403
|
+
};
|
|
3404
|
+
const deserializeAws_json1_1UpdateFeaturedResultsSetCommandError = async (output, context) => {
|
|
3405
|
+
const parsedOutput = {
|
|
3406
|
+
...output,
|
|
3407
|
+
body: await parseErrorBody(output.body, context),
|
|
3408
|
+
};
|
|
3409
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3410
|
+
switch (errorCode) {
|
|
3411
|
+
case "AccessDeniedException":
|
|
3412
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3413
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3414
|
+
case "FeaturedResultsConflictException":
|
|
3415
|
+
case "com.amazonaws.kendra#FeaturedResultsConflictException":
|
|
3416
|
+
throw await deserializeAws_json1_1FeaturedResultsConflictExceptionResponse(parsedOutput, context);
|
|
3417
|
+
case "InternalServerException":
|
|
3418
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
3419
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
3420
|
+
case "ResourceNotFoundException":
|
|
3421
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3422
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3423
|
+
case "ThrottlingException":
|
|
3424
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
3425
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3426
|
+
case "ValidationException":
|
|
3427
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
3428
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3429
|
+
default:
|
|
3430
|
+
const parsedBody = parsedOutput.body;
|
|
3431
|
+
throwDefaultError({
|
|
3432
|
+
output,
|
|
3433
|
+
parsedBody,
|
|
3434
|
+
exceptionCtor: __BaseException,
|
|
3435
|
+
errorCode,
|
|
3436
|
+
});
|
|
3437
|
+
}
|
|
3438
|
+
};
|
|
3159
3439
|
export const deserializeAws_json1_1UpdateIndexCommand = async (output, context) => {
|
|
3160
3440
|
if (output.statusCode >= 300) {
|
|
3161
3441
|
return deserializeAws_json1_1UpdateIndexCommandError(output, context);
|
|
@@ -3357,6 +3637,15 @@ const deserializeAws_json1_1ConflictExceptionResponse = async (parsedOutput, con
|
|
|
3357
3637
|
});
|
|
3358
3638
|
return __decorateServiceException(exception, body);
|
|
3359
3639
|
};
|
|
3640
|
+
const deserializeAws_json1_1FeaturedResultsConflictExceptionResponse = async (parsedOutput, context) => {
|
|
3641
|
+
const body = parsedOutput.body;
|
|
3642
|
+
const deserialized = deserializeAws_json1_1FeaturedResultsConflictException(body, context);
|
|
3643
|
+
const exception = new FeaturedResultsConflictException({
|
|
3644
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3645
|
+
...deserialized,
|
|
3646
|
+
});
|
|
3647
|
+
return __decorateServiceException(exception, body);
|
|
3648
|
+
};
|
|
3360
3649
|
const deserializeAws_json1_1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
3361
3650
|
const body = parsedOutput.body;
|
|
3362
3651
|
const deserialized = deserializeAws_json1_1InternalServerException(body, context);
|
|
@@ -3569,6 +3858,14 @@ const serializeAws_json1_1BatchDeleteDocumentRequest = (input, context) => {
|
|
|
3569
3858
|
...(input.IndexId != null && { IndexId: input.IndexId }),
|
|
3570
3859
|
};
|
|
3571
3860
|
};
|
|
3861
|
+
const serializeAws_json1_1BatchDeleteFeaturedResultsSetRequest = (input, context) => {
|
|
3862
|
+
return {
|
|
3863
|
+
...(input.FeaturedResultsSetIds != null && {
|
|
3864
|
+
FeaturedResultsSetIds: serializeAws_json1_1FeaturedResultsSetIdList(input.FeaturedResultsSetIds, context),
|
|
3865
|
+
}),
|
|
3866
|
+
...(input.IndexId != null && { IndexId: input.IndexId }),
|
|
3867
|
+
};
|
|
3868
|
+
};
|
|
3572
3869
|
const serializeAws_json1_1BatchGetDocumentStatusRequest = (input, context) => {
|
|
3573
3870
|
return {
|
|
3574
3871
|
...(input.DocumentInfoList != null && {
|
|
@@ -3873,6 +4170,20 @@ const serializeAws_json1_1CreateFaqRequest = (input, context) => {
|
|
|
3873
4170
|
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3874
4171
|
};
|
|
3875
4172
|
};
|
|
4173
|
+
const serializeAws_json1_1CreateFeaturedResultsSetRequest = (input, context) => {
|
|
4174
|
+
return {
|
|
4175
|
+
...(input.ClientToken != null && { ClientToken: input.ClientToken }),
|
|
4176
|
+
...(input.Description != null && { Description: input.Description }),
|
|
4177
|
+
...(input.FeaturedDocuments != null && {
|
|
4178
|
+
FeaturedDocuments: serializeAws_json1_1FeaturedDocumentList(input.FeaturedDocuments, context),
|
|
4179
|
+
}),
|
|
4180
|
+
...(input.FeaturedResultsSetName != null && { FeaturedResultsSetName: input.FeaturedResultsSetName }),
|
|
4181
|
+
...(input.IndexId != null && { IndexId: input.IndexId }),
|
|
4182
|
+
...(input.QueryTexts != null && { QueryTexts: serializeAws_json1_1QueryTextList(input.QueryTexts, context) }),
|
|
4183
|
+
...(input.Status != null && { Status: input.Status }),
|
|
4184
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4185
|
+
};
|
|
4186
|
+
};
|
|
3876
4187
|
const serializeAws_json1_1CreateIndexRequest = (input, context) => {
|
|
3877
4188
|
return {
|
|
3878
4189
|
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
@@ -4135,6 +4446,12 @@ const serializeAws_json1_1DescribeFaqRequest = (input, context) => {
|
|
|
4135
4446
|
...(input.IndexId != null && { IndexId: input.IndexId }),
|
|
4136
4447
|
};
|
|
4137
4448
|
};
|
|
4449
|
+
const serializeAws_json1_1DescribeFeaturedResultsSetRequest = (input, context) => {
|
|
4450
|
+
return {
|
|
4451
|
+
...(input.FeaturedResultsSetId != null && { FeaturedResultsSetId: input.FeaturedResultsSetId }),
|
|
4452
|
+
...(input.IndexId != null && { IndexId: input.IndexId }),
|
|
4453
|
+
};
|
|
4454
|
+
};
|
|
4138
4455
|
const serializeAws_json1_1DescribeIndexRequest = (input, context) => {
|
|
4139
4456
|
return {
|
|
4140
4457
|
...(input.Id != null && { Id: input.Id }),
|
|
@@ -4414,6 +4731,25 @@ const serializeAws_json1_1FaqIdsList = (input, context) => {
|
|
|
4414
4731
|
return entry;
|
|
4415
4732
|
});
|
|
4416
4733
|
};
|
|
4734
|
+
const serializeAws_json1_1FeaturedDocument = (input, context) => {
|
|
4735
|
+
return {
|
|
4736
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4737
|
+
};
|
|
4738
|
+
};
|
|
4739
|
+
const serializeAws_json1_1FeaturedDocumentList = (input, context) => {
|
|
4740
|
+
return input
|
|
4741
|
+
.filter((e) => e != null)
|
|
4742
|
+
.map((entry) => {
|
|
4743
|
+
return serializeAws_json1_1FeaturedDocument(entry, context);
|
|
4744
|
+
});
|
|
4745
|
+
};
|
|
4746
|
+
const serializeAws_json1_1FeaturedResultsSetIdList = (input, context) => {
|
|
4747
|
+
return input
|
|
4748
|
+
.filter((e) => e != null)
|
|
4749
|
+
.map((entry) => {
|
|
4750
|
+
return entry;
|
|
4751
|
+
});
|
|
4752
|
+
};
|
|
4417
4753
|
const serializeAws_json1_1FolderIdList = (input, context) => {
|
|
4418
4754
|
return input
|
|
4419
4755
|
.filter((e) => e != null)
|
|
@@ -4743,6 +5079,13 @@ const serializeAws_json1_1ListFaqsRequest = (input, context) => {
|
|
|
4743
5079
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4744
5080
|
};
|
|
4745
5081
|
};
|
|
5082
|
+
const serializeAws_json1_1ListFeaturedResultsSetsRequest = (input, context) => {
|
|
5083
|
+
return {
|
|
5084
|
+
...(input.IndexId != null && { IndexId: input.IndexId }),
|
|
5085
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
5086
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
5087
|
+
};
|
|
5088
|
+
};
|
|
4746
5089
|
const serializeAws_json1_1ListGroupsOlderThanOrderingIdRequest = (input, context) => {
|
|
4747
5090
|
return {
|
|
4748
5091
|
...(input.DataSourceId != null && { DataSourceId: input.DataSourceId }),
|
|
@@ -4927,6 +5270,13 @@ const serializeAws_json1_1QueryRequest = (input, context) => {
|
|
|
4927
5270
|
...(input.VisitorId != null && { VisitorId: input.VisitorId }),
|
|
4928
5271
|
};
|
|
4929
5272
|
};
|
|
5273
|
+
const serializeAws_json1_1QueryTextList = (input, context) => {
|
|
5274
|
+
return input
|
|
5275
|
+
.filter((e) => e != null)
|
|
5276
|
+
.map((entry) => {
|
|
5277
|
+
return entry;
|
|
5278
|
+
});
|
|
5279
|
+
};
|
|
4930
5280
|
const serializeAws_json1_1QuipConfiguration = (input, context) => {
|
|
4931
5281
|
return {
|
|
4932
5282
|
...(input.AttachmentFieldMappings != null && {
|
|
@@ -5451,6 +5801,19 @@ const serializeAws_json1_1UpdateExperienceRequest = (input, context) => {
|
|
|
5451
5801
|
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
5452
5802
|
};
|
|
5453
5803
|
};
|
|
5804
|
+
const serializeAws_json1_1UpdateFeaturedResultsSetRequest = (input, context) => {
|
|
5805
|
+
return {
|
|
5806
|
+
...(input.Description != null && { Description: input.Description }),
|
|
5807
|
+
...(input.FeaturedDocuments != null && {
|
|
5808
|
+
FeaturedDocuments: serializeAws_json1_1FeaturedDocumentList(input.FeaturedDocuments, context),
|
|
5809
|
+
}),
|
|
5810
|
+
...(input.FeaturedResultsSetId != null && { FeaturedResultsSetId: input.FeaturedResultsSetId }),
|
|
5811
|
+
...(input.FeaturedResultsSetName != null && { FeaturedResultsSetName: input.FeaturedResultsSetName }),
|
|
5812
|
+
...(input.IndexId != null && { IndexId: input.IndexId }),
|
|
5813
|
+
...(input.QueryTexts != null && { QueryTexts: serializeAws_json1_1QueryTextList(input.QueryTexts, context) }),
|
|
5814
|
+
...(input.Status != null && { Status: input.Status }),
|
|
5815
|
+
};
|
|
5816
|
+
};
|
|
5454
5817
|
const serializeAws_json1_1UpdateIndexRequest = (input, context) => {
|
|
5455
5818
|
return {
|
|
5456
5819
|
...(input.CapacityUnits != null && {
|
|
@@ -5765,6 +6128,31 @@ const deserializeAws_json1_1BatchDeleteDocumentResponseFailedDocuments = (output
|
|
|
5765
6128
|
});
|
|
5766
6129
|
return retVal;
|
|
5767
6130
|
};
|
|
6131
|
+
const deserializeAws_json1_1BatchDeleteFeaturedResultsSetError = (output, context) => {
|
|
6132
|
+
return {
|
|
6133
|
+
ErrorCode: __expectString(output.ErrorCode),
|
|
6134
|
+
ErrorMessage: __expectString(output.ErrorMessage),
|
|
6135
|
+
Id: __expectString(output.Id),
|
|
6136
|
+
};
|
|
6137
|
+
};
|
|
6138
|
+
const deserializeAws_json1_1BatchDeleteFeaturedResultsSetErrors = (output, context) => {
|
|
6139
|
+
const retVal = (output || [])
|
|
6140
|
+
.filter((e) => e != null)
|
|
6141
|
+
.map((entry) => {
|
|
6142
|
+
if (entry === null) {
|
|
6143
|
+
return null;
|
|
6144
|
+
}
|
|
6145
|
+
return deserializeAws_json1_1BatchDeleteFeaturedResultsSetError(entry, context);
|
|
6146
|
+
});
|
|
6147
|
+
return retVal;
|
|
6148
|
+
};
|
|
6149
|
+
const deserializeAws_json1_1BatchDeleteFeaturedResultsSetResponse = (output, context) => {
|
|
6150
|
+
return {
|
|
6151
|
+
Errors: output.Errors != null
|
|
6152
|
+
? deserializeAws_json1_1BatchDeleteFeaturedResultsSetErrors(output.Errors, context)
|
|
6153
|
+
: undefined,
|
|
6154
|
+
};
|
|
6155
|
+
};
|
|
5768
6156
|
const deserializeAws_json1_1BatchGetDocumentStatusResponse = (output, context) => {
|
|
5769
6157
|
return {
|
|
5770
6158
|
DocumentStatusList: output.DocumentStatusList != null
|
|
@@ -5884,6 +6272,24 @@ const deserializeAws_json1_1ConflictException = (output, context) => {
|
|
|
5884
6272
|
Message: __expectString(output.Message),
|
|
5885
6273
|
};
|
|
5886
6274
|
};
|
|
6275
|
+
const deserializeAws_json1_1ConflictingItem = (output, context) => {
|
|
6276
|
+
return {
|
|
6277
|
+
QueryText: __expectString(output.QueryText),
|
|
6278
|
+
SetId: __expectString(output.SetId),
|
|
6279
|
+
SetName: __expectString(output.SetName),
|
|
6280
|
+
};
|
|
6281
|
+
};
|
|
6282
|
+
const deserializeAws_json1_1ConflictingItems = (output, context) => {
|
|
6283
|
+
const retVal = (output || [])
|
|
6284
|
+
.filter((e) => e != null)
|
|
6285
|
+
.map((entry) => {
|
|
6286
|
+
if (entry === null) {
|
|
6287
|
+
return null;
|
|
6288
|
+
}
|
|
6289
|
+
return deserializeAws_json1_1ConflictingItem(entry, context);
|
|
6290
|
+
});
|
|
6291
|
+
return retVal;
|
|
6292
|
+
};
|
|
5887
6293
|
const deserializeAws_json1_1ConfluenceAttachmentConfiguration = (output, context) => {
|
|
5888
6294
|
return {
|
|
5889
6295
|
AttachmentFieldMappings: output.AttachmentFieldMappings != null
|
|
@@ -6091,6 +6497,13 @@ const deserializeAws_json1_1CreateFaqResponse = (output, context) => {
|
|
|
6091
6497
|
Id: __expectString(output.Id),
|
|
6092
6498
|
};
|
|
6093
6499
|
};
|
|
6500
|
+
const deserializeAws_json1_1CreateFeaturedResultsSetResponse = (output, context) => {
|
|
6501
|
+
return {
|
|
6502
|
+
FeaturedResultsSet: output.FeaturedResultsSet != null
|
|
6503
|
+
? deserializeAws_json1_1FeaturedResultsSet(output.FeaturedResultsSet, context)
|
|
6504
|
+
: undefined,
|
|
6505
|
+
};
|
|
6506
|
+
};
|
|
6094
6507
|
const deserializeAws_json1_1CreateIndexResponse = (output, context) => {
|
|
6095
6508
|
return {
|
|
6096
6509
|
Id: __expectString(output.Id),
|
|
@@ -6377,6 +6790,23 @@ const deserializeAws_json1_1DescribeFaqResponse = (output, context) => {
|
|
|
6377
6790
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
6378
6791
|
};
|
|
6379
6792
|
};
|
|
6793
|
+
const deserializeAws_json1_1DescribeFeaturedResultsSetResponse = (output, context) => {
|
|
6794
|
+
return {
|
|
6795
|
+
CreationTimestamp: __expectLong(output.CreationTimestamp),
|
|
6796
|
+
Description: __expectString(output.Description),
|
|
6797
|
+
FeaturedDocumentsMissing: output.FeaturedDocumentsMissing != null
|
|
6798
|
+
? deserializeAws_json1_1FeaturedDocumentMissingList(output.FeaturedDocumentsMissing, context)
|
|
6799
|
+
: undefined,
|
|
6800
|
+
FeaturedDocumentsWithMetadata: output.FeaturedDocumentsWithMetadata != null
|
|
6801
|
+
? deserializeAws_json1_1FeaturedDocumentWithMetadataList(output.FeaturedDocumentsWithMetadata, context)
|
|
6802
|
+
: undefined,
|
|
6803
|
+
FeaturedResultsSetId: __expectString(output.FeaturedResultsSetId),
|
|
6804
|
+
FeaturedResultsSetName: __expectString(output.FeaturedResultsSetName),
|
|
6805
|
+
LastUpdatedTimestamp: __expectLong(output.LastUpdatedTimestamp),
|
|
6806
|
+
QueryTexts: output.QueryTexts != null ? deserializeAws_json1_1QueryTextList(output.QueryTexts, context) : undefined,
|
|
6807
|
+
Status: __expectString(output.Status),
|
|
6808
|
+
};
|
|
6809
|
+
};
|
|
6380
6810
|
const deserializeAws_json1_1DescribeIndexResponse = (output, context) => {
|
|
6381
6811
|
return {
|
|
6382
6812
|
CapacityUnits: output.CapacityUnits != null
|
|
@@ -6787,6 +7217,130 @@ const deserializeAws_json1_1FaqSummaryItems = (output, context) => {
|
|
|
6787
7217
|
});
|
|
6788
7218
|
return retVal;
|
|
6789
7219
|
};
|
|
7220
|
+
const deserializeAws_json1_1FeaturedDocument = (output, context) => {
|
|
7221
|
+
return {
|
|
7222
|
+
Id: __expectString(output.Id),
|
|
7223
|
+
};
|
|
7224
|
+
};
|
|
7225
|
+
const deserializeAws_json1_1FeaturedDocumentList = (output, context) => {
|
|
7226
|
+
const retVal = (output || [])
|
|
7227
|
+
.filter((e) => e != null)
|
|
7228
|
+
.map((entry) => {
|
|
7229
|
+
if (entry === null) {
|
|
7230
|
+
return null;
|
|
7231
|
+
}
|
|
7232
|
+
return deserializeAws_json1_1FeaturedDocument(entry, context);
|
|
7233
|
+
});
|
|
7234
|
+
return retVal;
|
|
7235
|
+
};
|
|
7236
|
+
const deserializeAws_json1_1FeaturedDocumentMissing = (output, context) => {
|
|
7237
|
+
return {
|
|
7238
|
+
Id: __expectString(output.Id),
|
|
7239
|
+
};
|
|
7240
|
+
};
|
|
7241
|
+
const deserializeAws_json1_1FeaturedDocumentMissingList = (output, context) => {
|
|
7242
|
+
const retVal = (output || [])
|
|
7243
|
+
.filter((e) => e != null)
|
|
7244
|
+
.map((entry) => {
|
|
7245
|
+
if (entry === null) {
|
|
7246
|
+
return null;
|
|
7247
|
+
}
|
|
7248
|
+
return deserializeAws_json1_1FeaturedDocumentMissing(entry, context);
|
|
7249
|
+
});
|
|
7250
|
+
return retVal;
|
|
7251
|
+
};
|
|
7252
|
+
const deserializeAws_json1_1FeaturedDocumentWithMetadata = (output, context) => {
|
|
7253
|
+
return {
|
|
7254
|
+
Id: __expectString(output.Id),
|
|
7255
|
+
Title: __expectString(output.Title),
|
|
7256
|
+
URI: __expectString(output.URI),
|
|
7257
|
+
};
|
|
7258
|
+
};
|
|
7259
|
+
const deserializeAws_json1_1FeaturedDocumentWithMetadataList = (output, context) => {
|
|
7260
|
+
const retVal = (output || [])
|
|
7261
|
+
.filter((e) => e != null)
|
|
7262
|
+
.map((entry) => {
|
|
7263
|
+
if (entry === null) {
|
|
7264
|
+
return null;
|
|
7265
|
+
}
|
|
7266
|
+
return deserializeAws_json1_1FeaturedDocumentWithMetadata(entry, context);
|
|
7267
|
+
});
|
|
7268
|
+
return retVal;
|
|
7269
|
+
};
|
|
7270
|
+
const deserializeAws_json1_1FeaturedResultsConflictException = (output, context) => {
|
|
7271
|
+
return {
|
|
7272
|
+
ConflictingItems: output.ConflictingItems != null
|
|
7273
|
+
? deserializeAws_json1_1ConflictingItems(output.ConflictingItems, context)
|
|
7274
|
+
: undefined,
|
|
7275
|
+
Message: __expectString(output.Message),
|
|
7276
|
+
};
|
|
7277
|
+
};
|
|
7278
|
+
const deserializeAws_json1_1FeaturedResultsItem = (output, context) => {
|
|
7279
|
+
return {
|
|
7280
|
+
AdditionalAttributes: output.AdditionalAttributes != null
|
|
7281
|
+
? deserializeAws_json1_1AdditionalResultAttributeList(output.AdditionalAttributes, context)
|
|
7282
|
+
: undefined,
|
|
7283
|
+
DocumentAttributes: output.DocumentAttributes != null
|
|
7284
|
+
? deserializeAws_json1_1DocumentAttributeList(output.DocumentAttributes, context)
|
|
7285
|
+
: undefined,
|
|
7286
|
+
DocumentExcerpt: output.DocumentExcerpt != null
|
|
7287
|
+
? deserializeAws_json1_1TextWithHighlights(output.DocumentExcerpt, context)
|
|
7288
|
+
: undefined,
|
|
7289
|
+
DocumentId: __expectString(output.DocumentId),
|
|
7290
|
+
DocumentTitle: output.DocumentTitle != null
|
|
7291
|
+
? deserializeAws_json1_1TextWithHighlights(output.DocumentTitle, context)
|
|
7292
|
+
: undefined,
|
|
7293
|
+
DocumentURI: __expectString(output.DocumentURI),
|
|
7294
|
+
FeedbackToken: __expectString(output.FeedbackToken),
|
|
7295
|
+
Id: __expectString(output.Id),
|
|
7296
|
+
Type: __expectString(output.Type),
|
|
7297
|
+
};
|
|
7298
|
+
};
|
|
7299
|
+
const deserializeAws_json1_1FeaturedResultsItemList = (output, context) => {
|
|
7300
|
+
const retVal = (output || [])
|
|
7301
|
+
.filter((e) => e != null)
|
|
7302
|
+
.map((entry) => {
|
|
7303
|
+
if (entry === null) {
|
|
7304
|
+
return null;
|
|
7305
|
+
}
|
|
7306
|
+
return deserializeAws_json1_1FeaturedResultsItem(entry, context);
|
|
7307
|
+
});
|
|
7308
|
+
return retVal;
|
|
7309
|
+
};
|
|
7310
|
+
const deserializeAws_json1_1FeaturedResultsSet = (output, context) => {
|
|
7311
|
+
return {
|
|
7312
|
+
CreationTimestamp: __expectLong(output.CreationTimestamp),
|
|
7313
|
+
Description: __expectString(output.Description),
|
|
7314
|
+
FeaturedDocuments: output.FeaturedDocuments != null
|
|
7315
|
+
? deserializeAws_json1_1FeaturedDocumentList(output.FeaturedDocuments, context)
|
|
7316
|
+
: undefined,
|
|
7317
|
+
FeaturedResultsSetId: __expectString(output.FeaturedResultsSetId),
|
|
7318
|
+
FeaturedResultsSetName: __expectString(output.FeaturedResultsSetName),
|
|
7319
|
+
LastUpdatedTimestamp: __expectLong(output.LastUpdatedTimestamp),
|
|
7320
|
+
QueryTexts: output.QueryTexts != null ? deserializeAws_json1_1QueryTextList(output.QueryTexts, context) : undefined,
|
|
7321
|
+
Status: __expectString(output.Status),
|
|
7322
|
+
};
|
|
7323
|
+
};
|
|
7324
|
+
const deserializeAws_json1_1FeaturedResultsSetSummary = (output, context) => {
|
|
7325
|
+
return {
|
|
7326
|
+
CreationTimestamp: __expectLong(output.CreationTimestamp),
|
|
7327
|
+
FeaturedResultsSetId: __expectString(output.FeaturedResultsSetId),
|
|
7328
|
+
FeaturedResultsSetName: __expectString(output.FeaturedResultsSetName),
|
|
7329
|
+
LastUpdatedTimestamp: __expectLong(output.LastUpdatedTimestamp),
|
|
7330
|
+
Status: __expectString(output.Status),
|
|
7331
|
+
};
|
|
7332
|
+
};
|
|
7333
|
+
const deserializeAws_json1_1FeaturedResultsSetSummaryItems = (output, context) => {
|
|
7334
|
+
const retVal = (output || [])
|
|
7335
|
+
.filter((e) => e != null)
|
|
7336
|
+
.map((entry) => {
|
|
7337
|
+
if (entry === null) {
|
|
7338
|
+
return null;
|
|
7339
|
+
}
|
|
7340
|
+
return deserializeAws_json1_1FeaturedResultsSetSummary(entry, context);
|
|
7341
|
+
});
|
|
7342
|
+
return retVal;
|
|
7343
|
+
};
|
|
6790
7344
|
const deserializeAws_json1_1FolderIdList = (output, context) => {
|
|
6791
7345
|
const retVal = (output || [])
|
|
6792
7346
|
.filter((e) => e != null)
|
|
@@ -7205,6 +7759,14 @@ const deserializeAws_json1_1ListFaqsResponse = (output, context) => {
|
|
|
7205
7759
|
NextToken: __expectString(output.NextToken),
|
|
7206
7760
|
};
|
|
7207
7761
|
};
|
|
7762
|
+
const deserializeAws_json1_1ListFeaturedResultsSetsResponse = (output, context) => {
|
|
7763
|
+
return {
|
|
7764
|
+
FeaturedResultsSetSummaryItems: output.FeaturedResultsSetSummaryItems != null
|
|
7765
|
+
? deserializeAws_json1_1FeaturedResultsSetSummaryItems(output.FeaturedResultsSetSummaryItems, context)
|
|
7766
|
+
: undefined,
|
|
7767
|
+
NextToken: __expectString(output.NextToken),
|
|
7768
|
+
};
|
|
7769
|
+
};
|
|
7208
7770
|
const deserializeAws_json1_1ListGroupsOlderThanOrderingIdResponse = (output, context) => {
|
|
7209
7771
|
return {
|
|
7210
7772
|
GroupsSummaries: output.GroupsSummaries != null
|
|
@@ -7379,6 +7941,9 @@ const deserializeAws_json1_1PublicChannelFilter = (output, context) => {
|
|
|
7379
7941
|
const deserializeAws_json1_1QueryResult = (output, context) => {
|
|
7380
7942
|
return {
|
|
7381
7943
|
FacetResults: output.FacetResults != null ? deserializeAws_json1_1FacetResultList(output.FacetResults, context) : undefined,
|
|
7944
|
+
FeaturedResultsItems: output.FeaturedResultsItems != null
|
|
7945
|
+
? deserializeAws_json1_1FeaturedResultsItemList(output.FeaturedResultsItems, context)
|
|
7946
|
+
: undefined,
|
|
7382
7947
|
QueryId: __expectString(output.QueryId),
|
|
7383
7948
|
ResultItems: output.ResultItems != null ? deserializeAws_json1_1QueryResultItemList(output.ResultItems, context) : undefined,
|
|
7384
7949
|
SpellCorrectedQueries: output.SpellCorrectedQueries != null
|
|
@@ -7446,6 +8011,17 @@ const deserializeAws_json1_1QuerySuggestionsBlockListSummaryItems = (output, con
|
|
|
7446
8011
|
});
|
|
7447
8012
|
return retVal;
|
|
7448
8013
|
};
|
|
8014
|
+
const deserializeAws_json1_1QueryTextList = (output, context) => {
|
|
8015
|
+
const retVal = (output || [])
|
|
8016
|
+
.filter((e) => e != null)
|
|
8017
|
+
.map((entry) => {
|
|
8018
|
+
if (entry === null) {
|
|
8019
|
+
return null;
|
|
8020
|
+
}
|
|
8021
|
+
return __expectString(entry);
|
|
8022
|
+
});
|
|
8023
|
+
return retVal;
|
|
8024
|
+
};
|
|
7449
8025
|
const deserializeAws_json1_1QuipConfiguration = (output, context) => {
|
|
7450
8026
|
return {
|
|
7451
8027
|
AttachmentFieldMappings: output.AttachmentFieldMappings != null
|
|
@@ -8130,6 +8706,13 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
|
8130
8706
|
const deserializeAws_json1_1UpdateAccessControlConfigurationResponse = (output, context) => {
|
|
8131
8707
|
return {};
|
|
8132
8708
|
};
|
|
8709
|
+
const deserializeAws_json1_1UpdateFeaturedResultsSetResponse = (output, context) => {
|
|
8710
|
+
return {
|
|
8711
|
+
FeaturedResultsSet: output.FeaturedResultsSet != null
|
|
8712
|
+
? deserializeAws_json1_1FeaturedResultsSet(output.FeaturedResultsSet, context)
|
|
8713
|
+
: undefined,
|
|
8714
|
+
};
|
|
8715
|
+
};
|
|
8133
8716
|
const deserializeAws_json1_1Urls = (output, context) => {
|
|
8134
8717
|
return {
|
|
8135
8718
|
SeedUrlConfiguration: output.SeedUrlConfiguration != null
|