@aws-sdk/client-cloudsearch-domain 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +9 -3
- package/dist-es/CloudSearchDomain.js +14 -21
- package/dist-es/CloudSearchDomainClient.js +22 -28
- package/dist-es/commands/SearchCommand.js +21 -28
- package/dist-es/commands/SuggestCommand.js +21 -28
- package/dist-es/commands/UploadDocumentsCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/CloudSearchDomainServiceException.js +5 -10
- package/dist-es/models/models_0.js +71 -40
- package/dist-es/protocols/Aws_restJson1.js +306 -394
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-cloudsearch-domain
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-cloudsearch-domain
|
|
@@ -115,7 +115,7 @@ exports.deserializeAws_restJson1SearchCommand = deserializeAws_restJson1SearchCo
|
|
|
115
115
|
const deserializeAws_restJson1SearchCommandError = async (output, context) => {
|
|
116
116
|
const parsedOutput = {
|
|
117
117
|
...output,
|
|
118
|
-
body: await
|
|
118
|
+
body: await parseErrorBody(output.body, context),
|
|
119
119
|
};
|
|
120
120
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
121
121
|
switch (errorCode) {
|
|
@@ -152,7 +152,7 @@ exports.deserializeAws_restJson1SuggestCommand = deserializeAws_restJson1Suggest
|
|
|
152
152
|
const deserializeAws_restJson1SuggestCommandError = async (output, context) => {
|
|
153
153
|
const parsedOutput = {
|
|
154
154
|
...output,
|
|
155
|
-
body: await
|
|
155
|
+
body: await parseErrorBody(output.body, context),
|
|
156
156
|
};
|
|
157
157
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
158
158
|
switch (errorCode) {
|
|
@@ -195,7 +195,7 @@ exports.deserializeAws_restJson1UploadDocumentsCommand = deserializeAws_restJson
|
|
|
195
195
|
const deserializeAws_restJson1UploadDocumentsCommandError = async (output, context) => {
|
|
196
196
|
const parsedOutput = {
|
|
197
197
|
...output,
|
|
198
|
-
body: await
|
|
198
|
+
body: await parseErrorBody(output.body, context),
|
|
199
199
|
};
|
|
200
200
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
201
201
|
switch (errorCode) {
|
|
@@ -447,6 +447,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
447
447
|
}
|
|
448
448
|
return {};
|
|
449
449
|
});
|
|
450
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
451
|
+
var _a;
|
|
452
|
+
const value = await parseBody(errorBody, context);
|
|
453
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
454
|
+
return value;
|
|
455
|
+
};
|
|
450
456
|
const loadRestJsonErrorCode = (output, data) => {
|
|
451
457
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
452
458
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -1,55 +1,48 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { CloudSearchDomainClient } from "./CloudSearchDomainClient";
|
|
3
2
|
import { SearchCommand } from "./commands/SearchCommand";
|
|
4
3
|
import { SuggestCommand } from "./commands/SuggestCommand";
|
|
5
4
|
import { UploadDocumentsCommand, } from "./commands/UploadDocumentsCommand";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
10
|
-
}
|
|
11
|
-
CloudSearchDomain.prototype.search = function (args, optionsOrCb, cb) {
|
|
12
|
-
var command = new SearchCommand(args);
|
|
5
|
+
export class CloudSearchDomain extends CloudSearchDomainClient {
|
|
6
|
+
search(args, optionsOrCb, cb) {
|
|
7
|
+
const command = new SearchCommand(args);
|
|
13
8
|
if (typeof optionsOrCb === "function") {
|
|
14
9
|
this.send(command, optionsOrCb);
|
|
15
10
|
}
|
|
16
11
|
else if (typeof cb === "function") {
|
|
17
12
|
if (typeof optionsOrCb !== "object")
|
|
18
|
-
throw new Error(
|
|
13
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
19
14
|
this.send(command, optionsOrCb || {}, cb);
|
|
20
15
|
}
|
|
21
16
|
else {
|
|
22
17
|
return this.send(command, optionsOrCb);
|
|
23
18
|
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
}
|
|
20
|
+
suggest(args, optionsOrCb, cb) {
|
|
21
|
+
const command = new SuggestCommand(args);
|
|
27
22
|
if (typeof optionsOrCb === "function") {
|
|
28
23
|
this.send(command, optionsOrCb);
|
|
29
24
|
}
|
|
30
25
|
else if (typeof cb === "function") {
|
|
31
26
|
if (typeof optionsOrCb !== "object")
|
|
32
|
-
throw new Error(
|
|
27
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
33
28
|
this.send(command, optionsOrCb || {}, cb);
|
|
34
29
|
}
|
|
35
30
|
else {
|
|
36
31
|
return this.send(command, optionsOrCb);
|
|
37
32
|
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
}
|
|
34
|
+
uploadDocuments(args, optionsOrCb, cb) {
|
|
35
|
+
const command = new UploadDocumentsCommand(args);
|
|
41
36
|
if (typeof optionsOrCb === "function") {
|
|
42
37
|
this.send(command, optionsOrCb);
|
|
43
38
|
}
|
|
44
39
|
else if (typeof cb === "function") {
|
|
45
40
|
if (typeof optionsOrCb !== "object")
|
|
46
|
-
throw new Error(
|
|
41
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
47
42
|
this.send(command, optionsOrCb || {}, cb);
|
|
48
43
|
}
|
|
49
44
|
else {
|
|
50
45
|
return this.send(command, optionsOrCb);
|
|
51
46
|
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
}(CloudSearchDomainClient));
|
|
55
|
-
export { CloudSearchDomain };
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
3
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
-
return _this;
|
|
11
|
+
export class CloudSearchDomainClient extends __Client {
|
|
12
|
+
constructor(configuration) {
|
|
13
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
15
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
16
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
17
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
18
|
+
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
19
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
20
|
+
super(_config_6);
|
|
21
|
+
this.config = _config_6;
|
|
22
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
25
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}(__Client));
|
|
39
|
-
export { CloudSearchDomainClient };
|
|
30
|
+
destroy() {
|
|
31
|
+
super.destroy();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { SearchRequestFilterSensitiveLog, SearchResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1SearchCommand, serializeAws_restJson1SearchCommand } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class SearchCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "CloudSearchDomainClient";
|
|
15
|
+
const commandName = "SearchCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: SearchRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: SearchResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
SearchCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1SearchCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1SearchCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { SearchCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { SuggestRequestFilterSensitiveLog, SuggestResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1SuggestCommand, serializeAws_restJson1SuggestCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class SuggestCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "CloudSearchDomainClient";
|
|
15
|
+
const commandName = "SuggestCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: SuggestRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: SuggestResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
SuggestCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1SuggestCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1SuggestCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { SuggestCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { UploadDocumentsRequestFilterSensitiveLog, UploadDocumentsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1UploadDocumentsCommand, serializeAws_restJson1UploadDocumentsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class UploadDocumentsCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "CloudSearchDomainClient";
|
|
15
|
+
const commandName = "UploadDocumentsCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: UploadDocumentsRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: UploadDocumentsResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
UploadDocumentsCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1UploadDocumentsCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1UploadDocumentsCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { UploadDocumentsCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
const regionHash = {};
|
|
3
|
+
const partitionHash = {
|
|
5
4
|
aws: {
|
|
6
5
|
regions: [
|
|
7
6
|
"af-south-1",
|
|
@@ -121,8 +120,9 @@ var partitionHash = {
|
|
|
121
120
|
],
|
|
122
121
|
},
|
|
123
122
|
};
|
|
124
|
-
export
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
123
|
+
export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
|
|
124
|
+
...options,
|
|
125
|
+
signingService: "cloudsearch",
|
|
126
|
+
regionHash,
|
|
127
|
+
partitionHash,
|
|
128
|
+
});
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.setPrototypeOf(_this, CloudSearchDomainServiceException.prototype);
|
|
8
|
-
return _this;
|
|
2
|
+
export class CloudSearchDomainServiceException extends __ServiceException {
|
|
3
|
+
constructor(options) {
|
|
4
|
+
super(options);
|
|
5
|
+
Object.setPrototypeOf(this, CloudSearchDomainServiceException.prototype);
|
|
9
6
|
}
|
|
10
|
-
|
|
11
|
-
}(__ServiceException));
|
|
12
|
-
export { CloudSearchDomainServiceException };
|
|
7
|
+
}
|
|
@@ -1,43 +1,74 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
2
1
|
import { CloudSearchDomainServiceException as __BaseException } from "./CloudSearchDomainServiceException";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
export class SearchException extends __BaseException {
|
|
3
|
+
constructor(opts) {
|
|
4
|
+
super({
|
|
5
|
+
name: "SearchException",
|
|
6
|
+
$fault: "client",
|
|
7
|
+
...opts,
|
|
8
|
+
});
|
|
9
|
+
this.name = "SearchException";
|
|
10
|
+
this.$fault = "client";
|
|
11
|
+
Object.setPrototypeOf(this, SearchException.prototype);
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
}
|
|
14
|
+
export class DocumentServiceException extends __BaseException {
|
|
15
|
+
constructor(opts) {
|
|
16
|
+
super({
|
|
17
|
+
name: "DocumentServiceException",
|
|
18
|
+
$fault: "client",
|
|
19
|
+
...opts,
|
|
20
|
+
});
|
|
21
|
+
this.name = "DocumentServiceException";
|
|
22
|
+
this.$fault = "client";
|
|
23
|
+
Object.setPrototypeOf(this, DocumentServiceException.prototype);
|
|
24
|
+
this.status = opts.status;
|
|
24
25
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
export
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
export
|
|
42
|
-
|
|
43
|
-
|
|
26
|
+
}
|
|
27
|
+
export const SearchRequestFilterSensitiveLog = (obj) => ({
|
|
28
|
+
...obj,
|
|
29
|
+
});
|
|
30
|
+
export const BucketFilterSensitiveLog = (obj) => ({
|
|
31
|
+
...obj,
|
|
32
|
+
});
|
|
33
|
+
export const BucketInfoFilterSensitiveLog = (obj) => ({
|
|
34
|
+
...obj,
|
|
35
|
+
});
|
|
36
|
+
export const HitFilterSensitiveLog = (obj) => ({
|
|
37
|
+
...obj,
|
|
38
|
+
});
|
|
39
|
+
export const HitsFilterSensitiveLog = (obj) => ({
|
|
40
|
+
...obj,
|
|
41
|
+
});
|
|
42
|
+
export const FieldStatsFilterSensitiveLog = (obj) => ({
|
|
43
|
+
...obj,
|
|
44
|
+
});
|
|
45
|
+
export const SearchStatusFilterSensitiveLog = (obj) => ({
|
|
46
|
+
...obj,
|
|
47
|
+
});
|
|
48
|
+
export const SearchResponseFilterSensitiveLog = (obj) => ({
|
|
49
|
+
...obj,
|
|
50
|
+
});
|
|
51
|
+
export const SuggestRequestFilterSensitiveLog = (obj) => ({
|
|
52
|
+
...obj,
|
|
53
|
+
});
|
|
54
|
+
export const SuggestStatusFilterSensitiveLog = (obj) => ({
|
|
55
|
+
...obj,
|
|
56
|
+
});
|
|
57
|
+
export const SuggestionMatchFilterSensitiveLog = (obj) => ({
|
|
58
|
+
...obj,
|
|
59
|
+
});
|
|
60
|
+
export const SuggestModelFilterSensitiveLog = (obj) => ({
|
|
61
|
+
...obj,
|
|
62
|
+
});
|
|
63
|
+
export const SuggestResponseFilterSensitiveLog = (obj) => ({
|
|
64
|
+
...obj,
|
|
65
|
+
});
|
|
66
|
+
export const UploadDocumentsRequestFilterSensitiveLog = (obj) => ({
|
|
67
|
+
...obj,
|
|
68
|
+
});
|
|
69
|
+
export const DocumentServiceWarningFilterSensitiveLog = (obj) => ({
|
|
70
|
+
...obj,
|
|
71
|
+
});
|
|
72
|
+
export const UploadDocumentsResponseFilterSensitiveLog = (obj) => ({
|
|
73
|
+
...obj,
|
|
74
|
+
});
|