@ibm-cloud/cloudant 0.1.1 → 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 +14 -8
- package/cloudant/v1.d.ts +259 -131
- package/cloudant/v1.js +110 -58
- package/cloudant/v1.js.map +1 -1
- package/package.json +21 -21
package/cloudant/v1.d.ts
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
/// <reference types="node" />
|
|
17
|
+
/// <reference types="node" />
|
|
17
18
|
import { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http';
|
|
18
19
|
import { UserOptions } from 'ibm-cloud-sdk-core';
|
|
19
20
|
import CloudantBaseService from '../lib/cloudantBaseService';
|
|
@@ -190,7 +191,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
190
191
|
* @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
|
|
191
192
|
* response.
|
|
192
193
|
* @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
|
|
193
|
-
* in
|
|
194
|
+
* in each returned document. Active only when `include_docs` is `true`.
|
|
194
195
|
* @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
|
|
195
196
|
* key order.
|
|
196
197
|
* @param {string} [params.feed] - Query parameter to specify the changes feed type.
|
|
@@ -286,7 +287,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
286
287
|
* @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
|
|
287
288
|
* response.
|
|
288
289
|
* @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
|
|
289
|
-
* in
|
|
290
|
+
* in each returned document. Active only when `include_docs` is `true`.
|
|
290
291
|
* @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
|
|
291
292
|
* key order.
|
|
292
293
|
* @param {string} [params.feed] - Query parameter to specify the changes feed type.
|
|
@@ -471,8 +472,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
471
472
|
* @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
|
|
472
473
|
* attachment stubs if the particular attachment is compressed.
|
|
473
474
|
* @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
|
|
474
|
-
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
475
|
-
*
|
|
475
|
+
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
476
|
+
* each returned document. Active only when `include_docs` is `true`.
|
|
476
477
|
* @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
|
|
477
478
|
* order.
|
|
478
479
|
* @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
|
|
@@ -504,8 +505,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
504
505
|
* @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
|
|
505
506
|
* attachment stubs if the particular attachment is compressed.
|
|
506
507
|
* @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
|
|
507
|
-
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
508
|
-
*
|
|
508
|
+
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
509
|
+
* each returned document. Active only when `include_docs` is `true`.
|
|
509
510
|
* @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
|
|
510
511
|
* order.
|
|
511
512
|
* @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
|
|
@@ -685,7 +686,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
685
686
|
* @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
|
|
686
687
|
* in attachment stubs if the particular attachment is compressed.
|
|
687
688
|
* @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
|
|
688
|
-
* in
|
|
689
|
+
* in each returned document. Active only when `include_docs` is `true`.
|
|
689
690
|
* @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
|
|
690
691
|
* conflicted revisions in the `_deleted_conflicts` property of the returned document.
|
|
691
692
|
* @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
|
|
@@ -719,7 +720,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
719
720
|
* @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
|
|
720
721
|
* in attachment stubs if the particular attachment is compressed.
|
|
721
722
|
* @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
|
|
722
|
-
* in
|
|
723
|
+
* in each returned document. Active only when `include_docs` is `true`.
|
|
723
724
|
* @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
|
|
724
725
|
* conflicted revisions in the `_deleted_conflicts` property of the returned document.
|
|
725
726
|
* @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
|
|
@@ -753,7 +754,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
753
754
|
* @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
|
|
754
755
|
* in attachment stubs if the particular attachment is compressed.
|
|
755
756
|
* @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
|
|
756
|
-
* in
|
|
757
|
+
* in each returned document. Active only when `include_docs` is `true`.
|
|
757
758
|
* @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
|
|
758
759
|
* conflicted revisions in the `_deleted_conflicts` property of the returned document.
|
|
759
760
|
* @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
|
|
@@ -787,7 +788,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
787
788
|
* @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
|
|
788
789
|
* in attachment stubs if the particular attachment is compressed.
|
|
789
790
|
* @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
|
|
790
|
-
* in
|
|
791
|
+
* in each returned document. Active only when `include_docs` is `true`.
|
|
791
792
|
* @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
|
|
792
793
|
* conflicted revisions in the `_deleted_conflicts` property of the returned document.
|
|
793
794
|
* @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
|
|
@@ -890,7 +891,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
890
891
|
* @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
|
|
891
892
|
* in attachment stubs if the particular attachment is compressed.
|
|
892
893
|
* @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
|
|
893
|
-
* in
|
|
894
|
+
* in each returned document. Active only when `include_docs` is `true`.
|
|
894
895
|
* @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
|
|
895
896
|
* conflicted revisions in the `_deleted_conflicts` property of the returned document.
|
|
896
897
|
* @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
|
|
@@ -957,8 +958,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
957
958
|
* @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
|
|
958
959
|
* attachment stubs if the particular attachment is compressed.
|
|
959
960
|
* @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
|
|
960
|
-
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
961
|
-
*
|
|
961
|
+
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
962
|
+
* each returned document. Active only when `include_docs` is `true`.
|
|
962
963
|
* @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
|
|
963
964
|
* order.
|
|
964
965
|
* @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
|
|
@@ -1013,8 +1014,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1013
1014
|
* @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
|
|
1014
1015
|
* attachment stubs if the particular attachment is compressed.
|
|
1015
1016
|
* @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
|
|
1016
|
-
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
1017
|
-
*
|
|
1017
|
+
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
1018
|
+
* each returned document. Active only when `include_docs` is `true`.
|
|
1018
1019
|
* @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
|
|
1019
1020
|
* order.
|
|
1020
1021
|
* @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
|
|
@@ -1027,20 +1028,33 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1027
1028
|
* indicating the sequence id of the database the view reflects.
|
|
1028
1029
|
* @param {any} [params.endKey] - Schema for any JSON type.
|
|
1029
1030
|
* @param {string} [params.endKeyDocId] - Schema for a document ID.
|
|
1030
|
-
* @param {boolean} [params.group] - Parameter to specify whether to group
|
|
1031
|
-
*
|
|
1032
|
-
*
|
|
1031
|
+
* @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
|
|
1032
|
+
* reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
|
|
1033
|
+
* groups further based on the number of array elements with the `group_level` parameter.
|
|
1034
|
+
* @param {number} [params.groupLevel] - Parameter to specify a group level to be used. Only applicable if the view
|
|
1035
|
+
* uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
|
|
1036
|
+
* number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
|
|
1037
|
+
* complete key.
|
|
1033
1038
|
* @param {any} [params.key] - Schema for any JSON type.
|
|
1034
|
-
* @param {any[]} [params.keys] - Parameter to specify
|
|
1035
|
-
*
|
|
1039
|
+
* @param {any[]} [params.keys] - Parameter to specify returning only documents that match any of the specified keys.
|
|
1040
|
+
* A JSON array of keys that match the key type emitted by the view function.
|
|
1036
1041
|
* @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
|
|
1037
1042
|
* Default is true when a reduce function is defined.
|
|
1038
|
-
* @param {boolean} [params.stable] -
|
|
1039
|
-
*
|
|
1043
|
+
* @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
|
|
1044
|
+
* request. The default value `false` contacts all replicas and returns the result from the first, fastest,
|
|
1045
|
+
* responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the
|
|
1046
|
+
* expense of increased latency and decreased throughput if the selected replica is not the fastest of the available
|
|
1047
|
+
* replicas.
|
|
1048
|
+
*
|
|
1049
|
+
* **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
|
|
1040
1050
|
* @param {any} [params.startKey] - Schema for any JSON type.
|
|
1041
1051
|
* @param {string} [params.startKeyDocId] - Schema for a document ID.
|
|
1042
1052
|
* @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
|
|
1043
1053
|
* to responding to the user.
|
|
1054
|
+
*
|
|
1055
|
+
* * `true` - Return results after the view is updated.
|
|
1056
|
+
* * `false` - Return results without updating the view.
|
|
1057
|
+
* * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
|
|
1044
1058
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
1045
1059
|
* @returns {Promise<CloudantV1.Response<CloudantV1.ViewResult>>}
|
|
1046
1060
|
*/
|
|
@@ -1061,8 +1075,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1061
1075
|
* @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
|
|
1062
1076
|
* attachment stubs if the particular attachment is compressed.
|
|
1063
1077
|
* @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
|
|
1064
|
-
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
1065
|
-
*
|
|
1078
|
+
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
1079
|
+
* each returned document. Active only when `include_docs` is `true`.
|
|
1066
1080
|
* @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
|
|
1067
1081
|
* order.
|
|
1068
1082
|
* @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
|
|
@@ -1075,20 +1089,33 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1075
1089
|
* indicating the sequence id of the database the view reflects.
|
|
1076
1090
|
* @param {any} [params.endKey] - Schema for any JSON type.
|
|
1077
1091
|
* @param {string} [params.endKeyDocId] - Schema for a document ID.
|
|
1078
|
-
* @param {boolean} [params.group] - Parameter to specify whether to group
|
|
1079
|
-
*
|
|
1080
|
-
*
|
|
1092
|
+
* @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
|
|
1093
|
+
* reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
|
|
1094
|
+
* groups further based on the number of array elements with the `group_level` parameter.
|
|
1095
|
+
* @param {number} [params.groupLevel] - Parameter to specify a group level to be used. Only applicable if the view
|
|
1096
|
+
* uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
|
|
1097
|
+
* number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
|
|
1098
|
+
* complete key.
|
|
1081
1099
|
* @param {any} [params.key] - Schema for any JSON type.
|
|
1082
|
-
* @param {any[]} [params.keys] - Parameter to specify
|
|
1083
|
-
*
|
|
1100
|
+
* @param {any[]} [params.keys] - Parameter to specify returning only documents that match any of the specified keys.
|
|
1101
|
+
* A JSON array of keys that match the key type emitted by the view function.
|
|
1084
1102
|
* @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
|
|
1085
1103
|
* Default is true when a reduce function is defined.
|
|
1086
|
-
* @param {boolean} [params.stable] -
|
|
1087
|
-
*
|
|
1104
|
+
* @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
|
|
1105
|
+
* request. The default value `false` contacts all replicas and returns the result from the first, fastest,
|
|
1106
|
+
* responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the
|
|
1107
|
+
* expense of increased latency and decreased throughput if the selected replica is not the fastest of the available
|
|
1108
|
+
* replicas.
|
|
1109
|
+
*
|
|
1110
|
+
* **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
|
|
1088
1111
|
* @param {any} [params.startKey] - Schema for any JSON type.
|
|
1089
1112
|
* @param {string} [params.startKeyDocId] - Schema for a document ID.
|
|
1090
1113
|
* @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
|
|
1091
1114
|
* to responding to the user.
|
|
1115
|
+
*
|
|
1116
|
+
* * `true` - Return results after the view is updated.
|
|
1117
|
+
* * `false` - Return results without updating the view.
|
|
1118
|
+
* * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
|
|
1092
1119
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
1093
1120
|
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
1094
1121
|
*/
|
|
@@ -1156,8 +1183,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1156
1183
|
* @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
|
|
1157
1184
|
* attachment stubs if the particular attachment is compressed.
|
|
1158
1185
|
* @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
|
|
1159
|
-
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
1160
|
-
*
|
|
1186
|
+
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
1187
|
+
* each returned document. Active only when `include_docs` is `true`.
|
|
1161
1188
|
* @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
|
|
1162
1189
|
* order.
|
|
1163
1190
|
* @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
|
|
@@ -1190,8 +1217,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1190
1217
|
* @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
|
|
1191
1218
|
* attachment stubs if the particular attachment is compressed.
|
|
1192
1219
|
* @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
|
|
1193
|
-
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
1194
|
-
*
|
|
1220
|
+
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
1221
|
+
* each returned document. Active only when `include_docs` is `true`.
|
|
1195
1222
|
* @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
|
|
1196
1223
|
* order.
|
|
1197
1224
|
* @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
|
|
@@ -1307,8 +1334,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1307
1334
|
* @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
|
|
1308
1335
|
* attachment stubs if the particular attachment is compressed.
|
|
1309
1336
|
* @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
|
|
1310
|
-
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
1311
|
-
*
|
|
1337
|
+
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
1338
|
+
* each returned document. Active only when `include_docs` is `true`.
|
|
1312
1339
|
* @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
|
|
1313
1340
|
* order.
|
|
1314
1341
|
* @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
|
|
@@ -1321,20 +1348,33 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1321
1348
|
* indicating the sequence id of the database the view reflects.
|
|
1322
1349
|
* @param {any} [params.endKey] - Schema for any JSON type.
|
|
1323
1350
|
* @param {string} [params.endKeyDocId] - Schema for a document ID.
|
|
1324
|
-
* @param {boolean} [params.group] - Parameter to specify whether to group
|
|
1325
|
-
*
|
|
1326
|
-
*
|
|
1351
|
+
* @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
|
|
1352
|
+
* reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
|
|
1353
|
+
* groups further based on the number of array elements with the `group_level` parameter.
|
|
1354
|
+
* @param {number} [params.groupLevel] - Parameter to specify a group level to be used. Only applicable if the view
|
|
1355
|
+
* uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
|
|
1356
|
+
* number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
|
|
1357
|
+
* complete key.
|
|
1327
1358
|
* @param {any} [params.key] - Schema for any JSON type.
|
|
1328
|
-
* @param {any[]} [params.keys] - Parameter to specify
|
|
1329
|
-
*
|
|
1359
|
+
* @param {any[]} [params.keys] - Parameter to specify returning only documents that match any of the specified keys.
|
|
1360
|
+
* A JSON array of keys that match the key type emitted by the view function.
|
|
1330
1361
|
* @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
|
|
1331
1362
|
* Default is true when a reduce function is defined.
|
|
1332
|
-
* @param {boolean} [params.stable] -
|
|
1333
|
-
*
|
|
1363
|
+
* @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
|
|
1364
|
+
* request. The default value `false` contacts all replicas and returns the result from the first, fastest,
|
|
1365
|
+
* responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the
|
|
1366
|
+
* expense of increased latency and decreased throughput if the selected replica is not the fastest of the available
|
|
1367
|
+
* replicas.
|
|
1368
|
+
*
|
|
1369
|
+
* **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
|
|
1334
1370
|
* @param {any} [params.startKey] - Schema for any JSON type.
|
|
1335
1371
|
* @param {string} [params.startKeyDocId] - Schema for a document ID.
|
|
1336
1372
|
* @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
|
|
1337
1373
|
* to responding to the user.
|
|
1374
|
+
*
|
|
1375
|
+
* * `true` - Return results after the view is updated.
|
|
1376
|
+
* * `false` - Return results without updating the view.
|
|
1377
|
+
* * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
|
|
1338
1378
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
1339
1379
|
* @returns {Promise<CloudantV1.Response<CloudantV1.ViewResult>>}
|
|
1340
1380
|
*/
|
|
@@ -1356,8 +1396,8 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1356
1396
|
* @param {boolean} [params.attEncodingInfo] - Parameter to specify whether to include the encoding information in
|
|
1357
1397
|
* attachment stubs if the particular attachment is compressed.
|
|
1358
1398
|
* @param {boolean} [params.attachments] - Parameter to specify whether to include attachments bodies in a response.
|
|
1359
|
-
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
1360
|
-
*
|
|
1399
|
+
* @param {boolean} [params.conflicts] - Parameter to specify whether to include a list of conflicted revisions in
|
|
1400
|
+
* each returned document. Active only when `include_docs` is `true`.
|
|
1361
1401
|
* @param {boolean} [params.descending] - Parameter to specify whether to return the documents in descending by key
|
|
1362
1402
|
* order.
|
|
1363
1403
|
* @param {boolean} [params.includeDocs] - Parameter to specify whether to include the full content of the documents
|
|
@@ -1370,20 +1410,33 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
1370
1410
|
* indicating the sequence id of the database the view reflects.
|
|
1371
1411
|
* @param {any} [params.endKey] - Schema for any JSON type.
|
|
1372
1412
|
* @param {string} [params.endKeyDocId] - Schema for a document ID.
|
|
1373
|
-
* @param {boolean} [params.group] - Parameter to specify whether to group
|
|
1374
|
-
*
|
|
1375
|
-
*
|
|
1413
|
+
* @param {boolean} [params.group] - Parameter to specify whether to group reduced results by key. Valid only if a
|
|
1414
|
+
* reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce
|
|
1415
|
+
* groups further based on the number of array elements with the `group_level` parameter.
|
|
1416
|
+
* @param {number} [params.groupLevel] - Parameter to specify a group level to be used. Only applicable if the view
|
|
1417
|
+
* uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified
|
|
1418
|
+
* number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each
|
|
1419
|
+
* complete key.
|
|
1376
1420
|
* @param {any} [params.key] - Schema for any JSON type.
|
|
1377
|
-
* @param {any[]} [params.keys] - Parameter to specify
|
|
1378
|
-
*
|
|
1421
|
+
* @param {any[]} [params.keys] - Parameter to specify returning only documents that match any of the specified keys.
|
|
1422
|
+
* A JSON array of keys that match the key type emitted by the view function.
|
|
1379
1423
|
* @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
|
|
1380
1424
|
* Default is true when a reduce function is defined.
|
|
1381
|
-
* @param {boolean} [params.stable] -
|
|
1382
|
-
*
|
|
1425
|
+
* @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
|
|
1426
|
+
* request. The default value `false` contacts all replicas and returns the result from the first, fastest,
|
|
1427
|
+
* responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the
|
|
1428
|
+
* expense of increased latency and decreased throughput if the selected replica is not the fastest of the available
|
|
1429
|
+
* replicas.
|
|
1430
|
+
*
|
|
1431
|
+
* **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
|
|
1383
1432
|
* @param {any} [params.startKey] - Schema for any JSON type.
|
|
1384
1433
|
* @param {string} [params.startKeyDocId] - Schema for a document ID.
|
|
1385
1434
|
* @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
|
|
1386
1435
|
* to responding to the user.
|
|
1436
|
+
*
|
|
1437
|
+
* * `true` - Return results after the view is updated.
|
|
1438
|
+
* * `false` - Return results without updating the view.
|
|
1439
|
+
* * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
|
|
1387
1440
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
1388
1441
|
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
1389
1442
|
*/
|
|
@@ -2151,7 +2204,7 @@ declare class CloudantV1 extends CloudantBaseService {
|
|
|
2151
2204
|
* @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
|
|
2152
2205
|
* in attachment stubs if the particular attachment is compressed.
|
|
2153
2206
|
* @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
|
|
2154
|
-
* in
|
|
2207
|
+
* in each returned document. Active only when `include_docs` is `true`.
|
|
2155
2208
|
* @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
|
|
2156
2209
|
* conflicted revisions in the `_deleted_conflicts` property of the returned document.
|
|
2157
2210
|
* @param {boolean} [params.latest] - Query parameter to specify whether to force retrieving latest leaf revision, no
|
|
@@ -2769,8 +2822,8 @@ declare namespace CloudantV1 {
|
|
|
2769
2822
|
attEncodingInfo?: boolean;
|
|
2770
2823
|
/** Query parameter to specify whether to include attachments bodies in a response. */
|
|
2771
2824
|
attachments?: boolean;
|
|
2772
|
-
/** Query parameter to specify whether to include a list of conflicted revisions in
|
|
2773
|
-
*
|
|
2825
|
+
/** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
|
|
2826
|
+
* Active only when `include_docs` is `true`.
|
|
2774
2827
|
*/
|
|
2775
2828
|
conflicts?: boolean;
|
|
2776
2829
|
/** Query parameter to specify whether to return the documents in descending by key order. */
|
|
@@ -2888,8 +2941,8 @@ declare namespace CloudantV1 {
|
|
|
2888
2941
|
attEncodingInfo?: boolean;
|
|
2889
2942
|
/** Query parameter to specify whether to include attachments bodies in a response. */
|
|
2890
2943
|
attachments?: boolean;
|
|
2891
|
-
/** Query parameter to specify whether to include a list of conflicted revisions in
|
|
2892
|
-
*
|
|
2944
|
+
/** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
|
|
2945
|
+
* Active only when `include_docs` is `true`.
|
|
2893
2946
|
*/
|
|
2894
2947
|
conflicts?: boolean;
|
|
2895
2948
|
/** Query parameter to specify whether to return the documents in descending by key order. */
|
|
@@ -3065,8 +3118,8 @@ declare namespace CloudantV1 {
|
|
|
3065
3118
|
attEncodingInfo?: boolean;
|
|
3066
3119
|
/** Parameter to specify whether to include attachments bodies in a response. */
|
|
3067
3120
|
attachments?: boolean;
|
|
3068
|
-
/** Parameter to specify whether to include a list of conflicted revisions in
|
|
3069
|
-
*
|
|
3121
|
+
/** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
|
|
3122
|
+
* only when `include_docs` is `true`.
|
|
3070
3123
|
*/
|
|
3071
3124
|
conflicts?: boolean;
|
|
3072
3125
|
/** Parameter to specify whether to return the documents in descending by key order. */
|
|
@@ -3103,8 +3156,8 @@ declare namespace CloudantV1 {
|
|
|
3103
3156
|
attEncodingInfo?: boolean;
|
|
3104
3157
|
/** Parameter to specify whether to include attachments bodies in a response. */
|
|
3105
3158
|
attachments?: boolean;
|
|
3106
|
-
/** Parameter to specify whether to include a list of conflicted revisions in
|
|
3107
|
-
*
|
|
3159
|
+
/** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
|
|
3160
|
+
* only when `include_docs` is `true`.
|
|
3108
3161
|
*/
|
|
3109
3162
|
conflicts?: boolean;
|
|
3110
3163
|
/** Parameter to specify whether to return the documents in descending by key order. */
|
|
@@ -3276,8 +3329,8 @@ declare namespace CloudantV1 {
|
|
|
3276
3329
|
* attachment is compressed.
|
|
3277
3330
|
*/
|
|
3278
3331
|
attEncodingInfo?: boolean;
|
|
3279
|
-
/** Query parameter to specify whether to include a list of conflicted revisions in
|
|
3280
|
-
*
|
|
3332
|
+
/** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
|
|
3333
|
+
* Active only when `include_docs` is `true`.
|
|
3281
3334
|
*/
|
|
3282
3335
|
conflicts?: boolean;
|
|
3283
3336
|
/** Query parameter to specify whether to include a list of deleted conflicted revisions in the
|
|
@@ -3316,8 +3369,8 @@ declare namespace CloudantV1 {
|
|
|
3316
3369
|
* attachment is compressed.
|
|
3317
3370
|
*/
|
|
3318
3371
|
attEncodingInfo?: boolean;
|
|
3319
|
-
/** Query parameter to specify whether to include a list of conflicted revisions in
|
|
3320
|
-
*
|
|
3372
|
+
/** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
|
|
3373
|
+
* Active only when `include_docs` is `true`.
|
|
3321
3374
|
*/
|
|
3322
3375
|
conflicts?: boolean;
|
|
3323
3376
|
/** Query parameter to specify whether to include a list of deleted conflicted revisions in the
|
|
@@ -3356,8 +3409,8 @@ declare namespace CloudantV1 {
|
|
|
3356
3409
|
* attachment is compressed.
|
|
3357
3410
|
*/
|
|
3358
3411
|
attEncodingInfo?: boolean;
|
|
3359
|
-
/** Query parameter to specify whether to include a list of conflicted revisions in
|
|
3360
|
-
*
|
|
3412
|
+
/** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
|
|
3413
|
+
* Active only when `include_docs` is `true`.
|
|
3361
3414
|
*/
|
|
3362
3415
|
conflicts?: boolean;
|
|
3363
3416
|
/** Query parameter to specify whether to include a list of deleted conflicted revisions in the
|
|
@@ -3396,8 +3449,8 @@ declare namespace CloudantV1 {
|
|
|
3396
3449
|
* attachment is compressed.
|
|
3397
3450
|
*/
|
|
3398
3451
|
attEncodingInfo?: boolean;
|
|
3399
|
-
/** Query parameter to specify whether to include a list of conflicted revisions in
|
|
3400
|
-
*
|
|
3452
|
+
/** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
|
|
3453
|
+
* Active only when `include_docs` is `true`.
|
|
3401
3454
|
*/
|
|
3402
3455
|
conflicts?: boolean;
|
|
3403
3456
|
/** Query parameter to specify whether to include a list of deleted conflicted revisions in the
|
|
@@ -3514,8 +3567,8 @@ declare namespace CloudantV1 {
|
|
|
3514
3567
|
* attachment is compressed.
|
|
3515
3568
|
*/
|
|
3516
3569
|
attEncodingInfo?: boolean;
|
|
3517
|
-
/** Query parameter to specify whether to include a list of conflicted revisions in
|
|
3518
|
-
*
|
|
3570
|
+
/** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
|
|
3571
|
+
* Active only when `include_docs` is `true`.
|
|
3519
3572
|
*/
|
|
3520
3573
|
conflicts?: boolean;
|
|
3521
3574
|
/** Query parameter to specify whether to include a list of deleted conflicted revisions in the
|
|
@@ -3592,8 +3645,8 @@ declare namespace CloudantV1 {
|
|
|
3592
3645
|
attEncodingInfo?: boolean;
|
|
3593
3646
|
/** Parameter to specify whether to include attachments bodies in a response. */
|
|
3594
3647
|
attachments?: boolean;
|
|
3595
|
-
/** Parameter to specify whether to include a list of conflicted revisions in
|
|
3596
|
-
*
|
|
3648
|
+
/** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
|
|
3649
|
+
* only when `include_docs` is `true`.
|
|
3597
3650
|
*/
|
|
3598
3651
|
conflicts?: boolean;
|
|
3599
3652
|
/** Parameter to specify whether to return the documents in descending by key order. */
|
|
@@ -3666,8 +3719,8 @@ declare namespace CloudantV1 {
|
|
|
3666
3719
|
attEncodingInfo?: boolean;
|
|
3667
3720
|
/** Parameter to specify whether to include attachments bodies in a response. */
|
|
3668
3721
|
attachments?: boolean;
|
|
3669
|
-
/** Parameter to specify whether to include a list of conflicted revisions in
|
|
3670
|
-
*
|
|
3722
|
+
/** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
|
|
3723
|
+
* only when `include_docs` is `true`.
|
|
3671
3724
|
*/
|
|
3672
3725
|
conflicts?: boolean;
|
|
3673
3726
|
/** Parameter to specify whether to return the documents in descending by key order. */
|
|
@@ -3688,35 +3741,50 @@ declare namespace CloudantV1 {
|
|
|
3688
3741
|
endKey?: any;
|
|
3689
3742
|
/** Schema for a document ID. */
|
|
3690
3743
|
endKeyDocId?: string;
|
|
3691
|
-
/** Parameter to specify whether to group
|
|
3692
|
-
*
|
|
3744
|
+
/** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
|
|
3745
|
+
* view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the
|
|
3746
|
+
* number of array elements with the `group_level` parameter.
|
|
3693
3747
|
*/
|
|
3694
3748
|
group?: boolean;
|
|
3695
|
-
/** Parameter to specify
|
|
3749
|
+
/** Parameter to specify a group level to be used. Only applicable if the view uses keys that are JSON arrays.
|
|
3750
|
+
* Implies group is `true`. Group level groups the reduced results by the specified number of array elements. If
|
|
3751
|
+
* unset, results are grouped by the entire array key, returning a reduced value for each complete key.
|
|
3752
|
+
*/
|
|
3696
3753
|
groupLevel?: number;
|
|
3697
3754
|
/** Schema for any JSON type. */
|
|
3698
3755
|
key?: any;
|
|
3699
|
-
/** Parameter to specify
|
|
3700
|
-
*
|
|
3756
|
+
/** Parameter to specify returning only documents that match any of the specified keys. A JSON array of keys
|
|
3757
|
+
* that match the key type emitted by the view function.
|
|
3701
3758
|
*/
|
|
3702
3759
|
keys?: any[];
|
|
3703
3760
|
/** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
|
|
3704
3761
|
* function is defined.
|
|
3705
3762
|
*/
|
|
3706
3763
|
reduce?: boolean;
|
|
3707
|
-
/**
|
|
3764
|
+
/** Query parameter to specify whether use the same replica of the index on each request. The default value
|
|
3765
|
+
* `false` contacts all replicas and returns the result from the first, fastest, responder. Setting it to `true`
|
|
3766
|
+
* when used in conjunction with `update=false` may improve consistency at the expense of increased latency and
|
|
3767
|
+
* decreased throughput if the selected replica is not the fastest of the available replicas.
|
|
3768
|
+
*
|
|
3769
|
+
* **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
|
|
3770
|
+
*/
|
|
3708
3771
|
stable?: boolean;
|
|
3709
3772
|
/** Schema for any JSON type. */
|
|
3710
3773
|
startKey?: any;
|
|
3711
3774
|
/** Schema for a document ID. */
|
|
3712
3775
|
startKeyDocId?: string;
|
|
3713
|
-
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
|
|
3776
|
+
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
|
|
3777
|
+
*
|
|
3778
|
+
* * `true` - Return results after the view is updated.
|
|
3779
|
+
* * `false` - Return results without updating the view.
|
|
3780
|
+
* * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
|
|
3781
|
+
*/
|
|
3714
3782
|
update?: PostViewConstants.Update | string;
|
|
3715
3783
|
headers?: OutgoingHttpHeaders;
|
|
3716
3784
|
}
|
|
3717
3785
|
/** Constants for the `postView` operation. */
|
|
3718
3786
|
namespace PostViewConstants {
|
|
3719
|
-
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
|
|
3787
|
+
/** 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. */
|
|
3720
3788
|
enum Update {
|
|
3721
3789
|
TRUE = "true",
|
|
3722
3790
|
FALSE = "false",
|
|
@@ -3739,8 +3807,8 @@ declare namespace CloudantV1 {
|
|
|
3739
3807
|
attEncodingInfo?: boolean;
|
|
3740
3808
|
/** Parameter to specify whether to include attachments bodies in a response. */
|
|
3741
3809
|
attachments?: boolean;
|
|
3742
|
-
/** Parameter to specify whether to include a list of conflicted revisions in
|
|
3743
|
-
*
|
|
3810
|
+
/** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
|
|
3811
|
+
* only when `include_docs` is `true`.
|
|
3744
3812
|
*/
|
|
3745
3813
|
conflicts?: boolean;
|
|
3746
3814
|
/** Parameter to specify whether to return the documents in descending by key order. */
|
|
@@ -3761,35 +3829,50 @@ declare namespace CloudantV1 {
|
|
|
3761
3829
|
endKey?: any;
|
|
3762
3830
|
/** Schema for a document ID. */
|
|
3763
3831
|
endKeyDocId?: string;
|
|
3764
|
-
/** Parameter to specify whether to group
|
|
3765
|
-
*
|
|
3832
|
+
/** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
|
|
3833
|
+
* view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the
|
|
3834
|
+
* number of array elements with the `group_level` parameter.
|
|
3766
3835
|
*/
|
|
3767
3836
|
group?: boolean;
|
|
3768
|
-
/** Parameter to specify
|
|
3837
|
+
/** Parameter to specify a group level to be used. Only applicable if the view uses keys that are JSON arrays.
|
|
3838
|
+
* Implies group is `true`. Group level groups the reduced results by the specified number of array elements. If
|
|
3839
|
+
* unset, results are grouped by the entire array key, returning a reduced value for each complete key.
|
|
3840
|
+
*/
|
|
3769
3841
|
groupLevel?: number;
|
|
3770
3842
|
/** Schema for any JSON type. */
|
|
3771
3843
|
key?: any;
|
|
3772
|
-
/** Parameter to specify
|
|
3773
|
-
*
|
|
3844
|
+
/** Parameter to specify returning only documents that match any of the specified keys. A JSON array of keys
|
|
3845
|
+
* that match the key type emitted by the view function.
|
|
3774
3846
|
*/
|
|
3775
3847
|
keys?: any[];
|
|
3776
3848
|
/** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
|
|
3777
3849
|
* function is defined.
|
|
3778
3850
|
*/
|
|
3779
3851
|
reduce?: boolean;
|
|
3780
|
-
/**
|
|
3852
|
+
/** Query parameter to specify whether use the same replica of the index on each request. The default value
|
|
3853
|
+
* `false` contacts all replicas and returns the result from the first, fastest, responder. Setting it to `true`
|
|
3854
|
+
* when used in conjunction with `update=false` may improve consistency at the expense of increased latency and
|
|
3855
|
+
* decreased throughput if the selected replica is not the fastest of the available replicas.
|
|
3856
|
+
*
|
|
3857
|
+
* **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
|
|
3858
|
+
*/
|
|
3781
3859
|
stable?: boolean;
|
|
3782
3860
|
/** Schema for any JSON type. */
|
|
3783
3861
|
startKey?: any;
|
|
3784
3862
|
/** Schema for a document ID. */
|
|
3785
3863
|
startKeyDocId?: string;
|
|
3786
|
-
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
|
|
3864
|
+
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
|
|
3865
|
+
*
|
|
3866
|
+
* * `true` - Return results after the view is updated.
|
|
3867
|
+
* * `false` - Return results without updating the view.
|
|
3868
|
+
* * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
|
|
3869
|
+
*/
|
|
3787
3870
|
update?: PostViewAsStreamConstants.Update | string;
|
|
3788
3871
|
headers?: OutgoingHttpHeaders;
|
|
3789
3872
|
}
|
|
3790
3873
|
/** Constants for the `postViewAsStream` operation. */
|
|
3791
3874
|
namespace PostViewAsStreamConstants {
|
|
3792
|
-
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
|
|
3875
|
+
/** 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. */
|
|
3793
3876
|
enum Update {
|
|
3794
3877
|
TRUE = "true",
|
|
3795
3878
|
FALSE = "false",
|
|
@@ -3848,8 +3931,8 @@ declare namespace CloudantV1 {
|
|
|
3848
3931
|
attEncodingInfo?: boolean;
|
|
3849
3932
|
/** Parameter to specify whether to include attachments bodies in a response. */
|
|
3850
3933
|
attachments?: boolean;
|
|
3851
|
-
/** Parameter to specify whether to include a list of conflicted revisions in
|
|
3852
|
-
*
|
|
3934
|
+
/** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
|
|
3935
|
+
* only when `include_docs` is `true`.
|
|
3853
3936
|
*/
|
|
3854
3937
|
conflicts?: boolean;
|
|
3855
3938
|
/** Parameter to specify whether to return the documents in descending by key order. */
|
|
@@ -3888,8 +3971,8 @@ declare namespace CloudantV1 {
|
|
|
3888
3971
|
attEncodingInfo?: boolean;
|
|
3889
3972
|
/** Parameter to specify whether to include attachments bodies in a response. */
|
|
3890
3973
|
attachments?: boolean;
|
|
3891
|
-
/** Parameter to specify whether to include a list of conflicted revisions in
|
|
3892
|
-
*
|
|
3974
|
+
/** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
|
|
3975
|
+
* only when `include_docs` is `true`.
|
|
3893
3976
|
*/
|
|
3894
3977
|
conflicts?: boolean;
|
|
3895
3978
|
/** Parameter to specify whether to return the documents in descending by key order. */
|
|
@@ -4050,8 +4133,8 @@ declare namespace CloudantV1 {
|
|
|
4050
4133
|
attEncodingInfo?: boolean;
|
|
4051
4134
|
/** Parameter to specify whether to include attachments bodies in a response. */
|
|
4052
4135
|
attachments?: boolean;
|
|
4053
|
-
/** Parameter to specify whether to include a list of conflicted revisions in
|
|
4054
|
-
*
|
|
4136
|
+
/** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
|
|
4137
|
+
* only when `include_docs` is `true`.
|
|
4055
4138
|
*/
|
|
4056
4139
|
conflicts?: boolean;
|
|
4057
4140
|
/** Parameter to specify whether to return the documents in descending by key order. */
|
|
@@ -4072,35 +4155,50 @@ declare namespace CloudantV1 {
|
|
|
4072
4155
|
endKey?: any;
|
|
4073
4156
|
/** Schema for a document ID. */
|
|
4074
4157
|
endKeyDocId?: string;
|
|
4075
|
-
/** Parameter to specify whether to group
|
|
4076
|
-
*
|
|
4158
|
+
/** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
|
|
4159
|
+
* view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the
|
|
4160
|
+
* number of array elements with the `group_level` parameter.
|
|
4077
4161
|
*/
|
|
4078
4162
|
group?: boolean;
|
|
4079
|
-
/** Parameter to specify
|
|
4163
|
+
/** Parameter to specify a group level to be used. Only applicable if the view uses keys that are JSON arrays.
|
|
4164
|
+
* Implies group is `true`. Group level groups the reduced results by the specified number of array elements. If
|
|
4165
|
+
* unset, results are grouped by the entire array key, returning a reduced value for each complete key.
|
|
4166
|
+
*/
|
|
4080
4167
|
groupLevel?: number;
|
|
4081
4168
|
/** Schema for any JSON type. */
|
|
4082
4169
|
key?: any;
|
|
4083
|
-
/** Parameter to specify
|
|
4084
|
-
*
|
|
4170
|
+
/** Parameter to specify returning only documents that match any of the specified keys. A JSON array of keys
|
|
4171
|
+
* that match the key type emitted by the view function.
|
|
4085
4172
|
*/
|
|
4086
4173
|
keys?: any[];
|
|
4087
4174
|
/** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
|
|
4088
4175
|
* function is defined.
|
|
4089
4176
|
*/
|
|
4090
4177
|
reduce?: boolean;
|
|
4091
|
-
/**
|
|
4178
|
+
/** Query parameter to specify whether use the same replica of the index on each request. The default value
|
|
4179
|
+
* `false` contacts all replicas and returns the result from the first, fastest, responder. Setting it to `true`
|
|
4180
|
+
* when used in conjunction with `update=false` may improve consistency at the expense of increased latency and
|
|
4181
|
+
* decreased throughput if the selected replica is not the fastest of the available replicas.
|
|
4182
|
+
*
|
|
4183
|
+
* **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
|
|
4184
|
+
*/
|
|
4092
4185
|
stable?: boolean;
|
|
4093
4186
|
/** Schema for any JSON type. */
|
|
4094
4187
|
startKey?: any;
|
|
4095
4188
|
/** Schema for a document ID. */
|
|
4096
4189
|
startKeyDocId?: string;
|
|
4097
|
-
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
|
|
4190
|
+
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
|
|
4191
|
+
*
|
|
4192
|
+
* * `true` - Return results after the view is updated.
|
|
4193
|
+
* * `false` - Return results without updating the view.
|
|
4194
|
+
* * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
|
|
4195
|
+
*/
|
|
4098
4196
|
update?: PostPartitionViewConstants.Update | string;
|
|
4099
4197
|
headers?: OutgoingHttpHeaders;
|
|
4100
4198
|
}
|
|
4101
4199
|
/** Constants for the `postPartitionView` operation. */
|
|
4102
4200
|
namespace PostPartitionViewConstants {
|
|
4103
|
-
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
|
|
4201
|
+
/** 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. */
|
|
4104
4202
|
enum Update {
|
|
4105
4203
|
TRUE = "true",
|
|
4106
4204
|
FALSE = "false",
|
|
@@ -4125,8 +4223,8 @@ declare namespace CloudantV1 {
|
|
|
4125
4223
|
attEncodingInfo?: boolean;
|
|
4126
4224
|
/** Parameter to specify whether to include attachments bodies in a response. */
|
|
4127
4225
|
attachments?: boolean;
|
|
4128
|
-
/** Parameter to specify whether to include a list of conflicted revisions in
|
|
4129
|
-
*
|
|
4226
|
+
/** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
|
|
4227
|
+
* only when `include_docs` is `true`.
|
|
4130
4228
|
*/
|
|
4131
4229
|
conflicts?: boolean;
|
|
4132
4230
|
/** Parameter to specify whether to return the documents in descending by key order. */
|
|
@@ -4147,35 +4245,50 @@ declare namespace CloudantV1 {
|
|
|
4147
4245
|
endKey?: any;
|
|
4148
4246
|
/** Schema for a document ID. */
|
|
4149
4247
|
endKeyDocId?: string;
|
|
4150
|
-
/** Parameter to specify whether to group
|
|
4151
|
-
*
|
|
4248
|
+
/** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
|
|
4249
|
+
* view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the
|
|
4250
|
+
* number of array elements with the `group_level` parameter.
|
|
4152
4251
|
*/
|
|
4153
4252
|
group?: boolean;
|
|
4154
|
-
/** Parameter to specify
|
|
4253
|
+
/** Parameter to specify a group level to be used. Only applicable if the view uses keys that are JSON arrays.
|
|
4254
|
+
* Implies group is `true`. Group level groups the reduced results by the specified number of array elements. If
|
|
4255
|
+
* unset, results are grouped by the entire array key, returning a reduced value for each complete key.
|
|
4256
|
+
*/
|
|
4155
4257
|
groupLevel?: number;
|
|
4156
4258
|
/** Schema for any JSON type. */
|
|
4157
4259
|
key?: any;
|
|
4158
|
-
/** Parameter to specify
|
|
4159
|
-
*
|
|
4260
|
+
/** Parameter to specify returning only documents that match any of the specified keys. A JSON array of keys
|
|
4261
|
+
* that match the key type emitted by the view function.
|
|
4160
4262
|
*/
|
|
4161
4263
|
keys?: any[];
|
|
4162
4264
|
/** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
|
|
4163
4265
|
* function is defined.
|
|
4164
4266
|
*/
|
|
4165
4267
|
reduce?: boolean;
|
|
4166
|
-
/**
|
|
4268
|
+
/** Query parameter to specify whether use the same replica of the index on each request. The default value
|
|
4269
|
+
* `false` contacts all replicas and returns the result from the first, fastest, responder. Setting it to `true`
|
|
4270
|
+
* when used in conjunction with `update=false` may improve consistency at the expense of increased latency and
|
|
4271
|
+
* decreased throughput if the selected replica is not the fastest of the available replicas.
|
|
4272
|
+
*
|
|
4273
|
+
* **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
|
|
4274
|
+
*/
|
|
4167
4275
|
stable?: boolean;
|
|
4168
4276
|
/** Schema for any JSON type. */
|
|
4169
4277
|
startKey?: any;
|
|
4170
4278
|
/** Schema for a document ID. */
|
|
4171
4279
|
startKeyDocId?: string;
|
|
4172
|
-
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
|
|
4280
|
+
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
|
|
4281
|
+
*
|
|
4282
|
+
* * `true` - Return results after the view is updated.
|
|
4283
|
+
* * `false` - Return results without updating the view.
|
|
4284
|
+
* * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
|
|
4285
|
+
*/
|
|
4173
4286
|
update?: PostPartitionViewAsStreamConstants.Update | string;
|
|
4174
4287
|
headers?: OutgoingHttpHeaders;
|
|
4175
4288
|
}
|
|
4176
4289
|
/** Constants for the `postPartitionViewAsStream` operation. */
|
|
4177
4290
|
namespace PostPartitionViewAsStreamConstants {
|
|
4178
|
-
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user. */
|
|
4291
|
+
/** 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. */
|
|
4179
4292
|
enum Update {
|
|
4180
4293
|
TRUE = "true",
|
|
4181
4294
|
FALSE = "false",
|
|
@@ -5199,8 +5312,8 @@ declare namespace CloudantV1 {
|
|
|
5199
5312
|
* attachment is compressed.
|
|
5200
5313
|
*/
|
|
5201
5314
|
attEncodingInfo?: boolean;
|
|
5202
|
-
/** Query parameter to specify whether to include a list of conflicted revisions in
|
|
5203
|
-
*
|
|
5315
|
+
/** Query parameter to specify whether to include a list of conflicted revisions in each returned document.
|
|
5316
|
+
* Active only when `include_docs` is `true`.
|
|
5204
5317
|
*/
|
|
5205
5318
|
conflicts?: boolean;
|
|
5206
5319
|
/** Query parameter to specify whether to include a list of deleted conflicted revisions in the
|
|
@@ -5665,8 +5778,8 @@ declare namespace CloudantV1 {
|
|
|
5665
5778
|
att_encoding_info?: boolean;
|
|
5666
5779
|
/** Parameter to specify whether to include attachments bodies in a response. */
|
|
5667
5780
|
attachments?: boolean;
|
|
5668
|
-
/** Parameter to specify whether to include a list of conflicted revisions in
|
|
5669
|
-
*
|
|
5781
|
+
/** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
|
|
5782
|
+
* only when `include_docs` is `true`.
|
|
5670
5783
|
*/
|
|
5671
5784
|
conflicts?: boolean;
|
|
5672
5785
|
/** Parameter to specify whether to return the documents in descending by key order. */
|
|
@@ -6962,8 +7075,8 @@ declare namespace CloudantV1 {
|
|
|
6962
7075
|
att_encoding_info?: boolean;
|
|
6963
7076
|
/** Parameter to specify whether to include attachments bodies in a response. */
|
|
6964
7077
|
attachments?: boolean;
|
|
6965
|
-
/** Parameter to specify whether to include a list of conflicted revisions in
|
|
6966
|
-
*
|
|
7078
|
+
/** Parameter to specify whether to include a list of conflicted revisions in each returned document. Active
|
|
7079
|
+
* only when `include_docs` is `true`.
|
|
6967
7080
|
*/
|
|
6968
7081
|
conflicts?: boolean;
|
|
6969
7082
|
/** Parameter to specify whether to return the documents in descending by key order. */
|
|
@@ -6984,29 +7097,44 @@ declare namespace CloudantV1 {
|
|
|
6984
7097
|
end_key?: any;
|
|
6985
7098
|
/** Schema for a document ID. */
|
|
6986
7099
|
end_key_doc_id?: string;
|
|
6987
|
-
/** Parameter to specify whether to group
|
|
6988
|
-
*
|
|
7100
|
+
/** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
|
|
7101
|
+
* view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the
|
|
7102
|
+
* number of array elements with the `group_level` parameter.
|
|
6989
7103
|
*/
|
|
6990
7104
|
group?: boolean;
|
|
6991
|
-
/** Parameter to specify
|
|
7105
|
+
/** Parameter to specify a group level to be used. Only applicable if the view uses keys that are JSON arrays.
|
|
7106
|
+
* Implies group is `true`. Group level groups the reduced results by the specified number of array elements. If
|
|
7107
|
+
* unset, results are grouped by the entire array key, returning a reduced value for each complete key.
|
|
7108
|
+
*/
|
|
6992
7109
|
group_level?: number;
|
|
6993
7110
|
/** Schema for any JSON type. */
|
|
6994
7111
|
key?: any;
|
|
6995
|
-
/** Parameter to specify
|
|
6996
|
-
*
|
|
7112
|
+
/** Parameter to specify returning only documents that match any of the specified keys. A JSON array of keys
|
|
7113
|
+
* that match the key type emitted by the view function.
|
|
6997
7114
|
*/
|
|
6998
7115
|
keys?: any[];
|
|
6999
7116
|
/** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
|
|
7000
7117
|
* function is defined.
|
|
7001
7118
|
*/
|
|
7002
7119
|
reduce?: boolean;
|
|
7003
|
-
/**
|
|
7120
|
+
/** Query parameter to specify whether use the same replica of the index on each request. The default value
|
|
7121
|
+
* `false` contacts all replicas and returns the result from the first, fastest, responder. Setting it to `true`
|
|
7122
|
+
* when used in conjunction with `update=false` may improve consistency at the expense of increased latency and
|
|
7123
|
+
* decreased throughput if the selected replica is not the fastest of the available replicas.
|
|
7124
|
+
*
|
|
7125
|
+
* **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.
|
|
7126
|
+
*/
|
|
7004
7127
|
stable?: boolean;
|
|
7005
7128
|
/** Schema for any JSON type. */
|
|
7006
7129
|
start_key?: any;
|
|
7007
7130
|
/** Schema for a document ID. */
|
|
7008
7131
|
start_key_doc_id?: string;
|
|
7009
|
-
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
|
|
7132
|
+
/** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
|
|
7133
|
+
*
|
|
7134
|
+
* * `true` - Return results after the view is updated.
|
|
7135
|
+
* * `false` - Return results without updating the view.
|
|
7136
|
+
* * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.
|
|
7137
|
+
*/
|
|
7010
7138
|
update?: string;
|
|
7011
7139
|
}
|
|
7012
7140
|
/** Schema for the result of a query view operation. */
|