@aws-sdk/client-cloudsearch-domain 3.35.0 → 3.38.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 +47 -0
- package/dist-cjs/CloudSearchDomain.js +0 -7
- package/dist-cjs/CloudSearchDomainClient.js +0 -12
- package/dist-cjs/commands/SearchCommand.js +0 -33
- package/dist-cjs/commands/SuggestCommand.js +0 -28
- package/dist-cjs/commands/UploadDocumentsCommand.js +0 -28
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +3 -6
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -55
- package/dist-cjs/protocols/Aws_restJson1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/CloudSearchDomain.js +0 -1
- package/dist-es/CloudSearchDomainClient.js +0 -1
- package/dist-es/commands/SearchCommand.js +0 -1
- package/dist-es/commands/SuggestCommand.js +0 -1
- package/dist-es/commands/UploadDocumentsCommand.js +0 -1
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +3 -6
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/index.d.ts +3 -5
- package/dist-types/ts3.4/CloudSearchDomain.d.ts +4 -29
- package/dist-types/ts3.4/CloudSearchDomainClient.d.ts +24 -92
- package/dist-types/ts3.4/commands/SearchCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/SuggestCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/UploadDocumentsCommand.d.ts +5 -30
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/index.d.ts +3 -5
- package/dist-types/ts3.4/models/models_0.d.ts +99 -513
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/CloudSearchDomain.js.map +0 -1
- package/dist-cjs/CloudSearchDomainClient.js.map +0 -1
- package/dist-cjs/commands/SearchCommand.js.map +0 -1
- package/dist-cjs/commands/SuggestCommand.js.map +0 -1
- package/dist-cjs/commands/UploadDocumentsCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/CloudSearchDomain.js.map +0 -1
- package/dist-es/CloudSearchDomainClient.js.map +0 -1
- package/dist-es/commands/SearchCommand.js.map +0 -1
- package/dist-es/commands/SuggestCommand.js.map +0 -1
- package/dist-es/commands/UploadDocumentsCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/protocols/Aws_restJson1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/CloudSearchDomain.ts +0 -116
- package/src/CloudSearchDomainClient.ts +0 -242
- package/src/commands/SearchCommand.ts +0 -104
- package/src/commands/SuggestCommand.ts +0 -102
- package/src/commands/UploadDocumentsCommand.ts +0 -111
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -6
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -790
- package/src/protocols/Aws_restJson1.ts +0 -646
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,53 @@
|
|
|
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.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
|
|
12
|
+
* **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* **clients:** update clients as of 10/15/2021 ([#2902](https://github.com/aws/aws-sdk-js-v3/issues/2902)) ([2730b54](https://github.com/aws/aws-sdk-js-v3/commit/2730b5424377944a5a2ad5e1ad7d3ca4135dae1c))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Features
|
|
44
|
+
|
|
45
|
+
* publish files in dist-* only ([#2873](https://github.com/aws/aws-sdk-js-v3/issues/2873)) ([53b4243](https://github.com/aws/aws-sdk-js-v3/commit/53b4243b066f25ff2412d5f0dea1036054b2df32))
|
|
46
|
+
* **codegen:** ts-ignore packageInfo imports in codegen ([#2875](https://github.com/aws/aws-sdk-js-v3/issues/2875)) ([99d9267](https://github.com/aws/aws-sdk-js-v3/commit/99d926762193e83a354edec6e9de2b0543449704))
|
|
47
|
+
* **tsconfig:** remove sourceMap ([#2867](https://github.com/aws/aws-sdk-js-v3/issues/2867)) ([d25f526](https://github.com/aws/aws-sdk-js-v3/commit/d25f526627a02a2ca28675fecce66c76b6c97966))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
6
53
|
# [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
|
|
7
54
|
|
|
8
55
|
|
|
@@ -5,12 +5,6 @@ const CloudSearchDomainClient_1 = require("./CloudSearchDomainClient");
|
|
|
5
5
|
const SearchCommand_1 = require("./commands/SearchCommand");
|
|
6
6
|
const SuggestCommand_1 = require("./commands/SuggestCommand");
|
|
7
7
|
const UploadDocumentsCommand_1 = require("./commands/UploadDocumentsCommand");
|
|
8
|
-
/**
|
|
9
|
-
* <p>You use the AmazonCloudSearch2013 API to upload documents to a search domain and search those documents. </p>
|
|
10
|
-
*
|
|
11
|
-
* <p>The endpoints for submitting <code>UploadDocuments</code>, <code>Search</code>, and <code>Suggest</code> requests are domain-specific. To get the endpoints for your domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> action. The domain endpoints are also displayed on the domain dashboard in the Amazon CloudSearch console. You submit suggest requests to the search endpoint. </p>
|
|
12
|
-
* <p>For more information, see the <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide">Amazon CloudSearch Developer Guide</a>.</p>
|
|
13
|
-
*/
|
|
14
8
|
class CloudSearchDomain extends CloudSearchDomainClient_1.CloudSearchDomainClient {
|
|
15
9
|
search(args, optionsOrCb, cb) {
|
|
16
10
|
const command = new SearchCommand_1.SearchCommand(args);
|
|
@@ -56,4 +50,3 @@ class CloudSearchDomain extends CloudSearchDomainClient_1.CloudSearchDomainClien
|
|
|
56
50
|
}
|
|
57
51
|
}
|
|
58
52
|
exports.CloudSearchDomain = CloudSearchDomain;
|
|
59
|
-
//# sourceMappingURL=CloudSearchDomain.js.map
|
|
@@ -10,12 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
|
10
10
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
11
11
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
12
12
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
13
|
-
/**
|
|
14
|
-
* <p>You use the AmazonCloudSearch2013 API to upload documents to a search domain and search those documents. </p>
|
|
15
|
-
*
|
|
16
|
-
* <p>The endpoints for submitting <code>UploadDocuments</code>, <code>Search</code>, and <code>Suggest</code> requests are domain-specific. To get the endpoints for your domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> action. The domain endpoints are also displayed on the domain dashboard in the Amazon CloudSearch console. You submit suggest requests to the search endpoint. </p>
|
|
17
|
-
* <p>For more information, see the <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide">Amazon CloudSearch Developer Guide</a>.</p>
|
|
18
|
-
*/
|
|
19
13
|
class CloudSearchDomainClient extends smithy_client_1.Client {
|
|
20
14
|
constructor(configuration) {
|
|
21
15
|
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
@@ -34,14 +28,8 @@ class CloudSearchDomainClient extends smithy_client_1.Client {
|
|
|
34
28
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
|
|
35
29
|
this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
|
|
36
30
|
}
|
|
37
|
-
/**
|
|
38
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
39
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
40
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
41
|
-
*/
|
|
42
31
|
destroy() {
|
|
43
32
|
super.destroy();
|
|
44
33
|
}
|
|
45
34
|
}
|
|
46
35
|
exports.CloudSearchDomainClient = CloudSearchDomainClient;
|
|
47
|
-
//# sourceMappingURL=CloudSearchDomainClient.js.map
|
|
@@ -5,43 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Retrieves a list of documents that match the specified search criteria. How you specify the search criteria depends on which query parser you use. Amazon CloudSearch supports four query parsers:</p>
|
|
10
|
-
* <ul>
|
|
11
|
-
* <li><code>simple</code>: search all <code>text</code> and <code>text-array</code> fields for the specified string. Search for phrases, individual terms, and prefixes. </li>
|
|
12
|
-
* <li><code>structured</code>: search specific fields, construct compound queries using Boolean operators, and use advanced features such as term boosting and proximity searching.</li>
|
|
13
|
-
* <li><code>lucene</code>: specify search criteria using the Apache Lucene query parser syntax.</li>
|
|
14
|
-
* <li><code>dismax</code>: specify search criteria using the simplified subset of the Apache Lucene query parser syntax defined by the DisMax query parser.</li>
|
|
15
|
-
* </ul>
|
|
16
|
-
* <p>For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching.html">Searching Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
|
|
17
|
-
* <p>The endpoint for submitting <code>Search</code> requests is domain-specific. You submit search requests to a domain's search endpoint. To get the search endpoint for your domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> action. A domain's endpoints are also displayed on the domain dashboard in the Amazon CloudSearch console. </p>
|
|
18
|
-
* @example
|
|
19
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
20
|
-
* ```javascript
|
|
21
|
-
* import { CloudSearchDomainClient, SearchCommand } from "@aws-sdk/client-cloudsearch-domain"; // ES Modules import
|
|
22
|
-
* // const { CloudSearchDomainClient, SearchCommand } = require("@aws-sdk/client-cloudsearch-domain"); // CommonJS import
|
|
23
|
-
* const client = new CloudSearchDomainClient(config);
|
|
24
|
-
* const command = new SearchCommand(input);
|
|
25
|
-
* const response = await client.send(command);
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @see {@link SearchCommandInput} for command's `input` shape.
|
|
29
|
-
* @see {@link SearchCommandOutput} for command's `response` shape.
|
|
30
|
-
* @see {@link CloudSearchDomainClientResolvedConfig | config} for command's `input` shape.
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
8
|
class SearchCommand extends smithy_client_1.Command {
|
|
34
|
-
// Start section: command_properties
|
|
35
|
-
// End section: command_properties
|
|
36
9
|
constructor(input) {
|
|
37
|
-
// Start section: command_constructor
|
|
38
10
|
super();
|
|
39
11
|
this.input = input;
|
|
40
|
-
// End section: command_constructor
|
|
41
12
|
}
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
46
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
47
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -66,4 +34,3 @@ class SearchCommand extends smithy_client_1.Command {
|
|
|
66
34
|
}
|
|
67
35
|
}
|
|
68
36
|
exports.SearchCommand = SearchCommand;
|
|
69
|
-
//# sourceMappingURL=SearchCommand.js.map
|
|
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Retrieves autocomplete suggestions for a partial query string. You can use suggestions enable you to display likely matches before users finish typing. In Amazon CloudSearch, suggestions are based on the contents of a particular text field. When you request suggestions, Amazon CloudSearch finds all of the documents whose values in the suggester field start with the specified query string. The beginning of the field must match the query string to be considered a match. </p>
|
|
10
|
-
* <p>For more information about configuring suggesters and retrieving suggestions, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html">Getting Suggestions</a> in the <i>Amazon CloudSearch Developer Guide</i>. </p>
|
|
11
|
-
*
|
|
12
|
-
* <p>The endpoint for submitting <code>Suggest</code> requests is domain-specific. You submit suggest requests to a domain's search endpoint. To get the search endpoint for your domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> action. A domain's endpoints are also displayed on the domain dashboard in the Amazon CloudSearch console. </p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { CloudSearchDomainClient, SuggestCommand } from "@aws-sdk/client-cloudsearch-domain"; // ES Modules import
|
|
17
|
-
* // const { CloudSearchDomainClient, SuggestCommand } = require("@aws-sdk/client-cloudsearch-domain"); // CommonJS import
|
|
18
|
-
* const client = new CloudSearchDomainClient(config);
|
|
19
|
-
* const command = new SuggestCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link SuggestCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link SuggestCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link CloudSearchDomainClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
8
|
class SuggestCommand extends smithy_client_1.Command {
|
|
29
|
-
// Start section: command_properties
|
|
30
|
-
// End section: command_properties
|
|
31
9
|
constructor(input) {
|
|
32
|
-
// Start section: command_constructor
|
|
33
10
|
super();
|
|
34
11
|
this.input = input;
|
|
35
|
-
// End section: command_constructor
|
|
36
12
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
41
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
42
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -61,4 +34,3 @@ class SuggestCommand extends smithy_client_1.Command {
|
|
|
61
34
|
}
|
|
62
35
|
}
|
|
63
36
|
exports.SuggestCommand = SuggestCommand;
|
|
64
|
-
//# sourceMappingURL=SuggestCommand.js.map
|
|
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Posts a batch of documents to a search domain for indexing. A document batch is a collection of add and delete operations that represent the documents you want to add, update, or delete from your domain. Batches can be described in either JSON or XML. Each item that you want Amazon CloudSearch to return as a search result (such as a product) is represented as a document. Every document has a unique ID and one or more fields that contain the data that you want to search and return in results. Individual documents cannot contain more than 1 MB of data. The entire batch cannot exceed 5 MB. To get the best possible upload performance, group add and delete operations in batches that are close the 5 MB limit. Submitting a large volume of single-document batches can overload a domain's document service. </p>
|
|
10
|
-
* <p>The endpoint for submitting <code>UploadDocuments</code> requests is domain-specific. To get the document endpoint for your domain, use the Amazon CloudSearch configuration service <code>DescribeDomains</code> action. A domain's endpoints are also displayed on the domain dashboard in the Amazon CloudSearch console. </p>
|
|
11
|
-
* <p>For more information about formatting your data for Amazon CloudSearch, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/preparing-data.html">Preparing Your Data</a> in the <i>Amazon CloudSearch Developer Guide</i>.
|
|
12
|
-
* For more information about uploading data for indexing, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/uploading-data.html">Uploading Data</a> in the <i>Amazon CloudSearch Developer Guide</i>. </p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { CloudSearchDomainClient, UploadDocumentsCommand } from "@aws-sdk/client-cloudsearch-domain"; // ES Modules import
|
|
17
|
-
* // const { CloudSearchDomainClient, UploadDocumentsCommand } = require("@aws-sdk/client-cloudsearch-domain"); // CommonJS import
|
|
18
|
-
* const client = new CloudSearchDomainClient(config);
|
|
19
|
-
* const command = new UploadDocumentsCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link UploadDocumentsCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link UploadDocumentsCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link CloudSearchDomainClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
8
|
class UploadDocumentsCommand extends smithy_client_1.Command {
|
|
29
|
-
// Start section: command_properties
|
|
30
|
-
// End section: command_properties
|
|
31
9
|
constructor(input) {
|
|
32
|
-
// Start section: command_constructor
|
|
33
10
|
super();
|
|
34
11
|
this.input = input;
|
|
35
|
-
// End section: command_constructor
|
|
36
12
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
41
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
42
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -61,4 +34,3 @@ class UploadDocumentsCommand extends smithy_client_1.Command {
|
|
|
61
34
|
}
|
|
62
35
|
}
|
|
63
36
|
exports.UploadDocumentsCommand = UploadDocumentsCommand;
|
|
64
|
-
//# sourceMappingURL=UploadDocumentsCommand.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
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);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -35,7 +35,7 @@ const partitionHash = {
|
|
|
35
35
|
hostname: "cloudsearchdomain.{region}.amazonaws.com.cn",
|
|
36
36
|
},
|
|
37
37
|
"aws-iso": {
|
|
38
|
-
regions: ["us-iso-east-1"],
|
|
38
|
+
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
39
39
|
hostname: "cloudsearchdomain.{region}.c2s.ic.gov",
|
|
40
40
|
},
|
|
41
41
|
"aws-iso-b": {
|
|
@@ -54,4 +54,3 @@ const defaultRegionInfoProvider = async (region, options) => config_resolver_1.g
|
|
|
54
54
|
partitionHash,
|
|
55
55
|
});
|
|
56
56
|
exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
|
|
57
|
-
//# sourceMappingURL=endpoints.js.map
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./CloudSearchDomainClient"), exports);
|
|
5
4
|
tslib_1.__exportStar(require("./CloudSearchDomain"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./
|
|
7
|
-
tslib_1.__exportStar(require("./commands
|
|
8
|
-
tslib_1.__exportStar(require("./
|
|
9
|
-
tslib_1.__exportStar(require("./models/index"), exports);
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
5
|
+
tslib_1.__exportStar(require("./CloudSearchDomainClient"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./models"), exports);
|
package/dist-cjs/models/index.js
CHANGED
|
@@ -3,164 +3,109 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UploadDocumentsResponse = exports.DocumentServiceWarning = exports.UploadDocumentsRequest = exports.DocumentServiceException = exports.SuggestResponse = exports.SuggestModel = exports.SuggestionMatch = exports.SuggestStatus = exports.SuggestRequest = exports.SearchResponse = exports.SearchStatus = exports.FieldStats = exports.Hits = exports.Hit = exports.BucketInfo = exports.Bucket = exports.SearchRequest = exports.SearchException = void 0;
|
|
4
4
|
var SearchException;
|
|
5
5
|
(function (SearchException) {
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
6
|
SearchException.filterSensitiveLog = (obj) => ({
|
|
10
7
|
...obj,
|
|
11
8
|
});
|
|
12
9
|
})(SearchException = exports.SearchException || (exports.SearchException = {}));
|
|
13
10
|
var SearchRequest;
|
|
14
11
|
(function (SearchRequest) {
|
|
15
|
-
/**
|
|
16
|
-
* @internal
|
|
17
|
-
*/
|
|
18
12
|
SearchRequest.filterSensitiveLog = (obj) => ({
|
|
19
13
|
...obj,
|
|
20
14
|
});
|
|
21
15
|
})(SearchRequest = exports.SearchRequest || (exports.SearchRequest = {}));
|
|
22
16
|
var Bucket;
|
|
23
17
|
(function (Bucket) {
|
|
24
|
-
/**
|
|
25
|
-
* @internal
|
|
26
|
-
*/
|
|
27
18
|
Bucket.filterSensitiveLog = (obj) => ({
|
|
28
19
|
...obj,
|
|
29
20
|
});
|
|
30
21
|
})(Bucket = exports.Bucket || (exports.Bucket = {}));
|
|
31
22
|
var BucketInfo;
|
|
32
23
|
(function (BucketInfo) {
|
|
33
|
-
/**
|
|
34
|
-
* @internal
|
|
35
|
-
*/
|
|
36
24
|
BucketInfo.filterSensitiveLog = (obj) => ({
|
|
37
25
|
...obj,
|
|
38
26
|
});
|
|
39
27
|
})(BucketInfo = exports.BucketInfo || (exports.BucketInfo = {}));
|
|
40
28
|
var Hit;
|
|
41
29
|
(function (Hit) {
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
30
|
Hit.filterSensitiveLog = (obj) => ({
|
|
46
31
|
...obj,
|
|
47
32
|
});
|
|
48
33
|
})(Hit = exports.Hit || (exports.Hit = {}));
|
|
49
34
|
var Hits;
|
|
50
35
|
(function (Hits) {
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
54
36
|
Hits.filterSensitiveLog = (obj) => ({
|
|
55
37
|
...obj,
|
|
56
38
|
});
|
|
57
39
|
})(Hits = exports.Hits || (exports.Hits = {}));
|
|
58
40
|
var FieldStats;
|
|
59
41
|
(function (FieldStats) {
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
42
|
FieldStats.filterSensitiveLog = (obj) => ({
|
|
64
43
|
...obj,
|
|
65
44
|
});
|
|
66
45
|
})(FieldStats = exports.FieldStats || (exports.FieldStats = {}));
|
|
67
46
|
var SearchStatus;
|
|
68
47
|
(function (SearchStatus) {
|
|
69
|
-
/**
|
|
70
|
-
* @internal
|
|
71
|
-
*/
|
|
72
48
|
SearchStatus.filterSensitiveLog = (obj) => ({
|
|
73
49
|
...obj,
|
|
74
50
|
});
|
|
75
51
|
})(SearchStatus = exports.SearchStatus || (exports.SearchStatus = {}));
|
|
76
52
|
var SearchResponse;
|
|
77
53
|
(function (SearchResponse) {
|
|
78
|
-
/**
|
|
79
|
-
* @internal
|
|
80
|
-
*/
|
|
81
54
|
SearchResponse.filterSensitiveLog = (obj) => ({
|
|
82
55
|
...obj,
|
|
83
56
|
});
|
|
84
57
|
})(SearchResponse = exports.SearchResponse || (exports.SearchResponse = {}));
|
|
85
58
|
var SuggestRequest;
|
|
86
59
|
(function (SuggestRequest) {
|
|
87
|
-
/**
|
|
88
|
-
* @internal
|
|
89
|
-
*/
|
|
90
60
|
SuggestRequest.filterSensitiveLog = (obj) => ({
|
|
91
61
|
...obj,
|
|
92
62
|
});
|
|
93
63
|
})(SuggestRequest = exports.SuggestRequest || (exports.SuggestRequest = {}));
|
|
94
64
|
var SuggestStatus;
|
|
95
65
|
(function (SuggestStatus) {
|
|
96
|
-
/**
|
|
97
|
-
* @internal
|
|
98
|
-
*/
|
|
99
66
|
SuggestStatus.filterSensitiveLog = (obj) => ({
|
|
100
67
|
...obj,
|
|
101
68
|
});
|
|
102
69
|
})(SuggestStatus = exports.SuggestStatus || (exports.SuggestStatus = {}));
|
|
103
70
|
var SuggestionMatch;
|
|
104
71
|
(function (SuggestionMatch) {
|
|
105
|
-
/**
|
|
106
|
-
* @internal
|
|
107
|
-
*/
|
|
108
72
|
SuggestionMatch.filterSensitiveLog = (obj) => ({
|
|
109
73
|
...obj,
|
|
110
74
|
});
|
|
111
75
|
})(SuggestionMatch = exports.SuggestionMatch || (exports.SuggestionMatch = {}));
|
|
112
76
|
var SuggestModel;
|
|
113
77
|
(function (SuggestModel) {
|
|
114
|
-
/**
|
|
115
|
-
* @internal
|
|
116
|
-
*/
|
|
117
78
|
SuggestModel.filterSensitiveLog = (obj) => ({
|
|
118
79
|
...obj,
|
|
119
80
|
});
|
|
120
81
|
})(SuggestModel = exports.SuggestModel || (exports.SuggestModel = {}));
|
|
121
82
|
var SuggestResponse;
|
|
122
83
|
(function (SuggestResponse) {
|
|
123
|
-
/**
|
|
124
|
-
* @internal
|
|
125
|
-
*/
|
|
126
84
|
SuggestResponse.filterSensitiveLog = (obj) => ({
|
|
127
85
|
...obj,
|
|
128
86
|
});
|
|
129
87
|
})(SuggestResponse = exports.SuggestResponse || (exports.SuggestResponse = {}));
|
|
130
88
|
var DocumentServiceException;
|
|
131
89
|
(function (DocumentServiceException) {
|
|
132
|
-
/**
|
|
133
|
-
* @internal
|
|
134
|
-
*/
|
|
135
90
|
DocumentServiceException.filterSensitiveLog = (obj) => ({
|
|
136
91
|
...obj,
|
|
137
92
|
});
|
|
138
93
|
})(DocumentServiceException = exports.DocumentServiceException || (exports.DocumentServiceException = {}));
|
|
139
94
|
var UploadDocumentsRequest;
|
|
140
95
|
(function (UploadDocumentsRequest) {
|
|
141
|
-
/**
|
|
142
|
-
* @internal
|
|
143
|
-
*/
|
|
144
96
|
UploadDocumentsRequest.filterSensitiveLog = (obj) => ({
|
|
145
97
|
...obj,
|
|
146
98
|
});
|
|
147
99
|
})(UploadDocumentsRequest = exports.UploadDocumentsRequest || (exports.UploadDocumentsRequest = {}));
|
|
148
100
|
var DocumentServiceWarning;
|
|
149
101
|
(function (DocumentServiceWarning) {
|
|
150
|
-
/**
|
|
151
|
-
* @internal
|
|
152
|
-
*/
|
|
153
102
|
DocumentServiceWarning.filterSensitiveLog = (obj) => ({
|
|
154
103
|
...obj,
|
|
155
104
|
});
|
|
156
105
|
})(DocumentServiceWarning = exports.DocumentServiceWarning || (exports.DocumentServiceWarning = {}));
|
|
157
106
|
var UploadDocumentsResponse;
|
|
158
107
|
(function (UploadDocumentsResponse) {
|
|
159
|
-
/**
|
|
160
|
-
* @internal
|
|
161
|
-
*/
|
|
162
108
|
UploadDocumentsResponse.filterSensitiveLog = (obj) => ({
|
|
163
109
|
...obj,
|
|
164
110
|
});
|
|
165
111
|
})(UploadDocumentsResponse = exports.UploadDocumentsResponse || (exports.UploadDocumentsResponse = {}));
|
|
166
|
-
//# sourceMappingURL=models_0.js.map
|
|
@@ -486,14 +486,12 @@ const deserializeMetadata = (output) => {
|
|
|
486
486
|
cfId: output.headers["x-amz-cf-id"],
|
|
487
487
|
});
|
|
488
488
|
};
|
|
489
|
-
// Collect low-level response body stream to Uint8Array.
|
|
490
489
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
491
490
|
if (streamBody instanceof Uint8Array) {
|
|
492
491
|
return Promise.resolve(streamBody);
|
|
493
492
|
}
|
|
494
493
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
495
494
|
};
|
|
496
|
-
// Encode Uint8Array data into string with utf-8.
|
|
497
495
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
498
496
|
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
499
497
|
value !== null &&
|
|
@@ -506,9 +504,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
506
504
|
}
|
|
507
505
|
return {};
|
|
508
506
|
});
|
|
509
|
-
/**
|
|
510
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
511
|
-
*/
|
|
512
507
|
const loadRestJsonErrorCode = (output, data) => {
|
|
513
508
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
514
509
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -533,4 +528,3 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
533
528
|
}
|
|
534
529
|
return "";
|
|
535
530
|
};
|
|
536
|
-
//# sourceMappingURL=Aws_restJson1.js.map
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
5
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
6
7
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
7
8
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
@@ -10,12 +11,7 @@ const util_base64_browser_1 = require("@aws-sdk/util-base64-browser");
|
|
|
10
11
|
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
11
12
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
12
13
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
13
|
-
// @ts-ignore: package.json will be imported from dist folders
|
|
14
|
-
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
15
14
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
15
|
const getRuntimeConfig = (config) => {
|
|
20
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
21
17
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
@@ -39,4 +35,3 @@ const getRuntimeConfig = (config) => {
|
|
|
39
35
|
};
|
|
40
36
|
};
|
|
41
37
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
42
|
-
//# sourceMappingURL=runtimeConfig.browser.js.map
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
5
6
|
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
6
7
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
7
8
|
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
@@ -9,17 +10,12 @@ const hash_node_1 = require("@aws-sdk/hash-node");
|
|
|
9
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
10
11
|
const node_config_provider_1 = require("@aws-sdk/node-config-provider");
|
|
11
12
|
const node_http_handler_1 = require("@aws-sdk/node-http-handler");
|
|
12
|
-
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
13
13
|
const util_base64_node_1 = require("@aws-sdk/util-base64-node");
|
|
14
14
|
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
|
-
// @ts-ignore: package.json will be imported from dist folders
|
|
18
|
-
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
19
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
20
|
-
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
23
19
|
const getRuntimeConfig = (config) => {
|
|
24
20
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
25
21
|
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
@@ -44,4 +40,3 @@ const getRuntimeConfig = (config) => {
|
|
|
44
40
|
};
|
|
45
41
|
};
|
|
46
42
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
47
|
-
//# sourceMappingURL=runtimeConfig.js.map
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
6
|
const getRuntimeConfig = (config) => {
|
|
10
7
|
var _a;
|
|
11
8
|
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
@@ -17,4 +14,3 @@ const getRuntimeConfig = (config) => {
|
|
|
17
14
|
};
|
|
18
15
|
};
|
|
19
16
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
20
|
-
//# sourceMappingURL=runtimeConfig.native.js.map
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
5
|
const endpoints_1 = require("./endpoints");
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
6
|
const getRuntimeConfig = (config) => {
|
|
10
7
|
var _a, _b, _c, _d, _e;
|
|
11
8
|
return ({
|
|
@@ -18,4 +15,3 @@ const getRuntimeConfig = (config) => {
|
|
|
18
15
|
});
|
|
19
16
|
};
|
|
20
17
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
21
|
-
//# sourceMappingURL=runtimeConfig.shared.js.map
|
package/dist-es/endpoints.js
CHANGED
|
@@ -33,7 +33,7 @@ var partitionHash = {
|
|
|
33
33
|
hostname: "cloudsearchdomain.{region}.amazonaws.com.cn",
|
|
34
34
|
},
|
|
35
35
|
"aws-iso": {
|
|
36
|
-
regions: ["us-iso-east-1"],
|
|
36
|
+
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
37
37
|
hostname: "cloudsearchdomain.{region}.c2s.ic.gov",
|
|
38
38
|
},
|
|
39
39
|
"aws-iso-b": {
|
|
@@ -50,4 +50,3 @@ export var defaultRegionInfoProvider = function (region, options) { return __awa
|
|
|
50
50
|
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "cloudsearch", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
51
51
|
});
|
|
52
52
|
}); };
|
|
53
|
-
//# sourceMappingURL=endpoints.js.map
|
package/dist-es/index.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
export * from "./CloudSearchDomainClient";
|
|
2
1
|
export * from "./CloudSearchDomain";
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./commands
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./models/index";
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
2
|
+
export * from "./CloudSearchDomainClient";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./models";
|
package/dist-es/models/index.js
CHANGED
|
@@ -71,4 +71,3 @@ export var UploadDocumentsResponse;
|
|
|
71
71
|
(function (UploadDocumentsResponse) {
|
|
72
72
|
UploadDocumentsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
73
73
|
})(UploadDocumentsResponse || (UploadDocumentsResponse = {}));
|
|
74
|
-
//# sourceMappingURL=models_0.js.map
|