@aws-sdk/client-cloudsearch-domain 3.933.0 → 3.935.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -129,12 +129,6 @@ let SearchException$1 = class SearchException extends CloudSearchDomainServiceEx
129
129
  Object.setPrototypeOf(this, SearchException.prototype);
130
130
  }
131
131
  };
132
- const QueryParser = {
133
- dismax: "dismax",
134
- lucene: "lucene",
135
- simple: "simple",
136
- structured: "structured",
137
- };
138
132
  let DocumentServiceException$1 = class DocumentServiceException extends CloudSearchDomainServiceException$1 {
139
133
  name = "DocumentServiceException";
140
134
  $fault = "client";
@@ -149,10 +143,6 @@ let DocumentServiceException$1 = class DocumentServiceException extends CloudSea
149
143
  this.status = opts.status;
150
144
  }
151
145
  };
152
- const ContentType = {
153
- application_json: "application/json",
154
- application_xml: "application/xml",
155
- };
156
146
 
157
147
  const _B = "Blob";
158
148
  const _BI = "BucketInfo";
@@ -548,6 +538,17 @@ class CloudSearchDomain extends CloudSearchDomainClient {
548
538
  }
549
539
  smithyClient.createAggregatedClient(commands, CloudSearchDomain);
550
540
 
541
+ const QueryParser = {
542
+ dismax: "dismax",
543
+ lucene: "lucene",
544
+ simple: "simple",
545
+ structured: "structured",
546
+ };
547
+ const ContentType = {
548
+ application_json: "application/json",
549
+ application_xml: "application/xml",
550
+ };
551
+
551
552
  Object.defineProperty(exports, "$Command", {
552
553
  enumerable: true,
553
554
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./CloudSearchDomainClient";
2
2
  export * from "./CloudSearchDomain";
3
3
  export * from "./commands";
4
- export * from "./models";
4
+ export * from "./models/enums";
5
+ export * from "./models/errors";
5
6
  export { CloudSearchDomainServiceException } from "./models/CloudSearchDomainServiceException";
@@ -0,0 +1,10 @@
1
+ export const QueryParser = {
2
+ dismax: "dismax",
3
+ lucene: "lucene",
4
+ simple: "simple",
5
+ structured: "structured",
6
+ };
7
+ export const ContentType = {
8
+ application_json: "application/json",
9
+ application_xml: "application/xml",
10
+ };
@@ -0,0 +1,27 @@
1
+ import { CloudSearchDomainServiceException as __BaseException } from "./CloudSearchDomainServiceException";
2
+ export class SearchException extends __BaseException {
3
+ name = "SearchException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "SearchException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, SearchException.prototype);
12
+ }
13
+ }
14
+ export class DocumentServiceException extends __BaseException {
15
+ name = "DocumentServiceException";
16
+ $fault = "client";
17
+ status;
18
+ constructor(opts) {
19
+ super({
20
+ name: "DocumentServiceException",
21
+ $fault: "client",
22
+ ...opts,
23
+ });
24
+ Object.setPrototypeOf(this, DocumentServiceException.prototype);
25
+ this.status = opts.status;
26
+ }
27
+ }
@@ -1,37 +1 @@
1
- import { CloudSearchDomainServiceException as __BaseException } from "./CloudSearchDomainServiceException";
2
- export class SearchException extends __BaseException {
3
- name = "SearchException";
4
- $fault = "client";
5
- constructor(opts) {
6
- super({
7
- name: "SearchException",
8
- $fault: "client",
9
- ...opts,
10
- });
11
- Object.setPrototypeOf(this, SearchException.prototype);
12
- }
13
- }
14
- export const QueryParser = {
15
- dismax: "dismax",
16
- lucene: "lucene",
17
- simple: "simple",
18
- structured: "structured",
19
- };
20
- export class DocumentServiceException extends __BaseException {
21
- name = "DocumentServiceException";
22
- $fault = "client";
23
- status;
24
- constructor(opts) {
25
- super({
26
- name: "DocumentServiceException",
27
- $fault: "client",
28
- ...opts,
29
- });
30
- Object.setPrototypeOf(this, DocumentServiceException.prototype);
31
- this.status = opts.status;
32
- }
33
- }
34
- export const ContentType = {
35
- application_json: "application/json",
36
- application_xml: "application/xml",
37
- };
1
+ export {};
@@ -88,7 +88,7 @@ const _w = "warnings";
88
88
  const n0 = "com.amazonaws.cloudsearchdomain";
89
89
  import { TypeRegistry } from "@smithy/core/schema";
90
90
  import { CloudSearchDomainServiceException as __CloudSearchDomainServiceException } from "../models/CloudSearchDomainServiceException";
