@aws-sdk/client-cloudsearch-domain 3.490.0 → 3.495.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/CloudSearchDomain.js +1 -17
- package/dist-cjs/CloudSearchDomainClient.js +1 -43
- package/dist-cjs/commands/SearchCommand.js +1 -28
- package/dist-cjs/commands/SuggestCommand.js +1 -28
- package/dist-cjs/commands/UploadDocumentsCommand.js +1 -29
- package/dist-cjs/commands/index.js +1 -6
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +560 -10
- package/dist-cjs/models/CloudSearchDomainServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -45
- package/dist-cjs/protocols/Aws_restJson1.js +1 -300
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CloudSearchDomain = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
const CloudSearchDomainClient_1 = require("./CloudSearchDomainClient");
|
|
6
|
-
const SearchCommand_1 = require("./commands/SearchCommand");
|
|
7
|
-
const SuggestCommand_1 = require("./commands/SuggestCommand");
|
|
8
|
-
const UploadDocumentsCommand_1 = require("./commands/UploadDocumentsCommand");
|
|
9
|
-
const commands = {
|
|
10
|
-
SearchCommand: SearchCommand_1.SearchCommand,
|
|
11
|
-
SuggestCommand: SuggestCommand_1.SuggestCommand,
|
|
12
|
-
UploadDocumentsCommand: UploadDocumentsCommand_1.UploadDocumentsCommand,
|
|
13
|
-
};
|
|
14
|
-
class CloudSearchDomain extends CloudSearchDomainClient_1.CloudSearchDomainClient {
|
|
15
|
-
}
|
|
16
|
-
exports.CloudSearchDomain = CloudSearchDomain;
|
|
17
|
-
(0, smithy_client_1.createAggregatedClient)(commands, CloudSearchDomain);
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -1,43 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CloudSearchDomainClient = exports.__Client = void 0;
|
|
4
|
-
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
5
|
-
const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
|
6
|
-
const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
|
|
7
|
-
const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
8
|
-
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
9
|
-
const config_resolver_1 = require("@smithy/config-resolver");
|
|
10
|
-
const middleware_content_length_1 = require("@smithy/middleware-content-length");
|
|
11
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
12
|
-
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
13
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
14
|
-
Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
|
|
15
|
-
const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
16
|
-
const runtimeConfig_1 = require("./runtimeConfig");
|
|
17
|
-
const runtimeExtensions_1 = require("./runtimeExtensions");
|
|
18
|
-
class CloudSearchDomainClient extends smithy_client_1.Client {
|
|
19
|
-
constructor(...[configuration]) {
|
|
20
|
-
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
21
|
-
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
22
|
-
const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1);
|
|
23
|
-
const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2);
|
|
24
|
-
const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3);
|
|
25
|
-
const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
|
|
26
|
-
const _config_6 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_5);
|
|
27
|
-
const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6);
|
|
28
|
-
const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
|
|
29
|
-
super(_config_8);
|
|
30
|
-
this.config = _config_8;
|
|
31
|
-
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
32
|
-
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
33
|
-
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
34
|
-
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
35
|
-
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
|
36
|
-
this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
|
|
37
|
-
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
38
|
-
}
|
|
39
|
-
destroy() {
|
|
40
|
-
super.destroy();
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.CloudSearchDomainClient = CloudSearchDomainClient;
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SearchCommand = exports.$Command = void 0;
|
|
4
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
-
class SearchCommand extends smithy_client_1.Command
|
|
11
|
-
.classBuilder()
|
|
12
|
-
.ep({
|
|
13
|
-
...EndpointParameters_1.commonParams,
|
|
14
|
-
})
|
|
15
|
-
.m(function (Command, cs, config, o) {
|
|
16
|
-
return [
|
|
17
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
-
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
-
];
|
|
20
|
-
})
|
|
21
|
-
.s("AmazonCloudSearch2013", "Search", {})
|
|
22
|
-
.n("CloudSearchDomainClient", "SearchCommand")
|
|
23
|
-
.f(void 0, void 0)
|
|
24
|
-
.ser(Aws_restJson1_1.se_SearchCommand)
|
|
25
|
-
.de(Aws_restJson1_1.de_SearchCommand)
|
|
26
|
-
.build() {
|
|
27
|
-
}
|
|
28
|
-
exports.SearchCommand = SearchCommand;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SuggestCommand = exports.$Command = void 0;
|
|
4
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
-
class SuggestCommand extends smithy_client_1.Command
|
|
11
|
-
.classBuilder()
|
|
12
|
-
.ep({
|
|
13
|
-
...EndpointParameters_1.commonParams,
|
|
14
|
-
})
|
|
15
|
-
.m(function (Command, cs, config, o) {
|
|
16
|
-
return [
|
|
17
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
-
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
-
];
|
|
20
|
-
})
|
|
21
|
-
.s("AmazonCloudSearch2013", "Suggest", {})
|
|
22
|
-
.n("CloudSearchDomainClient", "SuggestCommand")
|
|
23
|
-
.f(void 0, void 0)
|
|
24
|
-
.ser(Aws_restJson1_1.se_SuggestCommand)
|
|
25
|
-
.de(Aws_restJson1_1.de_SuggestCommand)
|
|
26
|
-
.build() {
|
|
27
|
-
}
|
|
28
|
-
exports.SuggestCommand = SuggestCommand;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UploadDocumentsCommand = exports.$Command = void 0;
|
|
4
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
11
|
-
class UploadDocumentsCommand extends smithy_client_1.Command
|
|
12
|
-
.classBuilder()
|
|
13
|
-
.ep({
|
|
14
|
-
...EndpointParameters_1.commonParams,
|
|
15
|
-
})
|
|
16
|
-
.m(function (Command, cs, config, o) {
|
|
17
|
-
return [
|
|
18
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
19
|
-
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
20
|
-
];
|
|
21
|
-
})
|
|
22
|
-
.s("AmazonCloudSearch2013", "UploadDocuments", {})
|
|
23
|
-
.n("CloudSearchDomainClient", "UploadDocumentsCommand")
|
|
24
|
-
.f(models_0_1.UploadDocumentsRequestFilterSensitiveLog, void 0)
|
|
25
|
-
.ser(Aws_restJson1_1.se_UploadDocumentsCommand)
|
|
26
|
-
.de(Aws_restJson1_1.de_UploadDocumentsCommand)
|
|
27
|
-
.build() {
|
|
28
|
-
}
|
|
29
|
-
exports.UploadDocumentsCommand = UploadDocumentsCommand;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./SearchCommand"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./SuggestCommand"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./UploadDocumentsCommand"), exports);
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
|
4
|
-
const resolveClientEndpointParameters = (options) => {
|
|
5
|
-
return {
|
|
6
|
-
...options,
|
|
7
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
8
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
9
|
-
defaultSigningName: "cloudsearch",
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
13
|
-
exports.commonParams = {
|
|
14
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
15
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
16
|
-
Region: { type: "builtInParams", name: "region" },
|
|
17
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("./index.js");
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,11 +1,561 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
CloudSearchDomain: () => CloudSearchDomain,
|
|
25
|
+
CloudSearchDomainClient: () => CloudSearchDomainClient,
|
|
26
|
+
CloudSearchDomainServiceException: () => CloudSearchDomainServiceException,
|
|
27
|
+
ContentType: () => ContentType,
|
|
28
|
+
DocumentServiceException: () => DocumentServiceException,
|
|
29
|
+
QueryParser: () => QueryParser,
|
|
30
|
+
SearchCommand: () => SearchCommand,
|
|
31
|
+
SearchException: () => SearchException,
|
|
32
|
+
SuggestCommand: () => SuggestCommand,
|
|
33
|
+
UploadDocumentsCommand: () => UploadDocumentsCommand,
|
|
34
|
+
UploadDocumentsRequestFilterSensitiveLog: () => UploadDocumentsRequestFilterSensitiveLog,
|
|
35
|
+
__Client: () => import_smithy_client.Client
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(src_exports);
|
|
38
|
+
|
|
39
|
+
// src/CloudSearchDomainClient.ts
|
|
40
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
41
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
42
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
43
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
44
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
45
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
46
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
47
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
48
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
// src/endpoint/EndpointParameters.ts
|
|
52
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
53
|
+
return {
|
|
54
|
+
...options,
|
|
55
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
56
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
57
|
+
defaultSigningName: "cloudsearch"
|
|
58
|
+
};
|
|
59
|
+
}, "resolveClientEndpointParameters");
|
|
60
|
+
var commonParams = {
|
|
61
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
62
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
63
|
+
Region: { type: "builtInParams", name: "region" },
|
|
64
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
// src/CloudSearchDomainClient.ts
|
|
68
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
69
|
+
|
|
70
|
+
// src/runtimeExtensions.ts
|
|
71
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
72
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
73
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
74
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
75
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
76
|
+
const extensionConfiguration = {
|
|
77
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
78
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
79
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
80
|
+
};
|
|
81
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
82
|
+
return {
|
|
83
|
+
...runtimeConfig,
|
|
84
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
85
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
86
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
87
|
+
};
|
|
88
|
+
}, "resolveRuntimeExtensions");
|
|
89
|
+
|
|
90
|
+
// src/CloudSearchDomainClient.ts
|
|
91
|
+
var _CloudSearchDomainClient = class _CloudSearchDomainClient extends import_smithy_client.Client {
|
|
92
|
+
constructor(...[configuration]) {
|
|
93
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
94
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
95
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
96
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
97
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
98
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
99
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
100
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
101
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
102
|
+
super(_config_8);
|
|
103
|
+
this.config = _config_8;
|
|
104
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
105
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
106
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
107
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
108
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
109
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
110
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
114
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
115
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
116
|
+
*/
|
|
117
|
+
destroy() {
|
|
118
|
+
super.destroy();
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
__name(_CloudSearchDomainClient, "CloudSearchDomainClient");
|
|
122
|
+
var CloudSearchDomainClient = _CloudSearchDomainClient;
|
|
123
|
+
|
|
124
|
+
// src/CloudSearchDomain.ts
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
// src/commands/SearchCommand.ts
|
|
128
|
+
|
|
129
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
130
|
+
|
|
131
|
+
var import_types = require("@smithy/types");
|
|
132
|
+
|
|
133
|
+
// src/protocols/Aws_restJson1.ts
|
|
134
|
+
var import_core = require("@smithy/core");
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
// src/models/CloudSearchDomainServiceException.ts
|
|
138
|
+
|
|
139
|
+
var _CloudSearchDomainServiceException = class _CloudSearchDomainServiceException extends import_smithy_client.ServiceException {
|
|
140
|
+
/**
|
|
141
|
+
* @internal
|
|
142
|
+
*/
|
|
143
|
+
constructor(options) {
|
|
144
|
+
super(options);
|
|
145
|
+
Object.setPrototypeOf(this, _CloudSearchDomainServiceException.prototype);
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
__name(_CloudSearchDomainServiceException, "CloudSearchDomainServiceException");
|
|
149
|
+
var CloudSearchDomainServiceException = _CloudSearchDomainServiceException;
|
|
150
|
+
|
|
151
|
+
// src/models/models_0.ts
|
|
152
|
+
var _SearchException = class _SearchException extends CloudSearchDomainServiceException {
|
|
153
|
+
/**
|
|
154
|
+
* @internal
|
|
155
|
+
*/
|
|
156
|
+
constructor(opts) {
|
|
157
|
+
super({
|
|
158
|
+
name: "SearchException",
|
|
159
|
+
$fault: "client",
|
|
160
|
+
...opts
|
|
161
|
+
});
|
|
162
|
+
this.name = "SearchException";
|
|
163
|
+
this.$fault = "client";
|
|
164
|
+
Object.setPrototypeOf(this, _SearchException.prototype);
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
__name(_SearchException, "SearchException");
|
|
168
|
+
var SearchException = _SearchException;
|
|
169
|
+
var QueryParser = {
|
|
170
|
+
dismax: "dismax",
|
|
171
|
+
lucene: "lucene",
|
|
172
|
+
simple: "simple",
|
|
173
|
+
structured: "structured"
|
|
174
|
+
};
|
|
175
|
+
var _DocumentServiceException = class _DocumentServiceException extends CloudSearchDomainServiceException {
|
|
176
|
+
/**
|
|
177
|
+
* @internal
|
|
178
|
+
*/
|
|
179
|
+
constructor(opts) {
|
|
180
|
+
super({
|
|
181
|
+
name: "DocumentServiceException",
|
|
182
|
+
$fault: "client",
|
|
183
|
+
...opts
|
|
184
|
+
});
|
|
185
|
+
this.name = "DocumentServiceException";
|
|
186
|
+
this.$fault = "client";
|
|
187
|
+
Object.setPrototypeOf(this, _DocumentServiceException.prototype);
|
|
188
|
+
this.status = opts.status;
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
__name(_DocumentServiceException, "DocumentServiceException");
|
|
192
|
+
var DocumentServiceException = _DocumentServiceException;
|
|
193
|
+
var ContentType = {
|
|
194
|
+
application_json: "application/json",
|
|
195
|
+
application_xml: "application/xml"
|
|
196
|
+
};
|
|
197
|
+
var UploadDocumentsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
198
|
+
...obj
|
|
199
|
+
}), "UploadDocumentsRequestFilterSensitiveLog");
|
|
200
|
+
|
|
201
|
+
// src/protocols/Aws_restJson1.ts
|
|
202
|
+
var se_SearchCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
203
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
204
|
+
const headers = {};
|
|
205
|
+
b.bp("/2013-01-01/search");
|
|
206
|
+
const query = (0, import_smithy_client.map)({
|
|
207
|
+
[_f]: [, "sdk"],
|
|
208
|
+
[_p]: [, "true"],
|
|
209
|
+
[_c]: [, input[_c]],
|
|
210
|
+
[_e]: [, input[_e]],
|
|
211
|
+
[_fa]: [, input[_fa]],
|
|
212
|
+
[_fq]: [, input[_fQ]],
|
|
213
|
+
[_h]: [, input[_h]],
|
|
214
|
+
[_pa]: [() => input.partial !== void 0, () => input[_pa].toString()],
|
|
215
|
+
[_q_]: [, (0, import_smithy_client.expectNonNull)(input[_q], `query`)],
|
|
216
|
+
[_qo]: [, input[_qO]],
|
|
217
|
+
[_qp]: [, input[_qP]],
|
|
218
|
+
[_r]: [, input[_r]],
|
|
219
|
+
[_s]: [() => input.size !== void 0, () => input[_s].toString()],
|
|
220
|
+
[_so]: [, input[_so]],
|
|
221
|
+
[_st]: [() => input.start !== void 0, () => input[_st].toString()],
|
|
222
|
+
[_sta]: [, input[_sta]]
|
|
223
|
+
});
|
|
224
|
+
let body;
|
|
225
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
226
|
+
return b.build();
|
|
227
|
+
}, "se_SearchCommand");
|
|
228
|
+
var se_SuggestCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
229
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
230
|
+
const headers = {};
|
|
231
|
+
b.bp("/2013-01-01/suggest");
|
|
232
|
+
const query = (0, import_smithy_client.map)({
|
|
233
|
+
[_f]: [, "sdk"],
|
|
234
|
+
[_p]: [, "true"],
|
|
235
|
+
[_q_]: [, (0, import_smithy_client.expectNonNull)(input[_q], `query`)],
|
|
236
|
+
[_su]: [, (0, import_smithy_client.expectNonNull)(input[_su], `suggester`)],
|
|
237
|
+
[_s]: [() => input.size !== void 0, () => input[_s].toString()]
|
|
238
|
+
});
|
|
239
|
+
let body;
|
|
240
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
241
|
+
return b.build();
|
|
242
|
+
}, "se_SuggestCommand");
|
|
243
|
+
var se_UploadDocumentsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
244
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
245
|
+
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
246
|
+
[_ct]: input[_cT] || "application/octet-stream"
|
|
247
|
+
});
|
|
248
|
+
b.bp("/2013-01-01/documents/batch");
|
|
249
|
+
const query = (0, import_smithy_client.map)({
|
|
250
|
+
[_f]: [, "sdk"]
|
|
251
|
+
});
|
|
252
|
+
let body;
|
|
253
|
+
if (input.documents !== void 0) {
|
|
254
|
+
body = input.documents;
|
|
255
|
+
}
|
|
256
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
257
|
+
return b.build();
|
|
258
|
+
}, "se_UploadDocumentsCommand");
|
|
259
|
+
var de_SearchCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
260
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
261
|
+
return de_SearchCommandError(output, context);
|
|
262
|
+
}
|
|
263
|
+
const contents = (0, import_smithy_client.map)({
|
|
264
|
+
$metadata: deserializeMetadata(output)
|
|
265
|
+
});
|
|
266
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
267
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
268
|
+
facets: import_smithy_client._json,
|
|
269
|
+
hits: import_smithy_client._json,
|
|
270
|
+
stats: (_) => de_Stats(_, context),
|
|
271
|
+
status: import_smithy_client._json
|
|
272
|
+
});
|
|
273
|
+
Object.assign(contents, doc);
|
|
274
|
+
return contents;
|
|
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
|
+
var de_SuggestCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
296
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
297
|
+
return de_SuggestCommandError(output, context);
|
|
298
|
+
}
|
|
299
|
+
const contents = (0, import_smithy_client.map)({
|
|
300
|
+
$metadata: deserializeMetadata(output)
|
|
301
|
+
});
|
|
302
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
303
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
304
|
+
status: import_smithy_client._json,
|
|
305
|
+
suggest: import_smithy_client._json
|
|
306
|
+
});
|
|
307
|
+
Object.assign(contents, doc);
|
|
308
|
+
return contents;
|
|
309
|
+
}, "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
|
+
var de_UploadDocumentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
330
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
331
|
+
return de_UploadDocumentsCommandError(output, context);
|
|
332
|
+
}
|
|
333
|
+
const contents = (0, import_smithy_client.map)({
|
|
334
|
+
$metadata: deserializeMetadata(output)
|
|
335
|
+
});
|
|
336
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
337
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
338
|
+
adds: import_smithy_client.expectLong,
|
|
339
|
+
deletes: import_smithy_client.expectLong,
|
|
340
|
+
status: import_smithy_client.expectString,
|
|
341
|
+
warnings: import_smithy_client._json
|
|
342
|
+
});
|
|
343
|
+
Object.assign(contents, doc);
|
|
344
|
+
return contents;
|
|
345
|
+
}, "de_UploadDocumentsCommand");
|
|
346
|
+
var de_UploadDocumentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
347
|
+
const parsedOutput = {
|
|
348
|
+
...output,
|
|
349
|
+
body: await parseErrorBody(output.body, context)
|
|
350
|
+
};
|
|
351
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
352
|
+
switch (errorCode) {
|
|
353
|
+
case "DocumentServiceException":
|
|
354
|
+
case "com.amazonaws.cloudsearchdomain#DocumentServiceException":
|
|
355
|
+
throw await de_DocumentServiceExceptionRes(parsedOutput, context);
|
|
356
|
+
default:
|
|
357
|
+
const parsedBody = parsedOutput.body;
|
|
358
|
+
return throwDefaultError({
|
|
359
|
+
output,
|
|
360
|
+
parsedBody,
|
|
361
|
+
errorCode
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
}, "de_UploadDocumentsCommandError");
|
|
365
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(CloudSearchDomainServiceException);
|
|
366
|
+
var de_DocumentServiceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
367
|
+
const contents = (0, import_smithy_client.map)({});
|
|
368
|
+
const data = parsedOutput.body;
|
|
369
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
370
|
+
message: import_smithy_client.expectString,
|
|
371
|
+
status: import_smithy_client.expectString
|
|
372
|
+
});
|
|
373
|
+
Object.assign(contents, doc);
|
|
374
|
+
const exception = new DocumentServiceException({
|
|
375
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
376
|
+
...contents
|
|
377
|
+
});
|
|
378
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
379
|
+
}, "de_DocumentServiceExceptionRes");
|
|
380
|
+
var de_SearchExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
381
|
+
const contents = (0, import_smithy_client.map)({});
|
|
382
|
+
const data = parsedOutput.body;
|
|
383
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
384
|
+
message: import_smithy_client.expectString
|
|
385
|
+
});
|
|
386
|
+
Object.assign(contents, doc);
|
|
387
|
+
const exception = new SearchException({
|
|
388
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
389
|
+
...contents
|
|
390
|
+
});
|
|
391
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
392
|
+
}, "de_SearchExceptionRes");
|
|
393
|
+
var de_FieldStats = /* @__PURE__ */ __name((output, context) => {
|
|
394
|
+
return (0, import_smithy_client.take)(output, {
|
|
395
|
+
count: import_smithy_client.expectLong,
|
|
396
|
+
max: import_smithy_client.expectString,
|
|
397
|
+
mean: import_smithy_client.expectString,
|
|
398
|
+
min: import_smithy_client.expectString,
|
|
399
|
+
missing: import_smithy_client.expectLong,
|
|
400
|
+
stddev: import_smithy_client.limitedParseDouble,
|
|
401
|
+
sum: import_smithy_client.limitedParseDouble,
|
|
402
|
+
sumOfSquares: import_smithy_client.limitedParseDouble
|
|
403
|
+
});
|
|
404
|
+
}, "de_FieldStats");
|
|
405
|
+
var de_Stats = /* @__PURE__ */ __name((output, context) => {
|
|
406
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
407
|
+
if (value === null) {
|
|
408
|
+
return acc;
|
|
409
|
+
}
|
|
410
|
+
acc[key] = de_FieldStats(value, context);
|
|
411
|
+
return acc;
|
|
412
|
+
}, {});
|
|
413
|
+
}, "de_Stats");
|
|
414
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
415
|
+
httpStatusCode: output.statusCode,
|
|
416
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
417
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
418
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
419
|
+
}), "deserializeMetadata");
|
|
420
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
421
|
+
var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
|
|
422
|
+
var _c = "cursor";
|
|
423
|
+
var _cT = "contentType";
|
|
424
|
+
var _ct = "content-type";
|
|
425
|
+
var _e = "expr";
|
|
426
|
+
var _f = "format";
|
|
427
|
+
var _fQ = "filterQuery";
|
|
428
|
+
var _fa = "facet";
|
|
429
|
+
var _fq = "fq";
|
|
430
|
+
var _h = "highlight";
|
|
431
|
+
var _p = "pretty";
|
|
432
|
+
var _pa = "partial";
|
|
433
|
+
var _q = "query";
|
|
434
|
+
var _qO = "queryOptions";
|
|
435
|
+
var _qP = "queryParser";
|
|
436
|
+
var _q_ = "q";
|
|
437
|
+
var _qo = "q.options";
|
|
438
|
+
var _qp = "q.parser";
|
|
439
|
+
var _r = "return";
|
|
440
|
+
var _s = "size";
|
|
441
|
+
var _so = "sort";
|
|
442
|
+
var _st = "start";
|
|
443
|
+
var _sta = "stats";
|
|
444
|
+
var _su = "suggester";
|
|
445
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
446
|
+
if (encoded.length) {
|
|
447
|
+
return JSON.parse(encoded);
|
|
448
|
+
}
|
|
449
|
+
return {};
|
|
450
|
+
}), "parseBody");
|
|
451
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
452
|
+
const value = await parseBody(errorBody, context);
|
|
453
|
+
value.message = value.message ?? value.Message;
|
|
454
|
+
return value;
|
|
455
|
+
}, "parseErrorBody");
|
|
456
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
457
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
458
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
459
|
+
let cleanValue = rawValue;
|
|
460
|
+
if (typeof cleanValue === "number") {
|
|
461
|
+
cleanValue = cleanValue.toString();
|
|
462
|
+
}
|
|
463
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
464
|
+
cleanValue = cleanValue.split(",")[0];
|
|
465
|
+
}
|
|
466
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
467
|
+
cleanValue = cleanValue.split(":")[0];
|
|
468
|
+
}
|
|
469
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
470
|
+
cleanValue = cleanValue.split("#")[1];
|
|
471
|
+
}
|
|
472
|
+
return cleanValue;
|
|
473
|
+
}, "sanitizeErrorCode");
|
|
474
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
475
|
+
if (headerKey !== void 0) {
|
|
476
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
477
|
+
}
|
|
478
|
+
if (data.code !== void 0) {
|
|
479
|
+
return sanitizeErrorCode(data.code);
|
|
480
|
+
}
|
|
481
|
+
if (data["__type"] !== void 0) {
|
|
482
|
+
return sanitizeErrorCode(data["__type"]);
|
|
483
|
+
}
|
|
484
|
+
}, "loadRestJsonErrorCode");
|
|
485
|
+
|
|
486
|
+
// src/commands/SearchCommand.ts
|
|
487
|
+
var _SearchCommand = class _SearchCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
488
|
+
...commonParams
|
|
489
|
+
}).m(function(Command, cs, config, o) {
|
|
490
|
+
return [
|
|
491
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
492
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
493
|
+
];
|
|
494
|
+
}).s("AmazonCloudSearch2013", "Search", {}).n("CloudSearchDomainClient", "SearchCommand").f(void 0, void 0).ser(se_SearchCommand).de(de_SearchCommand).build() {
|
|
495
|
+
};
|
|
496
|
+
__name(_SearchCommand, "SearchCommand");
|
|
497
|
+
var SearchCommand = _SearchCommand;
|
|
498
|
+
|
|
499
|
+
// src/commands/SuggestCommand.ts
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
var _SuggestCommand = class _SuggestCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
505
|
+
...commonParams
|
|
506
|
+
}).m(function(Command, cs, config, o) {
|
|
507
|
+
return [
|
|
508
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
509
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
510
|
+
];
|
|
511
|
+
}).s("AmazonCloudSearch2013", "Suggest", {}).n("CloudSearchDomainClient", "SuggestCommand").f(void 0, void 0).ser(se_SuggestCommand).de(de_SuggestCommand).build() {
|
|
512
|
+
};
|
|
513
|
+
__name(_SuggestCommand, "SuggestCommand");
|
|
514
|
+
var SuggestCommand = _SuggestCommand;
|
|
515
|
+
|
|
516
|
+
// src/commands/UploadDocumentsCommand.ts
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
var _UploadDocumentsCommand = class _UploadDocumentsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
522
|
+
...commonParams
|
|
523
|
+
}).m(function(Command, cs, config, o) {
|
|
524
|
+
return [
|
|
525
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
526
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
527
|
+
];
|
|
528
|
+
}).s("AmazonCloudSearch2013", "UploadDocuments", {}).n("CloudSearchDomainClient", "UploadDocumentsCommand").f(UploadDocumentsRequestFilterSensitiveLog, void 0).ser(se_UploadDocumentsCommand).de(de_UploadDocumentsCommand).build() {
|
|
529
|
+
};
|
|
530
|
+
__name(_UploadDocumentsCommand, "UploadDocumentsCommand");
|
|
531
|
+
var UploadDocumentsCommand = _UploadDocumentsCommand;
|
|
532
|
+
|
|
533
|
+
// src/CloudSearchDomain.ts
|
|
534
|
+
var commands = {
|
|
535
|
+
SearchCommand,
|
|
536
|
+
SuggestCommand,
|
|
537
|
+
UploadDocumentsCommand
|
|
538
|
+
};
|
|
539
|
+
var _CloudSearchDomain = class _CloudSearchDomain extends CloudSearchDomainClient {
|
|
540
|
+
};
|
|
541
|
+
__name(_CloudSearchDomain, "CloudSearchDomain");
|
|
542
|
+
var CloudSearchDomain = _CloudSearchDomain;
|
|
543
|
+
(0, import_smithy_client.createAggregatedClient)(commands, CloudSearchDomain);
|
|
544
|
+
|
|
545
|
+
// src/index.ts
|
|
546
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
547
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
548
|
+
0 && (module.exports = {
|
|
549
|
+
CloudSearchDomain,
|
|
550
|
+
CloudSearchDomainClient,
|
|
551
|
+
CloudSearchDomainServiceException,
|
|
552
|
+
ContentType,
|
|
553
|
+
DocumentServiceException,
|
|
554
|
+
QueryParser,
|
|
555
|
+
SearchCommand,
|
|
556
|
+
SearchException,
|
|
557
|
+
SuggestCommand,
|
|
558
|
+
UploadDocumentsCommand,
|
|
559
|
+
UploadDocumentsRequestFilterSensitiveLog,
|
|
560
|
+
__Client
|
|
561
|
+
});
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CloudSearchDomainServiceException = exports.__ServiceException = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
-
class CloudSearchDomainServiceException extends smithy_client_1.ServiceException {
|
|
7
|
-
constructor(options) {
|
|
8
|
-
super(options);
|
|
9
|
-
Object.setPrototypeOf(this, CloudSearchDomainServiceException.prototype);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.CloudSearchDomainServiceException = CloudSearchDomainServiceException;
|
|
1
|
+
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
CHANGED
|
@@ -1,45 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UploadDocumentsRequestFilterSensitiveLog = exports.ContentType = exports.DocumentServiceException = exports.QueryParser = exports.SearchException = void 0;
|
|
4
|
-
const CloudSearchDomainServiceException_1 = require("./CloudSearchDomainServiceException");
|
|
5
|
-
class SearchException extends CloudSearchDomainServiceException_1.CloudSearchDomainServiceException {
|
|
6
|
-
constructor(opts) {
|
|
7
|
-
super({
|
|
8
|
-
name: "SearchException",
|
|
9
|
-
$fault: "client",
|
|
10
|
-
...opts,
|
|
11
|
-
});
|
|
12
|
-
this.name = "SearchException";
|
|
13
|
-
this.$fault = "client";
|
|
14
|
-
Object.setPrototypeOf(this, SearchException.prototype);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.SearchException = SearchException;
|
|
18
|
-
exports.QueryParser = {
|
|
19
|
-
dismax: "dismax",
|
|
20
|
-
lucene: "lucene",
|
|
21
|
-
simple: "simple",
|
|
22
|
-
structured: "structured",
|
|
23
|
-
};
|
|
24
|
-
class DocumentServiceException extends CloudSearchDomainServiceException_1.CloudSearchDomainServiceException {
|
|
25
|
-
constructor(opts) {
|
|
26
|
-
super({
|
|
27
|
-
name: "DocumentServiceException",
|
|
28
|
-
$fault: "client",
|
|
29
|
-
...opts,
|
|
30
|
-
});
|
|
31
|
-
this.name = "DocumentServiceException";
|
|
32
|
-
this.$fault = "client";
|
|
33
|
-
Object.setPrototypeOf(this, DocumentServiceException.prototype);
|
|
34
|
-
this.status = opts.status;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.DocumentServiceException = DocumentServiceException;
|
|
38
|
-
exports.ContentType = {
|
|
39
|
-
application_json: "application/json",
|
|
40
|
-
application_xml: "application/xml",
|
|
41
|
-
};
|
|
42
|
-
const UploadDocumentsRequestFilterSensitiveLog = (obj) => ({
|
|
43
|
-
...obj,
|
|
44
|
-
});
|
|
45
|
-
exports.UploadDocumentsRequestFilterSensitiveLog = UploadDocumentsRequestFilterSensitiveLog;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,300 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UploadDocumentsCommand = exports.de_SuggestCommand = exports.de_SearchCommand = exports.se_UploadDocumentsCommand = exports.se_SuggestCommand = exports.se_SearchCommand = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
const CloudSearchDomainServiceException_1 = require("../models/CloudSearchDomainServiceException");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const se_SearchCommand = async (input, context) => {
|
|
9
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
|
-
const headers = {};
|
|
11
|
-
b.bp("/2013-01-01/search");
|
|
12
|
-
const query = (0, smithy_client_1.map)({
|
|
13
|
-
[_f]: [, "sdk"],
|
|
14
|
-
[_p]: [, "true"],
|
|
15
|
-
[_c]: [, input[_c]],
|
|
16
|
-
[_e]: [, input[_e]],
|
|
17
|
-
[_fa]: [, input[_fa]],
|
|
18
|
-
[_fq]: [, input[_fQ]],
|
|
19
|
-
[_h]: [, input[_h]],
|
|
20
|
-
[_pa]: [() => input.partial !== void 0, () => input[_pa].toString()],
|
|
21
|
-
[_q_]: [, (0, smithy_client_1.expectNonNull)(input[_q], `query`)],
|
|
22
|
-
[_qo]: [, input[_qO]],
|
|
23
|
-
[_qp]: [, input[_qP]],
|
|
24
|
-
[_r]: [, input[_r]],
|
|
25
|
-
[_s]: [() => input.size !== void 0, () => input[_s].toString()],
|
|
26
|
-
[_so]: [, input[_so]],
|
|
27
|
-
[_st]: [() => input.start !== void 0, () => input[_st].toString()],
|
|
28
|
-
[_sta]: [, input[_sta]],
|
|
29
|
-
});
|
|
30
|
-
let body;
|
|
31
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
32
|
-
return b.build();
|
|
33
|
-
};
|
|
34
|
-
exports.se_SearchCommand = se_SearchCommand;
|
|
35
|
-
const se_SuggestCommand = async (input, context) => {
|
|
36
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
37
|
-
const headers = {};
|
|
38
|
-
b.bp("/2013-01-01/suggest");
|
|
39
|
-
const query = (0, smithy_client_1.map)({
|
|
40
|
-
[_f]: [, "sdk"],
|
|
41
|
-
[_p]: [, "true"],
|
|
42
|
-
[_q_]: [, (0, smithy_client_1.expectNonNull)(input[_q], `query`)],
|
|
43
|
-
[_su]: [, (0, smithy_client_1.expectNonNull)(input[_su], `suggester`)],
|
|
44
|
-
[_s]: [() => input.size !== void 0, () => input[_s].toString()],
|
|
45
|
-
});
|
|
46
|
-
let body;
|
|
47
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
48
|
-
return b.build();
|
|
49
|
-
};
|
|
50
|
-
exports.se_SuggestCommand = se_SuggestCommand;
|
|
51
|
-
const se_UploadDocumentsCommand = async (input, context) => {
|
|
52
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
53
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
54
|
-
[_ct]: input[_cT] || "application/octet-stream",
|
|
55
|
-
});
|
|
56
|
-
b.bp("/2013-01-01/documents/batch");
|
|
57
|
-
const query = (0, smithy_client_1.map)({
|
|
58
|
-
[_f]: [, "sdk"],
|
|
59
|
-
});
|
|
60
|
-
let body;
|
|
61
|
-
if (input.documents !== undefined) {
|
|
62
|
-
body = input.documents;
|
|
63
|
-
}
|
|
64
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
65
|
-
return b.build();
|
|
66
|
-
};
|
|
67
|
-
exports.se_UploadDocumentsCommand = se_UploadDocumentsCommand;
|
|
68
|
-
const de_SearchCommand = async (output, context) => {
|
|
69
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
70
|
-
return de_SearchCommandError(output, context);
|
|
71
|
-
}
|
|
72
|
-
const contents = (0, smithy_client_1.map)({
|
|
73
|
-
$metadata: deserializeMetadata(output),
|
|
74
|
-
});
|
|
75
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
76
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
77
|
-
facets: smithy_client_1._json,
|
|
78
|
-
hits: smithy_client_1._json,
|
|
79
|
-
stats: (_) => de_Stats(_, context),
|
|
80
|
-
status: smithy_client_1._json,
|
|
81
|
-
});
|
|
82
|
-
Object.assign(contents, doc);
|
|
83
|
-
return contents;
|
|
84
|
-
};
|
|
85
|
-
exports.de_SearchCommand = de_SearchCommand;
|
|
86
|
-
const de_SearchCommandError = async (output, context) => {
|
|
87
|
-
const parsedOutput = {
|
|
88
|
-
...output,
|
|
89
|
-
body: await parseErrorBody(output.body, context),
|
|
90
|
-
};
|
|
91
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
92
|
-
switch (errorCode) {
|
|
93
|
-
case "SearchException":
|
|
94
|
-
case "com.amazonaws.cloudsearchdomain#SearchException":
|
|
95
|
-
throw await de_SearchExceptionRes(parsedOutput, context);
|
|
96
|
-
default:
|
|
97
|
-
const parsedBody = parsedOutput.body;
|
|
98
|
-
return throwDefaultError({
|
|
99
|
-
output,
|
|
100
|
-
parsedBody,
|
|
101
|
-
errorCode,
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
const de_SuggestCommand = async (output, context) => {
|
|
106
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
107
|
-
return de_SuggestCommandError(output, context);
|
|
108
|
-
}
|
|
109
|
-
const contents = (0, smithy_client_1.map)({
|
|
110
|
-
$metadata: deserializeMetadata(output),
|
|
111
|
-
});
|
|
112
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
113
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
114
|
-
status: smithy_client_1._json,
|
|
115
|
-
suggest: smithy_client_1._json,
|
|
116
|
-
});
|
|
117
|
-
Object.assign(contents, doc);
|
|
118
|
-
return contents;
|
|
119
|
-
};
|
|
120
|
-
exports.de_SuggestCommand = de_SuggestCommand;
|
|
121
|
-
const de_SuggestCommandError = async (output, context) => {
|
|
122
|
-
const parsedOutput = {
|
|
123
|
-
...output,
|
|
124
|
-
body: await parseErrorBody(output.body, context),
|
|
125
|
-
};
|
|
126
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
127
|
-
switch (errorCode) {
|
|
128
|
-
case "SearchException":
|
|
129
|
-
case "com.amazonaws.cloudsearchdomain#SearchException":
|
|
130
|
-
throw await de_SearchExceptionRes(parsedOutput, context);
|
|
131
|
-
default:
|
|
132
|
-
const parsedBody = parsedOutput.body;
|
|
133
|
-
return throwDefaultError({
|
|
134
|
-
output,
|
|
135
|
-
parsedBody,
|
|
136
|
-
errorCode,
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
const de_UploadDocumentsCommand = async (output, context) => {
|
|
141
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
142
|
-
return de_UploadDocumentsCommandError(output, context);
|
|
143
|
-
}
|
|
144
|
-
const contents = (0, smithy_client_1.map)({
|
|
145
|
-
$metadata: deserializeMetadata(output),
|
|
146
|
-
});
|
|
147
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
148
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
149
|
-
adds: smithy_client_1.expectLong,
|
|
150
|
-
deletes: smithy_client_1.expectLong,
|
|
151
|
-
status: smithy_client_1.expectString,
|
|
152
|
-
warnings: smithy_client_1._json,
|
|
153
|
-
});
|
|
154
|
-
Object.assign(contents, doc);
|
|
155
|
-
return contents;
|
|
156
|
-
};
|
|
157
|
-
exports.de_UploadDocumentsCommand = de_UploadDocumentsCommand;
|
|
158
|
-
const de_UploadDocumentsCommandError = async (output, context) => {
|
|
159
|
-
const parsedOutput = {
|
|
160
|
-
...output,
|
|
161
|
-
body: await parseErrorBody(output.body, context),
|
|
162
|
-
};
|
|
163
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
164
|
-
switch (errorCode) {
|
|
165
|
-
case "DocumentServiceException":
|
|
166
|
-
case "com.amazonaws.cloudsearchdomain#DocumentServiceException":
|
|
167
|
-
throw await de_DocumentServiceExceptionRes(parsedOutput, context);
|
|
168
|
-
default:
|
|
169
|
-
const parsedBody = parsedOutput.body;
|
|
170
|
-
return throwDefaultError({
|
|
171
|
-
output,
|
|
172
|
-
parsedBody,
|
|
173
|
-
errorCode,
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(CloudSearchDomainServiceException_1.CloudSearchDomainServiceException);
|
|
178
|
-
const de_DocumentServiceExceptionRes = async (parsedOutput, context) => {
|
|
179
|
-
const contents = (0, smithy_client_1.map)({});
|
|
180
|
-
const data = parsedOutput.body;
|
|
181
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
182
|
-
message: smithy_client_1.expectString,
|
|
183
|
-
status: smithy_client_1.expectString,
|
|
184
|
-
});
|
|
185
|
-
Object.assign(contents, doc);
|
|
186
|
-
const exception = new models_0_1.DocumentServiceException({
|
|
187
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
188
|
-
...contents,
|
|
189
|
-
});
|
|
190
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
191
|
-
};
|
|
192
|
-
const de_SearchExceptionRes = async (parsedOutput, context) => {
|
|
193
|
-
const contents = (0, smithy_client_1.map)({});
|
|
194
|
-
const data = parsedOutput.body;
|
|
195
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
196
|
-
message: smithy_client_1.expectString,
|
|
197
|
-
});
|
|
198
|
-
Object.assign(contents, doc);
|
|
199
|
-
const exception = new models_0_1.SearchException({
|
|
200
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
201
|
-
...contents,
|
|
202
|
-
});
|
|
203
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
204
|
-
};
|
|
205
|
-
const de_FieldStats = (output, context) => {
|
|
206
|
-
return (0, smithy_client_1.take)(output, {
|
|
207
|
-
count: smithy_client_1.expectLong,
|
|
208
|
-
max: smithy_client_1.expectString,
|
|
209
|
-
mean: smithy_client_1.expectString,
|
|
210
|
-
min: smithy_client_1.expectString,
|
|
211
|
-
missing: smithy_client_1.expectLong,
|
|
212
|
-
stddev: smithy_client_1.limitedParseDouble,
|
|
213
|
-
sum: smithy_client_1.limitedParseDouble,
|
|
214
|
-
sumOfSquares: smithy_client_1.limitedParseDouble,
|
|
215
|
-
});
|
|
216
|
-
};
|
|
217
|
-
const de_Stats = (output, context) => {
|
|
218
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
219
|
-
if (value === null) {
|
|
220
|
-
return acc;
|
|
221
|
-
}
|
|
222
|
-
acc[key] = de_FieldStats(value, context);
|
|
223
|
-
return acc;
|
|
224
|
-
}, {});
|
|
225
|
-
};
|
|
226
|
-
const deserializeMetadata = (output) => ({
|
|
227
|
-
httpStatusCode: output.statusCode,
|
|
228
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
229
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
230
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
231
|
-
});
|
|
232
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
233
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
234
|
-
value !== null &&
|
|
235
|
-
value !== "" &&
|
|
236
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
237
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
238
|
-
const _c = "cursor";
|
|
239
|
-
const _cT = "contentType";
|
|
240
|
-
const _ct = "content-type";
|
|
241
|
-
const _e = "expr";
|
|
242
|
-
const _f = "format";
|
|
243
|
-
const _fQ = "filterQuery";
|
|
244
|
-
const _fa = "facet";
|
|
245
|
-
const _fq = "fq";
|
|
246
|
-
const _h = "highlight";
|
|
247
|
-
const _p = "pretty";
|
|
248
|
-
const _pa = "partial";
|
|
249
|
-
const _q = "query";
|
|
250
|
-
const _qO = "queryOptions";
|
|
251
|
-
const _qP = "queryParser";
|
|
252
|
-
const _q_ = "q";
|
|
253
|
-
const _qo = "q.options";
|
|
254
|
-
const _qp = "q.parser";
|
|
255
|
-
const _r = "return";
|
|
256
|
-
const _s = "size";
|
|
257
|
-
const _so = "sort";
|
|
258
|
-
const _st = "start";
|
|
259
|
-
const _sta = "stats";
|
|
260
|
-
const _su = "suggester";
|
|
261
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
262
|
-
if (encoded.length) {
|
|
263
|
-
return JSON.parse(encoded);
|
|
264
|
-
}
|
|
265
|
-
return {};
|
|
266
|
-
});
|
|
267
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
268
|
-
const value = await parseBody(errorBody, context);
|
|
269
|
-
value.message = value.message ?? value.Message;
|
|
270
|
-
return value;
|
|
271
|
-
};
|
|
272
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
273
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
274
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
275
|
-
let cleanValue = rawValue;
|
|
276
|
-
if (typeof cleanValue === "number") {
|
|
277
|
-
cleanValue = cleanValue.toString();
|
|
278
|
-
}
|
|
279
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
280
|
-
cleanValue = cleanValue.split(",")[0];
|
|
281
|
-
}
|
|
282
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
283
|
-
cleanValue = cleanValue.split(":")[0];
|
|
284
|
-
}
|
|
285
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
286
|
-
cleanValue = cleanValue.split("#")[1];
|
|
287
|
-
}
|
|
288
|
-
return cleanValue;
|
|
289
|
-
};
|
|
290
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
291
|
-
if (headerKey !== undefined) {
|
|
292
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
293
|
-
}
|
|
294
|
-
if (data.code !== undefined) {
|
|
295
|
-
return sanitizeErrorCode(data.code);
|
|
296
|
-
}
|
|
297
|
-
if (data["__type"] !== undefined) {
|
|
298
|
-
return sanitizeErrorCode(data["__type"]);
|
|
299
|
-
}
|
|
300
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const asPartial = (t) => t;
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = {
|
|
10
|
-
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
11
|
-
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
12
|
-
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
13
|
-
};
|
|
14
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
15
|
-
return {
|
|
16
|
-
...runtimeConfig,
|
|
17
|
-
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
18
|
-
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
19
|
-
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
1
|
+
module.exports = require("./index.js");
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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.495.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
-
"build:cjs": "
|
|
7
|
+
"build:cjs": "node ../../scripts/compilation/inline client-cloudsearch-domain",
|
|
8
8
|
"build:es": "tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
@@ -20,47 +20,47 @@
|
|
|
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.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^2.0
|
|
37
|
-
"@smithy/core": "^1.
|
|
38
|
-
"@smithy/fetch-http-handler": "^2.
|
|
39
|
-
"@smithy/hash-node": "^2.0
|
|
40
|
-
"@smithy/invalid-dependency": "^2.0
|
|
41
|
-
"@smithy/middleware-content-length": "^2.0
|
|
42
|
-
"@smithy/middleware-endpoint": "^2.
|
|
43
|
-
"@smithy/middleware-retry": "^2.0
|
|
44
|
-
"@smithy/middleware-serde": "^2.0
|
|
45
|
-
"@smithy/middleware-stack": "^2.0
|
|
46
|
-
"@smithy/node-config-provider": "^2.
|
|
47
|
-
"@smithy/node-http-handler": "^2.
|
|
48
|
-
"@smithy/protocol-http": "^3.0
|
|
49
|
-
"@smithy/smithy-client": "^2.
|
|
50
|
-
"@smithy/types": "^2.
|
|
51
|
-
"@smithy/url-parser": "^2.0
|
|
52
|
-
"@smithy/util-base64": "^2.0
|
|
53
|
-
"@smithy/util-body-length-browser": "^2.0
|
|
54
|
-
"@smithy/util-body-length-node": "^2.
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^2.0
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^2.0
|
|
57
|
-
"@smithy/util-endpoints": "^1.0
|
|
58
|
-
"@smithy/util-retry": "^2.0
|
|
59
|
-
"@smithy/util-utf8": "^2.0
|
|
23
|
+
"@aws-sdk/client-sts": "3.495.0",
|
|
24
|
+
"@aws-sdk/core": "3.495.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.495.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.495.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.495.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.495.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.495.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.495.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.495.0",
|
|
32
|
+
"@aws-sdk/types": "3.495.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.495.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.495.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.495.0",
|
|
36
|
+
"@smithy/config-resolver": "^2.1.0",
|
|
37
|
+
"@smithy/core": "^1.3.0",
|
|
38
|
+
"@smithy/fetch-http-handler": "^2.4.0",
|
|
39
|
+
"@smithy/hash-node": "^2.1.0",
|
|
40
|
+
"@smithy/invalid-dependency": "^2.1.0",
|
|
41
|
+
"@smithy/middleware-content-length": "^2.1.0",
|
|
42
|
+
"@smithy/middleware-endpoint": "^2.4.0",
|
|
43
|
+
"@smithy/middleware-retry": "^2.1.0",
|
|
44
|
+
"@smithy/middleware-serde": "^2.1.0",
|
|
45
|
+
"@smithy/middleware-stack": "^2.1.0",
|
|
46
|
+
"@smithy/node-config-provider": "^2.2.0",
|
|
47
|
+
"@smithy/node-http-handler": "^2.3.0",
|
|
48
|
+
"@smithy/protocol-http": "^3.1.0",
|
|
49
|
+
"@smithy/smithy-client": "^2.3.0",
|
|
50
|
+
"@smithy/types": "^2.9.0",
|
|
51
|
+
"@smithy/url-parser": "^2.1.0",
|
|
52
|
+
"@smithy/util-base64": "^2.1.0",
|
|
53
|
+
"@smithy/util-body-length-browser": "^2.1.0",
|
|
54
|
+
"@smithy/util-body-length-node": "^2.2.0",
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^2.1.0",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^2.1.0",
|
|
57
|
+
"@smithy/util-endpoints": "^1.1.0",
|
|
58
|
+
"@smithy/util-retry": "^2.1.0",
|
|
59
|
+
"@smithy/util-utf8": "^2.1.0",
|
|
60
60
|
"tslib": "^2.5.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@smithy/service-client-documentation-generator": "^2.
|
|
63
|
+
"@smithy/service-client-documentation-generator": "^2.1.0",
|
|
64
64
|
"@tsconfig/node14": "1.0.3",
|
|
65
65
|
"@types/node": "^14.14.31",
|
|
66
66
|
"concurrently": "7.0.0",
|