@ibm-cloud/cloudant 0.10.1 → 0.10.2
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/README.md +76 -11
- package/auth/sessionTokenManager.d.ts +1 -1
- package/cloudant/features/changesFollower.d.ts +1 -2
- package/cloudant/features/changesFollower.js +2 -2
- package/cloudant/features/changesFollower.js.map +1 -1
- package/cloudant/features/changesResultItemStream.d.ts +2 -2
- package/cloudant/features/changesResultIterator.d.ts +1 -2
- package/cloudant/features/changesResultIterator.js +2 -2
- package/cloudant/features/changesResultIterator.js.map +1 -1
- package/cloudant/features/stream.d.ts +1 -1
- package/cloudant/features/stream.js +2 -2
- package/cloudant/features/stream.js.map +1 -1
- package/cloudant/v1.d.ts +340 -99
- package/cloudant/v1.js +225 -80
- package/cloudant/v1.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +6 -2
- package/index.js.map +1 -1
- package/lib/cloudantBaseService.js +4 -4
- package/lib/cloudantBaseService.js.map +1 -1
- package/lib/common.js +6 -30
- package/lib/common.js.map +1 -1
- package/package.json +15 -11
package/cloudant/v1.d.ts
CHANGED
|
@@ -66,18 +66,6 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
66
66
|
* @returns {Promise<CloudantV1.Response<CloudantV1.ServerInformation>>}
|
|
67
67
|
*/
|
|
68
68
|
getServerInformation(params?: CloudantV1.GetServerInformationParams): Promise<CloudantV1.Response<CloudantV1.ServerInformation>>;
|
|
69
|
-
/**
|
|
70
|
-
* Retrieve cluster membership information.
|
|
71
|
-
*
|
|
72
|
-
* Displays the nodes that are part of the cluster as `cluster_nodes`. The field, `all_nodes`, displays all nodes this
|
|
73
|
-
* node knows about, including the ones that are part of the cluster. This endpoint is useful when you set up a
|
|
74
|
-
* cluster.
|
|
75
|
-
*
|
|
76
|
-
* @param {Object} [params] - The parameters to send to the service.
|
|
77
|
-
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
78
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.MembershipInformation>>}
|
|
79
|
-
*/
|
|
80
|
-
getMembershipInformation(params?: CloudantV1.GetMembershipInformationParams): Promise<CloudantV1.Response<CloudantV1.MembershipInformation>>;
|
|
81
69
|
/**
|
|
82
70
|
* Retrieve one or more UUIDs.
|
|
83
71
|
*
|
|
@@ -111,7 +99,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
111
99
|
*
|
|
112
100
|
* @param {Object} params - The parameters to send to the service.
|
|
113
101
|
* @param {number} params.blocks - A number of blocks of throughput units. A block consists of 100 reads/sec, 50
|
|
114
|
-
* writes/sec, and 5 global queries/sec of provisioned throughput capacity.
|
|
102
|
+
* writes/sec, and 5 global queries/sec of provisioned throughput capacity. Not available for some plans.
|
|
115
103
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
116
104
|
* @returns {Promise<CloudantV1.Response<CloudantV1.CapacityThroughputInformation>>}
|
|
117
105
|
*/
|
|
@@ -198,13 +186,19 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
198
186
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
199
187
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
200
188
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
201
|
-
* argument.
|
|
202
|
-
*
|
|
189
|
+
* argument.
|
|
190
|
+
*
|
|
191
|
+
* It is important for query performance to use appropriate selectors:
|
|
203
192
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
204
193
|
* of a query. You should include at least one of these in a selector.
|
|
194
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
195
|
+
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
196
|
+
* of documents that will need to be scanned.
|
|
197
|
+
*
|
|
198
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
199
|
+
* combination and conditional operators.
|
|
205
200
|
*
|
|
206
|
-
* For further reference see
|
|
207
|
-
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
201
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
208
202
|
* @param {string} [params.lastEventId] - Header parameter to specify the ID of the last events received by the server
|
|
209
203
|
* on a previous connection. Overrides `since` query parameter.
|
|
210
204
|
* @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
|
|
@@ -312,13 +306,19 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
312
306
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
313
307
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
314
308
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
315
|
-
* argument.
|
|
316
|
-
*
|
|
309
|
+
* argument.
|
|
310
|
+
*
|
|
311
|
+
* It is important for query performance to use appropriate selectors:
|
|
317
312
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
318
313
|
* of a query. You should include at least one of these in a selector.
|
|
314
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
315
|
+
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
316
|
+
* of documents that will need to be scanned.
|
|
319
317
|
*
|
|
320
|
-
*
|
|
321
|
-
*
|
|
318
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
319
|
+
* combination and conditional operators.
|
|
320
|
+
*
|
|
321
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
322
322
|
* @param {string} [params.lastEventId] - Header parameter to specify the ID of the last events received by the server
|
|
323
323
|
* on a previous connection. Overrides `since` query parameter.
|
|
324
324
|
* @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
|
|
@@ -466,6 +466,10 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
466
466
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
467
467
|
* @param {boolean} [params.partitioned] - Query parameter to specify whether to enable database partitions when
|
|
468
468
|
* creating a database.
|
|
469
|
+
*
|
|
470
|
+
* Before using read the
|
|
471
|
+
* [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partitioned-databases-database-partitioning)
|
|
472
|
+
* to understand the limitations and appropriate use cases.
|
|
469
473
|
* @param {number} [params.q] - The number of shards in the database. Each shard is a partition of the hash value
|
|
470
474
|
* range. Cloudant recommends using the default value for most databases. However, if your database is expected to be
|
|
471
475
|
* larger than 250 GB or have a lot of indexes, you may need to adjust the settings. In these cases, it's best to
|
|
@@ -881,6 +885,9 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
881
885
|
* @param {boolean} [params.newEdits] - Query parameter to specify whether to prevent insertion of conflicting
|
|
882
886
|
* document revisions. If false, a well-formed _rev must be included in the document. False is used by the replicator
|
|
883
887
|
* to insert documents into the target database even if that leads to the creation of conflicts.
|
|
888
|
+
*
|
|
889
|
+
* Avoid using this parameter, since this option applies document revisions without checking for conflicts, so it is
|
|
890
|
+
* very easy to accidentally end up with a large number of conflicts.
|
|
884
891
|
* @param {string} [params.rev] - Query parameter to specify a document revision.
|
|
885
892
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
886
893
|
* @returns {Promise<CloudantV1.Response<CloudantV1.DocumentResult>>}
|
|
@@ -976,6 +983,9 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
976
983
|
* @param {boolean} [params.newEdits] - Query parameter to specify whether to prevent insertion of conflicting
|
|
977
984
|
* document revisions. If false, a well-formed _rev must be included in the document. False is used by the replicator
|
|
978
985
|
* to insert documents into the target database even if that leads to the creation of conflicts.
|
|
986
|
+
*
|
|
987
|
+
* Avoid using this parameter, since this option applies document revisions without checking for conflicts, so it is
|
|
988
|
+
* very easy to accidentally end up with a large number of conflicts.
|
|
979
989
|
* @param {string} [params.rev] - Query parameter to specify a document revision.
|
|
980
990
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
981
991
|
* @returns {Promise<CloudantV1.Response<CloudantV1.DocumentResult>>}
|
|
@@ -1089,6 +1099,10 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1089
1099
|
* A JSON array of keys that match the key type emitted by the view function.
|
|
1090
1100
|
* @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
|
|
1091
1101
|
* Default is true when a reduce function is defined.
|
|
1102
|
+
*
|
|
1103
|
+
* A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
|
|
1104
|
+
*
|
|
1105
|
+
* Be aware that `include_docs=true` can only be used with `map` views.
|
|
1092
1106
|
* @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
|
|
1093
1107
|
* request. The default value `false` contacts all replicas and returns the result from the first, fastest,
|
|
1094
1108
|
* responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the
|
|
@@ -1150,6 +1164,10 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1150
1164
|
* A JSON array of keys that match the key type emitted by the view function.
|
|
1151
1165
|
* @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
|
|
1152
1166
|
* Default is true when a reduce function is defined.
|
|
1167
|
+
*
|
|
1168
|
+
* A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
|
|
1169
|
+
*
|
|
1170
|
+
* Be aware that `include_docs=true` can only be used with `map` views.
|
|
1153
1171
|
* @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
|
|
1154
1172
|
* request. The default value `false` contacts all replicas and returns the result from the first, fastest,
|
|
1155
1173
|
* responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the
|
|
@@ -1293,6 +1311,10 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1293
1311
|
* Lucene Query Parser Syntax. Search indexes are defined by an index function, similar to a map function in MapReduce
|
|
1294
1312
|
* views. The index function decides what data to index and store in the index.
|
|
1295
1313
|
*
|
|
1314
|
+
* Before using read the
|
|
1315
|
+
* [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying) to understand
|
|
1316
|
+
* the limitations and appropriate use cases.
|
|
1317
|
+
*
|
|
1296
1318
|
* @param {Object} params - The parameters to send to the service.
|
|
1297
1319
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
1298
1320
|
* @param {string} params.partitionKey - Path parameter to specify the database partition key.
|
|
@@ -1333,6 +1355,10 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1333
1355
|
* Lucene Query Parser Syntax. Search indexes are defined by an index function, similar to a map function in MapReduce
|
|
1334
1356
|
* views. The index function decides what data to index and store in the index.
|
|
1335
1357
|
*
|
|
1358
|
+
* Before using read the
|
|
1359
|
+
* [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying) to understand
|
|
1360
|
+
* the limitations and appropriate use cases.
|
|
1361
|
+
*
|
|
1336
1362
|
* @param {Object} params - The parameters to send to the service.
|
|
1337
1363
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
1338
1364
|
* @param {string} params.partitionKey - Path parameter to specify the database partition key.
|
|
@@ -1374,6 +1400,10 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1374
1400
|
* results. The remainder of the POST view functionality is identical to the `GET /{db}/_design/{ddoc}/_view/{view}`
|
|
1375
1401
|
* API.
|
|
1376
1402
|
*
|
|
1403
|
+
* Before using read the
|
|
1404
|
+
* [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying) to understand
|
|
1405
|
+
* the limitations and appropriate use cases.
|
|
1406
|
+
*
|
|
1377
1407
|
* @param {Object} params - The parameters to send to the service.
|
|
1378
1408
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
1379
1409
|
* @param {string} params.partitionKey - Path parameter to specify the database partition key.
|
|
@@ -1409,6 +1439,10 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1409
1439
|
* A JSON array of keys that match the key type emitted by the view function.
|
|
1410
1440
|
* @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
|
|
1411
1441
|
* Default is true when a reduce function is defined.
|
|
1442
|
+
*
|
|
1443
|
+
* A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
|
|
1444
|
+
*
|
|
1445
|
+
* Be aware that `include_docs=true` can only be used with `map` views.
|
|
1412
1446
|
* @param {any} [params.startKey] - Schema for any JSON type.
|
|
1413
1447
|
* @param {string} [params.startKeyDocId] - Schema for a document ID.
|
|
1414
1448
|
* @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
|
|
@@ -1429,6 +1463,10 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1429
1463
|
* results. The remainder of the POST view functionality is identical to the `GET /{db}/_design/{ddoc}/_view/{view}`
|
|
1430
1464
|
* API.
|
|
1431
1465
|
*
|
|
1466
|
+
* Before using read the
|
|
1467
|
+
* [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying) to understand
|
|
1468
|
+
* the limitations and appropriate use cases.
|
|
1469
|
+
*
|
|
1432
1470
|
* @param {Object} params - The parameters to send to the service.
|
|
1433
1471
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
1434
1472
|
* @param {string} params.partitionKey - Path parameter to specify the database partition key.
|
|
@@ -1464,6 +1502,10 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1464
1502
|
* A JSON array of keys that match the key type emitted by the view function.
|
|
1465
1503
|
* @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
|
|
1466
1504
|
* Default is true when a reduce function is defined.
|
|
1505
|
+
*
|
|
1506
|
+
* A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
|
|
1507
|
+
*
|
|
1508
|
+
* Be aware that `include_docs=true` can only be used with `map` views.
|
|
1467
1509
|
* @param {any} [params.startKey] - Schema for any JSON type.
|
|
1468
1510
|
* @param {string} [params.startKeyDocId] - Schema for a document ID.
|
|
1469
1511
|
* @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
|
|
@@ -1505,13 +1547,19 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1505
1547
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
1506
1548
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
1507
1549
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
1508
|
-
* argument.
|
|
1509
|
-
*
|
|
1550
|
+
* argument.
|
|
1551
|
+
*
|
|
1552
|
+
* It is important for query performance to use appropriate selectors:
|
|
1510
1553
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
1511
1554
|
* of a query. You should include at least one of these in a selector.
|
|
1555
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
1556
|
+
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
1557
|
+
* of documents that will need to be scanned.
|
|
1512
1558
|
*
|
|
1513
|
-
*
|
|
1514
|
-
*
|
|
1559
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
1560
|
+
* combination and conditional operators.
|
|
1561
|
+
*
|
|
1562
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
1515
1563
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
1516
1564
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
1517
1565
|
* existing conflicts in the document.
|
|
@@ -1542,6 +1590,9 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1542
1590
|
*
|
|
1543
1591
|
* It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
|
|
1544
1592
|
* indexes that might get added later.
|
|
1593
|
+
*
|
|
1594
|
+
* If the specified index does not exist or cannot answer the query then the value is ignored and another index or a
|
|
1595
|
+
* full scan of all documents will answer the query.
|
|
1545
1596
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
1546
1597
|
* @returns {Promise<CloudantV1.Response<CloudantV1.ExplainResult>>}
|
|
1547
1598
|
*/
|
|
@@ -1556,6 +1607,10 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1556
1607
|
* recommended because it has a noticeable performance impact causing a full scan of the partition with each request.
|
|
1557
1608
|
* In this case the response body will include a warning field recommending that an index is created.
|
|
1558
1609
|
*
|
|
1610
|
+
* Before using read the
|
|
1611
|
+
* [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying) to understand
|
|
1612
|
+
* the limitations and appropriate use cases.
|
|
1613
|
+
*
|
|
1559
1614
|
* @param {Object} params - The parameters to send to the service.
|
|
1560
1615
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
1561
1616
|
* @param {string} params.partitionKey - Path parameter to specify the database partition key.
|
|
@@ -1579,13 +1634,19 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1579
1634
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
1580
1635
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
1581
1636
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
1582
|
-
* argument.
|
|
1583
|
-
*
|
|
1637
|
+
* argument.
|
|
1638
|
+
*
|
|
1639
|
+
* It is important for query performance to use appropriate selectors:
|
|
1584
1640
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
1585
1641
|
* of a query. You should include at least one of these in a selector.
|
|
1642
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
1643
|
+
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
1644
|
+
* of documents that will need to be scanned.
|
|
1586
1645
|
*
|
|
1587
|
-
*
|
|
1588
|
-
*
|
|
1646
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
1647
|
+
* combination and conditional operators.
|
|
1648
|
+
*
|
|
1649
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
1589
1650
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
1590
1651
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
1591
1652
|
* existing conflicts in the document.
|
|
@@ -1616,6 +1677,9 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1616
1677
|
*
|
|
1617
1678
|
* It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
|
|
1618
1679
|
* indexes that might get added later.
|
|
1680
|
+
*
|
|
1681
|
+
* If the specified index does not exist or cannot answer the query then the value is ignored and another index or a
|
|
1682
|
+
* full scan of all documents will answer the query.
|
|
1619
1683
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
1620
1684
|
* @returns {Promise<CloudantV1.Response<CloudantV1.FindResult>>}
|
|
1621
1685
|
*/
|
|
@@ -1630,6 +1694,10 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1630
1694
|
* recommended because it has a noticeable performance impact causing a full scan of the partition with each request.
|
|
1631
1695
|
* In this case the response body will include a warning field recommending that an index is created.
|
|
1632
1696
|
*
|
|
1697
|
+
* Before using read the
|
|
1698
|
+
* [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying) to understand
|
|
1699
|
+
* the limitations and appropriate use cases.
|
|
1700
|
+
*
|
|
1633
1701
|
* @param {Object} params - The parameters to send to the service.
|
|
1634
1702
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
1635
1703
|
* @param {string} params.partitionKey - Path parameter to specify the database partition key.
|
|
@@ -1653,13 +1721,19 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1653
1721
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
1654
1722
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
1655
1723
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
1656
|
-
* argument.
|
|
1657
|
-
*
|
|
1724
|
+
* argument.
|
|
1725
|
+
*
|
|
1726
|
+
* It is important for query performance to use appropriate selectors:
|
|
1658
1727
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
1659
1728
|
* of a query. You should include at least one of these in a selector.
|
|
1729
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
1730
|
+
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
1731
|
+
* of documents that will need to be scanned.
|
|
1660
1732
|
*
|
|
1661
|
-
*
|
|
1662
|
-
*
|
|
1733
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
1734
|
+
* combination and conditional operators.
|
|
1735
|
+
*
|
|
1736
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
1663
1737
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
1664
1738
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
1665
1739
|
* existing conflicts in the document.
|
|
@@ -1690,6 +1764,9 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1690
1764
|
*
|
|
1691
1765
|
* It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
|
|
1692
1766
|
* indexes that might get added later.
|
|
1767
|
+
*
|
|
1768
|
+
* If the specified index does not exist or cannot answer the query then the value is ignored and another index or a
|
|
1769
|
+
* full scan of all documents will answer the query.
|
|
1693
1770
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
1694
1771
|
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
1695
1772
|
*/
|
|
@@ -1724,13 +1801,19 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1724
1801
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
1725
1802
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
1726
1803
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
1727
|
-
* argument.
|
|
1728
|
-
*
|
|
1804
|
+
* argument.
|
|
1805
|
+
*
|
|
1806
|
+
* It is important for query performance to use appropriate selectors:
|
|
1729
1807
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
1730
1808
|
* of a query. You should include at least one of these in a selector.
|
|
1809
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
1810
|
+
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
1811
|
+
* of documents that will need to be scanned.
|
|
1812
|
+
*
|
|
1813
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
1814
|
+
* combination and conditional operators.
|
|
1731
1815
|
*
|
|
1732
|
-
* For further reference see
|
|
1733
|
-
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
1816
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
1734
1817
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
1735
1818
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
1736
1819
|
* existing conflicts in the document.
|
|
@@ -1761,6 +1844,9 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1761
1844
|
*
|
|
1762
1845
|
* It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
|
|
1763
1846
|
* indexes that might get added later.
|
|
1847
|
+
*
|
|
1848
|
+
* If the specified index does not exist or cannot answer the query then the value is ignored and another index or a
|
|
1849
|
+
* full scan of all documents will answer the query.
|
|
1764
1850
|
* @param {number} [params.r] - The read quorum that is needed for the result. The value defaults to 1, in which case
|
|
1765
1851
|
* the document that was found in the index is returned. If set to a higher value, each document is read from at least
|
|
1766
1852
|
* that many replicas before it is returned in the results. The request will take more time than using only the
|
|
@@ -1801,13 +1887,19 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1801
1887
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
1802
1888
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
1803
1889
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
1804
|
-
* argument.
|
|
1805
|
-
*
|
|
1890
|
+
* argument.
|
|
1891
|
+
*
|
|
1892
|
+
* It is important for query performance to use appropriate selectors:
|
|
1806
1893
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
1807
1894
|
* of a query. You should include at least one of these in a selector.
|
|
1895
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
1896
|
+
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
1897
|
+
* of documents that will need to be scanned.
|
|
1898
|
+
*
|
|
1899
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
1900
|
+
* combination and conditional operators.
|
|
1808
1901
|
*
|
|
1809
|
-
* For further reference see
|
|
1810
|
-
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
1902
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
1811
1903
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
1812
1904
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
1813
1905
|
* existing conflicts in the document.
|
|
@@ -1838,6 +1930,9 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1838
1930
|
*
|
|
1839
1931
|
* It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
|
|
1840
1932
|
* indexes that might get added later.
|
|
1933
|
+
*
|
|
1934
|
+
* If the specified index does not exist or cannot answer the query then the value is ignored and another index or a
|
|
1935
|
+
* full scan of all documents will answer the query.
|
|
1841
1936
|
* @param {number} [params.r] - The read quorum that is needed for the result. The value defaults to 1, in which case
|
|
1842
1937
|
* the document that was found in the index is returned. If set to a higher value, each document is read from at least
|
|
1843
1938
|
* that many replicas before it is returned in the results. The request will take more time than using only the
|
|
@@ -1878,13 +1973,19 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1878
1973
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
1879
1974
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
1880
1975
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
1881
|
-
* argument.
|
|
1882
|
-
*
|
|
1976
|
+
* argument.
|
|
1977
|
+
*
|
|
1978
|
+
* It is important for query performance to use appropriate selectors:
|
|
1883
1979
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
1884
1980
|
* of a query. You should include at least one of these in a selector.
|
|
1981
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
1982
|
+
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
1983
|
+
* of documents that will need to be scanned.
|
|
1885
1984
|
*
|
|
1886
|
-
*
|
|
1887
|
-
*
|
|
1985
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
1986
|
+
* combination and conditional operators.
|
|
1987
|
+
*
|
|
1988
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
1888
1989
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
1889
1990
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
1890
1991
|
* existing conflicts in the document.
|
|
@@ -1915,6 +2016,9 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1915
2016
|
*
|
|
1916
2017
|
* It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
|
|
1917
2018
|
* indexes that might get added later.
|
|
2019
|
+
*
|
|
2020
|
+
* If the specified index does not exist or cannot answer the query then the value is ignored and another index or a
|
|
2021
|
+
* full scan of all documents will answer the query.
|
|
1918
2022
|
* @param {number} [params.r] - The read quorum that is needed for the result. The value defaults to 1, in which case
|
|
1919
2023
|
* the document that was found in the index is returned. If set to a higher value, each document is read from at least
|
|
1920
2024
|
* that many replicas before it is returned in the results. The request will take more time than using only the
|
|
@@ -2228,6 +2332,9 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2228
2332
|
* @param {boolean} [params.newEdits] - Query parameter to specify whether to prevent insertion of conflicting
|
|
2229
2333
|
* document revisions. If false, a well-formed _rev must be included in the document. False is used by the replicator
|
|
2230
2334
|
* to insert documents into the target database even if that leads to the creation of conflicts.
|
|
2335
|
+
*
|
|
2336
|
+
* Avoid using this parameter, since this option applies document revisions without checking for conflicts, so it is
|
|
2337
|
+
* very easy to accidentally end up with a large number of conflicts.
|
|
2231
2338
|
* @param {string} [params.rev] - Query parameter to specify a document revision.
|
|
2232
2339
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2233
2340
|
* @returns {Promise<CloudantV1.Response<CloudantV1.DocumentResult>>}
|
|
@@ -2627,6 +2734,18 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2627
2734
|
* @returns {Promise<CloudantV1.Response<CloudantV1.ActiveTask[]>>}
|
|
2628
2735
|
*/
|
|
2629
2736
|
getActiveTasks(params?: CloudantV1.GetActiveTasksParams): Promise<CloudantV1.Response<CloudantV1.ActiveTask[]>>;
|
|
2737
|
+
/**
|
|
2738
|
+
* Retrieve cluster membership information.
|
|
2739
|
+
*
|
|
2740
|
+
* Displays the nodes that are part of the cluster as `cluster_nodes`. The field, `all_nodes`, displays all nodes this
|
|
2741
|
+
* node knows about, including the ones that are part of the cluster. This endpoint is useful when you set up a
|
|
2742
|
+
* cluster.
|
|
2743
|
+
*
|
|
2744
|
+
* @param {Object} [params] - The parameters to send to the service.
|
|
2745
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2746
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.MembershipInformation>>}
|
|
2747
|
+
*/
|
|
2748
|
+
getMembershipInformation(params?: CloudantV1.GetMembershipInformationParams): Promise<CloudantV1.Response<CloudantV1.MembershipInformation>>;
|
|
2630
2749
|
/**
|
|
2631
2750
|
* Retrieve information about whether the server is up.
|
|
2632
2751
|
*
|
|
@@ -2704,10 +2823,6 @@ declare namespace CloudantV1 {
|
|
|
2704
2823
|
interface GetServerInformationParams {
|
|
2705
2824
|
headers?: OutgoingHttpHeaders;
|
|
2706
2825
|
}
|
|
2707
|
-
/** Parameters for the `getMembershipInformation` operation. */
|
|
2708
|
-
interface GetMembershipInformationParams {
|
|
2709
|
-
headers?: OutgoingHttpHeaders;
|
|
2710
|
-
}
|
|
2711
2826
|
/** Parameters for the `getUuids` operation. */
|
|
2712
2827
|
interface GetUuidsParams {
|
|
2713
2828
|
/** Query parameter to specify the number of UUIDs to return. */
|
|
@@ -2721,7 +2836,7 @@ declare namespace CloudantV1 {
|
|
|
2721
2836
|
/** Parameters for the `putCapacityThroughputConfiguration` operation. */
|
|
2722
2837
|
interface PutCapacityThroughputConfigurationParams {
|
|
2723
2838
|
/** A number of blocks of throughput units. A block consists of 100 reads/sec, 50 writes/sec, and 5 global
|
|
2724
|
-
* queries/sec of provisioned throughput capacity.
|
|
2839
|
+
* queries/sec of provisioned throughput capacity. Not available for some plans.
|
|
2725
2840
|
*/
|
|
2726
2841
|
blocks: number;
|
|
2727
2842
|
headers?: OutgoingHttpHeaders;
|
|
@@ -2800,13 +2915,19 @@ declare namespace CloudantV1 {
|
|
|
2800
2915
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
2801
2916
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
2802
2917
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
2803
|
-
* supplied argument.
|
|
2804
|
-
*
|
|
2918
|
+
* supplied argument.
|
|
2919
|
+
*
|
|
2920
|
+
* It is important for query performance to use appropriate selectors:
|
|
2805
2921
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
2806
2922
|
* basis of a query. You should include at least one of these in a selector.
|
|
2923
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
2924
|
+
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
2925
|
+
* the number of documents that will need to be scanned.
|
|
2807
2926
|
*
|
|
2808
|
-
*
|
|
2809
|
-
*
|
|
2927
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
2928
|
+
* combination and conditional operators.
|
|
2929
|
+
*
|
|
2930
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
2810
2931
|
*/
|
|
2811
2932
|
selector?: JsonObject;
|
|
2812
2933
|
/** Header parameter to specify the ID of the last events received by the server on a previous connection.
|
|
@@ -2932,13 +3053,19 @@ declare namespace CloudantV1 {
|
|
|
2932
3053
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
2933
3054
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
2934
3055
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
2935
|
-
* supplied argument.
|
|
2936
|
-
*
|
|
3056
|
+
* supplied argument.
|
|
3057
|
+
*
|
|
3058
|
+
* It is important for query performance to use appropriate selectors:
|
|
2937
3059
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
2938
3060
|
* basis of a query. You should include at least one of these in a selector.
|
|
3061
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
3062
|
+
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
3063
|
+
* the number of documents that will need to be scanned.
|
|
2939
3064
|
*
|
|
2940
|
-
*
|
|
2941
|
-
*
|
|
3065
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
3066
|
+
* combination and conditional operators.
|
|
3067
|
+
*
|
|
3068
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
2942
3069
|
*/
|
|
2943
3070
|
selector?: JsonObject;
|
|
2944
3071
|
/** Header parameter to specify the ID of the last events received by the server on a previous connection.
|
|
@@ -3080,7 +3207,12 @@ declare namespace CloudantV1 {
|
|
|
3080
3207
|
interface PutDatabaseParams {
|
|
3081
3208
|
/** Path parameter to specify the database name. */
|
|
3082
3209
|
db: string;
|
|
3083
|
-
/** Query parameter to specify whether to enable database partitions when creating a database.
|
|
3210
|
+
/** Query parameter to specify whether to enable database partitions when creating a database.
|
|
3211
|
+
*
|
|
3212
|
+
* Before using read the
|
|
3213
|
+
* [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partitioned-databases-database-partitioning)
|
|
3214
|
+
* to understand the limitations and appropriate use cases.
|
|
3215
|
+
*/
|
|
3084
3216
|
partitioned?: boolean;
|
|
3085
3217
|
/** The number of shards in the database. Each shard is a partition of the hash value range. Cloudant recommends
|
|
3086
3218
|
* using the default value for most databases. However, if your database is expected to be larger than 250 GB or
|
|
@@ -3520,6 +3652,9 @@ declare namespace CloudantV1 {
|
|
|
3520
3652
|
/** Query parameter to specify whether to prevent insertion of conflicting document revisions. If false, a
|
|
3521
3653
|
* well-formed _rev must be included in the document. False is used by the replicator to insert documents into the
|
|
3522
3654
|
* target database even if that leads to the creation of conflicts.
|
|
3655
|
+
*
|
|
3656
|
+
* Avoid using this parameter, since this option applies document revisions without checking for conflicts, so it
|
|
3657
|
+
* is very easy to accidentally end up with a large number of conflicts.
|
|
3523
3658
|
*/
|
|
3524
3659
|
newEdits?: boolean;
|
|
3525
3660
|
/** Query parameter to specify a document revision. */
|
|
@@ -3638,6 +3773,9 @@ declare namespace CloudantV1 {
|
|
|
3638
3773
|
/** Query parameter to specify whether to prevent insertion of conflicting document revisions. If false, a
|
|
3639
3774
|
* well-formed _rev must be included in the document. False is used by the replicator to insert documents into the
|
|
3640
3775
|
* target database even if that leads to the creation of conflicts.
|
|
3776
|
+
*
|
|
3777
|
+
* Avoid using this parameter, since this option applies document revisions without checking for conflicts, so it
|
|
3778
|
+
* is very easy to accidentally end up with a large number of conflicts.
|
|
3641
3779
|
*/
|
|
3642
3780
|
newEdits?: boolean;
|
|
3643
3781
|
/** Query parameter to specify a document revision. */
|
|
@@ -3775,6 +3913,10 @@ declare namespace CloudantV1 {
|
|
|
3775
3913
|
keys?: any[];
|
|
3776
3914
|
/** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
|
|
3777
3915
|
* function is defined.
|
|
3916
|
+
*
|
|
3917
|
+
* A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
|
|
3918
|
+
*
|
|
3919
|
+
* Be aware that `include_docs=true` can only be used with `map` views.
|
|
3778
3920
|
*/
|
|
3779
3921
|
reduce?: boolean;
|
|
3780
3922
|
/** Query parameter to specify whether use the same replica of the index on each request. The default value
|
|
@@ -3863,6 +4005,10 @@ declare namespace CloudantV1 {
|
|
|
3863
4005
|
keys?: any[];
|
|
3864
4006
|
/** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
|
|
3865
4007
|
* function is defined.
|
|
4008
|
+
*
|
|
4009
|
+
* A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
|
|
4010
|
+
*
|
|
4011
|
+
* Be aware that `include_docs=true` can only be used with `map` views.
|
|
3866
4012
|
*/
|
|
3867
4013
|
reduce?: boolean;
|
|
3868
4014
|
/** Query parameter to specify whether use the same replica of the index on each request. The default value
|
|
@@ -4189,6 +4335,10 @@ declare namespace CloudantV1 {
|
|
|
4189
4335
|
keys?: any[];
|
|
4190
4336
|
/** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
|
|
4191
4337
|
* function is defined.
|
|
4338
|
+
*
|
|
4339
|
+
* A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
|
|
4340
|
+
*
|
|
4341
|
+
* Be aware that `include_docs=true` can only be used with `map` views.
|
|
4192
4342
|
*/
|
|
4193
4343
|
reduce?: boolean;
|
|
4194
4344
|
/** Schema for any JSON type. */
|
|
@@ -4271,6 +4421,10 @@ declare namespace CloudantV1 {
|
|
|
4271
4421
|
keys?: any[];
|
|
4272
4422
|
/** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
|
|
4273
4423
|
* function is defined.
|
|
4424
|
+
*
|
|
4425
|
+
* A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
|
|
4426
|
+
*
|
|
4427
|
+
* Be aware that `include_docs=true` can only be used with `map` views.
|
|
4274
4428
|
*/
|
|
4275
4429
|
reduce?: boolean;
|
|
4276
4430
|
/** Schema for any JSON type. */
|
|
@@ -4321,13 +4475,19 @@ declare namespace CloudantV1 {
|
|
|
4321
4475
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
4322
4476
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
4323
4477
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
4324
|
-
* supplied argument.
|
|
4325
|
-
*
|
|
4478
|
+
* supplied argument.
|
|
4479
|
+
*
|
|
4480
|
+
* It is important for query performance to use appropriate selectors:
|
|
4326
4481
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
4327
4482
|
* basis of a query. You should include at least one of these in a selector.
|
|
4483
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
4484
|
+
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
4485
|
+
* the number of documents that will need to be scanned.
|
|
4486
|
+
*
|
|
4487
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
4488
|
+
* combination and conditional operators.
|
|
4328
4489
|
*
|
|
4329
|
-
* For further reference see
|
|
4330
|
-
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
4490
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
4331
4491
|
*/
|
|
4332
4492
|
selector: JsonObject;
|
|
4333
4493
|
/** Opaque bookmark token used when paginating results. */
|
|
@@ -4370,6 +4530,9 @@ declare namespace CloudantV1 {
|
|
|
4370
4530
|
*
|
|
4371
4531
|
* It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
|
|
4372
4532
|
* indexes that might get added later.
|
|
4533
|
+
*
|
|
4534
|
+
* If the specified index does not exist or cannot answer the query then the value is ignored and another index or
|
|
4535
|
+
* a full scan of all documents will answer the query.
|
|
4373
4536
|
*/
|
|
4374
4537
|
useIndex?: string[];
|
|
4375
4538
|
headers?: OutgoingHttpHeaders;
|
|
@@ -4414,13 +4577,19 @@ declare namespace CloudantV1 {
|
|
|
4414
4577
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
4415
4578
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
4416
4579
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
4417
|
-
* supplied argument.
|
|
4418
|
-
*
|
|
4580
|
+
* supplied argument.
|
|
4581
|
+
*
|
|
4582
|
+
* It is important for query performance to use appropriate selectors:
|
|
4419
4583
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
4420
4584
|
* basis of a query. You should include at least one of these in a selector.
|
|
4585
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
4586
|
+
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
4587
|
+
* the number of documents that will need to be scanned.
|
|
4588
|
+
*
|
|
4589
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
4590
|
+
* combination and conditional operators.
|
|
4421
4591
|
*
|
|
4422
|
-
* For further reference see
|
|
4423
|
-
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
4592
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
4424
4593
|
*/
|
|
4425
4594
|
selector: JsonObject;
|
|
4426
4595
|
/** Opaque bookmark token used when paginating results. */
|
|
@@ -4463,6 +4632,9 @@ declare namespace CloudantV1 {
|
|
|
4463
4632
|
*
|
|
4464
4633
|
* It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
|
|
4465
4634
|
* indexes that might get added later.
|
|
4635
|
+
*
|
|
4636
|
+
* If the specified index does not exist or cannot answer the query then the value is ignored and another index or
|
|
4637
|
+
* a full scan of all documents will answer the query.
|
|
4466
4638
|
*/
|
|
4467
4639
|
useIndex?: string[];
|
|
4468
4640
|
headers?: OutgoingHttpHeaders;
|
|
@@ -4507,13 +4679,19 @@ declare namespace CloudantV1 {
|
|
|
4507
4679
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
4508
4680
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
4509
4681
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
4510
|
-
* supplied argument.
|
|
4511
|
-
*
|
|
4682
|
+
* supplied argument.
|
|
4683
|
+
*
|
|
4684
|
+
* It is important for query performance to use appropriate selectors:
|
|
4512
4685
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
4513
4686
|
* basis of a query. You should include at least one of these in a selector.
|
|
4687
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
4688
|
+
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
4689
|
+
* the number of documents that will need to be scanned.
|
|
4514
4690
|
*
|
|
4515
|
-
*
|
|
4516
|
-
*
|
|
4691
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
4692
|
+
* combination and conditional operators.
|
|
4693
|
+
*
|
|
4694
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
4517
4695
|
*/
|
|
4518
4696
|
selector: JsonObject;
|
|
4519
4697
|
/** Opaque bookmark token used when paginating results. */
|
|
@@ -4556,6 +4734,9 @@ declare namespace CloudantV1 {
|
|
|
4556
4734
|
*
|
|
4557
4735
|
* It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
|
|
4558
4736
|
* indexes that might get added later.
|
|
4737
|
+
*
|
|
4738
|
+
* If the specified index does not exist or cannot answer the query then the value is ignored and another index or
|
|
4739
|
+
* a full scan of all documents will answer the query.
|
|
4559
4740
|
*/
|
|
4560
4741
|
useIndex?: string[];
|
|
4561
4742
|
headers?: OutgoingHttpHeaders;
|
|
@@ -4598,13 +4779,19 @@ declare namespace CloudantV1 {
|
|
|
4598
4779
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
4599
4780
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
4600
4781
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
4601
|
-
* supplied argument.
|
|
4602
|
-
*
|
|
4782
|
+
* supplied argument.
|
|
4783
|
+
*
|
|
4784
|
+
* It is important for query performance to use appropriate selectors:
|
|
4603
4785
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
4604
4786
|
* basis of a query. You should include at least one of these in a selector.
|
|
4787
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
4788
|
+
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
4789
|
+
* the number of documents that will need to be scanned.
|
|
4790
|
+
*
|
|
4791
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
4792
|
+
* combination and conditional operators.
|
|
4605
4793
|
*
|
|
4606
|
-
* For further reference see
|
|
4607
|
-
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
4794
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
4608
4795
|
*/
|
|
4609
4796
|
selector: JsonObject;
|
|
4610
4797
|
/** Opaque bookmark token used when paginating results. */
|
|
@@ -4647,6 +4834,9 @@ declare namespace CloudantV1 {
|
|
|
4647
4834
|
*
|
|
4648
4835
|
* It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
|
|
4649
4836
|
* indexes that might get added later.
|
|
4837
|
+
*
|
|
4838
|
+
* If the specified index does not exist or cannot answer the query then the value is ignored and another index or
|
|
4839
|
+
* a full scan of all documents will answer the query.
|
|
4650
4840
|
*/
|
|
4651
4841
|
useIndex?: string[];
|
|
4652
4842
|
/** The read quorum that is needed for the result. The value defaults to 1, in which case the document that was
|
|
@@ -4695,13 +4885,19 @@ declare namespace CloudantV1 {
|
|
|
4695
4885
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
4696
4886
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
4697
4887
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
4698
|
-
* supplied argument.
|
|
4699
|
-
*
|
|
4888
|
+
* supplied argument.
|
|
4889
|
+
*
|
|
4890
|
+
* It is important for query performance to use appropriate selectors:
|
|
4700
4891
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
4701
4892
|
* basis of a query. You should include at least one of these in a selector.
|
|
4893
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
4894
|
+
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
4895
|
+
* the number of documents that will need to be scanned.
|
|
4702
4896
|
*
|
|
4703
|
-
*
|
|
4704
|
-
*
|
|
4897
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
4898
|
+
* combination and conditional operators.
|
|
4899
|
+
*
|
|
4900
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
4705
4901
|
*/
|
|
4706
4902
|
selector: JsonObject;
|
|
4707
4903
|
/** Opaque bookmark token used when paginating results. */
|
|
@@ -4744,6 +4940,9 @@ declare namespace CloudantV1 {
|
|
|
4744
4940
|
*
|
|
4745
4941
|
* It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
|
|
4746
4942
|
* indexes that might get added later.
|
|
4943
|
+
*
|
|
4944
|
+
* If the specified index does not exist or cannot answer the query then the value is ignored and another index or
|
|
4945
|
+
* a full scan of all documents will answer the query.
|
|
4747
4946
|
*/
|
|
4748
4947
|
useIndex?: string[];
|
|
4749
4948
|
/** The read quorum that is needed for the result. The value defaults to 1, in which case the document that was
|
|
@@ -4792,13 +4991,19 @@ declare namespace CloudantV1 {
|
|
|
4792
4991
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
4793
4992
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
4794
4993
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
4795
|
-
* supplied argument.
|
|
4796
|
-
*
|
|
4994
|
+
* supplied argument.
|
|
4995
|
+
*
|
|
4996
|
+
* It is important for query performance to use appropriate selectors:
|
|
4797
4997
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
4798
4998
|
* basis of a query. You should include at least one of these in a selector.
|
|
4999
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
5000
|
+
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
5001
|
+
* the number of documents that will need to be scanned.
|
|
5002
|
+
*
|
|
5003
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
5004
|
+
* combination and conditional operators.
|
|
4799
5005
|
*
|
|
4800
|
-
* For further reference see
|
|
4801
|
-
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
5006
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
4802
5007
|
*/
|
|
4803
5008
|
selector: JsonObject;
|
|
4804
5009
|
/** Opaque bookmark token used when paginating results. */
|
|
@@ -4841,6 +5046,9 @@ declare namespace CloudantV1 {
|
|
|
4841
5046
|
*
|
|
4842
5047
|
* It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
|
|
4843
5048
|
* indexes that might get added later.
|
|
5049
|
+
*
|
|
5050
|
+
* If the specified index does not exist or cannot answer the query then the value is ignored and another index or
|
|
5051
|
+
* a full scan of all documents will answer the query.
|
|
4844
5052
|
*/
|
|
4845
5053
|
useIndex?: string[];
|
|
4846
5054
|
/** The read quorum that is needed for the result. The value defaults to 1, in which case the document that was
|
|
@@ -5261,6 +5469,9 @@ declare namespace CloudantV1 {
|
|
|
5261
5469
|
/** Query parameter to specify whether to prevent insertion of conflicting document revisions. If false, a
|
|
5262
5470
|
* well-formed _rev must be included in the document. False is used by the replicator to insert documents into the
|
|
5263
5471
|
* target database even if that leads to the creation of conflicts.
|
|
5472
|
+
*
|
|
5473
|
+
* Avoid using this parameter, since this option applies document revisions without checking for conflicts, so it
|
|
5474
|
+
* is very easy to accidentally end up with a large number of conflicts.
|
|
5264
5475
|
*/
|
|
5265
5476
|
newEdits?: boolean;
|
|
5266
5477
|
/** Query parameter to specify a document revision. */
|
|
@@ -5608,6 +5819,10 @@ declare namespace CloudantV1 {
|
|
|
5608
5819
|
interface GetActiveTasksParams {
|
|
5609
5820
|
headers?: OutgoingHttpHeaders;
|
|
5610
5821
|
}
|
|
5822
|
+
/** Parameters for the `getMembershipInformation` operation. */
|
|
5823
|
+
interface GetMembershipInformationParams {
|
|
5824
|
+
headers?: OutgoingHttpHeaders;
|
|
5825
|
+
}
|
|
5611
5826
|
/** Parameters for the `getUpInformation` operation. */
|
|
5612
5827
|
interface GetUpInformationParams {
|
|
5613
5828
|
headers?: OutgoingHttpHeaders;
|
|
@@ -6126,7 +6341,11 @@ declare namespace CloudantV1 {
|
|
|
6126
6341
|
class BulkDocs {
|
|
6127
6342
|
/** Array of documents. */
|
|
6128
6343
|
docs: Document[];
|
|
6129
|
-
/** If `false`, prevents the database from assigning them new revision IDs. Default is `true`.
|
|
6344
|
+
/** If `false`, prevents the database from assigning them new revision IDs. Default is `true`.
|
|
6345
|
+
*
|
|
6346
|
+
* Avoid using this parameter, since this option applies document revisions without checking for conflicts, so it
|
|
6347
|
+
* is very easy to accidentally end up with a large number of conflicts.
|
|
6348
|
+
*/
|
|
6130
6349
|
newEdits?: boolean;
|
|
6131
6350
|
static serialize(obj: any): BulkDocs.Transport;
|
|
6132
6351
|
static deserialize(obj: any): BulkDocs;
|
|
@@ -7038,13 +7257,19 @@ declare namespace CloudantV1 {
|
|
|
7038
7257
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
7039
7258
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
7040
7259
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
7041
|
-
* supplied argument.
|
|
7042
|
-
*
|
|
7260
|
+
* supplied argument.
|
|
7261
|
+
*
|
|
7262
|
+
* It is important for query performance to use appropriate selectors:
|
|
7043
7263
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
7044
7264
|
* basis of a query. You should include at least one of these in a selector.
|
|
7265
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
7266
|
+
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
7267
|
+
* the number of documents that will need to be scanned.
|
|
7268
|
+
*
|
|
7269
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
7270
|
+
* combination and conditional operators.
|
|
7045
7271
|
*
|
|
7046
|
-
* For further reference see
|
|
7047
|
-
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
7272
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
7048
7273
|
*/
|
|
7049
7274
|
selector: JsonObject;
|
|
7050
7275
|
/** Schema for a list of objects with extra information on the selector to provide insights about its usability. */
|
|
@@ -7337,13 +7562,19 @@ declare namespace CloudantV1 {
|
|
|
7337
7562
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
7338
7563
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
7339
7564
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
7340
|
-
* supplied argument.
|
|
7341
|
-
*
|
|
7565
|
+
* supplied argument.
|
|
7566
|
+
*
|
|
7567
|
+
* It is important for query performance to use appropriate selectors:
|
|
7342
7568
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
7343
7569
|
* basis of a query. You should include at least one of these in a selector.
|
|
7570
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
7571
|
+
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
7572
|
+
* the number of documents that will need to be scanned.
|
|
7573
|
+
*
|
|
7574
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
7575
|
+
* combination and conditional operators.
|
|
7344
7576
|
*
|
|
7345
|
-
* For further reference see
|
|
7346
|
-
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
7577
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
7347
7578
|
*/
|
|
7348
7579
|
partialFilterSelector?: JsonObject;
|
|
7349
7580
|
static serialize(obj: any): IndexDefinition.Transport;
|
|
@@ -7811,13 +8042,19 @@ declare namespace CloudantV1 {
|
|
|
7811
8042
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
7812
8043
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
7813
8044
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
7814
|
-
* supplied argument.
|
|
7815
|
-
*
|
|
8045
|
+
* supplied argument.
|
|
8046
|
+
*
|
|
8047
|
+
* It is important for query performance to use appropriate selectors:
|
|
7816
8048
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
7817
8049
|
* basis of a query. You should include at least one of these in a selector.
|
|
8050
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
8051
|
+
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
8052
|
+
* the number of documents that will need to be scanned.
|
|
8053
|
+
*
|
|
8054
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
8055
|
+
* combination and conditional operators.
|
|
7818
8056
|
*
|
|
7819
|
-
* For further reference see
|
|
7820
|
-
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
8057
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
7821
8058
|
*/
|
|
7822
8059
|
selector?: JsonObject;
|
|
7823
8060
|
/** Start the replication at a specific sequence value. */
|
|
@@ -8546,9 +8783,9 @@ declare namespace CloudantV1 {
|
|
|
8546
8783
|
*/
|
|
8547
8784
|
class ThroughputInformation {
|
|
8548
8785
|
/** A number of blocks of throughput units. A block consists of 100 reads/sec, 50 writes/sec, and 5 global
|
|
8549
|
-
* queries/sec of provisioned throughput capacity.
|
|
8786
|
+
* queries/sec of provisioned throughput capacity. Not available for some plans.
|
|
8550
8787
|
*/
|
|
8551
|
-
blocks
|
|
8788
|
+
blocks?: number;
|
|
8552
8789
|
/** Provisioned global queries capacity in operations per second. */
|
|
8553
8790
|
query: number;
|
|
8554
8791
|
/** Provisioned reads capacity in operations per second. */
|
|
@@ -8560,7 +8797,7 @@ declare namespace CloudantV1 {
|
|
|
8560
8797
|
}
|
|
8561
8798
|
namespace ThroughputInformation {
|
|
8562
8799
|
interface Transport {
|
|
8563
|
-
blocks
|
|
8800
|
+
blocks?: number;
|
|
8564
8801
|
query: number;
|
|
8565
8802
|
read: number;
|
|
8566
8803
|
write: number;
|
|
@@ -8726,6 +8963,10 @@ declare namespace CloudantV1 {
|
|
|
8726
8963
|
keys?: any[];
|
|
8727
8964
|
/** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
|
|
8728
8965
|
* function is defined.
|
|
8966
|
+
*
|
|
8967
|
+
* A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
|
|
8968
|
+
*
|
|
8969
|
+
* Be aware that `include_docs=true` can only be used with `map` views.
|
|
8729
8970
|
*/
|
|
8730
8971
|
reduce?: boolean;
|
|
8731
8972
|
/** Query parameter to specify whether use the same replica of the index on each request. The default value
|