@ibm-cloud/cloudant 0.0.25 → 0.1.1-dev1648460925773
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 +127 -55
- package/auth/couchdbSessionAuthenticator.d.ts +1 -1
- package/auth/couchdbSessionAuthenticator.js +2 -2
- package/auth/couchdbSessionAuthenticator.js.map +1 -1
- package/cloudant/v1.d.ts +238 -95
- package/cloudant/v1.js +171 -92
- package/cloudant/v1.js.map +1 -1
- package/lib/cloudantBaseService.js.map +1 -1
- package/lib/common.d.ts +1 -1
- package/lib/common.js +3 -2
- package/lib/common.js.map +1 -1
- package/package.json +20 -17
package/cloudant/v1.d.ts
CHANGED
|
@@ -144,6 +144,12 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
144
144
|
* Requests the database changes feed in the same way as `GET /{db}/_changes` does. It is widely used with the
|
|
145
145
|
* `filter` query parameter because it allows one to pass more information to the filter.
|
|
146
146
|
*
|
|
147
|
+
* ### Note
|
|
148
|
+
*
|
|
149
|
+
* Before using the changes feed we recommend reading the
|
|
150
|
+
* [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-faq-using-changes-feed) to understand the limitations and
|
|
151
|
+
* appropriate use cases.".
|
|
152
|
+
*
|
|
147
153
|
* @param {Object} params - The parameters to send to the service.
|
|
148
154
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
149
155
|
* @param {string[]} [params.docIds] - Schema for a list of document IDs.
|
|
@@ -172,6 +178,11 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
172
178
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
173
179
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
174
180
|
* argument.
|
|
181
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
182
|
+
* of a query. You should include at least one of these in a selector.
|
|
183
|
+
*
|
|
184
|
+
* For further reference see
|
|
185
|
+
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-query#selector-syntax).
|
|
175
186
|
* @param {string} [params.lastEventId] - Header parameter to specify the ID of the last events received by the server
|
|
176
187
|
* on a previous connection. Overrides `since` query parameter.
|
|
177
188
|
* @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
|
|
@@ -229,6 +240,12 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
229
240
|
* Requests the database changes feed in the same way as `GET /{db}/_changes` does. It is widely used with the
|
|
230
241
|
* `filter` query parameter because it allows one to pass more information to the filter.
|
|
231
242
|
*
|
|
243
|
+
* ### Note
|
|
244
|
+
*
|
|
245
|
+
* Before using the changes feed we recommend reading the
|
|
246
|
+
* [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-faq-using-changes-feed) to understand the limitations and
|
|
247
|
+
* appropriate use cases.".
|
|
248
|
+
*
|
|
232
249
|
* @param {Object} params - The parameters to send to the service.
|
|
233
250
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
234
251
|
* @param {string[]} [params.docIds] - Schema for a list of document IDs.
|
|
@@ -257,6 +274,11 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
257
274
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
258
275
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
259
276
|
* argument.
|
|
277
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
278
|
+
* of a query. You should include at least one of these in a selector.
|
|
279
|
+
*
|
|
280
|
+
* For further reference see
|
|
281
|
+
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-query#selector-syntax).
|
|
260
282
|
* @param {string} [params.lastEventId] - Header parameter to specify the ID of the last events received by the server
|
|
261
283
|
* on a previous connection. Overrides `since` query parameter.
|
|
262
284
|
* @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
|
|
@@ -329,13 +351,13 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
329
351
|
* @param {Object} [params] - The parameters to send to the service.
|
|
330
352
|
* @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
|
|
331
353
|
* key order.
|
|
332
|
-
* @param {string} [params.
|
|
354
|
+
* @param {string} [params.endKey] - Query parameter to specify to stop returning records when the specified key is
|
|
333
355
|
* reached. String representation of any JSON type that matches the key type emitted by the view function.
|
|
334
356
|
* @param {number} [params.limit] - Query parameter to specify the number of returned documents to limit the result
|
|
335
357
|
* to.
|
|
336
358
|
* @param {number} [params.skip] - Query parameter to specify the number of records before starting to return the
|
|
337
359
|
* results.
|
|
338
|
-
* @param {string} [params.
|
|
360
|
+
* @param {string} [params.startKey] - Query parameter to specify to start returning records from the specified key.
|
|
339
361
|
* String representation of any JSON type that matches the key type emitted by the view function.
|
|
340
362
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
341
363
|
* @returns {Promise<CloudantV1.Response<string[]>>}
|
|
@@ -416,12 +438,15 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
416
438
|
/**
|
|
417
439
|
* Create or modify a document in a database.
|
|
418
440
|
*
|
|
419
|
-
* Creates or modifies a document in the specified database by using the supplied JSON document.
|
|
420
|
-
*
|
|
421
|
-
*
|
|
422
|
-
*
|
|
423
|
-
*
|
|
424
|
-
*
|
|
441
|
+
* Creates or modifies a document in the specified database by using the supplied JSON document.
|
|
442
|
+
*
|
|
443
|
+
* For creation, you may specify the document ID but you should not specify the revision. If you don't specify the
|
|
444
|
+
* document ID, then the server generates an ID for your document.
|
|
445
|
+
*
|
|
446
|
+
* For modification, you must specify the document ID and a revision identifier in the JSON document.
|
|
447
|
+
*
|
|
448
|
+
* If your document ID includes the `_local/` or `_design/` prefix, then this operation creates or modifies a local or
|
|
449
|
+
* a design document respectively.
|
|
425
450
|
*
|
|
426
451
|
* @param {Object} params - The parameters to send to the service.
|
|
427
452
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
@@ -458,10 +483,10 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
458
483
|
* @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
|
|
459
484
|
* @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
|
|
460
485
|
* indicating the sequence id of the database the view reflects.
|
|
461
|
-
* @param {string} [params.
|
|
486
|
+
* @param {string} [params.endKey] - Schema for a document ID.
|
|
462
487
|
* @param {string} [params.key] - Schema for a document ID.
|
|
463
488
|
* @param {string[]} [params.keys] - Schema for a list of document IDs.
|
|
464
|
-
* @param {string} [params.
|
|
489
|
+
* @param {string} [params.startKey] - Schema for a document ID.
|
|
465
490
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
466
491
|
* @returns {Promise<CloudantV1.Response<CloudantV1.AllDocsResult>>}
|
|
467
492
|
*/
|
|
@@ -491,10 +516,10 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
491
516
|
* @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
|
|
492
517
|
* @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
|
|
493
518
|
* indicating the sequence id of the database the view reflects.
|
|
494
|
-
* @param {string} [params.
|
|
519
|
+
* @param {string} [params.endKey] - Schema for a document ID.
|
|
495
520
|
* @param {string} [params.key] - Schema for a document ID.
|
|
496
521
|
* @param {string[]} [params.keys] - Schema for a list of document IDs.
|
|
497
|
-
* @param {string} [params.
|
|
522
|
+
* @param {string} [params.startKey] - Schema for a document ID.
|
|
498
523
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
499
524
|
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
500
525
|
*/
|
|
@@ -534,9 +559,9 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
534
559
|
/**
|
|
535
560
|
* Bulk modify multiple documents in a database.
|
|
536
561
|
*
|
|
537
|
-
* The bulk document API allows you to create and
|
|
538
|
-
* The basic operation is similar to creating or
|
|
539
|
-
* structure and information.
|
|
562
|
+
* The bulk document API allows you to create, update, and delete multiple documents at the same time within a single
|
|
563
|
+
* request. The basic operation is similar to creating, updating, or deleting a single document, except that you batch
|
|
564
|
+
* the document structure and information.
|
|
540
565
|
*
|
|
541
566
|
* @param {Object} params - The parameters to send to the service.
|
|
542
567
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
@@ -783,8 +808,11 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
783
808
|
/**
|
|
784
809
|
* Create or modify a document.
|
|
785
810
|
*
|
|
786
|
-
*
|
|
787
|
-
*
|
|
811
|
+
* Creates or modifies a document in the specified database.
|
|
812
|
+
*
|
|
813
|
+
* For creation, you must specify the document ID but you should not specify the revision.
|
|
814
|
+
*
|
|
815
|
+
* For modification, you must specify the document ID and a revision identifier.
|
|
788
816
|
*
|
|
789
817
|
* @param {Object} params - The parameters to send to the service.
|
|
790
818
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
@@ -941,10 +969,10 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
941
969
|
* @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
|
|
942
970
|
* @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
|
|
943
971
|
* indicating the sequence id of the database the view reflects.
|
|
944
|
-
* @param {string} [params.
|
|
972
|
+
* @param {string} [params.endKey] - Schema for a document ID.
|
|
945
973
|
* @param {string} [params.key] - Schema for a document ID.
|
|
946
974
|
* @param {string[]} [params.keys] - Schema for a list of document IDs.
|
|
947
|
-
* @param {string} [params.
|
|
975
|
+
* @param {string} [params.startKey] - Schema for a document ID.
|
|
948
976
|
* @param {string} [params.accept] - The type of the response: application/json or application/octet-stream.
|
|
949
977
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
950
978
|
* @returns {Promise<CloudantV1.Response<CloudantV1.AllDocsResult>>}
|
|
@@ -997,8 +1025,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
997
1025
|
* @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
|
|
998
1026
|
* @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
|
|
999
1027
|
* indicating the sequence id of the database the view reflects.
|
|
1000
|
-
* @param {any} [params.
|
|
1001
|
-
* @param {string} [params.
|
|
1028
|
+
* @param {any} [params.endKey] - Schema for any JSON type.
|
|
1029
|
+
* @param {string} [params.endKeyDocId] - Schema for a document ID.
|
|
1002
1030
|
* @param {boolean} [params.group] - Parameter to specify whether to group the results using the reduce function to a
|
|
1003
1031
|
* group rather than a single row. Implies reduce is true and the maximum group_level.
|
|
1004
1032
|
* @param {number} [params.groupLevel] - Parameter to specify the group level to be used. Implies group is true.
|
|
@@ -1009,8 +1037,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1009
1037
|
* Default is true when a reduce function is defined.
|
|
1010
1038
|
* @param {boolean} [params.stable] - Parameter to specify whether view results should be returned from a stable set
|
|
1011
1039
|
* of shards.
|
|
1012
|
-
* @param {any} [params.
|
|
1013
|
-
* @param {string} [params.
|
|
1040
|
+
* @param {any} [params.startKey] - Schema for any JSON type.
|
|
1041
|
+
* @param {string} [params.startKeyDocId] - Schema for a document ID.
|
|
1014
1042
|
* @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
|
|
1015
1043
|
* to responding to the user.
|
|
1016
1044
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
@@ -1045,8 +1073,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1045
1073
|
* @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
|
|
1046
1074
|
* @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
|
|
1047
1075
|
* indicating the sequence id of the database the view reflects.
|
|
1048
|
-
* @param {any} [params.
|
|
1049
|
-
* @param {string} [params.
|
|
1076
|
+
* @param {any} [params.endKey] - Schema for any JSON type.
|
|
1077
|
+
* @param {string} [params.endKeyDocId] - Schema for a document ID.
|
|
1050
1078
|
* @param {boolean} [params.group] - Parameter to specify whether to group the results using the reduce function to a
|
|
1051
1079
|
* group rather than a single row. Implies reduce is true and the maximum group_level.
|
|
1052
1080
|
* @param {number} [params.groupLevel] - Parameter to specify the group level to be used. Implies group is true.
|
|
@@ -1057,8 +1085,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1057
1085
|
* Default is true when a reduce function is defined.
|
|
1058
1086
|
* @param {boolean} [params.stable] - Parameter to specify whether view results should be returned from a stable set
|
|
1059
1087
|
* of shards.
|
|
1060
|
-
* @param {any} [params.
|
|
1061
|
-
* @param {string} [params.
|
|
1088
|
+
* @param {any} [params.startKey] - Schema for any JSON type.
|
|
1089
|
+
* @param {string} [params.startKeyDocId] - Schema for a document ID.
|
|
1062
1090
|
* @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
|
|
1063
1091
|
* to responding to the user.
|
|
1064
1092
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
@@ -1140,10 +1168,10 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1140
1168
|
* @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
|
|
1141
1169
|
* @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
|
|
1142
1170
|
* indicating the sequence id of the database the view reflects.
|
|
1143
|
-
* @param {string} [params.
|
|
1171
|
+
* @param {string} [params.endKey] - Schema for a document ID.
|
|
1144
1172
|
* @param {string} [params.key] - Schema for a document ID.
|
|
1145
1173
|
* @param {string[]} [params.keys] - Schema for a list of document IDs.
|
|
1146
|
-
* @param {string} [params.
|
|
1174
|
+
* @param {string} [params.startKey] - Schema for a document ID.
|
|
1147
1175
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
1148
1176
|
* @returns {Promise<CloudantV1.Response<CloudantV1.AllDocsResult>>}
|
|
1149
1177
|
*/
|
|
@@ -1174,10 +1202,10 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1174
1202
|
* @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
|
|
1175
1203
|
* @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
|
|
1176
1204
|
* indicating the sequence id of the database the view reflects.
|
|
1177
|
-
* @param {string} [params.
|
|
1205
|
+
* @param {string} [params.endKey] - Schema for a document ID.
|
|
1178
1206
|
* @param {string} [params.key] - Schema for a document ID.
|
|
1179
1207
|
* @param {string[]} [params.keys] - Schema for a list of document IDs.
|
|
1180
|
-
* @param {string} [params.
|
|
1208
|
+
* @param {string} [params.startKey] - Schema for a document ID.
|
|
1181
1209
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
1182
1210
|
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
1183
1211
|
*/
|
|
@@ -1291,8 +1319,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1291
1319
|
* @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
|
|
1292
1320
|
* @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
|
|
1293
1321
|
* indicating the sequence id of the database the view reflects.
|
|
1294
|
-
* @param {any} [params.
|
|
1295
|
-
* @param {string} [params.
|
|
1322
|
+
* @param {any} [params.endKey] - Schema for any JSON type.
|
|
1323
|
+
* @param {string} [params.endKeyDocId] - Schema for a document ID.
|
|
1296
1324
|
* @param {boolean} [params.group] - Parameter to specify whether to group the results using the reduce function to a
|
|
1297
1325
|
* group rather than a single row. Implies reduce is true and the maximum group_level.
|
|
1298
1326
|
* @param {number} [params.groupLevel] - Parameter to specify the group level to be used. Implies group is true.
|
|
@@ -1303,8 +1331,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1303
1331
|
* Default is true when a reduce function is defined.
|
|
1304
1332
|
* @param {boolean} [params.stable] - Parameter to specify whether view results should be returned from a stable set
|
|
1305
1333
|
* of shards.
|
|
1306
|
-
* @param {any} [params.
|
|
1307
|
-
* @param {string} [params.
|
|
1334
|
+
* @param {any} [params.startKey] - Schema for any JSON type.
|
|
1335
|
+
* @param {string} [params.startKeyDocId] - Schema for a document ID.
|
|
1308
1336
|
* @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
|
|
1309
1337
|
* to responding to the user.
|
|
1310
1338
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
@@ -1340,8 +1368,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1340
1368
|
* @param {number} [params.skip] - Parameter to specify the number of records before starting to return the results.
|
|
1341
1369
|
* @param {boolean} [params.updateSeq] - Parameter to specify whether to include in the response an update_seq value
|
|
1342
1370
|
* indicating the sequence id of the database the view reflects.
|
|
1343
|
-
* @param {any} [params.
|
|
1344
|
-
* @param {string} [params.
|
|
1371
|
+
* @param {any} [params.endKey] - Schema for any JSON type.
|
|
1372
|
+
* @param {string} [params.endKeyDocId] - Schema for a document ID.
|
|
1345
1373
|
* @param {boolean} [params.group] - Parameter to specify whether to group the results using the reduce function to a
|
|
1346
1374
|
* group rather than a single row. Implies reduce is true and the maximum group_level.
|
|
1347
1375
|
* @param {number} [params.groupLevel] - Parameter to specify the group level to be used. Implies group is true.
|
|
@@ -1352,8 +1380,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1352
1380
|
* Default is true when a reduce function is defined.
|
|
1353
1381
|
* @param {boolean} [params.stable] - Parameter to specify whether view results should be returned from a stable set
|
|
1354
1382
|
* of shards.
|
|
1355
|
-
* @param {any} [params.
|
|
1356
|
-
* @param {string} [params.
|
|
1383
|
+
* @param {any} [params.startKey] - Schema for any JSON type.
|
|
1384
|
+
* @param {string} [params.startKeyDocId] - Schema for a document ID.
|
|
1357
1385
|
* @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
|
|
1358
1386
|
* to responding to the user.
|
|
1359
1387
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
@@ -1361,10 +1389,14 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1361
1389
|
*/
|
|
1362
1390
|
postPartitionViewAsStream(params: CloudantV1.PostPartitionViewAsStreamParams): Promise<CloudantV1.Response<NodeJS.ReadableStream>>;
|
|
1363
1391
|
/**
|
|
1364
|
-
* Query a database partition index by using selector syntax
|
|
1392
|
+
* Query a database partition index by using selector syntax.
|
|
1393
|
+
*
|
|
1394
|
+
* Query documents by using a declarative JSON querying syntax. It's best practice to create an appropriate index for
|
|
1395
|
+
* all fields in selector by using the `_index` endpoint.
|
|
1365
1396
|
*
|
|
1366
|
-
*
|
|
1367
|
-
*
|
|
1397
|
+
* Queries without an appropriate backing index will fallback to using the built-in `_all_docs` index. This is not
|
|
1398
|
+
* recommended because it has a noticeable performance impact causing a full scan of the partition with each request.
|
|
1399
|
+
* In this case the response body will include a warning field recommending that an index is created.
|
|
1368
1400
|
*
|
|
1369
1401
|
* @param {Object} params - The parameters to send to the service.
|
|
1370
1402
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
@@ -1392,6 +1424,11 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1392
1424
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
1393
1425
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
1394
1426
|
* argument.
|
|
1427
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
1428
|
+
* of a query. You should include at least one of these in a selector.
|
|
1429
|
+
*
|
|
1430
|
+
* For further reference see
|
|
1431
|
+
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-query#selector-syntax).
|
|
1395
1432
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
1396
1433
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
1397
1434
|
* existing conflicts in the document.
|
|
@@ -1410,7 +1447,9 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1410
1447
|
*
|
|
1411
1448
|
* For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
|
|
1412
1449
|
*
|
|
1413
|
-
* When sorting with multiple fields
|
|
1450
|
+
* When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
|
|
1451
|
+
* 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
|
|
1452
|
+
* selector. All sorting fields must use the same sort direction, either all ascending or all descending.
|
|
1414
1453
|
* @param {boolean} [params.stable] - Whether or not the view results should be returned from a "stable" set of
|
|
1415
1454
|
* shards.
|
|
1416
1455
|
* @param {string} [params.update] - Whether to update the index prior to returning the result.
|
|
@@ -1421,10 +1460,14 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1421
1460
|
*/
|
|
1422
1461
|
postPartitionFind(params: CloudantV1.PostPartitionFindParams): Promise<CloudantV1.Response<CloudantV1.FindResult>>;
|
|
1423
1462
|
/**
|
|
1424
|
-
* Query a database partition index by using selector syntax
|
|
1463
|
+
* Query a database partition index by using selector syntax as stream.
|
|
1464
|
+
*
|
|
1465
|
+
* Query documents by using a declarative JSON querying syntax. It's best practice to create an appropriate index for
|
|
1466
|
+
* all fields in selector by using the `_index` endpoint.
|
|
1425
1467
|
*
|
|
1426
|
-
*
|
|
1427
|
-
*
|
|
1468
|
+
* Queries without an appropriate backing index will fallback to using the built-in `_all_docs` index. This is not
|
|
1469
|
+
* recommended because it has a noticeable performance impact causing a full scan of the partition with each request.
|
|
1470
|
+
* In this case the response body will include a warning field recommending that an index is created.
|
|
1428
1471
|
*
|
|
1429
1472
|
* @param {Object} params - The parameters to send to the service.
|
|
1430
1473
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
@@ -1452,6 +1495,11 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1452
1495
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
1453
1496
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
1454
1497
|
* argument.
|
|
1498
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
1499
|
+
* of a query. You should include at least one of these in a selector.
|
|
1500
|
+
*
|
|
1501
|
+
* For further reference see
|
|
1502
|
+
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-query#selector-syntax).
|
|
1455
1503
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
1456
1504
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
1457
1505
|
* existing conflicts in the document.
|
|
@@ -1470,7 +1518,9 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1470
1518
|
*
|
|
1471
1519
|
* For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
|
|
1472
1520
|
*
|
|
1473
|
-
* When sorting with multiple fields
|
|
1521
|
+
* When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
|
|
1522
|
+
* 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
|
|
1523
|
+
* selector. All sorting fields must use the same sort direction, either all ascending or all descending.
|
|
1474
1524
|
* @param {boolean} [params.stable] - Whether or not the view results should be returned from a "stable" set of
|
|
1475
1525
|
* shards.
|
|
1476
1526
|
* @param {string} [params.update] - Whether to update the index prior to returning the result.
|
|
@@ -1514,6 +1564,11 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1514
1564
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
1515
1565
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
1516
1566
|
* argument.
|
|
1567
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
1568
|
+
* of a query. You should include at least one of these in a selector.
|
|
1569
|
+
*
|
|
1570
|
+
* For further reference see
|
|
1571
|
+
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-query#selector-syntax).
|
|
1517
1572
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
1518
1573
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
1519
1574
|
* existing conflicts in the document.
|
|
@@ -1532,7 +1587,9 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1532
1587
|
*
|
|
1533
1588
|
* For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
|
|
1534
1589
|
*
|
|
1535
|
-
* When sorting with multiple fields
|
|
1590
|
+
* When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
|
|
1591
|
+
* 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
|
|
1592
|
+
* selector. All sorting fields must use the same sort direction, either all ascending or all descending.
|
|
1536
1593
|
* @param {boolean} [params.stable] - Whether or not the view results should be returned from a "stable" set of
|
|
1537
1594
|
* shards.
|
|
1538
1595
|
* @param {string} [params.update] - Whether to update the index prior to returning the result.
|
|
@@ -1549,8 +1606,12 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1549
1606
|
/**
|
|
1550
1607
|
* Query an index by using selector syntax.
|
|
1551
1608
|
*
|
|
1552
|
-
* Query documents by using a declarative JSON querying syntax.
|
|
1553
|
-
*
|
|
1609
|
+
* Query documents by using a declarative JSON querying syntax. It's best practice to create an appropriate index for
|
|
1610
|
+
* all fields in selector by using the `_index` endpoint.
|
|
1611
|
+
*
|
|
1612
|
+
* Queries without an appropriate backing index will fallback to using the built-in `_all_docs` index. This is not
|
|
1613
|
+
* recommended because it has a significant performance impact causing a full scan of the database with each request.
|
|
1614
|
+
* In this case the response body will include a warning field recommending that an index is created.
|
|
1554
1615
|
*
|
|
1555
1616
|
* @param {Object} params - The parameters to send to the service.
|
|
1556
1617
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
@@ -1577,6 +1638,11 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1577
1638
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
1578
1639
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
1579
1640
|
* argument.
|
|
1641
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
1642
|
+
* of a query. You should include at least one of these in a selector.
|
|
1643
|
+
*
|
|
1644
|
+
* For further reference see
|
|
1645
|
+
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-query#selector-syntax).
|
|
1580
1646
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
1581
1647
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
1582
1648
|
* existing conflicts in the document.
|
|
@@ -1595,7 +1661,9 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1595
1661
|
*
|
|
1596
1662
|
* For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
|
|
1597
1663
|
*
|
|
1598
|
-
* When sorting with multiple fields
|
|
1664
|
+
* When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
|
|
1665
|
+
* 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
|
|
1666
|
+
* selector. All sorting fields must use the same sort direction, either all ascending or all descending.
|
|
1599
1667
|
* @param {boolean} [params.stable] - Whether or not the view results should be returned from a "stable" set of
|
|
1600
1668
|
* shards.
|
|
1601
1669
|
* @param {string} [params.update] - Whether to update the index prior to returning the result.
|
|
@@ -1612,8 +1680,12 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1612
1680
|
/**
|
|
1613
1681
|
* Query an index by using selector syntax as stream.
|
|
1614
1682
|
*
|
|
1615
|
-
* Query documents by using a declarative JSON querying syntax.
|
|
1616
|
-
*
|
|
1683
|
+
* Query documents by using a declarative JSON querying syntax. It's best practice to create an appropriate index for
|
|
1684
|
+
* all fields in selector by using the `_index` endpoint.
|
|
1685
|
+
*
|
|
1686
|
+
* Queries without an appropriate backing index will fallback to using the built-in `_all_docs` index. This is not
|
|
1687
|
+
* recommended because it has a significant performance impact causing a full scan of the database with each request.
|
|
1688
|
+
* In this case the response body will include a warning field recommending that an index is created.
|
|
1617
1689
|
*
|
|
1618
1690
|
* @param {Object} params - The parameters to send to the service.
|
|
1619
1691
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
@@ -1640,6 +1712,11 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1640
1712
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
1641
1713
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
1642
1714
|
* argument.
|
|
1715
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
1716
|
+
* of a query. You should include at least one of these in a selector.
|
|
1717
|
+
*
|
|
1718
|
+
* For further reference see
|
|
1719
|
+
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-query#selector-syntax).
|
|
1643
1720
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
1644
1721
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
1645
1722
|
* existing conflicts in the document.
|
|
@@ -1658,7 +1735,9 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1658
1735
|
*
|
|
1659
1736
|
* For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
|
|
1660
1737
|
*
|
|
1661
|
-
* When sorting with multiple fields
|
|
1738
|
+
* When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
|
|
1739
|
+
* 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
|
|
1740
|
+
* selector. All sorting fields must use the same sort direction, either all ascending or all descending.
|
|
1662
1741
|
* @param {boolean} [params.stable] - Whether or not the view results should be returned from a "stable" set of
|
|
1663
1742
|
* shards.
|
|
1664
1743
|
* @param {string} [params.update] - Whether to update the index prior to returning the result.
|
|
@@ -2673,6 +2752,11 @@ declare namespace CloudantV1 {
|
|
|
2673
2752
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
2674
2753
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
2675
2754
|
* supplied argument.
|
|
2755
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
2756
|
+
* basis of a query. You should include at least one of these in a selector.
|
|
2757
|
+
*
|
|
2758
|
+
* For further reference see
|
|
2759
|
+
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-query#selector-syntax).
|
|
2676
2760
|
*/
|
|
2677
2761
|
selector?: JsonObject;
|
|
2678
2762
|
/** Header parameter to specify the ID of the last events received by the server on a previous connection.
|
|
@@ -2787,6 +2871,11 @@ declare namespace CloudantV1 {
|
|
|
2787
2871
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
2788
2872
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
2789
2873
|
* supplied argument.
|
|
2874
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
2875
|
+
* basis of a query. You should include at least one of these in a selector.
|
|
2876
|
+
*
|
|
2877
|
+
* For further reference see
|
|
2878
|
+
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-query#selector-syntax).
|
|
2790
2879
|
*/
|
|
2791
2880
|
selector?: JsonObject;
|
|
2792
2881
|
/** Header parameter to specify the ID of the last events received by the server on a previous connection.
|
|
@@ -2881,7 +2970,7 @@ declare namespace CloudantV1 {
|
|
|
2881
2970
|
/** Query parameter to specify to stop returning records when the specified key is reached. String
|
|
2882
2971
|
* representation of any JSON type that matches the key type emitted by the view function.
|
|
2883
2972
|
*/
|
|
2884
|
-
|
|
2973
|
+
endKey?: string;
|
|
2885
2974
|
/** Query parameter to specify the number of returned documents to limit the result to. */
|
|
2886
2975
|
limit?: number;
|
|
2887
2976
|
/** Query parameter to specify the number of records before starting to return the results. */
|
|
@@ -2889,7 +2978,7 @@ declare namespace CloudantV1 {
|
|
|
2889
2978
|
/** Query parameter to specify to start returning records from the specified key. String representation of any
|
|
2890
2979
|
* JSON type that matches the key type emitted by the view function.
|
|
2891
2980
|
*/
|
|
2892
|
-
|
|
2981
|
+
startKey?: string;
|
|
2893
2982
|
headers?: OutgoingHttpHeaders;
|
|
2894
2983
|
}
|
|
2895
2984
|
/** Parameters for the `postDbsInfo` operation. */
|
|
@@ -2995,13 +3084,13 @@ declare namespace CloudantV1 {
|
|
|
2995
3084
|
*/
|
|
2996
3085
|
updateSeq?: boolean;
|
|
2997
3086
|
/** Schema for a document ID. */
|
|
2998
|
-
|
|
3087
|
+
endKey?: string;
|
|
2999
3088
|
/** Schema for a document ID. */
|
|
3000
3089
|
key?: string;
|
|
3001
3090
|
/** Schema for a list of document IDs. */
|
|
3002
3091
|
keys?: string[];
|
|
3003
3092
|
/** Schema for a document ID. */
|
|
3004
|
-
|
|
3093
|
+
startKey?: string;
|
|
3005
3094
|
headers?: OutgoingHttpHeaders;
|
|
3006
3095
|
}
|
|
3007
3096
|
/** Parameters for the `postAllDocsAsStream` operation. */
|
|
@@ -3033,13 +3122,13 @@ declare namespace CloudantV1 {
|
|
|
3033
3122
|
*/
|
|
3034
3123
|
updateSeq?: boolean;
|
|
3035
3124
|
/** Schema for a document ID. */
|
|
3036
|
-
|
|
3125
|
+
endKey?: string;
|
|
3037
3126
|
/** Schema for a document ID. */
|
|
3038
3127
|
key?: string;
|
|
3039
3128
|
/** Schema for a list of document IDs. */
|
|
3040
3129
|
keys?: string[];
|
|
3041
3130
|
/** Schema for a document ID. */
|
|
3042
|
-
|
|
3131
|
+
startKey?: string;
|
|
3043
3132
|
headers?: OutgoingHttpHeaders;
|
|
3044
3133
|
}
|
|
3045
3134
|
/** Parameters for the `postAllDocsQueries` operation. */
|
|
@@ -3522,13 +3611,13 @@ declare namespace CloudantV1 {
|
|
|
3522
3611
|
*/
|
|
3523
3612
|
updateSeq?: boolean;
|
|
3524
3613
|
/** Schema for a document ID. */
|
|
3525
|
-
|
|
3614
|
+
endKey?: string;
|
|
3526
3615
|
/** Schema for a document ID. */
|
|
3527
3616
|
key?: string;
|
|
3528
3617
|
/** Schema for a list of document IDs. */
|
|
3529
3618
|
keys?: string[];
|
|
3530
3619
|
/** Schema for a document ID. */
|
|
3531
|
-
|
|
3620
|
+
startKey?: string;
|
|
3532
3621
|
/** The type of the response: application/json or application/octet-stream. */
|
|
3533
3622
|
accept?: PostDesignDocsConstants.Accept | string;
|
|
3534
3623
|
headers?: OutgoingHttpHeaders;
|
|
@@ -3596,9 +3685,9 @@ declare namespace CloudantV1 {
|
|
|
3596
3685
|
*/
|
|
3597
3686
|
updateSeq?: boolean;
|
|
3598
3687
|
/** Schema for any JSON type. */
|
|
3599
|
-
|
|
3688
|
+
endKey?: any;
|
|
3600
3689
|
/** Schema for a document ID. */
|
|
3601
|
-
|
|
3690
|
+
endKeyDocId?: string;
|
|
3602
3691
|
/** Parameter to specify whether to group the results using the reduce function to a group rather than a single
|
|
3603
3692
|
* row. Implies reduce is true and the maximum group_level.
|
|
3604
3693
|
*/
|
|
@@ -3618,9 +3707,9 @@ declare namespace CloudantV1 {
|
|
|
3618
3707
|
/** Parameter to specify whether view results should be returned from a stable set of shards. */
|
|
3619
3708
|
stable?: boolean;
|
|
3620
3709
|
/** Schema for any JSON type. */
|
|
3621
|
-
|
|
3710
|
+
startKey?: any;
|
|
3622
3711
|
/** Schema for a document ID. */
|
|
3623
|
-
|
|
3712
|
+
startKeyDocId?: string;
|
|
3624
3713
|
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
|
|
3625
3714
|
update?: PostViewConstants.Update | string;
|
|
3626
3715
|
headers?: OutgoingHttpHeaders;
|
|
@@ -3669,9 +3758,9 @@ declare namespace CloudantV1 {
|
|
|
3669
3758
|
*/
|
|
3670
3759
|
updateSeq?: boolean;
|
|
3671
3760
|
/** Schema for any JSON type. */
|
|
3672
|
-
|
|
3761
|
+
endKey?: any;
|
|
3673
3762
|
/** Schema for a document ID. */
|
|
3674
|
-
|
|
3763
|
+
endKeyDocId?: string;
|
|
3675
3764
|
/** Parameter to specify whether to group the results using the reduce function to a group rather than a single
|
|
3676
3765
|
* row. Implies reduce is true and the maximum group_level.
|
|
3677
3766
|
*/
|
|
@@ -3691,9 +3780,9 @@ declare namespace CloudantV1 {
|
|
|
3691
3780
|
/** Parameter to specify whether view results should be returned from a stable set of shards. */
|
|
3692
3781
|
stable?: boolean;
|
|
3693
3782
|
/** Schema for any JSON type. */
|
|
3694
|
-
|
|
3783
|
+
startKey?: any;
|
|
3695
3784
|
/** Schema for a document ID. */
|
|
3696
|
-
|
|
3785
|
+
startKeyDocId?: string;
|
|
3697
3786
|
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
|
|
3698
3787
|
update?: PostViewAsStreamConstants.Update | string;
|
|
3699
3788
|
headers?: OutgoingHttpHeaders;
|
|
@@ -3778,13 +3867,13 @@ declare namespace CloudantV1 {
|
|
|
3778
3867
|
*/
|
|
3779
3868
|
updateSeq?: boolean;
|
|
3780
3869
|
/** Schema for a document ID. */
|
|
3781
|
-
|
|
3870
|
+
endKey?: string;
|
|
3782
3871
|
/** Schema for a document ID. */
|
|
3783
3872
|
key?: string;
|
|
3784
3873
|
/** Schema for a list of document IDs. */
|
|
3785
3874
|
keys?: string[];
|
|
3786
3875
|
/** Schema for a document ID. */
|
|
3787
|
-
|
|
3876
|
+
startKey?: string;
|
|
3788
3877
|
headers?: OutgoingHttpHeaders;
|
|
3789
3878
|
}
|
|
3790
3879
|
/** Parameters for the `postPartitionAllDocsAsStream` operation. */
|
|
@@ -3818,13 +3907,13 @@ declare namespace CloudantV1 {
|
|
|
3818
3907
|
*/
|
|
3819
3908
|
updateSeq?: boolean;
|
|
3820
3909
|
/** Schema for a document ID. */
|
|
3821
|
-
|
|
3910
|
+
endKey?: string;
|
|
3822
3911
|
/** Schema for a document ID. */
|
|
3823
3912
|
key?: string;
|
|
3824
3913
|
/** Schema for a list of document IDs. */
|
|
3825
3914
|
keys?: string[];
|
|
3826
3915
|
/** Schema for a document ID. */
|
|
3827
|
-
|
|
3916
|
+
startKey?: string;
|
|
3828
3917
|
headers?: OutgoingHttpHeaders;
|
|
3829
3918
|
}
|
|
3830
3919
|
/** Parameters for the `postPartitionSearch` operation. */
|
|
@@ -3980,9 +4069,9 @@ declare namespace CloudantV1 {
|
|
|
3980
4069
|
*/
|
|
3981
4070
|
updateSeq?: boolean;
|
|
3982
4071
|
/** Schema for any JSON type. */
|
|
3983
|
-
|
|
4072
|
+
endKey?: any;
|
|
3984
4073
|
/** Schema for a document ID. */
|
|
3985
|
-
|
|
4074
|
+
endKeyDocId?: string;
|
|
3986
4075
|
/** Parameter to specify whether to group the results using the reduce function to a group rather than a single
|
|
3987
4076
|
* row. Implies reduce is true and the maximum group_level.
|
|
3988
4077
|
*/
|
|
@@ -4002,9 +4091,9 @@ declare namespace CloudantV1 {
|
|
|
4002
4091
|
/** Parameter to specify whether view results should be returned from a stable set of shards. */
|
|
4003
4092
|
stable?: boolean;
|
|
4004
4093
|
/** Schema for any JSON type. */
|
|
4005
|
-
|
|
4094
|
+
startKey?: any;
|
|
4006
4095
|
/** Schema for a document ID. */
|
|
4007
|
-
|
|
4096
|
+
startKeyDocId?: string;
|
|
4008
4097
|
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
|
|
4009
4098
|
update?: PostPartitionViewConstants.Update | string;
|
|
4010
4099
|
headers?: OutgoingHttpHeaders;
|
|
@@ -4055,9 +4144,9 @@ declare namespace CloudantV1 {
|
|
|
4055
4144
|
*/
|
|
4056
4145
|
updateSeq?: boolean;
|
|
4057
4146
|
/** Schema for any JSON type. */
|
|
4058
|
-
|
|
4147
|
+
endKey?: any;
|
|
4059
4148
|
/** Schema for a document ID. */
|
|
4060
|
-
|
|
4149
|
+
endKeyDocId?: string;
|
|
4061
4150
|
/** Parameter to specify whether to group the results using the reduce function to a group rather than a single
|
|
4062
4151
|
* row. Implies reduce is true and the maximum group_level.
|
|
4063
4152
|
*/
|
|
@@ -4077,9 +4166,9 @@ declare namespace CloudantV1 {
|
|
|
4077
4166
|
/** Parameter to specify whether view results should be returned from a stable set of shards. */
|
|
4078
4167
|
stable?: boolean;
|
|
4079
4168
|
/** Schema for any JSON type. */
|
|
4080
|
-
|
|
4169
|
+
startKey?: any;
|
|
4081
4170
|
/** Schema for a document ID. */
|
|
4082
|
-
|
|
4171
|
+
startKeyDocId?: string;
|
|
4083
4172
|
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
|
|
4084
4173
|
update?: PostPartitionViewAsStreamConstants.Update | string;
|
|
4085
4174
|
headers?: OutgoingHttpHeaders;
|
|
@@ -4122,6 +4211,11 @@ declare namespace CloudantV1 {
|
|
|
4122
4211
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
4123
4212
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
4124
4213
|
* supplied argument.
|
|
4214
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
4215
|
+
* basis of a query. You should include at least one of these in a selector.
|
|
4216
|
+
*
|
|
4217
|
+
* For further reference see
|
|
4218
|
+
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-query#selector-syntax).
|
|
4125
4219
|
*/
|
|
4126
4220
|
selector: JsonObject;
|
|
4127
4221
|
/** Opaque bookmark token used when paginating results. */
|
|
@@ -4149,7 +4243,9 @@ declare namespace CloudantV1 {
|
|
|
4149
4243
|
*
|
|
4150
4244
|
* For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
|
|
4151
4245
|
*
|
|
4152
|
-
* When sorting with multiple fields
|
|
4246
|
+
* When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
|
|
4247
|
+
* same order and each object in the sort array has a single key or at least one of the sort fields is included in
|
|
4248
|
+
* the selector. All sorting fields must use the same sort direction, either all ascending or all descending.
|
|
4153
4249
|
*/
|
|
4154
4250
|
sort?: JsonObject[];
|
|
4155
4251
|
/** Whether or not the view results should be returned from a "stable" set of shards. */
|
|
@@ -4205,6 +4301,11 @@ declare namespace CloudantV1 {
|
|
|
4205
4301
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
4206
4302
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
4207
4303
|
* supplied argument.
|
|
4304
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
4305
|
+
* basis of a query. You should include at least one of these in a selector.
|
|
4306
|
+
*
|
|
4307
|
+
* For further reference see
|
|
4308
|
+
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-query#selector-syntax).
|
|
4208
4309
|
*/
|
|
4209
4310
|
selector: JsonObject;
|
|
4210
4311
|
/** Opaque bookmark token used when paginating results. */
|
|
@@ -4232,7 +4333,9 @@ declare namespace CloudantV1 {
|
|
|
4232
4333
|
*
|
|
4233
4334
|
* For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
|
|
4234
4335
|
*
|
|
4235
|
-
* When sorting with multiple fields
|
|
4336
|
+
* When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
|
|
4337
|
+
* same order and each object in the sort array has a single key or at least one of the sort fields is included in
|
|
4338
|
+
* the selector. All sorting fields must use the same sort direction, either all ascending or all descending.
|
|
4236
4339
|
*/
|
|
4237
4340
|
sort?: JsonObject[];
|
|
4238
4341
|
/** Whether or not the view results should be returned from a "stable" set of shards. */
|
|
@@ -4286,6 +4389,11 @@ declare namespace CloudantV1 {
|
|
|
4286
4389
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
4287
4390
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
4288
4391
|
* supplied argument.
|
|
4392
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
4393
|
+
* basis of a query. You should include at least one of these in a selector.
|
|
4394
|
+
*
|
|
4395
|
+
* For further reference see
|
|
4396
|
+
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-query#selector-syntax).
|
|
4289
4397
|
*/
|
|
4290
4398
|
selector: JsonObject;
|
|
4291
4399
|
/** Opaque bookmark token used when paginating results. */
|
|
@@ -4313,7 +4421,9 @@ declare namespace CloudantV1 {
|
|
|
4313
4421
|
*
|
|
4314
4422
|
* For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
|
|
4315
4423
|
*
|
|
4316
|
-
* When sorting with multiple fields
|
|
4424
|
+
* When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
|
|
4425
|
+
* same order and each object in the sort array has a single key or at least one of the sort fields is included in
|
|
4426
|
+
* the selector. All sorting fields must use the same sort direction, either all ascending or all descending.
|
|
4317
4427
|
*/
|
|
4318
4428
|
sort?: JsonObject[];
|
|
4319
4429
|
/** Whether or not the view results should be returned from a "stable" set of shards. */
|
|
@@ -4373,6 +4483,11 @@ declare namespace CloudantV1 {
|
|
|
4373
4483
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
4374
4484
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
4375
4485
|
* supplied argument.
|
|
4486
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
4487
|
+
* basis of a query. You should include at least one of these in a selector.
|
|
4488
|
+
*
|
|
4489
|
+
* For further reference see
|
|
4490
|
+
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-query#selector-syntax).
|
|
4376
4491
|
*/
|
|
4377
4492
|
selector: JsonObject;
|
|
4378
4493
|
/** Opaque bookmark token used when paginating results. */
|
|
@@ -4400,7 +4515,9 @@ declare namespace CloudantV1 {
|
|
|
4400
4515
|
*
|
|
4401
4516
|
* For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
|
|
4402
4517
|
*
|
|
4403
|
-
* When sorting with multiple fields
|
|
4518
|
+
* When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
|
|
4519
|
+
* same order and each object in the sort array has a single key or at least one of the sort fields is included in
|
|
4520
|
+
* the selector. All sorting fields must use the same sort direction, either all ascending or all descending.
|
|
4404
4521
|
*/
|
|
4405
4522
|
sort?: JsonObject[];
|
|
4406
4523
|
/** Whether or not the view results should be returned from a "stable" set of shards. */
|
|
@@ -4460,6 +4577,11 @@ declare namespace CloudantV1 {
|
|
|
4460
4577
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
4461
4578
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
4462
4579
|
* supplied argument.
|
|
4580
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
4581
|
+
* basis of a query. You should include at least one of these in a selector.
|
|
4582
|
+
*
|
|
4583
|
+
* For further reference see
|
|
4584
|
+
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-query#selector-syntax).
|
|
4463
4585
|
*/
|
|
4464
4586
|
selector: JsonObject;
|
|
4465
4587
|
/** Opaque bookmark token used when paginating results. */
|
|
@@ -4487,7 +4609,9 @@ declare namespace CloudantV1 {
|
|
|
4487
4609
|
*
|
|
4488
4610
|
* For example in JSON: `[{"fieldName1": "desc"}, {"fieldName2.subFieldName1": "desc"}]`
|
|
4489
4611
|
*
|
|
4490
|
-
* When sorting with multiple fields
|
|
4612
|
+
* When sorting with multiple fields, ensure that there is an index already defined with all the sort fields in the
|
|
4613
|
+
* same order and each object in the sort array has a single key or at least one of the sort fields is included in
|
|
4614
|
+
* the selector. All sorting fields must use the same sort direction, either all ascending or all descending.
|
|
4491
4615
|
*/
|
|
4492
4616
|
sort?: JsonObject[];
|
|
4493
4617
|
/** Whether or not the view results should be returned from a "stable" set of shards. */
|
|
@@ -5560,13 +5684,13 @@ declare namespace CloudantV1 {
|
|
|
5560
5684
|
*/
|
|
5561
5685
|
update_seq?: boolean;
|
|
5562
5686
|
/** Schema for a document ID. */
|
|
5563
|
-
|
|
5687
|
+
end_key?: string;
|
|
5564
5688
|
/** Schema for a document ID. */
|
|
5565
5689
|
key?: string;
|
|
5566
5690
|
/** Schema for a list of document IDs. */
|
|
5567
5691
|
keys?: string[];
|
|
5568
5692
|
/** Schema for a document ID. */
|
|
5569
|
-
|
|
5693
|
+
start_key?: string;
|
|
5570
5694
|
}
|
|
5571
5695
|
/** Schema for the result of an all documents operation. */
|
|
5572
5696
|
interface AllDocsResult {
|
|
@@ -5811,8 +5935,6 @@ declare namespace CloudantV1 {
|
|
|
5811
5935
|
}
|
|
5812
5936
|
/** Schema for a database change event. */
|
|
5813
5937
|
interface DbEvent {
|
|
5814
|
-
/** Account name. */
|
|
5815
|
-
account?: string;
|
|
5816
5938
|
/** Database name. */
|
|
5817
5939
|
db_name: string;
|
|
5818
5940
|
/** Sequence number. */
|
|
@@ -5955,6 +6077,10 @@ declare namespace CloudantV1 {
|
|
|
5955
6077
|
}
|
|
5956
6078
|
/** View index information. */
|
|
5957
6079
|
interface DesignDocumentViewIndex {
|
|
6080
|
+
/** List of collator versions. If there are multiple entries this implies a libicu upgrade has occurred but
|
|
6081
|
+
* compaction has not run yet.
|
|
6082
|
+
*/
|
|
6083
|
+
collator_versions: string[];
|
|
5958
6084
|
/** Indicates whether a compaction routine is currently running on the view. */
|
|
5959
6085
|
compact_running: boolean;
|
|
5960
6086
|
/** Language for the defined views. */
|
|
@@ -6103,6 +6229,11 @@ declare namespace CloudantV1 {
|
|
|
6103
6229
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
6104
6230
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
6105
6231
|
* supplied argument.
|
|
6232
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
6233
|
+
* basis of a query. You should include at least one of these in a selector.
|
|
6234
|
+
*
|
|
6235
|
+
* For further reference see
|
|
6236
|
+
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-query#selector-syntax).
|
|
6106
6237
|
*/
|
|
6107
6238
|
selector: JsonObject;
|
|
6108
6239
|
/** skip. */
|
|
@@ -6238,6 +6369,11 @@ declare namespace CloudantV1 {
|
|
|
6238
6369
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
6239
6370
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
6240
6371
|
* supplied argument.
|
|
6372
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
6373
|
+
* basis of a query. You should include at least one of these in a selector.
|
|
6374
|
+
*
|
|
6375
|
+
* For further reference see
|
|
6376
|
+
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-query#selector-syntax).
|
|
6241
6377
|
*/
|
|
6242
6378
|
partial_filter_selector?: JsonObject;
|
|
6243
6379
|
}
|
|
@@ -6447,6 +6583,11 @@ declare namespace CloudantV1 {
|
|
|
6447
6583
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
6448
6584
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
6449
6585
|
* supplied argument.
|
|
6586
|
+
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
6587
|
+
* basis of a query. You should include at least one of these in a selector.
|
|
6588
|
+
*
|
|
6589
|
+
* For further reference see
|
|
6590
|
+
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-query#selector-syntax).
|
|
6450
6591
|
*/
|
|
6451
6592
|
selector?: JsonObject;
|
|
6452
6593
|
/** Start the replication at a specific sequence value. */
|
|
@@ -6650,6 +6791,8 @@ declare namespace CloudantV1 {
|
|
|
6650
6791
|
doc_del_count: number;
|
|
6651
6792
|
/** The pending sequence identifier. */
|
|
6652
6793
|
pending_seq: number;
|
|
6794
|
+
/** Unique signature of the search index. */
|
|
6795
|
+
signature: string;
|
|
6653
6796
|
}
|
|
6654
6797
|
/** Schema for search index information. */
|
|
6655
6798
|
interface SearchInfoResult {
|
|
@@ -6838,9 +6981,9 @@ declare namespace CloudantV1 {
|
|
|
6838
6981
|
*/
|
|
6839
6982
|
update_seq?: boolean;
|
|
6840
6983
|
/** Schema for any JSON type. */
|
|
6841
|
-
|
|
6984
|
+
end_key?: any;
|
|
6842
6985
|
/** Schema for a document ID. */
|
|
6843
|
-
|
|
6986
|
+
end_key_doc_id?: string;
|
|
6844
6987
|
/** Parameter to specify whether to group the results using the reduce function to a group rather than a single
|
|
6845
6988
|
* row. Implies reduce is true and the maximum group_level.
|
|
6846
6989
|
*/
|
|
@@ -6860,9 +7003,9 @@ declare namespace CloudantV1 {
|
|
|
6860
7003
|
/** Parameter to specify whether view results should be returned from a stable set of shards. */
|
|
6861
7004
|
stable?: boolean;
|
|
6862
7005
|
/** Schema for any JSON type. */
|
|
6863
|
-
|
|
7006
|
+
start_key?: any;
|
|
6864
7007
|
/** Schema for a document ID. */
|
|
6865
|
-
|
|
7008
|
+
start_key_doc_id?: string;
|
|
6866
7009
|
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
|
|
6867
7010
|
update?: string;
|
|
6868
7011
|
}
|