@ibm-cloud/cloudant 0.1.3 → 0.1.4
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 +3 -2
- package/cloudant/v1.d.ts +259 -131
- package/cloudant/v1.js +110 -58
- package/cloudant/v1.js.map +1 -1
- package/package.json +13 -13
package/cloudant/v1.js
CHANGED
|
@@ -386,7 +386,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
386
386
|
* @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
|
|
387
387
|
* response.
|
|
388
388
|
* @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
|
|
389
|
-
* in
|
|
389
|
+
* in each returned document. Active only when `include_docs` is `true`.
|
|
390
390
|
* @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
|
|
391
391
|
* key order.
|
|
392
392
|
* @param {string} [params.feed] - Query parameter to specify the changes feed type.
|
|
@@ -532,7 +532,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
532
532
|
* @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
|
|
533
533
|
* response.
|
|
534
534
|
* @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
|
|
535
|
-
* in
|
|
535
|
+
* in each returned document. Active only when `include_docs` is `true`.
|
|
536
536
|
* @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
|
|
537
537
|
* key order.
|
|
538
538
|
* @param {string} [params.feed] - Query parameter to specify the changes feed type.
|
|
@@ -989,8 +989,8 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
989
989
|
* @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
|
|
990
990
|
* attachment stubs if the particular attachment is compressed.
|
|
991
991
|
* @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
|
|
992
|
-
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
993
|
-
*
|
|
992
|
+
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
993
|
+
* each returned document. Active only when `include_docs` is `true`.
|
|
994
994
|
* @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
|
|
995
995
|
* order.
|
|
996
996
|
* @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
|
|
@@ -1064,8 +1064,8 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
1064
1064
|
* @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
|
|
1065
1065
|
* attachment stubs if the particular attachment is compressed.
|
|
1066
1066
|
* @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
|
|
1067
|
-
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
1068
|
-
*
|
|
1067
|
+
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
1068
|
+
* each returned document. Active only when `include_docs` is `true`.
|
|
1069
1069
|
* @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
|
|
1070
1070
|
* order.
|
|
1071
1071
|
* @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
|
|
@@ -1560,7 +1560,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
1560
1560
|
* @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
|
|
1561
1561
|
* in attachment stubs if the particular attachment is compressed.
|
|
1562
1562
|
* @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
|
|
1563
|
-
* in
|
|
1563
|
+
* in each returned document. Active only when `include_docs` is `true`.
|
|
1564
1564
|
* @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
|
|
1565
1565
|
* conflicted revisions in the `_deleted_conflicts` property of the returned document.
|
|
1566
1566
|
* @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
|
|
@@ -1634,7 +1634,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
1634
1634
|
* @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
|
|
1635
1635
|
* in attachment stubs if the particular attachment is compressed.
|
|
1636
1636
|
* @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
|
|
1637
|
-
* in
|
|
1637
|
+
* in each returned document. Active only when `include_docs` is `true`.
|
|
1638
1638
|
* @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
|
|
1639
1639
|
* conflicted revisions in the `_deleted_conflicts` property of the returned document.
|
|
1640
1640
|
* @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
|
|
@@ -1709,7 +1709,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
1709
1709
|
* @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
|
|
1710
1710
|
* in attachment stubs if the particular attachment is compressed.
|
|
1711
1711
|
* @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
|
|
1712
|
-
* in
|
|
1712
|
+
* in each returned document. Active only when `include_docs` is `true`.
|
|
1713
1713
|
* @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
|
|
1714
1714
|
* conflicted revisions in the `_deleted_conflicts` property of the returned document.
|
|
1715
1715
|
* @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
|
|
@@ -1784,7 +1784,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
1784
1784
|
* @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
|
|
1785
1785
|
* in attachment stubs if the particular attachment is compressed.
|
|
1786
1786
|
* @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
|
|
1787
|
-
* in
|
|
1787
|
+
* in each returned document. Active only when `include_docs` is `true`.
|
|
1788
1788
|
* @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
|
|
1789
1789
|
* conflicted revisions in the `_deleted_conflicts` property of the returned document.
|
|
1790
1790
|
* @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
|
|
@@ -2022,7 +2022,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
2022
2022
|
* @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
|
|
2023
2023
|
* in attachment stubs if the particular attachment is compressed.
|
|
2024
2024
|
* @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
|
|
2025
|
-
* in
|
|
2025
|
+
* in each returned document. Active only when `include_docs` is `true`.
|
|
2026
2026
|
* @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
|
|
2027
2027
|
* conflicted revisions in the `_deleted_conflicts` property of the returned document.
|
|
2028
2028
|
* @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
|
|
@@ -2191,8 +2191,8 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
2191
2191
|
* @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
|
|
2192
2192
|
* attachment stubs if the particular attachment is compressed.
|
|
2193
2193
|
* @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
|
|
2194
|
-
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
2195
|
-
*
|
|
2194
|
+
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
2195
|
+
* each returned document. Active only when `include_docs` is `true`.
|
|
2196
2196
|
* @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
|
|
2197
2197
|
* order.
|
|
2198
2198
|
* @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
|
|
@@ -2319,8 +2319,8 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
2319
2319
|
* @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
|
|
2320
2320
|
* attachment stubs if the particular attachment is compressed.
|
|
2321
2321
|
* @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
|
|
2322
|
-
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
2323
|
-
*
|
|
2322
|
+
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
2323
|
+
* each returned document. Active only when `include_docs` is `true`.
|
|
2324
2324
|
* @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
|
|
2325
2325
|
* order.
|
|
2326
2326
|
* @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
|
|
@@ -2333,20 +2333,33 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
2333
2333
|
* indicating the sequence id of the database the view reflects.
|
|
2334
2334
|
* @param {any} [params.endKey] - Schema for any JSON type.
|
|
2335
2335
|
* @param {string} [params.endKeyDocId] - Schema for a document ID.
|
|
2336
|
-
* @param {boolean} [params.group] - Parameter to specify whether to group
|
|
2337
|
-
*
|
|
2338
|
-
*
|
|
2336
|
+
* @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
|
|
2337
|
+
* reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
|
|
2338
|
+
* groups further based on the number of array elements with the `group_level` parameter.
|
|
2339
|
+
* @param {number} [params.groupLevel] - Parameter to specify a group level to be used. Only applicable if the view
|
|
2340
|
+
* uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
|
|
2341
|
+
* number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
|
|
2342
|
+
* complete key.
|
|
2339
2343
|
* @param {any} [params.key] - Schema for any JSON type.
|
|
2340
|
-
* @param {any[]} [params.keys] - Parameter to specify
|
|
2341
|
-
*
|
|
2344
|
+
* @param {any[]} [params.keys] - Parameter to specify returning only documents that match any of the specified keys.
|
|
2345
|
+
* A JSON array of keys that match the key type emitted by the view function.
|
|
2342
2346
|
* @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
|
|
2343
2347
|
* Default is true when a reduce function is defined.
|
|
2344
|
-
* @param {boolean} [params.stable] -
|
|
2345
|
-
*
|
|
2348
|
+
* @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
|
|
2349
|
+
* request. The default value `false` contacts all replicas and returns the result from the first, fastest,
|
|
2350
|
+
* responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the
|
|
2351
|
+
* expense of increased latency and decreased throughput if the selected replica is not the fastest of the available
|
|
2352
|
+
* replicas.
|
|
2353
|
+
*
|
|
2354
|
+
* **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
|
|
2346
2355
|
* @param {any} [params.startKey] - Schema for any JSON type.
|
|
2347
2356
|
* @param {string} [params.startKeyDocId] - Schema for a document ID.
|
|
2348
2357
|
* @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
|
|
2349
2358
|
* to responding to the user.
|
|
2359
|
+
*
|
|
2360
|
+
* * `true` - Return results after the view is updated.
|
|
2361
|
+
* * `false` - Return results without updating the view.
|
|
2362
|
+
* * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
|
|
2350
2363
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2351
2364
|
* @returns {Promise<CloudantV1.Response<CloudantV1.ViewResult>>}
|
|
2352
2365
|
*/
|
|
@@ -2418,8 +2431,8 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
2418
2431
|
* @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
|
|
2419
2432
|
* attachment stubs if the particular attachment is compressed.
|
|
2420
2433
|
* @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
|
|
2421
|
-
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
2422
|
-
*
|
|
2434
|
+
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
2435
|
+
* each returned document. Active only when `include_docs` is `true`.
|
|
2423
2436
|
* @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
|
|
2424
2437
|
* order.
|
|
2425
2438
|
* @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
|
|
@@ -2432,20 +2445,33 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
2432
2445
|
* indicating the sequence id of the database the view reflects.
|
|
2433
2446
|
* @param {any} [params.endKey] - Schema for any JSON type.
|
|
2434
2447
|
* @param {string} [params.endKeyDocId] - Schema for a document ID.
|
|
2435
|
-
* @param {boolean} [params.group] - Parameter to specify whether to group
|
|
2436
|
-
*
|
|
2437
|
-
*
|
|
2448
|
+
* @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
|
|
2449
|
+
* reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
|
|
2450
|
+
* groups further based on the number of array elements with the `group_level` parameter.
|
|
2451
|
+
* @param {number} [params.groupLevel] - Parameter to specify a group level to be used. Only applicable if the view
|
|
2452
|
+
* uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
|
|
2453
|
+
* number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
|
|
2454
|
+
* complete key.
|
|
2438
2455
|
* @param {any} [params.key] - Schema for any JSON type.
|
|
2439
|
-
* @param {any[]} [params.keys] - Parameter to specify
|
|
2440
|
-
*
|
|
2456
|
+
* @param {any[]} [params.keys] - Parameter to specify returning only documents that match any of the specified keys.
|
|
2457
|
+
* A JSON array of keys that match the key type emitted by the view function.
|
|
2441
2458
|
* @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
|
|
2442
2459
|
* Default is true when a reduce function is defined.
|
|
2443
|
-
* @param {boolean} [params.stable] -
|
|
2444
|
-
*
|
|
2460
|
+
* @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
|
|
2461
|
+
* request. The default value `false` contacts all replicas and returns the result from the first, fastest,
|
|
2462
|
+
* responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the
|
|
2463
|
+
* expense of increased latency and decreased throughput if the selected replica is not the fastest of the available
|
|
2464
|
+
* replicas.
|
|
2465
|
+
*
|
|
2466
|
+
* **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
|
|
2445
2467
|
* @param {any} [params.startKey] - Schema for any JSON type.
|
|
2446
2468
|
* @param {string} [params.startKeyDocId] - Schema for a document ID.
|
|
2447
2469
|
* @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
|
|
2448
2470
|
* to responding to the user.
|
|
2471
|
+
*
|
|
2472
|
+
* * `true` - Return results after the view is updated.
|
|
2473
|
+
* * `false` - Return results without updating the view.
|
|
2474
|
+
* * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
|
|
2449
2475
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2450
2476
|
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
2451
2477
|
*/
|
|
@@ -2656,8 +2682,8 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
2656
2682
|
* @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
|
|
2657
2683
|
* attachment stubs if the particular attachment is compressed.
|
|
2658
2684
|
* @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
|
|
2659
|
-
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
2660
|
-
*
|
|
2685
|
+
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
2686
|
+
* each returned document. Active only when `include_docs` is `true`.
|
|
2661
2687
|
* @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
|
|
2662
2688
|
* order.
|
|
2663
2689
|
* @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
|
|
@@ -2733,8 +2759,8 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
2733
2759
|
* @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
|
|
2734
2760
|
* attachment stubs if the particular attachment is compressed.
|
|
2735
2761
|
* @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
|
|
2736
|
-
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
2737
|
-
*
|
|
2762
|
+
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
2763
|
+
* each returned document. Active only when `include_docs` is `true`.
|
|
2738
2764
|
* @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
|
|
2739
2765
|
* order.
|
|
2740
2766
|
* @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
|
|
@@ -2983,8 +3009,8 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
2983
3009
|
* @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
|
|
2984
3010
|
* attachment stubs if the particular attachment is compressed.
|
|
2985
3011
|
* @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
|
|
2986
|
-
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
2987
|
-
*
|
|
3012
|
+
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
3013
|
+
* each returned document. Active only when `include_docs` is `true`.
|
|
2988
3014
|
* @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
|
|
2989
3015
|
* order.
|
|
2990
3016
|
* @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
|
|
@@ -2997,20 +3023,33 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
2997
3023
|
* indicating the sequence id of the database the view reflects.
|
|
2998
3024
|
* @param {any} [params.endKey] - Schema for any JSON type.
|
|
2999
3025
|
* @param {string} [params.endKeyDocId] - Schema for a document ID.
|
|
3000
|
-
* @param {boolean} [params.group] - Parameter to specify whether to group
|
|
3001
|
-
*
|
|
3002
|
-
*
|
|
3026
|
+
* @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
|
|
3027
|
+
* reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
|
|
3028
|
+
* groups further based on the number of array elements with the `group_level` parameter.
|
|
3029
|
+
* @param {number} [params.groupLevel] - Parameter to specify a group level to be used. Only applicable if the view
|
|
3030
|
+
* uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
|
|
3031
|
+
* number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
|
|
3032
|
+
* complete key.
|
|
3003
3033
|
* @param {any} [params.key] - Schema for any JSON type.
|
|
3004
|
-
* @param {any[]} [params.keys] - Parameter to specify
|
|
3005
|
-
*
|
|
3034
|
+
* @param {any[]} [params.keys] - Parameter to specify returning only documents that match any of the specified keys.
|
|
3035
|
+
* A JSON array of keys that match the key type emitted by the view function.
|
|
3006
3036
|
* @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
|
|
3007
3037
|
* Default is true when a reduce function is defined.
|
|
3008
|
-
* @param {boolean} [params.stable] -
|
|
3009
|
-
*
|
|
3038
|
+
* @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
|
|
3039
|
+
* request. The default value `false` contacts all replicas and returns the result from the first, fastest,
|
|
3040
|
+
* responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the
|
|
3041
|
+
* expense of increased latency and decreased throughput if the selected replica is not the fastest of the available
|
|
3042
|
+
* replicas.
|
|
3043
|
+
*
|
|
3044
|
+
* **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
|
|
3010
3045
|
* @param {any} [params.startKey] - Schema for any JSON type.
|
|
3011
3046
|
* @param {string} [params.startKeyDocId] - Schema for a document ID.
|
|
3012
3047
|
* @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
|
|
3013
3048
|
* to responding to the user.
|
|
3049
|
+
*
|
|
3050
|
+
* * `true` - Return results after the view is updated.
|
|
3051
|
+
* * `false` - Return results without updating the view.
|
|
3052
|
+
* * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
|
|
3014
3053
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
3015
3054
|
* @returns {Promise<CloudantV1.Response<CloudantV1.ViewResult>>}
|
|
3016
3055
|
*/
|
|
@@ -3084,8 +3123,8 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
3084
3123
|
* @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
|
|
3085
3124
|
* attachment stubs if the particular attachment is compressed.
|
|
3086
3125
|
* @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
|
|
3087
|
-
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
3088
|
-
*
|
|
3126
|
+
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
3127
|
+
* each returned document. Active only when `include_docs` is `true`.
|
|
3089
3128
|
* @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
|
|
3090
3129
|
* order.
|
|
3091
3130
|
* @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
|
|
@@ -3098,20 +3137,33 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
3098
3137
|
* indicating the sequence id of the database the view reflects.
|
|
3099
3138
|
* @param {any} [params.endKey] - Schema for any JSON type.
|
|
3100
3139
|
* @param {string} [params.endKeyDocId] - Schema for a document ID.
|
|
3101
|
-
* @param {boolean} [params.group] - Parameter to specify whether to group
|
|
3102
|
-
*
|
|
3103
|
-
*
|
|
3140
|
+
* @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
|
|
3141
|
+
* reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
|
|
3142
|
+
* groups further based on the number of array elements with the `group_level` parameter.
|
|
3143
|
+
* @param {number} [params.groupLevel] - Parameter to specify a group level to be used. Only applicable if the view
|
|
3144
|
+
* uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
|
|
3145
|
+
* number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
|
|
3146
|
+
* complete key.
|
|
3104
3147
|
* @param {any} [params.key] - Schema for any JSON type.
|
|
3105
|
-
* @param {any[]} [params.keys] - Parameter to specify
|
|
3106
|
-
*
|
|
3148
|
+
* @param {any[]} [params.keys] - Parameter to specify returning only documents that match any of the specified keys.
|
|
3149
|
+
* A JSON array of keys that match the key type emitted by the view function.
|
|
3107
3150
|
* @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
|
|
3108
3151
|
* Default is true when a reduce function is defined.
|
|
3109
|
-
* @param {boolean} [params.stable] -
|
|
3110
|
-
*
|
|
3152
|
+
* @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
|
|
3153
|
+
* request. The default value `false` contacts all replicas and returns the result from the first, fastest,
|
|
3154
|
+
* responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the
|
|
3155
|
+
* expense of increased latency and decreased throughput if the selected replica is not the fastest of the available
|
|
3156
|
+
* replicas.
|
|
3157
|
+
*
|
|
3158
|
+
* **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
|
|
3111
3159
|
* @param {any} [params.startKey] - Schema for any JSON type.
|
|
3112
3160
|
* @param {string} [params.startKeyDocId] - Schema for a document ID.
|
|
3113
3161
|
* @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
|
|
3114
3162
|
* to responding to the user.
|
|
3163
|
+
*
|
|
3164
|
+
* * `true` - Return results after the view is updated.
|
|
3165
|
+
* * `false` - Return results without updating the view.
|
|
3166
|
+
* * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
|
|
3115
3167
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
3116
3168
|
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
3117
3169
|
*/
|
|
@@ -4625,7 +4677,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
4625
4677
|
* @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
|
|
4626
4678
|
* in attachment stubs if the particular attachment is compressed.
|
|
4627
4679
|
* @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
|
|
4628
|
-
* in
|
|
4680
|
+
* in each returned document. Active only when `include_docs` is `true`.
|
|
4629
4681
|
* @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
|
|
4630
4682
|
* conflicted revisions in the `_deleted_conflicts` property of the returned document.
|
|
4631
4683
|
* @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
|
|
@@ -6064,7 +6116,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
6064
6116
|
/** Constants for the `postView` operation. */
|
|
6065
6117
|
var PostViewConstants;
|
|
6066
6118
|
(function (PostViewConstants) {
|
|
6067
|
-
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
|
|
6119
|
+
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. * `true` - Return results after the view is updated. * `false` - Return results without updating the view. * `lazy` - Return the view results without waiting for an update, but update them immediately after the request. */
|
|
6068
6120
|
var Update;
|
|
6069
6121
|
(function (Update) {
|
|
6070
6122
|
Update["TRUE"] = "true";
|
|
@@ -6075,7 +6127,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
6075
6127
|
/** Constants for the `postViewAsStream` operation. */
|
|
6076
6128
|
var PostViewAsStreamConstants;
|
|
6077
6129
|
(function (PostViewAsStreamConstants) {
|
|
6078
|
-
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
|
|
6130
|
+
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. * `true` - Return results after the view is updated. * `false` - Return results without updating the view. * `lazy` - Return the view results without waiting for an update, but update them immediately after the request. */
|
|
6079
6131
|
var Update;
|
|
6080
6132
|
(function (Update) {
|
|
6081
6133
|
Update["TRUE"] = "true";
|
|
@@ -6104,7 +6156,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
6104
6156
|
/** Constants for the `postPartitionView` operation. */
|
|
6105
6157
|
var PostPartitionViewConstants;
|
|
6106
6158
|
(function (PostPartitionViewConstants) {
|
|
6107
|
-
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
|
|
6159
|
+
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. * `true` - Return results after the view is updated. * `false` - Return results without updating the view. * `lazy` - Return the view results without waiting for an update, but update them immediately after the request. */
|
|
6108
6160
|
var Update;
|
|
6109
6161
|
(function (Update) {
|
|
6110
6162
|
Update["TRUE"] = "true";
|
|
@@ -6115,7 +6167,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
6115
6167
|
/** Constants for the `postPartitionViewAsStream` operation. */
|
|
6116
6168
|
var PostPartitionViewAsStreamConstants;
|
|
6117
6169
|
(function (PostPartitionViewAsStreamConstants) {
|
|
6118
|
-
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
|
|
6170
|
+
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. * `true` - Return results after the view is updated. * `false` - Return results without updating the view. * `lazy` - Return the view results without waiting for an update, but update them immediately after the request. */
|
|
6119
6171
|
var Update;
|
|
6120
6172
|
(function (Update) {
|
|
6121
6173
|
Update["TRUE"] = "true";
|