@aws-sdk/client-cloudsearch-domain 3.503.1 → 3.507.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 +8 -43
- package/dist-es/protocols/Aws_restJson1.js +7 -42
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -258,7 +258,7 @@ var se_UploadDocumentsCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
258
258
|
}, "se_UploadDocumentsCommand");
|
|
259
259
|
var de_SearchCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
260
260
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
261
|
-
return
|
|
261
|
+
return de_CommandError(output, context);
|
|
262
262
|
}
|
|
263
263
|
const contents = (0, import_smithy_client.map)({
|
|
264
264
|
$metadata: deserializeMetadata(output)
|
|
@@ -273,28 +273,9 @@ var de_SearchCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
273
273
|
Object.assign(contents, doc);
|
|
274
274
|
return contents;
|
|
275
275
|
}, "de_SearchCommand");
|
|
276
|
-
var de_SearchCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
277
|
-
const parsedOutput = {
|
|
278
|
-
...output,
|
|
279
|
-
body: await parseErrorBody(output.body, context)
|
|
280
|
-
};
|
|
281
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
282
|
-
switch (errorCode) {
|
|
283
|
-
case "SearchException":
|
|
284
|
-
case "com.amazonaws.cloudsearchdomain#SearchException":
|
|
285
|
-
throw await de_SearchExceptionRes(parsedOutput, context);
|
|
286
|
-
default:
|
|
287
|
-
const parsedBody = parsedOutput.body;
|
|
288
|
-
return throwDefaultError({
|
|
289
|
-
output,
|
|
290
|
-
parsedBody,
|
|
291
|
-
errorCode
|
|
292
|
-
});
|
|
293
|
-
}
|
|
294
|
-
}, "de_SearchCommandError");
|
|
295
276
|
var de_SuggestCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
296
277
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
297
|
-
return
|
|
278
|
+
return de_CommandError(output, context);
|
|
298
279
|
}
|
|
299
280
|
const contents = (0, import_smithy_client.map)({
|
|
300
281
|
$metadata: deserializeMetadata(output)
|
|
@@ -307,28 +288,9 @@ var de_SuggestCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
307
288
|
Object.assign(contents, doc);
|
|
308
289
|
return contents;
|
|
309
290
|
}, "de_SuggestCommand");
|
|
310
|
-
var de_SuggestCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
311
|
-
const parsedOutput = {
|
|
312
|
-
...output,
|
|
313
|
-
body: await parseErrorBody(output.body, context)
|
|
314
|
-
};
|
|
315
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
316
|
-
switch (errorCode) {
|
|
317
|
-
case "SearchException":
|
|
318
|
-
case "com.amazonaws.cloudsearchdomain#SearchException":
|
|
319
|
-
throw await de_SearchExceptionRes(parsedOutput, context);
|
|
320
|
-
default:
|
|
321
|
-
const parsedBody = parsedOutput.body;
|
|
322
|
-
return throwDefaultError({
|
|
323
|
-
output,
|
|
324
|
-
parsedBody,
|
|
325
|
-
errorCode
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
|
-
}, "de_SuggestCommandError");
|
|
329
291
|
var de_UploadDocumentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
330
292
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
331
|
-
return
|
|
293
|
+
return de_CommandError(output, context);
|
|
332
294
|
}
|
|
333
295
|
const contents = (0, import_smithy_client.map)({
|
|
334
296
|
$metadata: deserializeMetadata(output)
|
|
@@ -343,13 +305,16 @@ var de_UploadDocumentsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
343
305
|
Object.assign(contents, doc);
|
|
344
306
|
return contents;
|
|
345
307
|
}, "de_UploadDocumentsCommand");
|
|
346
|
-
var
|
|
308
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
347
309
|
const parsedOutput = {
|
|
348
310
|
...output,
|
|
349
311
|
body: await parseErrorBody(output.body, context)
|
|
350
312
|
};
|
|
351
313
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
352
314
|
switch (errorCode) {
|
|
315
|
+
case "SearchException":
|
|
316
|
+
case "com.amazonaws.cloudsearchdomain#SearchException":
|
|
317
|
+
throw await de_SearchExceptionRes(parsedOutput, context);
|
|
353
318
|
case "DocumentServiceException":
|
|
354
319
|
case "com.amazonaws.cloudsearchdomain#DocumentServiceException":
|
|
355
320
|
throw await de_DocumentServiceExceptionRes(parsedOutput, context);
|
|
@@ -361,7 +326,7 @@ var de_UploadDocumentsCommandError = /* @__PURE__ */ __name(async (output, conte
|
|
|
361
326
|
errorCode
|
|
362
327
|
});
|
|
363
328
|
}
|
|
364
|
-
}, "
|
|
329
|
+
}, "de_CommandError");
|
|
365
330
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(CloudSearchDomainServiceException);
|
|
366
331
|
var de_DocumentServiceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
367
332
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -61,7 +61,7 @@ export const se_UploadDocumentsCommand = async (input, context) => {
|
|
|
61
61
|
};
|
|
62
62
|
export const de_SearchCommand = async (output, context) => {
|
|
63
63
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
64
|
-
return
|
|
64
|
+
return de_CommandError(output, context);
|
|
65
65
|
}
|
|
66
66
|
const contents = map({
|
|
67
67
|
$metadata: deserializeMetadata(output),
|
|
@@ -76,28 +76,9 @@ export const de_SearchCommand = async (output, context) => {
|
|
|
76
76
|
Object.assign(contents, doc);
|
|
77
77
|
return contents;
|
|
78
78
|
};
|
|
79
|
-
const de_SearchCommandError = async (output, context) => {
|
|
80
|
-
const parsedOutput = {
|
|
81
|
-
...output,
|
|
82
|
-
body: await parseErrorBody(output.body, context),
|
|
83
|
-
};
|
|
84
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
85
|
-
switch (errorCode) {
|
|
86
|
-
case "SearchException":
|
|
87
|
-
case "com.amazonaws.cloudsearchdomain#SearchException":
|
|
88
|
-
throw await de_SearchExceptionRes(parsedOutput, context);
|
|
89
|
-
default:
|
|
90
|
-
const parsedBody = parsedOutput.body;
|
|
91
|
-
return throwDefaultError({
|
|
92
|
-
output,
|
|
93
|
-
parsedBody,
|
|
94
|
-
errorCode,
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
79
|
export const de_SuggestCommand = async (output, context) => {
|
|
99
80
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
100
|
-
return
|
|
81
|
+
return de_CommandError(output, context);
|
|
101
82
|
}
|
|
102
83
|
const contents = map({
|
|
103
84
|
$metadata: deserializeMetadata(output),
|
|
@@ -110,28 +91,9 @@ export const de_SuggestCommand = async (output, context) => {
|
|
|
110
91
|
Object.assign(contents, doc);
|
|
111
92
|
return contents;
|
|
112
93
|
};
|
|
113
|
-
const de_SuggestCommandError = async (output, context) => {
|
|
114
|
-
const parsedOutput = {
|
|
115
|
-
...output,
|
|
116
|
-
body: await parseErrorBody(output.body, context),
|
|
117
|
-
};
|
|
118
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
119
|
-
switch (errorCode) {
|
|
120
|
-
case "SearchException":
|
|
121
|
-
case "com.amazonaws.cloudsearchdomain#SearchException":
|
|
122
|
-
throw await de_SearchExceptionRes(parsedOutput, context);
|
|
123
|
-
default:
|
|
124
|
-
const parsedBody = parsedOutput.body;
|
|
125
|
-
return throwDefaultError({
|
|
126
|
-
output,
|
|
127
|
-
parsedBody,
|
|
128
|
-
errorCode,
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
94
|
export const de_UploadDocumentsCommand = async (output, context) => {
|
|
133
95
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
134
|
-
return
|
|
96
|
+
return de_CommandError(output, context);
|
|
135
97
|
}
|
|
136
98
|
const contents = map({
|
|
137
99
|
$metadata: deserializeMetadata(output),
|
|
@@ -146,13 +108,16 @@ export const de_UploadDocumentsCommand = async (output, context) => {
|
|
|
146
108
|
Object.assign(contents, doc);
|
|
147
109
|
return contents;
|
|
148
110
|
};
|
|
149
|
-
const
|
|
111
|
+
const de_CommandError = async (output, context) => {
|
|
150
112
|
const parsedOutput = {
|
|
151
113
|
...output,
|
|
152
114
|
body: await parseErrorBody(output.body, context),
|
|
153
115
|
};
|
|
154
116
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
155
117
|
switch (errorCode) {
|
|
118
|
+
case "SearchException":
|
|
119
|
+
case "com.amazonaws.cloudsearchdomain#SearchException":
|
|
120
|
+
throw await de_SearchExceptionRes(parsedOutput, context);
|
|
156
121
|
case "DocumentServiceException":
|
|
157
122
|
case "com.amazonaws.cloudsearchdomain#DocumentServiceException":
|
|
158
123
|
throw await de_DocumentServiceExceptionRes(parsedOutput, context);
|
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.507.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-cloudsearch-domain",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|