91
- import { DocumentServiceException as __DocumentServiceException, SearchException as __SearchException, } from "../models/index";
91
+ import { DocumentServiceException as __DocumentServiceException, SearchException as __SearchException, } from "../models/errors";
92
92
  export var _Blob = [
93
93
  0,
94
94
  n0,
@@ -12,5 +12,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
12
12
  export type { RuntimeExtension } from "./runtimeExtensions";
13
13
  export type { CloudSearchDomainExtensionConfiguration } from "./extensionConfiguration";
14
14
  export * from "./commands";
15
- export * from "./models";
15
+ export * from "./models/enums";
16
+ export * from "./models/errors";
17
+ export type * from "./models/models_0";
16
18
  export { CloudSearchDomainServiceException } from "./models/CloudSearchDomainServiceException";
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const QueryParser: {
6
+ readonly dismax: "dismax";
7
+ readonly lucene: "lucene";
8
+ readonly simple: "simple";
9
+ readonly structured: "structured";
10
+ };
11
+ /**
12
+ * @public
13
+ */
14
+ export type QueryParser = (typeof QueryParser)[keyof typeof QueryParser];
15
+ /**
16
+ * @public
17
+ * @enum
18
+ */
19
+ export declare const ContentType: {
20
+ readonly application_json: "application/json";
21
+ readonly application_xml: "application/xml";
22
+ };
23
+ /**
24
+ * @public
25
+ */
26
+ export type ContentType = (typeof ContentType)[keyof typeof ContentType];
@@ -0,0 +1,31 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { CloudSearchDomainServiceException as __BaseException } from "./CloudSearchDomainServiceException";
3
+ /**
4
+ * <p>Information about any problems encountered while processing a search request.</p>
5
+ * @public
6
+ */
7
+ export declare class SearchException extends __BaseException {
8
+ readonly name: "SearchException";
9
+ readonly $fault: "client";
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<SearchException, __BaseException>);
14
+ }
15
+ /**
16
+ * <p>Information about any problems encountered while processing an upload request.</p>
17
+ * @public
18
+ */
19
+ export declare class DocumentServiceException extends __BaseException {
20
+ readonly name: "DocumentServiceException";
21
+ readonly $fault: "client";
22
+ /**
23
+ * <p>The return status of a document upload request, <code>error</code> or <code>success</code>.</p>
24
+ * @public
25
+ */
26
+ status?: string | undefined;
27
+ /**
28
+ * @internal
29
+ */
30
+ constructor(opts: __ExceptionOptionType<DocumentServiceException, __BaseException>);
31
+ }
@@ -1,32 +1,5 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
1
  import { StreamingBlobTypes } from "@smithy/types";
3
- import { CloudSearchDomainServiceException as __BaseException } from "./CloudSearchDomainServiceException";
4
- /**
5
- * <p>Information about any problems encountered while processing a search request.</p>
6
- * @public
7
- */
8
- export declare class SearchException extends __BaseException {
9
- readonly name: "SearchException";
10
- readonly $fault: "client";
11
- /**
12
- * @internal
13
- */
14
- constructor(opts: __ExceptionOptionType<SearchException, __BaseException>);
15
- }
16
- /**
17
- * @public
18
- * @enum
19
- */
20
- export declare const QueryParser: {
21
- readonly dismax: "dismax";
22
- readonly lucene: "lucene";
23
- readonly simple: "simple";
24
- readonly structured: "structured";
25
- };
26
- /**
27
- * @public
28
- */
29
- export type QueryParser = (typeof QueryParser)[keyof typeof QueryParser];
2
+ import { ContentType, QueryParser } from "./enums";
30
3
  /**
31
4
  * <p>Container for the parameters to the <code>Search</code> request.</p>
32
5
  * @public
@@ -579,35 +552,6 @@ export interface SuggestResponse {
579
552
  */
580
553
  suggest?: SuggestModel | undefined;
581
554
  }
