@aws-sdk/client-cloudsearch-domain 3.293.0 → 3.295.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.
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class SearchCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class SearchCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SearchCommand.getEndpointParameterInstructions()));
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class SuggestCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class SuggestCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SuggestCommand.getEndpointParameterInstructions()));
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class UploadDocumentsCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class UploadDocumentsCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UploadDocumentsCommand.getEndpointParameterInstructions()));
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { SearchRequestFilterSensitiveLog, SearchResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1SearchCommand, serializeAws_restJson1SearchCommand } from "../protocols/Aws_restJson1";
6
6
  export class SearchCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
7
  static getEndpointParameterInstructions() {
12
8
  return {
13
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -16,6 +12,10 @@ export class SearchCommand extends $Command {
16
12
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
13
  };
18
14
  }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
19
  resolveMiddleware(clientStack, configuration, options) {
20
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
21
  this.middlewareStack.use(getEndpointPlugin(configuration, SearchCommand.getEndpointParameterInstructions()));
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { SuggestRequestFilterSensitiveLog, SuggestResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1SuggestCommand, serializeAws_restJson1SuggestCommand, } from "../protocols/Aws_restJson1";
6
6
  export class SuggestCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
7
  static getEndpointParameterInstructions() {
12
8
  return {
13
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -16,6 +12,10 @@ export class SuggestCommand extends $Command {
16
12
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
13
  };
18
14
  }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
19
  resolveMiddleware(clientStack, configuration, options) {
20
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
21
  this.middlewareStack.use(getEndpointPlugin(configuration, SuggestCommand.getEndpointParameterInstructions()));
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { UploadDocumentsRequestFilterSensitiveLog, UploadDocumentsResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1UploadDocumentsCommand, serializeAws_restJson1UploadDocumentsCommand, } from "../protocols/Aws_restJson1";
6
6
  export class UploadDocumentsCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
7
  static getEndpointParameterInstructions() {
12
8
  return {
13
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -16,6 +12,10 @@ export class UploadDocumentsCommand extends $Command {
16
12
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
13
  };
18
14
  }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
19
  resolveMiddleware(clientStack, configuration, options) {
20
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
21
  this.middlewareStack.use(getEndpointPlugin(configuration, UploadDocumentsCommand.getEndpointParameterInstructions()));
@@ -11,8 +11,8 @@ import { SearchCommandInput, SearchCommandOutput } from "./commands/SearchComman
11
11
  import { SuggestCommandInput, SuggestCommandOutput } from "./commands/SuggestCommand";
12
12
  import { UploadDocumentsCommandInput, UploadDocumentsCommandOutput } from "./commands/UploadDocumentsCommand";
13
13
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
14
- export declare type ServiceInputTypes = SearchCommandInput | SuggestCommandInput | UploadDocumentsCommandInput;
15
- export declare type ServiceOutputTypes = SearchCommandOutput | SuggestCommandOutput | UploadDocumentsCommandOutput;
14
+ export type ServiceInputTypes = SearchCommandInput | SuggestCommandInput | UploadDocumentsCommandInput;
15
+ export type ServiceOutputTypes = SearchCommandOutput | SuggestCommandOutput | UploadDocumentsCommandOutput;
16
16
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
17
17
  /**
18
18
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -113,13 +113,13 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
113
113
  */
114
114
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
115
115
  }
116
- declare type CloudSearchDomainClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
116
+ type CloudSearchDomainClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
117
117
  /**
118
118
  * The configuration interface of CloudSearchDomainClient class constructor that set the region, credentials and other options.
119
119
  */
120
120
  export interface CloudSearchDomainClientConfig extends CloudSearchDomainClientConfigType {
121
121
  }
122
- declare type CloudSearchDomainClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
122
+ type CloudSearchDomainClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
123
123
  /**
124
124
  * The resolved configuration interface of CloudSearchDomainClient class. This is resolved and normalized from the {@link CloudSearchDomainClientConfig | constructor configuration interface}.
125
125
  */
@@ -7,7 +7,7 @@ import { UploadDocumentsRequest, UploadDocumentsResponse } from "../models/model
7
7
  /**
8
8
  * The input for {@link UploadDocumentsCommand}.
9
9
  */
10
- declare type UploadDocumentsCommandInputType = Omit<UploadDocumentsRequest, "documents"> & {
10
+ type UploadDocumentsCommandInputType = Omit<UploadDocumentsRequest, "documents"> & {
11
11
  /**
12
12
  * For *`UploadDocumentsRequest["documents"]`*, see {@link UploadDocumentsRequest.documents}.
13
13
  */
@@ -5,7 +5,7 @@ export interface ClientInputEndpointParameters {
5
5
  useFipsEndpoint?: boolean | Provider<boolean>;
6
6
  endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
7
7
  }
8
- export declare type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
8
+ export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
9
9
  defaultSigningName: string;
10
10
  };
11
11
  export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
@@ -13,7 +13,7 @@ export declare class SearchException extends __BaseException {
13
13
  */
14
14
  constructor(opts: __ExceptionOptionType<SearchException, __BaseException>);
15
15
  }
16
- export declare type QueryParser = "dismax" | "lucene" | "simple" | "structured";
16
+ export type QueryParser = "dismax" | "lucene" | "simple" | "structured";
17
17
  /**
18
18
  * <p>Container for the parameters to the <code>Search</code> request.</p>
19
19
  */
@@ -516,7 +516,7 @@ export declare class DocumentServiceException extends __BaseException {
516
516
  */
517
517
  constructor(opts: __ExceptionOptionType<DocumentServiceException, __BaseException>);
518
518
  }
519
- export declare type ContentType = "application/json" | "application/xml";
519
+ export type ContentType = "application/json" | "application/xml";
520
520
  /**
521
521
  * <p>Container for the parameters to the <code>UploadDocuments</code> request.</p>
522
522
  */
@@ -61,11 +61,11 @@ import {
61
61
  ClientResolvedEndpointParameters,
62
62
  EndpointParameters,
63
63
  } from "./endpoint/EndpointParameters";
64
- export declare type ServiceInputTypes =
64
+ export type ServiceInputTypes =
65
65
  | SearchCommandInput
66
66
  | SuggestCommandInput
67
67
  | UploadDocumentsCommandInput;
68
- export declare type ServiceOutputTypes =
68
+ export type ServiceOutputTypes =
69
69
  | SearchCommandOutput
70
70
  | SuggestCommandOutput
71
71
  | UploadDocumentsCommandOutput;
@@ -93,7 +93,7 @@ export interface ClientDefaults
93
93
  logger?: __Logger;
94
94
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
95
95
  }
96
- declare type CloudSearchDomainClientConfigType = Partial<
96
+ type CloudSearchDomainClientConfigType = Partial<
97
97
  __SmithyConfiguration<__HttpHandlerOptions>
98
98
  > &
99
99
  ClientDefaults &
@@ -106,7 +106,7 @@ declare type CloudSearchDomainClientConfigType = Partial<
106
106
  ClientInputEndpointParameters;
107
107
  export interface CloudSearchDomainClientConfig
108
108
  extends CloudSearchDomainClientConfigType {}
109
- declare type CloudSearchDomainClientResolvedConfigType =
109
+ type CloudSearchDomainClientResolvedConfigType =
110
110
  __SmithyResolvedConfiguration<__HttpHandlerOptions> &
111
111
  Required<ClientDefaults> &
112
112
  RegionResolvedConfig &
@@ -15,7 +15,7 @@ import {
15
15
  UploadDocumentsRequest,
16
16
  UploadDocumentsResponse,
17
17
  } from "../models/models_0";
18
- declare type UploadDocumentsCommandInputType = Pick<
18
+ type UploadDocumentsCommandInputType = Pick<
19
19
  UploadDocumentsRequest,
20
20
  Exclude<keyof UploadDocumentsRequest, "documents">
21
21
  > & {
@@ -16,10 +16,9 @@ export interface ClientInputEndpointParameters {
16
16
  | EndpointV2
17
17
  | Provider<EndpointV2>;
18
18
  }
19
- export declare type ClientResolvedEndpointParameters =
20
- ClientInputEndpointParameters & {
21
- defaultSigningName: string;
22
- };
19
+ export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
20
+ defaultSigningName: string;
21
+ };
23
22
  export declare const resolveClientEndpointParameters: <T>(
24
23
  options: T & ClientInputEndpointParameters
25
24
  ) => T &
@@ -6,7 +6,7 @@ export declare class SearchException extends __BaseException {
6
6
  readonly $fault: "client";
7
7
  constructor(opts: __ExceptionOptionType<SearchException, __BaseException>);
8
8
  }
9
- export declare type QueryParser = "dismax" | "lucene" | "simple" | "structured";
9
+ export type QueryParser = "dismax" | "lucene" | "simple" | "structured";
10
10
  export interface SearchRequest {
11
11
  cursor?: string;
12
12
  expr?: string;
@@ -93,7 +93,7 @@ export declare class DocumentServiceException extends __BaseException {
93
93
  opts: __ExceptionOptionType<DocumentServiceException, __BaseException>
94
94
  );
95
95
  }
96
- export declare type ContentType = "application/json" | "application/xml";
96
+ export type ContentType = "application/json" | "application/xml";
97
97
  export interface UploadDocumentsRequest {
98
98
  documents: Readable | ReadableStream | Blob | undefined;
99
99
  contentType: ContentType | string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudsearch-domain",
3
3
  "description": "AWS SDK for JavaScript Cloudsearch Domain Client for Node.js, Browser and React Native",
4
- "version": "3.293.0",
4
+ "version": "3.295.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,49 +20,49 @@
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.293.0",
24
- "@aws-sdk/config-resolver": "3.292.0",
25
- "@aws-sdk/credential-provider-node": "3.293.0",
26
- "@aws-sdk/fetch-http-handler": "3.292.0",
27
- "@aws-sdk/hash-node": "3.292.0",
28
- "@aws-sdk/invalid-dependency": "3.292.0",
29
- "@aws-sdk/middleware-content-length": "3.292.0",
30
- "@aws-sdk/middleware-endpoint": "3.292.0",
31
- "@aws-sdk/middleware-host-header": "3.292.0",
32
- "@aws-sdk/middleware-logger": "3.292.0",
33
- "@aws-sdk/middleware-recursion-detection": "3.292.0",
34
- "@aws-sdk/middleware-retry": "3.293.0",
35
- "@aws-sdk/middleware-serde": "3.292.0",
36
- "@aws-sdk/middleware-signing": "3.292.0",
37
- "@aws-sdk/middleware-stack": "3.292.0",
38
- "@aws-sdk/middleware-user-agent": "3.293.0",
39
- "@aws-sdk/node-config-provider": "3.292.0",
40
- "@aws-sdk/node-http-handler": "3.292.0",
41
- "@aws-sdk/protocol-http": "3.292.0",
42
- "@aws-sdk/smithy-client": "3.292.0",
43
- "@aws-sdk/types": "3.292.0",
44
- "@aws-sdk/url-parser": "3.292.0",
45
- "@aws-sdk/util-base64": "3.292.0",
46
- "@aws-sdk/util-body-length-browser": "3.292.0",
47
- "@aws-sdk/util-body-length-node": "3.292.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.292.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.292.0",
50
- "@aws-sdk/util-endpoints": "3.293.0",
51
- "@aws-sdk/util-retry": "3.292.0",
52
- "@aws-sdk/util-user-agent-browser": "3.292.0",
53
- "@aws-sdk/util-user-agent-node": "3.292.0",
54
- "@aws-sdk/util-utf8": "3.292.0",
55
- "tslib": "^2.3.1"
23
+ "@aws-sdk/client-sts": "3.295.0",
24
+ "@aws-sdk/config-resolver": "3.295.0",
25
+ "@aws-sdk/credential-provider-node": "3.295.0",
26
+ "@aws-sdk/fetch-http-handler": "3.295.0",
27
+ "@aws-sdk/hash-node": "3.295.0",
28
+ "@aws-sdk/invalid-dependency": "3.295.0",
29
+ "@aws-sdk/middleware-content-length": "3.295.0",
30
+ "@aws-sdk/middleware-endpoint": "3.295.0",
31
+ "@aws-sdk/middleware-host-header": "3.295.0",
32
+ "@aws-sdk/middleware-logger": "3.295.0",
33
+ "@aws-sdk/middleware-recursion-detection": "3.295.0",
34
+ "@aws-sdk/middleware-retry": "3.295.0",
35
+ "@aws-sdk/middleware-serde": "3.295.0",
36
+ "@aws-sdk/middleware-signing": "3.295.0",
37
+ "@aws-sdk/middleware-stack": "3.295.0",
38
+ "@aws-sdk/middleware-user-agent": "3.295.0",
39
+ "@aws-sdk/node-config-provider": "3.295.0",
40
+ "@aws-sdk/node-http-handler": "3.295.0",
41
+ "@aws-sdk/protocol-http": "3.295.0",
42
+ "@aws-sdk/smithy-client": "3.295.0",
43
+ "@aws-sdk/types": "3.295.0",
44
+ "@aws-sdk/url-parser": "3.295.0",
45
+ "@aws-sdk/util-base64": "3.295.0",
46
+ "@aws-sdk/util-body-length-browser": "3.295.0",
47
+ "@aws-sdk/util-body-length-node": "3.295.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.295.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.295.0",
50
+ "@aws-sdk/util-endpoints": "3.295.0",
51
+ "@aws-sdk/util-retry": "3.295.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.295.0",
53
+ "@aws-sdk/util-user-agent-node": "3.295.0",
54
+ "@aws-sdk/util-utf8": "3.295.0",
55
+ "tslib": "^2.5.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@aws-sdk/service-client-documentation-generator": "3.293.0",
58
+ "@aws-sdk/service-client-documentation-generator": "3.295.0",
59
59
  "@tsconfig/node14": "1.0.3",
60
60
  "@types/node": "^14.14.31",
61
61
  "concurrently": "7.0.0",
62
62
  "downlevel-dts": "0.10.1",
63
63
  "rimraf": "3.0.2",
64
64
  "typedoc": "0.23.23",
65
- "typescript": "~4.6.2"
65
+ "typescript": "~4.9.5"
66
66
  },
67
67
  "engines": {
68
68
  "node": ">=14.0.0"