@aws-sdk/client-cloudsearch-domain 3.378.0 → 3.382.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.
@@ -1,4 +1,7 @@
1
1
  import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
2
5
  export interface ClientInputEndpointParameters {
3
6
  region?: string | Provider<string>;
4
7
  useDualstackEndpoint?: boolean | Provider<boolean>;
@@ -8,6 +8,7 @@
8
8
  */
9
9
  export * from "./CloudSearchDomainClient";
10
10
  export * from "./CloudSearchDomain";
11
+ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
11
12
  export * from "./commands";
12
13
  export * from "./models";
13
14
  export { CloudSearchDomainServiceException } from "./models/CloudSearchDomainServiceException";
@@ -23,6 +23,7 @@ export type QueryParser = "dismax" | "lucene" | "simple" | "structured";
23
23
  */
24
24
  export interface SearchRequest {
25
25
  /**
26
+ * @public
26
27
  * <p>Retrieves a cursor value you can use to page through large result sets.
27
28
  * Use the <code>size</code> parameter to control the number of hits to include in each response. You can specify either the <code>cursor</code> or
28
29
  * <code>start</code> parameter in a request; they are mutually exclusive. To get the first cursor, set the cursor value to <code>initial</code>. In subsequent requests, specify the cursor value returned in the hits section of the response. </p>
@@ -31,6 +32,7 @@ export interface SearchRequest {
31
32
  */
32
33
  cursor?: string;
33
34
  /**
35
+ * @public
34
36
  * <p>Defines one or more numeric expressions that can be used to sort results or specify search or filter
35
37
  * criteria. You can also specify expressions as return fields. </p>
36
38
  * <p>You specify the expressions in JSON using the form <code>\{"EXPRESSIONNAME":"EXPRESSION"\}</code>. You can define and use multiple expressions in a search request. For example:</p>
@@ -42,6 +44,7 @@ export interface SearchRequest {
42
44
  */
43
45
  expr?: string;
44
46
  /**
47
+ * @public
45
48
  * <p>Specifies one or more fields for which to get facet information, and options that control how the facet information is returned. Each specified field must be facet-enabled in the domain configuration. The fields and options are specified in JSON using the form <code>\{"FIELD":\{"OPTION":VALUE,"OPTION:"STRING"\},"FIELD":\{"OPTION":VALUE,"OPTION":"STRING"\}\}</code>.</p>
46
49
  * <p>You can specify the following faceting options:</p>
47
50
  * <ul>
@@ -94,12 +97,14 @@ export interface SearchRequest {
94
97
  */
95
98
  facet?: string;
96
99
  /**
100
+ * @public
97
101
  * <p>Specifies a structured query that filters the results of a search without affecting how the results are scored and sorted. You use <code>filterQuery</code> in conjunction with the <code>query</code> parameter to filter the documents that match the constraints specified in the <code>query</code> parameter. Specifying a filter controls only which matching documents are included in the results, it has no effect on how they are scored and sorted. The <code>filterQuery</code> parameter supports the full structured query syntax. </p>
98
102
  * <p>For more information about using filters, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/filtering-results.html">Filtering Matching Documents</a>
99
103
  * in the <i>Amazon CloudSearch Developer Guide</i>.</p>
100
104
  */
101
105
  filterQuery?: string;
102
106
  /**
107
+ * @public
103
108
  * <p>Retrieves highlights for matches in the specified <code>text</code> or
104
109
  * <code>text-array</code> fields. Each specified field must be highlight enabled in the domain configuration. The fields and options are specified in JSON using the form <code>\{"FIELD":\{"OPTION":VALUE,"OPTION:"STRING"\},"FIELD":\{"OPTION":VALUE,"OPTION":"STRING"\}\}</code>.</p>
105
110
  * <p>You can specify the following highlight options:</p>
@@ -138,10 +143,12 @@ export interface SearchRequest {
138
143
  */
139
144
  highlight?: string;
140
145
  /**
146
+ * @public
141
147
  * <p>Enables partial results to be returned if one or more index partitions are unavailable. When your search index is partitioned across multiple search instances, by default Amazon CloudSearch only returns results if every partition can be queried. This means that the failure of a single search instance can result in 5xx (internal server) errors. When you enable partial results, Amazon CloudSearch returns whatever results are available and includes the percentage of documents searched in the search results (percent-searched). This enables you to more gracefully degrade your users' search experience. For example, rather than displaying no results, you could display the partial results and a message indicating that the results might be incomplete due to a temporary system outage.</p>
142
148
  */
143
149
  partial?: boolean;
144
150
  /**
151
+ * @public
145
152
  * <p>Specifies the search criteria for the request. How you specify the search
146
153
  * criteria depends on the query parser used for the request and the parser options
147
154
  * specified in the <code>queryOptions</code> parameter. By default,
@@ -152,6 +159,7 @@ export interface SearchRequest {
152
159
  */
153
160
  query: string | undefined;
154
161
  /**
162
+ * @public
155
163
  * <p>Configures options for the query parser specified in the <code>queryParser</code> parameter. You specify the options in JSON using the following form <code>\{"OPTION1":"VALUE1","OPTION2":VALUE2"..."OPTIONN":"VALUEN"\}.</code></p>
156
164
  *
157
165
  * <p>The options you can configure vary according to which parser you use:</p>
@@ -210,6 +218,7 @@ export interface SearchRequest {
210
218
  */
211
219
  queryOptions?: string;
212
220
  /**
221
+ * @public
213
222
  * <p>Specifies which
214
223
  * query parser to use to process the request. If <code>queryParser</code> is not specified, Amazon CloudSearch
215
224
  * uses the <code>simple</code> query parser. </p>
@@ -252,6 +261,7 @@ export interface SearchRequest {
252
261
  */
253
262
  queryParser?: QueryParser | string;
254
263
  /**
264
+ * @public
255
265
  * <p>Specifies the field and expression values to include in the response. Multiple fields or expressions are specified as a comma-separated list. By default, a search response includes all
256
266
  * return enabled fields (<code>_all_fields</code>).
257
267
  * To return only the document IDs for the matching documents,
@@ -261,10 +271,12 @@ export interface SearchRequest {
261
271
  */
262
272
  return?: string;
263
273
  /**
274
+ * @public
264
275
  * <p>Specifies the maximum number of search hits to include in the response. </p>
265
276
  */
266
277
  size?: number;
267
278
  /**
279
+ * @public
268
280
  * <p>Specifies the fields or custom expressions to use to sort the search
269
281
  * results. Multiple fields or expressions are specified as a comma-separated list.
270
282
  * You must specify the sort direction (<code>asc</code> or
@@ -279,11 +291,13 @@ export interface SearchRequest {
279
291
  */
280
292
  sort?: string;
281
293
  /**
294
+ * @public
282
295
  * <p>Specifies the offset of the first search hit you want to return. Note that the result set is zero-based; the first result is at index 0. You can specify either the <code>start</code> or <code>cursor</code> parameter in a request, they are mutually exclusive. </p>
283
296
  * <p>For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/paginating-results.html">Paginating Results</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
284
297
  */
285
298
  start?: number;
286
299
  /**
300
+ * @public
287
301
  * <p>Specifies one or more fields for which to get statistics information. Each specified field must be facet-enabled in the domain configuration. The fields are specified in JSON using the form:</p>
288
302
  * <code>\{"FIELD-A":\{\},"FIELD-B":\{\}\}</code>
289
303
  * <p>There are currently no options supported for statistics.</p>
@@ -296,10 +310,12 @@ export interface SearchRequest {
296
310
  */
297
311
  export interface Bucket {
298
312
  /**
313
+ * @public
299
314
  * <p>The facet value being counted.</p>
300
315
  */
301
316
  value?: string;
302
317
  /**
318
+ * @public
303
319
  * <p>The number of hits that contain the facet value in the specified facet field.</p>
304
320
  */
305
321
  count?: number;
@@ -310,6 +326,7 @@ export interface Bucket {
310
326
  */
311
327
  export interface BucketInfo {
312
328
  /**
329
+ * @public
313
330
  * <p>A list of the calculated facet values and counts.</p>
314
331
  */
315
332
  buckets?: Bucket[];
@@ -320,18 +337,22 @@ export interface BucketInfo {
320
337
  */
321
338
  export interface Hit {
322
339
  /**
340
+ * @public
323
341
  * <p>The document ID of a document that matches the search request.</p>
324
342
  */
325
343
  id?: string;
326
344
  /**
345
+ * @public
327
346
  * <p>The fields returned from a document that matches the search request.</p>
328
347
  */
329
348
  fields?: Record<string, string[]>;
330
349
  /**
350
+ * @public
331
351
  * <p>The expressions returned from a document that matches the search request.</p>
332
352
  */
333
353
  exprs?: Record<string, string>;
334
354
  /**
355
+ * @public
335
356
  * <p>The highlights returned from a document that matches the search request.</p>
336
357
  */
337
358
  highlights?: Record<string, string>;
@@ -342,18 +363,22 @@ export interface Hit {
342
363
  */
343
364
  export interface Hits {
344
365
  /**
366
+ * @public
345
367
  * <p>The total number of documents that match the search request.</p>
346
368
  */
347
369
  found?: number;
348
370
  /**
371
+ * @public
349
372
  * <p>The index of the first matching document.</p>
350
373
  */
351
374
  start?: number;
352
375
  /**
376
+ * @public
353
377
  * <p>A cursor that can be used to retrieve the next set of matching documents when you want to page through a large result set.</p>
354
378
  */
355
379
  cursor?: string;
356
380
  /**
381
+ * @public
357
382
  * <p>A document that matches the search request.</p>
358
383
  */
359
384
  hit?: Hit[];
@@ -364,37 +389,45 @@ export interface Hits {
364
389
  */
365
390
  export interface FieldStats {
366
391
  /**
392
+ * @public
367
393
  * <p>The minimum value found in the specified field in the result set.</p>
368
394
  * <p>If the field is numeric (<code>int</code>, <code>int-array</code>, <code>double</code>, or <code>double-array</code>), <code>min</code> is the string representation of a double-precision 64-bit floating point value. If the field is <code>date</code> or <code>date-array</code>, <code>min</code> is the string representation of a date with the format specified in <a href="http://tools.ietf.org/html/rfc3339">IETF RFC3339</a>: yyyy-mm-ddTHH:mm:ss.SSSZ.</p>
369
395
  */
370
396
  min?: string;
371
397
  /**
398
+ * @public
372
399
  * <p>The maximum value found in the specified field in the result set.</p>
373
400
  * <p>If the field is numeric (<code>int</code>, <code>int-array</code>, <code>double</code>, or <code>double-array</code>), <code>max</code> is the string representation of a double-precision 64-bit floating point value. If the field is <code>date</code> or <code>date-array</code>, <code>max</code> is the string representation of a date with the format specified in <a href="http://tools.ietf.org/html/rfc3339">IETF RFC3339</a>: yyyy-mm-ddTHH:mm:ss.SSSZ.</p>
374
401
  */
375
402
  max?: string;
376
403
  /**
404
+ * @public
377
405
  * <p>The number of documents that contain a value in the specified field in the result set.</p>
378
406
  */
379
407
  count?: number;
380
408
  /**
409
+ * @public
381
410
  * <p>The number of documents that do not contain a value in the specified field in the result set.</p>
382
411
  */
383
412
  missing?: number;
384
413
  /**
414
+ * @public
385
415
  * <p>The sum of the field values across the documents in the result set. <code>null</code> for date fields.</p>
386
416
  */
387
417
  sum?: number;
388
418
  /**
419
+ * @public
389
420
  * <p>The sum of all field values in the result set squared.</p>
390
421
  */
391
422
  sumOfSquares?: number;
392
423
  /**
424
+ * @public
393
425
  * <p>The average of the values found in the specified field in the result set.</p>
394
426
  * <p>If the field is numeric (<code>int</code>, <code>int-array</code>, <code>double</code>, or <code>double-array</code>), <code>mean</code> is the string representation of a double-precision 64-bit floating point value. If the field is <code>date</code> or <code>date-array</code>, <code>mean</code> is the string representation of a date with the format specified in <a href="http://tools.ietf.org/html/rfc3339">IETF RFC3339</a>: yyyy-mm-ddTHH:mm:ss.SSSZ.</p>
395
427
  */
396
428
  mean?: string;
397
429
  /**
430
+ * @public
398
431
  * <p>The standard deviation of the values in the specified field in the result set.</p>
399
432
  */
400
433
  stddev?: number;
@@ -405,10 +438,12 @@ export interface FieldStats {
405
438
  */
406
439
  export interface SearchStatus {
407
440
  /**
441
+ * @public
408
442
  * <p>How long it took to process the request, in milliseconds.</p>
409
443
  */
410
444
  timems?: number;
411
445
  /**
446
+ * @public
412
447
  * <p>The encrypted resource ID for the request.</p>
413
448
  */
414
449
  rid?: string;
@@ -419,18 +454,22 @@ export interface SearchStatus {
419
454
  */
420
455
  export interface SearchResponse {
421
456
  /**
457
+ * @public
422
458
  * <p>The status information returned for the search request.</p>
423
459
  */
424
460
  status?: SearchStatus;
425
461
  /**
462
+ * @public
426
463
  * <p>The documents that match the search criteria.</p>
427
464
  */
428
465
  hits?: Hits;
429
466
  /**
467
+ * @public
430
468
  * <p>The requested facet information.</p>
431
469
  */
432
470
  facets?: Record<string, BucketInfo>;
433
471
  /**
472
+ * @public
434
473
  * <p>The requested field statistics information.</p>
435
474
  */
436
475
  stats?: Record<string, FieldStats>;
@@ -441,14 +480,17 @@ export interface SearchResponse {
441
480
  */
442
481
  export interface SuggestRequest {
443
482
  /**
483
+ * @public
444
484
  * <p>Specifies the string for which you want to get suggestions.</p>
445
485
  */
446
486
  query: string | undefined;
447
487
  /**
488
+ * @public
448
489
  * <p>Specifies the name of the suggester to use to find suggested matches.</p>
449
490
  */
450
491
  suggester: string | undefined;
451
492
  /**
493
+ * @public
452
494
  * <p>Specifies the maximum number of suggestions to return. </p>
453
495
  */
454
496
  size?: number;
@@ -459,10 +501,12 @@ export interface SuggestRequest {
459
501
  */
460
502
  export interface SuggestStatus {
461
503
  /**
504
+ * @public
462
505
  * <p>How long it took to process the request, in milliseconds.</p>
463
506
  */
464
507
  timems?: number;
465
508
  /**
509
+ * @public
466
510
  * <p>The encrypted resource ID for the request.</p>
467
511
  */
468
512
  rid?: string;
@@ -473,14 +517,17 @@ export interface SuggestStatus {
473
517
  */
474
518
  export interface SuggestionMatch {
475
519
  /**
520
+ * @public
476
521
  * <p>The string that matches the query string specified in the <code>SuggestRequest</code>. </p>
477
522
  */
478
523
  suggestion?: string;
479
524
  /**
525
+ * @public
480
526
  * <p>The relevance score of a suggested match.</p>
481
527
  */
482
528
  score?: number;
483
529
  /**
530
+ * @public
484
531
  * <p>The document ID of the suggested document.</p>
485
532
  */
486
533
  id?: string;
@@ -491,14 +538,17 @@ export interface SuggestionMatch {
491
538
  */
492
539
  export interface SuggestModel {
493
540
  /**
541
+ * @public
494
542
  * <p>The query string specified in the suggest request.</p>
495
543
  */
496
544
  query?: string;
497
545
  /**
546
+ * @public
498
547
  * <p>The number of documents that were found to match the query string.</p>
499
548
  */
500
549
  found?: number;
501
550
  /**
551
+ * @public
502
552
  * <p>The documents that match the query string.</p>
503
553
  */
504
554
  suggestions?: SuggestionMatch[];
@@ -509,10 +559,12 @@ export interface SuggestModel {
509
559
  */
510
560
  export interface SuggestResponse {
511
561
  /**
562
+ * @public
512
563
  * <p>The status of a <code>SuggestRequest</code>. Contains the resource ID (<code>rid</code>) and how long it took to process the request (<code>timems</code>).</p>
513
564
  */
514
565
  status?: SuggestStatus;
515
566
  /**
567
+ * @public
516
568
  * <p>Container for the matching search suggestion information.</p>
517
569
  */
518
570
  suggest?: SuggestModel;
@@ -525,6 +577,7 @@ export declare class DocumentServiceException extends __BaseException {
525
577
  readonly name: "DocumentServiceException";
526
578
  readonly $fault: "client";
527
579
  /**
580
+ * @public
528
581
  * <p>The return status of a document upload request, <code>error</code> or <code>success</code>.</p>
529
582
  */
530
583
  status?: string;
@@ -543,10 +596,12 @@ export type ContentType = "application/json" | "application/xml";
543
596
  */
544
597
  export interface UploadDocumentsRequest {
545
598
  /**
599
+ * @public
546
600
  * <p>A batch of documents formatted in JSON or HTML.</p>
547
601
  */
548
602
  documents: StreamingBlobTypes | undefined;
549
603
  /**
604
+ * @public
550
605
  * <p>The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:</p>
551
606
  * <ul>
552
607
  * <li>application/json</li>
@@ -561,6 +616,7 @@ export interface UploadDocumentsRequest {
561
616
  */
562
617
  export interface DocumentServiceWarning {
563
618
  /**
619
+ * @public
564
620
  * <p>The description for a warning returned by the document service.</p>
565
621
  */
566
622
  message?: string;
@@ -571,18 +627,22 @@ export interface DocumentServiceWarning {
571
627
  */
572
628
  export interface UploadDocumentsResponse {
573
629
  /**
630
+ * @public
574
631
  * <p>The status of an <code>UploadDocumentsRequest</code>.</p>
575
632
  */
576
633
  status?: string;
577
634
  /**
635
+ * @public
578
636
  * <p>The number of documents that were added to the search domain.</p>
579
637
  */
580
638
  adds?: number;
581
639
  /**
640
+ * @public
582
641
  * <p>The number of documents that were deleted from the search domain.</p>
583
642
  */
584
643
  deletes?: number;
585
644
  /**
645
+ * @public
586
646
  * <p>Any warnings returned by the document service about the documents being uploaded.</p>
587
647
  */
588
648
  warnings?: DocumentServiceWarning[];
@@ -1,5 +1,6 @@
1
1
  export * from "./CloudSearchDomainClient";
2
2
  export * from "./CloudSearchDomain";
3
+ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
3
4
  export * from "./commands";
4
5
  export * from "./models";
5
6
  export { CloudSearchDomainServiceException } from "./models/CloudSearchDomainServiceException";
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.378.0",
4
+ "version": "3.382.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",
@@ -21,15 +21,15 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.378.0",
25
- "@aws-sdk/credential-provider-node": "3.378.0",
26
- "@aws-sdk/middleware-host-header": "3.378.0",
24
+ "@aws-sdk/client-sts": "3.382.0",
25
+ "@aws-sdk/credential-provider-node": "3.382.0",
26
+ "@aws-sdk/middleware-host-header": "3.379.1",
27
27
  "@aws-sdk/middleware-logger": "3.378.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.378.0",
29
- "@aws-sdk/middleware-signing": "3.378.0",
30
- "@aws-sdk/middleware-user-agent": "3.378.0",
29
+ "@aws-sdk/middleware-signing": "3.379.1",
30
+ "@aws-sdk/middleware-user-agent": "3.382.0",
31
31
  "@aws-sdk/types": "3.378.0",
32
- "@aws-sdk/util-endpoints": "3.378.0",
32
+ "@aws-sdk/util-endpoints": "3.382.0",
33
33
  "@aws-sdk/util-user-agent-browser": "3.378.0",
34
34
  "@aws-sdk/util-user-agent-node": "3.378.0",
35
35
  "@smithy/config-resolver": "^2.0.1",