@ibm-cloud/cloudant 0.12.10 → 0.12.11
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 +15 -15
- package/cloudant/v1.d.ts +337 -243
- package/cloudant/v1.js +199 -144
- package/cloudant/v1.js.map +1 -1
- package/package.json +7 -7
package/cloudant/v1.d.ts
CHANGED
|
@@ -121,16 +121,16 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
121
121
|
* key order.
|
|
122
122
|
* @param {string} [params.feed] - Query parameter to specify the changes feed type.
|
|
123
123
|
* @param {number} [params.heartbeat] - Query parameter to specify the period in milliseconds after which an empty
|
|
124
|
-
* line is sent in the results. Off by default and only applicable for
|
|
125
|
-
*
|
|
126
|
-
* to use a value of `60000`.
|
|
124
|
+
* line is sent in the results. Off by default and only applicable for `continuous` and `eventsource` feeds. Overrides
|
|
125
|
+
* any timeout to keep the feed alive indefinitely. May also be `true` to use a value of `60000`.
|
|
127
126
|
*
|
|
128
127
|
* **Note:** Delivery of heartbeats cannot be relied on at specific intervals. If your application runs in an
|
|
129
128
|
* environment where idle network connections may break, `heartbeat` is not suitable as a keepalive mechanism.
|
|
130
129
|
* Instead, consider one of the following options:
|
|
131
|
-
* * Use the `timeout` parameter with a value that is compatible with
|
|
132
|
-
*
|
|
133
|
-
*
|
|
130
|
+
* * Use the `timeout` parameter with a value that is compatible with
|
|
131
|
+
* your network environment.
|
|
132
|
+
* * Switch to scheduled usage of one of the non-continuous changes feed
|
|
133
|
+
* types (`normal` or `longpoll`).
|
|
134
134
|
* * Use TCP keepalive.
|
|
135
135
|
* @param {number} [params.limit] - Query parameter to specify the number of returned documents to limit the result
|
|
136
136
|
* to.
|
|
@@ -139,7 +139,11 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
139
139
|
* feeds. Default value is specified by `httpd/changes_timeout` configuration option. Note that `60000` value is also
|
|
140
140
|
* the default maximum timeout to prevent undetected dead connections.
|
|
141
141
|
* @param {string} [params.since] - Query parameter to specify to start the results from the change immediately after
|
|
142
|
-
* the given update sequence.
|
|
142
|
+
* the given update sequence. Possible values are:
|
|
143
|
+
* * `0` for all available changes (default).
|
|
144
|
+
* * `now` for future changes.
|
|
145
|
+
* * A valid update sequence, for example, from the `seq` value of a
|
|
146
|
+
* change received before.
|
|
143
147
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
144
148
|
* @returns {Promise<CloudantV1.Response<CloudantV1.DbUpdates>>}
|
|
145
149
|
* @deprecated this method is deprecated and may be removed in a future release
|
|
@@ -189,8 +193,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
189
193
|
* argument.
|
|
190
194
|
*
|
|
191
195
|
* It is important for query performance to use appropriate selectors:
|
|
192
|
-
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
193
|
-
* of a query. You should include at least one of these in a selector.
|
|
196
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
197
|
+
* `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
|
|
194
198
|
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
195
199
|
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
196
200
|
* of documents that will need to be scanned.
|
|
@@ -215,11 +219,11 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
215
219
|
*
|
|
216
220
|
* The built-in filter types are:
|
|
217
221
|
* * `_design` - Returns only changes to design documents.
|
|
218
|
-
* * `_doc_ids` - Returns changes for documents with an ID matching one
|
|
219
|
-
* `doc_ids` request body parameter. (`POST` only)
|
|
220
|
-
* * `_selector` - Returns changes for documents that match the
|
|
221
|
-
* request body parameter. The selector syntax is the same
|
|
222
|
-
* `_find`. (`POST` only)
|
|
222
|
+
* * `_doc_ids` - Returns changes for documents with an ID matching one
|
|
223
|
+
* specified in `doc_ids` request body parameter. (`POST` only)
|
|
224
|
+
* * `_selector` - Returns changes for documents that match the
|
|
225
|
+
* `selector` request body parameter. The selector syntax is the same
|
|
226
|
+
* as used for `_find`. (`POST` only)
|
|
223
227
|
* * `_view` - Returns changes for documents that match an existing map
|
|
224
228
|
* function in the view specified by the query parameter `view`.
|
|
225
229
|
*
|
|
@@ -227,19 +231,19 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
227
231
|
* `design_doc/filtername`.
|
|
228
232
|
*
|
|
229
233
|
* **Note:** For better performance use the built-in `_selector`, `_design` or `_doc_ids` filters rather than JS based
|
|
230
|
-
* `_view` or design document filters. If you need to pass values to change the filtered content use the
|
|
231
|
-
* filter type.
|
|
234
|
+
* `_view` or design document filters. If you need to pass values to change the filtered content use the
|
|
235
|
+
* `_selector` filter type.
|
|
232
236
|
* @param {number} [params.heartbeat] - Query parameter to specify the period in milliseconds after which an empty
|
|
233
|
-
* line is sent in the results. Off by default and only applicable for
|
|
234
|
-
*
|
|
235
|
-
* to use a value of `60000`.
|
|
237
|
+
* line is sent in the results. Off by default and only applicable for `continuous` and `eventsource` feeds. Overrides
|
|
238
|
+
* any timeout to keep the feed alive indefinitely. May also be `true` to use a value of `60000`.
|
|
236
239
|
*
|
|
237
240
|
* **Note:** Delivery of heartbeats cannot be relied on at specific intervals. If your application runs in an
|
|
238
241
|
* environment where idle network connections may break, `heartbeat` is not suitable as a keepalive mechanism.
|
|
239
242
|
* Instead, consider one of the following options:
|
|
240
|
-
* * Use the `timeout` parameter with a value that is compatible with
|
|
241
|
-
*
|
|
242
|
-
*
|
|
243
|
+
* * Use the `timeout` parameter with a value that is compatible with
|
|
244
|
+
* your network environment.
|
|
245
|
+
* * Switch to scheduled usage of one of the non-continuous changes feed
|
|
246
|
+
* types (`normal` or `longpoll`).
|
|
243
247
|
* * Use TCP keepalive.
|
|
244
248
|
* @param {boolean} [params.includeDocs] - Query parameter to specify whether to include the full content of the
|
|
245
249
|
* documents in the response.
|
|
@@ -251,7 +255,11 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
251
255
|
* source database as computing the seq value across many shards (especially in highly-sharded databases) is
|
|
252
256
|
* expensive.
|
|
253
257
|
* @param {string} [params.since] - Query parameter to specify to start the results from the change immediately after
|
|
254
|
-
* the given update sequence.
|
|
258
|
+
* the given update sequence. Possible values are:
|
|
259
|
+
* * `0` for all available changes (default).
|
|
260
|
+
* * `now` for future changes.
|
|
261
|
+
* * A valid update sequence, for example, from the `seq` value of a
|
|
262
|
+
* change received before.
|
|
255
263
|
* @param {string} [params.style] - Query parameter to specify how many revisions are returned in the changes array.
|
|
256
264
|
* The default, `main_only`, will only return the current "winning" revision; all_docs will return all leaf revisions
|
|
257
265
|
* (including conflicts and deleted former conflicts).
|
|
@@ -309,8 +317,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
309
317
|
* argument.
|
|
310
318
|
*
|
|
311
319
|
* It is important for query performance to use appropriate selectors:
|
|
312
|
-
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
313
|
-
* of a query. You should include at least one of these in a selector.
|
|
320
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
321
|
+
* `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
|
|
314
322
|
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
315
323
|
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
316
324
|
* of documents that will need to be scanned.
|
|
@@ -335,11 +343,11 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
335
343
|
*
|
|
336
344
|
* The built-in filter types are:
|
|
337
345
|
* * `_design` - Returns only changes to design documents.
|
|
338
|
-
* * `_doc_ids` - Returns changes for documents with an ID matching one
|
|
339
|
-
* `doc_ids` request body parameter. (`POST` only)
|
|
340
|
-
* * `_selector` - Returns changes for documents that match the
|
|
341
|
-
* request body parameter. The selector syntax is the same
|
|
342
|
-
* `_find`. (`POST` only)
|
|
346
|
+
* * `_doc_ids` - Returns changes for documents with an ID matching one
|
|
347
|
+
* specified in `doc_ids` request body parameter. (`POST` only)
|
|
348
|
+
* * `_selector` - Returns changes for documents that match the
|
|
349
|
+
* `selector` request body parameter. The selector syntax is the same
|
|
350
|
+
* as used for `_find`. (`POST` only)
|
|
343
351
|
* * `_view` - Returns changes for documents that match an existing map
|
|
344
352
|
* function in the view specified by the query parameter `view`.
|
|
345
353
|
*
|
|
@@ -347,19 +355,19 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
347
355
|
* `design_doc/filtername`.
|
|
348
356
|
*
|
|
349
357
|
* **Note:** For better performance use the built-in `_selector`, `_design` or `_doc_ids` filters rather than JS based
|
|
350
|
-
* `_view` or design document filters. If you need to pass values to change the filtered content use the
|
|
351
|
-
* filter type.
|
|
358
|
+
* `_view` or design document filters. If you need to pass values to change the filtered content use the
|
|
359
|
+
* `_selector` filter type.
|
|
352
360
|
* @param {number} [params.heartbeat] - Query parameter to specify the period in milliseconds after which an empty
|
|
353
|
-
* line is sent in the results. Off by default and only applicable for
|
|
354
|
-
*
|
|
355
|
-
* to use a value of `60000`.
|
|
361
|
+
* line is sent in the results. Off by default and only applicable for `continuous` and `eventsource` feeds. Overrides
|
|
362
|
+
* any timeout to keep the feed alive indefinitely. May also be `true` to use a value of `60000`.
|
|
356
363
|
*
|
|
357
364
|
* **Note:** Delivery of heartbeats cannot be relied on at specific intervals. If your application runs in an
|
|
358
365
|
* environment where idle network connections may break, `heartbeat` is not suitable as a keepalive mechanism.
|
|
359
366
|
* Instead, consider one of the following options:
|
|
360
|
-
* * Use the `timeout` parameter with a value that is compatible with
|
|
361
|
-
*
|
|
362
|
-
*
|
|
367
|
+
* * Use the `timeout` parameter with a value that is compatible with
|
|
368
|
+
* your network environment.
|
|
369
|
+
* * Switch to scheduled usage of one of the non-continuous changes feed
|
|
370
|
+
* types (`normal` or `longpoll`).
|
|
363
371
|
* * Use TCP keepalive.
|
|
364
372
|
* @param {boolean} [params.includeDocs] - Query parameter to specify whether to include the full content of the
|
|
365
373
|
* documents in the response.
|
|
@@ -371,7 +379,11 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
371
379
|
* source database as computing the seq value across many shards (especially in highly-sharded databases) is
|
|
372
380
|
* expensive.
|
|
373
381
|
* @param {string} [params.since] - Query parameter to specify to start the results from the change immediately after
|
|
374
|
-
* the given update sequence.
|
|
382
|
+
* the given update sequence. Possible values are:
|
|
383
|
+
* * `0` for all available changes (default).
|
|
384
|
+
* * `now` for future changes.
|
|
385
|
+
* * A valid update sequence, for example, from the `seq` value of a
|
|
386
|
+
* change received before.
|
|
375
387
|
* @param {string} [params.style] - Query parameter to specify how many revisions are returned in the changes array.
|
|
376
388
|
* The default, `main_only`, will only return the current "winning" revision; all_docs will return all leaf revisions
|
|
377
389
|
* (including conflicts and deleted former conflicts).
|
|
@@ -872,7 +884,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
872
884
|
*
|
|
873
885
|
* For creation, you must specify the document ID but you should not specify the revision.
|
|
874
886
|
*
|
|
875
|
-
* For modification, you must specify the document ID and a revision
|
|
887
|
+
* For modification, you must specify the document ID and a revision identifier.
|
|
876
888
|
*
|
|
877
889
|
* @param {Object} params - The parameters to send to the service.
|
|
878
890
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
@@ -1086,7 +1098,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1086
1098
|
* @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
|
|
1087
1099
|
* indicating the sequence id of the database the view reflects.
|
|
1088
1100
|
* @param {any} [params.endKey] - Schema for any JSON type.
|
|
1089
|
-
* @param {string} [params.endKeyDocId] -
|
|
1101
|
+
* @param {string} [params.endKeyDocId] - Stop returning rows at the specified document ID. No effect if using `group`
|
|
1102
|
+
* or not providing end key.
|
|
1090
1103
|
* @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
|
|
1091
1104
|
* reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
|
|
1092
1105
|
* groups further based on the number of array elements with the `group_level` parameter.
|
|
@@ -1094,24 +1107,27 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1094
1107
|
* uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
|
|
1095
1108
|
* number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
|
|
1096
1109
|
* complete key.
|
|
1097
|
-
* @param {any} [params.key] -
|
|
1098
|
-
*
|
|
1099
|
-
*
|
|
1110
|
+
* @param {any} [params.key] - Parameter to specify to return only rows that match the specified key. String
|
|
1111
|
+
* representation of any JSON type that matches the key type emitted by the view function.
|
|
1112
|
+
* @param {any[]} [params.keys] - Parameter to specify returning only rows that match any of the specified keys. A
|
|
1113
|
+
* JSON array of keys that match the key type emitted by the view function.
|
|
1100
1114
|
* @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
|
|
1101
1115
|
* Default is true when a reduce function is defined.
|
|
1102
1116
|
*
|
|
1103
|
-
* A default `reduce` view type can be disabled to behave like a
|
|
1117
|
+
* A default `reduce` view type can be disabled to behave like a
|
|
1118
|
+
* `map` by setting `reduce=false` explicitly.
|
|
1104
1119
|
*
|
|
1105
|
-
* Be aware that `include_docs=true`
|
|
1106
|
-
* @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of
|
|
1107
|
-
* request. The default value `false` contacts all
|
|
1108
|
-
*
|
|
1109
|
-
* expense of increased latency and decreased throughput if the selected
|
|
1110
|
-
* replicas.
|
|
1120
|
+
* Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view rows.
|
|
1121
|
+
* @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
|
|
1122
|
+
* request. The default value `false` contacts all replicas and returns the result from the first, fastest, responder.
|
|
1123
|
+
* Setting it to `true` when used in conjunction with
|
|
1124
|
+
* `update=false` may improve consistency at the expense of increased latency and decreased throughput if the selected
|
|
1125
|
+
* replica is not the fastest of the available replicas.
|
|
1111
1126
|
*
|
|
1112
1127
|
* **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
|
|
1113
1128
|
* @param {any} [params.startKey] - Schema for any JSON type.
|
|
1114
|
-
* @param {string} [params.startKeyDocId] -
|
|
1129
|
+
* @param {string} [params.startKeyDocId] - Start returning rows at the specified document ID. No effect if using
|
|
1130
|
+
* `group` or not providing start key.
|
|
1115
1131
|
* @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
|
|
1116
1132
|
* to responding to the user.
|
|
1117
1133
|
*
|
|
@@ -1151,7 +1167,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1151
1167
|
* @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
|
|
1152
1168
|
* indicating the sequence id of the database the view reflects.
|
|
1153
1169
|
* @param {any} [params.endKey] - Schema for any JSON type.
|
|
1154
|
-
* @param {string} [params.endKeyDocId] -
|
|
1170
|
+
* @param {string} [params.endKeyDocId] - Stop returning rows at the specified document ID. No effect if using `group`
|
|
1171
|
+
* or not providing end key.
|
|
1155
1172
|
* @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
|
|
1156
1173
|
* reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
|
|
1157
1174
|
* groups further based on the number of array elements with the `group_level` parameter.
|
|
@@ -1159,24 +1176,27 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1159
1176
|
* uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
|
|
1160
1177
|
* number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
|
|
1161
1178
|
* complete key.
|
|
1162
|
-
* @param {any} [params.key] -
|
|
1163
|
-
*
|
|
1164
|
-
*
|
|
1179
|
+
* @param {any} [params.key] - Parameter to specify to return only rows that match the specified key. String
|
|
1180
|
+
* representation of any JSON type that matches the key type emitted by the view function.
|
|
1181
|
+
* @param {any[]} [params.keys] - Parameter to specify returning only rows that match any of the specified keys. A
|
|
1182
|
+
* JSON array of keys that match the key type emitted by the view function.
|
|
1165
1183
|
* @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
|
|
1166
1184
|
* Default is true when a reduce function is defined.
|
|
1167
1185
|
*
|
|
1168
|
-
* A default `reduce` view type can be disabled to behave like a
|
|
1186
|
+
* A default `reduce` view type can be disabled to behave like a
|
|
1187
|
+
* `map` by setting `reduce=false` explicitly.
|
|
1169
1188
|
*
|
|
1170
|
-
* Be aware that `include_docs=true`
|
|
1171
|
-
* @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of
|
|
1172
|
-
* request. The default value `false` contacts all
|
|
1173
|
-
*
|
|
1174
|
-
* expense of increased latency and decreased throughput if the selected
|
|
1175
|
-
* replicas.
|
|
1189
|
+
* Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view rows.
|
|
1190
|
+
* @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
|
|
1191
|
+
* request. The default value `false` contacts all replicas and returns the result from the first, fastest, responder.
|
|
1192
|
+
* Setting it to `true` when used in conjunction with
|
|
1193
|
+
* `update=false` may improve consistency at the expense of increased latency and decreased throughput if the selected
|
|
1194
|
+
* replica is not the fastest of the available replicas.
|
|
1176
1195
|
*
|
|
1177
1196
|
* **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
|
|
1178
1197
|
* @param {any} [params.startKey] - Schema for any JSON type.
|
|
1179
|
-
* @param {string} [params.startKeyDocId] -
|
|
1198
|
+
* @param {string} [params.startKeyDocId] - Start returning rows at the specified document ID. No effect if using
|
|
1199
|
+
* `group` or not providing start key.
|
|
1180
1200
|
* @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
|
|
1181
1201
|
* to responding to the user.
|
|
1182
1202
|
*
|
|
@@ -1337,7 +1357,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1337
1357
|
* that are included must be indexed with the store:true option. The default is all fields.
|
|
1338
1358
|
* @param {number} [params.limit] - Limit the number of the returned documents to the specified number.
|
|
1339
1359
|
* @param {string[]} [params.sort] - Specifies the sort order of the results. In a grouped search (when group_field is
|
|
1340
|
-
* used), this parameter specifies the sort order within a group. The default sort order is relevance.
|
|
1360
|
+
* used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string
|
|
1341
1361
|
* of the form "fieldname<type>" or "-fieldname<type>" for descending order, where fieldname is the name
|
|
1342
1362
|
* of a string or number field, and type is either a number, a string, or a JSON array of strings. The type part is
|
|
1343
1363
|
* optional, and defaults to number. Some examples are "foo", "-foo", "bar<string>", "-foo<number>" and
|
|
@@ -1381,7 +1401,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1381
1401
|
* that are included must be indexed with the store:true option. The default is all fields.
|
|
1382
1402
|
* @param {number} [params.limit] - Limit the number of the returned documents to the specified number.
|
|
1383
1403
|
* @param {string[]} [params.sort] - Specifies the sort order of the results. In a grouped search (when group_field is
|
|
1384
|
-
* used), this parameter specifies the sort order within a group. The default sort order is relevance.
|
|
1404
|
+
* used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string
|
|
1385
1405
|
* of the form "fieldname<type>" or "-fieldname<type>" for descending order, where fieldname is the name
|
|
1386
1406
|
* of a string or number field, and type is either a number, a string, or a JSON array of strings. The type part is
|
|
1387
1407
|
* optional, and defaults to number. Some examples are "foo", "-foo", "bar<string>", "-foo<number>" and
|
|
@@ -1426,7 +1446,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1426
1446
|
* @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
|
|
1427
1447
|
* indicating the sequence id of the database the view reflects.
|
|
1428
1448
|
* @param {any} [params.endKey] - Schema for any JSON type.
|
|
1429
|
-
* @param {string} [params.endKeyDocId] -
|
|
1449
|
+
* @param {string} [params.endKeyDocId] - Stop returning rows at the specified document ID. No effect if using `group`
|
|
1450
|
+
* or not providing end key.
|
|
1430
1451
|
* @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
|
|
1431
1452
|
* reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
|
|
1432
1453
|
* groups further based on the number of array elements with the `group_level` parameter.
|
|
@@ -1434,17 +1455,20 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1434
1455
|
* uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
|
|
1435
1456
|
* number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
|
|
1436
1457
|
* complete key.
|
|
1437
|
-
* @param {any} [params.key] -
|
|
1438
|
-
*
|
|
1439
|
-
*
|
|
1458
|
+
* @param {any} [params.key] - Parameter to specify to return only rows that match the specified key. String
|
|
1459
|
+
* representation of any JSON type that matches the key type emitted by the view function.
|
|
1460
|
+
* @param {any[]} [params.keys] - Parameter to specify returning only rows that match any of the specified keys. A
|
|
1461
|
+
* JSON array of keys that match the key type emitted by the view function.
|
|
1440
1462
|
* @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
|
|
1441
1463
|
* Default is true when a reduce function is defined.
|
|
1442
1464
|
*
|
|
1443
|
-
* A default `reduce` view type can be disabled to behave like a
|
|
1465
|
+
* A default `reduce` view type can be disabled to behave like a
|
|
1466
|
+
* `map` by setting `reduce=false` explicitly.
|
|
1444
1467
|
*
|
|
1445
|
-
* Be aware that `include_docs=true`
|
|
1468
|
+
* Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view rows.
|
|
1446
1469
|
* @param {any} [params.startKey] - Schema for any JSON type.
|
|
1447
|
-
* @param {string} [params.startKeyDocId] -
|
|
1470
|
+
* @param {string} [params.startKeyDocId] - Start returning rows at the specified document ID. No effect if using
|
|
1471
|
+
* `group` or not providing start key.
|
|
1448
1472
|
* @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
|
|
1449
1473
|
* to responding to the user.
|
|
1450
1474
|
*
|
|
@@ -1489,7 +1513,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1489
1513
|
* @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
|
|
1490
1514
|
* indicating the sequence id of the database the view reflects.
|
|
1491
1515
|
* @param {any} [params.endKey] - Schema for any JSON type.
|
|
1492
|
-
* @param {string} [params.endKeyDocId] -
|
|
1516
|
+
* @param {string} [params.endKeyDocId] - Stop returning rows at the specified document ID. No effect if using `group`
|
|
1517
|
+
* or not providing end key.
|
|
1493
1518
|
* @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
|
|
1494
1519
|
* reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
|
|
1495
1520
|
* groups further based on the number of array elements with the `group_level` parameter.
|
|
@@ -1497,17 +1522,20 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1497
1522
|
* uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
|
|
1498
1523
|
* number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
|
|
1499
1524
|
* complete key.
|
|
1500
|
-
* @param {any} [params.key] -
|
|
1501
|
-
*
|
|
1502
|
-
*
|
|
1525
|
+
* @param {any} [params.key] - Parameter to specify to return only rows that match the specified key. String
|
|
1526
|
+
* representation of any JSON type that matches the key type emitted by the view function.
|
|
1527
|
+
* @param {any[]} [params.keys] - Parameter to specify returning only rows that match any of the specified keys. A
|
|
1528
|
+
* JSON array of keys that match the key type emitted by the view function.
|
|
1503
1529
|
* @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
|
|
1504
1530
|
* Default is true when a reduce function is defined.
|
|
1505
1531
|
*
|
|
1506
|
-
* A default `reduce` view type can be disabled to behave like a
|
|
1532
|
+
* A default `reduce` view type can be disabled to behave like a
|
|
1533
|
+
* `map` by setting `reduce=false` explicitly.
|
|
1507
1534
|
*
|
|
1508
|
-
* Be aware that `include_docs=true`
|
|
1535
|
+
* Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view rows.
|
|
1509
1536
|
* @param {any} [params.startKey] - Schema for any JSON type.
|
|
1510
|
-
* @param {string} [params.startKeyDocId] -
|
|
1537
|
+
* @param {string} [params.startKeyDocId] - Start returning rows at the specified document ID. No effect if using
|
|
1538
|
+
* `group` or not providing start key.
|
|
1511
1539
|
* @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
|
|
1512
1540
|
* to responding to the user.
|
|
1513
1541
|
*
|
|
@@ -1550,8 +1578,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1550
1578
|
* argument.
|
|
1551
1579
|
*
|
|
1552
1580
|
* It is important for query performance to use appropriate selectors:
|
|
1553
|
-
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
1554
|
-
* of a query. You should include at least one of these in a selector.
|
|
1581
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
1582
|
+
* `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
|
|
1555
1583
|
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
1556
1584
|
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
1557
1585
|
* of documents that will need to be scanned.
|
|
@@ -1560,7 +1588,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1560
1588
|
* combination and conditional operators.
|
|
1561
1589
|
*
|
|
1562
1590
|
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
1563
|
-
* @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes.
|
|
1591
|
+
* @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
|
|
1564
1592
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
1565
1593
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
1566
1594
|
* existing conflicts in the document.
|
|
@@ -1577,7 +1605,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1577
1605
|
* provided, is the next level of sort. The field can be any field, using dotted notation if desired for sub-document
|
|
1578
1606
|
* fields.
|
|
1579
1607
|
*
|
|
1580
|
-
* For example in JSON:
|
|
1608
|
+
* For example in JSON:
|
|
1609
|
+
* `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
|
|
1581
1610
|
*
|
|
1582
1611
|
* When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
|
|
1583
1612
|
* same order and each object in the sort array has a single key or at least one of the sort fields is included in the
|
|
@@ -1643,8 +1672,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1643
1672
|
* argument.
|
|
1644
1673
|
*
|
|
1645
1674
|
* It is important for query performance to use appropriate selectors:
|
|
1646
|
-
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
1647
|
-
* of a query. You should include at least one of these in a selector.
|
|
1675
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
1676
|
+
* `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
|
|
1648
1677
|
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
1649
1678
|
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
1650
1679
|
* of documents that will need to be scanned.
|
|
@@ -1653,7 +1682,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1653
1682
|
* combination and conditional operators.
|
|
1654
1683
|
*
|
|
1655
1684
|
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
1656
|
-
* @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes.
|
|
1685
|
+
* @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
|
|
1657
1686
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
1658
1687
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
1659
1688
|
* existing conflicts in the document.
|
|
@@ -1670,7 +1699,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1670
1699
|
* provided, is the next level of sort. The field can be any field, using dotted notation if desired for sub-document
|
|
1671
1700
|
* fields.
|
|
1672
1701
|
*
|
|
1673
|
-
* For example in JSON:
|
|
1702
|
+
* For example in JSON:
|
|
1703
|
+
* `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
|
|
1674
1704
|
*
|
|
1675
1705
|
* When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
|
|
1676
1706
|
* same order and each object in the sort array has a single key or at least one of the sort fields is included in the
|
|
@@ -1736,8 +1766,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1736
1766
|
* argument.
|
|
1737
1767
|
*
|
|
1738
1768
|
* It is important for query performance to use appropriate selectors:
|
|
1739
|
-
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
1740
|
-
* of a query. You should include at least one of these in a selector.
|
|
1769
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
1770
|
+
* `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
|
|
1741
1771
|
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
1742
1772
|
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
1743
1773
|
* of documents that will need to be scanned.
|
|
@@ -1746,7 +1776,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1746
1776
|
* combination and conditional operators.
|
|
1747
1777
|
*
|
|
1748
1778
|
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
1749
|
-
* @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes.
|
|
1779
|
+
* @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
|
|
1750
1780
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
1751
1781
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
1752
1782
|
* existing conflicts in the document.
|
|
@@ -1763,7 +1793,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1763
1793
|
* provided, is the next level of sort. The field can be any field, using dotted notation if desired for sub-document
|
|
1764
1794
|
* fields.
|
|
1765
1795
|
*
|
|
1766
|
-
* For example in JSON:
|
|
1796
|
+
* For example in JSON:
|
|
1797
|
+
* `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
|
|
1767
1798
|
*
|
|
1768
1799
|
* When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
|
|
1769
1800
|
* same order and each object in the sort array has a single key or at least one of the sort fields is included in the
|
|
@@ -1818,8 +1849,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1818
1849
|
* argument.
|
|
1819
1850
|
*
|
|
1820
1851
|
* It is important for query performance to use appropriate selectors:
|
|
1821
|
-
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
1822
|
-
* of a query. You should include at least one of these in a selector.
|
|
1852
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
1853
|
+
* `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
|
|
1823
1854
|
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
1824
1855
|
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
1825
1856
|
* of documents that will need to be scanned.
|
|
@@ -1828,7 +1859,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1828
1859
|
* combination and conditional operators.
|
|
1829
1860
|
*
|
|
1830
1861
|
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
1831
|
-
* @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes.
|
|
1862
|
+
* @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
|
|
1832
1863
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
1833
1864
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
1834
1865
|
* existing conflicts in the document.
|
|
@@ -1845,7 +1876,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1845
1876
|
* provided, is the next level of sort. The field can be any field, using dotted notation if desired for sub-document
|
|
1846
1877
|
* fields.
|
|
1847
1878
|
*
|
|
1848
|
-
* For example in JSON:
|
|
1879
|
+
* For example in JSON:
|
|
1880
|
+
* `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
|
|
1849
1881
|
*
|
|
1850
1882
|
* When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
|
|
1851
1883
|
* same order and each object in the sort array has a single key or at least one of the sort fields is included in the
|
|
@@ -1910,8 +1942,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1910
1942
|
* argument.
|
|
1911
1943
|
*
|
|
1912
1944
|
* It is important for query performance to use appropriate selectors:
|
|
1913
|
-
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
1914
|
-
* of a query. You should include at least one of these in a selector.
|
|
1945
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
1946
|
+
* `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
|
|
1915
1947
|
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
1916
1948
|
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
1917
1949
|
* of documents that will need to be scanned.
|
|
@@ -1920,7 +1952,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1920
1952
|
* combination and conditional operators.
|
|
1921
1953
|
*
|
|
1922
1954
|
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
1923
|
-
* @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes.
|
|
1955
|
+
* @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
|
|
1924
1956
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
1925
1957
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
1926
1958
|
* existing conflicts in the document.
|
|
@@ -1937,7 +1969,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1937
1969
|
* provided, is the next level of sort. The field can be any field, using dotted notation if desired for sub-document
|
|
1938
1970
|
* fields.
|
|
1939
1971
|
*
|
|
1940
|
-
* For example in JSON:
|
|
1972
|
+
* For example in JSON:
|
|
1973
|
+
* `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
|
|
1941
1974
|
*
|
|
1942
1975
|
* When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
|
|
1943
1976
|
* same order and each object in the sort array has a single key or at least one of the sort fields is included in the
|
|
@@ -2002,8 +2035,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2002
2035
|
* argument.
|
|
2003
2036
|
*
|
|
2004
2037
|
* It is important for query performance to use appropriate selectors:
|
|
2005
|
-
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
2006
|
-
* of a query. You should include at least one of these in a selector.
|
|
2038
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
2039
|
+
* `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector.
|
|
2007
2040
|
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
2008
2041
|
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
2009
2042
|
* of documents that will need to be scanned.
|
|
@@ -2012,7 +2045,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2012
2045
|
* combination and conditional operators.
|
|
2013
2046
|
*
|
|
2014
2047
|
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
2015
|
-
* @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes.
|
|
2048
|
+
* @param {boolean} [params.allowFallback] - Whether to allow fallback to other indexes. Default is true.
|
|
2016
2049
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
2017
2050
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
2018
2051
|
* existing conflicts in the document.
|
|
@@ -2029,7 +2062,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2029
2062
|
* provided, is the next level of sort. The field can be any field, using dotted notation if desired for sub-document
|
|
2030
2063
|
* fields.
|
|
2031
2064
|
*
|
|
2032
|
-
* For example in JSON:
|
|
2065
|
+
* For example in JSON:
|
|
2066
|
+
* `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
|
|
2033
2067
|
*
|
|
2034
2068
|
* When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
|
|
2035
2069
|
* same order and each object in the sort array has a single key or at least one of the sort fields is included in the
|
|
@@ -2150,7 +2184,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2150
2184
|
* that are included must be indexed with the store:true option. The default is all fields.
|
|
2151
2185
|
* @param {number} [params.limit] - Limit the number of the returned documents to the specified number.
|
|
2152
2186
|
* @param {string[]} [params.sort] - Specifies the sort order of the results. In a grouped search (when group_field is
|
|
2153
|
-
* used), this parameter specifies the sort order within a group. The default sort order is relevance.
|
|
2187
|
+
* used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string
|
|
2154
2188
|
* of the form "fieldname<type>" or "-fieldname<type>" for descending order, where fieldname is the name
|
|
2155
2189
|
* of a string or number field, and type is either a number, a string, or a JSON array of strings. The type part is
|
|
2156
2190
|
* optional, and defaults to number. Some examples are "foo", "-foo", "bar<string>", "-foo<number>" and
|
|
@@ -2211,7 +2245,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2211
2245
|
* that are included must be indexed with the store:true option. The default is all fields.
|
|
2212
2246
|
* @param {number} [params.limit] - Limit the number of the returned documents to the specified number.
|
|
2213
2247
|
* @param {string[]} [params.sort] - Specifies the sort order of the results. In a grouped search (when group_field is
|
|
2214
|
-
* used), this parameter specifies the sort order within a group. The default sort order is relevance.
|
|
2248
|
+
* used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string
|
|
2215
2249
|
* of the form "fieldname<type>" or "-fieldname<type>" for descending order, where fieldname is the name
|
|
2216
2250
|
* of a string or number field, and type is either a number, a string, or a JSON array of strings. The type part is
|
|
2217
2251
|
* optional, and defaults to number. Some examples are "foo", "-foo", "bar<string>", "-foo<number>" and
|
|
@@ -2863,8 +2897,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2863
2897
|
/**
|
|
2864
2898
|
* Retrieve information about whether the server is up.
|
|
2865
2899
|
*
|
|
2866
|
-
* Confirms that the server is up, running, and ready to respond to requests. If
|
|
2867
|
-
*
|
|
2900
|
+
* Confirms that the server is up, running, and ready to respond to requests. If the cluster is unavailable the
|
|
2901
|
+
* endpoint returns a `503` response code.
|
|
2868
2902
|
*
|
|
2869
2903
|
* **Tip:** The authentication for this endpoint is only enforced when using IAM.
|
|
2870
2904
|
*
|
|
@@ -2928,16 +2962,16 @@ declare namespace CloudantV1 {
|
|
|
2928
2962
|
/** Query parameter to specify the changes feed type. */
|
|
2929
2963
|
feed?: GetDbUpdatesConstants.Feed | string;
|
|
2930
2964
|
/** Query parameter to specify the period in milliseconds after which an empty line is sent in the results. Off
|
|
2931
|
-
* by default and only applicable for
|
|
2932
|
-
*
|
|
2933
|
-
* `true` to use a value of `60000`.
|
|
2965
|
+
* by default and only applicable for `continuous` and `eventsource` feeds. Overrides any timeout to keep the feed
|
|
2966
|
+
* alive indefinitely. May also be `true` to use a value of `60000`.
|
|
2934
2967
|
*
|
|
2935
2968
|
* **Note:** Delivery of heartbeats cannot be relied on at specific intervals. If your application runs in an
|
|
2936
2969
|
* environment where idle network connections may break, `heartbeat` is not suitable as a keepalive mechanism.
|
|
2937
2970
|
* Instead, consider one of the following options:
|
|
2938
|
-
* * Use the `timeout` parameter with a value that is compatible with
|
|
2939
|
-
*
|
|
2940
|
-
*
|
|
2971
|
+
* * Use the `timeout` parameter with a value that is compatible with
|
|
2972
|
+
* your network environment.
|
|
2973
|
+
* * Switch to scheduled usage of one of the non-continuous changes feed
|
|
2974
|
+
* types (`normal` or `longpoll`).
|
|
2941
2975
|
* * Use TCP keepalive.
|
|
2942
2976
|
*/
|
|
2943
2977
|
heartbeat?: number;
|
|
@@ -2950,7 +2984,11 @@ declare namespace CloudantV1 {
|
|
|
2950
2984
|
*/
|
|
2951
2985
|
timeout?: number;
|
|
2952
2986
|
/** Query parameter to specify to start the results from the change immediately after the given update sequence.
|
|
2953
|
-
*
|
|
2987
|
+
* Possible values are:
|
|
2988
|
+
* * `0` for all available changes (default).
|
|
2989
|
+
* * `now` for future changes.
|
|
2990
|
+
* * A valid update sequence, for example, from the `seq` value of a
|
|
2991
|
+
* change received before.
|
|
2954
2992
|
*/
|
|
2955
2993
|
since?: string;
|
|
2956
2994
|
}
|
|
@@ -2997,8 +3035,9 @@ declare namespace CloudantV1 {
|
|
|
2997
3035
|
* supplied argument.
|
|
2998
3036
|
*
|
|
2999
3037
|
* It is important for query performance to use appropriate selectors:
|
|
3000
|
-
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
3001
|
-
* basis of a query. You should include at least one of these in a
|
|
3038
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
3039
|
+
* `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
|
|
3040
|
+
* selector.
|
|
3002
3041
|
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
3003
3042
|
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
3004
3043
|
* the number of documents that will need to be scanned.
|
|
@@ -3031,11 +3070,11 @@ declare namespace CloudantV1 {
|
|
|
3031
3070
|
*
|
|
3032
3071
|
* The built-in filter types are:
|
|
3033
3072
|
* * `_design` - Returns only changes to design documents.
|
|
3034
|
-
* * `_doc_ids` - Returns changes for documents with an ID matching one
|
|
3035
|
-
* `doc_ids` request body parameter. (`POST` only)
|
|
3036
|
-
* * `_selector` - Returns changes for documents that match the
|
|
3037
|
-
* request body parameter. The selector syntax is the same
|
|
3038
|
-
* `_find`. (`POST` only)
|
|
3073
|
+
* * `_doc_ids` - Returns changes for documents with an ID matching one
|
|
3074
|
+
* specified in `doc_ids` request body parameter. (`POST` only)
|
|
3075
|
+
* * `_selector` - Returns changes for documents that match the
|
|
3076
|
+
* `selector` request body parameter. The selector syntax is the same
|
|
3077
|
+
* as used for `_find`. (`POST` only)
|
|
3039
3078
|
* * `_view` - Returns changes for documents that match an existing map
|
|
3040
3079
|
* function in the view specified by the query parameter `view`.
|
|
3041
3080
|
*
|
|
@@ -3048,16 +3087,16 @@ declare namespace CloudantV1 {
|
|
|
3048
3087
|
*/
|
|
3049
3088
|
filter?: string;
|
|
3050
3089
|
/** Query parameter to specify the period in milliseconds after which an empty line is sent in the results. Off
|
|
3051
|
-
* by default and only applicable for
|
|
3052
|
-
*
|
|
3053
|
-
* `true` to use a value of `60000`.
|
|
3090
|
+
* by default and only applicable for `continuous` and `eventsource` feeds. Overrides any timeout to keep the feed
|
|
3091
|
+
* alive indefinitely. May also be `true` to use a value of `60000`.
|
|
3054
3092
|
*
|
|
3055
3093
|
* **Note:** Delivery of heartbeats cannot be relied on at specific intervals. If your application runs in an
|
|
3056
3094
|
* environment where idle network connections may break, `heartbeat` is not suitable as a keepalive mechanism.
|
|
3057
3095
|
* Instead, consider one of the following options:
|
|
3058
|
-
* * Use the `timeout` parameter with a value that is compatible with
|
|
3059
|
-
*
|
|
3060
|
-
*
|
|
3096
|
+
* * Use the `timeout` parameter with a value that is compatible with
|
|
3097
|
+
* your network environment.
|
|
3098
|
+
* * Switch to scheduled usage of one of the non-continuous changes feed
|
|
3099
|
+
* types (`normal` or `longpoll`).
|
|
3061
3100
|
* * Use TCP keepalive.
|
|
3062
3101
|
*/
|
|
3063
3102
|
heartbeat?: number;
|
|
@@ -3072,7 +3111,11 @@ declare namespace CloudantV1 {
|
|
|
3072
3111
|
*/
|
|
3073
3112
|
seqInterval?: number;
|
|
3074
3113
|
/** Query parameter to specify to start the results from the change immediately after the given update sequence.
|
|
3075
|
-
*
|
|
3114
|
+
* Possible values are:
|
|
3115
|
+
* * `0` for all available changes (default).
|
|
3116
|
+
* * `now` for future changes.
|
|
3117
|
+
* * A valid update sequence, for example, from the `seq` value of a
|
|
3118
|
+
* change received before.
|
|
3076
3119
|
*/
|
|
3077
3120
|
since?: string;
|
|
3078
3121
|
/** Query parameter to specify how many revisions are returned in the changes array. The default, `main_only`,
|
|
@@ -3139,8 +3182,9 @@ declare namespace CloudantV1 {
|
|
|
3139
3182
|
* supplied argument.
|
|
3140
3183
|
*
|
|
3141
3184
|
* It is important for query performance to use appropriate selectors:
|
|
3142
|
-
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
3143
|
-
* basis of a query. You should include at least one of these in a
|
|
3185
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
3186
|
+
* `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
|
|
3187
|
+
* selector.
|
|
3144
3188
|
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
3145
3189
|
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
3146
3190
|
* the number of documents that will need to be scanned.
|
|
@@ -3173,11 +3217,11 @@ declare namespace CloudantV1 {
|
|
|
3173
3217
|
*
|
|
3174
3218
|
* The built-in filter types are:
|
|
3175
3219
|
* * `_design` - Returns only changes to design documents.
|
|
3176
|
-
* * `_doc_ids` - Returns changes for documents with an ID matching one
|
|
3177
|
-
* `doc_ids` request body parameter. (`POST` only)
|
|
3178
|
-
* * `_selector` - Returns changes for documents that match the
|
|
3179
|
-
* request body parameter. The selector syntax is the same
|
|
3180
|
-
* `_find`. (`POST` only)
|
|
3220
|
+
* * `_doc_ids` - Returns changes for documents with an ID matching one
|
|
3221
|
+
* specified in `doc_ids` request body parameter. (`POST` only)
|
|
3222
|
+
* * `_selector` - Returns changes for documents that match the
|
|
3223
|
+
* `selector` request body parameter. The selector syntax is the same
|
|
3224
|
+
* as used for `_find`. (`POST` only)
|
|
3181
3225
|
* * `_view` - Returns changes for documents that match an existing map
|
|
3182
3226
|
* function in the view specified by the query parameter `view`.
|
|
3183
3227
|
*
|
|
@@ -3190,16 +3234,16 @@ declare namespace CloudantV1 {
|
|
|
3190
3234
|
*/
|
|
3191
3235
|
filter?: string;
|
|
3192
3236
|
/** Query parameter to specify the period in milliseconds after which an empty line is sent in the results. Off
|
|
3193
|
-
* by default and only applicable for
|
|
3194
|
-
*
|
|
3195
|
-
* `true` to use a value of `60000`.
|
|
3237
|
+
* by default and only applicable for `continuous` and `eventsource` feeds. Overrides any timeout to keep the feed
|
|
3238
|
+
* alive indefinitely. May also be `true` to use a value of `60000`.
|
|
3196
3239
|
*
|
|
3197
3240
|
* **Note:** Delivery of heartbeats cannot be relied on at specific intervals. If your application runs in an
|
|
3198
3241
|
* environment where idle network connections may break, `heartbeat` is not suitable as a keepalive mechanism.
|
|
3199
3242
|
* Instead, consider one of the following options:
|
|
3200
|
-
* * Use the `timeout` parameter with a value that is compatible with
|
|
3201
|
-
*
|
|
3202
|
-
*
|
|
3243
|
+
* * Use the `timeout` parameter with a value that is compatible with
|
|
3244
|
+
* your network environment.
|
|
3245
|
+
* * Switch to scheduled usage of one of the non-continuous changes feed
|
|
3246
|
+
* types (`normal` or `longpoll`).
|
|
3203
3247
|
* * Use TCP keepalive.
|
|
3204
3248
|
*/
|
|
3205
3249
|
heartbeat?: number;
|
|
@@ -3214,7 +3258,11 @@ declare namespace CloudantV1 {
|
|
|
3214
3258
|
*/
|
|
3215
3259
|
seqInterval?: number;
|
|
3216
3260
|
/** Query parameter to specify to start the results from the change immediately after the given update sequence.
|
|
3217
|
-
*
|
|
3261
|
+
* Possible values are:
|
|
3262
|
+
* * `0` for all available changes (default).
|
|
3263
|
+
* * `now` for future changes.
|
|
3264
|
+
* * A valid update sequence, for example, from the `seq` value of a
|
|
3265
|
+
* change received before.
|
|
3218
3266
|
*/
|
|
3219
3267
|
since?: string;
|
|
3220
3268
|
/** Query parameter to specify how many revisions are returned in the changes array. The default, `main_only`,
|
|
@@ -3950,7 +3998,7 @@ declare namespace CloudantV1 {
|
|
|
3950
3998
|
updateSeq?: boolean;
|
|
3951
3999
|
/** Schema for any JSON type. */
|
|
3952
4000
|
endKey?: any;
|
|
3953
|
-
/**
|
|
4001
|
+
/** Stop returning rows at the specified document ID. No effect if using `group` or not providing end key. */
|
|
3954
4002
|
endKeyDocId?: string;
|
|
3955
4003
|
/** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
|
|
3956
4004
|
* view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the
|
|
@@ -3962,31 +4010,36 @@ declare namespace CloudantV1 {
|
|
|
3962
4010
|
* unset, results are grouped by the entire array key, returning a reduced value for each complete key.
|
|
3963
4011
|
*/
|
|
3964
4012
|
groupLevel?: number;
|
|
3965
|
-
/**
|
|
4013
|
+
/** Parameter to specify to return only rows that match the specified key. String representation of any JSON
|
|
4014
|
+
* type that matches the key type emitted by the view function.
|
|
4015
|
+
*/
|
|
3966
4016
|
key?: any;
|
|
3967
|
-
/** Parameter to specify returning only
|
|
3968
|
-
*
|
|
4017
|
+
/** Parameter to specify returning only rows that match any of the specified keys. A JSON array of keys that
|
|
4018
|
+
* match the key type emitted by the view function.
|
|
3969
4019
|
*/
|
|
3970
4020
|
keys?: any[];
|
|
3971
4021
|
/** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
|
|
3972
4022
|
* function is defined.
|
|
3973
4023
|
*
|
|
3974
|
-
* A default `reduce` view type can be disabled to behave like a
|
|
4024
|
+
* A default `reduce` view type can be disabled to behave like a
|
|
4025
|
+
* `map` by setting `reduce=false` explicitly.
|
|
3975
4026
|
*
|
|
3976
|
-
* Be aware that `include_docs=true`
|
|
4027
|
+
* Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view
|
|
4028
|
+
* rows.
|
|
3977
4029
|
*/
|
|
3978
4030
|
reduce?: boolean;
|
|
3979
|
-
/** Query parameter to specify whether use the same replica of
|
|
3980
|
-
* `false` contacts all
|
|
3981
|
-
* when used in conjunction with
|
|
3982
|
-
*
|
|
4031
|
+
/** Query parameter to specify whether use the same replica of the index on each request. The default value
|
|
4032
|
+
* `false` contacts all replicas and returns the result from the first, fastest, responder. Setting it to `true`
|
|
4033
|
+
* when used in conjunction with
|
|
4034
|
+
* `update=false` may improve consistency at the expense of increased latency and decreased throughput if the
|
|
4035
|
+
* selected replica is not the fastest of the available replicas.
|
|
3983
4036
|
*
|
|
3984
4037
|
* **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
|
|
3985
4038
|
*/
|
|
3986
4039
|
stable?: boolean;
|
|
3987
4040
|
/** Schema for any JSON type. */
|
|
3988
4041
|
startKey?: any;
|
|
3989
|
-
/**
|
|
4042
|
+
/** Start returning rows at the specified document ID. No effect if using `group` or not providing start key. */
|
|
3990
4043
|
startKeyDocId?: string;
|
|
3991
4044
|
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
|
|
3992
4045
|
*
|
|
@@ -4041,7 +4094,7 @@ declare namespace CloudantV1 {
|
|
|
4041
4094
|
updateSeq?: boolean;
|
|
4042
4095
|
/** Schema for any JSON type. */
|
|
4043
4096
|
endKey?: any;
|
|
4044
|
-
/**
|
|
4097
|
+
/** Stop returning rows at the specified document ID. No effect if using `group` or not providing end key. */
|
|
4045
4098
|
endKeyDocId?: string;
|
|
4046
4099
|
/** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
|
|
4047
4100
|
* view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the
|
|
@@ -4053,31 +4106,36 @@ declare namespace CloudantV1 {
|
|
|
4053
4106
|
* unset, results are grouped by the entire array key, returning a reduced value for each complete key.
|
|
4054
4107
|
*/
|
|
4055
4108
|
groupLevel?: number;
|
|
4056
|
-
/**
|
|
4109
|
+
/** Parameter to specify to return only rows that match the specified key. String representation of any JSON
|
|
4110
|
+
* type that matches the key type emitted by the view function.
|
|
4111
|
+
*/
|
|
4057
4112
|
key?: any;
|
|
4058
|
-
/** Parameter to specify returning only
|
|
4059
|
-
*
|
|
4113
|
+
/** Parameter to specify returning only rows that match any of the specified keys. A JSON array of keys that
|
|
4114
|
+
* match the key type emitted by the view function.
|
|
4060
4115
|
*/
|
|
4061
4116
|
keys?: any[];
|
|
4062
4117
|
/** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
|
|
4063
4118
|
* function is defined.
|
|
4064
4119
|
*
|
|
4065
|
-
* A default `reduce` view type can be disabled to behave like a
|
|
4120
|
+
* A default `reduce` view type can be disabled to behave like a
|
|
4121
|
+
* `map` by setting `reduce=false` explicitly.
|
|
4066
4122
|
*
|
|
4067
|
-
* Be aware that `include_docs=true`
|
|
4123
|
+
* Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view
|
|
4124
|
+
* rows.
|
|
4068
4125
|
*/
|
|
4069
4126
|
reduce?: boolean;
|
|
4070
|
-
/** Query parameter to specify whether use the same replica of
|
|
4071
|
-
* `false` contacts all
|
|
4072
|
-
* when used in conjunction with
|
|
4073
|
-
*
|
|
4127
|
+
/** Query parameter to specify whether use the same replica of the index on each request. The default value
|
|
4128
|
+
* `false` contacts all replicas and returns the result from the first, fastest, responder. Setting it to `true`
|
|
4129
|
+
* when used in conjunction with
|
|
4130
|
+
* `update=false` may improve consistency at the expense of increased latency and decreased throughput if the
|
|
4131
|
+
* selected replica is not the fastest of the available replicas.
|
|
4074
4132
|
*
|
|
4075
4133
|
* **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
|
|
4076
4134
|
*/
|
|
4077
4135
|
stable?: boolean;
|
|
4078
4136
|
/** Schema for any JSON type. */
|
|
4079
4137
|
startKey?: any;
|
|
4080
|
-
/**
|
|
4138
|
+
/** Start returning rows at the specified document ID. No effect if using `group` or not providing start key. */
|
|
4081
4139
|
startKeyDocId?: string;
|
|
4082
4140
|
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
|
|
4083
4141
|
*
|
|
@@ -4250,7 +4308,7 @@ declare namespace CloudantV1 {
|
|
|
4250
4308
|
/** Limit the number of the returned documents to the specified number. */
|
|
4251
4309
|
limit?: number;
|
|
4252
4310
|
/** Specifies the sort order of the results. In a grouped search (when group_field is used), this parameter
|
|
4253
|
-
* specifies the sort order within a group. The default sort order is relevance.
|
|
4311
|
+
* specifies the sort order within a group. The default sort order is relevance. A JSON string of the form
|
|
4254
4312
|
* "fieldname<type>" or "-fieldname<type>" for descending order, where fieldname is the name of a
|
|
4255
4313
|
* string or number field, and type is either a number, a string, or a JSON array of strings. The type part is
|
|
4256
4314
|
* optional, and defaults to number. Some examples are "foo", "-foo", "bar<string>", "-foo<number>" and
|
|
@@ -4307,7 +4365,7 @@ declare namespace CloudantV1 {
|
|
|
4307
4365
|
/** Limit the number of the returned documents to the specified number. */
|
|
4308
4366
|
limit?: number;
|
|
4309
4367
|
/** Specifies the sort order of the results. In a grouped search (when group_field is used), this parameter
|
|
4310
|
-
* specifies the sort order within a group. The default sort order is relevance.
|
|
4368
|
+
* specifies the sort order within a group. The default sort order is relevance. A JSON string of the form
|
|
4311
4369
|
* "fieldname<type>" or "-fieldname<type>" for descending order, where fieldname is the name of a
|
|
4312
4370
|
* string or number field, and type is either a number, a string, or a JSON array of strings. The type part is
|
|
4313
4371
|
* optional, and defaults to number. Some examples are "foo", "-foo", "bar<string>", "-foo<number>" and
|
|
@@ -4363,7 +4421,7 @@ declare namespace CloudantV1 {
|
|
|
4363
4421
|
updateSeq?: boolean;
|
|
4364
4422
|
/** Schema for any JSON type. */
|
|
4365
4423
|
endKey?: any;
|
|
4366
|
-
/**
|
|
4424
|
+
/** Stop returning rows at the specified document ID. No effect if using `group` or not providing end key. */
|
|
4367
4425
|
endKeyDocId?: string;
|
|
4368
4426
|
/** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
|
|
4369
4427
|
* view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the
|
|
@@ -4375,23 +4433,27 @@ declare namespace CloudantV1 {
|
|
|
4375
4433
|
* unset, results are grouped by the entire array key, returning a reduced value for each complete key.
|
|
4376
4434
|
*/
|
|
4377
4435
|
groupLevel?: number;
|
|
4378
|
-
/**
|
|
4436
|
+
/** Parameter to specify to return only rows that match the specified key. String representation of any JSON
|
|
4437
|
+
* type that matches the key type emitted by the view function.
|
|
4438
|
+
*/
|
|
4379
4439
|
key?: any;
|
|
4380
|
-
/** Parameter to specify returning only
|
|
4381
|
-
*
|
|
4440
|
+
/** Parameter to specify returning only rows that match any of the specified keys. A JSON array of keys that
|
|
4441
|
+
* match the key type emitted by the view function.
|
|
4382
4442
|
*/
|
|
4383
4443
|
keys?: any[];
|
|
4384
4444
|
/** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
|
|
4385
4445
|
* function is defined.
|
|
4386
4446
|
*
|
|
4387
|
-
* A default `reduce` view type can be disabled to behave like a
|
|
4447
|
+
* A default `reduce` view type can be disabled to behave like a
|
|
4448
|
+
* `map` by setting `reduce=false` explicitly.
|
|
4388
4449
|
*
|
|
4389
|
-
* Be aware that `include_docs=true`
|
|
4450
|
+
* Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view
|
|
4451
|
+
* rows.
|
|
4390
4452
|
*/
|
|
4391
4453
|
reduce?: boolean;
|
|
4392
4454
|
/** Schema for any JSON type. */
|
|
4393
4455
|
startKey?: any;
|
|
4394
|
-
/**
|
|
4456
|
+
/** Start returning rows at the specified document ID. No effect if using `group` or not providing start key. */
|
|
4395
4457
|
startKeyDocId?: string;
|
|
4396
4458
|
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
|
|
4397
4459
|
*
|
|
@@ -4448,7 +4510,7 @@ declare namespace CloudantV1 {
|
|
|
4448
4510
|
updateSeq?: boolean;
|
|
4449
4511
|
/** Schema for any JSON type. */
|
|
4450
4512
|
endKey?: any;
|
|
4451
|
-
/**
|
|
4513
|
+
/** Stop returning rows at the specified document ID. No effect if using `group` or not providing end key. */
|
|
4452
4514
|
endKeyDocId?: string;
|
|
4453
4515
|
/** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
|
|
4454
4516
|
* view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the
|
|
@@ -4460,23 +4522,27 @@ declare namespace CloudantV1 {
|
|
|
4460
4522
|
* unset, results are grouped by the entire array key, returning a reduced value for each complete key.
|
|
4461
4523
|
*/
|
|
4462
4524
|
groupLevel?: number;
|
|
4463
|
-
/**
|
|
4525
|
+
/** Parameter to specify to return only rows that match the specified key. String representation of any JSON
|
|
4526
|
+
* type that matches the key type emitted by the view function.
|
|
4527
|
+
*/
|
|
4464
4528
|
key?: any;
|
|
4465
|
-
/** Parameter to specify returning only
|
|
4466
|
-
*
|
|
4529
|
+
/** Parameter to specify returning only rows that match any of the specified keys. A JSON array of keys that
|
|
4530
|
+
* match the key type emitted by the view function.
|
|
4467
4531
|
*/
|
|
4468
4532
|
keys?: any[];
|
|
4469
4533
|
/** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
|
|
4470
4534
|
* function is defined.
|
|
4471
4535
|
*
|
|
4472
|
-
* A default `reduce` view type can be disabled to behave like a
|
|
4536
|
+
* A default `reduce` view type can be disabled to behave like a
|
|
4537
|
+
* `map` by setting `reduce=false` explicitly.
|
|
4473
4538
|
*
|
|
4474
|
-
* Be aware that `include_docs=true`
|
|
4539
|
+
* Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view
|
|
4540
|
+
* rows.
|
|
4475
4541
|
*/
|
|
4476
4542
|
reduce?: boolean;
|
|
4477
4543
|
/** Schema for any JSON type. */
|
|
4478
4544
|
startKey?: any;
|
|
4479
|
-
/**
|
|
4545
|
+
/** Start returning rows at the specified document ID. No effect if using `group` or not providing start key. */
|
|
4480
4546
|
startKeyDocId?: string;
|
|
4481
4547
|
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
|
|
4482
4548
|
*
|
|
@@ -4524,8 +4590,9 @@ declare namespace CloudantV1 {
|
|
|
4524
4590
|
* supplied argument.
|
|
4525
4591
|
*
|
|
4526
4592
|
* It is important for query performance to use appropriate selectors:
|
|
4527
|
-
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
4528
|
-
* basis of a query. You should include at least one of these in a
|
|
4593
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
4594
|
+
* `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
|
|
4595
|
+
* selector.
|
|
4529
4596
|
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
4530
4597
|
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
4531
4598
|
* the number of documents that will need to be scanned.
|
|
@@ -4536,7 +4603,7 @@ declare namespace CloudantV1 {
|
|
|
4536
4603
|
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
4537
4604
|
*/
|
|
4538
4605
|
selector: JsonObject;
|
|
4539
|
-
/** Whether to allow fallback to other indexes.
|
|
4606
|
+
/** Whether to allow fallback to other indexes. Default is true. */
|
|
4540
4607
|
allowFallback?: boolean;
|
|
4541
4608
|
/** Opaque bookmark token used when paginating results. */
|
|
4542
4609
|
bookmark?: string;
|
|
@@ -4561,7 +4628,8 @@ declare namespace CloudantV1 {
|
|
|
4561
4628
|
* first field name and direction pair is the topmost level of sort. The second pair, if provided, is the next
|
|
4562
4629
|
* level of sort. The field can be any field, using dotted notation if desired for sub-document fields.
|
|
4563
4630
|
*
|
|
4564
|
-
* For example in JSON:
|
|
4631
|
+
* For example in JSON:
|
|
4632
|
+
* `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
|
|
4565
4633
|
*
|
|
4566
4634
|
* When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
|
|
4567
4635
|
* same order and each object in the sort array has a single key or at least one of the sort fields is included in
|
|
@@ -4628,8 +4696,9 @@ declare namespace CloudantV1 {
|
|
|
4628
4696
|
* supplied argument.
|
|
4629
4697
|
*
|
|
4630
4698
|
* It is important for query performance to use appropriate selectors:
|
|
4631
|
-
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
4632
|
-
* basis of a query. You should include at least one of these in a
|
|
4699
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
4700
|
+
* `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
|
|
4701
|
+
* selector.
|
|
4633
4702
|
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
4634
4703
|
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
4635
4704
|
* the number of documents that will need to be scanned.
|
|
@@ -4640,7 +4709,7 @@ declare namespace CloudantV1 {
|
|
|
4640
4709
|
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
4641
4710
|
*/
|
|
4642
4711
|
selector: JsonObject;
|
|
4643
|
-
/** Whether to allow fallback to other indexes.
|
|
4712
|
+
/** Whether to allow fallback to other indexes. Default is true. */
|
|
4644
4713
|
allowFallback?: boolean;
|
|
4645
4714
|
/** Opaque bookmark token used when paginating results. */
|
|
4646
4715
|
bookmark?: string;
|
|
@@ -4665,7 +4734,8 @@ declare namespace CloudantV1 {
|
|
|
4665
4734
|
* first field name and direction pair is the topmost level of sort. The second pair, if provided, is the next
|
|
4666
4735
|
* level of sort. The field can be any field, using dotted notation if desired for sub-document fields.
|
|
4667
4736
|
*
|
|
4668
|
-
* For example in JSON:
|
|
4737
|
+
* For example in JSON:
|
|
4738
|
+
* `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
|
|
4669
4739
|
*
|
|
4670
4740
|
* When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
|
|
4671
4741
|
* same order and each object in the sort array has a single key or at least one of the sort fields is included in
|
|
@@ -4732,8 +4802,9 @@ declare namespace CloudantV1 {
|
|
|
4732
4802
|
* supplied argument.
|
|
4733
4803
|
*
|
|
4734
4804
|
* It is important for query performance to use appropriate selectors:
|
|
4735
|
-
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
4736
|
-
* basis of a query. You should include at least one of these in a
|
|
4805
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
4806
|
+
* `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
|
|
4807
|
+
* selector.
|
|
4737
4808
|
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
4738
4809
|
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
4739
4810
|
* the number of documents that will need to be scanned.
|
|
@@ -4744,7 +4815,7 @@ declare namespace CloudantV1 {
|
|
|
4744
4815
|
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
4745
4816
|
*/
|
|
4746
4817
|
selector: JsonObject;
|
|
4747
|
-
/** Whether to allow fallback to other indexes.
|
|
4818
|
+
/** Whether to allow fallback to other indexes. Default is true. */
|
|
4748
4819
|
allowFallback?: boolean;
|
|
4749
4820
|
/** Opaque bookmark token used when paginating results. */
|
|
4750
4821
|
bookmark?: string;
|
|
@@ -4769,7 +4840,8 @@ declare namespace CloudantV1 {
|
|
|
4769
4840
|
* first field name and direction pair is the topmost level of sort. The second pair, if provided, is the next
|
|
4770
4841
|
* level of sort. The field can be any field, using dotted notation if desired for sub-document fields.
|
|
4771
4842
|
*
|
|
4772
|
-
* For example in JSON:
|
|
4843
|
+
* For example in JSON:
|
|
4844
|
+
* `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
|
|
4773
4845
|
*
|
|
4774
4846
|
* When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
|
|
4775
4847
|
* same order and each object in the sort array has a single key or at least one of the sort fields is included in
|
|
@@ -4834,8 +4906,9 @@ declare namespace CloudantV1 {
|
|
|
4834
4906
|
* supplied argument.
|
|
4835
4907
|
*
|
|
4836
4908
|
* It is important for query performance to use appropriate selectors:
|
|
4837
|
-
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
4838
|
-
* basis of a query. You should include at least one of these in a
|
|
4909
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
4910
|
+
* `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
|
|
4911
|
+
* selector.
|
|
4839
4912
|
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
4840
4913
|
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
4841
4914
|
* the number of documents that will need to be scanned.
|
|
@@ -4846,7 +4919,7 @@ declare namespace CloudantV1 {
|
|
|
4846
4919
|
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
4847
4920
|
*/
|
|
4848
4921
|
selector: JsonObject;
|
|
4849
|
-
/** Whether to allow fallback to other indexes.
|
|
4922
|
+
/** Whether to allow fallback to other indexes. Default is true. */
|
|
4850
4923
|
allowFallback?: boolean;
|
|
4851
4924
|
/** Opaque bookmark token used when paginating results. */
|
|
4852
4925
|
bookmark?: string;
|
|
@@ -4871,7 +4944,8 @@ declare namespace CloudantV1 {
|
|
|
4871
4944
|
* first field name and direction pair is the topmost level of sort. The second pair, if provided, is the next
|
|
4872
4945
|
* level of sort. The field can be any field, using dotted notation if desired for sub-document fields.
|
|
4873
4946
|
*
|
|
4874
|
-
* For example in JSON:
|
|
4947
|
+
* For example in JSON:
|
|
4948
|
+
* `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
|
|
4875
4949
|
*
|
|
4876
4950
|
* When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
|
|
4877
4951
|
* same order and each object in the sort array has a single key or at least one of the sort fields is included in
|
|
@@ -4942,8 +5016,9 @@ declare namespace CloudantV1 {
|
|
|
4942
5016
|
* supplied argument.
|
|
4943
5017
|
*
|
|
4944
5018
|
* It is important for query performance to use appropriate selectors:
|
|
4945
|
-
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
4946
|
-
* basis of a query. You should include at least one of these in a
|
|
5019
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
5020
|
+
* `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
|
|
5021
|
+
* selector.
|
|
4947
5022
|
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
4948
5023
|
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
4949
5024
|
* the number of documents that will need to be scanned.
|
|
@@ -4954,7 +5029,7 @@ declare namespace CloudantV1 {
|
|
|
4954
5029
|
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
4955
5030
|
*/
|
|
4956
5031
|
selector: JsonObject;
|
|
4957
|
-
/** Whether to allow fallback to other indexes.
|
|
5032
|
+
/** Whether to allow fallback to other indexes. Default is true. */
|
|
4958
5033
|
allowFallback?: boolean;
|
|
4959
5034
|
/** Opaque bookmark token used when paginating results. */
|
|
4960
5035
|
bookmark?: string;
|
|
@@ -4979,7 +5054,8 @@ declare namespace CloudantV1 {
|
|
|
4979
5054
|
* first field name and direction pair is the topmost level of sort. The second pair, if provided, is the next
|
|
4980
5055
|
* level of sort. The field can be any field, using dotted notation if desired for sub-document fields.
|
|
4981
5056
|
*
|
|
4982
|
-
* For example in JSON:
|
|
5057
|
+
* For example in JSON:
|
|
5058
|
+
* `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
|
|
4983
5059
|
*
|
|
4984
5060
|
* When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
|
|
4985
5061
|
* same order and each object in the sort array has a single key or at least one of the sort fields is included in
|
|
@@ -5050,8 +5126,9 @@ declare namespace CloudantV1 {
|
|
|
5050
5126
|
* supplied argument.
|
|
5051
5127
|
*
|
|
5052
5128
|
* It is important for query performance to use appropriate selectors:
|
|
5053
|
-
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
5054
|
-
* basis of a query. You should include at least one of these in a
|
|
5129
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
5130
|
+
* `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
|
|
5131
|
+
* selector.
|
|
5055
5132
|
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
5056
5133
|
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
5057
5134
|
* the number of documents that will need to be scanned.
|
|
@@ -5062,7 +5139,7 @@ declare namespace CloudantV1 {
|
|
|
5062
5139
|
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
5063
5140
|
*/
|
|
5064
5141
|
selector: JsonObject;
|
|
5065
|
-
/** Whether to allow fallback to other indexes.
|
|
5142
|
+
/** Whether to allow fallback to other indexes. Default is true. */
|
|
5066
5143
|
allowFallback?: boolean;
|
|
5067
5144
|
/** Opaque bookmark token used when paginating results. */
|
|
5068
5145
|
bookmark?: string;
|
|
@@ -5087,7 +5164,8 @@ declare namespace CloudantV1 {
|
|
|
5087
5164
|
* first field name and direction pair is the topmost level of sort. The second pair, if provided, is the next
|
|
5088
5165
|
* level of sort. The field can be any field, using dotted notation if desired for sub-document fields.
|
|
5089
5166
|
*
|
|
5090
|
-
* For example in JSON:
|
|
5167
|
+
* For example in JSON:
|
|
5168
|
+
* `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
|
|
5091
5169
|
*
|
|
5092
5170
|
* When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
|
|
5093
5171
|
* same order and each object in the sort array has a single key or at least one of the sort fields is included in
|
|
@@ -5280,7 +5358,7 @@ declare namespace CloudantV1 {
|
|
|
5280
5358
|
/** Limit the number of the returned documents to the specified number. */
|
|
5281
5359
|
limit?: number;
|
|
5282
5360
|
/** Specifies the sort order of the results. In a grouped search (when group_field is used), this parameter
|
|
5283
|
-
* specifies the sort order within a group. The default sort order is relevance.
|
|
5361
|
+
* specifies the sort order within a group. The default sort order is relevance. A JSON string of the form
|
|
5284
5362
|
* "fieldname<type>" or "-fieldname<type>" for descending order, where fieldname is the name of a
|
|
5285
5363
|
* string or number field, and type is either a number, a string, or a JSON array of strings. The type part is
|
|
5286
5364
|
* optional, and defaults to number. Some examples are "foo", "-foo", "bar<string>", "-foo<number>" and
|
|
@@ -5365,7 +5443,7 @@ declare namespace CloudantV1 {
|
|
|
5365
5443
|
/** Limit the number of the returned documents to the specified number. */
|
|
5366
5444
|
limit?: number;
|
|
5367
5445
|
/** Specifies the sort order of the results. In a grouped search (when group_field is used), this parameter
|
|
5368
|
-
* specifies the sort order within a group. The default sort order is relevance.
|
|
5446
|
+
* specifies the sort order within a group. The default sort order is relevance. A JSON string of the form
|
|
5369
5447
|
* "fieldname<type>" or "-fieldname<type>" for descending order, where fieldname is the name of a
|
|
5370
5448
|
* string or number field, and type is either a number, a string, or a JSON array of strings. The type part is
|
|
5371
5449
|
* optional, and defaults to number. Some examples are "foo", "-foo", "bar<string>", "-foo<number>" and
|
|
@@ -6726,7 +6804,7 @@ declare namespace CloudantV1 {
|
|
|
6726
6804
|
/** The engine used for the database. */
|
|
6727
6805
|
engine?: string;
|
|
6728
6806
|
/** An opaque string to detect whether a database has been recreated. The field name is for compatibility with
|
|
6729
|
-
* old replicator versions. Do not use the value to infer timing
|
|
6807
|
+
* old replicator versions. Do not use the value to infer timing information. Typically only used by replicators.
|
|
6730
6808
|
*/
|
|
6731
6809
|
instanceStartTime: string;
|
|
6732
6810
|
/** Information about database's partitioned indexes. */
|
|
@@ -6980,11 +7058,13 @@ declare namespace CloudantV1 {
|
|
|
6980
7058
|
*
|
|
6981
7059
|
* * `newDoc` - New version of document that will be stored
|
|
6982
7060
|
* from the update request.
|
|
6983
|
-
* * `oldDoc` - Previous version of document that is already
|
|
6984
|
-
*
|
|
6985
|
-
*
|
|
6986
|
-
*
|
|
6987
|
-
*
|
|
7061
|
+
* * `oldDoc` - Previous version of document that is already
|
|
7062
|
+
* stored.
|
|
7063
|
+
* * `userCtx` - User Context Object, containing information
|
|
7064
|
+
* about the user writing the document (if present), see the
|
|
7065
|
+
* `UserContext`.
|
|
7066
|
+
* * `secObj` - Security Object, with lists of database security
|
|
7067
|
+
* roles, see the `SecurityObject`.
|
|
6988
7068
|
*/
|
|
6989
7069
|
validateDocUpdate?: string;
|
|
6990
7070
|
/** Schema for design document views. */
|
|
@@ -7365,8 +7445,9 @@ declare namespace CloudantV1 {
|
|
|
7365
7445
|
* supplied argument.
|
|
7366
7446
|
*
|
|
7367
7447
|
* It is important for query performance to use appropriate selectors:
|
|
7368
|
-
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
7369
|
-
* basis of a query. You should include at least one of these in a
|
|
7448
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
7449
|
+
* `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
|
|
7450
|
+
* selector.
|
|
7370
7451
|
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
7371
7452
|
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
7372
7453
|
* the number of documents that will need to be scanned.
|
|
@@ -7568,7 +7649,8 @@ declare namespace CloudantV1 {
|
|
|
7568
7649
|
* The full list of possible reason codes is following:
|
|
7569
7650
|
*
|
|
7570
7651
|
* * alphabetically_comes_after: json
|
|
7571
|
-
* There is another suitable index whose name comes before that of
|
|
7652
|
+
* There is another suitable index whose name comes before that of
|
|
7653
|
+
* this index.
|
|
7572
7654
|
* * empty_selector: text
|
|
7573
7655
|
* "text" indexes do not support queries with empty selectors.
|
|
7574
7656
|
* * excluded_by_user: any use_index was used to manually specify the index.
|
|
@@ -7675,8 +7757,9 @@ declare namespace CloudantV1 {
|
|
|
7675
7757
|
* supplied argument.
|
|
7676
7758
|
*
|
|
7677
7759
|
* It is important for query performance to use appropriate selectors:
|
|
7678
|
-
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
7679
|
-
* basis of a query. You should include at least one of these in a
|
|
7760
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
7761
|
+
* `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
|
|
7762
|
+
* selector.
|
|
7680
7763
|
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
7681
7764
|
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
7682
7765
|
* the number of documents that will need to be scanned.
|
|
@@ -8155,8 +8238,9 @@ declare namespace CloudantV1 {
|
|
|
8155
8238
|
* supplied argument.
|
|
8156
8239
|
*
|
|
8157
8240
|
* It is important for query performance to use appropriate selectors:
|
|
8158
|
-
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
8159
|
-
* basis of a query. You should include at least one of these in a
|
|
8241
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and
|
|
8242
|
+
* `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a
|
|
8243
|
+
* selector.
|
|
8160
8244
|
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
8161
8245
|
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
8162
8246
|
* the number of documents that will need to be scanned.
|
|
@@ -8551,21 +8635,23 @@ declare namespace CloudantV1 {
|
|
|
8551
8635
|
* the document as a parameter, extracts some data from it, and then calls the `index` function to index that data.
|
|
8552
8636
|
* The index function takes 2, or optionally 3, parameters.
|
|
8553
8637
|
*
|
|
8554
|
-
* * The first parameter is the name of the field you intend to use
|
|
8555
|
-
* querying the index. If the special value `"default"` is used
|
|
8556
|
-
* define the name, you do not have to specify a field name
|
|
8557
|
-
*
|
|
8558
|
-
*
|
|
8559
|
-
*
|
|
8638
|
+
* * The first parameter is the name of the field you intend to use
|
|
8639
|
+
* when querying the index. If the special value `"default"` is used
|
|
8640
|
+
* when you define the name, you do not have to specify a field name
|
|
8641
|
+
* at query time.
|
|
8642
|
+
* * The second parameter is the data to be indexed. This data must be
|
|
8643
|
+
* only a string, number, or boolean. Other types will cause an error
|
|
8644
|
+
* to be thrown by the index function call.
|
|
8560
8645
|
* * The optional third parameter is a JavaScript object with these
|
|
8561
8646
|
* properties:
|
|
8562
8647
|
*
|
|
8563
8648
|
* * `facet` - boolean, default `false` - Creates a faceted index.
|
|
8564
|
-
* * `index` - boolean, default `true` - If set to `false`, the
|
|
8565
|
-
* cannot be used for searches, but can still be retrieved
|
|
8566
|
-
* index if `store` is set to `true`.
|
|
8567
|
-
* * `store` - boolean, default `true` - If true, the value is
|
|
8568
|
-
* in the search result; otherwise, the value is not
|
|
8649
|
+
* * `index` - boolean, default `true` - If set to `false`, the
|
|
8650
|
+
* data cannot be used for searches, but can still be retrieved
|
|
8651
|
+
* from the index if `store` is set to `true`.
|
|
8652
|
+
* * `store` - boolean, default `true` - If true, the value is
|
|
8653
|
+
* returned in the search result; otherwise, the value is not
|
|
8654
|
+
* returned.
|
|
8569
8655
|
*/
|
|
8570
8656
|
index: string;
|
|
8571
8657
|
static serialize(obj: any): SearchIndexDefinition.Transport;
|
|
@@ -8748,7 +8834,7 @@ declare namespace CloudantV1 {
|
|
|
8748
8834
|
}
|
|
8749
8835
|
}
|
|
8750
8836
|
/**
|
|
8751
|
-
* Schema for a security document.
|
|
8837
|
+
* Schema for a Cloudant security document.
|
|
8752
8838
|
*/
|
|
8753
8839
|
export class Security {
|
|
8754
8840
|
/** Schema for names and roles to map to a database permission. */
|
|
@@ -8958,6 +9044,8 @@ declare namespace CloudantV1 {
|
|
|
8958
9044
|
* Schema for information about the up state of the server.
|
|
8959
9045
|
*/
|
|
8960
9046
|
export class UpInformation {
|
|
9047
|
+
/** cluster. */
|
|
9048
|
+
cluster?: string;
|
|
8961
9049
|
/** seeds. */
|
|
8962
9050
|
seeds?: JsonObject;
|
|
8963
9051
|
/** status. */
|
|
@@ -8975,6 +9063,7 @@ declare namespace CloudantV1 {
|
|
|
8975
9063
|
}
|
|
8976
9064
|
}
|
|
8977
9065
|
interface Transport {
|
|
9066
|
+
cluster?: string;
|
|
8978
9067
|
seeds?: JsonObject;
|
|
8979
9068
|
status: string;
|
|
8980
9069
|
}
|
|
@@ -9094,7 +9183,7 @@ declare namespace CloudantV1 {
|
|
|
9094
9183
|
updateSeq?: boolean;
|
|
9095
9184
|
/** Schema for any JSON type. */
|
|
9096
9185
|
endKey?: any | null;
|
|
9097
|
-
/**
|
|
9186
|
+
/** Stop returning rows at the specified document ID. No effect if using `group` or not providing end key. */
|
|
9098
9187
|
endKeyDocId?: string;
|
|
9099
9188
|
/** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
|
|
9100
9189
|
* view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the
|
|
@@ -9106,31 +9195,36 @@ declare namespace CloudantV1 {
|
|
|
9106
9195
|
* unset, results are grouped by the entire array key, returning a reduced value for each complete key.
|
|
9107
9196
|
*/
|
|
9108
9197
|
groupLevel?: number;
|
|
9109
|
-
/**
|
|
9198
|
+
/** Parameter to specify to return only rows that match the specified key. String representation of any JSON
|
|
9199
|
+
* type that matches the key type emitted by the view function.
|
|
9200
|
+
*/
|
|
9110
9201
|
key?: any | null;
|
|
9111
|
-
/** Parameter to specify returning only
|
|
9112
|
-
*
|
|
9202
|
+
/** Parameter to specify returning only rows that match any of the specified keys. A JSON array of keys that
|
|
9203
|
+
* match the key type emitted by the view function.
|
|
9113
9204
|
*/
|
|
9114
9205
|
keys?: any[];
|
|
9115
9206
|
/** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
|
|
9116
9207
|
* function is defined.
|
|
9117
9208
|
*
|
|
9118
|
-
* A default `reduce` view type can be disabled to behave like a
|
|
9209
|
+
* A default `reduce` view type can be disabled to behave like a
|
|
9210
|
+
* `map` by setting `reduce=false` explicitly.
|
|
9119
9211
|
*
|
|
9120
|
-
* Be aware that `include_docs=true`
|
|
9212
|
+
* Be aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view
|
|
9213
|
+
* rows.
|
|
9121
9214
|
*/
|
|
9122
9215
|
reduce?: boolean;
|
|
9123
|
-
/** Query parameter to specify whether use the same replica of
|
|
9124
|
-
* `false` contacts all
|
|
9125
|
-
* when used in conjunction with
|
|
9126
|
-
*
|
|
9216
|
+
/** Query parameter to specify whether use the same replica of the index on each request. The default value
|
|
9217
|
+
* `false` contacts all replicas and returns the result from the first, fastest, responder. Setting it to `true`
|
|
9218
|
+
* when used in conjunction with
|
|
9219
|
+
* `update=false` may improve consistency at the expense of increased latency and decreased throughput if the
|
|
9220
|
+
* selected replica is not the fastest of the available replicas.
|
|
9127
9221
|
*
|
|
9128
9222
|
* **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
|
|
9129
9223
|
*/
|
|
9130
9224
|
stable?: boolean;
|
|
9131
9225
|
/** Schema for any JSON type. */
|
|
9132
9226
|
startKey?: any | null;
|
|
9133
|
-
/**
|
|
9227
|
+
/** Start returning rows at the specified document ID. No effect if using `group` or not providing start key. */
|
|
9134
9228
|
startKeyDocId?: string;
|
|
9135
9229
|
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
|
|
9136
9230
|
*
|