@ibm-cloud/cloudant 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/cloudant/v1.d.ts +264 -535
- package/cloudant/v1.js +110 -387
- package/cloudant/v1.js.map +1 -1
- package/package.json +14 -14
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
|
*/
|
|
@@ -4182,273 +4234,6 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
4182
4234
|
};
|
|
4183
4235
|
return this.createRequest(parameters);
|
|
4184
4236
|
};
|
|
4185
|
-
/*************************
|
|
4186
|
-
* geospatial
|
|
4187
|
-
************************/
|
|
4188
|
-
/**
|
|
4189
|
-
* Query a geospatial index.
|
|
4190
|
-
*
|
|
4191
|
-
* Executes a query against the requested geospatial index from the specified design document.
|
|
4192
|
-
*
|
|
4193
|
-
* @param {Object} params - The parameters to send to the service.
|
|
4194
|
-
* @param {string} params.db - Path parameter to specify the database name.
|
|
4195
|
-
* @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
|
|
4196
|
-
* design document ID excluding the `_design/` prefix.
|
|
4197
|
-
* @param {string} params.index - Path parameter to specify the index name.
|
|
4198
|
-
* @param {string} [params.bbox] - Query parameter to specify a geospatial query bounding box with two
|
|
4199
|
-
* latitude,longitude coordinates for the lower-left and upper-right corners. An example is
|
|
4200
|
-
* `-11.05987446,12.28339928,-101.05987446,62.28339928`.
|
|
4201
|
-
* @param {string} [params.bookmark] - Query parameter to specify a bookmark that was received from a previous
|
|
4202
|
-
* request. This parameter enables paging through the results. If there are no more results after the bookmark, you
|
|
4203
|
-
* get a response containing no further results and the same bookmark, confirming the end of the result list.
|
|
4204
|
-
* @param {string} [params.format] - Query parameter that causes the geospatial query output to be returned in the
|
|
4205
|
-
* specified format.
|
|
4206
|
-
* @param {string} [params.g] - Query parameter to specify a Well Known Text (WKT) representation of a geospatial
|
|
4207
|
-
* query geometry. The valid values for the WKT parameter include `Point`, `LineString`, `Polygon`, `MultiPoint`,
|
|
4208
|
-
* `MultiLineString`, `MultiPolygon`, and `GeometryCollection`.
|
|
4209
|
-
* @param {boolean} [params.includeDocs] - Query parameter to specify whether to include the full content of the
|
|
4210
|
-
* documents in the response.
|
|
4211
|
-
* @param {number} [params.lat] - Query parameter to specify a latitude coordinate for use with radius or ellipse
|
|
4212
|
-
* geospatial queries.
|
|
4213
|
-
* @param {number} [params.limit] - Query parameter to specify the number of returned documents to limit the result
|
|
4214
|
-
* to.
|
|
4215
|
-
* @param {number} [params.lon] - Query parameter to specify a longitude coordinate for use with radius or ellipse
|
|
4216
|
-
* geospatial queries.
|
|
4217
|
-
* @param {boolean} [params.nearest] - Query parameter to specify whether to perform a nearest neighbour (NN) search.
|
|
4218
|
-
* If provided, the `nearest=true` search returns all results by sorting their distances to the center of the query
|
|
4219
|
-
* geometry. NN search can be used alone or with any of the supported DE-9IM (Dimensionally Extended nine-Intersection
|
|
4220
|
-
* Model) specification geometric relations documented.
|
|
4221
|
-
* @param {number} [params.radius] - Query parameter to specify the radius, in meters, to search from a lat,lon
|
|
4222
|
-
* coordinate point in a circular geospatial query.
|
|
4223
|
-
* @param {number} [params.rangex] - Query parameter to specify the first radius, in meters, to search from a lat,lon
|
|
4224
|
-
* coordinate point in an ellipse geospatial query.
|
|
4225
|
-
* @param {number} [params.rangey] - Query parameter to specify the second radius, in meters, to search from a lat,lon
|
|
4226
|
-
* coordinate point in an ellipse geospatial query.
|
|
4227
|
-
* @param {string} [params.relation] - Query parameter to specify the DE-9IM (Dimensionally Extended nine-Intersection
|
|
4228
|
-
* Model)geospatial relationship between the query geometry and the result documents.
|
|
4229
|
-
* @param {number} [params.skip] - Query parameter to specify the number of records before starting to return the
|
|
4230
|
-
* results.
|
|
4231
|
-
* @param {string} [params.stale] - Query parameter to specify to not wait for the index to finish building before
|
|
4232
|
-
* returning results.
|
|
4233
|
-
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
4234
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.GeoResult>>}
|
|
4235
|
-
*/
|
|
4236
|
-
CloudantV1.prototype.getGeo = function (params) {
|
|
4237
|
-
var _params = __assign({}, params);
|
|
4238
|
-
var _requiredParams = ['db', 'ddoc', 'index'];
|
|
4239
|
-
var _validParams = ['db', 'ddoc', 'index', 'bbox', 'bookmark', 'format', 'g', 'includeDocs', 'lat', 'limit', 'lon', 'nearest', 'radius', 'rangex', 'rangey', 'relation', 'skip', 'stale', 'headers'];
|
|
4240
|
-
var _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
|
|
4241
|
-
if (_validationErrors) {
|
|
4242
|
-
return Promise.reject(_validationErrors);
|
|
4243
|
-
}
|
|
4244
|
-
var query = {
|
|
4245
|
-
'bbox': _params.bbox,
|
|
4246
|
-
'bookmark': _params.bookmark,
|
|
4247
|
-
'format': _params.format,
|
|
4248
|
-
'g': _params.g,
|
|
4249
|
-
'include_docs': _params.includeDocs,
|
|
4250
|
-
'lat': _params.lat,
|
|
4251
|
-
'limit': _params.limit,
|
|
4252
|
-
'lon': _params.lon,
|
|
4253
|
-
'nearest': _params.nearest,
|
|
4254
|
-
'radius': _params.radius,
|
|
4255
|
-
'rangex': _params.rangex,
|
|
4256
|
-
'rangey': _params.rangey,
|
|
4257
|
-
'relation': _params.relation,
|
|
4258
|
-
'skip': _params.skip,
|
|
4259
|
-
'stale': _params.stale,
|
|
4260
|
-
};
|
|
4261
|
-
var path = {
|
|
4262
|
-
'db': _params.db,
|
|
4263
|
-
'ddoc': _params.ddoc,
|
|
4264
|
-
'index': _params.index,
|
|
4265
|
-
};
|
|
4266
|
-
var sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'getGeo');
|
|
4267
|
-
var parameters = {
|
|
4268
|
-
options: {
|
|
4269
|
-
url: '/{db}/_design/{ddoc}/_geo/{index}',
|
|
4270
|
-
method: 'GET',
|
|
4271
|
-
qs: query,
|
|
4272
|
-
path: path,
|
|
4273
|
-
},
|
|
4274
|
-
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
4275
|
-
headers: extend(true, sdkHeaders, {
|
|
4276
|
-
'Accept': 'application/json',
|
|
4277
|
-
}, _params.headers),
|
|
4278
|
-
}),
|
|
4279
|
-
};
|
|
4280
|
-
return this.createRequest(parameters);
|
|
4281
|
-
};
|
|
4282
|
-
/**
|
|
4283
|
-
* Query a geospatial index as stream.
|
|
4284
|
-
*
|
|
4285
|
-
* Executes a query against the requested geospatial index from the specified design document.
|
|
4286
|
-
*
|
|
4287
|
-
* @param {Object} params - The parameters to send to the service.
|
|
4288
|
-
* @param {string} params.db - Path parameter to specify the database name.
|
|
4289
|
-
* @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
|
|
4290
|
-
* design document ID excluding the `_design/` prefix.
|
|
4291
|
-
* @param {string} params.index - Path parameter to specify the index name.
|
|
4292
|
-
* @param {string} [params.bbox] - Query parameter to specify a geospatial query bounding box with two
|
|
4293
|
-
* latitude,longitude coordinates for the lower-left and upper-right corners. An example is
|
|
4294
|
-
* `-11.05987446,12.28339928,-101.05987446,62.28339928`.
|
|
4295
|
-
* @param {string} [params.bookmark] - Query parameter to specify a bookmark that was received from a previous
|
|
4296
|
-
* request. This parameter enables paging through the results. If there are no more results after the bookmark, you
|
|
4297
|
-
* get a response containing no further results and the same bookmark, confirming the end of the result list.
|
|
4298
|
-
* @param {string} [params.format] - Query parameter that causes the geospatial query output to be returned in the
|
|
4299
|
-
* specified format.
|
|
4300
|
-
* @param {string} [params.g] - Query parameter to specify a Well Known Text (WKT) representation of a geospatial
|
|
4301
|
-
* query geometry. The valid values for the WKT parameter include `Point`, `LineString`, `Polygon`, `MultiPoint`,
|
|
4302
|
-
* `MultiLineString`, `MultiPolygon`, and `GeometryCollection`.
|
|
4303
|
-
* @param {boolean} [params.includeDocs] - Query parameter to specify whether to include the full content of the
|
|
4304
|
-
* documents in the response.
|
|
4305
|
-
* @param {number} [params.lat] - Query parameter to specify a latitude coordinate for use with radius or ellipse
|
|
4306
|
-
* geospatial queries.
|
|
4307
|
-
* @param {number} [params.limit] - Query parameter to specify the number of returned documents to limit the result
|
|
4308
|
-
* to.
|
|
4309
|
-
* @param {number} [params.lon] - Query parameter to specify a longitude coordinate for use with radius or ellipse
|
|
4310
|
-
* geospatial queries.
|
|
4311
|
-
* @param {boolean} [params.nearest] - Query parameter to specify whether to perform a nearest neighbour (NN) search.
|
|
4312
|
-
* If provided, the `nearest=true` search returns all results by sorting their distances to the center of the query
|
|
4313
|
-
* geometry. NN search can be used alone or with any of the supported DE-9IM (Dimensionally Extended nine-Intersection
|
|
4314
|
-
* Model) specification geometric relations documented.
|
|
4315
|
-
* @param {number} [params.radius] - Query parameter to specify the radius, in meters, to search from a lat,lon
|
|
4316
|
-
* coordinate point in a circular geospatial query.
|
|
4317
|
-
* @param {number} [params.rangex] - Query parameter to specify the first radius, in meters, to search from a lat,lon
|
|
4318
|
-
* coordinate point in an ellipse geospatial query.
|
|
4319
|
-
* @param {number} [params.rangey] - Query parameter to specify the second radius, in meters, to search from a lat,lon
|
|
4320
|
-
* coordinate point in an ellipse geospatial query.
|
|
4321
|
-
* @param {string} [params.relation] - Query parameter to specify the DE-9IM (Dimensionally Extended nine-Intersection
|
|
4322
|
-
* Model)geospatial relationship between the query geometry and the result documents.
|
|
4323
|
-
* @param {number} [params.skip] - Query parameter to specify the number of records before starting to return the
|
|
4324
|
-
* results.
|
|
4325
|
-
* @param {string} [params.stale] - Query parameter to specify to not wait for the index to finish building before
|
|
4326
|
-
* returning results.
|
|
4327
|
-
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
4328
|
-
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
4329
|
-
*/
|
|
4330
|
-
CloudantV1.prototype.getGeoAsStream = function (params) {
|
|
4331
|
-
var _params = __assign({}, params);
|
|
4332
|
-
var _requiredParams = ['db', 'ddoc', 'index'];
|
|
4333
|
-
var _validParams = ['db', 'ddoc', 'index', 'bbox', 'bookmark', 'format', 'g', 'includeDocs', 'lat', 'limit', 'lon', 'nearest', 'radius', 'rangex', 'rangey', 'relation', 'skip', 'stale', 'headers'];
|
|
4334
|
-
var _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
|
|
4335
|
-
if (_validationErrors) {
|
|
4336
|
-
return Promise.reject(_validationErrors);
|
|
4337
|
-
}
|
|
4338
|
-
var query = {
|
|
4339
|
-
'bbox': _params.bbox,
|
|
4340
|
-
'bookmark': _params.bookmark,
|
|
4341
|
-
'format': _params.format,
|
|
4342
|
-
'g': _params.g,
|
|
4343
|
-
'include_docs': _params.includeDocs,
|
|
4344
|
-
'lat': _params.lat,
|
|
4345
|
-
'limit': _params.limit,
|
|
4346
|
-
'lon': _params.lon,
|
|
4347
|
-
'nearest': _params.nearest,
|
|
4348
|
-
'radius': _params.radius,
|
|
4349
|
-
'rangex': _params.rangex,
|
|
4350
|
-
'rangey': _params.rangey,
|
|
4351
|
-
'relation': _params.relation,
|
|
4352
|
-
'skip': _params.skip,
|
|
4353
|
-
'stale': _params.stale,
|
|
4354
|
-
};
|
|
4355
|
-
var path = {
|
|
4356
|
-
'db': _params.db,
|
|
4357
|
-
'ddoc': _params.ddoc,
|
|
4358
|
-
'index': _params.index,
|
|
4359
|
-
};
|
|
4360
|
-
var sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'getGeoAsStream');
|
|
4361
|
-
var parameters = {
|
|
4362
|
-
options: {
|
|
4363
|
-
url: '/{db}/_design/{ddoc}/_geo/{index}',
|
|
4364
|
-
method: 'GET',
|
|
4365
|
-
qs: query,
|
|
4366
|
-
path: path,
|
|
4367
|
-
responseType: 'stream',
|
|
4368
|
-
},
|
|
4369
|
-
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
4370
|
-
headers: extend(true, sdkHeaders, {
|
|
4371
|
-
'Accept': 'application/json',
|
|
4372
|
-
}, _params.headers),
|
|
4373
|
-
}),
|
|
4374
|
-
};
|
|
4375
|
-
return this.createRequest(parameters);
|
|
4376
|
-
};
|
|
4377
|
-
/**
|
|
4378
|
-
* Cleanup old geospatial indexes.
|
|
4379
|
-
*
|
|
4380
|
-
* Cleanup old geospatial indexes from disk that have been superseded by newer index builds.
|
|
4381
|
-
*
|
|
4382
|
-
* @param {Object} params - The parameters to send to the service.
|
|
4383
|
-
* @param {string} params.db - Path parameter to specify the database name.
|
|
4384
|
-
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
4385
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.Ok>>}
|
|
4386
|
-
*/
|
|
4387
|
-
CloudantV1.prototype.postGeoCleanup = function (params) {
|
|
4388
|
-
var _params = __assign({}, params);
|
|
4389
|
-
var _requiredParams = ['db'];
|
|
4390
|
-
var _validParams = ['db', 'headers'];
|
|
4391
|
-
var _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
|
|
4392
|
-
if (_validationErrors) {
|
|
4393
|
-
return Promise.reject(_validationErrors);
|
|
4394
|
-
}
|
|
4395
|
-
var path = {
|
|
4396
|
-
'db': _params.db,
|
|
4397
|
-
};
|
|
4398
|
-
var sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'postGeoCleanup');
|
|
4399
|
-
var parameters = {
|
|
4400
|
-
options: {
|
|
4401
|
-
url: '/{db}/_geo_cleanup',
|
|
4402
|
-
method: 'POST',
|
|
4403
|
-
path: path,
|
|
4404
|
-
},
|
|
4405
|
-
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
4406
|
-
headers: extend(true, sdkHeaders, {
|
|
4407
|
-
'Accept': 'application/json',
|
|
4408
|
-
}, _params.headers),
|
|
4409
|
-
}),
|
|
4410
|
-
};
|
|
4411
|
-
return this.createRequest(parameters);
|
|
4412
|
-
};
|
|
4413
|
-
/**
|
|
4414
|
-
* Retrieve information about a geospatial index.
|
|
4415
|
-
*
|
|
4416
|
-
* @param {Object} params - The parameters to send to the service.
|
|
4417
|
-
* @param {string} params.db - Path parameter to specify the database name.
|
|
4418
|
-
* @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
|
|
4419
|
-
* design document ID excluding the `_design/` prefix.
|
|
4420
|
-
* @param {string} params.index - Path parameter to specify the index name.
|
|
4421
|
-
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
4422
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.GeoIndexInformation>>}
|
|
4423
|
-
*/
|
|
4424
|
-
CloudantV1.prototype.getGeoIndexInformation = function (params) {
|
|
4425
|
-
var _params = __assign({}, params);
|
|
4426
|
-
var _requiredParams = ['db', 'ddoc', 'index'];
|
|
4427
|
-
var _validParams = ['db', 'ddoc', 'index', 'headers'];
|
|
4428
|
-
var _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
|
|
4429
|
-
if (_validationErrors) {
|
|
4430
|
-
return Promise.reject(_validationErrors);
|
|
4431
|
-
}
|
|
4432
|
-
var path = {
|
|
4433
|
-
'db': _params.db,
|
|
4434
|
-
'ddoc': _params.ddoc,
|
|
4435
|
-
'index': _params.index,
|
|
4436
|
-
};
|
|
4437
|
-
var sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'getGeoIndexInformation');
|
|
4438
|
-
var parameters = {
|
|
4439
|
-
options: {
|
|
4440
|
-
url: '/{db}/_design/{ddoc}/_geo_info/{index}',
|
|
4441
|
-
method: 'GET',
|
|
4442
|
-
path: path,
|
|
4443
|
-
},
|
|
4444
|
-
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
4445
|
-
headers: extend(true, sdkHeaders, {
|
|
4446
|
-
'Accept': 'application/json',
|
|
4447
|
-
}, _params.headers),
|
|
4448
|
-
}),
|
|
4449
|
-
};
|
|
4450
|
-
return this.createRequest(parameters);
|
|
4451
|
-
};
|
|
4452
4237
|
/*************************
|
|
4453
4238
|
* replication
|
|
4454
4239
|
************************/
|
|
@@ -4625,7 +4410,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
4625
4410
|
* @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
|
|
4626
4411
|
* in attachment stubs if the particular attachment is compressed.
|
|
4627
4412
|
* @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
|
|
4628
|
-
* in
|
|
4413
|
+
* in each returned document. Active only when `include_docs` is `true`.
|
|
4629
4414
|
* @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
|
|
4630
4415
|
* conflicted revisions in the `_deleted_conflicts` property of the returned document.
|
|
4631
4416
|
* @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
|
|
@@ -6064,7 +5849,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
6064
5849
|
/** Constants for the `postView` operation. */
|
|
6065
5850
|
var PostViewConstants;
|
|
6066
5851
|
(function (PostViewConstants) {
|
|
6067
|
-
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
|
|
5852
|
+
/** 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
5853
|
var Update;
|
|
6069
5854
|
(function (Update) {
|
|
6070
5855
|
Update["TRUE"] = "true";
|
|
@@ -6075,7 +5860,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
6075
5860
|
/** Constants for the `postViewAsStream` operation. */
|
|
6076
5861
|
var PostViewAsStreamConstants;
|
|
6077
5862
|
(function (PostViewAsStreamConstants) {
|
|
6078
|
-
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
|
|
5863
|
+
/** 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
5864
|
var Update;
|
|
6080
5865
|
(function (Update) {
|
|
6081
5866
|
Update["TRUE"] = "true";
|
|
@@ -6104,7 +5889,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
6104
5889
|
/** Constants for the `postPartitionView` operation. */
|
|
6105
5890
|
var PostPartitionViewConstants;
|
|
6106
5891
|
(function (PostPartitionViewConstants) {
|
|
6107
|
-
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
|
|
5892
|
+
/** 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
5893
|
var Update;
|
|
6109
5894
|
(function (Update) {
|
|
6110
5895
|
Update["TRUE"] = "true";
|
|
@@ -6115,7 +5900,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
6115
5900
|
/** Constants for the `postPartitionViewAsStream` operation. */
|
|
6116
5901
|
var PostPartitionViewAsStreamConstants;
|
|
6117
5902
|
(function (PostPartitionViewAsStreamConstants) {
|
|
6118
|
-
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
|
|
5903
|
+
/** 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
5904
|
var Update;
|
|
6120
5905
|
(function (Update) {
|
|
6121
5906
|
Update["TRUE"] = "true";
|
|
@@ -6296,68 +6081,6 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
6296
6081
|
Stale["OK"] = "ok";
|
|
6297
6082
|
})(Stale = PostSearchAsStreamConstants.Stale || (PostSearchAsStreamConstants.Stale = {}));
|
|
6298
6083
|
})(PostSearchAsStreamConstants = CloudantV1.PostSearchAsStreamConstants || (CloudantV1.PostSearchAsStreamConstants = {}));
|
|
6299
|
-
/** Constants for the `getGeo` operation. */
|
|
6300
|
-
var GetGeoConstants;
|
|
6301
|
-
(function (GetGeoConstants) {
|
|
6302
|
-
/** Query parameter that causes the geospatial query output to be returned in the specified format. */
|
|
6303
|
-
var Format;
|
|
6304
|
-
(function (Format) {
|
|
6305
|
-
Format["LEGACY"] = "legacy";
|
|
6306
|
-
Format["GEOJSON"] = "geojson";
|
|
6307
|
-
Format["VIEW"] = "view";
|
|
6308
|
-
Format["APPLICATION_VND_GEO_JSON"] = "application/vnd.geo+json";
|
|
6309
|
-
})(Format = GetGeoConstants.Format || (GetGeoConstants.Format = {}));
|
|
6310
|
-
/** Query parameter to specify the DE-9IM (Dimensionally Extended nine-Intersection Model)geospatial relationship between the query geometry and the result documents. */
|
|
6311
|
-
var Relation;
|
|
6312
|
-
(function (Relation) {
|
|
6313
|
-
Relation["CONTAINS"] = "contains";
|
|
6314
|
-
Relation["CONTAINS_PROPERLY"] = "contains_properly";
|
|
6315
|
-
Relation["COVERED_BY"] = "covered_by";
|
|
6316
|
-
Relation["COVERS"] = "covers";
|
|
6317
|
-
Relation["CROSSES"] = "crosses";
|
|
6318
|
-
Relation["DISJOINT"] = "disjoint";
|
|
6319
|
-
Relation["INTERSECTS"] = "intersects";
|
|
6320
|
-
Relation["OVERLAPS"] = "overlaps";
|
|
6321
|
-
Relation["TOUCHES"] = "touches";
|
|
6322
|
-
Relation["WITHIN"] = "within";
|
|
6323
|
-
})(Relation = GetGeoConstants.Relation || (GetGeoConstants.Relation = {}));
|
|
6324
|
-
/** Query parameter to specify to not wait for the index to finish building before returning results. */
|
|
6325
|
-
var Stale;
|
|
6326
|
-
(function (Stale) {
|
|
6327
|
-
Stale["OK"] = "ok";
|
|
6328
|
-
})(Stale = GetGeoConstants.Stale || (GetGeoConstants.Stale = {}));
|
|
6329
|
-
})(GetGeoConstants = CloudantV1.GetGeoConstants || (CloudantV1.GetGeoConstants = {}));
|
|
6330
|
-
/** Constants for the `getGeoAsStream` operation. */
|
|
6331
|
-
var GetGeoAsStreamConstants;
|
|
6332
|
-
(function (GetGeoAsStreamConstants) {
|
|
6333
|
-
/** Query parameter that causes the geospatial query output to be returned in the specified format. */
|
|
6334
|
-
var Format;
|
|
6335
|
-
(function (Format) {
|
|
6336
|
-
Format["LEGACY"] = "legacy";
|
|
6337
|
-
Format["GEOJSON"] = "geojson";
|
|
6338
|
-
Format["VIEW"] = "view";
|
|
6339
|
-
Format["APPLICATION_VND_GEO_JSON"] = "application/vnd.geo+json";
|
|
6340
|
-
})(Format = GetGeoAsStreamConstants.Format || (GetGeoAsStreamConstants.Format = {}));
|
|
6341
|
-
/** Query parameter to specify the DE-9IM (Dimensionally Extended nine-Intersection Model)geospatial relationship between the query geometry and the result documents. */
|
|
6342
|
-
var Relation;
|
|
6343
|
-
(function (Relation) {
|
|
6344
|
-
Relation["CONTAINS"] = "contains";
|
|
6345
|
-
Relation["CONTAINS_PROPERLY"] = "contains_properly";
|
|
6346
|
-
Relation["COVERED_BY"] = "covered_by";
|
|
6347
|
-
Relation["COVERS"] = "covers";
|
|
6348
|
-
Relation["CROSSES"] = "crosses";
|
|
6349
|
-
Relation["DISJOINT"] = "disjoint";
|
|
6350
|
-
Relation["INTERSECTS"] = "intersects";
|
|
6351
|
-
Relation["OVERLAPS"] = "overlaps";
|
|
6352
|
-
Relation["TOUCHES"] = "touches";
|
|
6353
|
-
Relation["WITHIN"] = "within";
|
|
6354
|
-
})(Relation = GetGeoAsStreamConstants.Relation || (GetGeoAsStreamConstants.Relation = {}));
|
|
6355
|
-
/** Query parameter to specify to not wait for the index to finish building before returning results. */
|
|
6356
|
-
var Stale;
|
|
6357
|
-
(function (Stale) {
|
|
6358
|
-
Stale["OK"] = "ok";
|
|
6359
|
-
})(Stale = GetGeoAsStreamConstants.Stale || (GetGeoAsStreamConstants.Stale = {}));
|
|
6360
|
-
})(GetGeoAsStreamConstants = CloudantV1.GetGeoAsStreamConstants || (CloudantV1.GetGeoAsStreamConstants = {}));
|
|
6361
6084
|
/** Constants for the `deleteReplicationDocument` operation. */
|
|
6362
6085
|
var DeleteReplicationDocumentConstants;
|
|
6363
6086
|
(function (DeleteReplicationDocumentConstants) {
|