@aws-sdk/client-cloudsearch-domain 3.927.0 → 3.929.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +353 -230
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/CloudSearchDomainClient.js +2 -0
- package/dist-es/commands/SearchCommand.js +3 -9
- package/dist-es/commands/SuggestCommand.js +3 -9
- package/dist-es/commands/UploadDocumentsCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -3
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +356 -0
- package/dist-types/CloudSearchDomainClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -4
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +35 -0
- package/dist-types/ts3.4/CloudSearchDomainClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -3
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +42 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_restJson1.js +0 -212
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -29
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -41
package/dist-cjs/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
|
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
7
|
var configResolver = require('@smithy/config-resolver');
|
|
8
8
|
var core = require('@smithy/core');
|
|
9
|
+
var schema = require('@smithy/core/schema');
|
|
9
10
|
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
11
|
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
12
|
var middlewareRetry = require('@smithy/middleware-retry');
|
|
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
14
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
15
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
-
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
-
var core$1 = require('@aws-sdk/core');
|
|
19
18
|
|
|
20
19
|
const resolveClientEndpointParameters = (options) => {
|
|
21
20
|
return Object.assign(options, {
|
|
@@ -91,6 +90,7 @@ class CloudSearchDomainClient extends smithyClient.Client {
|
|
|
91
90
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
91
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
92
|
this.config = _config_8;
|
|
93
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
94
94
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
95
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
96
|
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
@@ -110,14 +110,14 @@ class CloudSearchDomainClient extends smithyClient.Client {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class CloudSearchDomainServiceException extends smithyClient.ServiceException {
|
|
113
|
+
let CloudSearchDomainServiceException$1 = class CloudSearchDomainServiceException extends smithyClient.ServiceException {
|
|
114
114
|
constructor(options) {
|
|
115
115
|
super(options);
|
|
116
116
|
Object.setPrototypeOf(this, CloudSearchDomainServiceException.prototype);
|
|
117
117
|
}
|
|
118
|
-
}
|
|
118
|
+
};
|
|
119
119
|
|
|
120
|
-
class SearchException extends CloudSearchDomainServiceException {
|
|
120
|
+
let SearchException$1 = class SearchException extends CloudSearchDomainServiceException$1 {
|
|
121
121
|
name = "SearchException";
|
|
122
122
|
$fault = "client";
|
|
123
123
|
constructor(opts) {
|
|
@@ -128,14 +128,14 @@ class SearchException extends CloudSearchDomainServiceException {
|
|
|
128
128
|
});
|
|
129
129
|
Object.setPrototypeOf(this, SearchException.prototype);
|
|
130
130
|
}
|
|
131
|
-
}
|
|
131
|
+
};
|
|
132
132
|
const QueryParser = {
|
|
133
133
|
dismax: "dismax",
|
|
134
134
|
lucene: "lucene",
|
|
135
135
|
simple: "simple",
|
|
136
136
|
structured: "structured",
|
|
137
137
|
};
|
|
138
|
-
class DocumentServiceException extends CloudSearchDomainServiceException {
|
|
138
|
+
let DocumentServiceException$1 = class DocumentServiceException extends CloudSearchDomainServiceException$1 {
|
|
139
139
|
name = "DocumentServiceException";
|
|
140
140
|
$fault = "client";
|
|
141
141
|
status;
|
|
@@ -148,209 +148,73 @@ class DocumentServiceException extends CloudSearchDomainServiceException {
|
|
|
148
148
|
Object.setPrototypeOf(this, DocumentServiceException.prototype);
|
|
149
149
|
this.status = opts.status;
|
|
150
150
|
}
|
|
151
|
-
}
|
|
151
|
+
};
|
|
152
152
|
const ContentType = {
|
|
153
153
|
application_json: "application/json",
|
|
154
154
|
application_xml: "application/xml",
|
|
155
155
|
};
|
|
156
|
-
const UploadDocumentsRequestFilterSensitiveLog = (obj) => ({
|
|
157
|
-
...obj,
|
|
158
|
-
});
|
|
159
156
|
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
const
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
[_q_]: [, smithyClient.expectNonNull(input[_q], `query`)],
|
|
194
|
-
[_su]: [, smithyClient.expectNonNull(input[_su], `suggester`)],
|
|
195
|
-
[_s]: [() => input.size !== void 0, () => input[_s].toString()],
|
|
196
|
-
});
|
|
197
|
-
let body;
|
|
198
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
199
|
-
return b.build();
|
|
200
|
-
};
|
|
201
|
-
const se_UploadDocumentsCommand = async (input, context) => {
|
|
202
|
-
const b = core.requestBuilder(input, context);
|
|
203
|
-
const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
|
|
204
|
-
[_ct]: input[_cT] || "application/octet-stream",
|
|
205
|
-
});
|
|
206
|
-
b.bp("/2013-01-01/documents/batch");
|
|
207
|
-
const query = smithyClient.map({
|
|
208
|
-
[_f]: [, "sdk"],
|
|
209
|
-
});
|
|
210
|
-
let body;
|
|
211
|
-
if (input.documents !== undefined) {
|
|
212
|
-
body = input.documents;
|
|
213
|
-
}
|
|
214
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
215
|
-
return b.build();
|
|
216
|
-
};
|
|
217
|
-
const de_SearchCommand = async (output, context) => {
|
|
218
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
219
|
-
return de_CommandError(output, context);
|
|
220
|
-
}
|
|
221
|
-
const contents = smithyClient.map({
|
|
222
|
-
$metadata: deserializeMetadata(output),
|
|
223
|
-
});
|
|
224
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
225
|
-
const doc = smithyClient.take(data, {
|
|
226
|
-
facets: smithyClient._json,
|
|
227
|
-
hits: smithyClient._json,
|
|
228
|
-
stats: (_) => de_Stats(_),
|
|
229
|
-
status: smithyClient._json,
|
|
230
|
-
});
|
|
231
|
-
Object.assign(contents, doc);
|
|
232
|
-
return contents;
|
|
233
|
-
};
|
|
234
|
-
const de_SuggestCommand = async (output, context) => {
|
|
235
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
236
|
-
return de_CommandError(output, context);
|
|
237
|
-
}
|
|
238
|
-
const contents = smithyClient.map({
|
|
239
|
-
$metadata: deserializeMetadata(output),
|
|
240
|
-
});
|
|
241
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
242
|
-
const doc = smithyClient.take(data, {
|
|
243
|
-
status: smithyClient._json,
|
|
244
|
-
suggest: smithyClient._json,
|
|
245
|
-
});
|
|
246
|
-
Object.assign(contents, doc);
|
|
247
|
-
return contents;
|
|
248
|
-
};
|
|
249
|
-
const de_UploadDocumentsCommand = async (output, context) => {
|
|
250
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
251
|
-
return de_CommandError(output, context);
|
|
252
|
-
}
|
|
253
|
-
const contents = smithyClient.map({
|
|
254
|
-
$metadata: deserializeMetadata(output),
|
|
255
|
-
});
|
|
256
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
257
|
-
const doc = smithyClient.take(data, {
|
|
258
|
-
adds: smithyClient.expectLong,
|
|
259
|
-
deletes: smithyClient.expectLong,
|
|
260
|
-
status: smithyClient.expectString,
|
|
261
|
-
warnings: smithyClient._json,
|
|
262
|
-
});
|
|
263
|
-
Object.assign(contents, doc);
|
|
264
|
-
return contents;
|
|
265
|
-
};
|
|
266
|
-
const de_CommandError = async (output, context) => {
|
|
267
|
-
const parsedOutput = {
|
|
268
|
-
...output,
|
|
269
|
-
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
270
|
-
};
|
|
271
|
-
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
272
|
-
switch (errorCode) {
|
|
273
|
-
case "SearchException":
|
|
274
|
-
case "com.amazonaws.cloudsearchdomain#SearchException":
|
|
275
|
-
throw await de_SearchExceptionRes(parsedOutput);
|
|
276
|
-
case "DocumentServiceException":
|
|
277
|
-
case "com.amazonaws.cloudsearchdomain#DocumentServiceException":
|
|
278
|
-
throw await de_DocumentServiceExceptionRes(parsedOutput);
|
|
279
|
-
default:
|
|
280
|
-
const parsedBody = parsedOutput.body;
|
|
281
|
-
return throwDefaultError({
|
|
282
|
-
output,
|
|
283
|
-
parsedBody,
|
|
284
|
-
errorCode,
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
const throwDefaultError = smithyClient.withBaseException(CloudSearchDomainServiceException);
|
|
289
|
-
const de_DocumentServiceExceptionRes = async (parsedOutput, context) => {
|
|
290
|
-
const contents = smithyClient.map({});
|
|
291
|
-
const data = parsedOutput.body;
|
|
292
|
-
const doc = smithyClient.take(data, {
|
|
293
|
-
message: smithyClient.expectString,
|
|
294
|
-
status: smithyClient.expectString,
|
|
295
|
-
});
|
|
296
|
-
Object.assign(contents, doc);
|
|
297
|
-
const exception = new DocumentServiceException({
|
|
298
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
299
|
-
...contents,
|
|
300
|
-
});
|
|
301
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
302
|
-
};
|
|
303
|
-
const de_SearchExceptionRes = async (parsedOutput, context) => {
|
|
304
|
-
const contents = smithyClient.map({});
|
|
305
|
-
const data = parsedOutput.body;
|
|
306
|
-
const doc = smithyClient.take(data, {
|
|
307
|
-
message: smithyClient.expectString,
|
|
308
|
-
});
|
|
309
|
-
Object.assign(contents, doc);
|
|
310
|
-
const exception = new SearchException({
|
|
311
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
312
|
-
...contents,
|
|
313
|
-
});
|
|
314
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
315
|
-
};
|
|
316
|
-
const de_FieldStats = (output, context) => {
|
|
317
|
-
return smithyClient.take(output, {
|
|
318
|
-
count: smithyClient.expectLong,
|
|
319
|
-
max: smithyClient.expectString,
|
|
320
|
-
mean: smithyClient.expectString,
|
|
321
|
-
min: smithyClient.expectString,
|
|
322
|
-
missing: smithyClient.expectLong,
|
|
323
|
-
stddev: smithyClient.limitedParseDouble,
|
|
324
|
-
sum: smithyClient.limitedParseDouble,
|
|
325
|
-
sumOfSquares: smithyClient.limitedParseDouble,
|
|
326
|
-
});
|
|
327
|
-
};
|
|
328
|
-
const de_Stats = (output, context) => {
|
|
329
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
330
|
-
if (value === null) {
|
|
331
|
-
return acc;
|
|
332
|
-
}
|
|
333
|
-
acc[key] = de_FieldStats(value);
|
|
334
|
-
return acc;
|
|
335
|
-
}, {});
|
|
336
|
-
};
|
|
337
|
-
const deserializeMetadata = (output) => ({
|
|
338
|
-
httpStatusCode: output.statusCode,
|
|
339
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
340
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
341
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
342
|
-
});
|
|
343
|
-
const _c = "cursor";
|
|
157
|
+
const _B = "Blob";
|
|
158
|
+
const _BI = "BucketInfo";
|
|
159
|
+
const _BL = "BucketList";
|
|
160
|
+
const _Bu = "Bucket";
|
|
161
|
+
const _CT = "Content-Type";
|
|
162
|
+
const _DSE = "DocumentServiceException";
|
|
163
|
+
const _DSW = "DocumentServiceWarning";
|
|
164
|
+
const _DSWo = "DocumentServiceWarnings";
|
|
165
|
+
const _F = "Fields";
|
|
166
|
+
const _FS = "FieldStats";
|
|
167
|
+
const _Fa = "Facets";
|
|
168
|
+
const _H = "Hit";
|
|
169
|
+
const _HL = "HitList";
|
|
170
|
+
const _Hi = "Hits";
|
|
171
|
+
const _S = "Suggestions";
|
|
172
|
+
const _SE = "SearchException";
|
|
173
|
+
const _SM = "SuggestionMatch";
|
|
174
|
+
const _SMu = "SuggestModel";
|
|
175
|
+
const _SR = "SearchRequest";
|
|
176
|
+
const _SRe = "SearchResponse";
|
|
177
|
+
const _SRu = "SuggestRequest";
|
|
178
|
+
const _SRug = "SuggestResponse";
|
|
179
|
+
const _SS = "SearchStatus";
|
|
180
|
+
const _SSu = "SuggestStatus";
|
|
181
|
+
const _Se = "Search";
|
|
182
|
+
const _St = "Stats";
|
|
183
|
+
const _Su = "Suggest";
|
|
184
|
+
const _UD = "UploadDocuments";
|
|
185
|
+
const _UDR = "UploadDocumentsRequest";
|
|
186
|
+
const _UDRp = "UploadDocumentsResponse";
|
|
187
|
+
const _a = "adds";
|
|
188
|
+
const _b = "buckets";
|
|
189
|
+
const _c = "count";
|
|
344
190
|
const _cT = "contentType";
|
|
345
|
-
const
|
|
346
|
-
const
|
|
347
|
-
const
|
|
191
|
+
const _cl = "client";
|
|
192
|
+
const _cu = "cursor";
|
|
193
|
+
const _d = "documents";
|
|
194
|
+
const _de = "deletes";
|
|
195
|
+
const _e = "error";
|
|
196
|
+
const _ex = "exprs";
|
|
197
|
+
const _exp = "expr";
|
|
198
|
+
const _f = "fields";
|
|
348
199
|
const _fQ = "filterQuery";
|
|
349
200
|
const _fa = "facet";
|
|
201
|
+
const _fac = "facets";
|
|
202
|
+
const _fo = "found";
|
|
350
203
|
const _fq = "fq";
|
|
351
|
-
const _h = "
|
|
352
|
-
const
|
|
353
|
-
const
|
|
204
|
+
const _h = "highlights";
|
|
205
|
+
const _hH = "httpHeader";
|
|
206
|
+
const _hQ = "httpQuery";
|
|
207
|
+
const _hi = "hit";
|
|
208
|
+
const _hig = "highlight";
|
|
209
|
+
const _hit = "hits";
|
|
210
|
+
const _ht = "http";
|
|
211
|
+
const _i = "id";
|
|
212
|
+
const _m = "message";
|
|
213
|
+
const _ma = "max";
|
|
214
|
+
const _me = "mean";
|
|
215
|
+
const _mi = "min";
|
|
216
|
+
const _mis = "missing";
|
|
217
|
+
const _p = "partial";
|
|
354
218
|
const _q = "query";
|
|
355
219
|
const _qO = "queryOptions";
|
|
356
220
|
const _qP = "queryParser";
|
|
@@ -358,26 +222,296 @@ const _q_ = "q";
|
|
|
358
222
|
const _qo = "q.options";
|
|
359
223
|
const _qp = "q.parser";
|
|
360
224
|
const _r = "return";
|
|
361
|
-
const
|
|
225
|
+
const _ri = "rid";
|
|
226
|
+
const _s = "streaming";
|
|
227
|
+
const _sOS = "sumOfSquares";
|
|
228
|
+
const _sc = "score";
|
|
229
|
+
const _si = "size";
|
|
230
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.cloudsearchdomain";
|
|
362
231
|
const _so = "sort";
|
|
363
|
-
const _st = "
|
|
364
|
-
const _sta = "
|
|
365
|
-
const
|
|
232
|
+
const _st = "status";
|
|
233
|
+
const _sta = "start";
|
|
234
|
+
const _stat = "stats";
|
|
235
|
+
const _std = "stddev";
|
|
236
|
+
const _su = "sum";
|
|
237
|
+
const _sug = "suggestion";
|
|
238
|
+
const _sugg = "suggestions";
|
|
239
|
+
const _sugge = "suggester";
|
|
240
|
+
const _sugges = "suggest";
|
|
241
|
+
const _t = "timems";
|
|
242
|
+
const _v = "value";
|
|
243
|
+
const _w = "warnings";
|
|
244
|
+
const n0 = "com.amazonaws.cloudsearchdomain";
|
|
245
|
+
var _Blob = [
|
|
246
|
+
0,
|
|
247
|
+
n0,
|
|
248
|
+
_B,
|
|
249
|
+
{
|
|
250
|
+
[_s]: 1,
|
|
251
|
+
},
|
|
252
|
+
42,
|
|
253
|
+
];
|
|
254
|
+
var Bucket = [3, n0, _Bu, 0, [_v, _c], [0, 1]];
|
|
255
|
+
var BucketInfo = [3, n0, _BI, 0, [_b], [() => BucketList]];
|
|
256
|
+
var DocumentServiceException = [
|
|
257
|
+
-3,
|
|
258
|
+
n0,
|
|
259
|
+
_DSE,
|
|
260
|
+
{
|
|
261
|
+
[_e]: _cl,
|
|
262
|
+
},
|
|
263
|
+
[_st, _m],
|
|
264
|
+
[0, 0],
|
|
265
|
+
];
|
|
266
|
+
schema.TypeRegistry.for(n0).registerError(DocumentServiceException, DocumentServiceException$1);
|
|
267
|
+
var DocumentServiceWarning = [3, n0, _DSW, 0, [_m], [0]];
|
|
268
|
+
var FieldStats = [
|
|
269
|
+
3,
|
|
270
|
+
n0,
|
|
271
|
+
_FS,
|
|
272
|
+
0,
|
|
273
|
+
[_mi, _ma, _c, _mis, _su, _sOS, _me, _std],
|
|
274
|
+
[0, 0, 1, 1, 1, 1, 0, 1],
|
|
275
|
+
];
|
|
276
|
+
var Hit = [
|
|
277
|
+
3,
|
|
278
|
+
n0,
|
|
279
|
+
_H,
|
|
280
|
+
0,
|
|
281
|
+
[_i, _f, _ex, _h],
|
|
282
|
+
[0, [2, n0, _F, 0, 0, 64 | 0], 128 | 0, 128 | 0],
|
|
283
|
+
];
|
|
284
|
+
var Hits = [3, n0, _Hi, 0, [_fo, _sta, _cu, _hi], [1, 1, 0, () => HitList]];
|
|
285
|
+
var SearchException = [
|
|
286
|
+
-3,
|
|
287
|
+
n0,
|
|
288
|
+
_SE,
|
|
289
|
+
{
|
|
290
|
+
[_e]: _cl,
|
|
291
|
+
},
|
|
292
|
+
[_m],
|
|
293
|
+
[0],
|
|
294
|
+
];
|
|
295
|
+
schema.TypeRegistry.for(n0).registerError(SearchException, SearchException$1);
|
|
296
|
+
var SearchRequest = [
|
|
297
|
+
3,
|
|
298
|
+
n0,
|
|
299
|
+
_SR,
|
|
300
|
+
0,
|
|
301
|
+
[_cu, _exp, _fa, _fQ, _hig, _p, _q, _qO, _qP, _r, _si, _so, _sta, _stat],
|
|
302
|
+
[
|
|
303
|
+
[
|
|
304
|
+
0,
|
|
305
|
+
{
|
|
306
|
+
[_hQ]: _cu,
|
|
307
|
+
},
|
|
308
|
+
],
|
|
309
|
+
[
|
|
310
|
+
0,
|
|
311
|
+
{
|
|
312
|
+
[_hQ]: _exp,
|
|
313
|
+
},
|
|
314
|
+
],
|
|
315
|
+
[
|
|
316
|
+
0,
|
|
317
|
+
{
|
|
318
|
+
[_hQ]: _fa,
|
|
319
|
+
},
|
|
320
|
+
],
|
|
321
|
+
[
|
|
322
|
+
0,
|
|
323
|
+
{
|
|
324
|
+
[_hQ]: _fq,
|
|
325
|
+
},
|
|
326
|
+
],
|
|
327
|
+
[
|
|
328
|
+
0,
|
|
329
|
+
{
|
|
330
|
+
[_hQ]: _hig,
|
|
331
|
+
},
|
|
332
|
+
],
|
|
333
|
+
[
|
|
334
|
+
2,
|
|
335
|
+
{
|
|
336
|
+
[_hQ]: _p,
|
|
337
|
+
},
|
|
338
|
+
],
|
|
339
|
+
[
|
|
340
|
+
0,
|
|
341
|
+
{
|
|
342
|
+
[_hQ]: _q_,
|
|
343
|
+
},
|
|
344
|
+
],
|
|
345
|
+
[
|
|
346
|
+
0,
|
|
347
|
+
{
|
|
348
|
+
[_hQ]: _qo,
|
|
349
|
+
},
|
|
350
|
+
],
|
|
351
|
+
[
|
|
352
|
+
0,
|
|
353
|
+
{
|
|
354
|
+
[_hQ]: _qp,
|
|
355
|
+
},
|
|
356
|
+
],
|
|
357
|
+
[
|
|
358
|
+
0,
|
|
359
|
+
{
|
|
360
|
+
[_hQ]: _r,
|
|
361
|
+
},
|
|
362
|
+
],
|
|
363
|
+
[
|
|
364
|
+
1,
|
|
365
|
+
{
|
|
366
|
+
[_hQ]: _si,
|
|
367
|
+
},
|
|
368
|
+
],
|
|
369
|
+
[
|
|
370
|
+
0,
|
|
371
|
+
{
|
|
372
|
+
[_hQ]: _so,
|
|
373
|
+
},
|
|
374
|
+
],
|
|
375
|
+
[
|
|
376
|
+
1,
|
|
377
|
+
{
|
|
378
|
+
[_hQ]: _sta,
|
|
379
|
+
},
|
|
380
|
+
],
|
|
381
|
+
[
|
|
382
|
+
0,
|
|
383
|
+
{
|
|
384
|
+
[_hQ]: _stat,
|
|
385
|
+
},
|
|
386
|
+
],
|
|
387
|
+
],
|
|
388
|
+
];
|
|
389
|
+
var SearchResponse = [
|
|
390
|
+
3,
|
|
391
|
+
n0,
|
|
392
|
+
_SRe,
|
|
393
|
+
0,
|
|
394
|
+
[_st, _hit, _fac, _stat],
|
|
395
|
+
[() => SearchStatus, () => Hits, () => Facets, () => Stats],
|
|
396
|
+
];
|
|
397
|
+
var SearchStatus = [3, n0, _SS, 0, [_t, _ri], [1, 0]];
|
|
398
|
+
var SuggestionMatch = [3, n0, _SM, 0, [_sug, _sc, _i], [0, 1, 0]];
|
|
399
|
+
var SuggestModel = [3, n0, _SMu, 0, [_q, _fo, _sugg], [0, 1, () => Suggestions]];
|
|
400
|
+
var SuggestRequest = [
|
|
401
|
+
3,
|
|
402
|
+
n0,
|
|
403
|
+
_SRu,
|
|
404
|
+
0,
|
|
405
|
+
[_q, _sugge, _si],
|
|
406
|
+
[
|
|
407
|
+
[
|
|
408
|
+
0,
|
|
409
|
+
{
|
|
410
|
+
[_hQ]: _q_,
|
|
411
|
+
},
|
|
412
|
+
],
|
|
413
|
+
[
|
|
414
|
+
0,
|
|
415
|
+
{
|
|
416
|
+
[_hQ]: _sugge,
|
|
417
|
+
},
|
|
418
|
+
],
|
|
419
|
+
[
|
|
420
|
+
1,
|
|
421
|
+
{
|
|
422
|
+
[_hQ]: _si,
|
|
423
|
+
},
|
|
424
|
+
],
|
|
425
|
+
],
|
|
426
|
+
];
|
|
427
|
+
var SuggestResponse = [
|
|
428
|
+
3,
|
|
429
|
+
n0,
|
|
430
|
+
_SRug,
|
|
431
|
+
0,
|
|
432
|
+
[_st, _sugges],
|
|
433
|
+
[() => SuggestStatus, () => SuggestModel],
|
|
434
|
+
];
|
|
435
|
+
var SuggestStatus = [3, n0, _SSu, 0, [_t, _ri], [1, 0]];
|
|
436
|
+
var UploadDocumentsRequest = [
|
|
437
|
+
3,
|
|
438
|
+
n0,
|
|
439
|
+
_UDR,
|
|
440
|
+
0,
|
|
441
|
+
[_d, _cT],
|
|
442
|
+
[
|
|
443
|
+
[() => _Blob, 16],
|
|
444
|
+
[
|
|
445
|
+
0,
|
|
446
|
+
{
|
|
447
|
+
[_hH]: _CT,
|
|
448
|
+
},
|
|
449
|
+
],
|
|
450
|
+
],
|
|
451
|
+
];
|
|
452
|
+
var UploadDocumentsResponse = [
|
|
453
|
+
3,
|
|
454
|
+
n0,
|
|
455
|
+
_UDRp,
|
|
456
|
+
0,
|
|
457
|
+
[_st, _a, _de, _w],
|
|
458
|
+
[0, 1, 1, () => DocumentServiceWarnings],
|
|
459
|
+
];
|
|
460
|
+
var CloudSearchDomainServiceException = [
|
|
461
|
+
-3,
|
|
462
|
+
_sm,
|
|
463
|
+
"CloudSearchDomainServiceException",
|
|
464
|
+
0,
|
|
465
|
+
[],
|
|
466
|
+
[],
|
|
467
|
+
];
|
|
468
|
+
schema.TypeRegistry.for(_sm).registerError(CloudSearchDomainServiceException, CloudSearchDomainServiceException$1);
|
|
469
|
+
var BucketList = [1, n0, _BL, 0, () => Bucket];
|
|
470
|
+
var DocumentServiceWarnings = [1, n0, _DSWo, 0, () => DocumentServiceWarning];
|
|
471
|
+
var HitList = [1, n0, _HL, 0, () => Hit];
|
|
472
|
+
var Suggestions = [1, n0, _S, 0, () => SuggestionMatch];
|
|
473
|
+
var Facets = [2, n0, _Fa, 0, 0, () => BucketInfo];
|
|
474
|
+
var Stats = [2, n0, _St, 0, 0, () => FieldStats];
|
|
475
|
+
var Search = [
|
|
476
|
+
9,
|
|
477
|
+
n0,
|
|
478
|
+
_Se,
|
|
479
|
+
{
|
|
480
|
+
[_ht]: ["GET", "/2013-01-01/search?format=sdk&pretty=true", 200],
|
|
481
|
+
},
|
|
482
|
+
() => SearchRequest,
|
|
483
|
+
() => SearchResponse,
|
|
484
|
+
];
|
|
485
|
+
var Suggest = [
|
|
486
|
+
9,
|
|
487
|
+
n0,
|
|
488
|
+
_Su,
|
|
489
|
+
{
|
|
490
|
+
[_ht]: ["GET", "/2013-01-01/suggest?format=sdk&pretty=true", 200],
|
|
491
|
+
},
|
|
492
|
+
() => SuggestRequest,
|
|
493
|
+
() => SuggestResponse,
|
|
494
|
+
];
|
|
495
|
+
var UploadDocuments = [
|
|
496
|
+
9,
|
|
497
|
+
n0,
|
|
498
|
+
_UD,
|
|
499
|
+
{
|
|
500
|
+
[_ht]: ["POST", "/2013-01-01/documents/batch?format=sdk", 200],
|
|
501
|
+
},
|
|
502
|
+
() => UploadDocumentsRequest,
|
|
503
|
+
() => UploadDocumentsResponse,
|
|
504
|
+
];
|
|
366
505
|
|
|
367
506
|
class SearchCommand extends smithyClient.Command
|
|
368
507
|
.classBuilder()
|
|
369
508
|
.ep(commonParams)
|
|
370
509
|
.m(function (Command, cs, config, o) {
|
|
371
|
-
return [
|
|
372
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
373
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
374
|
-
];
|
|
510
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
375
511
|
})
|
|
376
512
|
.s("AmazonCloudSearch2013", "Search", {})
|
|
377
513
|
.n("CloudSearchDomainClient", "SearchCommand")
|
|
378
|
-
.
|
|
379
|
-
.ser(se_SearchCommand)
|
|
380
|
-
.de(de_SearchCommand)
|
|
514
|
+
.sc(Search)
|
|
381
515
|
.build() {
|
|
382
516
|
}
|
|
383
517
|
|
|
@@ -385,16 +519,11 @@ class SuggestCommand extends smithyClient.Command
|
|
|
385
519
|
.classBuilder()
|
|
386
520
|
.ep(commonParams)
|
|
387
521
|
.m(function (Command, cs, config, o) {
|
|
388
|
-
return [
|
|
389
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
390
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
391
|
-
];
|
|
522
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
392
523
|
})
|
|
393
524
|
.s("AmazonCloudSearch2013", "Suggest", {})
|
|
394
525
|
.n("CloudSearchDomainClient", "SuggestCommand")
|
|
395
|
-
.
|
|
396
|
-
.ser(se_SuggestCommand)
|
|
397
|
-
.de(de_SuggestCommand)
|
|
526
|
+
.sc(Suggest)
|
|
398
527
|
.build() {
|
|
399
528
|
}
|
|
400
529
|
|
|
@@ -402,16 +531,11 @@ class UploadDocumentsCommand extends smithyClient.Command
|
|
|
402
531
|
.classBuilder()
|
|
403
532
|
.ep(commonParams)
|
|
404
533
|
.m(function (Command, cs, config, o) {
|
|
405
|
-
return [
|
|
406
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
407
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
408
|
-
];
|
|
534
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
409
535
|
})
|
|
410
536
|
.s("AmazonCloudSearch2013", "UploadDocuments", {})
|
|
411
537
|
.n("CloudSearchDomainClient", "UploadDocumentsCommand")
|
|
412
|
-
.
|
|
413
|
-
.ser(se_UploadDocumentsCommand)
|
|
414
|
-
.de(de_UploadDocumentsCommand)
|
|
538
|
+
.sc(UploadDocuments)
|
|
415
539
|
.build() {
|
|
416
540
|
}
|
|
417
541
|
|
|
@@ -434,12 +558,11 @@ Object.defineProperty(exports, "__Client", {
|
|
|
434
558
|
});
|
|
435
559
|
exports.CloudSearchDomain = CloudSearchDomain;
|
|
436
560
|
exports.CloudSearchDomainClient = CloudSearchDomainClient;
|
|
437
|
-
exports.CloudSearchDomainServiceException = CloudSearchDomainServiceException;
|
|
561
|
+
exports.CloudSearchDomainServiceException = CloudSearchDomainServiceException$1;
|
|
438
562
|
exports.ContentType = ContentType;
|
|
439
|
-
exports.DocumentServiceException = DocumentServiceException;
|
|
563
|
+
exports.DocumentServiceException = DocumentServiceException$1;
|
|
440
564
|
exports.QueryParser = QueryParser;
|
|
441
565
|
exports.SearchCommand = SearchCommand;
|
|
442
|
-
exports.SearchException = SearchException;
|
|
566
|
+
exports.SearchException = SearchException$1;
|
|
443
567
|
exports.SuggestCommand = SuggestCommand;
|
|
444
568
|
exports.UploadDocumentsCommand = UploadDocumentsCommand;
|
|
445
|
-
exports.UploadDocumentsRequestFilterSensitiveLog = UploadDocumentsRequestFilterSensitiveLog;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
7
|
const url_parser_1 = require("@smithy/url-parser");
|
|
7
8
|
const util_base64_1 = require("@smithy/util-base64");
|
|
@@ -25,6 +26,7 @@ const getRuntimeConfig = (config) => {
|
|
|
25
26
|
},
|
|
26
27
|
],
|
|
27
28
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
29
|
+
protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.cloudsearchdomain" }),
|
|
28
30
|
serviceId: config?.serviceId ?? "CloudSearch Domain",
|
|
29
31
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
30
32
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|