@aws-sdk/client-cloudsearch-domain 3.306.0 → 3.309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/SearchCommand.js +2 -2
- package/dist-cjs/commands/SuggestCommand.js +2 -2
- package/dist-cjs/commands/UploadDocumentsCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +64 -64
- 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/protocols/Aws_restJson1.js +57 -57
- package/dist-types/protocols/Aws_restJson1.d.ts +24 -6
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -6
- package/package.json +6 -6
|
@@ -36,10 +36,10 @@ class SearchCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_restJson1_1.
|
|
39
|
+
return (0, Aws_restJson1_1.se_SearchCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_restJson1_1.
|
|
42
|
+
return (0, Aws_restJson1_1.de_SearchCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.SearchCommand = SearchCommand;
|
|
@@ -36,10 +36,10 @@ class SuggestCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_restJson1_1.
|
|
39
|
+
return (0, Aws_restJson1_1.se_SuggestCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_restJson1_1.
|
|
42
|
+
return (0, Aws_restJson1_1.de_SuggestCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.SuggestCommand = SuggestCommand;
|
|
@@ -37,10 +37,10 @@ class UploadDocumentsCommand extends smithy_client_1.Command {
|
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
38
|
}
|
|
39
39
|
serialize(input, context) {
|
|
40
|
-
return (0, Aws_restJson1_1.
|
|
40
|
+
return (0, Aws_restJson1_1.se_UploadDocumentsCommand)(input, context);
|
|
41
41
|
}
|
|
42
42
|
deserialize(output, context) {
|
|
43
|
-
return (0, Aws_restJson1_1.
|
|
43
|
+
return (0, Aws_restJson1_1.de_UploadDocumentsCommand)(output, context);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
exports.UploadDocumentsCommand = UploadDocumentsCommand;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UploadDocumentsCommand = exports.de_SuggestCommand = exports.de_SearchCommand = exports.se_UploadDocumentsCommand = exports.se_SuggestCommand = exports.se_SearchCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const CloudSearchDomainServiceException_1 = require("../models/CloudSearchDomainServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const
|
|
8
|
+
const se_SearchCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = {};
|
|
11
11
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-01-01/search";
|
|
@@ -39,8 +39,8 @@ const serializeAws_restJson1SearchCommand = async (input, context) => {
|
|
|
39
39
|
body,
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
|
-
exports.
|
|
43
|
-
const
|
|
42
|
+
exports.se_SearchCommand = se_SearchCommand;
|
|
43
|
+
const se_SuggestCommand = async (input, context) => {
|
|
44
44
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
45
45
|
const headers = {};
|
|
46
46
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-01-01/suggest";
|
|
@@ -63,8 +63,8 @@ const serializeAws_restJson1SuggestCommand = async (input, context) => {
|
|
|
63
63
|
body,
|
|
64
64
|
});
|
|
65
65
|
};
|
|
66
|
-
exports.
|
|
67
|
-
const
|
|
66
|
+
exports.se_SuggestCommand = se_SuggestCommand;
|
|
67
|
+
const se_UploadDocumentsCommand = async (input, context) => {
|
|
68
68
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
69
69
|
const headers = map({}, isSerializableHeaderValue, {
|
|
70
70
|
"content-type": input.contentType || "application/octet-stream",
|
|
@@ -88,31 +88,31 @@ const serializeAws_restJson1UploadDocumentsCommand = async (input, context) => {
|
|
|
88
88
|
body,
|
|
89
89
|
});
|
|
90
90
|
};
|
|
91
|
-
exports.
|
|
92
|
-
const
|
|
91
|
+
exports.se_UploadDocumentsCommand = se_UploadDocumentsCommand;
|
|
92
|
+
const de_SearchCommand = async (output, context) => {
|
|
93
93
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
94
|
-
return
|
|
94
|
+
return de_SearchCommandError(output, context);
|
|
95
95
|
}
|
|
96
96
|
const contents = map({
|
|
97
97
|
$metadata: deserializeMetadata(output),
|
|
98
98
|
});
|
|
99
99
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
100
100
|
if (data.facets != null) {
|
|
101
|
-
contents.facets =
|
|
101
|
+
contents.facets = de_Facets(data.facets, context);
|
|
102
102
|
}
|
|
103
103
|
if (data.hits != null) {
|
|
104
|
-
contents.hits =
|
|
104
|
+
contents.hits = de_Hits(data.hits, context);
|
|
105
105
|
}
|
|
106
106
|
if (data.stats != null) {
|
|
107
|
-
contents.stats =
|
|
107
|
+
contents.stats = de_Stats(data.stats, context);
|
|
108
108
|
}
|
|
109
109
|
if (data.status != null) {
|
|
110
|
-
contents.status =
|
|
110
|
+
contents.status = de_SearchStatus(data.status, context);
|
|
111
111
|
}
|
|
112
112
|
return contents;
|
|
113
113
|
};
|
|
114
|
-
exports.
|
|
115
|
-
const
|
|
114
|
+
exports.de_SearchCommand = de_SearchCommand;
|
|
115
|
+
const de_SearchCommandError = async (output, context) => {
|
|
116
116
|
const parsedOutput = {
|
|
117
117
|
...output,
|
|
118
118
|
body: await parseErrorBody(output.body, context),
|
|
@@ -121,7 +121,7 @@ const deserializeAws_restJson1SearchCommandError = async (output, context) => {
|
|
|
121
121
|
switch (errorCode) {
|
|
122
122
|
case "SearchException":
|
|
123
123
|
case "com.amazonaws.cloudsearchdomain#SearchException":
|
|
124
|
-
throw await
|
|
124
|
+
throw await de_SearchExceptionRes(parsedOutput, context);
|
|
125
125
|
default:
|
|
126
126
|
const parsedBody = parsedOutput.body;
|
|
127
127
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -132,24 +132,24 @@ const deserializeAws_restJson1SearchCommandError = async (output, context) => {
|
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
|
-
const
|
|
135
|
+
const de_SuggestCommand = async (output, context) => {
|
|
136
136
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
137
|
-
return
|
|
137
|
+
return de_SuggestCommandError(output, context);
|
|
138
138
|
}
|
|
139
139
|
const contents = map({
|
|
140
140
|
$metadata: deserializeMetadata(output),
|
|
141
141
|
});
|
|
142
142
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
143
143
|
if (data.status != null) {
|
|
144
|
-
contents.status =
|
|
144
|
+
contents.status = de_SuggestStatus(data.status, context);
|
|
145
145
|
}
|
|
146
146
|
if (data.suggest != null) {
|
|
147
|
-
contents.suggest =
|
|
147
|
+
contents.suggest = de_SuggestModel(data.suggest, context);
|
|
148
148
|
}
|
|
149
149
|
return contents;
|
|
150
150
|
};
|
|
151
|
-
exports.
|
|
152
|
-
const
|
|
151
|
+
exports.de_SuggestCommand = de_SuggestCommand;
|
|
152
|
+
const de_SuggestCommandError = async (output, context) => {
|
|
153
153
|
const parsedOutput = {
|
|
154
154
|
...output,
|
|
155
155
|
body: await parseErrorBody(output.body, context),
|
|
@@ -158,7 +158,7 @@ const deserializeAws_restJson1SuggestCommandError = async (output, context) => {
|
|
|
158
158
|
switch (errorCode) {
|
|
159
159
|
case "SearchException":
|
|
160
160
|
case "com.amazonaws.cloudsearchdomain#SearchException":
|
|
161
|
-
throw await
|
|
161
|
+
throw await de_SearchExceptionRes(parsedOutput, context);
|
|
162
162
|
default:
|
|
163
163
|
const parsedBody = parsedOutput.body;
|
|
164
164
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -169,9 +169,9 @@ const deserializeAws_restJson1SuggestCommandError = async (output, context) => {
|
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
};
|
|
172
|
-
const
|
|
172
|
+
const de_UploadDocumentsCommand = async (output, context) => {
|
|
173
173
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
174
|
-
return
|
|
174
|
+
return de_UploadDocumentsCommandError(output, context);
|
|
175
175
|
}
|
|
176
176
|
const contents = map({
|
|
177
177
|
$metadata: deserializeMetadata(output),
|
|
@@ -187,12 +187,12 @@ const deserializeAws_restJson1UploadDocumentsCommand = async (output, context) =
|
|
|
187
187
|
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
188
188
|
}
|
|
189
189
|
if (data.warnings != null) {
|
|
190
|
-
contents.warnings =
|
|
190
|
+
contents.warnings = de_DocumentServiceWarnings(data.warnings, context);
|
|
191
191
|
}
|
|
192
192
|
return contents;
|
|
193
193
|
};
|
|
194
|
-
exports.
|
|
195
|
-
const
|
|
194
|
+
exports.de_UploadDocumentsCommand = de_UploadDocumentsCommand;
|
|
195
|
+
const de_UploadDocumentsCommandError = async (output, context) => {
|
|
196
196
|
const parsedOutput = {
|
|
197
197
|
...output,
|
|
198
198
|
body: await parseErrorBody(output.body, context),
|
|
@@ -201,7 +201,7 @@ const deserializeAws_restJson1UploadDocumentsCommandError = async (output, conte
|
|
|
201
201
|
switch (errorCode) {
|
|
202
202
|
case "DocumentServiceException":
|
|
203
203
|
case "com.amazonaws.cloudsearchdomain#DocumentServiceException":
|
|
204
|
-
throw await
|
|
204
|
+
throw await de_DocumentServiceExceptionRes(parsedOutput, context);
|
|
205
205
|
default:
|
|
206
206
|
const parsedBody = parsedOutput.body;
|
|
207
207
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -213,7 +213,7 @@ const deserializeAws_restJson1UploadDocumentsCommandError = async (output, conte
|
|
|
213
213
|
}
|
|
214
214
|
};
|
|
215
215
|
const map = smithy_client_1.map;
|
|
216
|
-
const
|
|
216
|
+
const de_DocumentServiceExceptionRes = async (parsedOutput, context) => {
|
|
217
217
|
const contents = map({});
|
|
218
218
|
const data = parsedOutput.body;
|
|
219
219
|
if (data.message != null) {
|
|
@@ -228,7 +228,7 @@ const deserializeAws_restJson1DocumentServiceExceptionResponse = async (parsedOu
|
|
|
228
228
|
});
|
|
229
229
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
230
230
|
};
|
|
231
|
-
const
|
|
231
|
+
const de_SearchExceptionRes = async (parsedOutput, context) => {
|
|
232
232
|
const contents = map({});
|
|
233
233
|
const data = parsedOutput.body;
|
|
234
234
|
if (data.message != null) {
|
|
@@ -240,45 +240,45 @@ const deserializeAws_restJson1SearchExceptionResponse = async (parsedOutput, con
|
|
|
240
240
|
});
|
|
241
241
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
242
242
|
};
|
|
243
|
-
const
|
|
243
|
+
const de_Bucket = (output, context) => {
|
|
244
244
|
return {
|
|
245
245
|
count: (0, smithy_client_1.expectLong)(output.count),
|
|
246
246
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
247
247
|
};
|
|
248
248
|
};
|
|
249
|
-
const
|
|
249
|
+
const de_BucketInfo = (output, context) => {
|
|
250
250
|
return {
|
|
251
|
-
buckets: output.buckets != null ?
|
|
251
|
+
buckets: output.buckets != null ? de_BucketList(output.buckets, context) : undefined,
|
|
252
252
|
};
|
|
253
253
|
};
|
|
254
|
-
const
|
|
254
|
+
const de_BucketList = (output, context) => {
|
|
255
255
|
const retVal = (output || [])
|
|
256
256
|
.filter((e) => e != null)
|
|
257
257
|
.map((entry) => {
|
|
258
258
|
if (entry === null) {
|
|
259
259
|
return null;
|
|
260
260
|
}
|
|
261
|
-
return
|
|
261
|
+
return de_Bucket(entry, context);
|
|
262
262
|
});
|
|
263
263
|
return retVal;
|
|
264
264
|
};
|
|
265
|
-
const
|
|
265
|
+
const de_DocumentServiceWarning = (output, context) => {
|
|
266
266
|
return {
|
|
267
267
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
268
268
|
};
|
|
269
269
|
};
|
|
270
|
-
const
|
|
270
|
+
const de_DocumentServiceWarnings = (output, context) => {
|
|
271
271
|
const retVal = (output || [])
|
|
272
272
|
.filter((e) => e != null)
|
|
273
273
|
.map((entry) => {
|
|
274
274
|
if (entry === null) {
|
|
275
275
|
return null;
|
|
276
276
|
}
|
|
277
|
-
return
|
|
277
|
+
return de_DocumentServiceWarning(entry, context);
|
|
278
278
|
});
|
|
279
279
|
return retVal;
|
|
280
280
|
};
|
|
281
|
-
const
|
|
281
|
+
const de_Exprs = (output, context) => {
|
|
282
282
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
283
283
|
if (value === null) {
|
|
284
284
|
return acc;
|
|
@@ -287,25 +287,25 @@ const deserializeAws_restJson1Exprs = (output, context) => {
|
|
|
287
287
|
return acc;
|
|
288
288
|
}, {});
|
|
289
289
|
};
|
|
290
|
-
const
|
|
290
|
+
const de_Facets = (output, context) => {
|
|
291
291
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
292
292
|
if (value === null) {
|
|
293
293
|
return acc;
|
|
294
294
|
}
|
|
295
|
-
acc[key] =
|
|
295
|
+
acc[key] = de_BucketInfo(value, context);
|
|
296
296
|
return acc;
|
|
297
297
|
}, {});
|
|
298
298
|
};
|
|
299
|
-
const
|
|
299
|
+
const de_Fields = (output, context) => {
|
|
300
300
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
301
301
|
if (value === null) {
|
|
302
302
|
return acc;
|
|
303
303
|
}
|
|
304
|
-
acc[key] =
|
|
304
|
+
acc[key] = de_FieldValue(value, context);
|
|
305
305
|
return acc;
|
|
306
306
|
}, {});
|
|
307
307
|
};
|
|
308
|
-
const
|
|
308
|
+
const de_FieldStats = (output, context) => {
|
|
309
309
|
return {
|
|
310
310
|
count: (0, smithy_client_1.expectLong)(output.count),
|
|
311
311
|
max: (0, smithy_client_1.expectString)(output.max),
|
|
@@ -317,7 +317,7 @@ const deserializeAws_restJson1FieldStats = (output, context) => {
|
|
|
317
317
|
sumOfSquares: (0, smithy_client_1.limitedParseDouble)(output.sumOfSquares),
|
|
318
318
|
};
|
|
319
319
|
};
|
|
320
|
-
const
|
|
320
|
+
const de_FieldValue = (output, context) => {
|
|
321
321
|
const retVal = (output || [])
|
|
322
322
|
.filter((e) => e != null)
|
|
323
323
|
.map((entry) => {
|
|
@@ -328,7 +328,7 @@ const deserializeAws_restJson1FieldValue = (output, context) => {
|
|
|
328
328
|
});
|
|
329
329
|
return retVal;
|
|
330
330
|
};
|
|
331
|
-
const
|
|
331
|
+
const de_Highlights = (output, context) => {
|
|
332
332
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
333
333
|
if (value === null) {
|
|
334
334
|
return acc;
|
|
@@ -337,74 +337,74 @@ const deserializeAws_restJson1Highlights = (output, context) => {
|
|
|
337
337
|
return acc;
|
|
338
338
|
}, {});
|
|
339
339
|
};
|
|
340
|
-
const
|
|
340
|
+
const de_Hit = (output, context) => {
|
|
341
341
|
return {
|
|
342
|
-
exprs: output.exprs != null ?
|
|
343
|
-
fields: output.fields != null ?
|
|
344
|
-
highlights: output.highlights != null ?
|
|
342
|
+
exprs: output.exprs != null ? de_Exprs(output.exprs, context) : undefined,
|
|
343
|
+
fields: output.fields != null ? de_Fields(output.fields, context) : undefined,
|
|
344
|
+
highlights: output.highlights != null ? de_Highlights(output.highlights, context) : undefined,
|
|
345
345
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
346
346
|
};
|
|
347
347
|
};
|
|
348
|
-
const
|
|
348
|
+
const de_HitList = (output, context) => {
|
|
349
349
|
const retVal = (output || [])
|
|
350
350
|
.filter((e) => e != null)
|
|
351
351
|
.map((entry) => {
|
|
352
352
|
if (entry === null) {
|
|
353
353
|
return null;
|
|
354
354
|
}
|
|
355
|
-
return
|
|
355
|
+
return de_Hit(entry, context);
|
|
356
356
|
});
|
|
357
357
|
return retVal;
|
|
358
358
|
};
|
|
359
|
-
const
|
|
359
|
+
const de_Hits = (output, context) => {
|
|
360
360
|
return {
|
|
361
361
|
cursor: (0, smithy_client_1.expectString)(output.cursor),
|
|
362
362
|
found: (0, smithy_client_1.expectLong)(output.found),
|
|
363
|
-
hit: output.hit != null ?
|
|
363
|
+
hit: output.hit != null ? de_HitList(output.hit, context) : undefined,
|
|
364
364
|
start: (0, smithy_client_1.expectLong)(output.start),
|
|
365
365
|
};
|
|
366
366
|
};
|
|
367
|
-
const
|
|
367
|
+
const de_SearchStatus = (output, context) => {
|
|
368
368
|
return {
|
|
369
369
|
rid: (0, smithy_client_1.expectString)(output.rid),
|
|
370
370
|
timems: (0, smithy_client_1.expectLong)(output.timems),
|
|
371
371
|
};
|
|
372
372
|
};
|
|
373
|
-
const
|
|
373
|
+
const de_Stats = (output, context) => {
|
|
374
374
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
375
375
|
if (value === null) {
|
|
376
376
|
return acc;
|
|
377
377
|
}
|
|
378
|
-
acc[key] =
|
|
378
|
+
acc[key] = de_FieldStats(value, context);
|
|
379
379
|
return acc;
|
|
380
380
|
}, {});
|
|
381
381
|
};
|
|
382
|
-
const
|
|
382
|
+
const de_SuggestionMatch = (output, context) => {
|
|
383
383
|
return {
|
|
384
384
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
385
385
|
score: (0, smithy_client_1.expectLong)(output.score),
|
|
386
386
|
suggestion: (0, smithy_client_1.expectString)(output.suggestion),
|
|
387
387
|
};
|
|
388
388
|
};
|
|
389
|
-
const
|
|
389
|
+
const de_Suggestions = (output, context) => {
|
|
390
390
|
const retVal = (output || [])
|
|
391
391
|
.filter((e) => e != null)
|
|
392
392
|
.map((entry) => {
|
|
393
393
|
if (entry === null) {
|
|
394
394
|
return null;
|
|
395
395
|
}
|
|
396
|
-
return
|
|
396
|
+
return de_SuggestionMatch(entry, context);
|
|
397
397
|
});
|
|
398
398
|
return retVal;
|
|
399
399
|
};
|
|
400
|
-
const
|
|
400
|
+
const de_SuggestModel = (output, context) => {
|
|
401
401
|
return {
|
|
402
402
|
found: (0, smithy_client_1.expectLong)(output.found),
|
|
403
403
|
query: (0, smithy_client_1.expectString)(output.query),
|
|
404
|
-
suggestions: output.suggestions != null ?
|
|
404
|
+
suggestions: output.suggestions != null ? de_Suggestions(output.suggestions, context) : undefined,
|
|
405
405
|
};
|
|
406
406
|
};
|
|
407
|
-
const
|
|
407
|
+
const de_SuggestStatus = (output, context) => {
|
|
408
408
|
return {
|
|
409
409
|
rid: (0, smithy_client_1.expectString)(output.rid),
|
|
410
410
|
timems: (0, smithy_client_1.expectLong)(output.timems),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { de_SearchCommand, se_SearchCommand } from "../protocols/Aws_restJson1";
|
|
5
5
|
export class SearchCommand extends $Command {
|
|
6
6
|
static getEndpointParameterInstructions() {
|
|
7
7
|
return {
|
|
@@ -33,9 +33,9 @@ export class SearchCommand extends $Command {
|
|
|
33
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
34
|
}
|
|
35
35
|
serialize(input, context) {
|
|
36
|
-
return
|
|
36
|
+
return se_SearchCommand(input, context);
|
|
37
37
|
}
|
|
38
38
|
deserialize(output, context) {
|
|
39
|
-
return
|
|
39
|
+
return de_SearchCommand(output, context);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { de_SuggestCommand, se_SuggestCommand } from "../protocols/Aws_restJson1";
|
|
5
5
|
export class SuggestCommand extends $Command {
|
|
6
6
|
static getEndpointParameterInstructions() {
|
|
7
7
|
return {
|
|
@@ -33,9 +33,9 @@ export class SuggestCommand extends $Command {
|
|
|
33
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
34
|
}
|
|
35
35
|
serialize(input, context) {
|
|
36
|
-
return
|
|
36
|
+
return se_SuggestCommand(input, context);
|
|
37
37
|
}
|
|
38
38
|
deserialize(output, context) {
|
|
39
|
-
return
|
|
39
|
+
return de_SuggestCommand(output, context);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { UploadDocumentsRequestFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
-
import {
|
|
5
|
+
import { de_UploadDocumentsCommand, se_UploadDocumentsCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class UploadDocumentsCommand extends $Command {
|
|
7
7
|
static getEndpointParameterInstructions() {
|
|
8
8
|
return {
|
|
@@ -34,9 +34,9 @@ export class UploadDocumentsCommand extends $Command {
|
|
|
34
34
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
35
|
}
|
|
36
36
|
serialize(input, context) {
|
|
37
|
-
return
|
|
37
|
+
return se_UploadDocumentsCommand(input, context);
|
|
38
38
|
}
|
|
39
39
|
deserialize(output, context) {
|
|
40
|
-
return
|
|
40
|
+
return de_UploadDocumentsCommand(output, context);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
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";
|
|
3
3
|
import { CloudSearchDomainServiceException as __BaseException } from "../models/CloudSearchDomainServiceException";
|
|
4
4
|
import { DocumentServiceException, SearchException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_SearchCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {};
|
|
8
8
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-01-01/search";
|
|
@@ -36,7 +36,7 @@ export const serializeAws_restJson1SearchCommand = async (input, context) => {
|
|
|
36
36
|
body,
|
|
37
37
|
});
|
|
38
38
|
};
|
|
39
|
-
export const
|
|
39
|
+
export const se_SuggestCommand = async (input, context) => {
|
|
40
40
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
41
41
|
const headers = {};
|
|
42
42
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-01-01/suggest";
|
|
@@ -59,7 +59,7 @@ export const serializeAws_restJson1SuggestCommand = async (input, context) => {
|
|
|
59
59
|
body,
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
|
-
export const
|
|
62
|
+
export const se_UploadDocumentsCommand = async (input, context) => {
|
|
63
63
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
64
64
|
const headers = map({}, isSerializableHeaderValue, {
|
|
65
65
|
"content-type": input.contentType || "application/octet-stream",
|
|
@@ -83,29 +83,29 @@ export const serializeAws_restJson1UploadDocumentsCommand = async (input, contex
|
|
|
83
83
|
body,
|
|
84
84
|
});
|
|
85
85
|
};
|
|
86
|
-
export const
|
|
86
|
+
export const de_SearchCommand = async (output, context) => {
|
|
87
87
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
88
|
-
return
|
|
88
|
+
return de_SearchCommandError(output, context);
|
|
89
89
|
}
|
|
90
90
|
const contents = map({
|
|
91
91
|
$metadata: deserializeMetadata(output),
|
|
92
92
|
});
|
|
93
93
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
94
94
|
if (data.facets != null) {
|
|
95
|
-
contents.facets =
|
|
95
|
+
contents.facets = de_Facets(data.facets, context);
|
|
96
96
|
}
|
|
97
97
|
if (data.hits != null) {
|
|
98
|
-
contents.hits =
|
|
98
|
+
contents.hits = de_Hits(data.hits, context);
|
|
99
99
|
}
|
|
100
100
|
if (data.stats != null) {
|
|
101
|
-
contents.stats =
|
|
101
|
+
contents.stats = de_Stats(data.stats, context);
|
|
102
102
|
}
|
|
103
103
|
if (data.status != null) {
|
|
104
|
-
contents.status =
|
|
104
|
+
contents.status = de_SearchStatus(data.status, context);
|
|
105
105
|
}
|
|
106
106
|
return contents;
|
|
107
107
|
};
|
|
108
|
-
const
|
|
108
|
+
const de_SearchCommandError = async (output, context) => {
|
|
109
109
|
const parsedOutput = {
|
|
110
110
|
...output,
|
|
111
111
|
body: await parseErrorBody(output.body, context),
|
|
@@ -114,7 +114,7 @@ const deserializeAws_restJson1SearchCommandError = async (output, context) => {
|
|
|
114
114
|
switch (errorCode) {
|
|
115
115
|
case "SearchException":
|
|
116
116
|
case "com.amazonaws.cloudsearchdomain#SearchException":
|
|
117
|
-
throw await
|
|
117
|
+
throw await de_SearchExceptionRes(parsedOutput, context);
|
|
118
118
|
default:
|
|
119
119
|
const parsedBody = parsedOutput.body;
|
|
120
120
|
throwDefaultError({
|
|
@@ -125,23 +125,23 @@ const deserializeAws_restJson1SearchCommandError = async (output, context) => {
|
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
|
-
export const
|
|
128
|
+
export const de_SuggestCommand = async (output, context) => {
|
|
129
129
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
130
|
-
return
|
|
130
|
+
return de_SuggestCommandError(output, context);
|
|
131
131
|
}
|
|
132
132
|
const contents = map({
|
|
133
133
|
$metadata: deserializeMetadata(output),
|
|
134
134
|
});
|
|
135
135
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
136
136
|
if (data.status != null) {
|
|
137
|
-
contents.status =
|
|
137
|
+
contents.status = de_SuggestStatus(data.status, context);
|
|
138
138
|
}
|
|
139
139
|
if (data.suggest != null) {
|
|
140
|
-
contents.suggest =
|
|
140
|
+
contents.suggest = de_SuggestModel(data.suggest, context);
|
|
141
141
|
}
|
|
142
142
|
return contents;
|
|
143
143
|
};
|
|
144
|
-
const
|
|
144
|
+
const de_SuggestCommandError = async (output, context) => {
|
|
145
145
|
const parsedOutput = {
|
|
146
146
|
...output,
|
|
147
147
|
body: await parseErrorBody(output.body, context),
|
|
@@ -150,7 +150,7 @@ const deserializeAws_restJson1SuggestCommandError = async (output, context) => {
|
|
|
150
150
|
switch (errorCode) {
|
|
151
151
|
case "SearchException":
|
|
152
152
|
case "com.amazonaws.cloudsearchdomain#SearchException":
|
|
153
|
-
throw await
|
|
153
|
+
throw await de_SearchExceptionRes(parsedOutput, context);
|
|
154
154
|
default:
|
|
155
155
|
const parsedBody = parsedOutput.body;
|
|
156
156
|
throwDefaultError({
|
|
@@ -161,9 +161,9 @@ const deserializeAws_restJson1SuggestCommandError = async (output, context) => {
|
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
|
-
export const
|
|
164
|
+
export const de_UploadDocumentsCommand = async (output, context) => {
|
|
165
165
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
166
|
-
return
|
|
166
|
+
return de_UploadDocumentsCommandError(output, context);
|
|
167
167
|
}
|
|
168
168
|
const contents = map({
|
|
169
169
|
$metadata: deserializeMetadata(output),
|
|
@@ -179,11 +179,11 @@ export const deserializeAws_restJson1UploadDocumentsCommand = async (output, con
|
|
|
179
179
|
contents.status = __expectString(data.status);
|
|
180
180
|
}
|
|
181
181
|
if (data.warnings != null) {
|
|
182
|
-
contents.warnings =
|
|
182
|
+
contents.warnings = de_DocumentServiceWarnings(data.warnings, context);
|
|
183
183
|
}
|
|
184
184
|
return contents;
|
|
185
185
|
};
|
|
186
|
-
const
|
|
186
|
+
const de_UploadDocumentsCommandError = async (output, context) => {
|
|
187
187
|
const parsedOutput = {
|
|
188
188
|
...output,
|
|
189
189
|
body: await parseErrorBody(output.body, context),
|
|
@@ -192,7 +192,7 @@ const deserializeAws_restJson1UploadDocumentsCommandError = async (output, conte
|
|
|
192
192
|
switch (errorCode) {
|
|
193
193
|
case "DocumentServiceException":
|
|
194
194
|
case "com.amazonaws.cloudsearchdomain#DocumentServiceException":
|
|
195
|
-
throw await
|
|
195
|
+
throw await de_DocumentServiceExceptionRes(parsedOutput, context);
|
|
196
196
|
default:
|
|
197
197
|
const parsedBody = parsedOutput.body;
|
|
198
198
|
throwDefaultError({
|
|
@@ -204,7 +204,7 @@ const deserializeAws_restJson1UploadDocumentsCommandError = async (output, conte
|
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
206
|
const map = __map;
|
|
207
|
-
const
|
|
207
|
+
const de_DocumentServiceExceptionRes = async (parsedOutput, context) => {
|
|
208
208
|
const contents = map({});
|
|
209
209
|
const data = parsedOutput.body;
|
|
210
210
|
if (data.message != null) {
|
|
@@ -219,7 +219,7 @@ const deserializeAws_restJson1DocumentServiceExceptionResponse = async (parsedOu
|
|
|
219
219
|
});
|
|
220
220
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
221
221
|
};
|
|
222
|
-
const
|
|
222
|
+
const de_SearchExceptionRes = async (parsedOutput, context) => {
|
|
223
223
|
const contents = map({});
|
|
224
224
|
const data = parsedOutput.body;
|
|
225
225
|
if (data.message != null) {
|
|
@@ -231,45 +231,45 @@ const deserializeAws_restJson1SearchExceptionResponse = async (parsedOutput, con
|
|
|
231
231
|
});
|
|
232
232
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
233
233
|
};
|
|
234
|
-
const
|
|
234
|
+
const de_Bucket = (output, context) => {
|
|
235
235
|
return {
|
|
236
236
|
count: __expectLong(output.count),
|
|
237
237
|
value: __expectString(output.value),
|
|
238
238
|
};
|
|
239
239
|
};
|
|
240
|
-
const
|
|
240
|
+
const de_BucketInfo = (output, context) => {
|
|
241
241
|
return {
|
|
242
|
-
buckets: output.buckets != null ?
|
|
242
|
+
buckets: output.buckets != null ? de_BucketList(output.buckets, context) : undefined,
|
|
243
243
|
};
|
|
244
244
|
};
|
|
245
|
-
const
|
|
245
|
+
const de_BucketList = (output, context) => {
|
|
246
246
|
const retVal = (output || [])
|
|
247
247
|
.filter((e) => e != null)
|
|
248
248
|
.map((entry) => {
|
|
249
249
|
if (entry === null) {
|
|
250
250
|
return null;
|
|
251
251
|
}
|
|
252
|
-
return
|
|
252
|
+
return de_Bucket(entry, context);
|
|
253
253
|
});
|
|
254
254
|
return retVal;
|
|
255
255
|
};
|
|
256
|
-
const
|
|
256
|
+
const de_DocumentServiceWarning = (output, context) => {
|
|
257
257
|
return {
|
|
258
258
|
message: __expectString(output.message),
|
|
259
259
|
};
|
|
260
260
|
};
|
|
261
|
-
const
|
|
261
|
+
const de_DocumentServiceWarnings = (output, context) => {
|
|
262
262
|
const retVal = (output || [])
|
|
263
263
|
.filter((e) => e != null)
|
|
264
264
|
.map((entry) => {
|
|
265
265
|
if (entry === null) {
|
|
266
266
|
return null;
|
|
267
267
|
}
|
|
268
|
-
return
|
|
268
|
+
return de_DocumentServiceWarning(entry, context);
|
|
269
269
|
});
|
|
270
270
|
return retVal;
|
|
271
271
|
};
|
|
272
|
-
const
|
|
272
|
+
const de_Exprs = (output, context) => {
|
|
273
273
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
274
274
|
if (value === null) {
|
|
275
275
|
return acc;
|
|
@@ -278,25 +278,25 @@ const deserializeAws_restJson1Exprs = (output, context) => {
|
|
|
278
278
|
return acc;
|
|
279
279
|
}, {});
|
|
280
280
|
};
|
|
281
|
-
const
|
|
281
|
+
const de_Facets = (output, context) => {
|
|
282
282
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
283
283
|
if (value === null) {
|
|
284
284
|
return acc;
|
|
285
285
|
}
|
|
286
|
-
acc[key] =
|
|
286
|
+
acc[key] = de_BucketInfo(value, context);
|
|
287
287
|
return acc;
|
|
288
288
|
}, {});
|
|
289
289
|
};
|
|
290
|
-
const
|
|
290
|
+
const de_Fields = (output, context) => {
|
|
291
291
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
292
292
|
if (value === null) {
|
|
293
293
|
return acc;
|
|
294
294
|
}
|
|
295
|
-
acc[key] =
|
|
295
|
+
acc[key] = de_FieldValue(value, context);
|
|
296
296
|
return acc;
|
|
297
297
|
}, {});
|
|
298
298
|
};
|
|
299
|
-
const
|
|
299
|
+
const de_FieldStats = (output, context) => {
|
|
300
300
|
return {
|
|
301
301
|
count: __expectLong(output.count),
|
|
302
302
|
max: __expectString(output.max),
|
|
@@ -308,7 +308,7 @@ const deserializeAws_restJson1FieldStats = (output, context) => {
|
|
|
308
308
|
sumOfSquares: __limitedParseDouble(output.sumOfSquares),
|
|
309
309
|
};
|
|
310
310
|
};
|
|
311
|
-
const
|
|
311
|
+
const de_FieldValue = (output, context) => {
|
|
312
312
|
const retVal = (output || [])
|
|
313
313
|
.filter((e) => e != null)
|
|
314
314
|
.map((entry) => {
|
|
@@ -319,7 +319,7 @@ const deserializeAws_restJson1FieldValue = (output, context) => {
|
|
|
319
319
|
});
|
|
320
320
|
return retVal;
|
|
321
321
|
};
|
|
322
|
-
const
|
|
322
|
+
const de_Highlights = (output, context) => {
|
|
323
323
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
324
324
|
if (value === null) {
|
|
325
325
|
return acc;
|
|
@@ -328,74 +328,74 @@ const deserializeAws_restJson1Highlights = (output, context) => {
|
|
|
328
328
|
return acc;
|
|
329
329
|
}, {});
|
|
330
330
|
};
|
|
331
|
-
const
|
|
331
|
+
const de_Hit = (output, context) => {
|
|
332
332
|
return {
|
|
333
|
-
exprs: output.exprs != null ?
|
|
334
|
-
fields: output.fields != null ?
|
|
335
|
-
highlights: output.highlights != null ?
|
|
333
|
+
exprs: output.exprs != null ? de_Exprs(output.exprs, context) : undefined,
|
|
334
|
+
fields: output.fields != null ? de_Fields(output.fields, context) : undefined,
|
|
335
|
+
highlights: output.highlights != null ? de_Highlights(output.highlights, context) : undefined,
|
|
336
336
|
id: __expectString(output.id),
|
|
337
337
|
};
|
|
338
338
|
};
|
|
339
|
-
const
|
|
339
|
+
const de_HitList = (output, context) => {
|
|
340
340
|
const retVal = (output || [])
|
|
341
341
|
.filter((e) => e != null)
|
|
342
342
|
.map((entry) => {
|
|
343
343
|
if (entry === null) {
|
|
344
344
|
return null;
|
|
345
345
|
}
|
|
346
|
-
return
|
|
346
|
+
return de_Hit(entry, context);
|
|
347
347
|
});
|
|
348
348
|
return retVal;
|
|
349
349
|
};
|
|
350
|
-
const
|
|
350
|
+
const de_Hits = (output, context) => {
|
|
351
351
|
return {
|
|
352
352
|
cursor: __expectString(output.cursor),
|
|
353
353
|
found: __expectLong(output.found),
|
|
354
|
-
hit: output.hit != null ?
|
|
354
|
+
hit: output.hit != null ? de_HitList(output.hit, context) : undefined,
|
|
355
355
|
start: __expectLong(output.start),
|
|
356
356
|
};
|
|
357
357
|
};
|
|
358
|
-
const
|
|
358
|
+
const de_SearchStatus = (output, context) => {
|
|
359
359
|
return {
|
|
360
360
|
rid: __expectString(output.rid),
|
|
361
361
|
timems: __expectLong(output.timems),
|
|
362
362
|
};
|
|
363
363
|
};
|
|
364
|
-
const
|
|
364
|
+
const de_Stats = (output, context) => {
|
|
365
365
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
366
366
|
if (value === null) {
|
|
367
367
|
return acc;
|
|
368
368
|
}
|
|
369
|
-
acc[key] =
|
|
369
|
+
acc[key] = de_FieldStats(value, context);
|
|
370
370
|
return acc;
|
|
371
371
|
}, {});
|
|
372
372
|
};
|
|
373
|
-
const
|
|
373
|
+
const de_SuggestionMatch = (output, context) => {
|
|
374
374
|
return {
|
|
375
375
|
id: __expectString(output.id),
|
|
376
376
|
score: __expectLong(output.score),
|
|
377
377
|
suggestion: __expectString(output.suggestion),
|
|
378
378
|
};
|
|
379
379
|
};
|
|
380
|
-
const
|
|
380
|
+
const de_Suggestions = (output, context) => {
|
|
381
381
|
const retVal = (output || [])
|
|
382
382
|
.filter((e) => e != null)
|
|
383
383
|
.map((entry) => {
|
|
384
384
|
if (entry === null) {
|
|
385
385
|
return null;
|
|
386
386
|
}
|
|
387
|
-
return
|
|
387
|
+
return de_SuggestionMatch(entry, context);
|
|
388
388
|
});
|
|
389
389
|
return retVal;
|
|
390
390
|
};
|
|
391
|
-
const
|
|
391
|
+
const de_SuggestModel = (output, context) => {
|
|
392
392
|
return {
|
|
393
393
|
found: __expectLong(output.found),
|
|
394
394
|
query: __expectString(output.query),
|
|
395
|
-
suggestions: output.suggestions != null ?
|
|
395
|
+
suggestions: output.suggestions != null ? de_Suggestions(output.suggestions, context) : undefined,
|
|
396
396
|
};
|
|
397
397
|
};
|
|
398
|
-
const
|
|
398
|
+
const de_SuggestStatus = (output, context) => {
|
|
399
399
|
return {
|
|
400
400
|
rid: __expectString(output.rid),
|
|
401
401
|
timems: __expectLong(output.timems),
|
|
@@ -3,9 +3,27 @@ import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
|
3
3
|
import { SearchCommandInput, SearchCommandOutput } from "../commands/SearchCommand";
|
|
4
4
|
import { SuggestCommandInput, SuggestCommandOutput } from "../commands/SuggestCommand";
|
|
5
5
|
import { UploadDocumentsCommandInput, UploadDocumentsCommandOutput } from "../commands/UploadDocumentsCommand";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare const
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
/**
|
|
7
|
+
* serializeAws_restJson1SearchCommand
|
|
8
|
+
*/
|
|
9
|
+
export declare const se_SearchCommand: (input: SearchCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
10
|
+
/**
|
|
11
|
+
* serializeAws_restJson1SuggestCommand
|
|
12
|
+
*/
|
|
13
|
+
export declare const se_SuggestCommand: (input: SuggestCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
14
|
+
/**
|
|
15
|
+
* serializeAws_restJson1UploadDocumentsCommand
|
|
16
|
+
*/
|
|
17
|
+
export declare const se_UploadDocumentsCommand: (input: UploadDocumentsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
18
|
+
/**
|
|
19
|
+
* deserializeAws_restJson1SearchCommand
|
|
20
|
+
*/
|
|
21
|
+
export declare const de_SearchCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SearchCommandOutput>;
|
|
22
|
+
/**
|
|
23
|
+
* deserializeAws_restJson1SuggestCommand
|
|
24
|
+
*/
|
|
25
|
+
export declare const de_SuggestCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SuggestCommandOutput>;
|
|
26
|
+
/**
|
|
27
|
+
* deserializeAws_restJson1UploadDocumentsCommand
|
|
28
|
+
*/
|
|
29
|
+
export declare const de_UploadDocumentsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UploadDocumentsCommandOutput>;
|
|
@@ -15,27 +15,27 @@ import {
|
|
|
15
15
|
UploadDocumentsCommandInput,
|
|
16
16
|
UploadDocumentsCommandOutput,
|
|
17
17
|
} from "../commands/UploadDocumentsCommand";
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const se_SearchCommand: (
|
|
19
19
|
input: SearchCommandInput,
|
|
20
20
|
context: __SerdeContext
|
|
21
21
|
) => Promise<__HttpRequest>;
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const se_SuggestCommand: (
|
|
23
23
|
input: SuggestCommandInput,
|
|
24
24
|
context: __SerdeContext
|
|
25
25
|
) => Promise<__HttpRequest>;
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const se_UploadDocumentsCommand: (
|
|
27
27
|
input: UploadDocumentsCommandInput,
|
|
28
28
|
context: __SerdeContext
|
|
29
29
|
) => Promise<__HttpRequest>;
|
|
30
|
-
export declare const
|
|
30
|
+
export declare const de_SearchCommand: (
|
|
31
31
|
output: __HttpResponse,
|
|
32
32
|
context: __SerdeContext
|
|
33
33
|
) => Promise<SearchCommandOutput>;
|
|
34
|
-
export declare const
|
|
34
|
+
export declare const de_SuggestCommand: (
|
|
35
35
|
output: __HttpResponse,
|
|
36
36
|
context: __SerdeContext
|
|
37
37
|
) => Promise<SuggestCommandOutput>;
|
|
38
|
-
export declare const
|
|
38
|
+
export declare const de_UploadDocumentsCommand: (
|
|
39
39
|
output: __HttpResponse,
|
|
40
40
|
context: __SerdeContext
|
|
41
41
|
) => Promise<UploadDocumentsCommandOutput>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudsearch-domain",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudsearch Domain Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.309.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.309.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.306.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.309.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.306.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.306.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.306.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.306.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.306.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.306.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.309.0",
|
|
44
44
|
"@aws-sdk/types": "3.306.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.306.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.303.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.303.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.303.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.309.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.309.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.306.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.306.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.306.0",
|