@aws-sdk/client-cloudsearch-domain 3.131.0 → 3.142.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/CHANGELOG.md +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/SearchCommand.js +2 -2
- package/dist-cjs/commands/SuggestCommand.js +2 -2
- package/dist-cjs/commands/UploadDocumentsCommand.js +2 -2
- package/dist-cjs/models/models_0.js +65 -97
- package/dist-cjs/protocols/Aws_restJson1.js +71 -90
- package/dist-es/commands/SearchCommand.js +3 -3
- package/dist-es/commands/SuggestCommand.js +3 -3
- package/dist-es/commands/UploadDocumentsCommand.js +3 -3
- package/dist-es/models/models_0.js +16 -64
- package/dist-es/protocols/Aws_restJson1.js +81 -65
- package/dist-types/models/models_0.d.ts +64 -96
- package/dist-types/ts3.4/models/models_0.d.ts +32 -64
- package/package.json +6 -6
|
@@ -12,58 +12,6 @@ var SearchException = (function (_super) {
|
|
|
12
12
|
return SearchException;
|
|
13
13
|
}(__BaseException));
|
|
14
14
|
export { SearchException };
|
|
15
|
-
export var SearchRequest;
|
|
16
|
-
(function (SearchRequest) {
|
|
17
|
-
SearchRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
18
|
-
})(SearchRequest || (SearchRequest = {}));
|
|
19
|
-
export var Bucket;
|
|
20
|
-
(function (Bucket) {
|
|
21
|
-
Bucket.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
22
|
-
})(Bucket || (Bucket = {}));
|
|
23
|
-
export var BucketInfo;
|
|
24
|
-
(function (BucketInfo) {
|
|
25
|
-
BucketInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
26
|
-
})(BucketInfo || (BucketInfo = {}));
|
|
27
|
-
export var Hit;
|
|
28
|
-
(function (Hit) {
|
|
29
|
-
Hit.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
30
|
-
})(Hit || (Hit = {}));
|
|
31
|
-
export var Hits;
|
|
32
|
-
(function (Hits) {
|
|
33
|
-
Hits.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
34
|
-
})(Hits || (Hits = {}));
|
|
35
|
-
export var FieldStats;
|
|
36
|
-
(function (FieldStats) {
|
|
37
|
-
FieldStats.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
38
|
-
})(FieldStats || (FieldStats = {}));
|
|
39
|
-
export var SearchStatus;
|
|
40
|
-
(function (SearchStatus) {
|
|
41
|
-
SearchStatus.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
42
|
-
})(SearchStatus || (SearchStatus = {}));
|
|
43
|
-
export var SearchResponse;
|
|
44
|
-
(function (SearchResponse) {
|
|
45
|
-
SearchResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
46
|
-
})(SearchResponse || (SearchResponse = {}));
|
|
47
|
-
export var SuggestRequest;
|
|
48
|
-
(function (SuggestRequest) {
|
|
49
|
-
SuggestRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
50
|
-
})(SuggestRequest || (SuggestRequest = {}));
|
|
51
|
-
export var SuggestStatus;
|
|
52
|
-
(function (SuggestStatus) {
|
|
53
|
-
SuggestStatus.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
54
|
-
})(SuggestStatus || (SuggestStatus = {}));
|
|
55
|
-
export var SuggestionMatch;
|
|
56
|
-
(function (SuggestionMatch) {
|
|
57
|
-
SuggestionMatch.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
58
|
-
})(SuggestionMatch || (SuggestionMatch = {}));
|
|
59
|
-
export var SuggestModel;
|
|
60
|
-
(function (SuggestModel) {
|
|
61
|
-
SuggestModel.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
62
|
-
})(SuggestModel || (SuggestModel = {}));
|
|
63
|
-
export var SuggestResponse;
|
|
64
|
-
(function (SuggestResponse) {
|
|
65
|
-
SuggestResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
66
|
-
})(SuggestResponse || (SuggestResponse = {}));
|
|
67
15
|
var DocumentServiceException = (function (_super) {
|
|
68
16
|
__extends(DocumentServiceException, _super);
|
|
69
17
|
function DocumentServiceException(opts) {
|
|
@@ -77,15 +25,19 @@ var DocumentServiceException = (function (_super) {
|
|
|
77
25
|
return DocumentServiceException;
|
|
78
26
|
}(__BaseException));
|
|
79
27
|
export { DocumentServiceException };
|
|
80
|
-
export var
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
export var
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
export var
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
28
|
+
export var SearchRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
29
|
+
export var BucketFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
30
|
+
export var BucketInfoFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
31
|
+
export var HitFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
32
|
+
export var HitsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
33
|
+
export var FieldStatsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
34
|
+
export var SearchStatusFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
35
|
+
export var SearchResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
36
|
+
export var SuggestRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
37
|
+
export var SuggestStatusFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
38
|
+
export var SuggestionMatchFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
39
|
+
export var SuggestModelFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
40
|
+
export var SuggestResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
41
|
+
export var UploadDocumentsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
42
|
+
export var DocumentServiceWarningFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
43
|
+
export var UploadDocumentsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { CloudSearchDomainServiceException as __BaseException } from "../models/CloudSearchDomainServiceException";
|
|
5
5
|
import { DocumentServiceException, SearchException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1SearchCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -12,7 +12,24 @@ export var serializeAws_restJson1SearchCommand = function (input, context) { ret
|
|
|
12
12
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
13
13
|
headers = {};
|
|
14
14
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2013-01-01/search";
|
|
15
|
-
query =
|
|
15
|
+
query = map({
|
|
16
|
+
format: [, "sdk"],
|
|
17
|
+
pretty: [, "true"],
|
|
18
|
+
cursor: [, input.cursor],
|
|
19
|
+
expr: [, input.expr],
|
|
20
|
+
facet: [, input.facet],
|
|
21
|
+
fq: [, input.filterQuery],
|
|
22
|
+
highlight: [, input.highlight],
|
|
23
|
+
partial: [function () { return input.partial !== void 0; }, function () { return input.partial.toString(); }],
|
|
24
|
+
q: [, input.query],
|
|
25
|
+
"q.options": [, input.queryOptions],
|
|
26
|
+
"q.parser": [, input.queryParser],
|
|
27
|
+
return: [, input.return],
|
|
28
|
+
size: [function () { return input.size !== void 0; }, function () { return input.size.toString(); }],
|
|
29
|
+
sort: [, input.sort],
|
|
30
|
+
start: [function () { return input.start !== void 0; }, function () { return input.start.toString(); }],
|
|
31
|
+
stats: [, input.stats],
|
|
32
|
+
});
|
|
16
33
|
return [2, new __HttpRequest({
|
|
17
34
|
protocol: protocol,
|
|
18
35
|
hostname: hostname,
|
|
@@ -35,7 +52,13 @@ export var serializeAws_restJson1SuggestCommand = function (input, context) { re
|
|
|
35
52
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
36
53
|
headers = {};
|
|
37
54
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2013-01-01/suggest";
|
|
38
|
-
query =
|
|
55
|
+
query = map({
|
|
56
|
+
format: [, "sdk"],
|
|
57
|
+
pretty: [, "true"],
|
|
58
|
+
q: [, input.query],
|
|
59
|
+
suggester: [, input.suggester],
|
|
60
|
+
size: [function () { return input.size !== void 0; }, function () { return input.size.toString(); }],
|
|
61
|
+
});
|
|
39
62
|
return [2, new __HttpRequest({
|
|
40
63
|
protocol: protocol,
|
|
41
64
|
hostname: hostname,
|
|
@@ -56,11 +79,13 @@ export var serializeAws_restJson1UploadDocumentsCommand = function (input, conte
|
|
|
56
79
|
case 0: return [4, context.endpoint()];
|
|
57
80
|
case 1:
|
|
58
81
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
59
|
-
headers =
|
|
82
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
83
|
+
"content-type": input.contentType || "application/octet-stream",
|
|
84
|
+
});
|
|
60
85
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2013-01-01/documents/batch";
|
|
61
|
-
query = {
|
|
62
|
-
format: "sdk",
|
|
63
|
-
};
|
|
86
|
+
query = map({
|
|
87
|
+
format: [, "sdk"],
|
|
88
|
+
});
|
|
64
89
|
if (input.documents !== undefined) {
|
|
65
90
|
body = input.documents;
|
|
66
91
|
}
|
|
@@ -85,36 +110,32 @@ export var deserializeAws_restJson1SearchCommand = function (output, context) {
|
|
|
85
110
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
86
111
|
return [2, deserializeAws_restJson1SearchCommandError(output, context)];
|
|
87
112
|
}
|
|
88
|
-
contents = {
|
|
113
|
+
contents = map({
|
|
89
114
|
$metadata: deserializeMetadata(output),
|
|
90
|
-
|
|
91
|
-
hits: undefined,
|
|
92
|
-
stats: undefined,
|
|
93
|
-
status: undefined,
|
|
94
|
-
};
|
|
115
|
+
});
|
|
95
116
|
_a = __expectNonNull;
|
|
96
117
|
_b = __expectObject;
|
|
97
118
|
return [4, parseBody(output.body, context)];
|
|
98
119
|
case 1:
|
|
99
120
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
100
|
-
if (data.facets
|
|
121
|
+
if (data.facets != null) {
|
|
101
122
|
contents.facets = deserializeAws_restJson1Facets(data.facets, context);
|
|
102
123
|
}
|
|
103
|
-
if (data.hits
|
|
124
|
+
if (data.hits != null) {
|
|
104
125
|
contents.hits = deserializeAws_restJson1Hits(data.hits, context);
|
|
105
126
|
}
|
|
106
|
-
if (data.stats
|
|
127
|
+
if (data.stats != null) {
|
|
107
128
|
contents.stats = deserializeAws_restJson1Stats(data.stats, context);
|
|
108
129
|
}
|
|
109
|
-
if (data.status
|
|
130
|
+
if (data.status != null) {
|
|
110
131
|
contents.status = deserializeAws_restJson1SearchStatus(data.status, context);
|
|
111
132
|
}
|
|
112
|
-
return [2,
|
|
133
|
+
return [2, contents];
|
|
113
134
|
}
|
|
114
135
|
});
|
|
115
136
|
}); };
|
|
116
137
|
var deserializeAws_restJson1SearchCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
117
|
-
var parsedOutput, _a,
|
|
138
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
118
139
|
var _c;
|
|
119
140
|
return __generator(this, function (_d) {
|
|
120
141
|
switch (_d.label) {
|
|
@@ -135,14 +156,14 @@ var deserializeAws_restJson1SearchCommandError = function (output, context) { re
|
|
|
135
156
|
case 3: throw _d.sent();
|
|
136
157
|
case 4:
|
|
137
158
|
parsedBody = parsedOutput.body;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
$metadata: $metadata,
|
|
159
|
+
throwDefaultError({
|
|
160
|
+
output: output,
|
|
161
|
+
parsedBody: parsedBody,
|
|
162
|
+
exceptionCtor: __BaseException,
|
|
163
|
+
errorCode: errorCode,
|
|
144
164
|
});
|
|
145
|
-
|
|
165
|
+
_d.label = 5;
|
|
166
|
+
case 5: return [2];
|
|
146
167
|
}
|
|
147
168
|
});
|
|
148
169
|
}); };
|
|
@@ -154,28 +175,26 @@ export var deserializeAws_restJson1SuggestCommand = function (output, context) {
|
|
|
154
175
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
155
176
|
return [2, deserializeAws_restJson1SuggestCommandError(output, context)];
|
|
156
177
|
}
|
|
157
|
-
contents = {
|
|
178
|
+
contents = map({
|
|
158
179
|
$metadata: deserializeMetadata(output),
|
|
159
|
-
|
|
160
|
-
suggest: undefined,
|
|
161
|
-
};
|
|
180
|
+
});
|
|
162
181
|
_a = __expectNonNull;
|
|
163
182
|
_b = __expectObject;
|
|
164
183
|
return [4, parseBody(output.body, context)];
|
|
165
184
|
case 1:
|
|
166
185
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
167
|
-
if (data.status
|
|
186
|
+
if (data.status != null) {
|
|
168
187
|
contents.status = deserializeAws_restJson1SuggestStatus(data.status, context);
|
|
169
188
|
}
|
|
170
|
-
if (data.suggest
|
|
189
|
+
if (data.suggest != null) {
|
|
171
190
|
contents.suggest = deserializeAws_restJson1SuggestModel(data.suggest, context);
|
|
172
191
|
}
|
|
173
|
-
return [2,
|
|
192
|
+
return [2, contents];
|
|
174
193
|
}
|
|
175
194
|
});
|
|
176
195
|
}); };
|
|
177
196
|
var deserializeAws_restJson1SuggestCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
178
|
-
var parsedOutput, _a,
|
|
197
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
179
198
|
var _c;
|
|
180
199
|
return __generator(this, function (_d) {
|
|
181
200
|
switch (_d.label) {
|
|
@@ -196,14 +215,14 @@ var deserializeAws_restJson1SuggestCommandError = function (output, context) { r
|
|
|
196
215
|
case 3: throw _d.sent();
|
|
197
216
|
case 4:
|
|
198
217
|
parsedBody = parsedOutput.body;
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
$metadata: $metadata,
|
|
218
|
+
throwDefaultError({
|
|
219
|
+
output: output,
|
|
220
|
+
parsedBody: parsedBody,
|
|
221
|
+
exceptionCtor: __BaseException,
|
|
222
|
+
errorCode: errorCode,
|
|
205
223
|
});
|
|
206
|
-
|
|
224
|
+
_d.label = 5;
|
|
225
|
+
case 5: return [2];
|
|
207
226
|
}
|
|
208
227
|
});
|
|
209
228
|
}); };
|
|
@@ -215,36 +234,32 @@ export var deserializeAws_restJson1UploadDocumentsCommand = function (output, co
|
|
|
215
234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
216
235
|
return [2, deserializeAws_restJson1UploadDocumentsCommandError(output, context)];
|
|
217
236
|
}
|
|
218
|
-
contents = {
|
|
237
|
+
contents = map({
|
|
219
238
|
$metadata: deserializeMetadata(output),
|
|
220
|
-
|
|
221
|
-
deletes: undefined,
|
|
222
|
-
status: undefined,
|
|
223
|
-
warnings: undefined,
|
|
224
|
-
};
|
|
239
|
+
});
|
|
225
240
|
_a = __expectNonNull;
|
|
226
241
|
_b = __expectObject;
|
|
227
242
|
return [4, parseBody(output.body, context)];
|
|
228
243
|
case 1:
|
|
229
244
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
230
|
-
if (data.adds
|
|
245
|
+
if (data.adds != null) {
|
|
231
246
|
contents.adds = __expectLong(data.adds);
|
|
232
247
|
}
|
|
233
|
-
if (data.deletes
|
|
248
|
+
if (data.deletes != null) {
|
|
234
249
|
contents.deletes = __expectLong(data.deletes);
|
|
235
250
|
}
|
|
236
|
-
if (data.status
|
|
251
|
+
if (data.status != null) {
|
|
237
252
|
contents.status = __expectString(data.status);
|
|
238
253
|
}
|
|
239
|
-
if (data.warnings
|
|
254
|
+
if (data.warnings != null) {
|
|
240
255
|
contents.warnings = deserializeAws_restJson1DocumentServiceWarnings(data.warnings, context);
|
|
241
256
|
}
|
|
242
|
-
return [2,
|
|
257
|
+
return [2, contents];
|
|
243
258
|
}
|
|
244
259
|
});
|
|
245
260
|
}); };
|
|
246
261
|
var deserializeAws_restJson1UploadDocumentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
247
|
-
var parsedOutput, _a,
|
|
262
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
248
263
|
var _c;
|
|
249
264
|
return __generator(this, function (_d) {
|
|
250
265
|
switch (_d.label) {
|
|
@@ -265,26 +280,27 @@ var deserializeAws_restJson1UploadDocumentsCommandError = function (output, cont
|
|
|
265
280
|
case 3: throw _d.sent();
|
|
266
281
|
case 4:
|
|
267
282
|
parsedBody = parsedOutput.body;
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
$metadata: $metadata,
|
|
283
|
+
throwDefaultError({
|
|
284
|
+
output: output,
|
|
285
|
+
parsedBody: parsedBody,
|
|
286
|
+
exceptionCtor: __BaseException,
|
|
287
|
+
errorCode: errorCode,
|
|
274
288
|
});
|
|
275
|
-
|
|
289
|
+
_d.label = 5;
|
|
290
|
+
case 5: return [2];
|
|
276
291
|
}
|
|
277
292
|
});
|
|
278
293
|
}); };
|
|
294
|
+
var map = __map;
|
|
279
295
|
var deserializeAws_restJson1DocumentServiceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
280
296
|
var contents, data, exception;
|
|
281
297
|
return __generator(this, function (_a) {
|
|
282
|
-
contents = {};
|
|
298
|
+
contents = map({});
|
|
283
299
|
data = parsedOutput.body;
|
|
284
|
-
if (data.message
|
|
300
|
+
if (data.message != null) {
|
|
285
301
|
contents.message = __expectString(data.message);
|
|
286
302
|
}
|
|
287
|
-
if (data.status
|
|
303
|
+
if (data.status != null) {
|
|
288
304
|
contents.status = __expectString(data.status);
|
|
289
305
|
}
|
|
290
306
|
exception = new DocumentServiceException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -294,9 +310,9 @@ var deserializeAws_restJson1DocumentServiceExceptionResponse = function (parsedO
|
|
|
294
310
|
var deserializeAws_restJson1SearchExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
295
311
|
var contents, data, exception;
|
|
296
312
|
return __generator(this, function (_a) {
|
|
297
|
-
contents = {};
|
|
313
|
+
contents = map({});
|
|
298
314
|
data = parsedOutput.body;
|
|
299
|
-
if (data.message
|
|
315
|
+
if (data.message != null) {
|
|
300
316
|
contents.message = __expectString(data.message);
|
|
301
317
|
}
|
|
302
318
|
exception = new SearchException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -286,12 +286,6 @@ export interface SearchRequest {
|
|
|
286
286
|
*/
|
|
287
287
|
stats?: string;
|
|
288
288
|
}
|
|
289
|
-
export declare namespace SearchRequest {
|
|
290
|
-
/**
|
|
291
|
-
* @internal
|
|
292
|
-
*/
|
|
293
|
-
const filterSensitiveLog: (obj: SearchRequest) => any;
|
|
294
|
-
}
|
|
295
289
|
/**
|
|
296
290
|
* <p>A container for facet information. </p>
|
|
297
291
|
*/
|
|
@@ -305,12 +299,6 @@ export interface Bucket {
|
|
|
305
299
|
*/
|
|
306
300
|
count?: number;
|
|
307
301
|
}
|
|
308
|
-
export declare namespace Bucket {
|
|
309
|
-
/**
|
|
310
|
-
* @internal
|
|
311
|
-
*/
|
|
312
|
-
const filterSensitiveLog: (obj: Bucket) => any;
|
|
313
|
-
}
|
|
314
302
|
/**
|
|
315
303
|
* <p>A container for the calculated facet values and counts.</p>
|
|
316
304
|
*/
|
|
@@ -320,12 +308,6 @@ export interface BucketInfo {
|
|
|
320
308
|
*/
|
|
321
309
|
buckets?: Bucket[];
|
|
322
310
|
}
|
|
323
|
-
export declare namespace BucketInfo {
|
|
324
|
-
/**
|
|
325
|
-
* @internal
|
|
326
|
-
*/
|
|
327
|
-
const filterSensitiveLog: (obj: BucketInfo) => any;
|
|
328
|
-
}
|
|
329
311
|
/**
|
|
330
312
|
* <p>Information about a document that matches the search request.</p>
|
|
331
313
|
*/
|
|
@@ -347,12 +329,6 @@ export interface Hit {
|
|
|
347
329
|
*/
|
|
348
330
|
highlights?: Record<string, string>;
|
|
349
331
|
}
|
|
350
|
-
export declare namespace Hit {
|
|
351
|
-
/**
|
|
352
|
-
* @internal
|
|
353
|
-
*/
|
|
354
|
-
const filterSensitiveLog: (obj: Hit) => any;
|
|
355
|
-
}
|
|
356
332
|
/**
|
|
357
333
|
* <p>The collection of documents that match the search request.</p>
|
|
358
334
|
*/
|
|
@@ -374,12 +350,6 @@ export interface Hits {
|
|
|
374
350
|
*/
|
|
375
351
|
hit?: Hit[];
|
|
376
352
|
}
|
|
377
|
-
export declare namespace Hits {
|
|
378
|
-
/**
|
|
379
|
-
* @internal
|
|
380
|
-
*/
|
|
381
|
-
const filterSensitiveLog: (obj: Hits) => any;
|
|
382
|
-
}
|
|
383
353
|
/**
|
|
384
354
|
* <p>The statistics for a field calculated in the request.</p>
|
|
385
355
|
*/
|
|
@@ -420,12 +390,6 @@ export interface FieldStats {
|
|
|
420
390
|
*/
|
|
421
391
|
stddev?: number;
|
|
422
392
|
}
|
|
423
|
-
export declare namespace FieldStats {
|
|
424
|
-
/**
|
|
425
|
-
* @internal
|
|
426
|
-
*/
|
|
427
|
-
const filterSensitiveLog: (obj: FieldStats) => any;
|
|
428
|
-
}
|
|
429
393
|
/**
|
|
430
394
|
* <p>Contains the resource id (<code>rid</code>) and the time it took to process the request (<code>timems</code>).</p>
|
|
431
395
|
*/
|
|
@@ -439,12 +403,6 @@ export interface SearchStatus {
|
|
|
439
403
|
*/
|
|
440
404
|
rid?: string;
|
|
441
405
|
}
|
|
442
|
-
export declare namespace SearchStatus {
|
|
443
|
-
/**
|
|
444
|
-
* @internal
|
|
445
|
-
*/
|
|
446
|
-
const filterSensitiveLog: (obj: SearchStatus) => any;
|
|
447
|
-
}
|
|
448
406
|
/**
|
|
449
407
|
* <p>The result of a <code>Search</code> request. Contains the documents that match the specified search criteria and any requested fields, highlights, and facet information.</p>
|
|
450
408
|
*/
|
|
@@ -466,12 +424,6 @@ export interface SearchResponse {
|
|
|
466
424
|
*/
|
|
467
425
|
stats?: Record<string, FieldStats>;
|
|
468
426
|
}
|
|
469
|
-
export declare namespace SearchResponse {
|
|
470
|
-
/**
|
|
471
|
-
* @internal
|
|
472
|
-
*/
|
|
473
|
-
const filterSensitiveLog: (obj: SearchResponse) => any;
|
|
474
|
-
}
|
|
475
427
|
/**
|
|
476
428
|
* <p>Container for the parameters to the <code>Suggest</code> request.</p>
|
|
477
429
|
*/
|
|
@@ -489,12 +441,6 @@ export interface SuggestRequest {
|
|
|
489
441
|
*/
|
|
490
442
|
size?: number;
|
|
491
443
|
}
|
|
492
|
-
export declare namespace SuggestRequest {
|
|
493
|
-
/**
|
|
494
|
-
* @internal
|
|
495
|
-
*/
|
|
496
|
-
const filterSensitiveLog: (obj: SuggestRequest) => any;
|
|
497
|
-
}
|
|
498
444
|
/**
|
|
499
445
|
* <p>Contains the resource id (<code>rid</code>) and the time it took to process the request (<code>timems</code>).</p>
|
|
500
446
|
*/
|
|
@@ -508,12 +454,6 @@ export interface SuggestStatus {
|
|
|
508
454
|
*/
|
|
509
455
|
rid?: string;
|
|
510
456
|
}
|
|
511
|
-
export declare namespace SuggestStatus {
|
|
512
|
-
/**
|
|
513
|
-
* @internal
|
|
514
|
-
*/
|
|
515
|
-
const filterSensitiveLog: (obj: SuggestStatus) => any;
|
|
516
|
-
}
|
|
517
457
|
/**
|
|
518
458
|
* <p>An autocomplete suggestion that matches the query string specified in a <code>SuggestRequest</code>. </p>
|
|
519
459
|
*/
|
|
@@ -531,12 +471,6 @@ export interface SuggestionMatch {
|
|
|
531
471
|
*/
|
|
532
472
|
id?: string;
|
|
533
473
|
}
|
|
534
|
-
export declare namespace SuggestionMatch {
|
|
535
|
-
/**
|
|
536
|
-
* @internal
|
|
537
|
-
*/
|
|
538
|
-
const filterSensitiveLog: (obj: SuggestionMatch) => any;
|
|
539
|
-
}
|
|
540
474
|
/**
|
|
541
475
|
* <p>Container for the suggestion information returned in a <code>SuggestResponse</code>.</p>
|
|
542
476
|
*/
|
|
@@ -554,12 +488,6 @@ export interface SuggestModel {
|
|
|
554
488
|
*/
|
|
555
489
|
suggestions?: SuggestionMatch[];
|
|
556
490
|
}
|
|
557
|
-
export declare namespace SuggestModel {
|
|
558
|
-
/**
|
|
559
|
-
* @internal
|
|
560
|
-
*/
|
|
561
|
-
const filterSensitiveLog: (obj: SuggestModel) => any;
|
|
562
|
-
}
|
|
563
491
|
/**
|
|
564
492
|
* <p>Contains the response to a <code>Suggest</code> request.</p>
|
|
565
493
|
*/
|
|
@@ -573,12 +501,6 @@ export interface SuggestResponse {
|
|
|
573
501
|
*/
|
|
574
502
|
suggest?: SuggestModel;
|
|
575
503
|
}
|
|
576
|
-
export declare namespace SuggestResponse {
|
|
577
|
-
/**
|
|
578
|
-
* @internal
|
|
579
|
-
*/
|
|
580
|
-
const filterSensitiveLog: (obj: SuggestResponse) => any;
|
|
581
|
-
}
|
|
582
504
|
/**
|
|
583
505
|
* <p>Information about any problems encountered while processing an upload request.</p>
|
|
584
506
|
*/
|
|
@@ -612,12 +534,6 @@ export interface UploadDocumentsRequest {
|
|
|
612
534
|
*/
|
|
613
535
|
contentType: ContentType | string | undefined;
|
|
614
536
|
}
|
|
615
|
-
export declare namespace UploadDocumentsRequest {
|
|
616
|
-
/**
|
|
617
|
-
* @internal
|
|
618
|
-
*/
|
|
619
|
-
const filterSensitiveLog: (obj: UploadDocumentsRequest) => any;
|
|
620
|
-
}
|
|
621
537
|
/**
|
|
622
538
|
* <p>A warning returned by the document service when an issue is discovered while processing an upload request.</p>
|
|
623
539
|
*/
|
|
@@ -627,12 +543,6 @@ export interface DocumentServiceWarning {
|
|
|
627
543
|
*/
|
|
628
544
|
message?: string;
|
|
629
545
|
}
|
|
630
|
-
export declare namespace DocumentServiceWarning {
|
|
631
|
-
/**
|
|
632
|
-
* @internal
|
|
633
|
-
*/
|
|
634
|
-
const filterSensitiveLog: (obj: DocumentServiceWarning) => any;
|
|
635
|
-
}
|
|
636
546
|
/**
|
|
637
547
|
* <p>Contains the response to an <code>UploadDocuments</code> request.</p>
|
|
638
548
|
*/
|
|
@@ -654,9 +564,67 @@ export interface UploadDocumentsResponse {
|
|
|
654
564
|
*/
|
|
655
565
|
warnings?: DocumentServiceWarning[];
|
|
656
566
|
}
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
567
|
+
/**
|
|
568
|
+
* @internal
|
|
569
|
+
*/
|
|
570
|
+
export declare const SearchRequestFilterSensitiveLog: (obj: SearchRequest) => any;
|
|
571
|
+
/**
|
|
572
|
+
* @internal
|
|
573
|
+
*/
|
|
574
|
+
export declare const BucketFilterSensitiveLog: (obj: Bucket) => any;
|
|
575
|
+
/**
|
|
576
|
+
* @internal
|
|
577
|
+
*/
|
|
578
|
+
export declare const BucketInfoFilterSensitiveLog: (obj: BucketInfo) => any;
|
|
579
|
+
/**
|
|
580
|
+
* @internal
|
|
581
|
+
*/
|
|
582
|
+
export declare const HitFilterSensitiveLog: (obj: Hit) => any;
|
|
583
|
+
/**
|
|
584
|
+
* @internal
|
|
585
|
+
*/
|
|
586
|
+
export declare const HitsFilterSensitiveLog: (obj: Hits) => any;
|
|
587
|
+
/**
|
|
588
|
+
* @internal
|
|
589
|
+
*/
|
|
590
|
+
export declare const FieldStatsFilterSensitiveLog: (obj: FieldStats) => any;
|
|
591
|
+
/**
|
|
592
|
+
* @internal
|
|
593
|
+
*/
|
|
594
|
+
export declare const SearchStatusFilterSensitiveLog: (obj: SearchStatus) => any;
|
|
595
|
+
/**
|
|
596
|
+
* @internal
|
|
597
|
+
*/
|
|
598
|
+
export declare const SearchResponseFilterSensitiveLog: (obj: SearchResponse) => any;
|
|
599
|
+
/**
|
|
600
|
+
* @internal
|
|
601
|
+
*/
|
|
602
|
+
export declare const SuggestRequestFilterSensitiveLog: (obj: SuggestRequest) => any;
|
|
603
|
+
/**
|
|
604
|
+
* @internal
|
|
605
|
+
*/
|
|
606
|
+
export declare const SuggestStatusFilterSensitiveLog: (obj: SuggestStatus) => any;
|
|
607
|
+
/**
|
|
608
|
+
* @internal
|
|
609
|
+
*/
|
|
610
|
+
export declare const SuggestionMatchFilterSensitiveLog: (obj: SuggestionMatch) => any;
|
|
611
|
+
/**
|
|
612
|
+
* @internal
|
|
613
|
+
*/
|
|
614
|
+
export declare const SuggestModelFilterSensitiveLog: (obj: SuggestModel) => any;
|
|
615
|
+
/**
|
|
616
|
+
* @internal
|
|
617
|
+
*/
|
|
618
|
+
export declare const SuggestResponseFilterSensitiveLog: (obj: SuggestResponse) => any;
|
|
619
|
+
/**
|
|
620
|
+
* @internal
|
|
621
|
+
*/
|
|
622
|
+
export declare const UploadDocumentsRequestFilterSensitiveLog: (obj: UploadDocumentsRequest) => any;
|
|
623
|
+
/**
|
|
624
|
+
* @internal
|
|
625
|
+
*/
|
|
626
|
+
export declare const DocumentServiceWarningFilterSensitiveLog: (obj: DocumentServiceWarning) => any;
|
|
627
|
+
/**
|
|
628
|
+
* @internal
|
|
629
|
+
*/
|
|
630
|
+
export declare const UploadDocumentsResponseFilterSensitiveLog: (obj: UploadDocumentsResponse) => any;
|