582
- /**
583
- * <p>Information about any problems encountered while processing an upload request.</p>
584
- * @public
585
- */
586
- export declare class DocumentServiceException extends __BaseException {
587
- readonly name: "DocumentServiceException";
588
- readonly $fault: "client";
589
- /**
590
- * <p>The return status of a document upload request, <code>error</code> or <code>success</code>.</p>
591
- * @public
592
- */
593
- status?: string | undefined;
594
- /**
595
- * @internal
596
- */
597
- constructor(opts: __ExceptionOptionType<DocumentServiceException, __BaseException>);
598
- }
599
- /**
600
- * @public
601
- * @enum
602
- */
603
- export declare const ContentType: {
604
- readonly application_json: "application/json";
605
- readonly application_xml: "application/xml";
606
- };
607
- /**
608
- * @public
609
- */
610
- export type ContentType = (typeof ContentType)[keyof typeof ContentType];
611
555
  /**
612
556
  * <p>Container for the parameters to the <code>UploadDocuments</code> request.</p>
613
557
  * @public
@@ -4,5 +4,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
4
  export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { CloudSearchDomainExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
- export * from "./models";
7
+ export * from "./models/enums";
8
+ export * from "./models/errors";
9
+ export * from "./models/models_0";
8
10
  export { CloudSearchDomainServiceException } from "./models/CloudSearchDomainServiceException";
@@ -0,0 +1,12 @@
1
+ export declare const QueryParser: {
2
+ readonly dismax: "dismax";
3
+ readonly lucene: "lucene";
4
+ readonly simple: "simple";
5
+ readonly structured: "structured";
6
+ };
7
+ export type QueryParser = (typeof QueryParser)[keyof typeof QueryParser];
8
+ export declare const ContentType: {
9
+ readonly application_json: "application/json";
10
+ readonly application_xml: "application/xml";
11
+ };
12
+ export type ContentType = (typeof ContentType)[keyof typeof ContentType];
@@ -0,0 +1,15 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { CloudSearchDomainServiceException as __BaseException } from "./CloudSearchDomainServiceException";
3
+ export declare class SearchException extends __BaseException {
4
+ readonly name: "SearchException";
5
+ readonly $fault: "client";
6
+ constructor(opts: __ExceptionOptionType<SearchException, __BaseException>);
7
+ }
8
+ export declare class DocumentServiceException extends __BaseException {
9
+ readonly name: "DocumentServiceException";
10
+ readonly $fault: "client";
11
+ status?: string | undefined;
12
+ constructor(
13
+ opts: __ExceptionOptionType<DocumentServiceException, __BaseException>
14
+ );
15
+ }
@@ -1,18 +1,5 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
1
  import { StreamingBlobTypes } from "@smithy/types";
3
- import { CloudSearchDomainServiceException as __BaseException } from "./CloudSearchDomainServiceException";
4
- export declare class SearchException extends __BaseException {
5
- readonly name: "SearchException";
6
- readonly $fault: "client";
7
- constructor(opts: __ExceptionOptionType<SearchException, __BaseException>);
8
- }
9
- export declare const QueryParser: {
10
- readonly dismax: "dismax";
11
- readonly lucene: "lucene";
12
- readonly simple: "simple";
13
- readonly structured: "structured";
14
- };
15
- export type QueryParser = (typeof QueryParser)[keyof typeof QueryParser];
2
+ import { ContentType, QueryParser } from "./enums";
16
3
  export interface SearchRequest {
17
4
  cursor?: string | undefined;
18
5
  expr?: string | undefined;
@@ -91,19 +78,6 @@ export interface SuggestResponse {
91
78
  status?: SuggestStatus | undefined;
92
79
  suggest?: SuggestModel | undefined;
93
80
  }
94
- export declare class DocumentServiceException extends __BaseException {
95
- readonly name: "DocumentServiceException";
96
- readonly $fault: "client";
97
- status?: string | undefined;
98
- constructor(
99
- opts: __ExceptionOptionType<DocumentServiceException, __BaseException>
100
- );
101
- }
102
- export declare const ContentType: {
103
- readonly application_json: "application/json";
104
- readonly application_xml: "application/xml";
105
- };
106
- export type ContentType = (typeof ContentType)[keyof typeof ContentType];
107
81
  export interface UploadDocumentsRequest {
108
82
  documents: StreamingBlobTypes | undefined;
109
83
  contentType: ContentType | 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.933.0",
4
+ "version": "3.935.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cloudsearch-domain",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.932.0",
24
- "@aws-sdk/credential-provider-node": "3.933.0",
23
+ "@aws-sdk/core": "3.935.0",
24
+ "@aws-sdk/credential-provider-node": "3.935.0",
25
25
  "@aws-sdk/middleware-host-header": "3.930.0",
26
26
  "@aws-sdk/middleware-logger": "3.930.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.932.0",
28
+ "@aws-sdk/middleware-user-agent": "3.935.0",
29
29
  "@aws-sdk/region-config-resolver": "3.930.0",
30
30
  "@aws-sdk/types": "3.930.0",
31
31
  "@aws-sdk/util-endpoints": "3.930.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.932.0",
33
+ "@aws-sdk/util-user-agent-node": "3.935.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.2",
35
+ "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",
37
37
  "@smithy/hash-node": "^4.2.5",
38
38
  "@smithy/invalid-dependency": "^4.2.5",
39
39
  "@smithy/middleware-content-length": "^4.2.5",
40
- "@smithy/middleware-endpoint": "^4.3.9",
41
- "@smithy/middleware-retry": "^4.4.9",
42
- "@smithy/middleware-serde": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.12",
41
+ "@smithy/middleware-retry": "^4.4.12",
42
+ "@smithy/middleware-serde": "^4.2.6",
43
43
  "@smithy/middleware-stack": "^4.2.5",
44
44
  "@smithy/node-config-provider": "^4.3.5",
45
45
  "@smithy/node-http-handler": "^4.4.5",
46
46
  "@smithy/protocol-http": "^5.3.5",
47
- "@smithy/smithy-client": "^4.9.5",
47
+ "@smithy/smithy-client": "^4.9.8",
48
48
  "@smithy/types": "^4.9.0",
49
49
  "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.8",
54
- "@smithy/util-defaults-mode-node": "^4.2.11",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
54
+ "@smithy/util-defaults-mode-node": "^4.2.14",
55
55
  "@smithy/util-endpoints": "^3.2.5",
56
56
  "@smithy/util-middleware": "^4.2.5",
57
57
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";