@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
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_json1_1UpdateThesaurusCommand = exports.deserializeAws_json1_1UpdateQuerySuggestionsConfigCommand = exports.deserializeAws_json1_1UpdateQuerySuggestionsBlockListCommand = exports.deserializeAws_json1_1UpdateIndexCommand = exports.deserializeAws_json1_1UpdateExperienceCommand = exports.deserializeAws_json1_1UpdateDataSourceCommand = exports.deserializeAws_json1_1UpdateAccessControlConfigurationCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1SubmitFeedbackCommand = exports.deserializeAws_json1_1StopDataSourceSyncJobCommand = exports.deserializeAws_json1_1StartDataSourceSyncJobCommand = exports.deserializeAws_json1_1QueryCommand = exports.deserializeAws_json1_1PutPrincipalMappingCommand = exports.deserializeAws_json1_1ListThesauriCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListQuerySuggestionsBlockListsCommand = exports.deserializeAws_json1_1ListIndicesCommand = exports.deserializeAws_json1_1ListGroupsOlderThanOrderingIdCommand = exports.deserializeAws_json1_1ListFaqsCommand = void 0;
|
|
3
|
+
exports.serializeAws_json1_1ListThesauriCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListQuerySuggestionsBlockListsCommand = exports.serializeAws_json1_1ListIndicesCommand = exports.serializeAws_json1_1ListGroupsOlderThanOrderingIdCommand = exports.serializeAws_json1_1ListFeaturedResultsSetsCommand = exports.serializeAws_json1_1ListFaqsCommand = exports.serializeAws_json1_1ListExperiencesCommand = exports.serializeAws_json1_1ListExperienceEntitiesCommand = exports.serializeAws_json1_1ListEntityPersonasCommand = exports.serializeAws_json1_1ListDataSourceSyncJobsCommand = exports.serializeAws_json1_1ListDataSourcesCommand = exports.serializeAws_json1_1ListAccessControlConfigurationsCommand = exports.serializeAws_json1_1GetSnapshotsCommand = exports.serializeAws_json1_1GetQuerySuggestionsCommand = exports.serializeAws_json1_1DisassociatePersonasFromEntitiesCommand = exports.serializeAws_json1_1DisassociateEntitiesFromExperienceCommand = exports.serializeAws_json1_1DescribeThesaurusCommand = exports.serializeAws_json1_1DescribeQuerySuggestionsConfigCommand = exports.serializeAws_json1_1DescribeQuerySuggestionsBlockListCommand = exports.serializeAws_json1_1DescribePrincipalMappingCommand = exports.serializeAws_json1_1DescribeIndexCommand = exports.serializeAws_json1_1DescribeFeaturedResultsSetCommand = exports.serializeAws_json1_1DescribeFaqCommand = exports.serializeAws_json1_1DescribeExperienceCommand = exports.serializeAws_json1_1DescribeDataSourceCommand = exports.serializeAws_json1_1DescribeAccessControlConfigurationCommand = exports.serializeAws_json1_1DeleteThesaurusCommand = exports.serializeAws_json1_1DeleteQuerySuggestionsBlockListCommand = exports.serializeAws_json1_1DeletePrincipalMappingCommand = exports.serializeAws_json1_1DeleteIndexCommand = exports.serializeAws_json1_1DeleteFaqCommand = exports.serializeAws_json1_1DeleteExperienceCommand = exports.serializeAws_json1_1DeleteDataSourceCommand = exports.serializeAws_json1_1DeleteAccessControlConfigurationCommand = exports.serializeAws_json1_1CreateThesaurusCommand = exports.serializeAws_json1_1CreateQuerySuggestionsBlockListCommand = exports.serializeAws_json1_1CreateIndexCommand = exports.serializeAws_json1_1CreateFeaturedResultsSetCommand = exports.serializeAws_json1_1CreateFaqCommand = exports.serializeAws_json1_1CreateExperienceCommand = exports.serializeAws_json1_1CreateDataSourceCommand = exports.serializeAws_json1_1CreateAccessControlConfigurationCommand = exports.serializeAws_json1_1ClearQuerySuggestionsCommand = exports.serializeAws_json1_1BatchPutDocumentCommand = exports.serializeAws_json1_1BatchGetDocumentStatusCommand = exports.serializeAws_json1_1BatchDeleteFeaturedResultsSetCommand = exports.serializeAws_json1_1BatchDeleteDocumentCommand = exports.serializeAws_json1_1AssociatePersonasToEntitiesCommand = exports.serializeAws_json1_1AssociateEntitiesToExperienceCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1DisassociatePersonasFromEntitiesCommand = exports.deserializeAws_json1_1DisassociateEntitiesFromExperienceCommand = exports.deserializeAws_json1_1DescribeThesaurusCommand = exports.deserializeAws_json1_1DescribeQuerySuggestionsConfigCommand = exports.deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommand = exports.deserializeAws_json1_1DescribePrincipalMappingCommand = exports.deserializeAws_json1_1DescribeIndexCommand = exports.deserializeAws_json1_1DescribeFeaturedResultsSetCommand = exports.deserializeAws_json1_1DescribeFaqCommand = exports.deserializeAws_json1_1DescribeExperienceCommand = exports.deserializeAws_json1_1DescribeDataSourceCommand = exports.deserializeAws_json1_1DescribeAccessControlConfigurationCommand = exports.deserializeAws_json1_1DeleteThesaurusCommand = exports.deserializeAws_json1_1DeleteQuerySuggestionsBlockListCommand = exports.deserializeAws_json1_1DeletePrincipalMappingCommand = exports.deserializeAws_json1_1DeleteIndexCommand = exports.deserializeAws_json1_1DeleteFaqCommand = exports.deserializeAws_json1_1DeleteExperienceCommand = exports.deserializeAws_json1_1DeleteDataSourceCommand = exports.deserializeAws_json1_1DeleteAccessControlConfigurationCommand = exports.deserializeAws_json1_1CreateThesaurusCommand = exports.deserializeAws_json1_1CreateQuerySuggestionsBlockListCommand = exports.deserializeAws_json1_1CreateIndexCommand = exports.deserializeAws_json1_1CreateFeaturedResultsSetCommand = exports.deserializeAws_json1_1CreateFaqCommand = exports.deserializeAws_json1_1CreateExperienceCommand = exports.deserializeAws_json1_1CreateDataSourceCommand = exports.deserializeAws_json1_1CreateAccessControlConfigurationCommand = exports.deserializeAws_json1_1ClearQuerySuggestionsCommand = exports.deserializeAws_json1_1BatchPutDocumentCommand = exports.deserializeAws_json1_1BatchGetDocumentStatusCommand = exports.deserializeAws_json1_1BatchDeleteFeaturedResultsSetCommand = exports.deserializeAws_json1_1BatchDeleteDocumentCommand = exports.deserializeAws_json1_1AssociatePersonasToEntitiesCommand = exports.deserializeAws_json1_1AssociateEntitiesToExperienceCommand = exports.serializeAws_json1_1UpdateThesaurusCommand = exports.serializeAws_json1_1UpdateQuerySuggestionsConfigCommand = exports.serializeAws_json1_1UpdateQuerySuggestionsBlockListCommand = exports.serializeAws_json1_1UpdateIndexCommand = exports.serializeAws_json1_1UpdateFeaturedResultsSetCommand = exports.serializeAws_json1_1UpdateExperienceCommand = exports.serializeAws_json1_1UpdateDataSourceCommand = exports.serializeAws_json1_1UpdateAccessControlConfigurationCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1SubmitFeedbackCommand = exports.serializeAws_json1_1StopDataSourceSyncJobCommand = exports.serializeAws_json1_1StartDataSourceSyncJobCommand = exports.serializeAws_json1_1QueryCommand = exports.serializeAws_json1_1PutPrincipalMappingCommand = void 0;
|
|
5
|
+
exports.deserializeAws_json1_1UpdateThesaurusCommand = exports.deserializeAws_json1_1UpdateQuerySuggestionsConfigCommand = exports.deserializeAws_json1_1UpdateQuerySuggestionsBlockListCommand = exports.deserializeAws_json1_1UpdateIndexCommand = exports.deserializeAws_json1_1UpdateFeaturedResultsSetCommand = exports.deserializeAws_json1_1UpdateExperienceCommand = exports.deserializeAws_json1_1UpdateDataSourceCommand = exports.deserializeAws_json1_1UpdateAccessControlConfigurationCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1SubmitFeedbackCommand = exports.deserializeAws_json1_1StopDataSourceSyncJobCommand = exports.deserializeAws_json1_1StartDataSourceSyncJobCommand = exports.deserializeAws_json1_1QueryCommand = exports.deserializeAws_json1_1PutPrincipalMappingCommand = exports.deserializeAws_json1_1ListThesauriCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListQuerySuggestionsBlockListsCommand = exports.deserializeAws_json1_1ListIndicesCommand = exports.deserializeAws_json1_1ListGroupsOlderThanOrderingIdCommand = exports.deserializeAws_json1_1ListFeaturedResultsSetsCommand = exports.deserializeAws_json1_1ListFaqsCommand = exports.deserializeAws_json1_1ListExperiencesCommand = exports.deserializeAws_json1_1ListExperienceEntitiesCommand = exports.deserializeAws_json1_1ListEntityPersonasCommand = exports.deserializeAws_json1_1ListDataSourceSyncJobsCommand = exports.deserializeAws_json1_1ListDataSourcesCommand = exports.deserializeAws_json1_1ListAccessControlConfigurationsCommand = exports.deserializeAws_json1_1GetSnapshotsCommand = exports.deserializeAws_json1_1GetQuerySuggestionsCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
9
9
|
const KendraServiceException_1 = require("../models/KendraServiceException");
|
|
10
10
|
const models_0_1 = require("../models/models_0");
|
|
11
|
+
const models_1_1 = require("../models/models_1");
|
|
11
12
|
const serializeAws_json1_1AssociateEntitiesToExperienceCommand = async (input, context) => {
|
|
12
13
|
const headers = {
|
|
13
14
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -38,6 +39,16 @@ const serializeAws_json1_1BatchDeleteDocumentCommand = async (input, context) =>
|
|
|
38
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
39
40
|
};
|
|
40
41
|
exports.serializeAws_json1_1BatchDeleteDocumentCommand = serializeAws_json1_1BatchDeleteDocumentCommand;
|
|
42
|
+
const serializeAws_json1_1BatchDeleteFeaturedResultsSetCommand = async (input, context) => {
|
|
43
|
+
const headers = {
|
|
44
|
+
"content-type": "application/x-amz-json-1.1",
|
|
45
|
+
"x-amz-target": "AWSKendraFrontendService.BatchDeleteFeaturedResultsSet",
|
|
46
|
+
};
|
|
47
|
+
let body;
|
|
48
|
+
body = JSON.stringify(serializeAws_json1_1BatchDeleteFeaturedResultsSetRequest(input, context));
|
|
49
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
|
+
};
|
|
51
|
+
exports.serializeAws_json1_1BatchDeleteFeaturedResultsSetCommand = serializeAws_json1_1BatchDeleteFeaturedResultsSetCommand;
|
|
41
52
|
const serializeAws_json1_1BatchGetDocumentStatusCommand = async (input, context) => {
|
|
42
53
|
const headers = {
|
|
43
54
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -108,6 +119,16 @@ const serializeAws_json1_1CreateFaqCommand = async (input, context) => {
|
|
|
108
119
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
109
120
|
};
|
|
110
121
|
exports.serializeAws_json1_1CreateFaqCommand = serializeAws_json1_1CreateFaqCommand;
|
|
122
|
+
const serializeAws_json1_1CreateFeaturedResultsSetCommand = async (input, context) => {
|
|
123
|
+
const headers = {
|
|
124
|
+
"content-type": "application/x-amz-json-1.1",
|
|
125
|
+
"x-amz-target": "AWSKendraFrontendService.CreateFeaturedResultsSet",
|
|
126
|
+
};
|
|
127
|
+
let body;
|
|
128
|
+
body = JSON.stringify(serializeAws_json1_1CreateFeaturedResultsSetRequest(input, context));
|
|
129
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
|
+
};
|
|
131
|
+
exports.serializeAws_json1_1CreateFeaturedResultsSetCommand = serializeAws_json1_1CreateFeaturedResultsSetCommand;
|
|
111
132
|
const serializeAws_json1_1CreateIndexCommand = async (input, context) => {
|
|
112
133
|
const headers = {
|
|
113
134
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -258,6 +279,16 @@ const serializeAws_json1_1DescribeFaqCommand = async (input, context) => {
|
|
|
258
279
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
259
280
|
};
|
|
260
281
|
exports.serializeAws_json1_1DescribeFaqCommand = serializeAws_json1_1DescribeFaqCommand;
|
|
282
|
+
const serializeAws_json1_1DescribeFeaturedResultsSetCommand = async (input, context) => {
|
|
283
|
+
const headers = {
|
|
284
|
+
"content-type": "application/x-amz-json-1.1",
|
|
285
|
+
"x-amz-target": "AWSKendraFrontendService.DescribeFeaturedResultsSet",
|
|
286
|
+
};
|
|
287
|
+
let body;
|
|
288
|
+
body = JSON.stringify(serializeAws_json1_1DescribeFeaturedResultsSetRequest(input, context));
|
|
289
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
290
|
+
};
|
|
291
|
+
exports.serializeAws_json1_1DescribeFeaturedResultsSetCommand = serializeAws_json1_1DescribeFeaturedResultsSetCommand;
|
|
261
292
|
const serializeAws_json1_1DescribeIndexCommand = async (input, context) => {
|
|
262
293
|
const headers = {
|
|
263
294
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -418,6 +449,16 @@ const serializeAws_json1_1ListFaqsCommand = async (input, context) => {
|
|
|
418
449
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
419
450
|
};
|
|
420
451
|
exports.serializeAws_json1_1ListFaqsCommand = serializeAws_json1_1ListFaqsCommand;
|
|
452
|
+
const serializeAws_json1_1ListFeaturedResultsSetsCommand = async (input, context) => {
|
|
453
|
+
const headers = {
|
|
454
|
+
"content-type": "application/x-amz-json-1.1",
|
|
455
|
+
"x-amz-target": "AWSKendraFrontendService.ListFeaturedResultsSets",
|
|
456
|
+
};
|
|
457
|
+
let body;
|
|
458
|
+
body = JSON.stringify(serializeAws_json1_1ListFeaturedResultsSetsRequest(input, context));
|
|
459
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
460
|
+
};
|
|
461
|
+
exports.serializeAws_json1_1ListFeaturedResultsSetsCommand = serializeAws_json1_1ListFeaturedResultsSetsCommand;
|
|
421
462
|
const serializeAws_json1_1ListGroupsOlderThanOrderingIdCommand = async (input, context) => {
|
|
422
463
|
const headers = {
|
|
423
464
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -568,6 +609,16 @@ const serializeAws_json1_1UpdateExperienceCommand = async (input, context) => {
|
|
|
568
609
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
569
610
|
};
|
|
570
611
|
exports.serializeAws_json1_1UpdateExperienceCommand = serializeAws_json1_1UpdateExperienceCommand;
|
|
612
|
+
const serializeAws_json1_1UpdateFeaturedResultsSetCommand = async (input, context) => {
|
|
613
|
+
const headers = {
|
|
614
|
+
"content-type": "application/x-amz-json-1.1",
|
|
615
|
+
"x-amz-target": "AWSKendraFrontendService.UpdateFeaturedResultsSet",
|
|
616
|
+
};
|
|
617
|
+
let body;
|
|
618
|
+
body = JSON.stringify(serializeAws_json1_1UpdateFeaturedResultsSetRequest(input, context));
|
|
619
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
620
|
+
};
|
|
621
|
+
exports.serializeAws_json1_1UpdateFeaturedResultsSetCommand = serializeAws_json1_1UpdateFeaturedResultsSetCommand;
|
|
571
622
|
const serializeAws_json1_1UpdateIndexCommand = async (input, context) => {
|
|
572
623
|
const headers = {
|
|
573
624
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -755,6 +806,52 @@ const deserializeAws_json1_1BatchDeleteDocumentCommandError = async (output, con
|
|
|
755
806
|
});
|
|
756
807
|
}
|
|
757
808
|
};
|
|
809
|
+
const deserializeAws_json1_1BatchDeleteFeaturedResultsSetCommand = async (output, context) => {
|
|
810
|
+
if (output.statusCode >= 300) {
|
|
811
|
+
return deserializeAws_json1_1BatchDeleteFeaturedResultsSetCommandError(output, context);
|
|
812
|
+
}
|
|
813
|
+
const data = await parseBody(output.body, context);
|
|
814
|
+
let contents = {};
|
|
815
|
+
contents = deserializeAws_json1_1BatchDeleteFeaturedResultsSetResponse(data, context);
|
|
816
|
+
const response = {
|
|
817
|
+
$metadata: deserializeMetadata(output),
|
|
818
|
+
...contents,
|
|
819
|
+
};
|
|
820
|
+
return Promise.resolve(response);
|
|
821
|
+
};
|
|
822
|
+
exports.deserializeAws_json1_1BatchDeleteFeaturedResultsSetCommand = deserializeAws_json1_1BatchDeleteFeaturedResultsSetCommand;
|
|
823
|
+
const deserializeAws_json1_1BatchDeleteFeaturedResultsSetCommandError = async (output, context) => {
|
|
824
|
+
const parsedOutput = {
|
|
825
|
+
...output,
|
|
826
|
+
body: await parseErrorBody(output.body, context),
|
|
827
|
+
};
|
|
828
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
829
|
+
switch (errorCode) {
|
|
830
|
+
case "AccessDeniedException":
|
|
831
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
832
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
833
|
+
case "InternalServerException":
|
|
834
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
835
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
836
|
+
case "ResourceNotFoundException":
|
|
837
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
838
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
839
|
+
case "ThrottlingException":
|
|
840
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
841
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
842
|
+
case "ValidationException":
|
|
843
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
844
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
845
|
+
default:
|
|
846
|
+
const parsedBody = parsedOutput.body;
|
|
847
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
848
|
+
output,
|
|
849
|
+
parsedBody,
|
|
850
|
+
exceptionCtor: KendraServiceException_1.KendraServiceException,
|
|
851
|
+
errorCode,
|
|
852
|
+
});
|
|
853
|
+
}
|
|
854
|
+
};
|
|
758
855
|
const deserializeAws_json1_1BatchGetDocumentStatusCommand = async (output, context) => {
|
|
759
856
|
if (output.statusCode >= 300) {
|
|
760
857
|
return deserializeAws_json1_1BatchGetDocumentStatusCommandError(output, context);
|
|
@@ -1113,6 +1210,58 @@ const deserializeAws_json1_1CreateFaqCommandError = async (output, context) => {
|
|
|
1113
1210
|
});
|
|
1114
1211
|
}
|
|
1115
1212
|
};
|
|
1213
|
+
const deserializeAws_json1_1CreateFeaturedResultsSetCommand = async (output, context) => {
|
|
1214
|
+
if (output.statusCode >= 300) {
|
|
1215
|
+
return deserializeAws_json1_1CreateFeaturedResultsSetCommandError(output, context);
|
|
1216
|
+
}
|
|
1217
|
+
const data = await parseBody(output.body, context);
|
|
1218
|
+
let contents = {};
|
|
1219
|
+
contents = deserializeAws_json1_1CreateFeaturedResultsSetResponse(data, context);
|
|
1220
|
+
const response = {
|
|
1221
|
+
$metadata: deserializeMetadata(output),
|
|
1222
|
+
...contents,
|
|
1223
|
+
};
|
|
1224
|
+
return Promise.resolve(response);
|
|
1225
|
+
};
|
|
1226
|
+
exports.deserializeAws_json1_1CreateFeaturedResultsSetCommand = deserializeAws_json1_1CreateFeaturedResultsSetCommand;
|
|
1227
|
+
const deserializeAws_json1_1CreateFeaturedResultsSetCommandError = async (output, context) => {
|
|
1228
|
+
const parsedOutput = {
|
|
1229
|
+
...output,
|
|
1230
|
+
body: await parseErrorBody(output.body, context),
|
|
1231
|
+
};
|
|
1232
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1233
|
+
switch (errorCode) {
|
|
1234
|
+
case "AccessDeniedException":
|
|
1235
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1236
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1237
|
+
case "ConflictException":
|
|
1238
|
+
case "com.amazonaws.kendra#ConflictException":
|
|
1239
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1240
|
+
case "FeaturedResultsConflictException":
|
|
1241
|
+
case "com.amazonaws.kendra#FeaturedResultsConflictException":
|
|
1242
|
+
throw await deserializeAws_json1_1FeaturedResultsConflictExceptionResponse(parsedOutput, context);
|
|
1243
|
+
case "InternalServerException":
|
|
1244
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
1245
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1246
|
+
case "ResourceNotFoundException":
|
|
1247
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1248
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1249
|
+
case "ThrottlingException":
|
|
1250
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
1251
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1252
|
+
case "ValidationException":
|
|
1253
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
1254
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1255
|
+
default:
|
|
1256
|
+
const parsedBody = parsedOutput.body;
|
|
1257
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1258
|
+
output,
|
|
1259
|
+
parsedBody,
|
|
1260
|
+
exceptionCtor: KendraServiceException_1.KendraServiceException,
|
|
1261
|
+
errorCode,
|
|
1262
|
+
});
|
|
1263
|
+
}
|
|
1264
|
+
};
|
|
1116
1265
|
const deserializeAws_json1_1CreateIndexCommand = async (output, context) => {
|
|
1117
1266
|
if (output.statusCode >= 300) {
|
|
1118
1267
|
return deserializeAws_json1_1CreateIndexCommandError(output, context);
|
|
@@ -1827,6 +1976,52 @@ const deserializeAws_json1_1DescribeFaqCommandError = async (output, context) =>
|
|
|
1827
1976
|
});
|
|
1828
1977
|
}
|
|
1829
1978
|
};
|
|
1979
|
+
const deserializeAws_json1_1DescribeFeaturedResultsSetCommand = async (output, context) => {
|
|
1980
|
+
if (output.statusCode >= 300) {
|
|
1981
|
+
return deserializeAws_json1_1DescribeFeaturedResultsSetCommandError(output, context);
|
|
1982
|
+
}
|
|
1983
|
+
const data = await parseBody(output.body, context);
|
|
1984
|
+
let contents = {};
|
|
1985
|
+
contents = deserializeAws_json1_1DescribeFeaturedResultsSetResponse(data, context);
|
|
1986
|
+
const response = {
|
|
1987
|
+
$metadata: deserializeMetadata(output),
|
|
1988
|
+
...contents,
|
|
1989
|
+
};
|
|
1990
|
+
return Promise.resolve(response);
|
|
1991
|
+
};
|
|
1992
|
+
exports.deserializeAws_json1_1DescribeFeaturedResultsSetCommand = deserializeAws_json1_1DescribeFeaturedResultsSetCommand;
|
|
1993
|
+
const deserializeAws_json1_1DescribeFeaturedResultsSetCommandError = 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.kendra#AccessDeniedException":
|
|
2002
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2003
|
+
case "InternalServerException":
|
|
2004
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
2005
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2006
|
+
case "ResourceNotFoundException":
|
|
2007
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2008
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2009
|
+
case "ThrottlingException":
|
|
2010
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
2011
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2012
|
+
case "ValidationException":
|
|
2013
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
2014
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2015
|
+
default:
|
|
2016
|
+
const parsedBody = parsedOutput.body;
|
|
2017
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2018
|
+
output,
|
|
2019
|
+
parsedBody,
|
|
2020
|
+
exceptionCtor: KendraServiceException_1.KendraServiceException,
|
|
2021
|
+
errorCode,
|
|
2022
|
+
});
|
|
2023
|
+
}
|
|
2024
|
+
};
|
|
1830
2025
|
const deserializeAws_json1_1DescribeIndexCommand = async (output, context) => {
|
|
1831
2026
|
if (output.statusCode >= 300) {
|
|
1832
2027
|
return deserializeAws_json1_1DescribeIndexCommandError(output, context);
|
|
@@ -2569,6 +2764,52 @@ const deserializeAws_json1_1ListFaqsCommandError = async (output, context) => {
|
|
|
2569
2764
|
});
|
|
2570
2765
|
}
|
|
2571
2766
|
};
|
|
2767
|
+
const deserializeAws_json1_1ListFeaturedResultsSetsCommand = async (output, context) => {
|
|
2768
|
+
if (output.statusCode >= 300) {
|
|
2769
|
+
return deserializeAws_json1_1ListFeaturedResultsSetsCommandError(output, context);
|
|
2770
|
+
}
|
|
2771
|
+
const data = await parseBody(output.body, context);
|
|
2772
|
+
let contents = {};
|
|
2773
|
+
contents = deserializeAws_json1_1ListFeaturedResultsSetsResponse(data, context);
|
|
2774
|
+
const response = {
|
|
2775
|
+
$metadata: deserializeMetadata(output),
|
|
2776
|
+
...contents,
|
|
2777
|
+
};
|
|
2778
|
+
return Promise.resolve(response);
|
|
2779
|
+
};
|
|
2780
|
+
exports.deserializeAws_json1_1ListFeaturedResultsSetsCommand = deserializeAws_json1_1ListFeaturedResultsSetsCommand;
|
|
2781
|
+
const deserializeAws_json1_1ListFeaturedResultsSetsCommandError = async (output, context) => {
|
|
2782
|
+
const parsedOutput = {
|
|
2783
|
+
...output,
|
|
2784
|
+
body: await parseErrorBody(output.body, context),
|
|
2785
|
+
};
|
|
2786
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2787
|
+
switch (errorCode) {
|
|
2788
|
+
case "AccessDeniedException":
|
|
2789
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2790
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2791
|
+
case "InternalServerException":
|
|
2792
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
2793
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2794
|
+
case "ResourceNotFoundException":
|
|
2795
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2796
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2797
|
+
case "ThrottlingException":
|
|
2798
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
2799
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2800
|
+
case "ValidationException":
|
|
2801
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
2802
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2803
|
+
default:
|
|
2804
|
+
const parsedBody = parsedOutput.body;
|
|
2805
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2806
|
+
output,
|
|
2807
|
+
parsedBody,
|
|
2808
|
+
exceptionCtor: KendraServiceException_1.KendraServiceException,
|
|
2809
|
+
errorCode,
|
|
2810
|
+
});
|
|
2811
|
+
}
|
|
2812
|
+
};
|
|
2572
2813
|
const deserializeAws_json1_1ListGroupsOlderThanOrderingIdCommand = async (output, context) => {
|
|
2573
2814
|
if (output.statusCode >= 300) {
|
|
2574
2815
|
return deserializeAws_json1_1ListGroupsOlderThanOrderingIdCommandError(output, context);
|
|
@@ -3277,6 +3518,55 @@ const deserializeAws_json1_1UpdateExperienceCommandError = async (output, contex
|
|
|
3277
3518
|
});
|
|
3278
3519
|
}
|
|
3279
3520
|
};
|
|
3521
|
+
const deserializeAws_json1_1UpdateFeaturedResultsSetCommand = async (output, context) => {
|
|
3522
|
+
if (output.statusCode >= 300) {
|
|
3523
|
+
return deserializeAws_json1_1UpdateFeaturedResultsSetCommandError(output, context);
|
|
3524
|
+
}
|
|
3525
|
+
const data = await parseBody(output.body, context);
|
|
3526
|
+
let contents = {};
|
|
3527
|
+
contents = deserializeAws_json1_1UpdateFeaturedResultsSetResponse(data, context);
|
|
3528
|
+
const response = {
|
|
3529
|
+
$metadata: deserializeMetadata(output),
|
|
3530
|
+
...contents,
|
|
3531
|
+
};
|
|
3532
|
+
return Promise.resolve(response);
|
|
3533
|
+
};
|
|
3534
|
+
exports.deserializeAws_json1_1UpdateFeaturedResultsSetCommand = deserializeAws_json1_1UpdateFeaturedResultsSetCommand;
|
|
3535
|
+
const deserializeAws_json1_1UpdateFeaturedResultsSetCommandError = async (output, context) => {
|
|
3536
|
+
const parsedOutput = {
|
|
3537
|
+
...output,
|
|
3538
|
+
body: await parseErrorBody(output.body, context),
|
|
3539
|
+
};
|
|
3540
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3541
|
+
switch (errorCode) {
|
|
3542
|
+
case "AccessDeniedException":
|
|
3543
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3544
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3545
|
+
case "FeaturedResultsConflictException":
|
|
3546
|
+
case "com.amazonaws.kendra#FeaturedResultsConflictException":
|
|
3547
|
+
throw await deserializeAws_json1_1FeaturedResultsConflictExceptionResponse(parsedOutput, context);
|
|
3548
|
+
case "InternalServerException":
|
|
3549
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
3550
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
3551
|
+
case "ResourceNotFoundException":
|
|
3552
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3553
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3554
|
+
case "ThrottlingException":
|
|
3555
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
3556
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3557
|
+
case "ValidationException":
|
|
3558
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
3559
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3560
|
+
default:
|
|
3561
|
+
const parsedBody = parsedOutput.body;
|
|
3562
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3563
|
+
output,
|
|
3564
|
+
parsedBody,
|
|
3565
|
+
exceptionCtor: KendraServiceException_1.KendraServiceException,
|
|
3566
|
+
errorCode,
|
|
3567
|
+
});
|
|
3568
|
+
}
|
|
3569
|
+
};
|
|
3280
3570
|
const deserializeAws_json1_1UpdateIndexCommand = async (output, context) => {
|
|
3281
3571
|
if (output.statusCode >= 300) {
|
|
3282
3572
|
return deserializeAws_json1_1UpdateIndexCommandError(output, context);
|
|
@@ -3482,6 +3772,15 @@ const deserializeAws_json1_1ConflictExceptionResponse = async (parsedOutput, con
|
|
|
3482
3772
|
});
|
|
3483
3773
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3484
3774
|
};
|
|
3775
|
+
const deserializeAws_json1_1FeaturedResultsConflictExceptionResponse = async (parsedOutput, context) => {
|
|
3776
|
+
const body = parsedOutput.body;
|
|
3777
|
+
const deserialized = deserializeAws_json1_1FeaturedResultsConflictException(body, context);
|
|
3778
|
+
const exception = new models_0_1.FeaturedResultsConflictException({
|
|
3779
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3780
|
+
...deserialized,
|
|
3781
|
+
});
|
|
3782
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3783
|
+
};
|
|
3485
3784
|
const deserializeAws_json1_1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
3486
3785
|
const body = parsedOutput.body;
|
|
3487
3786
|
const deserialized = deserializeAws_json1_1InternalServerException(body, context);
|
|
@@ -3512,7 +3811,7 @@ const deserializeAws_json1_1ResourceAlreadyExistExceptionResponse = async (parse
|
|
|
3512
3811
|
const deserializeAws_json1_1ResourceInUseExceptionResponse = async (parsedOutput, context) => {
|
|
3513
3812
|
const body = parsedOutput.body;
|
|
3514
3813
|
const deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
|
|
3515
|
-
const exception = new
|
|
3814
|
+
const exception = new models_1_1.ResourceInUseException({
|
|
3516
3815
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3517
3816
|
...deserialized,
|
|
3518
3817
|
});
|
|
@@ -3694,6 +3993,14 @@ const serializeAws_json1_1BatchDeleteDocumentRequest = (input, context) => {
|
|
|
3694
3993
|
...(input.IndexId != null && { IndexId: input.IndexId }),
|
|
3695
3994
|
};
|
|
3696
3995
|
};
|
|
3996
|
+
const serializeAws_json1_1BatchDeleteFeaturedResultsSetRequest = (input, context) => {
|
|
3997
|
+
return {
|
|
3998
|
+
...(input.FeaturedResultsSetIds != null && {
|
|
3999
|
+
FeaturedResultsSetIds: serializeAws_json1_1FeaturedResultsSetIdList(input.FeaturedResultsSetIds, context),
|
|
4000
|
+
}),
|
|
4001
|
+
...(input.IndexId != null && { IndexId: input.IndexId }),
|
|
4002
|
+
};
|
|
4003
|
+
};
|
|
3697
4004
|
const serializeAws_json1_1BatchGetDocumentStatusRequest = (input, context) => {
|
|
3698
4005
|
return {
|
|
3699
4006
|
...(input.DocumentInfoList != null && {
|
|
@@ -3998,6 +4305,20 @@ const serializeAws_json1_1CreateFaqRequest = (input, context) => {
|
|
|
3998
4305
|
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3999
4306
|
};
|
|
4000
4307
|
};
|
|
4308
|
+
const serializeAws_json1_1CreateFeaturedResultsSetRequest = (input, context) => {
|
|
4309
|
+
return {
|
|
4310
|
+
...(input.ClientToken != null && { ClientToken: input.ClientToken }),
|
|
4311
|
+
...(input.Description != null && { Description: input.Description }),
|
|
4312
|
+
...(input.FeaturedDocuments != null && {
|
|
4313
|
+
FeaturedDocuments: serializeAws_json1_1FeaturedDocumentList(input.FeaturedDocuments, context),
|
|
4314
|
+
}),
|
|
4315
|
+
...(input.FeaturedResultsSetName != null && { FeaturedResultsSetName: input.FeaturedResultsSetName }),
|
|
4316
|
+
...(input.IndexId != null && { IndexId: input.IndexId }),
|
|
4317
|
+
...(input.QueryTexts != null && { QueryTexts: serializeAws_json1_1QueryTextList(input.QueryTexts, context) }),
|
|
4318
|
+
...(input.Status != null && { Status: input.Status }),
|
|
4319
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4320
|
+
};
|
|
4321
|
+
};
|
|
4001
4322
|
const serializeAws_json1_1CreateIndexRequest = (input, context) => {
|
|
4002
4323
|
return {
|
|
4003
4324
|
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
@@ -4260,6 +4581,12 @@ const serializeAws_json1_1DescribeFaqRequest = (input, context) => {
|
|
|
4260
4581
|
...(input.IndexId != null && { IndexId: input.IndexId }),
|
|
4261
4582
|
};
|
|
4262
4583
|
};
|
|
4584
|
+
const serializeAws_json1_1DescribeFeaturedResultsSetRequest = (input, context) => {
|
|
4585
|
+
return {
|
|
4586
|
+
...(input.FeaturedResultsSetId != null && { FeaturedResultsSetId: input.FeaturedResultsSetId }),
|
|
4587
|
+
...(input.IndexId != null && { IndexId: input.IndexId }),
|
|
4588
|
+
};
|
|
4589
|
+
};
|
|
4263
4590
|
const serializeAws_json1_1DescribeIndexRequest = (input, context) => {
|
|
4264
4591
|
return {
|
|
4265
4592
|
...(input.Id != null && { Id: input.Id }),
|
|
@@ -4539,6 +4866,25 @@ const serializeAws_json1_1FaqIdsList = (input, context) => {
|
|
|
4539
4866
|
return entry;
|
|
4540
4867
|
});
|
|
4541
4868
|
};
|
|
4869
|
+
const serializeAws_json1_1FeaturedDocument = (input, context) => {
|
|
4870
|
+
return {
|
|
4871
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4872
|
+
};
|
|
4873
|
+
};
|
|
4874
|
+
const serializeAws_json1_1FeaturedDocumentList = (input, context) => {
|
|
4875
|
+
return input
|
|
4876
|
+
.filter((e) => e != null)
|
|
4877
|
+
.map((entry) => {
|
|
4878
|
+
return serializeAws_json1_1FeaturedDocument(entry, context);
|
|
4879
|
+
});
|
|
4880
|
+
};
|
|
4881
|
+
const serializeAws_json1_1FeaturedResultsSetIdList = (input, context) => {
|
|
4882
|
+
return input
|
|
4883
|
+
.filter((e) => e != null)
|
|
4884
|
+
.map((entry) => {
|
|
4885
|
+
return entry;
|
|
4886
|
+
});
|
|
4887
|
+
};
|
|
4542
4888
|
const serializeAws_json1_1FolderIdList = (input, context) => {
|
|
4543
4889
|
return input
|
|
4544
4890
|
.filter((e) => e != null)
|
|
@@ -4868,6 +5214,13 @@ const serializeAws_json1_1ListFaqsRequest = (input, context) => {
|
|
|
4868
5214
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4869
5215
|
};
|
|
4870
5216
|
};
|
|
5217
|
+
const serializeAws_json1_1ListFeaturedResultsSetsRequest = (input, context) => {
|
|
5218
|
+
return {
|
|
5219
|
+
...(input.IndexId != null && { IndexId: input.IndexId }),
|
|
5220
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
5221
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
5222
|
+
};
|
|
5223
|
+
};
|
|
4871
5224
|
const serializeAws_json1_1ListGroupsOlderThanOrderingIdRequest = (input, context) => {
|
|
4872
5225
|
return {
|
|
4873
5226
|
...(input.DataSourceId != null && { DataSourceId: input.DataSourceId }),
|
|
@@ -5052,6 +5405,13 @@ const serializeAws_json1_1QueryRequest = (input, context) => {
|
|
|
5052
5405
|
...(input.VisitorId != null && { VisitorId: input.VisitorId }),
|
|
5053
5406
|
};
|
|
5054
5407
|
};
|
|
5408
|
+
const serializeAws_json1_1QueryTextList = (input, context) => {
|
|
5409
|
+
return input
|
|
5410
|
+
.filter((e) => e != null)
|
|
5411
|
+
.map((entry) => {
|
|
5412
|
+
return entry;
|
|
5413
|
+
});
|
|
5414
|
+
};
|
|
5055
5415
|
const serializeAws_json1_1QuipConfiguration = (input, context) => {
|
|
5056
5416
|
return {
|
|
5057
5417
|
...(input.AttachmentFieldMappings != null && {
|
|
@@ -5576,6 +5936,19 @@ const serializeAws_json1_1UpdateExperienceRequest = (input, context) => {
|
|
|
5576
5936
|
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
5577
5937
|
};
|
|
5578
5938
|
};
|
|
5939
|
+
const serializeAws_json1_1UpdateFeaturedResultsSetRequest = (input, context) => {
|
|
5940
|
+
return {
|
|
5941
|
+
...(input.Description != null && { Description: input.Description }),
|
|
5942
|
+
...(input.FeaturedDocuments != null && {
|
|
5943
|
+
FeaturedDocuments: serializeAws_json1_1FeaturedDocumentList(input.FeaturedDocuments, context),
|
|
5944
|
+
}),
|
|
5945
|
+
...(input.FeaturedResultsSetId != null && { FeaturedResultsSetId: input.FeaturedResultsSetId }),
|
|
5946
|
+
...(input.FeaturedResultsSetName != null && { FeaturedResultsSetName: input.FeaturedResultsSetName }),
|
|
5947
|
+
...(input.IndexId != null && { IndexId: input.IndexId }),
|
|
5948
|
+
...(input.QueryTexts != null && { QueryTexts: serializeAws_json1_1QueryTextList(input.QueryTexts, context) }),
|
|
5949
|
+
...(input.Status != null && { Status: input.Status }),
|
|
5950
|
+
};
|
|
5951
|
+
};
|
|
5579
5952
|
const serializeAws_json1_1UpdateIndexRequest = (input, context) => {
|
|
5580
5953
|
return {
|
|
5581
5954
|
...(input.CapacityUnits != null && {
|
|
@@ -5890,6 +6263,31 @@ const deserializeAws_json1_1BatchDeleteDocumentResponseFailedDocuments = (output
|
|
|
5890
6263
|
});
|
|
5891
6264
|
return retVal;
|
|
5892
6265
|
};
|
|
6266
|
+
const deserializeAws_json1_1BatchDeleteFeaturedResultsSetError = (output, context) => {
|
|
6267
|
+
return {
|
|
6268
|
+
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
6269
|
+
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
6270
|
+
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
6271
|
+
};
|
|
6272
|
+
};
|
|
6273
|
+
const deserializeAws_json1_1BatchDeleteFeaturedResultsSetErrors = (output, context) => {
|
|
6274
|
+
const retVal = (output || [])
|
|
6275
|
+
.filter((e) => e != null)
|
|
6276
|
+
.map((entry) => {
|
|
6277
|
+
if (entry === null) {
|
|
6278
|
+
return null;
|
|
6279
|
+
}
|
|
6280
|
+
return deserializeAws_json1_1BatchDeleteFeaturedResultsSetError(entry, context);
|
|
6281
|
+
});
|
|
6282
|
+
return retVal;
|
|
6283
|
+
};
|
|
6284
|
+
const deserializeAws_json1_1BatchDeleteFeaturedResultsSetResponse = (output, context) => {
|
|
6285
|
+
return {
|
|
6286
|
+
Errors: output.Errors != null
|
|
6287
|
+
? deserializeAws_json1_1BatchDeleteFeaturedResultsSetErrors(output.Errors, context)
|
|
6288
|
+
: undefined,
|
|
6289
|
+
};
|
|
6290
|
+
};
|
|
5893
6291
|
const deserializeAws_json1_1BatchGetDocumentStatusResponse = (output, context) => {
|
|
5894
6292
|
return {
|
|
5895
6293
|
DocumentStatusList: output.DocumentStatusList != null
|
|
@@ -6009,6 +6407,24 @@ const deserializeAws_json1_1ConflictException = (output, context) => {
|
|
|
6009
6407
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
6010
6408
|
};
|
|
6011
6409
|
};
|
|
6410
|
+
const deserializeAws_json1_1ConflictingItem = (output, context) => {
|
|
6411
|
+
return {
|
|
6412
|
+
QueryText: (0, smithy_client_1.expectString)(output.QueryText),
|
|
6413
|
+
SetId: (0, smithy_client_1.expectString)(output.SetId),
|
|
6414
|
+
SetName: (0, smithy_client_1.expectString)(output.SetName),
|
|
6415
|
+
};
|
|
6416
|
+
};
|
|
6417
|
+
const deserializeAws_json1_1ConflictingItems = (output, context) => {
|
|
6418
|
+
const retVal = (output || [])
|
|
6419
|
+
.filter((e) => e != null)
|
|
6420
|
+
.map((entry) => {
|
|
6421
|
+
if (entry === null) {
|
|
6422
|
+
return null;
|
|
6423
|
+
}
|
|
6424
|
+
return deserializeAws_json1_1ConflictingItem(entry, context);
|
|
6425
|
+
});
|
|
6426
|
+
return retVal;
|
|
6427
|
+
};
|
|
6012
6428
|
const deserializeAws_json1_1ConfluenceAttachmentConfiguration = (output, context) => {
|
|
6013
6429
|
return {
|
|
6014
6430
|
AttachmentFieldMappings: output.AttachmentFieldMappings != null
|
|
@@ -6216,6 +6632,13 @@ const deserializeAws_json1_1CreateFaqResponse = (output, context) => {
|
|
|
6216
6632
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
6217
6633
|
};
|
|
6218
6634
|
};
|
|
6635
|
+
const deserializeAws_json1_1CreateFeaturedResultsSetResponse = (output, context) => {
|
|
6636
|
+
return {
|
|
6637
|
+
FeaturedResultsSet: output.FeaturedResultsSet != null
|
|
6638
|
+
? deserializeAws_json1_1FeaturedResultsSet(output.FeaturedResultsSet, context)
|
|
6639
|
+
: undefined,
|
|
6640
|
+
};
|
|
6641
|
+
};
|
|
6219
6642
|
const deserializeAws_json1_1CreateIndexResponse = (output, context) => {
|
|
6220
6643
|
return {
|
|
6221
6644
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
@@ -6502,6 +6925,23 @@ const deserializeAws_json1_1DescribeFaqResponse = (output, context) => {
|
|
|
6502
6925
|
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
6503
6926
|
};
|
|
6504
6927
|
};
|
|
6928
|
+
const deserializeAws_json1_1DescribeFeaturedResultsSetResponse = (output, context) => {
|
|
6929
|
+
return {
|
|
6930
|
+
CreationTimestamp: (0, smithy_client_1.expectLong)(output.CreationTimestamp),
|
|
6931
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
6932
|
+
FeaturedDocumentsMissing: output.FeaturedDocumentsMissing != null
|
|
6933
|
+
? deserializeAws_json1_1FeaturedDocumentMissingList(output.FeaturedDocumentsMissing, context)
|
|
6934
|
+
: undefined,
|
|
6935
|
+
FeaturedDocumentsWithMetadata: output.FeaturedDocumentsWithMetadata != null
|
|
6936
|
+
? deserializeAws_json1_1FeaturedDocumentWithMetadataList(output.FeaturedDocumentsWithMetadata, context)
|
|
6937
|
+
: undefined,
|
|
6938
|
+
FeaturedResultsSetId: (0, smithy_client_1.expectString)(output.FeaturedResultsSetId),
|
|
6939
|
+
FeaturedResultsSetName: (0, smithy_client_1.expectString)(output.FeaturedResultsSetName),
|
|
6940
|
+
LastUpdatedTimestamp: (0, smithy_client_1.expectLong)(output.LastUpdatedTimestamp),
|
|
6941
|
+
QueryTexts: output.QueryTexts != null ? deserializeAws_json1_1QueryTextList(output.QueryTexts, context) : undefined,
|
|
6942
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
6943
|
+
};
|
|
6944
|
+
};
|
|
6505
6945
|
const deserializeAws_json1_1DescribeIndexResponse = (output, context) => {
|
|
6506
6946
|
return {
|
|
6507
6947
|
CapacityUnits: output.CapacityUnits != null
|
|
@@ -6912,6 +7352,130 @@ const deserializeAws_json1_1FaqSummaryItems = (output, context) => {
|
|
|
6912
7352
|
});
|
|
6913
7353
|
return retVal;
|
|
6914
7354
|
};
|
|
7355
|
+
const deserializeAws_json1_1FeaturedDocument = (output, context) => {
|
|
7356
|
+
return {
|
|
7357
|
+
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
7358
|
+
};
|
|
7359
|
+
};
|
|
7360
|
+
const deserializeAws_json1_1FeaturedDocumentList = (output, context) => {
|
|
7361
|
+
const retVal = (output || [])
|
|
7362
|
+
.filter((e) => e != null)
|
|
7363
|
+
.map((entry) => {
|
|
7364
|
+
if (entry === null) {
|
|
7365
|
+
return null;
|
|
7366
|
+
}
|
|
7367
|
+
return deserializeAws_json1_1FeaturedDocument(entry, context);
|
|
7368
|
+
});
|
|
7369
|
+
return retVal;
|
|
7370
|
+
};
|
|
7371
|
+
const deserializeAws_json1_1FeaturedDocumentMissing = (output, context) => {
|
|
7372
|
+
return {
|
|
7373
|
+
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
7374
|
+
};
|
|
7375
|
+
};
|
|
7376
|
+
const deserializeAws_json1_1FeaturedDocumentMissingList = (output, context) => {
|
|
7377
|
+
const retVal = (output || [])
|
|
7378
|
+
.filter((e) => e != null)
|
|
7379
|
+
.map((entry) => {
|
|
7380
|
+
if (entry === null) {
|
|
7381
|
+
return null;
|
|
7382
|
+
}
|
|
7383
|
+
return deserializeAws_json1_1FeaturedDocumentMissing(entry, context);
|
|
7384
|
+
});
|
|
7385
|
+
return retVal;
|
|
7386
|
+
};
|
|
7387
|
+
const deserializeAws_json1_1FeaturedDocumentWithMetadata = (output, context) => {
|
|
7388
|
+
return {
|
|
7389
|
+
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
7390
|
+
Title: (0, smithy_client_1.expectString)(output.Title),
|
|
7391
|
+
URI: (0, smithy_client_1.expectString)(output.URI),
|
|
7392
|
+
};
|
|
7393
|
+
};
|
|
7394
|
+
const deserializeAws_json1_1FeaturedDocumentWithMetadataList = (output, context) => {
|
|
7395
|
+
const retVal = (output || [])
|
|
7396
|
+
.filter((e) => e != null)
|
|
7397
|
+
.map((entry) => {
|
|
7398
|
+
if (entry === null) {
|
|
7399
|
+
return null;
|
|
7400
|
+
}
|
|
7401
|
+
return deserializeAws_json1_1FeaturedDocumentWithMetadata(entry, context);
|
|
7402
|
+
});
|
|
7403
|
+
return retVal;
|
|
7404
|
+
};
|
|
7405
|
+
const deserializeAws_json1_1FeaturedResultsConflictException = (output, context) => {
|
|
7406
|
+
return {
|
|
7407
|
+
ConflictingItems: output.ConflictingItems != null
|
|
7408
|
+
? deserializeAws_json1_1ConflictingItems(output.ConflictingItems, context)
|
|
7409
|
+
: undefined,
|
|
7410
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
7411
|
+
};
|
|
7412
|
+
};
|
|
7413
|
+
const deserializeAws_json1_1FeaturedResultsItem = (output, context) => {
|
|
7414
|
+
return {
|
|
7415
|
+
AdditionalAttributes: output.AdditionalAttributes != null
|
|
7416
|
+
? deserializeAws_json1_1AdditionalResultAttributeList(output.AdditionalAttributes, context)
|
|
7417
|
+
: undefined,
|
|
7418
|
+
DocumentAttributes: output.DocumentAttributes != null
|
|
7419
|
+
? deserializeAws_json1_1DocumentAttributeList(output.DocumentAttributes, context)
|
|
7420
|
+
: undefined,
|
|
7421
|
+
DocumentExcerpt: output.DocumentExcerpt != null
|
|
7422
|
+
? deserializeAws_json1_1TextWithHighlights(output.DocumentExcerpt, context)
|
|
7423
|
+
: undefined,
|
|
7424
|
+
DocumentId: (0, smithy_client_1.expectString)(output.DocumentId),
|
|
7425
|
+
DocumentTitle: output.DocumentTitle != null
|
|
7426
|
+
? deserializeAws_json1_1TextWithHighlights(output.DocumentTitle, context)
|
|
7427
|
+
: undefined,
|
|
7428
|
+
DocumentURI: (0, smithy_client_1.expectString)(output.DocumentURI),
|
|
7429
|
+
FeedbackToken: (0, smithy_client_1.expectString)(output.FeedbackToken),
|
|
7430
|
+
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
7431
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
7432
|
+
};
|
|
7433
|
+
};
|
|
7434
|
+
const deserializeAws_json1_1FeaturedResultsItemList = (output, context) => {
|
|
7435
|
+
const retVal = (output || [])
|
|
7436
|
+
.filter((e) => e != null)
|
|
7437
|
+
.map((entry) => {
|
|
7438
|
+
if (entry === null) {
|
|
7439
|
+
return null;
|
|
7440
|
+
}
|
|
7441
|
+
return deserializeAws_json1_1FeaturedResultsItem(entry, context);
|
|
7442
|
+
});
|
|
7443
|
+
return retVal;
|
|
7444
|
+
};
|
|
7445
|
+
const deserializeAws_json1_1FeaturedResultsSet = (output, context) => {
|
|
7446
|
+
return {
|
|
7447
|
+
CreationTimestamp: (0, smithy_client_1.expectLong)(output.CreationTimestamp),
|
|
7448
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
7449
|
+
FeaturedDocuments: output.FeaturedDocuments != null
|
|
7450
|
+
? deserializeAws_json1_1FeaturedDocumentList(output.FeaturedDocuments, context)
|
|
7451
|
+
: undefined,
|
|
7452
|
+
FeaturedResultsSetId: (0, smithy_client_1.expectString)(output.FeaturedResultsSetId),
|
|
7453
|
+
FeaturedResultsSetName: (0, smithy_client_1.expectString)(output.FeaturedResultsSetName),
|
|
7454
|
+
LastUpdatedTimestamp: (0, smithy_client_1.expectLong)(output.LastUpdatedTimestamp),
|
|
7455
|
+
QueryTexts: output.QueryTexts != null ? deserializeAws_json1_1QueryTextList(output.QueryTexts, context) : undefined,
|
|
7456
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
7457
|
+
};
|
|
7458
|
+
};
|
|
7459
|
+
const deserializeAws_json1_1FeaturedResultsSetSummary = (output, context) => {
|
|
7460
|
+
return {
|
|
7461
|
+
CreationTimestamp: (0, smithy_client_1.expectLong)(output.CreationTimestamp),
|
|
7462
|
+
FeaturedResultsSetId: (0, smithy_client_1.expectString)(output.FeaturedResultsSetId),
|
|
7463
|
+
FeaturedResultsSetName: (0, smithy_client_1.expectString)(output.FeaturedResultsSetName),
|
|
7464
|
+
LastUpdatedTimestamp: (0, smithy_client_1.expectLong)(output.LastUpdatedTimestamp),
|
|
7465
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
7466
|
+
};
|
|
7467
|
+
};
|
|
7468
|
+
const deserializeAws_json1_1FeaturedResultsSetSummaryItems = (output, context) => {
|
|
7469
|
+
const retVal = (output || [])
|
|
7470
|
+
.filter((e) => e != null)
|
|
7471
|
+
.map((entry) => {
|
|
7472
|
+
if (entry === null) {
|
|
7473
|
+
return null;
|
|
7474
|
+
}
|
|
7475
|
+
return deserializeAws_json1_1FeaturedResultsSetSummary(entry, context);
|
|
7476
|
+
});
|
|
7477
|
+
return retVal;
|
|
7478
|
+
};
|
|
6915
7479
|
const deserializeAws_json1_1FolderIdList = (output, context) => {
|
|
6916
7480
|
const retVal = (output || [])
|
|
6917
7481
|
.filter((e) => e != null)
|
|
@@ -7330,6 +7894,14 @@ const deserializeAws_json1_1ListFaqsResponse = (output, context) => {
|
|
|
7330
7894
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
7331
7895
|
};
|
|
7332
7896
|
};
|
|
7897
|
+
const deserializeAws_json1_1ListFeaturedResultsSetsResponse = (output, context) => {
|
|
7898
|
+
return {
|
|
7899
|
+
FeaturedResultsSetSummaryItems: output.FeaturedResultsSetSummaryItems != null
|
|
7900
|
+
? deserializeAws_json1_1FeaturedResultsSetSummaryItems(output.FeaturedResultsSetSummaryItems, context)
|
|
7901
|
+
: undefined,
|
|
7902
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
7903
|
+
};
|
|
7904
|
+
};
|
|
7333
7905
|
const deserializeAws_json1_1ListGroupsOlderThanOrderingIdResponse = (output, context) => {
|
|
7334
7906
|
return {
|
|
7335
7907
|
GroupsSummaries: output.GroupsSummaries != null
|
|
@@ -7504,6 +8076,9 @@ const deserializeAws_json1_1PublicChannelFilter = (output, context) => {
|
|
|
7504
8076
|
const deserializeAws_json1_1QueryResult = (output, context) => {
|
|
7505
8077
|
return {
|
|
7506
8078
|
FacetResults: output.FacetResults != null ? deserializeAws_json1_1FacetResultList(output.FacetResults, context) : undefined,
|
|
8079
|
+
FeaturedResultsItems: output.FeaturedResultsItems != null
|
|
8080
|
+
? deserializeAws_json1_1FeaturedResultsItemList(output.FeaturedResultsItems, context)
|
|
8081
|
+
: undefined,
|
|
7507
8082
|
QueryId: (0, smithy_client_1.expectString)(output.QueryId),
|
|
7508
8083
|
ResultItems: output.ResultItems != null ? deserializeAws_json1_1QueryResultItemList(output.ResultItems, context) : undefined,
|
|
7509
8084
|
SpellCorrectedQueries: output.SpellCorrectedQueries != null
|
|
@@ -7571,6 +8146,17 @@ const deserializeAws_json1_1QuerySuggestionsBlockListSummaryItems = (output, con
|
|
|
7571
8146
|
});
|
|
7572
8147
|
return retVal;
|
|
7573
8148
|
};
|
|
8149
|
+
const deserializeAws_json1_1QueryTextList = (output, context) => {
|
|
8150
|
+
const retVal = (output || [])
|
|
8151
|
+
.filter((e) => e != null)
|
|
8152
|
+
.map((entry) => {
|
|
8153
|
+
if (entry === null) {
|
|
8154
|
+
return null;
|
|
8155
|
+
}
|
|
8156
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
8157
|
+
});
|
|
8158
|
+
return retVal;
|
|
8159
|
+
};
|
|
7574
8160
|
const deserializeAws_json1_1QuipConfiguration = (output, context) => {
|
|
7575
8161
|
return {
|
|
7576
8162
|
AttachmentFieldMappings: output.AttachmentFieldMappings != null
|
|
@@ -8255,6 +8841,13 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
|
8255
8841
|
const deserializeAws_json1_1UpdateAccessControlConfigurationResponse = (output, context) => {
|
|
8256
8842
|
return {};
|
|
8257
8843
|
};
|
|
8844
|
+
const deserializeAws_json1_1UpdateFeaturedResultsSetResponse = (output, context) => {
|
|
8845
|
+
return {
|
|
8846
|
+
FeaturedResultsSet: output.FeaturedResultsSet != null
|
|
8847
|
+
? deserializeAws_json1_1FeaturedResultsSet(output.FeaturedResultsSet, context)
|
|
8848
|
+
: undefined,
|
|
8849
|
+
};
|
|
8850
|
+
};
|
|
8258
8851
|
const deserializeAws_json1_1Urls = (output, context) => {
|
|
8259
8852
|
return {
|
|
8260
8853
|
SeedUrlConfiguration: output.SeedUrlConfiguration != null
|